]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / _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_wxCollapsiblePane swig_types[30]
2497 #define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498 #define SWIGTYPE_p_wxColour swig_types[32]
2499 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500 #define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501 #define SWIGTYPE_p_wxComboBox swig_types[35]
2502 #define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503 #define SWIGTYPE_p_wxContextHelp swig_types[37]
2504 #define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505 #define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506 #define SWIGTYPE_p_wxControl swig_types[40]
2507 #define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508 #define SWIGTYPE_p_wxCursor swig_types[42]
2509 #define SWIGTYPE_p_wxDC swig_types[43]
2510 #define SWIGTYPE_p_wxDateEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDateTime swig_types[46]
2513 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516 #define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517 #define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518 #define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519 #define SWIGTYPE_p_wxEvent swig_types[53]
2520 #define SWIGTYPE_p_wxEventBlocker swig_types[54]
2521 #define SWIGTYPE_p_wxEvtHandler swig_types[55]
2522 #define SWIGTYPE_p_wxFSFile swig_types[56]
2523 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[57]
2524 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[58]
2525 #define SWIGTYPE_p_wxFileSystem swig_types[59]
2526 #define SWIGTYPE_p_wxFlexGridSizer swig_types[60]
2527 #define SWIGTYPE_p_wxFocusEvent swig_types[61]
2528 #define SWIGTYPE_p_wxFont swig_types[62]
2529 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[63]
2530 #define SWIGTYPE_p_wxFontPickerEvent swig_types[64]
2531 #define SWIGTYPE_p_wxGBSizerItem swig_types[65]
2532 #define SWIGTYPE_p_wxGIFHandler swig_types[66]
2533 #define SWIGTYPE_p_wxGauge swig_types[67]
2534 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[68]
2535 #define SWIGTYPE_p_wxGenericDragImage swig_types[69]
2536 #define SWIGTYPE_p_wxGridBagSizer swig_types[70]
2537 #define SWIGTYPE_p_wxGridSizer swig_types[71]
2538 #define SWIGTYPE_p_wxHelpEvent swig_types[72]
2539 #define SWIGTYPE_p_wxHelpProvider swig_types[73]
2540 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[74]
2541 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[75]
2542 #define SWIGTYPE_p_wxICOHandler swig_types[76]
2543 #define SWIGTYPE_p_wxIcon swig_types[77]
2544 #define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545 #define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546 #define SWIGTYPE_p_wxImage swig_types[80]
2547 #define SWIGTYPE_p_wxImageHandler swig_types[81]
2548 #define SWIGTYPE_p_wxImageList swig_types[82]
2549 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550 #define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551 #define SWIGTYPE_p_wxItemContainer swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555 #define SWIGTYPE_p_wxListBox swig_types[89]
2556 #define SWIGTYPE_p_wxListEvent swig_types[90]
2557 #define SWIGTYPE_p_wxListItem swig_types[91]
2558 #define SWIGTYPE_p_wxListItemAttr swig_types[92]
2559 #define SWIGTYPE_p_wxListView swig_types[93]
2560 #define SWIGTYPE_p_wxListbook swig_types[94]
2561 #define SWIGTYPE_p_wxListbookEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMaximizeEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMemoryDC swig_types[97]
2564 #define SWIGTYPE_p_wxMenu swig_types[98]
2565 #define SWIGTYPE_p_wxMenuBar swig_types[99]
2566 #define SWIGTYPE_p_wxMenuEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMenuItem swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMouseEvent swig_types[104]
2571 #define SWIGTYPE_p_wxMoveEvent swig_types[105]
2572 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNcPaintEvent swig_types[107]
2574 #define SWIGTYPE_p_wxNotebook swig_types[108]
2575 #define SWIGTYPE_p_wxNotebookEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577 #define SWIGTYPE_p_wxObject swig_types[111]
2578 #define SWIGTYPE_p_wxPCXHandler swig_types[112]
2579 #define SWIGTYPE_p_wxPNGHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPNMHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPaintEvent swig_types[115]
2582 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[116]
2583 #define SWIGTYPE_p_wxPaperSize swig_types[117]
2584 #define SWIGTYPE_p_wxPickerBase swig_types[118]
2585 #define SWIGTYPE_p_wxPoint swig_types[119]
2586 #define SWIGTYPE_p_wxPyApp swig_types[120]
2587 #define SWIGTYPE_p_wxPyCommandEvent swig_types[121]
2588 #define SWIGTYPE_p_wxPyControl swig_types[122]
2589 #define SWIGTYPE_p_wxPyEvent swig_types[123]
2590 #define SWIGTYPE_p_wxPyImageHandler swig_types[124]
2591 #define SWIGTYPE_p_wxPyListCtrl swig_types[125]
2592 #define SWIGTYPE_p_wxPySizer swig_types[126]
2593 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[127]
2594 #define SWIGTYPE_p_wxPyTreeItemData swig_types[128]
2595 #define SWIGTYPE_p_wxPyValidator swig_types[129]
2596 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[130]
2597 #define SWIGTYPE_p_wxRadioBox swig_types[131]
2598 #define SWIGTYPE_p_wxRadioButton swig_types[132]
2599 #define SWIGTYPE_p_wxRect swig_types[133]
2600 #define SWIGTYPE_p_wxScrollBar swig_types[134]
2601 #define SWIGTYPE_p_wxScrollEvent swig_types[135]
2602 #define SWIGTYPE_p_wxScrollWinEvent swig_types[136]
2603 #define SWIGTYPE_p_wxSearchCtrl swig_types[137]
2604 #define SWIGTYPE_p_wxSetCursorEvent swig_types[138]
2605 #define SWIGTYPE_p_wxShowEvent swig_types[139]
2606 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[140]
2607 #define SWIGTYPE_p_wxSize swig_types[141]
2608 #define SWIGTYPE_p_wxSizeEvent swig_types[142]
2609 #define SWIGTYPE_p_wxSizer swig_types[143]
2610 #define SWIGTYPE_p_wxSizerItem swig_types[144]
2611 #define SWIGTYPE_p_wxSlider swig_types[145]
2612 #define SWIGTYPE_p_wxSpinButton swig_types[146]
2613 #define SWIGTYPE_p_wxSpinCtrl swig_types[147]
2614 #define SWIGTYPE_p_wxSpinEvent swig_types[148]
2615 #define SWIGTYPE_p_wxStaticBitmap swig_types[149]
2616 #define SWIGTYPE_p_wxStaticBox swig_types[150]
2617 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[151]
2618 #define SWIGTYPE_p_wxStaticLine swig_types[152]
2619 #define SWIGTYPE_p_wxStaticText swig_types[153]
2620 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[154]
2621 #define SWIGTYPE_p_wxString swig_types[155]
2622 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[156]
2623 #define SWIGTYPE_p_wxTGAHandler swig_types[157]
2624 #define SWIGTYPE_p_wxTIFFHandler swig_types[158]
2625 #define SWIGTYPE_p_wxTextAttr swig_types[159]
2626 #define SWIGTYPE_p_wxTextCtrl swig_types[160]
2627 #define SWIGTYPE_p_wxTextUrlEvent swig_types[161]
2628 #define SWIGTYPE_p_wxToggleButton swig_types[162]
2629 #define SWIGTYPE_p_wxToolBar swig_types[163]
2630 #define SWIGTYPE_p_wxToolBarBase swig_types[164]
2631 #define SWIGTYPE_p_wxToolBarToolBase swig_types[165]
2632 #define SWIGTYPE_p_wxToolbook swig_types[166]
2633 #define SWIGTYPE_p_wxToolbookEvent swig_types[167]
2634 #define SWIGTYPE_p_wxTreeEvent swig_types[168]
2635 #define SWIGTYPE_p_wxTreeItemId swig_types[169]
2636 #define SWIGTYPE_p_wxTreebook swig_types[170]
2637 #define SWIGTYPE_p_wxTreebookEvent swig_types[171]
2638 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[172]
2639 #define SWIGTYPE_p_wxValidator swig_types[173]
2640 #define SWIGTYPE_p_wxVisualAttributes swig_types[174]
2641 #define SWIGTYPE_p_wxWindow swig_types[175]
2642 #define SWIGTYPE_p_wxWindowBase swig_types[176]
2643 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[177]
2644 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[178]
2645 #define SWIGTYPE_p_wxXPMHandler swig_types[179]
2646 static swig_type_info *swig_types[181];
2647 static swig_module_info swig_module = {swig_types, 180, 0, 0, 0, 0};
2648 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2649 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2650
2651 /* -------- TYPES TABLE (END) -------- */
2652
2653 #if (PY_VERSION_HEX <= 0x02000000)
2654 # if !defined(SWIG_PYTHON_CLASSIC)
2655 # error "This python version requires to use swig with the '-classic' option"
2656 # endif
2657 #endif
2658 #if (PY_VERSION_HEX <= 0x02020000)
2659 # error "This python version requires to use swig with the '-nomodern' option"
2660 #endif
2661 #if (PY_VERSION_HEX <= 0x02020000)
2662 # error "This python version requires to use swig with the '-nomodernargs' option"
2663 #endif
2664 #ifndef METH_O
2665 # error "This python version requires to use swig with the '-nofastunpack' option"
2666 #endif
2667
2668 /*-----------------------------------------------
2669 @(target):= _controls_.so
2670 ------------------------------------------------*/
2671 #define SWIG_init init_controls_
2672
2673 #define SWIG_name "_controls_"
2674
2675 #define SWIGVERSION 0x010329
2676
2677
2678 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2679 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2680
2681
2682 #include <stdexcept>
2683
2684
2685 namespace swig {
2686 class PyObject_ptr {
2687 protected:
2688 PyObject *_obj;
2689
2690 public:
2691 PyObject_ptr() :_obj(0)
2692 {
2693 }
2694
2695 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2696 {
2697 Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2701 {
2702 if (initial_ref) Py_XINCREF(_obj);
2703 }
2704
2705 PyObject_ptr & operator=(const PyObject_ptr& item)
2706 {
2707 Py_XINCREF(item._obj);
2708 Py_XDECREF(_obj);
2709 _obj = item._obj;
2710 return *this;
2711 }
2712
2713 ~PyObject_ptr()
2714 {
2715 Py_XDECREF(_obj);
2716 }
2717
2718 operator PyObject *() const
2719 {
2720 return _obj;
2721 }
2722
2723 PyObject *operator->() const
2724 {
2725 return _obj;
2726 }
2727 };
2728 }
2729
2730
2731 namespace swig {
2732 struct PyObject_var : PyObject_ptr {
2733 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2734
2735 PyObject_var & operator = (PyObject* obj)
2736 {
2737 Py_XDECREF(_obj);
2738 _obj = obj;
2739 return *this;
2740 }
2741 };
2742 }
2743
2744
2745 #include "wx/wxPython/wxPython.h"
2746 #include "wx/wxPython/pyclasses.h"
2747
2748 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2749 static const wxString wxPyEmptyString(wxEmptyString);
2750 static const wxString wxPyControlNameStr(wxControlNameStr);
2751
2752 const wxArrayString wxPyEmptyStringArray;
2753
2754 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2755
2756 #define SWIG_From_long PyInt_FromLong
2757
2758
2759 SWIGINTERNINLINE PyObject *
2760 SWIG_From_int (int value)
2761 {
2762 return SWIG_From_long (value);
2763 }
2764
2765
2766 #include <limits.h>
2767 #ifndef LLONG_MIN
2768 # define LLONG_MIN LONG_LONG_MIN
2769 #endif
2770 #ifndef LLONG_MAX
2771 # define LLONG_MAX LONG_LONG_MAX
2772 #endif
2773 #ifndef ULLONG_MAX
2774 # define ULLONG_MAX ULONG_LONG_MAX
2775 #endif
2776
2777
2778 SWIGINTERN int
2779 SWIG_AsVal_long (PyObject* obj, long* val)
2780 {
2781 if (PyNumber_Check(obj)) {
2782 if (val) *val = PyInt_AsLong(obj);
2783 return SWIG_OK;
2784 }
2785 return SWIG_TypeError;
2786 }
2787
2788
2789 SWIGINTERN int
2790 SWIG_AsVal_int (PyObject * obj, int *val)
2791 {
2792 long v;
2793 int res = SWIG_AsVal_long (obj, &v);
2794 if (SWIG_IsOK(res)) {
2795 if ((v < INT_MIN || v > INT_MAX)) {
2796 return SWIG_OverflowError;
2797 } else {
2798 if (val) *val = static_cast< int >(v);
2799 }
2800 }
2801 return res;
2802 }
2803
2804 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2805
2806 SWIGINTERN int
2807 SWIG_AsVal_bool (PyObject *obj, bool *val)
2808 {
2809 if (obj == Py_True) {
2810 if (val) *val = true;
2811 return SWIG_OK;
2812 } else if (obj == Py_False) {
2813 if (val) *val = false;
2814 return SWIG_OK;
2815 } else {
2816 long v = 0;
2817 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2818 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2819 return res;
2820 }
2821 }
2822
2823 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2824 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2825 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2826 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2827 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2828 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2829 static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr);
2830
2831 #include <wx/checklst.h>
2832
2833 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2834 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2835 if (clientData)
2836 {
2837 wxPyClientData* data = new wxPyClientData(clientData);
2838 self->Insert(item, pos, data);
2839 }
2840 else
2841 self->Insert(item, pos);
2842 }
2843
2844 SWIGINTERN int
2845 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2846 {
2847 long v = 0;
2848 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2849 return SWIG_TypeError;
2850 }
2851 else if (val)
2852 *val = (unsigned long)v;
2853 return SWIG_OK;
2854 }
2855
2856
2857 SWIGINTERN int
2858 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2859 {
2860 unsigned long v;
2861 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2862 if (SWIG_IsOK(res)) {
2863 if ((v > UINT_MAX)) {
2864 return SWIG_OverflowError;
2865 } else {
2866 if (val) *val = static_cast< unsigned int >(v);
2867 }
2868 }
2869 return res;
2870 }
2871
2872 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2873 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2874 wxArrayInt lst;
2875 self->GetSelections(lst);
2876 PyObject *tup = PyTuple_New(lst.GetCount());
2877 for (size_t i=0; i<lst.GetCount(); i++)
2878 {
2879 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2880 }
2881 wxPyEndBlockThreads(blocked);
2882 return tup;
2883 }
2884 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetTextColour(c);
2888 #endif
2889 }
2890 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetBackgroundColour(c);
2894 #endif
2895 }
2896 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2897 #ifdef __WXMSW__
2898 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2899 self->GetItem(item)->SetFont(f);
2900 #endif
2901 }
2902 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2903 SWIGINTERN void wxTextCtrl_MacCheckSpelling(wxTextCtrl *self,bool check){}
2904 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2905 self->AppendText(text);
2906 }
2907 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2908 return self->GetValue().Mid(from, to - from);
2909 }
2910 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2911 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2912 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2913 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2914 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2915
2916 SWIGINTERNINLINE PyObject*
2917 SWIG_From_unsigned_SS_long (unsigned long value)
2918 {
2919 return (value > LONG_MAX) ?
2920 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2921 }
2922
2923
2924 SWIGINTERNINLINE PyObject *
2925 SWIG_From_size_t (size_t value)
2926 {
2927 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2928 }
2929
2930
2931 SWIGINTERNINLINE PyObject *
2932 SWIG_From_unsigned_SS_int (unsigned int value)
2933 {
2934 return SWIG_From_unsigned_SS_long (value);
2935 }
2936
2937
2938 #include <wx/slider.h>
2939
2940
2941 static const wxString wxPySliderNameStr(wxSliderNameStr);
2942 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2943
2944 #if !wxUSE_TOGGLEBTN
2945 // implement dummy items for platforms that don't have this class
2946
2947 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2948
2949 class wxToggleButton : public wxControl
2950 {
2951 public:
2952 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2953 const wxPoint&, const wxSize&, long,
2954 const wxValidator&, const wxString&)
2955 { wxPyRaiseNotImplemented(); }
2956
2957 wxToggleButton()
2958 { wxPyRaiseNotImplemented(); }
2959 };
2960 #endif
2961
2962 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2963
2964 SWIGINTERNINLINE int
2965 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2966 {
2967 unsigned long v;
2968 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2969 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2970 return res;
2971 }
2972
2973 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2974 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2975 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2976 if (udata) {
2977 Py_INCREF(udata->m_obj);
2978 return udata->m_obj;
2979 } else {
2980 Py_INCREF(Py_None);
2981 return Py_None;
2982 }
2983 }
2984 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2985 self->SetClientData(new wxPyUserData(clientData));
2986 }
2987 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){
2988 wxPyUserData* udata = NULL;
2989 if (clientData && clientData != Py_None)
2990 udata = new wxPyUserData(clientData);
2991 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2992 shortHelp, longHelp, udata);
2993 }
2994 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){
2995 wxPyUserData* udata = NULL;
2996 if (clientData && clientData != Py_None)
2997 udata = new wxPyUserData(clientData);
2998 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2999 shortHelp, longHelp, udata);
3000 }
3001 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
3002 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3003 if (udata) {
3004 Py_INCREF(udata->m_obj);
3005 return udata->m_obj;
3006 } else {
3007 Py_INCREF(Py_None);
3008 return Py_None;
3009 }
3010 }
3011 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3012 self->SetToolClientData(id, new wxPyUserData(clientData));
3013 }
3014
3015 #include <wx/listctrl.h>
3016
3017 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3018 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3019 // Python aware sorting function for wxPyListCtrl
3020 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3021 int retval = 0;
3022 PyObject* func = (PyObject*)funcPtr;
3023 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3024
3025 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3026 PyObject* result = PyEval_CallObject(func, args);
3027 Py_DECREF(args);
3028 if (result) {
3029 retval = PyInt_AsLong(result);
3030 Py_DECREF(result);
3031 }
3032
3033 wxPyEndBlockThreads(blocked);
3034 return retval;
3035 }
3036
3037 // C++ Version of a Python aware class
3038 class wxPyListCtrl : public wxListCtrl {
3039 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3040 public:
3041 wxPyListCtrl() : wxListCtrl() {}
3042 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3043 const wxPoint& pos,
3044 const wxSize& size,
3045 long style,
3046 const wxValidator& validator,
3047 const wxString& name) :
3048 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3049
3050 bool Create(wxWindow* parent, wxWindowID id,
3051 const wxPoint& pos,
3052 const wxSize& size,
3053 long style,
3054 const wxValidator& validator,
3055 const wxString& name) {
3056 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3057 }
3058
3059 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3060 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3061
3062 // use the virtual version to avoid a confusing assert in the base class
3063 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3064 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3065
3066 PYPRIVATE;
3067 };
3068
3069 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3070
3071 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3072 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3073 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3074 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3075
3076
3077 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3078 wxListItem item;
3079 item.SetMask( wxLIST_MASK_STATE |
3080 wxLIST_MASK_TEXT |
3081 wxLIST_MASK_IMAGE |
3082 wxLIST_MASK_DATA |
3083 wxLIST_SET_ITEM |
3084 wxLIST_MASK_WIDTH |
3085 wxLIST_MASK_FORMAT
3086 );
3087 if (self->GetColumn(col, item))
3088 return new wxListItem(item);
3089 else
3090 return NULL;
3091 }
3092 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3093 wxListItem* info = new wxListItem;
3094 info->m_itemId = itemId;
3095 info->m_col = col;
3096 info->m_mask = 0xFFFF;
3097 self->GetItem(*info);
3098 return info;
3099 }
3100 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3101 wxPoint pos;
3102 self->GetItemPosition(item, pos);
3103 return pos;
3104 }
3105 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3106 wxRect rect;
3107 self->GetItemRect(item, rect, code);
3108 return rect;
3109 }
3110 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3111 if (!PyCallable_Check(func))
3112 return false;
3113 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3114 }
3115 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3116
3117
3118
3119 return (wxWindow*)self->m_mainWin;
3120
3121 }
3122
3123 #include <wx/treectrl.h>
3124 #include "wx/wxPython/pytree.h"
3125
3126 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3127 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3128 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3129 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3130
3131 static wxTreeItemId wxNullTreeItemId;
3132
3133 // C++ version of Python aware wxTreeCtrl
3134 class wxPyTreeCtrl : public wxTreeCtrl {
3135 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3136 public:
3137 wxPyTreeCtrl() : wxTreeCtrl() {}
3138 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3139 const wxPoint& pos,
3140 const wxSize& size,
3141 long style,
3142 const wxValidator& validator,
3143 const wxString& name) :
3144 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3145
3146 bool Create(wxWindow *parent, wxWindowID id,
3147 const wxPoint& pos,
3148 const wxSize& size,
3149 long style,
3150 const wxValidator& validator,
3151 const wxString& name) {
3152 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3153 }
3154
3155
3156 int OnCompareItems(const wxTreeItemId& item1,
3157 const wxTreeItemId& item2) {
3158 int rval = 0;
3159 bool found;
3160 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3161 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3162 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3163 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3164 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3165 Py_DECREF(o1);
3166 Py_DECREF(o2);
3167 }
3168 wxPyEndBlockThreads(blocked);
3169 if (! found)
3170 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3171 return rval;
3172 }
3173 PYPRIVATE;
3174 };
3175
3176 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3177
3178
3179 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3180 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3181 if (data == NULL) {
3182 data = new wxPyTreeItemData();
3183 data->SetId(item); // set the id
3184 self->SetItemData(item, data);
3185 }
3186 return data;
3187 }
3188 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3189 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3190 if (data == NULL) {
3191 data = new wxPyTreeItemData();
3192 data->SetId(item); // set the id
3193 self->SetItemData(item, data);
3194 }
3195 return data->GetData();
3196 }
3197 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3198 data->SetId(item); // set the id
3199 self->SetItemData(item, data);
3200 }
3201 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3202 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3203 if (data == NULL) {
3204 data = new wxPyTreeItemData(obj);
3205 data->SetId(item); // set the id
3206 self->SetItemData(item, data);
3207 } else
3208 data->SetData(obj);
3209 }
3210 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3211 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3212 PyObject* rval = PyList_New(0);
3213 wxArrayTreeItemIds array;
3214 size_t num, x;
3215 num = self->GetSelections(array);
3216 for (x=0; x < num; x++) {
3217 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3218 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3219 PyList_Append(rval, item);
3220 Py_DECREF(item);
3221 }
3222 wxPyEndBlockThreads(blocked);
3223 return rval;
3224 }
3225 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3226 void* cookie = 0;
3227 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3228 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3229 PyObject* tup = PyTuple_New(2);
3230 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3231 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3232 wxPyEndBlockThreads(blocked);
3233 return tup;
3234 }
3235 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3236 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3237 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3238 PyObject* tup = PyTuple_New(2);
3239 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3240 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3241 wxPyEndBlockThreads(blocked);
3242 return tup;
3243 }
3244 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3245 wxRect rect;
3246 if (self->GetBoundingRect(item, rect, textOnly)) {
3247 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3248 wxRect* r = new wxRect(rect);
3249 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3250 wxPyEndBlockThreads(blocked);
3251 return val;
3252 }
3253 else
3254 RETURN_NONE();
3255 }
3256 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3257
3258 SWIGINTERNINLINE PyObject*
3259 SWIG_From_bool (bool value)
3260 {
3261 return PyBool_FromLong(value ? 1 : 0);
3262 }
3263
3264 // C++ version of Python aware wxControl
3265 class wxPyControl : public wxControl
3266 {
3267 DECLARE_DYNAMIC_CLASS(wxPyControl)
3268 public:
3269 wxPyControl() : wxControl() {}
3270 wxPyControl(wxWindow* parent, const wxWindowID id,
3271 const wxPoint& pos = wxDefaultPosition,
3272 const wxSize& size = wxDefaultSize,
3273 long style = 0,
3274 const wxValidator& validator=wxDefaultValidator,
3275 const wxString& name = wxPyControlNameStr)
3276 : wxControl(parent, id, pos, size, style, validator, name) {}
3277
3278
3279 bool DoEraseBackground(wxDC* dc) {
3280 #ifdef __WXMSW__
3281 return wxWindow::DoEraseBackground(dc->GetHDC());
3282 #else
3283 dc->SetBackground(wxBrush(GetBackgroundColour()));
3284 dc->Clear();
3285 return true;
3286 #endif
3287 }
3288
3289 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3290 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3291 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3292 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3293
3294 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3295 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3296 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3297
3298 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3299 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3300
3301 DEC_PYCALLBACK__(InitDialog);
3302 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3303 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3304 DEC_PYCALLBACK_BOOL_(Validate);
3305
3306 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3307 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3308 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3309
3310 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3311 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3312
3313 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3314 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3315
3316 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3317
3318 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3319
3320 PYPRIVATE;
3321 };
3322
3323 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3324
3325 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3326 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3327 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3328 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3329
3330 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3331 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3332 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3333
3334 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3335 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3336
3337 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3338 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3339 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3340 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3341
3342 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3343 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3344 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3345
3346 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3347 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3348
3349 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3350 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3351
3352 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3353
3354 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3355
3356
3357
3358 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3359
3360 #include <wx/generic/dragimgg.h>
3361
3362 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3363 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3364 wxDateTime rv;
3365 self->GetRange(&rv, NULL);
3366 return rv;
3367 }
3368 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3369 wxDateTime rv;
3370 self->GetRange(NULL, &rv);
3371 return rv;
3372 }
3373 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3374 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3375 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3376 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3377 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3378 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3379 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3380 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3381 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3382 static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr);
3383
3384 #if !defined(wxUSE_SEARCHCTRL) || !wxUSE_SEARCHCTRL
3385 // define a dummy class for builds that don't have wxSearchCtrl
3386
3387 enum {
3388 wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
3389 wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN
3390 };
3391
3392 class wxSearchCtrl : public wxTextCtrl
3393 {
3394 public:
3395 wxSearchCtrl() { wxPyRaiseNotImplemented(); }
3396 wxSearchCtrl(wxWindow*, wxWindowID,
3397 const wxString&,
3398 const wxPoint&,
3399 const wxSize&,
3400 long style,
3401 const wxValidator&,
3402 const wxString& name)
3403 { wxPyRaiseNotImplemented(); }
3404
3405 bool Create( wxWindow*, wxWindowID,
3406 const wxString&,
3407 const wxPoint&,
3408 const wxSize&,
3409 long style,
3410 const wxValidator&,
3411 const wxString& name) {}
3412
3413 virtual void SetMenu( wxMenu* ) {}
3414 virtual wxMenu* GetMenu() { return NULL; }
3415
3416 // get/set search options
3417 // ----------------------
3418 virtual void ShowSearchButton( bool ) {}
3419 virtual bool IsSearchButtonVisible() const { return false; }
3420
3421 virtual void ShowCancelButton( bool ) {}
3422 virtual bool IsCancelButtonVisible() const { return false; }
3423
3424 virtual void SetDescriptiveText(const wxString& text);
3425 virtual wxString GetDescriptiveText() const;
3426 };
3427 #endif
3428
3429 #ifdef __cplusplus
3430 extern "C" {
3431 #endif
3432 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3433 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3434 return 1;
3435 }
3436
3437
3438 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3439 PyObject *pyobj = 0;
3440
3441 {
3442 #if wxUSE_UNICODE
3443 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3444 #else
3445 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3446 #endif
3447 }
3448 return pyobj;
3449 }
3450
3451
3452 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3453 PyObject *resultobj = 0;
3454 wxWindow *arg1 = (wxWindow *) 0 ;
3455 int arg2 = (int) -1 ;
3456 wxString const &arg3_defvalue = wxPyEmptyString ;
3457 wxString *arg3 = (wxString *) &arg3_defvalue ;
3458 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3459 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3460 wxSize const &arg5_defvalue = wxDefaultSize ;
3461 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3462 long arg6 = (long) 0 ;
3463 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3464 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3465 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3466 wxString *arg8 = (wxString *) &arg8_defvalue ;
3467 wxButton *result = 0 ;
3468 void *argp1 = 0 ;
3469 int res1 = 0 ;
3470 int val2 ;
3471 int ecode2 = 0 ;
3472 bool temp3 = false ;
3473 wxPoint temp4 ;
3474 wxSize temp5 ;
3475 long val6 ;
3476 int ecode6 = 0 ;
3477 void *argp7 = 0 ;
3478 int res7 = 0 ;
3479 bool temp8 = false ;
3480 PyObject * obj0 = 0 ;
3481 PyObject * obj1 = 0 ;
3482 PyObject * obj2 = 0 ;
3483 PyObject * obj3 = 0 ;
3484 PyObject * obj4 = 0 ;
3485 PyObject * obj5 = 0 ;
3486 PyObject * obj6 = 0 ;
3487 PyObject * obj7 = 0 ;
3488 char * kwnames[] = {
3489 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3490 };
3491
3492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3494 if (!SWIG_IsOK(res1)) {
3495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3496 }
3497 arg1 = reinterpret_cast< wxWindow * >(argp1);
3498 if (obj1) {
3499 ecode2 = SWIG_AsVal_int(obj1, &val2);
3500 if (!SWIG_IsOK(ecode2)) {
3501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3502 }
3503 arg2 = static_cast< int >(val2);
3504 }
3505 if (obj2) {
3506 {
3507 arg3 = wxString_in_helper(obj2);
3508 if (arg3 == NULL) SWIG_fail;
3509 temp3 = true;
3510 }
3511 }
3512 if (obj3) {
3513 {
3514 arg4 = &temp4;
3515 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3516 }
3517 }
3518 if (obj4) {
3519 {
3520 arg5 = &temp5;
3521 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3522 }
3523 }
3524 if (obj5) {
3525 ecode6 = SWIG_AsVal_long(obj5, &val6);
3526 if (!SWIG_IsOK(ecode6)) {
3527 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3528 }
3529 arg6 = static_cast< long >(val6);
3530 }
3531 if (obj6) {
3532 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3533 if (!SWIG_IsOK(res7)) {
3534 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3535 }
3536 if (!argp7) {
3537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3538 }
3539 arg7 = reinterpret_cast< wxValidator * >(argp7);
3540 }
3541 if (obj7) {
3542 {
3543 arg8 = wxString_in_helper(obj7);
3544 if (arg8 == NULL) SWIG_fail;
3545 temp8 = true;
3546 }
3547 }
3548 {
3549 if (!wxPyCheckForApp()) SWIG_fail;
3550 PyThreadState* __tstate = wxPyBeginAllowThreads();
3551 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3552 wxPyEndAllowThreads(__tstate);
3553 if (PyErr_Occurred()) SWIG_fail;
3554 }
3555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3556 {
3557 if (temp3)
3558 delete arg3;
3559 }
3560 {
3561 if (temp8)
3562 delete arg8;
3563 }
3564 return resultobj;
3565 fail:
3566 {
3567 if (temp3)
3568 delete arg3;
3569 }
3570 {
3571 if (temp8)
3572 delete arg8;
3573 }
3574 return NULL;
3575 }
3576
3577
3578 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3579 PyObject *resultobj = 0;
3580 wxButton *result = 0 ;
3581
3582 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3583 {
3584 if (!wxPyCheckForApp()) SWIG_fail;
3585 PyThreadState* __tstate = wxPyBeginAllowThreads();
3586 result = (wxButton *)new wxButton();
3587 wxPyEndAllowThreads(__tstate);
3588 if (PyErr_Occurred()) SWIG_fail;
3589 }
3590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3591 return resultobj;
3592 fail:
3593 return NULL;
3594 }
3595
3596
3597 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3598 PyObject *resultobj = 0;
3599 wxButton *arg1 = (wxButton *) 0 ;
3600 wxWindow *arg2 = (wxWindow *) 0 ;
3601 int arg3 = (int) -1 ;
3602 wxString const &arg4_defvalue = wxPyEmptyString ;
3603 wxString *arg4 = (wxString *) &arg4_defvalue ;
3604 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3605 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3606 wxSize const &arg6_defvalue = wxDefaultSize ;
3607 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3608 long arg7 = (long) 0 ;
3609 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3610 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3611 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3612 wxString *arg9 = (wxString *) &arg9_defvalue ;
3613 bool result;
3614 void *argp1 = 0 ;
3615 int res1 = 0 ;
3616 void *argp2 = 0 ;
3617 int res2 = 0 ;
3618 int val3 ;
3619 int ecode3 = 0 ;
3620 bool temp4 = false ;
3621 wxPoint temp5 ;
3622 wxSize temp6 ;
3623 long val7 ;
3624 int ecode7 = 0 ;
3625 void *argp8 = 0 ;
3626 int res8 = 0 ;
3627 bool temp9 = false ;
3628 PyObject * obj0 = 0 ;
3629 PyObject * obj1 = 0 ;
3630 PyObject * obj2 = 0 ;
3631 PyObject * obj3 = 0 ;
3632 PyObject * obj4 = 0 ;
3633 PyObject * obj5 = 0 ;
3634 PyObject * obj6 = 0 ;
3635 PyObject * obj7 = 0 ;
3636 PyObject * obj8 = 0 ;
3637 char * kwnames[] = {
3638 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3639 };
3640
3641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3643 if (!SWIG_IsOK(res1)) {
3644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3645 }
3646 arg1 = reinterpret_cast< wxButton * >(argp1);
3647 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3648 if (!SWIG_IsOK(res2)) {
3649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3650 }
3651 arg2 = reinterpret_cast< wxWindow * >(argp2);
3652 if (obj2) {
3653 ecode3 = SWIG_AsVal_int(obj2, &val3);
3654 if (!SWIG_IsOK(ecode3)) {
3655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3656 }
3657 arg3 = static_cast< int >(val3);
3658 }
3659 if (obj3) {
3660 {
3661 arg4 = wxString_in_helper(obj3);
3662 if (arg4 == NULL) SWIG_fail;
3663 temp4 = true;
3664 }
3665 }
3666 if (obj4) {
3667 {
3668 arg5 = &temp5;
3669 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3670 }
3671 }
3672 if (obj5) {
3673 {
3674 arg6 = &temp6;
3675 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3676 }
3677 }
3678 if (obj6) {
3679 ecode7 = SWIG_AsVal_long(obj6, &val7);
3680 if (!SWIG_IsOK(ecode7)) {
3681 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3682 }
3683 arg7 = static_cast< long >(val7);
3684 }
3685 if (obj7) {
3686 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3687 if (!SWIG_IsOK(res8)) {
3688 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3689 }
3690 if (!argp8) {
3691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3692 }
3693 arg8 = reinterpret_cast< wxValidator * >(argp8);
3694 }
3695 if (obj8) {
3696 {
3697 arg9 = wxString_in_helper(obj8);
3698 if (arg9 == NULL) SWIG_fail;
3699 temp9 = true;
3700 }
3701 }
3702 {
3703 PyThreadState* __tstate = wxPyBeginAllowThreads();
3704 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3705 wxPyEndAllowThreads(__tstate);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 }
3708 {
3709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3710 }
3711 {
3712 if (temp4)
3713 delete arg4;
3714 }
3715 {
3716 if (temp9)
3717 delete arg9;
3718 }
3719 return resultobj;
3720 fail:
3721 {
3722 if (temp4)
3723 delete arg4;
3724 }
3725 {
3726 if (temp9)
3727 delete arg9;
3728 }
3729 return NULL;
3730 }
3731
3732
3733 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3734 PyObject *resultobj = 0;
3735 wxButton *arg1 = (wxButton *) 0 ;
3736 wxWindow *result = 0 ;
3737 void *argp1 = 0 ;
3738 int res1 = 0 ;
3739 PyObject *swig_obj[1] ;
3740
3741 if (!args) SWIG_fail;
3742 swig_obj[0] = args;
3743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3744 if (!SWIG_IsOK(res1)) {
3745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3746 }
3747 arg1 = reinterpret_cast< wxButton * >(argp1);
3748 {
3749 PyThreadState* __tstate = wxPyBeginAllowThreads();
3750 result = (wxWindow *)(arg1)->SetDefault();
3751 wxPyEndAllowThreads(__tstate);
3752 if (PyErr_Occurred()) SWIG_fail;
3753 }
3754 {
3755 resultobj = wxPyMake_wxObject(result, 0);
3756 }
3757 return resultobj;
3758 fail:
3759 return NULL;
3760 }
3761
3762
3763 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3764 PyObject *resultobj = 0;
3765 wxSize result;
3766
3767 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3768 {
3769 PyThreadState* __tstate = wxPyBeginAllowThreads();
3770 result = wxButton::GetDefaultSize();
3771 wxPyEndAllowThreads(__tstate);
3772 if (PyErr_Occurred()) SWIG_fail;
3773 }
3774 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3775 return resultobj;
3776 fail:
3777 return NULL;
3778 }
3779
3780
3781 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3782 PyObject *resultobj = 0;
3783 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3784 SwigValueWrapper<wxVisualAttributes > result;
3785 int val1 ;
3786 int ecode1 = 0 ;
3787 PyObject * obj0 = 0 ;
3788 char * kwnames[] = {
3789 (char *) "variant", NULL
3790 };
3791
3792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3793 if (obj0) {
3794 ecode1 = SWIG_AsVal_int(obj0, &val1);
3795 if (!SWIG_IsOK(ecode1)) {
3796 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3797 }
3798 arg1 = static_cast< wxWindowVariant >(val1);
3799 }
3800 {
3801 if (!wxPyCheckForApp()) SWIG_fail;
3802 PyThreadState* __tstate = wxPyBeginAllowThreads();
3803 result = wxButton::GetClassDefaultAttributes(arg1);
3804 wxPyEndAllowThreads(__tstate);
3805 if (PyErr_Occurred()) SWIG_fail;
3806 }
3807 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3808 return resultobj;
3809 fail:
3810 return NULL;
3811 }
3812
3813
3814 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3815 PyObject *obj;
3816 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3817 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3818 return SWIG_Py_Void();
3819 }
3820
3821 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3822 return SWIG_Python_InitShadowInstance(args);
3823 }
3824
3825 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3826 PyObject *resultobj = 0;
3827 wxWindow *arg1 = (wxWindow *) 0 ;
3828 int arg2 = (int) -1 ;
3829 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3830 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3831 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3832 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3833 wxSize const &arg5_defvalue = wxDefaultSize ;
3834 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3835 long arg6 = (long) wxBU_AUTODRAW ;
3836 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3837 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3838 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3839 wxString *arg8 = (wxString *) &arg8_defvalue ;
3840 wxBitmapButton *result = 0 ;
3841 void *argp1 = 0 ;
3842 int res1 = 0 ;
3843 int val2 ;
3844 int ecode2 = 0 ;
3845 void *argp3 = 0 ;
3846 int res3 = 0 ;
3847 wxPoint temp4 ;
3848 wxSize temp5 ;
3849 long val6 ;
3850 int ecode6 = 0 ;
3851 void *argp7 = 0 ;
3852 int res7 = 0 ;
3853 bool temp8 = false ;
3854 PyObject * obj0 = 0 ;
3855 PyObject * obj1 = 0 ;
3856 PyObject * obj2 = 0 ;
3857 PyObject * obj3 = 0 ;
3858 PyObject * obj4 = 0 ;
3859 PyObject * obj5 = 0 ;
3860 PyObject * obj6 = 0 ;
3861 PyObject * obj7 = 0 ;
3862 char * kwnames[] = {
3863 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3864 };
3865
3866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3868 if (!SWIG_IsOK(res1)) {
3869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3870 }
3871 arg1 = reinterpret_cast< wxWindow * >(argp1);
3872 if (obj1) {
3873 ecode2 = SWIG_AsVal_int(obj1, &val2);
3874 if (!SWIG_IsOK(ecode2)) {
3875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3876 }
3877 arg2 = static_cast< int >(val2);
3878 }
3879 if (obj2) {
3880 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3881 if (!SWIG_IsOK(res3)) {
3882 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3883 }
3884 if (!argp3) {
3885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3886 }
3887 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3888 }
3889 if (obj3) {
3890 {
3891 arg4 = &temp4;
3892 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3893 }
3894 }
3895 if (obj4) {
3896 {
3897 arg5 = &temp5;
3898 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3899 }
3900 }
3901 if (obj5) {
3902 ecode6 = SWIG_AsVal_long(obj5, &val6);
3903 if (!SWIG_IsOK(ecode6)) {
3904 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3905 }
3906 arg6 = static_cast< long >(val6);
3907 }
3908 if (obj6) {
3909 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3910 if (!SWIG_IsOK(res7)) {
3911 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3912 }
3913 if (!argp7) {
3914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3915 }
3916 arg7 = reinterpret_cast< wxValidator * >(argp7);
3917 }
3918 if (obj7) {
3919 {
3920 arg8 = wxString_in_helper(obj7);
3921 if (arg8 == NULL) SWIG_fail;
3922 temp8 = true;
3923 }
3924 }
3925 {
3926 if (!wxPyCheckForApp()) SWIG_fail;
3927 PyThreadState* __tstate = wxPyBeginAllowThreads();
3928 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3929 wxPyEndAllowThreads(__tstate);
3930 if (PyErr_Occurred()) SWIG_fail;
3931 }
3932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3933 {
3934 if (temp8)
3935 delete arg8;
3936 }
3937 return resultobj;
3938 fail:
3939 {
3940 if (temp8)
3941 delete arg8;
3942 }
3943 return NULL;
3944 }
3945
3946
3947 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3948 PyObject *resultobj = 0;
3949 wxBitmapButton *result = 0 ;
3950
3951 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3952 {
3953 if (!wxPyCheckForApp()) SWIG_fail;
3954 PyThreadState* __tstate = wxPyBeginAllowThreads();
3955 result = (wxBitmapButton *)new wxBitmapButton();
3956 wxPyEndAllowThreads(__tstate);
3957 if (PyErr_Occurred()) SWIG_fail;
3958 }
3959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3960 return resultobj;
3961 fail:
3962 return NULL;
3963 }
3964
3965
3966 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3967 PyObject *resultobj = 0;
3968 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3969 wxWindow *arg2 = (wxWindow *) 0 ;
3970 int arg3 = (int) -1 ;
3971 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3972 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3973 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3974 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3975 wxSize const &arg6_defvalue = wxDefaultSize ;
3976 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3977 long arg7 = (long) wxBU_AUTODRAW ;
3978 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3979 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3980 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3981 wxString *arg9 = (wxString *) &arg9_defvalue ;
3982 bool result;
3983 void *argp1 = 0 ;
3984 int res1 = 0 ;
3985 void *argp2 = 0 ;
3986 int res2 = 0 ;
3987 int val3 ;
3988 int ecode3 = 0 ;
3989 void *argp4 = 0 ;
3990 int res4 = 0 ;
3991 wxPoint temp5 ;
3992 wxSize temp6 ;
3993 long val7 ;
3994 int ecode7 = 0 ;
3995 void *argp8 = 0 ;
3996 int res8 = 0 ;
3997 bool temp9 = false ;
3998 PyObject * obj0 = 0 ;
3999 PyObject * obj1 = 0 ;
4000 PyObject * obj2 = 0 ;
4001 PyObject * obj3 = 0 ;
4002 PyObject * obj4 = 0 ;
4003 PyObject * obj5 = 0 ;
4004 PyObject * obj6 = 0 ;
4005 PyObject * obj7 = 0 ;
4006 PyObject * obj8 = 0 ;
4007 char * kwnames[] = {
4008 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4009 };
4010
4011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4013 if (!SWIG_IsOK(res1)) {
4014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4015 }
4016 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4017 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4018 if (!SWIG_IsOK(res2)) {
4019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4020 }
4021 arg2 = reinterpret_cast< wxWindow * >(argp2);
4022 if (obj2) {
4023 ecode3 = SWIG_AsVal_int(obj2, &val3);
4024 if (!SWIG_IsOK(ecode3)) {
4025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
4026 }
4027 arg3 = static_cast< int >(val3);
4028 }
4029 if (obj3) {
4030 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
4031 if (!SWIG_IsOK(res4)) {
4032 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4033 }
4034 if (!argp4) {
4035 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4036 }
4037 arg4 = reinterpret_cast< wxBitmap * >(argp4);
4038 }
4039 if (obj4) {
4040 {
4041 arg5 = &temp5;
4042 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4043 }
4044 }
4045 if (obj5) {
4046 {
4047 arg6 = &temp6;
4048 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4049 }
4050 }
4051 if (obj6) {
4052 ecode7 = SWIG_AsVal_long(obj6, &val7);
4053 if (!SWIG_IsOK(ecode7)) {
4054 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4055 }
4056 arg7 = static_cast< long >(val7);
4057 }
4058 if (obj7) {
4059 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4060 if (!SWIG_IsOK(res8)) {
4061 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4062 }
4063 if (!argp8) {
4064 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4065 }
4066 arg8 = reinterpret_cast< wxValidator * >(argp8);
4067 }
4068 if (obj8) {
4069 {
4070 arg9 = wxString_in_helper(obj8);
4071 if (arg9 == NULL) SWIG_fail;
4072 temp9 = true;
4073 }
4074 }
4075 {
4076 PyThreadState* __tstate = wxPyBeginAllowThreads();
4077 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4078 wxPyEndAllowThreads(__tstate);
4079 if (PyErr_Occurred()) SWIG_fail;
4080 }
4081 {
4082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4083 }
4084 {
4085 if (temp9)
4086 delete arg9;
4087 }
4088 return resultobj;
4089 fail:
4090 {
4091 if (temp9)
4092 delete arg9;
4093 }
4094 return NULL;
4095 }
4096
4097
4098 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4099 PyObject *resultobj = 0;
4100 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4101 wxBitmap result;
4102 void *argp1 = 0 ;
4103 int res1 = 0 ;
4104 PyObject *swig_obj[1] ;
4105
4106 if (!args) SWIG_fail;
4107 swig_obj[0] = args;
4108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4109 if (!SWIG_IsOK(res1)) {
4110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4111 }
4112 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4113 {
4114 PyThreadState* __tstate = wxPyBeginAllowThreads();
4115 result = (arg1)->GetBitmapLabel();
4116 wxPyEndAllowThreads(__tstate);
4117 if (PyErr_Occurred()) SWIG_fail;
4118 }
4119 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4120 return resultobj;
4121 fail:
4122 return NULL;
4123 }
4124
4125
4126 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4127 PyObject *resultobj = 0;
4128 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4129 wxBitmap result;
4130 void *argp1 = 0 ;
4131 int res1 = 0 ;
4132 PyObject *swig_obj[1] ;
4133
4134 if (!args) SWIG_fail;
4135 swig_obj[0] = args;
4136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4137 if (!SWIG_IsOK(res1)) {
4138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4139 }
4140 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4141 {
4142 PyThreadState* __tstate = wxPyBeginAllowThreads();
4143 result = (arg1)->GetBitmapDisabled();
4144 wxPyEndAllowThreads(__tstate);
4145 if (PyErr_Occurred()) SWIG_fail;
4146 }
4147 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4148 return resultobj;
4149 fail:
4150 return NULL;
4151 }
4152
4153
4154 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4155 PyObject *resultobj = 0;
4156 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4157 wxBitmap result;
4158 void *argp1 = 0 ;
4159 int res1 = 0 ;
4160 PyObject *swig_obj[1] ;
4161
4162 if (!args) SWIG_fail;
4163 swig_obj[0] = args;
4164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4165 if (!SWIG_IsOK(res1)) {
4166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4167 }
4168 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4169 {
4170 PyThreadState* __tstate = wxPyBeginAllowThreads();
4171 result = (arg1)->GetBitmapFocus();
4172 wxPyEndAllowThreads(__tstate);
4173 if (PyErr_Occurred()) SWIG_fail;
4174 }
4175 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4176 return resultobj;
4177 fail:
4178 return NULL;
4179 }
4180
4181
4182 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4183 PyObject *resultobj = 0;
4184 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4185 wxBitmap result;
4186 void *argp1 = 0 ;
4187 int res1 = 0 ;
4188 PyObject *swig_obj[1] ;
4189
4190 if (!args) SWIG_fail;
4191 swig_obj[0] = args;
4192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4193 if (!SWIG_IsOK(res1)) {
4194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4195 }
4196 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4197 {
4198 PyThreadState* __tstate = wxPyBeginAllowThreads();
4199 result = (arg1)->GetBitmapSelected();
4200 wxPyEndAllowThreads(__tstate);
4201 if (PyErr_Occurred()) SWIG_fail;
4202 }
4203 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4204 return resultobj;
4205 fail:
4206 return NULL;
4207 }
4208
4209
4210 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4211 PyObject *resultobj = 0;
4212 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4213 wxBitmap result;
4214 void *argp1 = 0 ;
4215 int res1 = 0 ;
4216 PyObject *swig_obj[1] ;
4217
4218 if (!args) SWIG_fail;
4219 swig_obj[0] = args;
4220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4221 if (!SWIG_IsOK(res1)) {
4222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4223 }
4224 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4225 {
4226 PyThreadState* __tstate = wxPyBeginAllowThreads();
4227 result = (arg1)->GetBitmapHover();
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4239 PyObject *resultobj = 0;
4240 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4241 wxBitmap *arg2 = 0 ;
4242 void *argp1 = 0 ;
4243 int res1 = 0 ;
4244 void *argp2 = 0 ;
4245 int res2 = 0 ;
4246 PyObject * obj0 = 0 ;
4247 PyObject * obj1 = 0 ;
4248 char * kwnames[] = {
4249 (char *) "self",(char *) "bitmap", NULL
4250 };
4251
4252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4254 if (!SWIG_IsOK(res1)) {
4255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4256 }
4257 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4259 if (!SWIG_IsOK(res2)) {
4260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4261 }
4262 if (!argp2) {
4263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4264 }
4265 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4266 {
4267 PyThreadState* __tstate = wxPyBeginAllowThreads();
4268 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4269 wxPyEndAllowThreads(__tstate);
4270 if (PyErr_Occurred()) SWIG_fail;
4271 }
4272 resultobj = SWIG_Py_Void();
4273 return resultobj;
4274 fail:
4275 return NULL;
4276 }
4277
4278
4279 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4280 PyObject *resultobj = 0;
4281 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4282 wxBitmap *arg2 = 0 ;
4283 void *argp1 = 0 ;
4284 int res1 = 0 ;
4285 void *argp2 = 0 ;
4286 int res2 = 0 ;
4287 PyObject * obj0 = 0 ;
4288 PyObject * obj1 = 0 ;
4289 char * kwnames[] = {
4290 (char *) "self",(char *) "bitmap", NULL
4291 };
4292
4293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4295 if (!SWIG_IsOK(res1)) {
4296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4297 }
4298 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4300 if (!SWIG_IsOK(res2)) {
4301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4302 }
4303 if (!argp2) {
4304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4305 }
4306 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4307 {
4308 PyThreadState* __tstate = wxPyBeginAllowThreads();
4309 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4310 wxPyEndAllowThreads(__tstate);
4311 if (PyErr_Occurred()) SWIG_fail;
4312 }
4313 resultobj = SWIG_Py_Void();
4314 return resultobj;
4315 fail:
4316 return NULL;
4317 }
4318
4319
4320 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4321 PyObject *resultobj = 0;
4322 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4323 wxBitmap *arg2 = 0 ;
4324 void *argp1 = 0 ;
4325 int res1 = 0 ;
4326 void *argp2 = 0 ;
4327 int res2 = 0 ;
4328 PyObject * obj0 = 0 ;
4329 PyObject * obj1 = 0 ;
4330 char * kwnames[] = {
4331 (char *) "self",(char *) "bitmap", NULL
4332 };
4333
4334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4336 if (!SWIG_IsOK(res1)) {
4337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4338 }
4339 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4341 if (!SWIG_IsOK(res2)) {
4342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4343 }
4344 if (!argp2) {
4345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4346 }
4347 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4348 {
4349 PyThreadState* __tstate = wxPyBeginAllowThreads();
4350 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4351 wxPyEndAllowThreads(__tstate);
4352 if (PyErr_Occurred()) SWIG_fail;
4353 }
4354 resultobj = SWIG_Py_Void();
4355 return resultobj;
4356 fail:
4357 return NULL;
4358 }
4359
4360
4361 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4362 PyObject *resultobj = 0;
4363 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4364 wxBitmap *arg2 = 0 ;
4365 void *argp1 = 0 ;
4366 int res1 = 0 ;
4367 void *argp2 = 0 ;
4368 int res2 = 0 ;
4369 PyObject * obj0 = 0 ;
4370 PyObject * obj1 = 0 ;
4371 char * kwnames[] = {
4372 (char *) "self",(char *) "bitmap", NULL
4373 };
4374
4375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4377 if (!SWIG_IsOK(res1)) {
4378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4379 }
4380 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4381 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4382 if (!SWIG_IsOK(res2)) {
4383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4384 }
4385 if (!argp2) {
4386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4387 }
4388 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4389 {
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4392 wxPyEndAllowThreads(__tstate);
4393 if (PyErr_Occurred()) SWIG_fail;
4394 }
4395 resultobj = SWIG_Py_Void();
4396 return resultobj;
4397 fail:
4398 return NULL;
4399 }
4400
4401
4402 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4403 PyObject *resultobj = 0;
4404 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4405 wxBitmap *arg2 = 0 ;
4406 void *argp1 = 0 ;
4407 int res1 = 0 ;
4408 void *argp2 = 0 ;
4409 int res2 = 0 ;
4410 PyObject * obj0 = 0 ;
4411 PyObject * obj1 = 0 ;
4412 char * kwnames[] = {
4413 (char *) "self",(char *) "hover", NULL
4414 };
4415
4416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4418 if (!SWIG_IsOK(res1)) {
4419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4420 }
4421 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4422 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4423 if (!SWIG_IsOK(res2)) {
4424 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4425 }
4426 if (!argp2) {
4427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4428 }
4429 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4430 {
4431 PyThreadState* __tstate = wxPyBeginAllowThreads();
4432 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4433 wxPyEndAllowThreads(__tstate);
4434 if (PyErr_Occurred()) SWIG_fail;
4435 }
4436 resultobj = SWIG_Py_Void();
4437 return resultobj;
4438 fail:
4439 return NULL;
4440 }
4441
4442
4443 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4444 PyObject *resultobj = 0;
4445 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4446 int arg2 ;
4447 int arg3 ;
4448 void *argp1 = 0 ;
4449 int res1 = 0 ;
4450 int val2 ;
4451 int ecode2 = 0 ;
4452 int val3 ;
4453 int ecode3 = 0 ;
4454 PyObject * obj0 = 0 ;
4455 PyObject * obj1 = 0 ;
4456 PyObject * obj2 = 0 ;
4457 char * kwnames[] = {
4458 (char *) "self",(char *) "x",(char *) "y", NULL
4459 };
4460
4461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4463 if (!SWIG_IsOK(res1)) {
4464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4465 }
4466 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4467 ecode2 = SWIG_AsVal_int(obj1, &val2);
4468 if (!SWIG_IsOK(ecode2)) {
4469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4470 }
4471 arg2 = static_cast< int >(val2);
4472 ecode3 = SWIG_AsVal_int(obj2, &val3);
4473 if (!SWIG_IsOK(ecode3)) {
4474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4475 }
4476 arg3 = static_cast< int >(val3);
4477 {
4478 PyThreadState* __tstate = wxPyBeginAllowThreads();
4479 (arg1)->SetMargins(arg2,arg3);
4480 wxPyEndAllowThreads(__tstate);
4481 if (PyErr_Occurred()) SWIG_fail;
4482 }
4483 resultobj = SWIG_Py_Void();
4484 return resultobj;
4485 fail:
4486 return NULL;
4487 }
4488
4489
4490 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4491 PyObject *resultobj = 0;
4492 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4493 int result;
4494 void *argp1 = 0 ;
4495 int res1 = 0 ;
4496 PyObject *swig_obj[1] ;
4497
4498 if (!args) SWIG_fail;
4499 swig_obj[0] = args;
4500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4501 if (!SWIG_IsOK(res1)) {
4502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4503 }
4504 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4505 {
4506 PyThreadState* __tstate = wxPyBeginAllowThreads();
4507 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4508 wxPyEndAllowThreads(__tstate);
4509 if (PyErr_Occurred()) SWIG_fail;
4510 }
4511 resultobj = SWIG_From_int(static_cast< int >(result));
4512 return resultobj;
4513 fail:
4514 return NULL;
4515 }
4516
4517
4518 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4519 PyObject *resultobj = 0;
4520 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4521 int result;
4522 void *argp1 = 0 ;
4523 int res1 = 0 ;
4524 PyObject *swig_obj[1] ;
4525
4526 if (!args) SWIG_fail;
4527 swig_obj[0] = args;
4528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4529 if (!SWIG_IsOK(res1)) {
4530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4531 }
4532 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4533 {
4534 PyThreadState* __tstate = wxPyBeginAllowThreads();
4535 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4536 wxPyEndAllowThreads(__tstate);
4537 if (PyErr_Occurred()) SWIG_fail;
4538 }
4539 resultobj = SWIG_From_int(static_cast< int >(result));
4540 return resultobj;
4541 fail:
4542 return NULL;
4543 }
4544
4545
4546 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4547 PyObject *obj;
4548 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4549 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4550 return SWIG_Py_Void();
4551 }
4552
4553 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4554 return SWIG_Python_InitShadowInstance(args);
4555 }
4556
4557 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4558 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4559 return 1;
4560 }
4561
4562
4563 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4564 PyObject *pyobj = 0;
4565
4566 {
4567 #if wxUSE_UNICODE
4568 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4569 #else
4570 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4571 #endif
4572 }
4573 return pyobj;
4574 }
4575
4576
4577 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4578 PyObject *resultobj = 0;
4579 wxWindow *arg1 = (wxWindow *) 0 ;
4580 int arg2 = (int) -1 ;
4581 wxString const &arg3_defvalue = wxPyEmptyString ;
4582 wxString *arg3 = (wxString *) &arg3_defvalue ;
4583 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4584 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4585 wxSize const &arg5_defvalue = wxDefaultSize ;
4586 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4587 long arg6 = (long) 0 ;
4588 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4589 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4590 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4591 wxString *arg8 = (wxString *) &arg8_defvalue ;
4592 wxCheckBox *result = 0 ;
4593 void *argp1 = 0 ;
4594 int res1 = 0 ;
4595 int val2 ;
4596 int ecode2 = 0 ;
4597 bool temp3 = false ;
4598 wxPoint temp4 ;
4599 wxSize temp5 ;
4600 long val6 ;
4601 int ecode6 = 0 ;
4602 void *argp7 = 0 ;
4603 int res7 = 0 ;
4604 bool temp8 = false ;
4605 PyObject * obj0 = 0 ;
4606 PyObject * obj1 = 0 ;
4607 PyObject * obj2 = 0 ;
4608 PyObject * obj3 = 0 ;
4609 PyObject * obj4 = 0 ;
4610 PyObject * obj5 = 0 ;
4611 PyObject * obj6 = 0 ;
4612 PyObject * obj7 = 0 ;
4613 char * kwnames[] = {
4614 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4615 };
4616
4617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4619 if (!SWIG_IsOK(res1)) {
4620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4621 }
4622 arg1 = reinterpret_cast< wxWindow * >(argp1);
4623 if (obj1) {
4624 ecode2 = SWIG_AsVal_int(obj1, &val2);
4625 if (!SWIG_IsOK(ecode2)) {
4626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4627 }
4628 arg2 = static_cast< int >(val2);
4629 }
4630 if (obj2) {
4631 {
4632 arg3 = wxString_in_helper(obj2);
4633 if (arg3 == NULL) SWIG_fail;
4634 temp3 = true;
4635 }
4636 }
4637 if (obj3) {
4638 {
4639 arg4 = &temp4;
4640 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4641 }
4642 }
4643 if (obj4) {
4644 {
4645 arg5 = &temp5;
4646 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4647 }
4648 }
4649 if (obj5) {
4650 ecode6 = SWIG_AsVal_long(obj5, &val6);
4651 if (!SWIG_IsOK(ecode6)) {
4652 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4653 }
4654 arg6 = static_cast< long >(val6);
4655 }
4656 if (obj6) {
4657 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4658 if (!SWIG_IsOK(res7)) {
4659 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4660 }
4661 if (!argp7) {
4662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4663 }
4664 arg7 = reinterpret_cast< wxValidator * >(argp7);
4665 }
4666 if (obj7) {
4667 {
4668 arg8 = wxString_in_helper(obj7);
4669 if (arg8 == NULL) SWIG_fail;
4670 temp8 = true;
4671 }
4672 }
4673 {
4674 if (!wxPyCheckForApp()) SWIG_fail;
4675 PyThreadState* __tstate = wxPyBeginAllowThreads();
4676 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4677 wxPyEndAllowThreads(__tstate);
4678 if (PyErr_Occurred()) SWIG_fail;
4679 }
4680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4681 {
4682 if (temp3)
4683 delete arg3;
4684 }
4685 {
4686 if (temp8)
4687 delete arg8;
4688 }
4689 return resultobj;
4690 fail:
4691 {
4692 if (temp3)
4693 delete arg3;
4694 }
4695 {
4696 if (temp8)
4697 delete arg8;
4698 }
4699 return NULL;
4700 }
4701
4702
4703 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4704 PyObject *resultobj = 0;
4705 wxCheckBox *result = 0 ;
4706
4707 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4708 {
4709 if (!wxPyCheckForApp()) SWIG_fail;
4710 PyThreadState* __tstate = wxPyBeginAllowThreads();
4711 result = (wxCheckBox *)new wxCheckBox();
4712 wxPyEndAllowThreads(__tstate);
4713 if (PyErr_Occurred()) SWIG_fail;
4714 }
4715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4716 return resultobj;
4717 fail:
4718 return NULL;
4719 }
4720
4721
4722 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4723 PyObject *resultobj = 0;
4724 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4725 wxWindow *arg2 = (wxWindow *) 0 ;
4726 int arg3 = (int) -1 ;
4727 wxString const &arg4_defvalue = wxPyEmptyString ;
4728 wxString *arg4 = (wxString *) &arg4_defvalue ;
4729 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4730 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4731 wxSize const &arg6_defvalue = wxDefaultSize ;
4732 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4733 long arg7 = (long) 0 ;
4734 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4735 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4736 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4737 wxString *arg9 = (wxString *) &arg9_defvalue ;
4738 bool result;
4739 void *argp1 = 0 ;
4740 int res1 = 0 ;
4741 void *argp2 = 0 ;
4742 int res2 = 0 ;
4743 int val3 ;
4744 int ecode3 = 0 ;
4745 bool temp4 = false ;
4746 wxPoint temp5 ;
4747 wxSize temp6 ;
4748 long val7 ;
4749 int ecode7 = 0 ;
4750 void *argp8 = 0 ;
4751 int res8 = 0 ;
4752 bool temp9 = false ;
4753 PyObject * obj0 = 0 ;
4754 PyObject * obj1 = 0 ;
4755 PyObject * obj2 = 0 ;
4756 PyObject * obj3 = 0 ;
4757 PyObject * obj4 = 0 ;
4758 PyObject * obj5 = 0 ;
4759 PyObject * obj6 = 0 ;
4760 PyObject * obj7 = 0 ;
4761 PyObject * obj8 = 0 ;
4762 char * kwnames[] = {
4763 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4764 };
4765
4766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4768 if (!SWIG_IsOK(res1)) {
4769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4770 }
4771 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4772 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4773 if (!SWIG_IsOK(res2)) {
4774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4775 }
4776 arg2 = reinterpret_cast< wxWindow * >(argp2);
4777 if (obj2) {
4778 ecode3 = SWIG_AsVal_int(obj2, &val3);
4779 if (!SWIG_IsOK(ecode3)) {
4780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4781 }
4782 arg3 = static_cast< int >(val3);
4783 }
4784 if (obj3) {
4785 {
4786 arg4 = wxString_in_helper(obj3);
4787 if (arg4 == NULL) SWIG_fail;
4788 temp4 = true;
4789 }
4790 }
4791 if (obj4) {
4792 {
4793 arg5 = &temp5;
4794 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4795 }
4796 }
4797 if (obj5) {
4798 {
4799 arg6 = &temp6;
4800 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4801 }
4802 }
4803 if (obj6) {
4804 ecode7 = SWIG_AsVal_long(obj6, &val7);
4805 if (!SWIG_IsOK(ecode7)) {
4806 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4807 }
4808 arg7 = static_cast< long >(val7);
4809 }
4810 if (obj7) {
4811 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4812 if (!SWIG_IsOK(res8)) {
4813 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4814 }
4815 if (!argp8) {
4816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4817 }
4818 arg8 = reinterpret_cast< wxValidator * >(argp8);
4819 }
4820 if (obj8) {
4821 {
4822 arg9 = wxString_in_helper(obj8);
4823 if (arg9 == NULL) SWIG_fail;
4824 temp9 = true;
4825 }
4826 }
4827 {
4828 PyThreadState* __tstate = wxPyBeginAllowThreads();
4829 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4830 wxPyEndAllowThreads(__tstate);
4831 if (PyErr_Occurred()) SWIG_fail;
4832 }
4833 {
4834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4835 }
4836 {
4837 if (temp4)
4838 delete arg4;
4839 }
4840 {
4841 if (temp9)
4842 delete arg9;
4843 }
4844 return resultobj;
4845 fail:
4846 {
4847 if (temp4)
4848 delete arg4;
4849 }
4850 {
4851 if (temp9)
4852 delete arg9;
4853 }
4854 return NULL;
4855 }
4856
4857
4858 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4859 PyObject *resultobj = 0;
4860 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4861 bool result;
4862 void *argp1 = 0 ;
4863 int res1 = 0 ;
4864 PyObject *swig_obj[1] ;
4865
4866 if (!args) SWIG_fail;
4867 swig_obj[0] = args;
4868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4869 if (!SWIG_IsOK(res1)) {
4870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4871 }
4872 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4873 {
4874 PyThreadState* __tstate = wxPyBeginAllowThreads();
4875 result = (bool)(arg1)->GetValue();
4876 wxPyEndAllowThreads(__tstate);
4877 if (PyErr_Occurred()) SWIG_fail;
4878 }
4879 {
4880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4881 }
4882 return resultobj;
4883 fail:
4884 return NULL;
4885 }
4886
4887
4888 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4889 PyObject *resultobj = 0;
4890 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4891 bool result;
4892 void *argp1 = 0 ;
4893 int res1 = 0 ;
4894 PyObject *swig_obj[1] ;
4895
4896 if (!args) SWIG_fail;
4897 swig_obj[0] = args;
4898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4899 if (!SWIG_IsOK(res1)) {
4900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4901 }
4902 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4903 {
4904 PyThreadState* __tstate = wxPyBeginAllowThreads();
4905 result = (bool)(arg1)->IsChecked();
4906 wxPyEndAllowThreads(__tstate);
4907 if (PyErr_Occurred()) SWIG_fail;
4908 }
4909 {
4910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4911 }
4912 return resultobj;
4913 fail:
4914 return NULL;
4915 }
4916
4917
4918 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4919 PyObject *resultobj = 0;
4920 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4921 bool arg2 ;
4922 void *argp1 = 0 ;
4923 int res1 = 0 ;
4924 bool val2 ;
4925 int ecode2 = 0 ;
4926 PyObject * obj0 = 0 ;
4927 PyObject * obj1 = 0 ;
4928 char * kwnames[] = {
4929 (char *) "self",(char *) "state", NULL
4930 };
4931
4932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4934 if (!SWIG_IsOK(res1)) {
4935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4936 }
4937 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4938 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4939 if (!SWIG_IsOK(ecode2)) {
4940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4941 }
4942 arg2 = static_cast< bool >(val2);
4943 {
4944 PyThreadState* __tstate = wxPyBeginAllowThreads();
4945 (arg1)->SetValue(arg2);
4946 wxPyEndAllowThreads(__tstate);
4947 if (PyErr_Occurred()) SWIG_fail;
4948 }
4949 resultobj = SWIG_Py_Void();
4950 return resultobj;
4951 fail:
4952 return NULL;
4953 }
4954
4955
4956 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4957 PyObject *resultobj = 0;
4958 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4959 wxCheckBoxState result;
4960 void *argp1 = 0 ;
4961 int res1 = 0 ;
4962 PyObject *swig_obj[1] ;
4963
4964 if (!args) SWIG_fail;
4965 swig_obj[0] = args;
4966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4967 if (!SWIG_IsOK(res1)) {
4968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4969 }
4970 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4971 {
4972 PyThreadState* __tstate = wxPyBeginAllowThreads();
4973 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4974 wxPyEndAllowThreads(__tstate);
4975 if (PyErr_Occurred()) SWIG_fail;
4976 }
4977 resultobj = SWIG_From_int(static_cast< int >(result));
4978 return resultobj;
4979 fail:
4980 return NULL;
4981 }
4982
4983
4984 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4985 PyObject *resultobj = 0;
4986 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4987 wxCheckBoxState arg2 ;
4988 void *argp1 = 0 ;
4989 int res1 = 0 ;
4990 int val2 ;
4991 int ecode2 = 0 ;
4992 PyObject * obj0 = 0 ;
4993 PyObject * obj1 = 0 ;
4994 char * kwnames[] = {
4995 (char *) "self",(char *) "state", NULL
4996 };
4997
4998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5000 if (!SWIG_IsOK(res1)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
5002 }
5003 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5004 ecode2 = SWIG_AsVal_int(obj1, &val2);
5005 if (!SWIG_IsOK(ecode2)) {
5006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
5007 }
5008 arg2 = static_cast< wxCheckBoxState >(val2);
5009 {
5010 PyThreadState* __tstate = wxPyBeginAllowThreads();
5011 (arg1)->Set3StateValue(arg2);
5012 wxPyEndAllowThreads(__tstate);
5013 if (PyErr_Occurred()) SWIG_fail;
5014 }
5015 resultobj = SWIG_Py_Void();
5016 return resultobj;
5017 fail:
5018 return NULL;
5019 }
5020
5021
5022 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5023 PyObject *resultobj = 0;
5024 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5025 bool result;
5026 void *argp1 = 0 ;
5027 int res1 = 0 ;
5028 PyObject *swig_obj[1] ;
5029
5030 if (!args) SWIG_fail;
5031 swig_obj[0] = args;
5032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5033 if (!SWIG_IsOK(res1)) {
5034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5035 }
5036 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5037 {
5038 PyThreadState* __tstate = wxPyBeginAllowThreads();
5039 result = (bool)((wxCheckBox const *)arg1)->Is3State();
5040 wxPyEndAllowThreads(__tstate);
5041 if (PyErr_Occurred()) SWIG_fail;
5042 }
5043 {
5044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5045 }
5046 return resultobj;
5047 fail:
5048 return NULL;
5049 }
5050
5051
5052 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5053 PyObject *resultobj = 0;
5054 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5055 bool result;
5056 void *argp1 = 0 ;
5057 int res1 = 0 ;
5058 PyObject *swig_obj[1] ;
5059
5060 if (!args) SWIG_fail;
5061 swig_obj[0] = args;
5062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5063 if (!SWIG_IsOK(res1)) {
5064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5065 }
5066 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5067 {
5068 PyThreadState* __tstate = wxPyBeginAllowThreads();
5069 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5070 wxPyEndAllowThreads(__tstate);
5071 if (PyErr_Occurred()) SWIG_fail;
5072 }
5073 {
5074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5075 }
5076 return resultobj;
5077 fail:
5078 return NULL;
5079 }
5080
5081
5082 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5083 PyObject *resultobj = 0;
5084 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5085 SwigValueWrapper<wxVisualAttributes > result;
5086 int val1 ;
5087 int ecode1 = 0 ;
5088 PyObject * obj0 = 0 ;
5089 char * kwnames[] = {
5090 (char *) "variant", NULL
5091 };
5092
5093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5094 if (obj0) {
5095 ecode1 = SWIG_AsVal_int(obj0, &val1);
5096 if (!SWIG_IsOK(ecode1)) {
5097 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5098 }
5099 arg1 = static_cast< wxWindowVariant >(val1);
5100 }
5101 {
5102 if (!wxPyCheckForApp()) SWIG_fail;
5103 PyThreadState* __tstate = wxPyBeginAllowThreads();
5104 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5105 wxPyEndAllowThreads(__tstate);
5106 if (PyErr_Occurred()) SWIG_fail;
5107 }
5108 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5109 return resultobj;
5110 fail:
5111 return NULL;
5112 }
5113
5114
5115 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5116 PyObject *obj;
5117 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5118 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5119 return SWIG_Py_Void();
5120 }
5121
5122 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5123 return SWIG_Python_InitShadowInstance(args);
5124 }
5125
5126 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5127 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5128 return 1;
5129 }
5130
5131
5132 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5133 PyObject *pyobj = 0;
5134
5135 {
5136 #if wxUSE_UNICODE
5137 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5138 #else
5139 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5140 #endif
5141 }
5142 return pyobj;
5143 }
5144
5145
5146 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5147 PyObject *resultobj = 0;
5148 wxWindow *arg1 = (wxWindow *) 0 ;
5149 int arg2 = (int) -1 ;
5150 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5151 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5152 wxSize const &arg4_defvalue = wxDefaultSize ;
5153 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5154 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5155 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5156 long arg6 = (long) 0 ;
5157 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5158 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5159 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5160 wxString *arg8 = (wxString *) &arg8_defvalue ;
5161 wxChoice *result = 0 ;
5162 void *argp1 = 0 ;
5163 int res1 = 0 ;
5164 int val2 ;
5165 int ecode2 = 0 ;
5166 wxPoint temp3 ;
5167 wxSize temp4 ;
5168 bool temp5 = false ;
5169 long val6 ;
5170 int ecode6 = 0 ;
5171 void *argp7 = 0 ;
5172 int res7 = 0 ;
5173 bool temp8 = false ;
5174 PyObject * obj0 = 0 ;
5175 PyObject * obj1 = 0 ;
5176 PyObject * obj2 = 0 ;
5177 PyObject * obj3 = 0 ;
5178 PyObject * obj4 = 0 ;
5179 PyObject * obj5 = 0 ;
5180 PyObject * obj6 = 0 ;
5181 PyObject * obj7 = 0 ;
5182 char * kwnames[] = {
5183 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5184 };
5185
5186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5188 if (!SWIG_IsOK(res1)) {
5189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5190 }
5191 arg1 = reinterpret_cast< wxWindow * >(argp1);
5192 if (obj1) {
5193 ecode2 = SWIG_AsVal_int(obj1, &val2);
5194 if (!SWIG_IsOK(ecode2)) {
5195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5196 }
5197 arg2 = static_cast< int >(val2);
5198 }
5199 if (obj2) {
5200 {
5201 arg3 = &temp3;
5202 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5203 }
5204 }
5205 if (obj3) {
5206 {
5207 arg4 = &temp4;
5208 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5209 }
5210 }
5211 if (obj4) {
5212 {
5213 if (! PySequence_Check(obj4)) {
5214 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5215 SWIG_fail;
5216 }
5217 arg5 = new wxArrayString;
5218 temp5 = true;
5219 int i, len=PySequence_Length(obj4);
5220 for (i=0; i<len; i++) {
5221 PyObject* item = PySequence_GetItem(obj4, i);
5222 wxString* s = wxString_in_helper(item);
5223 if (PyErr_Occurred()) SWIG_fail;
5224 arg5->Add(*s);
5225 delete s;
5226 Py_DECREF(item);
5227 }
5228 }
5229 }
5230 if (obj5) {
5231 ecode6 = SWIG_AsVal_long(obj5, &val6);
5232 if (!SWIG_IsOK(ecode6)) {
5233 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5234 }
5235 arg6 = static_cast< long >(val6);
5236 }
5237 if (obj6) {
5238 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5239 if (!SWIG_IsOK(res7)) {
5240 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5241 }
5242 if (!argp7) {
5243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5244 }
5245 arg7 = reinterpret_cast< wxValidator * >(argp7);
5246 }
5247 if (obj7) {
5248 {
5249 arg8 = wxString_in_helper(obj7);
5250 if (arg8 == NULL) SWIG_fail;
5251 temp8 = true;
5252 }
5253 }
5254 {
5255 if (!wxPyCheckForApp()) SWIG_fail;
5256 PyThreadState* __tstate = wxPyBeginAllowThreads();
5257 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5258 wxPyEndAllowThreads(__tstate);
5259 if (PyErr_Occurred()) SWIG_fail;
5260 }
5261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5262 {
5263 if (temp5) delete arg5;
5264 }
5265 {
5266 if (temp8)
5267 delete arg8;
5268 }
5269 return resultobj;
5270 fail:
5271 {
5272 if (temp5) delete arg5;
5273 }
5274 {
5275 if (temp8)
5276 delete arg8;
5277 }
5278 return NULL;
5279 }
5280
5281
5282 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5283 PyObject *resultobj = 0;
5284 wxChoice *result = 0 ;
5285
5286 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5287 {
5288 if (!wxPyCheckForApp()) SWIG_fail;
5289 PyThreadState* __tstate = wxPyBeginAllowThreads();
5290 result = (wxChoice *)new wxChoice();
5291 wxPyEndAllowThreads(__tstate);
5292 if (PyErr_Occurred()) SWIG_fail;
5293 }
5294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5295 return resultobj;
5296 fail:
5297 return NULL;
5298 }
5299
5300
5301 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5302 PyObject *resultobj = 0;
5303 wxChoice *arg1 = (wxChoice *) 0 ;
5304 wxWindow *arg2 = (wxWindow *) 0 ;
5305 int arg3 = (int) -1 ;
5306 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5307 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5308 wxSize const &arg5_defvalue = wxDefaultSize ;
5309 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5310 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5311 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5312 long arg7 = (long) 0 ;
5313 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5314 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5315 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5316 wxString *arg9 = (wxString *) &arg9_defvalue ;
5317 bool result;
5318 void *argp1 = 0 ;
5319 int res1 = 0 ;
5320 void *argp2 = 0 ;
5321 int res2 = 0 ;
5322 int val3 ;
5323 int ecode3 = 0 ;
5324 wxPoint temp4 ;
5325 wxSize temp5 ;
5326 bool temp6 = false ;
5327 long val7 ;
5328 int ecode7 = 0 ;
5329 void *argp8 = 0 ;
5330 int res8 = 0 ;
5331 bool temp9 = false ;
5332 PyObject * obj0 = 0 ;
5333 PyObject * obj1 = 0 ;
5334 PyObject * obj2 = 0 ;
5335 PyObject * obj3 = 0 ;
5336 PyObject * obj4 = 0 ;
5337 PyObject * obj5 = 0 ;
5338 PyObject * obj6 = 0 ;
5339 PyObject * obj7 = 0 ;
5340 PyObject * obj8 = 0 ;
5341 char * kwnames[] = {
5342 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5343 };
5344
5345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5347 if (!SWIG_IsOK(res1)) {
5348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5349 }
5350 arg1 = reinterpret_cast< wxChoice * >(argp1);
5351 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5352 if (!SWIG_IsOK(res2)) {
5353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5354 }
5355 arg2 = reinterpret_cast< wxWindow * >(argp2);
5356 if (obj2) {
5357 ecode3 = SWIG_AsVal_int(obj2, &val3);
5358 if (!SWIG_IsOK(ecode3)) {
5359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5360 }
5361 arg3 = static_cast< int >(val3);
5362 }
5363 if (obj3) {
5364 {
5365 arg4 = &temp4;
5366 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5367 }
5368 }
5369 if (obj4) {
5370 {
5371 arg5 = &temp5;
5372 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5373 }
5374 }
5375 if (obj5) {
5376 {
5377 if (! PySequence_Check(obj5)) {
5378 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5379 SWIG_fail;
5380 }
5381 arg6 = new wxArrayString;
5382 temp6 = true;
5383 int i, len=PySequence_Length(obj5);
5384 for (i=0; i<len; i++) {
5385 PyObject* item = PySequence_GetItem(obj5, i);
5386 wxString* s = wxString_in_helper(item);
5387 if (PyErr_Occurred()) SWIG_fail;
5388 arg6->Add(*s);
5389 delete s;
5390 Py_DECREF(item);
5391 }
5392 }
5393 }
5394 if (obj6) {
5395 ecode7 = SWIG_AsVal_long(obj6, &val7);
5396 if (!SWIG_IsOK(ecode7)) {
5397 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5398 }
5399 arg7 = static_cast< long >(val7);
5400 }
5401 if (obj7) {
5402 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5403 if (!SWIG_IsOK(res8)) {
5404 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5405 }
5406 if (!argp8) {
5407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5408 }
5409 arg8 = reinterpret_cast< wxValidator * >(argp8);
5410 }
5411 if (obj8) {
5412 {
5413 arg9 = wxString_in_helper(obj8);
5414 if (arg9 == NULL) SWIG_fail;
5415 temp9 = true;
5416 }
5417 }
5418 {
5419 PyThreadState* __tstate = wxPyBeginAllowThreads();
5420 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5421 wxPyEndAllowThreads(__tstate);
5422 if (PyErr_Occurred()) SWIG_fail;
5423 }
5424 {
5425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5426 }
5427 {
5428 if (temp6) delete arg6;
5429 }
5430 {
5431 if (temp9)
5432 delete arg9;
5433 }
5434 return resultobj;
5435 fail:
5436 {
5437 if (temp6) delete arg6;
5438 }
5439 {
5440 if (temp9)
5441 delete arg9;
5442 }
5443 return NULL;
5444 }
5445
5446
5447 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5448 PyObject *resultobj = 0;
5449 wxChoice *arg1 = (wxChoice *) 0 ;
5450 int result;
5451 void *argp1 = 0 ;
5452 int res1 = 0 ;
5453 PyObject *swig_obj[1] ;
5454
5455 if (!args) SWIG_fail;
5456 swig_obj[0] = args;
5457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5458 if (!SWIG_IsOK(res1)) {
5459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5460 }
5461 arg1 = reinterpret_cast< wxChoice * >(argp1);
5462 {
5463 PyThreadState* __tstate = wxPyBeginAllowThreads();
5464 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5465 wxPyEndAllowThreads(__tstate);
5466 if (PyErr_Occurred()) SWIG_fail;
5467 }
5468 resultobj = SWIG_From_int(static_cast< int >(result));
5469 return resultobj;
5470 fail:
5471 return NULL;
5472 }
5473
5474
5475 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5476 PyObject *resultobj = 0;
5477 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5478 SwigValueWrapper<wxVisualAttributes > result;
5479 int val1 ;
5480 int ecode1 = 0 ;
5481 PyObject * obj0 = 0 ;
5482 char * kwnames[] = {
5483 (char *) "variant", NULL
5484 };
5485
5486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5487 if (obj0) {
5488 ecode1 = SWIG_AsVal_int(obj0, &val1);
5489 if (!SWIG_IsOK(ecode1)) {
5490 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5491 }
5492 arg1 = static_cast< wxWindowVariant >(val1);
5493 }
5494 {
5495 if (!wxPyCheckForApp()) SWIG_fail;
5496 PyThreadState* __tstate = wxPyBeginAllowThreads();
5497 result = wxChoice::GetClassDefaultAttributes(arg1);
5498 wxPyEndAllowThreads(__tstate);
5499 if (PyErr_Occurred()) SWIG_fail;
5500 }
5501 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5502 return resultobj;
5503 fail:
5504 return NULL;
5505 }
5506
5507
5508 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5509 PyObject *obj;
5510 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5511 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5512 return SWIG_Py_Void();
5513 }
5514
5515 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5516 return SWIG_Python_InitShadowInstance(args);
5517 }
5518
5519 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5520 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5521 return 1;
5522 }
5523
5524
5525 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5526 PyObject *pyobj = 0;
5527
5528 {
5529 #if wxUSE_UNICODE
5530 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5531 #else
5532 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5533 #endif
5534 }
5535 return pyobj;
5536 }
5537
5538
5539 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5540 PyObject *resultobj = 0;
5541 wxWindow *arg1 = (wxWindow *) 0 ;
5542 int arg2 = (int) -1 ;
5543 wxString const &arg3_defvalue = wxPyEmptyString ;
5544 wxString *arg3 = (wxString *) &arg3_defvalue ;
5545 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5546 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5547 wxSize const &arg5_defvalue = wxDefaultSize ;
5548 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5549 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5550 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5551 long arg7 = (long) 0 ;
5552 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5553 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5554 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5555 wxString *arg9 = (wxString *) &arg9_defvalue ;
5556 wxComboBox *result = 0 ;
5557 void *argp1 = 0 ;
5558 int res1 = 0 ;
5559 int val2 ;
5560 int ecode2 = 0 ;
5561 bool temp3 = false ;
5562 wxPoint temp4 ;
5563 wxSize temp5 ;
5564 bool temp6 = false ;
5565 long val7 ;
5566 int ecode7 = 0 ;
5567 void *argp8 = 0 ;
5568 int res8 = 0 ;
5569 bool temp9 = false ;
5570 PyObject * obj0 = 0 ;
5571 PyObject * obj1 = 0 ;
5572 PyObject * obj2 = 0 ;
5573 PyObject * obj3 = 0 ;
5574 PyObject * obj4 = 0 ;
5575 PyObject * obj5 = 0 ;
5576 PyObject * obj6 = 0 ;
5577 PyObject * obj7 = 0 ;
5578 PyObject * obj8 = 0 ;
5579 char * kwnames[] = {
5580 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5581 };
5582
5583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5585 if (!SWIG_IsOK(res1)) {
5586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5587 }
5588 arg1 = reinterpret_cast< wxWindow * >(argp1);
5589 if (obj1) {
5590 ecode2 = SWIG_AsVal_int(obj1, &val2);
5591 if (!SWIG_IsOK(ecode2)) {
5592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5593 }
5594 arg2 = static_cast< int >(val2);
5595 }
5596 if (obj2) {
5597 {
5598 arg3 = wxString_in_helper(obj2);
5599 if (arg3 == NULL) SWIG_fail;
5600 temp3 = true;
5601 }
5602 }
5603 if (obj3) {
5604 {
5605 arg4 = &temp4;
5606 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5607 }
5608 }
5609 if (obj4) {
5610 {
5611 arg5 = &temp5;
5612 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5613 }
5614 }
5615 if (obj5) {
5616 {
5617 if (! PySequence_Check(obj5)) {
5618 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5619 SWIG_fail;
5620 }
5621 arg6 = new wxArrayString;
5622 temp6 = true;
5623 int i, len=PySequence_Length(obj5);
5624 for (i=0; i<len; i++) {
5625 PyObject* item = PySequence_GetItem(obj5, i);
5626 wxString* s = wxString_in_helper(item);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 arg6->Add(*s);
5629 delete s;
5630 Py_DECREF(item);
5631 }
5632 }
5633 }
5634 if (obj6) {
5635 ecode7 = SWIG_AsVal_long(obj6, &val7);
5636 if (!SWIG_IsOK(ecode7)) {
5637 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5638 }
5639 arg7 = static_cast< long >(val7);
5640 }
5641 if (obj7) {
5642 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5643 if (!SWIG_IsOK(res8)) {
5644 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5645 }
5646 if (!argp8) {
5647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5648 }
5649 arg8 = reinterpret_cast< wxValidator * >(argp8);
5650 }
5651 if (obj8) {
5652 {
5653 arg9 = wxString_in_helper(obj8);
5654 if (arg9 == NULL) SWIG_fail;
5655 temp9 = true;
5656 }
5657 }
5658 {
5659 if (!wxPyCheckForApp()) SWIG_fail;
5660 PyThreadState* __tstate = wxPyBeginAllowThreads();
5661 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);
5662 wxPyEndAllowThreads(__tstate);
5663 if (PyErr_Occurred()) SWIG_fail;
5664 }
5665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5666 {
5667 if (temp3)
5668 delete arg3;
5669 }
5670 {
5671 if (temp6) delete arg6;
5672 }
5673 {
5674 if (temp9)
5675 delete arg9;
5676 }
5677 return resultobj;
5678 fail:
5679 {
5680 if (temp3)
5681 delete arg3;
5682 }
5683 {
5684 if (temp6) delete arg6;
5685 }
5686 {
5687 if (temp9)
5688 delete arg9;
5689 }
5690 return NULL;
5691 }
5692
5693
5694 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5695 PyObject *resultobj = 0;
5696 wxComboBox *result = 0 ;
5697
5698 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5699 {
5700 if (!wxPyCheckForApp()) SWIG_fail;
5701 PyThreadState* __tstate = wxPyBeginAllowThreads();
5702 result = (wxComboBox *)new wxComboBox();
5703 wxPyEndAllowThreads(__tstate);
5704 if (PyErr_Occurred()) SWIG_fail;
5705 }
5706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5707 return resultobj;
5708 fail:
5709 return NULL;
5710 }
5711
5712
5713 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5714 PyObject *resultobj = 0;
5715 wxComboBox *arg1 = (wxComboBox *) 0 ;
5716 wxWindow *arg2 = (wxWindow *) 0 ;
5717 int arg3 = (int) -1 ;
5718 wxString const &arg4_defvalue = wxPyEmptyString ;
5719 wxString *arg4 = (wxString *) &arg4_defvalue ;
5720 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5721 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5722 wxSize const &arg6_defvalue = wxDefaultSize ;
5723 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5724 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5725 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5726 long arg8 = (long) 0 ;
5727 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5728 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5729 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5730 wxString *arg10 = (wxString *) &arg10_defvalue ;
5731 bool result;
5732 void *argp1 = 0 ;
5733 int res1 = 0 ;
5734 void *argp2 = 0 ;
5735 int res2 = 0 ;
5736 int val3 ;
5737 int ecode3 = 0 ;
5738 bool temp4 = false ;
5739 wxPoint temp5 ;
5740 wxSize temp6 ;
5741 bool temp7 = false ;
5742 long val8 ;
5743 int ecode8 = 0 ;
5744 void *argp9 = 0 ;
5745 int res9 = 0 ;
5746 bool temp10 = false ;
5747 PyObject * obj0 = 0 ;
5748 PyObject * obj1 = 0 ;
5749 PyObject * obj2 = 0 ;
5750 PyObject * obj3 = 0 ;
5751 PyObject * obj4 = 0 ;
5752 PyObject * obj5 = 0 ;
5753 PyObject * obj6 = 0 ;
5754 PyObject * obj7 = 0 ;
5755 PyObject * obj8 = 0 ;
5756 PyObject * obj9 = 0 ;
5757 char * kwnames[] = {
5758 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5759 };
5760
5761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5763 if (!SWIG_IsOK(res1)) {
5764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5765 }
5766 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5767 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5768 if (!SWIG_IsOK(res2)) {
5769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5770 }
5771 arg2 = reinterpret_cast< wxWindow * >(argp2);
5772 if (obj2) {
5773 ecode3 = SWIG_AsVal_int(obj2, &val3);
5774 if (!SWIG_IsOK(ecode3)) {
5775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5776 }
5777 arg3 = static_cast< int >(val3);
5778 }
5779 if (obj3) {
5780 {
5781 arg4 = wxString_in_helper(obj3);
5782 if (arg4 == NULL) SWIG_fail;
5783 temp4 = true;
5784 }
5785 }
5786 if (obj4) {
5787 {
5788 arg5 = &temp5;
5789 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5790 }
5791 }
5792 if (obj5) {
5793 {
5794 arg6 = &temp6;
5795 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5796 }
5797 }
5798 if (obj6) {
5799 {
5800 if (! PySequence_Check(obj6)) {
5801 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5802 SWIG_fail;
5803 }
5804 arg7 = new wxArrayString;
5805 temp7 = true;
5806 int i, len=PySequence_Length(obj6);
5807 for (i=0; i<len; i++) {
5808 PyObject* item = PySequence_GetItem(obj6, i);
5809 wxString* s = wxString_in_helper(item);
5810 if (PyErr_Occurred()) SWIG_fail;
5811 arg7->Add(*s);
5812 delete s;
5813 Py_DECREF(item);
5814 }
5815 }
5816 }
5817 if (obj7) {
5818 ecode8 = SWIG_AsVal_long(obj7, &val8);
5819 if (!SWIG_IsOK(ecode8)) {
5820 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5821 }
5822 arg8 = static_cast< long >(val8);
5823 }
5824 if (obj8) {
5825 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5826 if (!SWIG_IsOK(res9)) {
5827 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5828 }
5829 if (!argp9) {
5830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5831 }
5832 arg9 = reinterpret_cast< wxValidator * >(argp9);
5833 }
5834 if (obj9) {
5835 {
5836 arg10 = wxString_in_helper(obj9);
5837 if (arg10 == NULL) SWIG_fail;
5838 temp10 = true;
5839 }
5840 }
5841 {
5842 PyThreadState* __tstate = wxPyBeginAllowThreads();
5843 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);
5844 wxPyEndAllowThreads(__tstate);
5845 if (PyErr_Occurred()) SWIG_fail;
5846 }
5847 {
5848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5849 }
5850 {
5851 if (temp4)
5852 delete arg4;
5853 }
5854 {
5855 if (temp7) delete arg7;
5856 }
5857 {
5858 if (temp10)
5859 delete arg10;
5860 }
5861 return resultobj;
5862 fail:
5863 {
5864 if (temp4)
5865 delete arg4;
5866 }
5867 {
5868 if (temp7) delete arg7;
5869 }
5870 {
5871 if (temp10)
5872 delete arg10;
5873 }
5874 return NULL;
5875 }
5876
5877
5878 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5879 PyObject *resultobj = 0;
5880 wxComboBox *arg1 = (wxComboBox *) 0 ;
5881 wxString result;
5882 void *argp1 = 0 ;
5883 int res1 = 0 ;
5884 PyObject *swig_obj[1] ;
5885
5886 if (!args) SWIG_fail;
5887 swig_obj[0] = args;
5888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5889 if (!SWIG_IsOK(res1)) {
5890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5891 }
5892 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5893 {
5894 PyThreadState* __tstate = wxPyBeginAllowThreads();
5895 result = ((wxComboBox const *)arg1)->GetValue();
5896 wxPyEndAllowThreads(__tstate);
5897 if (PyErr_Occurred()) SWIG_fail;
5898 }
5899 {
5900 #if wxUSE_UNICODE
5901 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5902 #else
5903 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5904 #endif
5905 }
5906 return resultobj;
5907 fail:
5908 return NULL;
5909 }
5910
5911
5912 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5913 PyObject *resultobj = 0;
5914 wxComboBox *arg1 = (wxComboBox *) 0 ;
5915 wxString *arg2 = 0 ;
5916 void *argp1 = 0 ;
5917 int res1 = 0 ;
5918 bool temp2 = false ;
5919 PyObject * obj0 = 0 ;
5920 PyObject * obj1 = 0 ;
5921 char * kwnames[] = {
5922 (char *) "self",(char *) "value", NULL
5923 };
5924
5925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5927 if (!SWIG_IsOK(res1)) {
5928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5929 }
5930 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5931 {
5932 arg2 = wxString_in_helper(obj1);
5933 if (arg2 == NULL) SWIG_fail;
5934 temp2 = true;
5935 }
5936 {
5937 PyThreadState* __tstate = wxPyBeginAllowThreads();
5938 (arg1)->SetValue((wxString const &)*arg2);
5939 wxPyEndAllowThreads(__tstate);
5940 if (PyErr_Occurred()) SWIG_fail;
5941 }
5942 resultobj = SWIG_Py_Void();
5943 {
5944 if (temp2)
5945 delete arg2;
5946 }
5947 return resultobj;
5948 fail:
5949 {
5950 if (temp2)
5951 delete arg2;
5952 }
5953 return NULL;
5954 }
5955
5956
5957 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5958 PyObject *resultobj = 0;
5959 wxComboBox *arg1 = (wxComboBox *) 0 ;
5960 void *argp1 = 0 ;
5961 int res1 = 0 ;
5962 PyObject *swig_obj[1] ;
5963
5964 if (!args) SWIG_fail;
5965 swig_obj[0] = args;
5966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5967 if (!SWIG_IsOK(res1)) {
5968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5969 }
5970 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5971 {
5972 PyThreadState* __tstate = wxPyBeginAllowThreads();
5973 (arg1)->Copy();
5974 wxPyEndAllowThreads(__tstate);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 }
5977 resultobj = SWIG_Py_Void();
5978 return resultobj;
5979 fail:
5980 return NULL;
5981 }
5982
5983
5984 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5985 PyObject *resultobj = 0;
5986 wxComboBox *arg1 = (wxComboBox *) 0 ;
5987 void *argp1 = 0 ;
5988 int res1 = 0 ;
5989 PyObject *swig_obj[1] ;
5990
5991 if (!args) SWIG_fail;
5992 swig_obj[0] = args;
5993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5994 if (!SWIG_IsOK(res1)) {
5995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5996 }
5997 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5998 {
5999 PyThreadState* __tstate = wxPyBeginAllowThreads();
6000 (arg1)->Cut();
6001 wxPyEndAllowThreads(__tstate);
6002 if (PyErr_Occurred()) SWIG_fail;
6003 }
6004 resultobj = SWIG_Py_Void();
6005 return resultobj;
6006 fail:
6007 return NULL;
6008 }
6009
6010
6011 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6012 PyObject *resultobj = 0;
6013 wxComboBox *arg1 = (wxComboBox *) 0 ;
6014 void *argp1 = 0 ;
6015 int res1 = 0 ;
6016 PyObject *swig_obj[1] ;
6017
6018 if (!args) SWIG_fail;
6019 swig_obj[0] = args;
6020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6021 if (!SWIG_IsOK(res1)) {
6022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
6023 }
6024 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6025 {
6026 PyThreadState* __tstate = wxPyBeginAllowThreads();
6027 (arg1)->Paste();
6028 wxPyEndAllowThreads(__tstate);
6029 if (PyErr_Occurred()) SWIG_fail;
6030 }
6031 resultobj = SWIG_Py_Void();
6032 return resultobj;
6033 fail:
6034 return NULL;
6035 }
6036
6037
6038 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6039 PyObject *resultobj = 0;
6040 wxComboBox *arg1 = (wxComboBox *) 0 ;
6041 long arg2 ;
6042 void *argp1 = 0 ;
6043 int res1 = 0 ;
6044 long val2 ;
6045 int ecode2 = 0 ;
6046 PyObject * obj0 = 0 ;
6047 PyObject * obj1 = 0 ;
6048 char * kwnames[] = {
6049 (char *) "self",(char *) "pos", NULL
6050 };
6051
6052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6054 if (!SWIG_IsOK(res1)) {
6055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6056 }
6057 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6058 ecode2 = SWIG_AsVal_long(obj1, &val2);
6059 if (!SWIG_IsOK(ecode2)) {
6060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6061 }
6062 arg2 = static_cast< long >(val2);
6063 {
6064 PyThreadState* __tstate = wxPyBeginAllowThreads();
6065 (arg1)->SetInsertionPoint(arg2);
6066 wxPyEndAllowThreads(__tstate);
6067 if (PyErr_Occurred()) SWIG_fail;
6068 }
6069 resultobj = SWIG_Py_Void();
6070 return resultobj;
6071 fail:
6072 return NULL;
6073 }
6074
6075
6076 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6077 PyObject *resultobj = 0;
6078 wxComboBox *arg1 = (wxComboBox *) 0 ;
6079 long result;
6080 void *argp1 = 0 ;
6081 int res1 = 0 ;
6082 PyObject *swig_obj[1] ;
6083
6084 if (!args) SWIG_fail;
6085 swig_obj[0] = args;
6086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6087 if (!SWIG_IsOK(res1)) {
6088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6089 }
6090 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6091 {
6092 PyThreadState* __tstate = wxPyBeginAllowThreads();
6093 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6094 wxPyEndAllowThreads(__tstate);
6095 if (PyErr_Occurred()) SWIG_fail;
6096 }
6097 resultobj = SWIG_From_long(static_cast< long >(result));
6098 return resultobj;
6099 fail:
6100 return NULL;
6101 }
6102
6103
6104 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6105 PyObject *resultobj = 0;
6106 wxComboBox *arg1 = (wxComboBox *) 0 ;
6107 long result;
6108 void *argp1 = 0 ;
6109 int res1 = 0 ;
6110 PyObject *swig_obj[1] ;
6111
6112 if (!args) SWIG_fail;
6113 swig_obj[0] = args;
6114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6115 if (!SWIG_IsOK(res1)) {
6116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6117 }
6118 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6119 {
6120 PyThreadState* __tstate = wxPyBeginAllowThreads();
6121 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6122 wxPyEndAllowThreads(__tstate);
6123 if (PyErr_Occurred()) SWIG_fail;
6124 }
6125 resultobj = SWIG_From_long(static_cast< long >(result));
6126 return resultobj;
6127 fail:
6128 return NULL;
6129 }
6130
6131
6132 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6133 PyObject *resultobj = 0;
6134 wxComboBox *arg1 = (wxComboBox *) 0 ;
6135 long arg2 ;
6136 long arg3 ;
6137 wxString *arg4 = 0 ;
6138 void *argp1 = 0 ;
6139 int res1 = 0 ;
6140 long val2 ;
6141 int ecode2 = 0 ;
6142 long val3 ;
6143 int ecode3 = 0 ;
6144 bool temp4 = false ;
6145 PyObject * obj0 = 0 ;
6146 PyObject * obj1 = 0 ;
6147 PyObject * obj2 = 0 ;
6148 PyObject * obj3 = 0 ;
6149 char * kwnames[] = {
6150 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6151 };
6152
6153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6155 if (!SWIG_IsOK(res1)) {
6156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6157 }
6158 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6159 ecode2 = SWIG_AsVal_long(obj1, &val2);
6160 if (!SWIG_IsOK(ecode2)) {
6161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6162 }
6163 arg2 = static_cast< long >(val2);
6164 ecode3 = SWIG_AsVal_long(obj2, &val3);
6165 if (!SWIG_IsOK(ecode3)) {
6166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6167 }
6168 arg3 = static_cast< long >(val3);
6169 {
6170 arg4 = wxString_in_helper(obj3);
6171 if (arg4 == NULL) SWIG_fail;
6172 temp4 = true;
6173 }
6174 {
6175 PyThreadState* __tstate = wxPyBeginAllowThreads();
6176 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6177 wxPyEndAllowThreads(__tstate);
6178 if (PyErr_Occurred()) SWIG_fail;
6179 }
6180 resultobj = SWIG_Py_Void();
6181 {
6182 if (temp4)
6183 delete arg4;
6184 }
6185 return resultobj;
6186 fail:
6187 {
6188 if (temp4)
6189 delete arg4;
6190 }
6191 return NULL;
6192 }
6193
6194
6195 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6196 PyObject *resultobj = 0;
6197 wxComboBox *arg1 = (wxComboBox *) 0 ;
6198 long arg2 ;
6199 long arg3 ;
6200 void *argp1 = 0 ;
6201 int res1 = 0 ;
6202 long val2 ;
6203 int ecode2 = 0 ;
6204 long val3 ;
6205 int ecode3 = 0 ;
6206 PyObject * obj0 = 0 ;
6207 PyObject * obj1 = 0 ;
6208 PyObject * obj2 = 0 ;
6209 char * kwnames[] = {
6210 (char *) "self",(char *) "from",(char *) "to", NULL
6211 };
6212
6213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6215 if (!SWIG_IsOK(res1)) {
6216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6217 }
6218 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6219 ecode2 = SWIG_AsVal_long(obj1, &val2);
6220 if (!SWIG_IsOK(ecode2)) {
6221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6222 }
6223 arg2 = static_cast< long >(val2);
6224 ecode3 = SWIG_AsVal_long(obj2, &val3);
6225 if (!SWIG_IsOK(ecode3)) {
6226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6227 }
6228 arg3 = static_cast< long >(val3);
6229 {
6230 PyThreadState* __tstate = wxPyBeginAllowThreads();
6231 (arg1)->SetSelection(arg2,arg3);
6232 wxPyEndAllowThreads(__tstate);
6233 if (PyErr_Occurred()) SWIG_fail;
6234 }
6235 resultobj = SWIG_Py_Void();
6236 return resultobj;
6237 fail:
6238 return NULL;
6239 }
6240
6241
6242 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6243 PyObject *resultobj = 0;
6244 wxComboBox *arg1 = (wxComboBox *) 0 ;
6245 long *arg2 = (long *) 0 ;
6246 long *arg3 = (long *) 0 ;
6247 void *argp1 = 0 ;
6248 int res1 = 0 ;
6249 long temp2 ;
6250 int res2 = SWIG_TMPOBJ ;
6251 long temp3 ;
6252 int res3 = SWIG_TMPOBJ ;
6253 PyObject *swig_obj[1] ;
6254
6255 arg2 = &temp2;
6256 arg3 = &temp3;
6257 if (!args) SWIG_fail;
6258 swig_obj[0] = args;
6259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6260 if (!SWIG_IsOK(res1)) {
6261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6262 }
6263 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6264 {
6265 PyThreadState* __tstate = wxPyBeginAllowThreads();
6266 (arg1)->GetSelection(arg2,arg3);
6267 wxPyEndAllowThreads(__tstate);
6268 if (PyErr_Occurred()) SWIG_fail;
6269 }
6270 resultobj = SWIG_Py_Void();
6271 if (SWIG_IsTmpObj(res2)) {
6272 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6273 } else {
6274 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6275 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6276 }
6277 if (SWIG_IsTmpObj(res3)) {
6278 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6279 } else {
6280 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6281 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6282 }
6283 return resultobj;
6284 fail:
6285 return NULL;
6286 }
6287
6288
6289 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6290 PyObject *resultobj = 0;
6291 wxComboBox *arg1 = (wxComboBox *) 0 ;
6292 int result;
6293 void *argp1 = 0 ;
6294 int res1 = 0 ;
6295 PyObject *swig_obj[1] ;
6296
6297 if (!args) SWIG_fail;
6298 swig_obj[0] = args;
6299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6300 if (!SWIG_IsOK(res1)) {
6301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6302 }
6303 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6304 {
6305 PyThreadState* __tstate = wxPyBeginAllowThreads();
6306 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6307 wxPyEndAllowThreads(__tstate);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 }
6310 resultobj = SWIG_From_int(static_cast< int >(result));
6311 return resultobj;
6312 fail:
6313 return NULL;
6314 }
6315
6316
6317 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6318 PyObject *resultobj = 0;
6319 wxComboBox *arg1 = (wxComboBox *) 0 ;
6320 wxString *arg2 = 0 ;
6321 bool result;
6322 void *argp1 = 0 ;
6323 int res1 = 0 ;
6324 bool temp2 = false ;
6325 PyObject * obj0 = 0 ;
6326 PyObject * obj1 = 0 ;
6327 char * kwnames[] = {
6328 (char *) "self",(char *) "string", NULL
6329 };
6330
6331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6333 if (!SWIG_IsOK(res1)) {
6334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6335 }
6336 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6337 {
6338 arg2 = wxString_in_helper(obj1);
6339 if (arg2 == NULL) SWIG_fail;
6340 temp2 = true;
6341 }
6342 {
6343 PyThreadState* __tstate = wxPyBeginAllowThreads();
6344 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6345 wxPyEndAllowThreads(__tstate);
6346 if (PyErr_Occurred()) SWIG_fail;
6347 }
6348 {
6349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6350 }
6351 {
6352 if (temp2)
6353 delete arg2;
6354 }
6355 return resultobj;
6356 fail:
6357 {
6358 if (temp2)
6359 delete arg2;
6360 }
6361 return NULL;
6362 }
6363
6364
6365 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6366 PyObject *resultobj = 0;
6367 wxComboBox *arg1 = (wxComboBox *) 0 ;
6368 bool arg2 ;
6369 void *argp1 = 0 ;
6370 int res1 = 0 ;
6371 bool val2 ;
6372 int ecode2 = 0 ;
6373 PyObject * obj0 = 0 ;
6374 PyObject * obj1 = 0 ;
6375 char * kwnames[] = {
6376 (char *) "self",(char *) "editable", NULL
6377 };
6378
6379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6381 if (!SWIG_IsOK(res1)) {
6382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6383 }
6384 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6385 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6386 if (!SWIG_IsOK(ecode2)) {
6387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6388 }
6389 arg2 = static_cast< bool >(val2);
6390 {
6391 PyThreadState* __tstate = wxPyBeginAllowThreads();
6392 (arg1)->SetEditable(arg2);
6393 wxPyEndAllowThreads(__tstate);
6394 if (PyErr_Occurred()) SWIG_fail;
6395 }
6396 resultobj = SWIG_Py_Void();
6397 return resultobj;
6398 fail:
6399 return NULL;
6400 }
6401
6402
6403 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6404 PyObject *resultobj = 0;
6405 wxComboBox *arg1 = (wxComboBox *) 0 ;
6406 void *argp1 = 0 ;
6407 int res1 = 0 ;
6408 PyObject *swig_obj[1] ;
6409
6410 if (!args) SWIG_fail;
6411 swig_obj[0] = args;
6412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6413 if (!SWIG_IsOK(res1)) {
6414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6415 }
6416 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6417 {
6418 PyThreadState* __tstate = wxPyBeginAllowThreads();
6419 (arg1)->SetInsertionPointEnd();
6420 wxPyEndAllowThreads(__tstate);
6421 if (PyErr_Occurred()) SWIG_fail;
6422 }
6423 resultobj = SWIG_Py_Void();
6424 return resultobj;
6425 fail:
6426 return NULL;
6427 }
6428
6429
6430 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6431 PyObject *resultobj = 0;
6432 wxComboBox *arg1 = (wxComboBox *) 0 ;
6433 long arg2 ;
6434 long arg3 ;
6435 void *argp1 = 0 ;
6436 int res1 = 0 ;
6437 long val2 ;
6438 int ecode2 = 0 ;
6439 long val3 ;
6440 int ecode3 = 0 ;
6441 PyObject * obj0 = 0 ;
6442 PyObject * obj1 = 0 ;
6443 PyObject * obj2 = 0 ;
6444 char * kwnames[] = {
6445 (char *) "self",(char *) "from",(char *) "to", NULL
6446 };
6447
6448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6450 if (!SWIG_IsOK(res1)) {
6451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6452 }
6453 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6454 ecode2 = SWIG_AsVal_long(obj1, &val2);
6455 if (!SWIG_IsOK(ecode2)) {
6456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6457 }
6458 arg2 = static_cast< long >(val2);
6459 ecode3 = SWIG_AsVal_long(obj2, &val3);
6460 if (!SWIG_IsOK(ecode3)) {
6461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6462 }
6463 arg3 = static_cast< long >(val3);
6464 {
6465 PyThreadState* __tstate = wxPyBeginAllowThreads();
6466 (arg1)->Remove(arg2,arg3);
6467 wxPyEndAllowThreads(__tstate);
6468 if (PyErr_Occurred()) SWIG_fail;
6469 }
6470 resultobj = SWIG_Py_Void();
6471 return resultobj;
6472 fail:
6473 return NULL;
6474 }
6475
6476
6477 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6478 PyObject *resultobj = 0;
6479 wxComboBox *arg1 = (wxComboBox *) 0 ;
6480 bool result;
6481 void *argp1 = 0 ;
6482 int res1 = 0 ;
6483 PyObject *swig_obj[1] ;
6484
6485 if (!args) SWIG_fail;
6486 swig_obj[0] = args;
6487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6488 if (!SWIG_IsOK(res1)) {
6489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6490 }
6491 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6492 {
6493 PyThreadState* __tstate = wxPyBeginAllowThreads();
6494 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6495 wxPyEndAllowThreads(__tstate);
6496 if (PyErr_Occurred()) SWIG_fail;
6497 }
6498 {
6499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6500 }
6501 return resultobj;
6502 fail:
6503 return NULL;
6504 }
6505
6506
6507 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6508 PyObject *resultobj = 0;
6509 wxComboBox *arg1 = (wxComboBox *) 0 ;
6510 void *argp1 = 0 ;
6511 int res1 = 0 ;
6512 PyObject *swig_obj[1] ;
6513
6514 if (!args) SWIG_fail;
6515 swig_obj[0] = args;
6516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6517 if (!SWIG_IsOK(res1)) {
6518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6519 }
6520 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6521 {
6522 PyThreadState* __tstate = wxPyBeginAllowThreads();
6523 (arg1)->Undo();
6524 wxPyEndAllowThreads(__tstate);
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 resultobj = SWIG_Py_Void();
6528 return resultobj;
6529 fail:
6530 return NULL;
6531 }
6532
6533
6534 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6535 PyObject *resultobj = 0;
6536 wxComboBox *arg1 = (wxComboBox *) 0 ;
6537 void *argp1 = 0 ;
6538 int res1 = 0 ;
6539 PyObject *swig_obj[1] ;
6540
6541 if (!args) SWIG_fail;
6542 swig_obj[0] = args;
6543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6544 if (!SWIG_IsOK(res1)) {
6545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6546 }
6547 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6548 {
6549 PyThreadState* __tstate = wxPyBeginAllowThreads();
6550 (arg1)->Redo();
6551 wxPyEndAllowThreads(__tstate);
6552 if (PyErr_Occurred()) SWIG_fail;
6553 }
6554 resultobj = SWIG_Py_Void();
6555 return resultobj;
6556 fail:
6557 return NULL;
6558 }
6559
6560
6561 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6562 PyObject *resultobj = 0;
6563 wxComboBox *arg1 = (wxComboBox *) 0 ;
6564 void *argp1 = 0 ;
6565 int res1 = 0 ;
6566 PyObject *swig_obj[1] ;
6567
6568 if (!args) SWIG_fail;
6569 swig_obj[0] = args;
6570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6571 if (!SWIG_IsOK(res1)) {
6572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6573 }
6574 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6575 {
6576 PyThreadState* __tstate = wxPyBeginAllowThreads();
6577 (arg1)->SelectAll();
6578 wxPyEndAllowThreads(__tstate);
6579 if (PyErr_Occurred()) SWIG_fail;
6580 }
6581 resultobj = SWIG_Py_Void();
6582 return resultobj;
6583 fail:
6584 return NULL;
6585 }
6586
6587
6588 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6589 PyObject *resultobj = 0;
6590 wxComboBox *arg1 = (wxComboBox *) 0 ;
6591 bool result;
6592 void *argp1 = 0 ;
6593 int res1 = 0 ;
6594 PyObject *swig_obj[1] ;
6595
6596 if (!args) SWIG_fail;
6597 swig_obj[0] = args;
6598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6599 if (!SWIG_IsOK(res1)) {
6600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6601 }
6602 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6603 {
6604 PyThreadState* __tstate = wxPyBeginAllowThreads();
6605 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6606 wxPyEndAllowThreads(__tstate);
6607 if (PyErr_Occurred()) SWIG_fail;
6608 }
6609 {
6610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6611 }
6612 return resultobj;
6613 fail:
6614 return NULL;
6615 }
6616
6617
6618 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6619 PyObject *resultobj = 0;
6620 wxComboBox *arg1 = (wxComboBox *) 0 ;
6621 bool result;
6622 void *argp1 = 0 ;
6623 int res1 = 0 ;
6624 PyObject *swig_obj[1] ;
6625
6626 if (!args) SWIG_fail;
6627 swig_obj[0] = args;
6628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6629 if (!SWIG_IsOK(res1)) {
6630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6631 }
6632 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6633 {
6634 PyThreadState* __tstate = wxPyBeginAllowThreads();
6635 result = (bool)((wxComboBox const *)arg1)->CanCut();
6636 wxPyEndAllowThreads(__tstate);
6637 if (PyErr_Occurred()) SWIG_fail;
6638 }
6639 {
6640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6641 }
6642 return resultobj;
6643 fail:
6644 return NULL;
6645 }
6646
6647
6648 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6649 PyObject *resultobj = 0;
6650 wxComboBox *arg1 = (wxComboBox *) 0 ;
6651 bool result;
6652 void *argp1 = 0 ;
6653 int res1 = 0 ;
6654 PyObject *swig_obj[1] ;
6655
6656 if (!args) SWIG_fail;
6657 swig_obj[0] = args;
6658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6659 if (!SWIG_IsOK(res1)) {
6660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6661 }
6662 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 {
6670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6671 }
6672 return resultobj;
6673 fail:
6674 return NULL;
6675 }
6676
6677
6678 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6679 PyObject *resultobj = 0;
6680 wxComboBox *arg1 = (wxComboBox *) 0 ;
6681 bool result;
6682 void *argp1 = 0 ;
6683 int res1 = 0 ;
6684 PyObject *swig_obj[1] ;
6685
6686 if (!args) SWIG_fail;
6687 swig_obj[0] = args;
6688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6689 if (!SWIG_IsOK(res1)) {
6690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6691 }
6692 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6693 {
6694 PyThreadState* __tstate = wxPyBeginAllowThreads();
6695 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6696 wxPyEndAllowThreads(__tstate);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 {
6700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6701 }
6702 return resultobj;
6703 fail:
6704 return NULL;
6705 }
6706
6707
6708 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6709 PyObject *resultobj = 0;
6710 wxComboBox *arg1 = (wxComboBox *) 0 ;
6711 bool result;
6712 void *argp1 = 0 ;
6713 int res1 = 0 ;
6714 PyObject *swig_obj[1] ;
6715
6716 if (!args) SWIG_fail;
6717 swig_obj[0] = args;
6718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6719 if (!SWIG_IsOK(res1)) {
6720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6721 }
6722 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6723 {
6724 PyThreadState* __tstate = wxPyBeginAllowThreads();
6725 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6726 wxPyEndAllowThreads(__tstate);
6727 if (PyErr_Occurred()) SWIG_fail;
6728 }
6729 {
6730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6731 }
6732 return resultobj;
6733 fail:
6734 return NULL;
6735 }
6736
6737
6738 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6739 PyObject *resultobj = 0;
6740 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6741 SwigValueWrapper<wxVisualAttributes > result;
6742 int val1 ;
6743 int ecode1 = 0 ;
6744 PyObject * obj0 = 0 ;
6745 char * kwnames[] = {
6746 (char *) "variant", NULL
6747 };
6748
6749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6750 if (obj0) {
6751 ecode1 = SWIG_AsVal_int(obj0, &val1);
6752 if (!SWIG_IsOK(ecode1)) {
6753 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6754 }
6755 arg1 = static_cast< wxWindowVariant >(val1);
6756 }
6757 {
6758 if (!wxPyCheckForApp()) SWIG_fail;
6759 PyThreadState* __tstate = wxPyBeginAllowThreads();
6760 result = wxComboBox::GetClassDefaultAttributes(arg1);
6761 wxPyEndAllowThreads(__tstate);
6762 if (PyErr_Occurred()) SWIG_fail;
6763 }
6764 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6765 return resultobj;
6766 fail:
6767 return NULL;
6768 }
6769
6770
6771 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6772 PyObject *obj;
6773 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6774 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6775 return SWIG_Py_Void();
6776 }
6777
6778 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6779 return SWIG_Python_InitShadowInstance(args);
6780 }
6781
6782 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6783 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6784 return 1;
6785 }
6786
6787
6788 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6789 PyObject *pyobj = 0;
6790
6791 {
6792 #if wxUSE_UNICODE
6793 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6794 #else
6795 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6796 #endif
6797 }
6798 return pyobj;
6799 }
6800
6801
6802 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj = 0;
6804 wxWindow *arg1 = (wxWindow *) 0 ;
6805 int arg2 = (int) -1 ;
6806 int arg3 = (int) 100 ;
6807 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6808 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6809 wxSize const &arg5_defvalue = wxDefaultSize ;
6810 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6811 long arg6 = (long) wxGA_HORIZONTAL ;
6812 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6813 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6814 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6815 wxString *arg8 = (wxString *) &arg8_defvalue ;
6816 wxGauge *result = 0 ;
6817 void *argp1 = 0 ;
6818 int res1 = 0 ;
6819 int val2 ;
6820 int ecode2 = 0 ;
6821 int val3 ;
6822 int ecode3 = 0 ;
6823 wxPoint temp4 ;
6824 wxSize temp5 ;
6825 long val6 ;
6826 int ecode6 = 0 ;
6827 void *argp7 = 0 ;
6828 int res7 = 0 ;
6829 bool temp8 = false ;
6830 PyObject * obj0 = 0 ;
6831 PyObject * obj1 = 0 ;
6832 PyObject * obj2 = 0 ;
6833 PyObject * obj3 = 0 ;
6834 PyObject * obj4 = 0 ;
6835 PyObject * obj5 = 0 ;
6836 PyObject * obj6 = 0 ;
6837 PyObject * obj7 = 0 ;
6838 char * kwnames[] = {
6839 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6840 };
6841
6842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6844 if (!SWIG_IsOK(res1)) {
6845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6846 }
6847 arg1 = reinterpret_cast< wxWindow * >(argp1);
6848 if (obj1) {
6849 ecode2 = SWIG_AsVal_int(obj1, &val2);
6850 if (!SWIG_IsOK(ecode2)) {
6851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6852 }
6853 arg2 = static_cast< int >(val2);
6854 }
6855 if (obj2) {
6856 ecode3 = SWIG_AsVal_int(obj2, &val3);
6857 if (!SWIG_IsOK(ecode3)) {
6858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6859 }
6860 arg3 = static_cast< int >(val3);
6861 }
6862 if (obj3) {
6863 {
6864 arg4 = &temp4;
6865 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6866 }
6867 }
6868 if (obj4) {
6869 {
6870 arg5 = &temp5;
6871 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6872 }
6873 }
6874 if (obj5) {
6875 ecode6 = SWIG_AsVal_long(obj5, &val6);
6876 if (!SWIG_IsOK(ecode6)) {
6877 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6878 }
6879 arg6 = static_cast< long >(val6);
6880 }
6881 if (obj6) {
6882 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6883 if (!SWIG_IsOK(res7)) {
6884 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6885 }
6886 if (!argp7) {
6887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6888 }
6889 arg7 = reinterpret_cast< wxValidator * >(argp7);
6890 }
6891 if (obj7) {
6892 {
6893 arg8 = wxString_in_helper(obj7);
6894 if (arg8 == NULL) SWIG_fail;
6895 temp8 = true;
6896 }
6897 }
6898 {
6899 if (!wxPyCheckForApp()) SWIG_fail;
6900 PyThreadState* __tstate = wxPyBeginAllowThreads();
6901 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6906 {
6907 if (temp8)
6908 delete arg8;
6909 }
6910 return resultobj;
6911 fail:
6912 {
6913 if (temp8)
6914 delete arg8;
6915 }
6916 return NULL;
6917 }
6918
6919
6920 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6921 PyObject *resultobj = 0;
6922 wxGauge *result = 0 ;
6923
6924 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6925 {
6926 if (!wxPyCheckForApp()) SWIG_fail;
6927 PyThreadState* __tstate = wxPyBeginAllowThreads();
6928 result = (wxGauge *)new wxGauge();
6929 wxPyEndAllowThreads(__tstate);
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6933 return resultobj;
6934 fail:
6935 return NULL;
6936 }
6937
6938
6939 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6940 PyObject *resultobj = 0;
6941 wxGauge *arg1 = (wxGauge *) 0 ;
6942 wxWindow *arg2 = (wxWindow *) 0 ;
6943 int arg3 = (int) -1 ;
6944 int arg4 = (int) 100 ;
6945 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6946 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6947 wxSize const &arg6_defvalue = wxDefaultSize ;
6948 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6949 long arg7 = (long) wxGA_HORIZONTAL ;
6950 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6951 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6952 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6953 wxString *arg9 = (wxString *) &arg9_defvalue ;
6954 bool result;
6955 void *argp1 = 0 ;
6956 int res1 = 0 ;
6957 void *argp2 = 0 ;
6958 int res2 = 0 ;
6959 int val3 ;
6960 int ecode3 = 0 ;
6961 int val4 ;
6962 int ecode4 = 0 ;
6963 wxPoint temp5 ;
6964 wxSize temp6 ;
6965 long val7 ;
6966 int ecode7 = 0 ;
6967 void *argp8 = 0 ;
6968 int res8 = 0 ;
6969 bool temp9 = false ;
6970 PyObject * obj0 = 0 ;
6971 PyObject * obj1 = 0 ;
6972 PyObject * obj2 = 0 ;
6973 PyObject * obj3 = 0 ;
6974 PyObject * obj4 = 0 ;
6975 PyObject * obj5 = 0 ;
6976 PyObject * obj6 = 0 ;
6977 PyObject * obj7 = 0 ;
6978 PyObject * obj8 = 0 ;
6979 char * kwnames[] = {
6980 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6981 };
6982
6983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6985 if (!SWIG_IsOK(res1)) {
6986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6987 }
6988 arg1 = reinterpret_cast< wxGauge * >(argp1);
6989 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6990 if (!SWIG_IsOK(res2)) {
6991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6992 }
6993 arg2 = reinterpret_cast< wxWindow * >(argp2);
6994 if (obj2) {
6995 ecode3 = SWIG_AsVal_int(obj2, &val3);
6996 if (!SWIG_IsOK(ecode3)) {
6997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6998 }
6999 arg3 = static_cast< int >(val3);
7000 }
7001 if (obj3) {
7002 ecode4 = SWIG_AsVal_int(obj3, &val4);
7003 if (!SWIG_IsOK(ecode4)) {
7004 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
7005 }
7006 arg4 = static_cast< int >(val4);
7007 }
7008 if (obj4) {
7009 {
7010 arg5 = &temp5;
7011 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7012 }
7013 }
7014 if (obj5) {
7015 {
7016 arg6 = &temp6;
7017 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7018 }
7019 }
7020 if (obj6) {
7021 ecode7 = SWIG_AsVal_long(obj6, &val7);
7022 if (!SWIG_IsOK(ecode7)) {
7023 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7024 }
7025 arg7 = static_cast< long >(val7);
7026 }
7027 if (obj7) {
7028 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7029 if (!SWIG_IsOK(res8)) {
7030 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7031 }
7032 if (!argp8) {
7033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7034 }
7035 arg8 = reinterpret_cast< wxValidator * >(argp8);
7036 }
7037 if (obj8) {
7038 {
7039 arg9 = wxString_in_helper(obj8);
7040 if (arg9 == NULL) SWIG_fail;
7041 temp9 = true;
7042 }
7043 }
7044 {
7045 PyThreadState* __tstate = wxPyBeginAllowThreads();
7046 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7047 wxPyEndAllowThreads(__tstate);
7048 if (PyErr_Occurred()) SWIG_fail;
7049 }
7050 {
7051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7052 }
7053 {
7054 if (temp9)
7055 delete arg9;
7056 }
7057 return resultobj;
7058 fail:
7059 {
7060 if (temp9)
7061 delete arg9;
7062 }
7063 return NULL;
7064 }
7065
7066
7067 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj = 0;
7069 wxGauge *arg1 = (wxGauge *) 0 ;
7070 int arg2 ;
7071 void *argp1 = 0 ;
7072 int res1 = 0 ;
7073 int val2 ;
7074 int ecode2 = 0 ;
7075 PyObject * obj0 = 0 ;
7076 PyObject * obj1 = 0 ;
7077 char * kwnames[] = {
7078 (char *) "self",(char *) "range", NULL
7079 };
7080
7081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7083 if (!SWIG_IsOK(res1)) {
7084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7085 }
7086 arg1 = reinterpret_cast< wxGauge * >(argp1);
7087 ecode2 = SWIG_AsVal_int(obj1, &val2);
7088 if (!SWIG_IsOK(ecode2)) {
7089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7090 }
7091 arg2 = static_cast< int >(val2);
7092 {
7093 PyThreadState* __tstate = wxPyBeginAllowThreads();
7094 (arg1)->SetRange(arg2);
7095 wxPyEndAllowThreads(__tstate);
7096 if (PyErr_Occurred()) SWIG_fail;
7097 }
7098 resultobj = SWIG_Py_Void();
7099 return resultobj;
7100 fail:
7101 return NULL;
7102 }
7103
7104
7105 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7106 PyObject *resultobj = 0;
7107 wxGauge *arg1 = (wxGauge *) 0 ;
7108 int result;
7109 void *argp1 = 0 ;
7110 int res1 = 0 ;
7111 PyObject *swig_obj[1] ;
7112
7113 if (!args) SWIG_fail;
7114 swig_obj[0] = args;
7115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7116 if (!SWIG_IsOK(res1)) {
7117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7118 }
7119 arg1 = reinterpret_cast< wxGauge * >(argp1);
7120 {
7121 PyThreadState* __tstate = wxPyBeginAllowThreads();
7122 result = (int)((wxGauge const *)arg1)->GetRange();
7123 wxPyEndAllowThreads(__tstate);
7124 if (PyErr_Occurred()) SWIG_fail;
7125 }
7126 resultobj = SWIG_From_int(static_cast< int >(result));
7127 return resultobj;
7128 fail:
7129 return NULL;
7130 }
7131
7132
7133 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7134 PyObject *resultobj = 0;
7135 wxGauge *arg1 = (wxGauge *) 0 ;
7136 int arg2 ;
7137 void *argp1 = 0 ;
7138 int res1 = 0 ;
7139 int val2 ;
7140 int ecode2 = 0 ;
7141 PyObject * obj0 = 0 ;
7142 PyObject * obj1 = 0 ;
7143 char * kwnames[] = {
7144 (char *) "self",(char *) "pos", NULL
7145 };
7146
7147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7149 if (!SWIG_IsOK(res1)) {
7150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7151 }
7152 arg1 = reinterpret_cast< wxGauge * >(argp1);
7153 ecode2 = SWIG_AsVal_int(obj1, &val2);
7154 if (!SWIG_IsOK(ecode2)) {
7155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7156 }
7157 arg2 = static_cast< int >(val2);
7158 {
7159 PyThreadState* __tstate = wxPyBeginAllowThreads();
7160 (arg1)->SetValue(arg2);
7161 wxPyEndAllowThreads(__tstate);
7162 if (PyErr_Occurred()) SWIG_fail;
7163 }
7164 resultobj = SWIG_Py_Void();
7165 return resultobj;
7166 fail:
7167 return NULL;
7168 }
7169
7170
7171 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7172 PyObject *resultobj = 0;
7173 wxGauge *arg1 = (wxGauge *) 0 ;
7174 int result;
7175 void *argp1 = 0 ;
7176 int res1 = 0 ;
7177 PyObject *swig_obj[1] ;
7178
7179 if (!args) SWIG_fail;
7180 swig_obj[0] = args;
7181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7182 if (!SWIG_IsOK(res1)) {
7183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7184 }
7185 arg1 = reinterpret_cast< wxGauge * >(argp1);
7186 {
7187 PyThreadState* __tstate = wxPyBeginAllowThreads();
7188 result = (int)((wxGauge const *)arg1)->GetValue();
7189 wxPyEndAllowThreads(__tstate);
7190 if (PyErr_Occurred()) SWIG_fail;
7191 }
7192 resultobj = SWIG_From_int(static_cast< int >(result));
7193 return resultobj;
7194 fail:
7195 return NULL;
7196 }
7197
7198
7199 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7200 PyObject *resultobj = 0;
7201 wxGauge *arg1 = (wxGauge *) 0 ;
7202 void *argp1 = 0 ;
7203 int res1 = 0 ;
7204 PyObject *swig_obj[1] ;
7205
7206 if (!args) SWIG_fail;
7207 swig_obj[0] = args;
7208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7209 if (!SWIG_IsOK(res1)) {
7210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7211 }
7212 arg1 = reinterpret_cast< wxGauge * >(argp1);
7213 {
7214 PyThreadState* __tstate = wxPyBeginAllowThreads();
7215 (arg1)->Pulse();
7216 wxPyEndAllowThreads(__tstate);
7217 if (PyErr_Occurred()) SWIG_fail;
7218 }
7219 resultobj = SWIG_Py_Void();
7220 return resultobj;
7221 fail:
7222 return NULL;
7223 }
7224
7225
7226 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7227 PyObject *resultobj = 0;
7228 wxGauge *arg1 = (wxGauge *) 0 ;
7229 bool result;
7230 void *argp1 = 0 ;
7231 int res1 = 0 ;
7232 PyObject *swig_obj[1] ;
7233
7234 if (!args) SWIG_fail;
7235 swig_obj[0] = args;
7236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7237 if (!SWIG_IsOK(res1)) {
7238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7239 }
7240 arg1 = reinterpret_cast< wxGauge * >(argp1);
7241 {
7242 PyThreadState* __tstate = wxPyBeginAllowThreads();
7243 result = (bool)((wxGauge const *)arg1)->IsVertical();
7244 wxPyEndAllowThreads(__tstate);
7245 if (PyErr_Occurred()) SWIG_fail;
7246 }
7247 {
7248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7249 }
7250 return resultobj;
7251 fail:
7252 return NULL;
7253 }
7254
7255
7256 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj = 0;
7258 wxGauge *arg1 = (wxGauge *) 0 ;
7259 int arg2 ;
7260 void *argp1 = 0 ;
7261 int res1 = 0 ;
7262 int val2 ;
7263 int ecode2 = 0 ;
7264 PyObject * obj0 = 0 ;
7265 PyObject * obj1 = 0 ;
7266 char * kwnames[] = {
7267 (char *) "self",(char *) "w", NULL
7268 };
7269
7270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7272 if (!SWIG_IsOK(res1)) {
7273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7274 }
7275 arg1 = reinterpret_cast< wxGauge * >(argp1);
7276 ecode2 = SWIG_AsVal_int(obj1, &val2);
7277 if (!SWIG_IsOK(ecode2)) {
7278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7279 }
7280 arg2 = static_cast< int >(val2);
7281 {
7282 PyThreadState* __tstate = wxPyBeginAllowThreads();
7283 (arg1)->SetShadowWidth(arg2);
7284 wxPyEndAllowThreads(__tstate);
7285 if (PyErr_Occurred()) SWIG_fail;
7286 }
7287 resultobj = SWIG_Py_Void();
7288 return resultobj;
7289 fail:
7290 return NULL;
7291 }
7292
7293
7294 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7295 PyObject *resultobj = 0;
7296 wxGauge *arg1 = (wxGauge *) 0 ;
7297 int result;
7298 void *argp1 = 0 ;
7299 int res1 = 0 ;
7300 PyObject *swig_obj[1] ;
7301
7302 if (!args) SWIG_fail;
7303 swig_obj[0] = args;
7304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7305 if (!SWIG_IsOK(res1)) {
7306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7307 }
7308 arg1 = reinterpret_cast< wxGauge * >(argp1);
7309 {
7310 PyThreadState* __tstate = wxPyBeginAllowThreads();
7311 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7312 wxPyEndAllowThreads(__tstate);
7313 if (PyErr_Occurred()) SWIG_fail;
7314 }
7315 resultobj = SWIG_From_int(static_cast< int >(result));
7316 return resultobj;
7317 fail:
7318 return NULL;
7319 }
7320
7321
7322 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7323 PyObject *resultobj = 0;
7324 wxGauge *arg1 = (wxGauge *) 0 ;
7325 int arg2 ;
7326 void *argp1 = 0 ;
7327 int res1 = 0 ;
7328 int val2 ;
7329 int ecode2 = 0 ;
7330 PyObject * obj0 = 0 ;
7331 PyObject * obj1 = 0 ;
7332 char * kwnames[] = {
7333 (char *) "self",(char *) "w", NULL
7334 };
7335
7336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7338 if (!SWIG_IsOK(res1)) {
7339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7340 }
7341 arg1 = reinterpret_cast< wxGauge * >(argp1);
7342 ecode2 = SWIG_AsVal_int(obj1, &val2);
7343 if (!SWIG_IsOK(ecode2)) {
7344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7345 }
7346 arg2 = static_cast< int >(val2);
7347 {
7348 PyThreadState* __tstate = wxPyBeginAllowThreads();
7349 (arg1)->SetBezelFace(arg2);
7350 wxPyEndAllowThreads(__tstate);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 resultobj = SWIG_Py_Void();
7354 return resultobj;
7355 fail:
7356 return NULL;
7357 }
7358
7359
7360 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7361 PyObject *resultobj = 0;
7362 wxGauge *arg1 = (wxGauge *) 0 ;
7363 int result;
7364 void *argp1 = 0 ;
7365 int res1 = 0 ;
7366 PyObject *swig_obj[1] ;
7367
7368 if (!args) SWIG_fail;
7369 swig_obj[0] = args;
7370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7371 if (!SWIG_IsOK(res1)) {
7372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7373 }
7374 arg1 = reinterpret_cast< wxGauge * >(argp1);
7375 {
7376 PyThreadState* __tstate = wxPyBeginAllowThreads();
7377 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7378 wxPyEndAllowThreads(__tstate);
7379 if (PyErr_Occurred()) SWIG_fail;
7380 }
7381 resultobj = SWIG_From_int(static_cast< int >(result));
7382 return resultobj;
7383 fail:
7384 return NULL;
7385 }
7386
7387
7388 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7389 PyObject *resultobj = 0;
7390 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7391 SwigValueWrapper<wxVisualAttributes > result;
7392 int val1 ;
7393 int ecode1 = 0 ;
7394 PyObject * obj0 = 0 ;
7395 char * kwnames[] = {
7396 (char *) "variant", NULL
7397 };
7398
7399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7400 if (obj0) {
7401 ecode1 = SWIG_AsVal_int(obj0, &val1);
7402 if (!SWIG_IsOK(ecode1)) {
7403 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7404 }
7405 arg1 = static_cast< wxWindowVariant >(val1);
7406 }
7407 {
7408 if (!wxPyCheckForApp()) SWIG_fail;
7409 PyThreadState* __tstate = wxPyBeginAllowThreads();
7410 result = wxGauge::GetClassDefaultAttributes(arg1);
7411 wxPyEndAllowThreads(__tstate);
7412 if (PyErr_Occurred()) SWIG_fail;
7413 }
7414 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7415 return resultobj;
7416 fail:
7417 return NULL;
7418 }
7419
7420
7421 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7422 PyObject *obj;
7423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7424 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7425 return SWIG_Py_Void();
7426 }
7427
7428 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7429 return SWIG_Python_InitShadowInstance(args);
7430 }
7431
7432 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7433 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7434 return 1;
7435 }
7436
7437
7438 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7439 PyObject *pyobj = 0;
7440
7441 {
7442 #if wxUSE_UNICODE
7443 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7444 #else
7445 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7446 #endif
7447 }
7448 return pyobj;
7449 }
7450
7451
7452 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7453 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7454 return 1;
7455 }
7456
7457
7458 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7459 PyObject *pyobj = 0;
7460
7461 {
7462 #if wxUSE_UNICODE
7463 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7464 #else
7465 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7466 #endif
7467 }
7468 return pyobj;
7469 }
7470
7471
7472 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7473 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7474 return 1;
7475 }
7476
7477
7478 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7479 PyObject *pyobj = 0;
7480
7481 {
7482 #if wxUSE_UNICODE
7483 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7484 #else
7485 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7486 #endif
7487 }
7488 return pyobj;
7489 }
7490
7491
7492 SWIGINTERN int StaticLineNameStr_set(PyObject *) {
7493 SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only.");
7494 return 1;
7495 }
7496
7497
7498 SWIGINTERN PyObject *StaticLineNameStr_get(void) {
7499 PyObject *pyobj = 0;
7500
7501 {
7502 #if wxUSE_UNICODE
7503 pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7504 #else
7505 pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7506 #endif
7507 }
7508 return pyobj;
7509 }
7510
7511
7512 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7513 PyObject *resultobj = 0;
7514 wxWindow *arg1 = (wxWindow *) 0 ;
7515 int arg2 = (int) -1 ;
7516 wxString const &arg3_defvalue = wxPyEmptyString ;
7517 wxString *arg3 = (wxString *) &arg3_defvalue ;
7518 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7519 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7520 wxSize const &arg5_defvalue = wxDefaultSize ;
7521 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7522 long arg6 = (long) 0 ;
7523 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7524 wxString *arg7 = (wxString *) &arg7_defvalue ;
7525 wxStaticBox *result = 0 ;
7526 void *argp1 = 0 ;
7527 int res1 = 0 ;
7528 int val2 ;
7529 int ecode2 = 0 ;
7530 bool temp3 = false ;
7531 wxPoint temp4 ;
7532 wxSize temp5 ;
7533 long val6 ;
7534 int ecode6 = 0 ;
7535 bool temp7 = false ;
7536 PyObject * obj0 = 0 ;
7537 PyObject * obj1 = 0 ;
7538 PyObject * obj2 = 0 ;
7539 PyObject * obj3 = 0 ;
7540 PyObject * obj4 = 0 ;
7541 PyObject * obj5 = 0 ;
7542 PyObject * obj6 = 0 ;
7543 char * kwnames[] = {
7544 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7545 };
7546
7547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7549 if (!SWIG_IsOK(res1)) {
7550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7551 }
7552 arg1 = reinterpret_cast< wxWindow * >(argp1);
7553 if (obj1) {
7554 ecode2 = SWIG_AsVal_int(obj1, &val2);
7555 if (!SWIG_IsOK(ecode2)) {
7556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7557 }
7558 arg2 = static_cast< int >(val2);
7559 }
7560 if (obj2) {
7561 {
7562 arg3 = wxString_in_helper(obj2);
7563 if (arg3 == NULL) SWIG_fail;
7564 temp3 = true;
7565 }
7566 }
7567 if (obj3) {
7568 {
7569 arg4 = &temp4;
7570 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7571 }
7572 }
7573 if (obj4) {
7574 {
7575 arg5 = &temp5;
7576 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7577 }
7578 }
7579 if (obj5) {
7580 ecode6 = SWIG_AsVal_long(obj5, &val6);
7581 if (!SWIG_IsOK(ecode6)) {
7582 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7583 }
7584 arg6 = static_cast< long >(val6);
7585 }
7586 if (obj6) {
7587 {
7588 arg7 = wxString_in_helper(obj6);
7589 if (arg7 == NULL) SWIG_fail;
7590 temp7 = true;
7591 }
7592 }
7593 {
7594 if (!wxPyCheckForApp()) SWIG_fail;
7595 PyThreadState* __tstate = wxPyBeginAllowThreads();
7596 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7597 wxPyEndAllowThreads(__tstate);
7598 if (PyErr_Occurred()) SWIG_fail;
7599 }
7600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7601 {
7602 if (temp3)
7603 delete arg3;
7604 }
7605 {
7606 if (temp7)
7607 delete arg7;
7608 }
7609 return resultobj;
7610 fail:
7611 {
7612 if (temp3)
7613 delete arg3;
7614 }
7615 {
7616 if (temp7)
7617 delete arg7;
7618 }
7619 return NULL;
7620 }
7621
7622
7623 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7624 PyObject *resultobj = 0;
7625 wxStaticBox *result = 0 ;
7626
7627 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7628 {
7629 if (!wxPyCheckForApp()) SWIG_fail;
7630 PyThreadState* __tstate = wxPyBeginAllowThreads();
7631 result = (wxStaticBox *)new wxStaticBox();
7632 wxPyEndAllowThreads(__tstate);
7633 if (PyErr_Occurred()) SWIG_fail;
7634 }
7635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7636 return resultobj;
7637 fail:
7638 return NULL;
7639 }
7640
7641
7642 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7643 PyObject *resultobj = 0;
7644 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7645 wxWindow *arg2 = (wxWindow *) 0 ;
7646 int arg3 = (int) -1 ;
7647 wxString const &arg4_defvalue = wxPyEmptyString ;
7648 wxString *arg4 = (wxString *) &arg4_defvalue ;
7649 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7650 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7651 wxSize const &arg6_defvalue = wxDefaultSize ;
7652 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7653 long arg7 = (long) 0 ;
7654 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7655 wxString *arg8 = (wxString *) &arg8_defvalue ;
7656 bool result;
7657 void *argp1 = 0 ;
7658 int res1 = 0 ;
7659 void *argp2 = 0 ;
7660 int res2 = 0 ;
7661 int val3 ;
7662 int ecode3 = 0 ;
7663 bool temp4 = false ;
7664 wxPoint temp5 ;
7665 wxSize temp6 ;
7666 long val7 ;
7667 int ecode7 = 0 ;
7668 bool temp8 = false ;
7669 PyObject * obj0 = 0 ;
7670 PyObject * obj1 = 0 ;
7671 PyObject * obj2 = 0 ;
7672 PyObject * obj3 = 0 ;
7673 PyObject * obj4 = 0 ;
7674 PyObject * obj5 = 0 ;
7675 PyObject * obj6 = 0 ;
7676 PyObject * obj7 = 0 ;
7677 char * kwnames[] = {
7678 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7679 };
7680
7681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7683 if (!SWIG_IsOK(res1)) {
7684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7685 }
7686 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7687 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7688 if (!SWIG_IsOK(res2)) {
7689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7690 }
7691 arg2 = reinterpret_cast< wxWindow * >(argp2);
7692 if (obj2) {
7693 ecode3 = SWIG_AsVal_int(obj2, &val3);
7694 if (!SWIG_IsOK(ecode3)) {
7695 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7696 }
7697 arg3 = static_cast< int >(val3);
7698 }
7699 if (obj3) {
7700 {
7701 arg4 = wxString_in_helper(obj3);
7702 if (arg4 == NULL) SWIG_fail;
7703 temp4 = true;
7704 }
7705 }
7706 if (obj4) {
7707 {
7708 arg5 = &temp5;
7709 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7710 }
7711 }
7712 if (obj5) {
7713 {
7714 arg6 = &temp6;
7715 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7716 }
7717 }
7718 if (obj6) {
7719 ecode7 = SWIG_AsVal_long(obj6, &val7);
7720 if (!SWIG_IsOK(ecode7)) {
7721 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7722 }
7723 arg7 = static_cast< long >(val7);
7724 }
7725 if (obj7) {
7726 {
7727 arg8 = wxString_in_helper(obj7);
7728 if (arg8 == NULL) SWIG_fail;
7729 temp8 = true;
7730 }
7731 }
7732 {
7733 PyThreadState* __tstate = wxPyBeginAllowThreads();
7734 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7735 wxPyEndAllowThreads(__tstate);
7736 if (PyErr_Occurred()) SWIG_fail;
7737 }
7738 {
7739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7740 }
7741 {
7742 if (temp4)
7743 delete arg4;
7744 }
7745 {
7746 if (temp8)
7747 delete arg8;
7748 }
7749 return resultobj;
7750 fail:
7751 {
7752 if (temp4)
7753 delete arg4;
7754 }
7755 {
7756 if (temp8)
7757 delete arg8;
7758 }
7759 return NULL;
7760 }
7761
7762
7763 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7764 PyObject *resultobj = 0;
7765 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7766 SwigValueWrapper<wxVisualAttributes > result;
7767 int val1 ;
7768 int ecode1 = 0 ;
7769 PyObject * obj0 = 0 ;
7770 char * kwnames[] = {
7771 (char *) "variant", NULL
7772 };
7773
7774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7775 if (obj0) {
7776 ecode1 = SWIG_AsVal_int(obj0, &val1);
7777 if (!SWIG_IsOK(ecode1)) {
7778 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7779 }
7780 arg1 = static_cast< wxWindowVariant >(val1);
7781 }
7782 {
7783 if (!wxPyCheckForApp()) SWIG_fail;
7784 PyThreadState* __tstate = wxPyBeginAllowThreads();
7785 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7786 wxPyEndAllowThreads(__tstate);
7787 if (PyErr_Occurred()) SWIG_fail;
7788 }
7789 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7790 return resultobj;
7791 fail:
7792 return NULL;
7793 }
7794
7795
7796 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7797 PyObject *obj;
7798 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7799 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7800 return SWIG_Py_Void();
7801 }
7802
7803 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7804 return SWIG_Python_InitShadowInstance(args);
7805 }
7806
7807 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7808 PyObject *resultobj = 0;
7809 wxWindow *arg1 = (wxWindow *) 0 ;
7810 int arg2 = (int) -1 ;
7811 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7812 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7813 wxSize const &arg4_defvalue = wxDefaultSize ;
7814 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7815 long arg5 = (long) wxLI_HORIZONTAL ;
7816 wxString const &arg6_defvalue = wxPyStaticLineNameStr ;
7817 wxString *arg6 = (wxString *) &arg6_defvalue ;
7818 wxStaticLine *result = 0 ;
7819 void *argp1 = 0 ;
7820 int res1 = 0 ;
7821 int val2 ;
7822 int ecode2 = 0 ;
7823 wxPoint temp3 ;
7824 wxSize temp4 ;
7825 long val5 ;
7826 int ecode5 = 0 ;
7827 bool temp6 = false ;
7828 PyObject * obj0 = 0 ;
7829 PyObject * obj1 = 0 ;
7830 PyObject * obj2 = 0 ;
7831 PyObject * obj3 = 0 ;
7832 PyObject * obj4 = 0 ;
7833 PyObject * obj5 = 0 ;
7834 char * kwnames[] = {
7835 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7836 };
7837
7838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7840 if (!SWIG_IsOK(res1)) {
7841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7842 }
7843 arg1 = reinterpret_cast< wxWindow * >(argp1);
7844 if (obj1) {
7845 ecode2 = SWIG_AsVal_int(obj1, &val2);
7846 if (!SWIG_IsOK(ecode2)) {
7847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7848 }
7849 arg2 = static_cast< int >(val2);
7850 }
7851 if (obj2) {
7852 {
7853 arg3 = &temp3;
7854 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7855 }
7856 }
7857 if (obj3) {
7858 {
7859 arg4 = &temp4;
7860 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7861 }
7862 }
7863 if (obj4) {
7864 ecode5 = SWIG_AsVal_long(obj4, &val5);
7865 if (!SWIG_IsOK(ecode5)) {
7866 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7867 }
7868 arg5 = static_cast< long >(val5);
7869 }
7870 if (obj5) {
7871 {
7872 arg6 = wxString_in_helper(obj5);
7873 if (arg6 == NULL) SWIG_fail;
7874 temp6 = true;
7875 }
7876 }
7877 {
7878 if (!wxPyCheckForApp()) SWIG_fail;
7879 PyThreadState* __tstate = wxPyBeginAllowThreads();
7880 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7881 wxPyEndAllowThreads(__tstate);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7885 {
7886 if (temp6)
7887 delete arg6;
7888 }
7889 return resultobj;
7890 fail:
7891 {
7892 if (temp6)
7893 delete arg6;
7894 }
7895 return NULL;
7896 }
7897
7898
7899 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7900 PyObject *resultobj = 0;
7901 wxStaticLine *result = 0 ;
7902
7903 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7904 {
7905 if (!wxPyCheckForApp()) SWIG_fail;
7906 PyThreadState* __tstate = wxPyBeginAllowThreads();
7907 result = (wxStaticLine *)new wxStaticLine();
7908 wxPyEndAllowThreads(__tstate);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7912 return resultobj;
7913 fail:
7914 return NULL;
7915 }
7916
7917
7918 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7919 PyObject *resultobj = 0;
7920 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7921 wxWindow *arg2 = (wxWindow *) 0 ;
7922 int arg3 = (int) -1 ;
7923 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7924 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7925 wxSize const &arg5_defvalue = wxDefaultSize ;
7926 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7927 long arg6 = (long) wxLI_HORIZONTAL ;
7928 wxString const &arg7_defvalue = wxPyStaticLineNameStr ;
7929 wxString *arg7 = (wxString *) &arg7_defvalue ;
7930 bool result;
7931 void *argp1 = 0 ;
7932 int res1 = 0 ;
7933 void *argp2 = 0 ;
7934 int res2 = 0 ;
7935 int val3 ;
7936 int ecode3 = 0 ;
7937 wxPoint temp4 ;
7938 wxSize temp5 ;
7939 long val6 ;
7940 int ecode6 = 0 ;
7941 bool temp7 = false ;
7942 PyObject * obj0 = 0 ;
7943 PyObject * obj1 = 0 ;
7944 PyObject * obj2 = 0 ;
7945 PyObject * obj3 = 0 ;
7946 PyObject * obj4 = 0 ;
7947 PyObject * obj5 = 0 ;
7948 PyObject * obj6 = 0 ;
7949 char * kwnames[] = {
7950 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7951 };
7952
7953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7955 if (!SWIG_IsOK(res1)) {
7956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7957 }
7958 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7959 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7960 if (!SWIG_IsOK(res2)) {
7961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7962 }
7963 arg2 = reinterpret_cast< wxWindow * >(argp2);
7964 if (obj2) {
7965 ecode3 = SWIG_AsVal_int(obj2, &val3);
7966 if (!SWIG_IsOK(ecode3)) {
7967 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7968 }
7969 arg3 = static_cast< int >(val3);
7970 }
7971 if (obj3) {
7972 {
7973 arg4 = &temp4;
7974 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7975 }
7976 }
7977 if (obj4) {
7978 {
7979 arg5 = &temp5;
7980 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7981 }
7982 }
7983 if (obj5) {
7984 ecode6 = SWIG_AsVal_long(obj5, &val6);
7985 if (!SWIG_IsOK(ecode6)) {
7986 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7987 }
7988 arg6 = static_cast< long >(val6);
7989 }
7990 if (obj6) {
7991 {
7992 arg7 = wxString_in_helper(obj6);
7993 if (arg7 == NULL) SWIG_fail;
7994 temp7 = true;
7995 }
7996 }
7997 {
7998 PyThreadState* __tstate = wxPyBeginAllowThreads();
7999 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8000 wxPyEndAllowThreads(__tstate);
8001 if (PyErr_Occurred()) SWIG_fail;
8002 }
8003 {
8004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8005 }
8006 {
8007 if (temp7)
8008 delete arg7;
8009 }
8010 return resultobj;
8011 fail:
8012 {
8013 if (temp7)
8014 delete arg7;
8015 }
8016 return NULL;
8017 }
8018
8019
8020 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8021 PyObject *resultobj = 0;
8022 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
8023 bool result;
8024 void *argp1 = 0 ;
8025 int res1 = 0 ;
8026 PyObject *swig_obj[1] ;
8027
8028 if (!args) SWIG_fail;
8029 swig_obj[0] = args;
8030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
8031 if (!SWIG_IsOK(res1)) {
8032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
8033 }
8034 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
8035 {
8036 PyThreadState* __tstate = wxPyBeginAllowThreads();
8037 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
8038 wxPyEndAllowThreads(__tstate);
8039 if (PyErr_Occurred()) SWIG_fail;
8040 }
8041 {
8042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8043 }
8044 return resultobj;
8045 fail:
8046 return NULL;
8047 }
8048
8049
8050 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8051 PyObject *resultobj = 0;
8052 int result;
8053
8054 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8055 {
8056 PyThreadState* __tstate = wxPyBeginAllowThreads();
8057 result = (int)wxStaticLine::GetDefaultSize();
8058 wxPyEndAllowThreads(__tstate);
8059 if (PyErr_Occurred()) SWIG_fail;
8060 }
8061 resultobj = SWIG_From_int(static_cast< int >(result));
8062 return resultobj;
8063 fail:
8064 return NULL;
8065 }
8066
8067
8068 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8069 PyObject *resultobj = 0;
8070 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8071 SwigValueWrapper<wxVisualAttributes > result;
8072 int val1 ;
8073 int ecode1 = 0 ;
8074 PyObject * obj0 = 0 ;
8075 char * kwnames[] = {
8076 (char *) "variant", NULL
8077 };
8078
8079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8080 if (obj0) {
8081 ecode1 = SWIG_AsVal_int(obj0, &val1);
8082 if (!SWIG_IsOK(ecode1)) {
8083 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8084 }
8085 arg1 = static_cast< wxWindowVariant >(val1);
8086 }
8087 {
8088 if (!wxPyCheckForApp()) SWIG_fail;
8089 PyThreadState* __tstate = wxPyBeginAllowThreads();
8090 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8091 wxPyEndAllowThreads(__tstate);
8092 if (PyErr_Occurred()) SWIG_fail;
8093 }
8094 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8095 return resultobj;
8096 fail:
8097 return NULL;
8098 }
8099
8100
8101 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8102 PyObject *obj;
8103 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8104 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8105 return SWIG_Py_Void();
8106 }
8107
8108 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8109 return SWIG_Python_InitShadowInstance(args);
8110 }
8111
8112 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8113 PyObject *resultobj = 0;
8114 wxWindow *arg1 = (wxWindow *) 0 ;
8115 int arg2 = (int) -1 ;
8116 wxString const &arg3_defvalue = wxPyEmptyString ;
8117 wxString *arg3 = (wxString *) &arg3_defvalue ;
8118 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8119 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8120 wxSize const &arg5_defvalue = wxDefaultSize ;
8121 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8122 long arg6 = (long) 0 ;
8123 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8124 wxString *arg7 = (wxString *) &arg7_defvalue ;
8125 wxStaticText *result = 0 ;
8126 void *argp1 = 0 ;
8127 int res1 = 0 ;
8128 int val2 ;
8129 int ecode2 = 0 ;
8130 bool temp3 = false ;
8131 wxPoint temp4 ;
8132 wxSize temp5 ;
8133 long val6 ;
8134 int ecode6 = 0 ;
8135 bool temp7 = false ;
8136 PyObject * obj0 = 0 ;
8137 PyObject * obj1 = 0 ;
8138 PyObject * obj2 = 0 ;
8139 PyObject * obj3 = 0 ;
8140 PyObject * obj4 = 0 ;
8141 PyObject * obj5 = 0 ;
8142 PyObject * obj6 = 0 ;
8143 char * kwnames[] = {
8144 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8145 };
8146
8147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8149 if (!SWIG_IsOK(res1)) {
8150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8151 }
8152 arg1 = reinterpret_cast< wxWindow * >(argp1);
8153 if (obj1) {
8154 ecode2 = SWIG_AsVal_int(obj1, &val2);
8155 if (!SWIG_IsOK(ecode2)) {
8156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8157 }
8158 arg2 = static_cast< int >(val2);
8159 }
8160 if (obj2) {
8161 {
8162 arg3 = wxString_in_helper(obj2);
8163 if (arg3 == NULL) SWIG_fail;
8164 temp3 = true;
8165 }
8166 }
8167 if (obj3) {
8168 {
8169 arg4 = &temp4;
8170 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8171 }
8172 }
8173 if (obj4) {
8174 {
8175 arg5 = &temp5;
8176 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8177 }
8178 }
8179 if (obj5) {
8180 ecode6 = SWIG_AsVal_long(obj5, &val6);
8181 if (!SWIG_IsOK(ecode6)) {
8182 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8183 }
8184 arg6 = static_cast< long >(val6);
8185 }
8186 if (obj6) {
8187 {
8188 arg7 = wxString_in_helper(obj6);
8189 if (arg7 == NULL) SWIG_fail;
8190 temp7 = true;
8191 }
8192 }
8193 {
8194 if (!wxPyCheckForApp()) SWIG_fail;
8195 PyThreadState* __tstate = wxPyBeginAllowThreads();
8196 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8197 wxPyEndAllowThreads(__tstate);
8198 if (PyErr_Occurred()) SWIG_fail;
8199 }
8200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8201 {
8202 if (temp3)
8203 delete arg3;
8204 }
8205 {
8206 if (temp7)
8207 delete arg7;
8208 }
8209 return resultobj;
8210 fail:
8211 {
8212 if (temp3)
8213 delete arg3;
8214 }
8215 {
8216 if (temp7)
8217 delete arg7;
8218 }
8219 return NULL;
8220 }
8221
8222
8223 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8224 PyObject *resultobj = 0;
8225 wxStaticText *result = 0 ;
8226
8227 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8228 {
8229 if (!wxPyCheckForApp()) SWIG_fail;
8230 PyThreadState* __tstate = wxPyBeginAllowThreads();
8231 result = (wxStaticText *)new wxStaticText();
8232 wxPyEndAllowThreads(__tstate);
8233 if (PyErr_Occurred()) SWIG_fail;
8234 }
8235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8236 return resultobj;
8237 fail:
8238 return NULL;
8239 }
8240
8241
8242 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8243 PyObject *resultobj = 0;
8244 wxStaticText *arg1 = (wxStaticText *) 0 ;
8245 wxWindow *arg2 = (wxWindow *) 0 ;
8246 int arg3 = (int) -1 ;
8247 wxString const &arg4_defvalue = wxPyEmptyString ;
8248 wxString *arg4 = (wxString *) &arg4_defvalue ;
8249 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8250 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8251 wxSize const &arg6_defvalue = wxDefaultSize ;
8252 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8253 long arg7 = (long) 0 ;
8254 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8255 wxString *arg8 = (wxString *) &arg8_defvalue ;
8256 bool result;
8257 void *argp1 = 0 ;
8258 int res1 = 0 ;
8259 void *argp2 = 0 ;
8260 int res2 = 0 ;
8261 int val3 ;
8262 int ecode3 = 0 ;
8263 bool temp4 = false ;
8264 wxPoint temp5 ;
8265 wxSize temp6 ;
8266 long val7 ;
8267 int ecode7 = 0 ;
8268 bool temp8 = false ;
8269 PyObject * obj0 = 0 ;
8270 PyObject * obj1 = 0 ;
8271 PyObject * obj2 = 0 ;
8272 PyObject * obj3 = 0 ;
8273 PyObject * obj4 = 0 ;
8274 PyObject * obj5 = 0 ;
8275 PyObject * obj6 = 0 ;
8276 PyObject * obj7 = 0 ;
8277 char * kwnames[] = {
8278 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8279 };
8280
8281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8283 if (!SWIG_IsOK(res1)) {
8284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8285 }
8286 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8287 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8288 if (!SWIG_IsOK(res2)) {
8289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8290 }
8291 arg2 = reinterpret_cast< wxWindow * >(argp2);
8292 if (obj2) {
8293 ecode3 = SWIG_AsVal_int(obj2, &val3);
8294 if (!SWIG_IsOK(ecode3)) {
8295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8296 }
8297 arg3 = static_cast< int >(val3);
8298 }
8299 if (obj3) {
8300 {
8301 arg4 = wxString_in_helper(obj3);
8302 if (arg4 == NULL) SWIG_fail;
8303 temp4 = true;
8304 }
8305 }
8306 if (obj4) {
8307 {
8308 arg5 = &temp5;
8309 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8310 }
8311 }
8312 if (obj5) {
8313 {
8314 arg6 = &temp6;
8315 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8316 }
8317 }
8318 if (obj6) {
8319 ecode7 = SWIG_AsVal_long(obj6, &val7);
8320 if (!SWIG_IsOK(ecode7)) {
8321 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8322 }
8323 arg7 = static_cast< long >(val7);
8324 }
8325 if (obj7) {
8326 {
8327 arg8 = wxString_in_helper(obj7);
8328 if (arg8 == NULL) SWIG_fail;
8329 temp8 = true;
8330 }
8331 }
8332 {
8333 PyThreadState* __tstate = wxPyBeginAllowThreads();
8334 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8335 wxPyEndAllowThreads(__tstate);
8336 if (PyErr_Occurred()) SWIG_fail;
8337 }
8338 {
8339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8340 }
8341 {
8342 if (temp4)
8343 delete arg4;
8344 }
8345 {
8346 if (temp8)
8347 delete arg8;
8348 }
8349 return resultobj;
8350 fail:
8351 {
8352 if (temp4)
8353 delete arg4;
8354 }
8355 {
8356 if (temp8)
8357 delete arg8;
8358 }
8359 return NULL;
8360 }
8361
8362
8363 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8364 PyObject *resultobj = 0;
8365 wxStaticText *arg1 = (wxStaticText *) 0 ;
8366 int arg2 ;
8367 void *argp1 = 0 ;
8368 int res1 = 0 ;
8369 int val2 ;
8370 int ecode2 = 0 ;
8371 PyObject * obj0 = 0 ;
8372 PyObject * obj1 = 0 ;
8373 char * kwnames[] = {
8374 (char *) "self",(char *) "width", NULL
8375 };
8376
8377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8379 if (!SWIG_IsOK(res1)) {
8380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8381 }
8382 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8383 ecode2 = SWIG_AsVal_int(obj1, &val2);
8384 if (!SWIG_IsOK(ecode2)) {
8385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8386 }
8387 arg2 = static_cast< int >(val2);
8388 {
8389 PyThreadState* __tstate = wxPyBeginAllowThreads();
8390 (arg1)->Wrap(arg2);
8391 wxPyEndAllowThreads(__tstate);
8392 if (PyErr_Occurred()) SWIG_fail;
8393 }
8394 resultobj = SWIG_Py_Void();
8395 return resultobj;
8396 fail:
8397 return NULL;
8398 }
8399
8400
8401 SWIGINTERN PyObject *_wrap_StaticText_IsEllipsized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8402 PyObject *resultobj = 0;
8403 wxStaticText *arg1 = (wxStaticText *) 0 ;
8404 bool result;
8405 void *argp1 = 0 ;
8406 int res1 = 0 ;
8407 PyObject *swig_obj[1] ;
8408
8409 if (!args) SWIG_fail;
8410 swig_obj[0] = args;
8411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8412 if (!SWIG_IsOK(res1)) {
8413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_IsEllipsized" "', expected argument " "1"" of type '" "wxStaticText const *""'");
8414 }
8415 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8416 {
8417 PyThreadState* __tstate = wxPyBeginAllowThreads();
8418 result = (bool)((wxStaticText const *)arg1)->IsEllipsized();
8419 wxPyEndAllowThreads(__tstate);
8420 if (PyErr_Occurred()) SWIG_fail;
8421 }
8422 {
8423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8424 }
8425 return resultobj;
8426 fail:
8427 return NULL;
8428 }
8429
8430
8431 SWIGINTERN PyObject *_wrap_StaticText_RemoveMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8432 PyObject *resultobj = 0;
8433 wxString *arg1 = 0 ;
8434 wxString result;
8435 bool temp1 = false ;
8436 PyObject * obj0 = 0 ;
8437 char * kwnames[] = {
8438 (char *) "str", NULL
8439 };
8440
8441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_RemoveMarkup",kwnames,&obj0)) SWIG_fail;
8442 {
8443 arg1 = wxString_in_helper(obj0);
8444 if (arg1 == NULL) SWIG_fail;
8445 temp1 = true;
8446 }
8447 {
8448 PyThreadState* __tstate = wxPyBeginAllowThreads();
8449 result = wxStaticText::RemoveMarkup((wxString const &)*arg1);
8450 wxPyEndAllowThreads(__tstate);
8451 if (PyErr_Occurred()) SWIG_fail;
8452 }
8453 {
8454 #if wxUSE_UNICODE
8455 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8456 #else
8457 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8458 #endif
8459 }
8460 {
8461 if (temp1)
8462 delete arg1;
8463 }
8464 return resultobj;
8465 fail:
8466 {
8467 if (temp1)
8468 delete arg1;
8469 }
8470 return NULL;
8471 }
8472
8473
8474 SWIGINTERN PyObject *_wrap_StaticText_EscapeMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8475 PyObject *resultobj = 0;
8476 wxString *arg1 = 0 ;
8477 wxString result;
8478 bool temp1 = false ;
8479 PyObject * obj0 = 0 ;
8480 char * kwnames[] = {
8481 (char *) "str", NULL
8482 };
8483
8484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_EscapeMarkup",kwnames,&obj0)) SWIG_fail;
8485 {
8486 arg1 = wxString_in_helper(obj0);
8487 if (arg1 == NULL) SWIG_fail;
8488 temp1 = true;
8489 }
8490 {
8491 PyThreadState* __tstate = wxPyBeginAllowThreads();
8492 result = wxStaticText::EscapeMarkup((wxString const &)*arg1);
8493 wxPyEndAllowThreads(__tstate);
8494 if (PyErr_Occurred()) SWIG_fail;
8495 }
8496 {
8497 #if wxUSE_UNICODE
8498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8499 #else
8500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8501 #endif
8502 }
8503 {
8504 if (temp1)
8505 delete arg1;
8506 }
8507 return resultobj;
8508 fail:
8509 {
8510 if (temp1)
8511 delete arg1;
8512 }
8513 return NULL;
8514 }
8515
8516
8517 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8518 PyObject *resultobj = 0;
8519 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8520 SwigValueWrapper<wxVisualAttributes > result;
8521 int val1 ;
8522 int ecode1 = 0 ;
8523 PyObject * obj0 = 0 ;
8524 char * kwnames[] = {
8525 (char *) "variant", NULL
8526 };
8527
8528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8529 if (obj0) {
8530 ecode1 = SWIG_AsVal_int(obj0, &val1);
8531 if (!SWIG_IsOK(ecode1)) {
8532 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8533 }
8534 arg1 = static_cast< wxWindowVariant >(val1);
8535 }
8536 {
8537 if (!wxPyCheckForApp()) SWIG_fail;
8538 PyThreadState* __tstate = wxPyBeginAllowThreads();
8539 result = wxStaticText::GetClassDefaultAttributes(arg1);
8540 wxPyEndAllowThreads(__tstate);
8541 if (PyErr_Occurred()) SWIG_fail;
8542 }
8543 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8544 return resultobj;
8545 fail:
8546 return NULL;
8547 }
8548
8549
8550 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8551 PyObject *obj;
8552 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8553 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8554 return SWIG_Py_Void();
8555 }
8556
8557 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8558 return SWIG_Python_InitShadowInstance(args);
8559 }
8560
8561 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8562 PyObject *resultobj = 0;
8563 wxWindow *arg1 = (wxWindow *) 0 ;
8564 int arg2 = (int) -1 ;
8565 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8566 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8567 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8568 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8569 wxSize const &arg5_defvalue = wxDefaultSize ;
8570 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8571 long arg6 = (long) 0 ;
8572 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8573 wxString *arg7 = (wxString *) &arg7_defvalue ;
8574 wxStaticBitmap *result = 0 ;
8575 void *argp1 = 0 ;
8576 int res1 = 0 ;
8577 int val2 ;
8578 int ecode2 = 0 ;
8579 void *argp3 = 0 ;
8580 int res3 = 0 ;
8581 wxPoint temp4 ;
8582 wxSize temp5 ;
8583 long val6 ;
8584 int ecode6 = 0 ;
8585 bool temp7 = false ;
8586 PyObject * obj0 = 0 ;
8587 PyObject * obj1 = 0 ;
8588 PyObject * obj2 = 0 ;
8589 PyObject * obj3 = 0 ;
8590 PyObject * obj4 = 0 ;
8591 PyObject * obj5 = 0 ;
8592 PyObject * obj6 = 0 ;
8593 char * kwnames[] = {
8594 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8595 };
8596
8597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8599 if (!SWIG_IsOK(res1)) {
8600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8601 }
8602 arg1 = reinterpret_cast< wxWindow * >(argp1);
8603 if (obj1) {
8604 ecode2 = SWIG_AsVal_int(obj1, &val2);
8605 if (!SWIG_IsOK(ecode2)) {
8606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8607 }
8608 arg2 = static_cast< int >(val2);
8609 }
8610 if (obj2) {
8611 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8612 if (!SWIG_IsOK(res3)) {
8613 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8614 }
8615 if (!argp3) {
8616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8617 }
8618 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8619 }
8620 if (obj3) {
8621 {
8622 arg4 = &temp4;
8623 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8624 }
8625 }
8626 if (obj4) {
8627 {
8628 arg5 = &temp5;
8629 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8630 }
8631 }
8632 if (obj5) {
8633 ecode6 = SWIG_AsVal_long(obj5, &val6);
8634 if (!SWIG_IsOK(ecode6)) {
8635 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8636 }
8637 arg6 = static_cast< long >(val6);
8638 }
8639 if (obj6) {
8640 {
8641 arg7 = wxString_in_helper(obj6);
8642 if (arg7 == NULL) SWIG_fail;
8643 temp7 = true;
8644 }
8645 }
8646 {
8647 if (!wxPyCheckForApp()) SWIG_fail;
8648 PyThreadState* __tstate = wxPyBeginAllowThreads();
8649 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8650 wxPyEndAllowThreads(__tstate);
8651 if (PyErr_Occurred()) SWIG_fail;
8652 }
8653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8654 {
8655 if (temp7)
8656 delete arg7;
8657 }
8658 return resultobj;
8659 fail:
8660 {
8661 if (temp7)
8662 delete arg7;
8663 }
8664 return NULL;
8665 }
8666
8667
8668 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8669 PyObject *resultobj = 0;
8670 wxStaticBitmap *result = 0 ;
8671
8672 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8673 {
8674 if (!wxPyCheckForApp()) SWIG_fail;
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 result = (wxStaticBitmap *)new wxStaticBitmap();
8677 wxPyEndAllowThreads(__tstate);
8678 if (PyErr_Occurred()) SWIG_fail;
8679 }
8680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8681 return resultobj;
8682 fail:
8683 return NULL;
8684 }
8685
8686
8687 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8688 PyObject *resultobj = 0;
8689 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8690 wxWindow *arg2 = (wxWindow *) 0 ;
8691 int arg3 = (int) -1 ;
8692 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8693 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8694 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8695 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8696 wxSize const &arg6_defvalue = wxDefaultSize ;
8697 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8698 long arg7 = (long) 0 ;
8699 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8700 wxString *arg8 = (wxString *) &arg8_defvalue ;
8701 bool result;
8702 void *argp1 = 0 ;
8703 int res1 = 0 ;
8704 void *argp2 = 0 ;
8705 int res2 = 0 ;
8706 int val3 ;
8707 int ecode3 = 0 ;
8708 void *argp4 = 0 ;
8709 int res4 = 0 ;
8710 wxPoint temp5 ;
8711 wxSize temp6 ;
8712 long val7 ;
8713 int ecode7 = 0 ;
8714 bool temp8 = false ;
8715 PyObject * obj0 = 0 ;
8716 PyObject * obj1 = 0 ;
8717 PyObject * obj2 = 0 ;
8718 PyObject * obj3 = 0 ;
8719 PyObject * obj4 = 0 ;
8720 PyObject * obj5 = 0 ;
8721 PyObject * obj6 = 0 ;
8722 PyObject * obj7 = 0 ;
8723 char * kwnames[] = {
8724 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8725 };
8726
8727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8729 if (!SWIG_IsOK(res1)) {
8730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8731 }
8732 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8733 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8734 if (!SWIG_IsOK(res2)) {
8735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8736 }
8737 arg2 = reinterpret_cast< wxWindow * >(argp2);
8738 if (obj2) {
8739 ecode3 = SWIG_AsVal_int(obj2, &val3);
8740 if (!SWIG_IsOK(ecode3)) {
8741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8742 }
8743 arg3 = static_cast< int >(val3);
8744 }
8745 if (obj3) {
8746 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8747 if (!SWIG_IsOK(res4)) {
8748 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8749 }
8750 if (!argp4) {
8751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8752 }
8753 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8754 }
8755 if (obj4) {
8756 {
8757 arg5 = &temp5;
8758 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8759 }
8760 }
8761 if (obj5) {
8762 {
8763 arg6 = &temp6;
8764 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8765 }
8766 }
8767 if (obj6) {
8768 ecode7 = SWIG_AsVal_long(obj6, &val7);
8769 if (!SWIG_IsOK(ecode7)) {
8770 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8771 }
8772 arg7 = static_cast< long >(val7);
8773 }
8774 if (obj7) {
8775 {
8776 arg8 = wxString_in_helper(obj7);
8777 if (arg8 == NULL) SWIG_fail;
8778 temp8 = true;
8779 }
8780 }
8781 {
8782 PyThreadState* __tstate = wxPyBeginAllowThreads();
8783 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 {
8788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8789 }
8790 {
8791 if (temp8)
8792 delete arg8;
8793 }
8794 return resultobj;
8795 fail:
8796 {
8797 if (temp8)
8798 delete arg8;
8799 }
8800 return NULL;
8801 }
8802
8803
8804 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8805 PyObject *resultobj = 0;
8806 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8807 wxBitmap result;
8808 void *argp1 = 0 ;
8809 int res1 = 0 ;
8810 PyObject *swig_obj[1] ;
8811
8812 if (!args) SWIG_fail;
8813 swig_obj[0] = args;
8814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8815 if (!SWIG_IsOK(res1)) {
8816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8817 }
8818 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8819 {
8820 PyThreadState* __tstate = wxPyBeginAllowThreads();
8821 result = (arg1)->GetBitmap();
8822 wxPyEndAllowThreads(__tstate);
8823 if (PyErr_Occurred()) SWIG_fail;
8824 }
8825 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8826 return resultobj;
8827 fail:
8828 return NULL;
8829 }
8830
8831
8832 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8833 PyObject *resultobj = 0;
8834 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8835 wxBitmap *arg2 = 0 ;
8836 void *argp1 = 0 ;
8837 int res1 = 0 ;
8838 void *argp2 = 0 ;
8839 int res2 = 0 ;
8840 PyObject * obj0 = 0 ;
8841 PyObject * obj1 = 0 ;
8842 char * kwnames[] = {
8843 (char *) "self",(char *) "bitmap", NULL
8844 };
8845
8846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8848 if (!SWIG_IsOK(res1)) {
8849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8850 }
8851 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8852 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8853 if (!SWIG_IsOK(res2)) {
8854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8855 }
8856 if (!argp2) {
8857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8858 }
8859 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8860 {
8861 PyThreadState* __tstate = wxPyBeginAllowThreads();
8862 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8863 wxPyEndAllowThreads(__tstate);
8864 if (PyErr_Occurred()) SWIG_fail;
8865 }
8866 resultobj = SWIG_Py_Void();
8867 return resultobj;
8868 fail:
8869 return NULL;
8870 }
8871
8872
8873 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8874 PyObject *resultobj = 0;
8875 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8876 wxIcon *arg2 = 0 ;
8877 void *argp1 = 0 ;
8878 int res1 = 0 ;
8879 void *argp2 = 0 ;
8880 int res2 = 0 ;
8881 PyObject * obj0 = 0 ;
8882 PyObject * obj1 = 0 ;
8883 char * kwnames[] = {
8884 (char *) "self",(char *) "icon", NULL
8885 };
8886
8887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8889 if (!SWIG_IsOK(res1)) {
8890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8891 }
8892 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8893 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8894 if (!SWIG_IsOK(res2)) {
8895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8896 }
8897 if (!argp2) {
8898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8899 }
8900 arg2 = reinterpret_cast< wxIcon * >(argp2);
8901 {
8902 PyThreadState* __tstate = wxPyBeginAllowThreads();
8903 (arg1)->SetIcon((wxIcon const &)*arg2);
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 resultobj = SWIG_Py_Void();
8908 return resultobj;
8909 fail:
8910 return NULL;
8911 }
8912
8913
8914 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8915 PyObject *resultobj = 0;
8916 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8917 SwigValueWrapper<wxVisualAttributes > result;
8918 int val1 ;
8919 int ecode1 = 0 ;
8920 PyObject * obj0 = 0 ;
8921 char * kwnames[] = {
8922 (char *) "variant", NULL
8923 };
8924
8925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8926 if (obj0) {
8927 ecode1 = SWIG_AsVal_int(obj0, &val1);
8928 if (!SWIG_IsOK(ecode1)) {
8929 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8930 }
8931 arg1 = static_cast< wxWindowVariant >(val1);
8932 }
8933 {
8934 if (!wxPyCheckForApp()) SWIG_fail;
8935 PyThreadState* __tstate = wxPyBeginAllowThreads();
8936 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8937 wxPyEndAllowThreads(__tstate);
8938 if (PyErr_Occurred()) SWIG_fail;
8939 }
8940 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8941 return resultobj;
8942 fail:
8943 return NULL;
8944 }
8945
8946
8947 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8948 PyObject *obj;
8949 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8950 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8951 return SWIG_Py_Void();
8952 }
8953
8954 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8955 return SWIG_Python_InitShadowInstance(args);
8956 }
8957
8958 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8959 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8960 return 1;
8961 }
8962
8963
8964 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8965 PyObject *pyobj = 0;
8966
8967 {
8968 #if wxUSE_UNICODE
8969 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8970 #else
8971 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8972 #endif
8973 }
8974 return pyobj;
8975 }
8976
8977
8978 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8979 PyObject *resultobj = 0;
8980 wxWindow *arg1 = (wxWindow *) 0 ;
8981 int arg2 = (int) -1 ;
8982 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8983 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8984 wxSize const &arg4_defvalue = wxDefaultSize ;
8985 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8986 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8987 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8988 long arg6 = (long) 0 ;
8989 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8990 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8991 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8992 wxString *arg8 = (wxString *) &arg8_defvalue ;
8993 wxListBox *result = 0 ;
8994 void *argp1 = 0 ;
8995 int res1 = 0 ;
8996 int val2 ;
8997 int ecode2 = 0 ;
8998 wxPoint temp3 ;
8999 wxSize temp4 ;
9000 bool temp5 = false ;
9001 long val6 ;
9002 int ecode6 = 0 ;
9003 void *argp7 = 0 ;
9004 int res7 = 0 ;
9005 bool temp8 = false ;
9006 PyObject * obj0 = 0 ;
9007 PyObject * obj1 = 0 ;
9008 PyObject * obj2 = 0 ;
9009 PyObject * obj3 = 0 ;
9010 PyObject * obj4 = 0 ;
9011 PyObject * obj5 = 0 ;
9012 PyObject * obj6 = 0 ;
9013 PyObject * obj7 = 0 ;
9014 char * kwnames[] = {
9015 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9016 };
9017
9018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9020 if (!SWIG_IsOK(res1)) {
9021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9022 }
9023 arg1 = reinterpret_cast< wxWindow * >(argp1);
9024 if (obj1) {
9025 ecode2 = SWIG_AsVal_int(obj1, &val2);
9026 if (!SWIG_IsOK(ecode2)) {
9027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
9028 }
9029 arg2 = static_cast< int >(val2);
9030 }
9031 if (obj2) {
9032 {
9033 arg3 = &temp3;
9034 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9035 }
9036 }
9037 if (obj3) {
9038 {
9039 arg4 = &temp4;
9040 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9041 }
9042 }
9043 if (obj4) {
9044 {
9045 if (! PySequence_Check(obj4)) {
9046 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9047 SWIG_fail;
9048 }
9049 arg5 = new wxArrayString;
9050 temp5 = true;
9051 int i, len=PySequence_Length(obj4);
9052 for (i=0; i<len; i++) {
9053 PyObject* item = PySequence_GetItem(obj4, i);
9054 wxString* s = wxString_in_helper(item);
9055 if (PyErr_Occurred()) SWIG_fail;
9056 arg5->Add(*s);
9057 delete s;
9058 Py_DECREF(item);
9059 }
9060 }
9061 }
9062 if (obj5) {
9063 ecode6 = SWIG_AsVal_long(obj5, &val6);
9064 if (!SWIG_IsOK(ecode6)) {
9065 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
9066 }
9067 arg6 = static_cast< long >(val6);
9068 }
9069 if (obj6) {
9070 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
9071 if (!SWIG_IsOK(res7)) {
9072 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
9073 }
9074 if (!argp7) {
9075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
9076 }
9077 arg7 = reinterpret_cast< wxValidator * >(argp7);
9078 }
9079 if (obj7) {
9080 {
9081 arg8 = wxString_in_helper(obj7);
9082 if (arg8 == NULL) SWIG_fail;
9083 temp8 = true;
9084 }
9085 }
9086 {
9087 if (!wxPyCheckForApp()) SWIG_fail;
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
9090 wxPyEndAllowThreads(__tstate);
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
9094 {
9095 if (temp5) delete arg5;
9096 }
9097 {
9098 if (temp8)
9099 delete arg8;
9100 }
9101 return resultobj;
9102 fail:
9103 {
9104 if (temp5) delete arg5;
9105 }
9106 {
9107 if (temp8)
9108 delete arg8;
9109 }
9110 return NULL;
9111 }
9112
9113
9114 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9115 PyObject *resultobj = 0;
9116 wxListBox *result = 0 ;
9117
9118 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
9119 {
9120 if (!wxPyCheckForApp()) SWIG_fail;
9121 PyThreadState* __tstate = wxPyBeginAllowThreads();
9122 result = (wxListBox *)new wxListBox();
9123 wxPyEndAllowThreads(__tstate);
9124 if (PyErr_Occurred()) SWIG_fail;
9125 }
9126 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
9127 return resultobj;
9128 fail:
9129 return NULL;
9130 }
9131
9132
9133 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9134 PyObject *resultobj = 0;
9135 wxListBox *arg1 = (wxListBox *) 0 ;
9136 wxWindow *arg2 = (wxWindow *) 0 ;
9137 int arg3 = (int) -1 ;
9138 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9139 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9140 wxSize const &arg5_defvalue = wxDefaultSize ;
9141 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9142 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9143 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9144 long arg7 = (long) 0 ;
9145 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9146 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9147 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9148 wxString *arg9 = (wxString *) &arg9_defvalue ;
9149 bool result;
9150 void *argp1 = 0 ;
9151 int res1 = 0 ;
9152 void *argp2 = 0 ;
9153 int res2 = 0 ;
9154 int val3 ;
9155 int ecode3 = 0 ;
9156 wxPoint temp4 ;
9157 wxSize temp5 ;
9158 bool temp6 = false ;
9159 long val7 ;
9160 int ecode7 = 0 ;
9161 void *argp8 = 0 ;
9162 int res8 = 0 ;
9163 bool temp9 = false ;
9164 PyObject * obj0 = 0 ;
9165 PyObject * obj1 = 0 ;
9166 PyObject * obj2 = 0 ;
9167 PyObject * obj3 = 0 ;
9168 PyObject * obj4 = 0 ;
9169 PyObject * obj5 = 0 ;
9170 PyObject * obj6 = 0 ;
9171 PyObject * obj7 = 0 ;
9172 PyObject * obj8 = 0 ;
9173 char * kwnames[] = {
9174 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9175 };
9176
9177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9179 if (!SWIG_IsOK(res1)) {
9180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9181 }
9182 arg1 = reinterpret_cast< wxListBox * >(argp1);
9183 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9184 if (!SWIG_IsOK(res2)) {
9185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9186 }
9187 arg2 = reinterpret_cast< wxWindow * >(argp2);
9188 if (obj2) {
9189 ecode3 = SWIG_AsVal_int(obj2, &val3);
9190 if (!SWIG_IsOK(ecode3)) {
9191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9192 }
9193 arg3 = static_cast< int >(val3);
9194 }
9195 if (obj3) {
9196 {
9197 arg4 = &temp4;
9198 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9199 }
9200 }
9201 if (obj4) {
9202 {
9203 arg5 = &temp5;
9204 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9205 }
9206 }
9207 if (obj5) {
9208 {
9209 if (! PySequence_Check(obj5)) {
9210 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9211 SWIG_fail;
9212 }
9213 arg6 = new wxArrayString;
9214 temp6 = true;
9215 int i, len=PySequence_Length(obj5);
9216 for (i=0; i<len; i++) {
9217 PyObject* item = PySequence_GetItem(obj5, i);
9218 wxString* s = wxString_in_helper(item);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 arg6->Add(*s);
9221 delete s;
9222 Py_DECREF(item);
9223 }
9224 }
9225 }
9226 if (obj6) {
9227 ecode7 = SWIG_AsVal_long(obj6, &val7);
9228 if (!SWIG_IsOK(ecode7)) {
9229 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9230 }
9231 arg7 = static_cast< long >(val7);
9232 }
9233 if (obj7) {
9234 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9235 if (!SWIG_IsOK(res8)) {
9236 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9237 }
9238 if (!argp8) {
9239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9240 }
9241 arg8 = reinterpret_cast< wxValidator * >(argp8);
9242 }
9243 if (obj8) {
9244 {
9245 arg9 = wxString_in_helper(obj8);
9246 if (arg9 == NULL) SWIG_fail;
9247 temp9 = true;
9248 }
9249 }
9250 {
9251 PyThreadState* __tstate = wxPyBeginAllowThreads();
9252 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9253 wxPyEndAllowThreads(__tstate);
9254 if (PyErr_Occurred()) SWIG_fail;
9255 }
9256 {
9257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9258 }
9259 {
9260 if (temp6) delete arg6;
9261 }
9262 {
9263 if (temp9)
9264 delete arg9;
9265 }
9266 return resultobj;
9267 fail:
9268 {
9269 if (temp6) delete arg6;
9270 }
9271 {
9272 if (temp9)
9273 delete arg9;
9274 }
9275 return NULL;
9276 }
9277
9278
9279 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9280 PyObject *resultobj = 0;
9281 wxListBox *arg1 = (wxListBox *) 0 ;
9282 wxString *arg2 = 0 ;
9283 int arg3 ;
9284 PyObject *arg4 = (PyObject *) NULL ;
9285 void *argp1 = 0 ;
9286 int res1 = 0 ;
9287 bool temp2 = false ;
9288 int val3 ;
9289 int ecode3 = 0 ;
9290 PyObject * obj0 = 0 ;
9291 PyObject * obj1 = 0 ;
9292 PyObject * obj2 = 0 ;
9293 PyObject * obj3 = 0 ;
9294 char * kwnames[] = {
9295 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9296 };
9297
9298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9300 if (!SWIG_IsOK(res1)) {
9301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9302 }
9303 arg1 = reinterpret_cast< wxListBox * >(argp1);
9304 {
9305 arg2 = wxString_in_helper(obj1);
9306 if (arg2 == NULL) SWIG_fail;
9307 temp2 = true;
9308 }
9309 ecode3 = SWIG_AsVal_int(obj2, &val3);
9310 if (!SWIG_IsOK(ecode3)) {
9311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9312 }
9313 arg3 = static_cast< int >(val3);
9314 if (obj3) {
9315 arg4 = obj3;
9316 }
9317 {
9318 PyThreadState* __tstate = wxPyBeginAllowThreads();
9319 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9320 wxPyEndAllowThreads(__tstate);
9321 if (PyErr_Occurred()) SWIG_fail;
9322 }
9323 resultobj = SWIG_Py_Void();
9324 {
9325 if (temp2)
9326 delete arg2;
9327 }
9328 return resultobj;
9329 fail:
9330 {
9331 if (temp2)
9332 delete arg2;
9333 }
9334 return NULL;
9335 }
9336
9337
9338 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9339 PyObject *resultobj = 0;
9340 wxListBox *arg1 = (wxListBox *) 0 ;
9341 wxArrayString *arg2 = 0 ;
9342 unsigned int arg3 ;
9343 void *argp1 = 0 ;
9344 int res1 = 0 ;
9345 bool temp2 = false ;
9346 unsigned int val3 ;
9347 int ecode3 = 0 ;
9348 PyObject * obj0 = 0 ;
9349 PyObject * obj1 = 0 ;
9350 PyObject * obj2 = 0 ;
9351 char * kwnames[] = {
9352 (char *) "self",(char *) "items",(char *) "pos", NULL
9353 };
9354
9355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9357 if (!SWIG_IsOK(res1)) {
9358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9359 }
9360 arg1 = reinterpret_cast< wxListBox * >(argp1);
9361 {
9362 if (! PySequence_Check(obj1)) {
9363 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9364 SWIG_fail;
9365 }
9366 arg2 = new wxArrayString;
9367 temp2 = true;
9368 int i, len=PySequence_Length(obj1);
9369 for (i=0; i<len; i++) {
9370 PyObject* item = PySequence_GetItem(obj1, i);
9371 wxString* s = wxString_in_helper(item);
9372 if (PyErr_Occurred()) SWIG_fail;
9373 arg2->Add(*s);
9374 delete s;
9375 Py_DECREF(item);
9376 }
9377 }
9378 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9379 if (!SWIG_IsOK(ecode3)) {
9380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9381 }
9382 arg3 = static_cast< unsigned int >(val3);
9383 {
9384 PyThreadState* __tstate = wxPyBeginAllowThreads();
9385 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9386 wxPyEndAllowThreads(__tstate);
9387 if (PyErr_Occurred()) SWIG_fail;
9388 }
9389 resultobj = SWIG_Py_Void();
9390 {
9391 if (temp2) delete arg2;
9392 }
9393 return resultobj;
9394 fail:
9395 {
9396 if (temp2) delete arg2;
9397 }
9398 return NULL;
9399 }
9400
9401
9402 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9403 PyObject *resultobj = 0;
9404 wxListBox *arg1 = (wxListBox *) 0 ;
9405 wxArrayString *arg2 = 0 ;
9406 void *argp1 = 0 ;
9407 int res1 = 0 ;
9408 bool temp2 = false ;
9409 PyObject * obj0 = 0 ;
9410 PyObject * obj1 = 0 ;
9411 char * kwnames[] = {
9412 (char *) "self",(char *) "items", NULL
9413 };
9414
9415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9417 if (!SWIG_IsOK(res1)) {
9418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9419 }
9420 arg1 = reinterpret_cast< wxListBox * >(argp1);
9421 {
9422 if (! PySequence_Check(obj1)) {
9423 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9424 SWIG_fail;
9425 }
9426 arg2 = new wxArrayString;
9427 temp2 = true;
9428 int i, len=PySequence_Length(obj1);
9429 for (i=0; i<len; i++) {
9430 PyObject* item = PySequence_GetItem(obj1, i);
9431 wxString* s = wxString_in_helper(item);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 arg2->Add(*s);
9434 delete s;
9435 Py_DECREF(item);
9436 }
9437 }
9438 {
9439 PyThreadState* __tstate = wxPyBeginAllowThreads();
9440 (arg1)->Set((wxArrayString const &)*arg2);
9441 wxPyEndAllowThreads(__tstate);
9442 if (PyErr_Occurred()) SWIG_fail;
9443 }
9444 resultobj = SWIG_Py_Void();
9445 {
9446 if (temp2) delete arg2;
9447 }
9448 return resultobj;
9449 fail:
9450 {
9451 if (temp2) delete arg2;
9452 }
9453 return NULL;
9454 }
9455
9456
9457 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9458 PyObject *resultobj = 0;
9459 wxListBox *arg1 = (wxListBox *) 0 ;
9460 int arg2 ;
9461 bool result;
9462 void *argp1 = 0 ;
9463 int res1 = 0 ;
9464 int val2 ;
9465 int ecode2 = 0 ;
9466 PyObject * obj0 = 0 ;
9467 PyObject * obj1 = 0 ;
9468 char * kwnames[] = {
9469 (char *) "self",(char *) "n", NULL
9470 };
9471
9472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9474 if (!SWIG_IsOK(res1)) {
9475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9476 }
9477 arg1 = reinterpret_cast< wxListBox * >(argp1);
9478 ecode2 = SWIG_AsVal_int(obj1, &val2);
9479 if (!SWIG_IsOK(ecode2)) {
9480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9481 }
9482 arg2 = static_cast< int >(val2);
9483 {
9484 PyThreadState* __tstate = wxPyBeginAllowThreads();
9485 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9486 wxPyEndAllowThreads(__tstate);
9487 if (PyErr_Occurred()) SWIG_fail;
9488 }
9489 {
9490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9491 }
9492 return resultobj;
9493 fail:
9494 return NULL;
9495 }
9496
9497
9498 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9499 PyObject *resultobj = 0;
9500 wxListBox *arg1 = (wxListBox *) 0 ;
9501 int arg2 ;
9502 bool arg3 = (bool) true ;
9503 void *argp1 = 0 ;
9504 int res1 = 0 ;
9505 int val2 ;
9506 int ecode2 = 0 ;
9507 bool val3 ;
9508 int ecode3 = 0 ;
9509 PyObject * obj0 = 0 ;
9510 PyObject * obj1 = 0 ;
9511 PyObject * obj2 = 0 ;
9512 char * kwnames[] = {
9513 (char *) "self",(char *) "n",(char *) "select", NULL
9514 };
9515
9516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9518 if (!SWIG_IsOK(res1)) {
9519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9520 }
9521 arg1 = reinterpret_cast< wxListBox * >(argp1);
9522 ecode2 = SWIG_AsVal_int(obj1, &val2);
9523 if (!SWIG_IsOK(ecode2)) {
9524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9525 }
9526 arg2 = static_cast< int >(val2);
9527 if (obj2) {
9528 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9529 if (!SWIG_IsOK(ecode3)) {
9530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9531 }
9532 arg3 = static_cast< bool >(val3);
9533 }
9534 {
9535 PyThreadState* __tstate = wxPyBeginAllowThreads();
9536 (arg1)->SetSelection(arg2,arg3);
9537 wxPyEndAllowThreads(__tstate);
9538 if (PyErr_Occurred()) SWIG_fail;
9539 }
9540 resultobj = SWIG_Py_Void();
9541 return resultobj;
9542 fail:
9543 return NULL;
9544 }
9545
9546
9547 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9548 PyObject *resultobj = 0;
9549 wxListBox *arg1 = (wxListBox *) 0 ;
9550 int arg2 ;
9551 void *argp1 = 0 ;
9552 int res1 = 0 ;
9553 int val2 ;
9554 int ecode2 = 0 ;
9555 PyObject * obj0 = 0 ;
9556 PyObject * obj1 = 0 ;
9557 char * kwnames[] = {
9558 (char *) "self",(char *) "n", NULL
9559 };
9560
9561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9563 if (!SWIG_IsOK(res1)) {
9564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9565 }
9566 arg1 = reinterpret_cast< wxListBox * >(argp1);
9567 ecode2 = SWIG_AsVal_int(obj1, &val2);
9568 if (!SWIG_IsOK(ecode2)) {
9569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9570 }
9571 arg2 = static_cast< int >(val2);
9572 {
9573 PyThreadState* __tstate = wxPyBeginAllowThreads();
9574 (arg1)->Select(arg2);
9575 wxPyEndAllowThreads(__tstate);
9576 if (PyErr_Occurred()) SWIG_fail;
9577 }
9578 resultobj = SWIG_Py_Void();
9579 return resultobj;
9580 fail:
9581 return NULL;
9582 }
9583
9584
9585 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9586 PyObject *resultobj = 0;
9587 wxListBox *arg1 = (wxListBox *) 0 ;
9588 int arg2 ;
9589 void *argp1 = 0 ;
9590 int res1 = 0 ;
9591 int val2 ;
9592 int ecode2 = 0 ;
9593 PyObject * obj0 = 0 ;
9594 PyObject * obj1 = 0 ;
9595 char * kwnames[] = {
9596 (char *) "self",(char *) "n", NULL
9597 };
9598
9599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9601 if (!SWIG_IsOK(res1)) {
9602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9603 }
9604 arg1 = reinterpret_cast< wxListBox * >(argp1);
9605 ecode2 = SWIG_AsVal_int(obj1, &val2);
9606 if (!SWIG_IsOK(ecode2)) {
9607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9608 }
9609 arg2 = static_cast< int >(val2);
9610 {
9611 PyThreadState* __tstate = wxPyBeginAllowThreads();
9612 (arg1)->Deselect(arg2);
9613 wxPyEndAllowThreads(__tstate);
9614 if (PyErr_Occurred()) SWIG_fail;
9615 }
9616 resultobj = SWIG_Py_Void();
9617 return resultobj;
9618 fail:
9619 return NULL;
9620 }
9621
9622
9623 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9624 PyObject *resultobj = 0;
9625 wxListBox *arg1 = (wxListBox *) 0 ;
9626 int arg2 = (int) -1 ;
9627 void *argp1 = 0 ;
9628 int res1 = 0 ;
9629 int val2 ;
9630 int ecode2 = 0 ;
9631 PyObject * obj0 = 0 ;
9632 PyObject * obj1 = 0 ;
9633 char * kwnames[] = {
9634 (char *) "self",(char *) "itemToLeaveSelected", NULL
9635 };
9636
9637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9639 if (!SWIG_IsOK(res1)) {
9640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9641 }
9642 arg1 = reinterpret_cast< wxListBox * >(argp1);
9643 if (obj1) {
9644 ecode2 = SWIG_AsVal_int(obj1, &val2);
9645 if (!SWIG_IsOK(ecode2)) {
9646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9647 }
9648 arg2 = static_cast< int >(val2);
9649 }
9650 {
9651 PyThreadState* __tstate = wxPyBeginAllowThreads();
9652 (arg1)->DeselectAll(arg2);
9653 wxPyEndAllowThreads(__tstate);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 resultobj = SWIG_Py_Void();
9657 return resultobj;
9658 fail:
9659 return NULL;
9660 }
9661
9662
9663 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9664 PyObject *resultobj = 0;
9665 wxListBox *arg1 = (wxListBox *) 0 ;
9666 wxString *arg2 = 0 ;
9667 bool arg3 = (bool) true ;
9668 bool result;
9669 void *argp1 = 0 ;
9670 int res1 = 0 ;
9671 bool temp2 = false ;
9672 bool val3 ;
9673 int ecode3 = 0 ;
9674 PyObject * obj0 = 0 ;
9675 PyObject * obj1 = 0 ;
9676 PyObject * obj2 = 0 ;
9677 char * kwnames[] = {
9678 (char *) "self",(char *) "s",(char *) "select", NULL
9679 };
9680
9681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) 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_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9685 }
9686 arg1 = reinterpret_cast< wxListBox * >(argp1);
9687 {
9688 arg2 = wxString_in_helper(obj1);
9689 if (arg2 == NULL) SWIG_fail;
9690 temp2 = true;
9691 }
9692 if (obj2) {
9693 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9694 if (!SWIG_IsOK(ecode3)) {
9695 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9696 }
9697 arg3 = static_cast< bool >(val3);
9698 }
9699 {
9700 PyThreadState* __tstate = wxPyBeginAllowThreads();
9701 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9702 wxPyEndAllowThreads(__tstate);
9703 if (PyErr_Occurred()) SWIG_fail;
9704 }
9705 {
9706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9707 }
9708 {
9709 if (temp2)
9710 delete arg2;
9711 }
9712 return resultobj;
9713 fail:
9714 {
9715 if (temp2)
9716 delete arg2;
9717 }
9718 return NULL;
9719 }
9720
9721
9722 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9723 PyObject *resultobj = 0;
9724 wxListBox *arg1 = (wxListBox *) 0 ;
9725 PyObject *result = 0 ;
9726 void *argp1 = 0 ;
9727 int res1 = 0 ;
9728 PyObject *swig_obj[1] ;
9729
9730 if (!args) SWIG_fail;
9731 swig_obj[0] = args;
9732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9733 if (!SWIG_IsOK(res1)) {
9734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9735 }
9736 arg1 = reinterpret_cast< wxListBox * >(argp1);
9737 {
9738 PyThreadState* __tstate = wxPyBeginAllowThreads();
9739 result = (PyObject *)wxListBox_GetSelections(arg1);
9740 wxPyEndAllowThreads(__tstate);
9741 if (PyErr_Occurred()) SWIG_fail;
9742 }
9743 resultobj = result;
9744 return resultobj;
9745 fail:
9746 return NULL;
9747 }
9748
9749
9750 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9751 PyObject *resultobj = 0;
9752 wxListBox *arg1 = (wxListBox *) 0 ;
9753 int arg2 ;
9754 void *argp1 = 0 ;
9755 int res1 = 0 ;
9756 int val2 ;
9757 int ecode2 = 0 ;
9758 PyObject * obj0 = 0 ;
9759 PyObject * obj1 = 0 ;
9760 char * kwnames[] = {
9761 (char *) "self",(char *) "n", NULL
9762 };
9763
9764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9766 if (!SWIG_IsOK(res1)) {
9767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9768 }
9769 arg1 = reinterpret_cast< wxListBox * >(argp1);
9770 ecode2 = SWIG_AsVal_int(obj1, &val2);
9771 if (!SWIG_IsOK(ecode2)) {
9772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9773 }
9774 arg2 = static_cast< int >(val2);
9775 {
9776 PyThreadState* __tstate = wxPyBeginAllowThreads();
9777 (arg1)->SetFirstItem(arg2);
9778 wxPyEndAllowThreads(__tstate);
9779 if (PyErr_Occurred()) SWIG_fail;
9780 }
9781 resultobj = SWIG_Py_Void();
9782 return resultobj;
9783 fail:
9784 return NULL;
9785 }
9786
9787
9788 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9789 PyObject *resultobj = 0;
9790 wxListBox *arg1 = (wxListBox *) 0 ;
9791 wxString *arg2 = 0 ;
9792 void *argp1 = 0 ;
9793 int res1 = 0 ;
9794 bool temp2 = false ;
9795 PyObject * obj0 = 0 ;
9796 PyObject * obj1 = 0 ;
9797 char * kwnames[] = {
9798 (char *) "self",(char *) "s", NULL
9799 };
9800
9801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9803 if (!SWIG_IsOK(res1)) {
9804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9805 }
9806 arg1 = reinterpret_cast< wxListBox * >(argp1);
9807 {
9808 arg2 = wxString_in_helper(obj1);
9809 if (arg2 == NULL) SWIG_fail;
9810 temp2 = true;
9811 }
9812 {
9813 PyThreadState* __tstate = wxPyBeginAllowThreads();
9814 (arg1)->SetFirstItem((wxString const &)*arg2);
9815 wxPyEndAllowThreads(__tstate);
9816 if (PyErr_Occurred()) SWIG_fail;
9817 }
9818 resultobj = SWIG_Py_Void();
9819 {
9820 if (temp2)
9821 delete arg2;
9822 }
9823 return resultobj;
9824 fail:
9825 {
9826 if (temp2)
9827 delete arg2;
9828 }
9829 return NULL;
9830 }
9831
9832
9833 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9834 PyObject *resultobj = 0;
9835 wxListBox *arg1 = (wxListBox *) 0 ;
9836 int arg2 ;
9837 void *argp1 = 0 ;
9838 int res1 = 0 ;
9839 int val2 ;
9840 int ecode2 = 0 ;
9841 PyObject * obj0 = 0 ;
9842 PyObject * obj1 = 0 ;
9843 char * kwnames[] = {
9844 (char *) "self",(char *) "n", NULL
9845 };
9846
9847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9849 if (!SWIG_IsOK(res1)) {
9850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9851 }
9852 arg1 = reinterpret_cast< wxListBox * >(argp1);
9853 ecode2 = SWIG_AsVal_int(obj1, &val2);
9854 if (!SWIG_IsOK(ecode2)) {
9855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9856 }
9857 arg2 = static_cast< int >(val2);
9858 {
9859 PyThreadState* __tstate = wxPyBeginAllowThreads();
9860 (arg1)->EnsureVisible(arg2);
9861 wxPyEndAllowThreads(__tstate);
9862 if (PyErr_Occurred()) SWIG_fail;
9863 }
9864 resultobj = SWIG_Py_Void();
9865 return resultobj;
9866 fail:
9867 return NULL;
9868 }
9869
9870
9871 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9872 PyObject *resultobj = 0;
9873 wxListBox *arg1 = (wxListBox *) 0 ;
9874 wxString *arg2 = 0 ;
9875 void *argp1 = 0 ;
9876 int res1 = 0 ;
9877 bool temp2 = false ;
9878 PyObject * obj0 = 0 ;
9879 PyObject * obj1 = 0 ;
9880 char * kwnames[] = {
9881 (char *) "self",(char *) "s", NULL
9882 };
9883
9884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9886 if (!SWIG_IsOK(res1)) {
9887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9888 }
9889 arg1 = reinterpret_cast< wxListBox * >(argp1);
9890 {
9891 arg2 = wxString_in_helper(obj1);
9892 if (arg2 == NULL) SWIG_fail;
9893 temp2 = true;
9894 }
9895 {
9896 PyThreadState* __tstate = wxPyBeginAllowThreads();
9897 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9898 wxPyEndAllowThreads(__tstate);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 }
9901 resultobj = SWIG_Py_Void();
9902 {
9903 if (temp2)
9904 delete arg2;
9905 }
9906 return resultobj;
9907 fail:
9908 {
9909 if (temp2)
9910 delete arg2;
9911 }
9912 return NULL;
9913 }
9914
9915
9916 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9917 PyObject *resultobj = 0;
9918 wxListBox *arg1 = (wxListBox *) 0 ;
9919 bool result;
9920 void *argp1 = 0 ;
9921 int res1 = 0 ;
9922 PyObject *swig_obj[1] ;
9923
9924 if (!args) SWIG_fail;
9925 swig_obj[0] = args;
9926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9927 if (!SWIG_IsOK(res1)) {
9928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9929 }
9930 arg1 = reinterpret_cast< wxListBox * >(argp1);
9931 {
9932 PyThreadState* __tstate = wxPyBeginAllowThreads();
9933 result = (bool)((wxListBox const *)arg1)->IsSorted();
9934 wxPyEndAllowThreads(__tstate);
9935 if (PyErr_Occurred()) SWIG_fail;
9936 }
9937 {
9938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9939 }
9940 return resultobj;
9941 fail:
9942 return NULL;
9943 }
9944
9945
9946 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9947 PyObject *resultobj = 0;
9948 wxListBox *arg1 = (wxListBox *) 0 ;
9949 wxPoint *arg2 = 0 ;
9950 int result;
9951 void *argp1 = 0 ;
9952 int res1 = 0 ;
9953 wxPoint temp2 ;
9954 PyObject * obj0 = 0 ;
9955 PyObject * obj1 = 0 ;
9956 char * kwnames[] = {
9957 (char *) "self",(char *) "pt", NULL
9958 };
9959
9960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9962 if (!SWIG_IsOK(res1)) {
9963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9964 }
9965 arg1 = reinterpret_cast< wxListBox * >(argp1);
9966 {
9967 arg2 = &temp2;
9968 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9969 }
9970 {
9971 PyThreadState* __tstate = wxPyBeginAllowThreads();
9972 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9973 wxPyEndAllowThreads(__tstate);
9974 if (PyErr_Occurred()) SWIG_fail;
9975 }
9976 resultobj = SWIG_From_int(static_cast< int >(result));
9977 return resultobj;
9978 fail:
9979 return NULL;
9980 }
9981
9982
9983 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9984 PyObject *resultobj = 0;
9985 wxListBox *arg1 = (wxListBox *) 0 ;
9986 int arg2 ;
9987 wxColour *arg3 = 0 ;
9988 void *argp1 = 0 ;
9989 int res1 = 0 ;
9990 int val2 ;
9991 int ecode2 = 0 ;
9992 wxColour temp3 ;
9993 PyObject * obj0 = 0 ;
9994 PyObject * obj1 = 0 ;
9995 PyObject * obj2 = 0 ;
9996 char * kwnames[] = {
9997 (char *) "self",(char *) "item",(char *) "c", NULL
9998 };
9999
10000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
10002 if (!SWIG_IsOK(res1)) {
10003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
10004 }
10005 arg1 = reinterpret_cast< wxListBox * >(argp1);
10006 ecode2 = SWIG_AsVal_int(obj1, &val2);
10007 if (!SWIG_IsOK(ecode2)) {
10008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
10009 }
10010 arg2 = static_cast< int >(val2);
10011 {
10012 arg3 = &temp3;
10013 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10014 }
10015 {
10016 PyThreadState* __tstate = wxPyBeginAllowThreads();
10017 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
10018 wxPyEndAllowThreads(__tstate);
10019 if (PyErr_Occurred()) SWIG_fail;
10020 }
10021 resultobj = SWIG_Py_Void();
10022 return resultobj;
10023 fail:
10024 return NULL;
10025 }
10026
10027
10028 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10029 PyObject *resultobj = 0;
10030 wxListBox *arg1 = (wxListBox *) 0 ;
10031 int arg2 ;
10032 wxColour *arg3 = 0 ;
10033 void *argp1 = 0 ;
10034 int res1 = 0 ;
10035 int val2 ;
10036 int ecode2 = 0 ;
10037 wxColour temp3 ;
10038 PyObject * obj0 = 0 ;
10039 PyObject * obj1 = 0 ;
10040 PyObject * obj2 = 0 ;
10041 char * kwnames[] = {
10042 (char *) "self",(char *) "item",(char *) "c", NULL
10043 };
10044
10045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
10047 if (!SWIG_IsOK(res1)) {
10048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
10049 }
10050 arg1 = reinterpret_cast< wxListBox * >(argp1);
10051 ecode2 = SWIG_AsVal_int(obj1, &val2);
10052 if (!SWIG_IsOK(ecode2)) {
10053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
10054 }
10055 arg2 = static_cast< int >(val2);
10056 {
10057 arg3 = &temp3;
10058 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10059 }
10060 {
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
10063 wxPyEndAllowThreads(__tstate);
10064 if (PyErr_Occurred()) SWIG_fail;
10065 }
10066 resultobj = SWIG_Py_Void();
10067 return resultobj;
10068 fail:
10069 return NULL;
10070 }
10071
10072
10073 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10074 PyObject *resultobj = 0;
10075 wxListBox *arg1 = (wxListBox *) 0 ;
10076 int arg2 ;
10077 wxFont *arg3 = 0 ;
10078 void *argp1 = 0 ;
10079 int res1 = 0 ;
10080 int val2 ;
10081 int ecode2 = 0 ;
10082 void *argp3 = 0 ;
10083 int res3 = 0 ;
10084 PyObject * obj0 = 0 ;
10085 PyObject * obj1 = 0 ;
10086 PyObject * obj2 = 0 ;
10087 char * kwnames[] = {
10088 (char *) "self",(char *) "item",(char *) "f", NULL
10089 };
10090
10091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
10093 if (!SWIG_IsOK(res1)) {
10094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
10095 }
10096 arg1 = reinterpret_cast< wxListBox * >(argp1);
10097 ecode2 = SWIG_AsVal_int(obj1, &val2);
10098 if (!SWIG_IsOK(ecode2)) {
10099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
10100 }
10101 arg2 = static_cast< int >(val2);
10102 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10103 if (!SWIG_IsOK(res3)) {
10104 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
10105 }
10106 if (!argp3) {
10107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
10108 }
10109 arg3 = reinterpret_cast< wxFont * >(argp3);
10110 {
10111 PyThreadState* __tstate = wxPyBeginAllowThreads();
10112 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
10113 wxPyEndAllowThreads(__tstate);
10114 if (PyErr_Occurred()) SWIG_fail;
10115 }
10116 resultobj = SWIG_Py_Void();
10117 return resultobj;
10118 fail:
10119 return NULL;
10120 }
10121
10122
10123 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10124 PyObject *resultobj = 0;
10125 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
10126 SwigValueWrapper<wxVisualAttributes > result;
10127 int val1 ;
10128 int ecode1 = 0 ;
10129 PyObject * obj0 = 0 ;
10130 char * kwnames[] = {
10131 (char *) "variant", NULL
10132 };
10133
10134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
10135 if (obj0) {
10136 ecode1 = SWIG_AsVal_int(obj0, &val1);
10137 if (!SWIG_IsOK(ecode1)) {
10138 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10139 }
10140 arg1 = static_cast< wxWindowVariant >(val1);
10141 }
10142 {
10143 if (!wxPyCheckForApp()) SWIG_fail;
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 result = wxListBox::GetClassDefaultAttributes(arg1);
10146 wxPyEndAllowThreads(__tstate);
10147 if (PyErr_Occurred()) SWIG_fail;
10148 }
10149 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10150 return resultobj;
10151 fail:
10152 return NULL;
10153 }
10154
10155
10156 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10157 PyObject *obj;
10158 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10159 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10160 return SWIG_Py_Void();
10161 }
10162
10163 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10164 return SWIG_Python_InitShadowInstance(args);
10165 }
10166
10167 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10168 PyObject *resultobj = 0;
10169 wxWindow *arg1 = (wxWindow *) 0 ;
10170 int arg2 = (int) -1 ;
10171 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10172 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10173 wxSize const &arg4_defvalue = wxDefaultSize ;
10174 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10175 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10176 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10177 long arg6 = (long) 0 ;
10178 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10179 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10180 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10181 wxString *arg8 = (wxString *) &arg8_defvalue ;
10182 wxCheckListBox *result = 0 ;
10183 void *argp1 = 0 ;
10184 int res1 = 0 ;
10185 int val2 ;
10186 int ecode2 = 0 ;
10187 wxPoint temp3 ;
10188 wxSize temp4 ;
10189 bool temp5 = false ;
10190 long val6 ;
10191 int ecode6 = 0 ;
10192 void *argp7 = 0 ;
10193 int res7 = 0 ;
10194 bool temp8 = false ;
10195 PyObject * obj0 = 0 ;
10196 PyObject * obj1 = 0 ;
10197 PyObject * obj2 = 0 ;
10198 PyObject * obj3 = 0 ;
10199 PyObject * obj4 = 0 ;
10200 PyObject * obj5 = 0 ;
10201 PyObject * obj6 = 0 ;
10202 PyObject * obj7 = 0 ;
10203 char * kwnames[] = {
10204 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10205 };
10206
10207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10209 if (!SWIG_IsOK(res1)) {
10210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10211 }
10212 arg1 = reinterpret_cast< wxWindow * >(argp1);
10213 if (obj1) {
10214 ecode2 = SWIG_AsVal_int(obj1, &val2);
10215 if (!SWIG_IsOK(ecode2)) {
10216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10217 }
10218 arg2 = static_cast< int >(val2);
10219 }
10220 if (obj2) {
10221 {
10222 arg3 = &temp3;
10223 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10224 }
10225 }
10226 if (obj3) {
10227 {
10228 arg4 = &temp4;
10229 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10230 }
10231 }
10232 if (obj4) {
10233 {
10234 if (! PySequence_Check(obj4)) {
10235 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10236 SWIG_fail;
10237 }
10238 arg5 = new wxArrayString;
10239 temp5 = true;
10240 int i, len=PySequence_Length(obj4);
10241 for (i=0; i<len; i++) {
10242 PyObject* item = PySequence_GetItem(obj4, i);
10243 wxString* s = wxString_in_helper(item);
10244 if (PyErr_Occurred()) SWIG_fail;
10245 arg5->Add(*s);
10246 delete s;
10247 Py_DECREF(item);
10248 }
10249 }
10250 }
10251 if (obj5) {
10252 ecode6 = SWIG_AsVal_long(obj5, &val6);
10253 if (!SWIG_IsOK(ecode6)) {
10254 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10255 }
10256 arg6 = static_cast< long >(val6);
10257 }
10258 if (obj6) {
10259 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10260 if (!SWIG_IsOK(res7)) {
10261 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10262 }
10263 if (!argp7) {
10264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10265 }
10266 arg7 = reinterpret_cast< wxValidator * >(argp7);
10267 }
10268 if (obj7) {
10269 {
10270 arg8 = wxString_in_helper(obj7);
10271 if (arg8 == NULL) SWIG_fail;
10272 temp8 = true;
10273 }
10274 }
10275 {
10276 if (!wxPyCheckForApp()) SWIG_fail;
10277 PyThreadState* __tstate = wxPyBeginAllowThreads();
10278 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10279 wxPyEndAllowThreads(__tstate);
10280 if (PyErr_Occurred()) SWIG_fail;
10281 }
10282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10283 {
10284 if (temp5) delete arg5;
10285 }
10286 {
10287 if (temp8)
10288 delete arg8;
10289 }
10290 return resultobj;
10291 fail:
10292 {
10293 if (temp5) delete arg5;
10294 }
10295 {
10296 if (temp8)
10297 delete arg8;
10298 }
10299 return NULL;
10300 }
10301
10302
10303 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10304 PyObject *resultobj = 0;
10305 wxCheckListBox *result = 0 ;
10306
10307 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10308 {
10309 if (!wxPyCheckForApp()) SWIG_fail;
10310 PyThreadState* __tstate = wxPyBeginAllowThreads();
10311 result = (wxCheckListBox *)new wxCheckListBox();
10312 wxPyEndAllowThreads(__tstate);
10313 if (PyErr_Occurred()) SWIG_fail;
10314 }
10315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10316 return resultobj;
10317 fail:
10318 return NULL;
10319 }
10320
10321
10322 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10323 PyObject *resultobj = 0;
10324 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10325 wxWindow *arg2 = (wxWindow *) 0 ;
10326 int arg3 = (int) -1 ;
10327 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10328 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10329 wxSize const &arg5_defvalue = wxDefaultSize ;
10330 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10331 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10332 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10333 long arg7 = (long) 0 ;
10334 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10335 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10336 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10337 wxString *arg9 = (wxString *) &arg9_defvalue ;
10338 bool result;
10339 void *argp1 = 0 ;
10340 int res1 = 0 ;
10341 void *argp2 = 0 ;
10342 int res2 = 0 ;
10343 int val3 ;
10344 int ecode3 = 0 ;
10345 wxPoint temp4 ;
10346 wxSize temp5 ;
10347 bool temp6 = false ;
10348 long val7 ;
10349 int ecode7 = 0 ;
10350 void *argp8 = 0 ;
10351 int res8 = 0 ;
10352 bool temp9 = false ;
10353 PyObject * obj0 = 0 ;
10354 PyObject * obj1 = 0 ;
10355 PyObject * obj2 = 0 ;
10356 PyObject * obj3 = 0 ;
10357 PyObject * obj4 = 0 ;
10358 PyObject * obj5 = 0 ;
10359 PyObject * obj6 = 0 ;
10360 PyObject * obj7 = 0 ;
10361 PyObject * obj8 = 0 ;
10362 char * kwnames[] = {
10363 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10364 };
10365
10366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10368 if (!SWIG_IsOK(res1)) {
10369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10370 }
10371 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10372 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10373 if (!SWIG_IsOK(res2)) {
10374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10375 }
10376 arg2 = reinterpret_cast< wxWindow * >(argp2);
10377 if (obj2) {
10378 ecode3 = SWIG_AsVal_int(obj2, &val3);
10379 if (!SWIG_IsOK(ecode3)) {
10380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10381 }
10382 arg3 = static_cast< int >(val3);
10383 }
10384 if (obj3) {
10385 {
10386 arg4 = &temp4;
10387 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10388 }
10389 }
10390 if (obj4) {
10391 {
10392 arg5 = &temp5;
10393 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10394 }
10395 }
10396 if (obj5) {
10397 {
10398 if (! PySequence_Check(obj5)) {
10399 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10400 SWIG_fail;
10401 }
10402 arg6 = new wxArrayString;
10403 temp6 = true;
10404 int i, len=PySequence_Length(obj5);
10405 for (i=0; i<len; i++) {
10406 PyObject* item = PySequence_GetItem(obj5, i);
10407 wxString* s = wxString_in_helper(item);
10408 if (PyErr_Occurred()) SWIG_fail;
10409 arg6->Add(*s);
10410 delete s;
10411 Py_DECREF(item);
10412 }
10413 }
10414 }
10415 if (obj6) {
10416 ecode7 = SWIG_AsVal_long(obj6, &val7);
10417 if (!SWIG_IsOK(ecode7)) {
10418 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10419 }
10420 arg7 = static_cast< long >(val7);
10421 }
10422 if (obj7) {
10423 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10424 if (!SWIG_IsOK(res8)) {
10425 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10426 }
10427 if (!argp8) {
10428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10429 }
10430 arg8 = reinterpret_cast< wxValidator * >(argp8);
10431 }
10432 if (obj8) {
10433 {
10434 arg9 = wxString_in_helper(obj8);
10435 if (arg9 == NULL) SWIG_fail;
10436 temp9 = true;
10437 }
10438 }
10439 {
10440 PyThreadState* __tstate = wxPyBeginAllowThreads();
10441 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10442 wxPyEndAllowThreads(__tstate);
10443 if (PyErr_Occurred()) SWIG_fail;
10444 }
10445 {
10446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10447 }
10448 {
10449 if (temp6) delete arg6;
10450 }
10451 {
10452 if (temp9)
10453 delete arg9;
10454 }
10455 return resultobj;
10456 fail:
10457 {
10458 if (temp6) delete arg6;
10459 }
10460 {
10461 if (temp9)
10462 delete arg9;
10463 }
10464 return NULL;
10465 }
10466
10467
10468 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10469 PyObject *resultobj = 0;
10470 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10471 unsigned int arg2 ;
10472 bool result;
10473 void *argp1 = 0 ;
10474 int res1 = 0 ;
10475 unsigned int val2 ;
10476 int ecode2 = 0 ;
10477 PyObject * obj0 = 0 ;
10478 PyObject * obj1 = 0 ;
10479 char * kwnames[] = {
10480 (char *) "self",(char *) "index", NULL
10481 };
10482
10483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10485 if (!SWIG_IsOK(res1)) {
10486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10487 }
10488 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10489 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10490 if (!SWIG_IsOK(ecode2)) {
10491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10492 }
10493 arg2 = static_cast< unsigned int >(val2);
10494 {
10495 PyThreadState* __tstate = wxPyBeginAllowThreads();
10496 result = (bool)(arg1)->IsChecked(arg2);
10497 wxPyEndAllowThreads(__tstate);
10498 if (PyErr_Occurred()) SWIG_fail;
10499 }
10500 {
10501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10502 }
10503 return resultobj;
10504 fail:
10505 return NULL;
10506 }
10507
10508
10509 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10510 PyObject *resultobj = 0;
10511 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10512 unsigned int arg2 ;
10513 int arg3 = (int) true ;
10514 void *argp1 = 0 ;
10515 int res1 = 0 ;
10516 unsigned int val2 ;
10517 int ecode2 = 0 ;
10518 int val3 ;
10519 int ecode3 = 0 ;
10520 PyObject * obj0 = 0 ;
10521 PyObject * obj1 = 0 ;
10522 PyObject * obj2 = 0 ;
10523 char * kwnames[] = {
10524 (char *) "self",(char *) "index",(char *) "check", NULL
10525 };
10526
10527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10529 if (!SWIG_IsOK(res1)) {
10530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10531 }
10532 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10533 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10534 if (!SWIG_IsOK(ecode2)) {
10535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10536 }
10537 arg2 = static_cast< unsigned int >(val2);
10538 if (obj2) {
10539 ecode3 = SWIG_AsVal_int(obj2, &val3);
10540 if (!SWIG_IsOK(ecode3)) {
10541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10542 }
10543 arg3 = static_cast< int >(val3);
10544 }
10545 {
10546 PyThreadState* __tstate = wxPyBeginAllowThreads();
10547 (arg1)->Check(arg2,arg3);
10548 wxPyEndAllowThreads(__tstate);
10549 if (PyErr_Occurred()) SWIG_fail;
10550 }
10551 resultobj = SWIG_Py_Void();
10552 return resultobj;
10553 fail:
10554 return NULL;
10555 }
10556
10557
10558 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10559 PyObject *resultobj = 0;
10560 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10561 int result;
10562 void *argp1 = 0 ;
10563 int res1 = 0 ;
10564 PyObject *swig_obj[1] ;
10565
10566 if (!args) SWIG_fail;
10567 swig_obj[0] = args;
10568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10569 if (!SWIG_IsOK(res1)) {
10570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10571 }
10572 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10573 {
10574 PyThreadState* __tstate = wxPyBeginAllowThreads();
10575 result = (int)(arg1)->GetItemHeight();
10576 wxPyEndAllowThreads(__tstate);
10577 if (PyErr_Occurred()) SWIG_fail;
10578 }
10579 resultobj = SWIG_From_int(static_cast< int >(result));
10580 return resultobj;
10581 fail:
10582 return NULL;
10583 }
10584
10585
10586 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10587 PyObject *obj;
10588 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10589 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10590 return SWIG_Py_Void();
10591 }
10592
10593 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10594 return SWIG_Python_InitShadowInstance(args);
10595 }
10596
10597 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10598 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10599 return 1;
10600 }
10601
10602
10603 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10604 PyObject *pyobj = 0;
10605
10606 {
10607 #if wxUSE_UNICODE
10608 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10609 #else
10610 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10611 #endif
10612 }
10613 return pyobj;
10614 }
10615
10616
10617 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10618 PyObject *resultobj = 0;
10619 wxColour const &arg1_defvalue = wxNullColour ;
10620 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10621 wxColour const &arg2_defvalue = wxNullColour ;
10622 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10623 wxFont const &arg3_defvalue = wxNullFont ;
10624 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10625 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10626 wxTextAttr *result = 0 ;
10627 wxColour temp1 ;
10628 wxColour temp2 ;
10629 void *argp3 = 0 ;
10630 int res3 = 0 ;
10631 int val4 ;
10632 int ecode4 = 0 ;
10633 PyObject * obj0 = 0 ;
10634 PyObject * obj1 = 0 ;
10635 PyObject * obj2 = 0 ;
10636 PyObject * obj3 = 0 ;
10637 char * kwnames[] = {
10638 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10639 };
10640
10641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10642 if (obj0) {
10643 {
10644 arg1 = &temp1;
10645 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10646 }
10647 }
10648 if (obj1) {
10649 {
10650 arg2 = &temp2;
10651 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10652 }
10653 }
10654 if (obj2) {
10655 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10656 if (!SWIG_IsOK(res3)) {
10657 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10658 }
10659 if (!argp3) {
10660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10661 }
10662 arg3 = reinterpret_cast< wxFont * >(argp3);
10663 }
10664 if (obj3) {
10665 ecode4 = SWIG_AsVal_int(obj3, &val4);
10666 if (!SWIG_IsOK(ecode4)) {
10667 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10668 }
10669 arg4 = static_cast< wxTextAttrAlignment >(val4);
10670 }
10671 {
10672 PyThreadState* __tstate = wxPyBeginAllowThreads();
10673 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10674 wxPyEndAllowThreads(__tstate);
10675 if (PyErr_Occurred()) SWIG_fail;
10676 }
10677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10678 return resultobj;
10679 fail:
10680 return NULL;
10681 }
10682
10683
10684 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10685 PyObject *resultobj = 0;
10686 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10687 void *argp1 = 0 ;
10688 int res1 = 0 ;
10689 PyObject *swig_obj[1] ;
10690
10691 if (!args) SWIG_fail;
10692 swig_obj[0] = args;
10693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10694 if (!SWIG_IsOK(res1)) {
10695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10696 }
10697 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10698 {
10699 PyThreadState* __tstate = wxPyBeginAllowThreads();
10700 delete arg1;
10701
10702 wxPyEndAllowThreads(__tstate);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 }
10705 resultobj = SWIG_Py_Void();
10706 return resultobj;
10707 fail:
10708 return NULL;
10709 }
10710
10711
10712 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10713 PyObject *resultobj = 0;
10714 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10715 void *argp1 = 0 ;
10716 int res1 = 0 ;
10717 PyObject *swig_obj[1] ;
10718
10719 if (!args) SWIG_fail;
10720 swig_obj[0] = args;
10721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10722 if (!SWIG_IsOK(res1)) {
10723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10724 }
10725 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10726 {
10727 PyThreadState* __tstate = wxPyBeginAllowThreads();
10728 (arg1)->Init();
10729 wxPyEndAllowThreads(__tstate);
10730 if (PyErr_Occurred()) SWIG_fail;
10731 }
10732 resultobj = SWIG_Py_Void();
10733 return resultobj;
10734 fail:
10735 return NULL;
10736 }
10737
10738
10739 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10740 PyObject *resultobj = 0;
10741 wxTextAttr *arg1 = 0 ;
10742 wxTextAttr *arg2 = 0 ;
10743 wxTextAttr result;
10744 void *argp1 = 0 ;
10745 int res1 = 0 ;
10746 void *argp2 = 0 ;
10747 int res2 = 0 ;
10748 PyObject * obj0 = 0 ;
10749 PyObject * obj1 = 0 ;
10750 char * kwnames[] = {
10751 (char *) "base",(char *) "overlay", NULL
10752 };
10753
10754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10755 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10756 if (!SWIG_IsOK(res1)) {
10757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10758 }
10759 if (!argp1) {
10760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10761 }
10762 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10763 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10764 if (!SWIG_IsOK(res2)) {
10765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10766 }
10767 if (!argp2) {
10768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10769 }
10770 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10771 {
10772 PyThreadState* __tstate = wxPyBeginAllowThreads();
10773 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10774 wxPyEndAllowThreads(__tstate);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 }
10777 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10778 return resultobj;
10779 fail:
10780 return NULL;
10781 }
10782
10783
10784 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10785 PyObject *resultobj = 0;
10786 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10787 wxColour *arg2 = 0 ;
10788 void *argp1 = 0 ;
10789 int res1 = 0 ;
10790 wxColour temp2 ;
10791 PyObject * obj0 = 0 ;
10792 PyObject * obj1 = 0 ;
10793 char * kwnames[] = {
10794 (char *) "self",(char *) "colText", NULL
10795 };
10796
10797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10799 if (!SWIG_IsOK(res1)) {
10800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10801 }
10802 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10803 {
10804 arg2 = &temp2;
10805 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10806 }
10807 {
10808 PyThreadState* __tstate = wxPyBeginAllowThreads();
10809 (arg1)->SetTextColour((wxColour const &)*arg2);
10810 wxPyEndAllowThreads(__tstate);
10811 if (PyErr_Occurred()) SWIG_fail;
10812 }
10813 resultobj = SWIG_Py_Void();
10814 return resultobj;
10815 fail:
10816 return NULL;
10817 }
10818
10819
10820 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10821 PyObject *resultobj = 0;
10822 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10823 wxColour *arg2 = 0 ;
10824 void *argp1 = 0 ;
10825 int res1 = 0 ;
10826 wxColour temp2 ;
10827 PyObject * obj0 = 0 ;
10828 PyObject * obj1 = 0 ;
10829 char * kwnames[] = {
10830 (char *) "self",(char *) "colBack", NULL
10831 };
10832
10833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10835 if (!SWIG_IsOK(res1)) {
10836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10837 }
10838 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10839 {
10840 arg2 = &temp2;
10841 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10842 }
10843 {
10844 PyThreadState* __tstate = wxPyBeginAllowThreads();
10845 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10846 wxPyEndAllowThreads(__tstate);
10847 if (PyErr_Occurred()) SWIG_fail;
10848 }
10849 resultobj = SWIG_Py_Void();
10850 return resultobj;
10851 fail:
10852 return NULL;
10853 }
10854
10855
10856 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10857 PyObject *resultobj = 0;
10858 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10859 wxFont *arg2 = 0 ;
10860 long arg3 = (long) wxTEXT_ATTR_FONT ;
10861 void *argp1 = 0 ;
10862 int res1 = 0 ;
10863 void *argp2 = 0 ;
10864 int res2 = 0 ;
10865 long val3 ;
10866 int ecode3 = 0 ;
10867 PyObject * obj0 = 0 ;
10868 PyObject * obj1 = 0 ;
10869 PyObject * obj2 = 0 ;
10870 char * kwnames[] = {
10871 (char *) "self",(char *) "font",(char *) "flags", NULL
10872 };
10873
10874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10876 if (!SWIG_IsOK(res1)) {
10877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10878 }
10879 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10880 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10881 if (!SWIG_IsOK(res2)) {
10882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10883 }
10884 if (!argp2) {
10885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10886 }
10887 arg2 = reinterpret_cast< wxFont * >(argp2);
10888 if (obj2) {
10889 ecode3 = SWIG_AsVal_long(obj2, &val3);
10890 if (!SWIG_IsOK(ecode3)) {
10891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10892 }
10893 arg3 = static_cast< long >(val3);
10894 }
10895 {
10896 PyThreadState* __tstate = wxPyBeginAllowThreads();
10897 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10898 wxPyEndAllowThreads(__tstate);
10899 if (PyErr_Occurred()) SWIG_fail;
10900 }
10901 resultobj = SWIG_Py_Void();
10902 return resultobj;
10903 fail:
10904 return NULL;
10905 }
10906
10907
10908 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10909 PyObject *resultobj = 0;
10910 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10911 wxTextAttrAlignment arg2 ;
10912 void *argp1 = 0 ;
10913 int res1 = 0 ;
10914 int val2 ;
10915 int ecode2 = 0 ;
10916 PyObject * obj0 = 0 ;
10917 PyObject * obj1 = 0 ;
10918 char * kwnames[] = {
10919 (char *) "self",(char *) "alignment", NULL
10920 };
10921
10922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10924 if (!SWIG_IsOK(res1)) {
10925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10926 }
10927 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10928 ecode2 = SWIG_AsVal_int(obj1, &val2);
10929 if (!SWIG_IsOK(ecode2)) {
10930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10931 }
10932 arg2 = static_cast< wxTextAttrAlignment >(val2);
10933 {
10934 PyThreadState* __tstate = wxPyBeginAllowThreads();
10935 (arg1)->SetAlignment(arg2);
10936 wxPyEndAllowThreads(__tstate);
10937 if (PyErr_Occurred()) SWIG_fail;
10938 }
10939 resultobj = SWIG_Py_Void();
10940 return resultobj;
10941 fail:
10942 return NULL;
10943 }
10944
10945
10946 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10947 PyObject *resultobj = 0;
10948 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10949 wxArrayInt *arg2 = 0 ;
10950 void *argp1 = 0 ;
10951 int res1 = 0 ;
10952 bool temp2 = false ;
10953 PyObject * obj0 = 0 ;
10954 PyObject * obj1 = 0 ;
10955 char * kwnames[] = {
10956 (char *) "self",(char *) "tabs", NULL
10957 };
10958
10959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10961 if (!SWIG_IsOK(res1)) {
10962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10963 }
10964 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10965 {
10966 if (! PySequence_Check(obj1)) {
10967 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10968 SWIG_fail;
10969 }
10970 arg2 = new wxArrayInt;
10971 temp2 = true;
10972 int i, len=PySequence_Length(obj1);
10973 for (i=0; i<len; i++) {
10974 PyObject* item = PySequence_GetItem(obj1, i);
10975 PyObject* number = PyNumber_Int(item);
10976 if (!number) {
10977 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10978 SWIG_fail;
10979 }
10980 arg2->Add(PyInt_AS_LONG(number));
10981 Py_DECREF(item);
10982 Py_DECREF(number);
10983 }
10984 }
10985 {
10986 PyThreadState* __tstate = wxPyBeginAllowThreads();
10987 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 resultobj = SWIG_Py_Void();
10992 {
10993 if (temp2) delete arg2;
10994 }
10995 return resultobj;
10996 fail:
10997 {
10998 if (temp2) delete arg2;
10999 }
11000 return NULL;
11001 }
11002
11003
11004 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11005 PyObject *resultobj = 0;
11006 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11007 int arg2 ;
11008 int arg3 = (int) 0 ;
11009 void *argp1 = 0 ;
11010 int res1 = 0 ;
11011 int val2 ;
11012 int ecode2 = 0 ;
11013 int val3 ;
11014 int ecode3 = 0 ;
11015 PyObject * obj0 = 0 ;
11016 PyObject * obj1 = 0 ;
11017 PyObject * obj2 = 0 ;
11018 char * kwnames[] = {
11019 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
11020 };
11021
11022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11024 if (!SWIG_IsOK(res1)) {
11025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
11026 }
11027 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11028 ecode2 = SWIG_AsVal_int(obj1, &val2);
11029 if (!SWIG_IsOK(ecode2)) {
11030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
11031 }
11032 arg2 = static_cast< int >(val2);
11033 if (obj2) {
11034 ecode3 = SWIG_AsVal_int(obj2, &val3);
11035 if (!SWIG_IsOK(ecode3)) {
11036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
11037 }
11038 arg3 = static_cast< int >(val3);
11039 }
11040 {
11041 PyThreadState* __tstate = wxPyBeginAllowThreads();
11042 (arg1)->SetLeftIndent(arg2,arg3);
11043 wxPyEndAllowThreads(__tstate);
11044 if (PyErr_Occurred()) SWIG_fail;
11045 }
11046 resultobj = SWIG_Py_Void();
11047 return resultobj;
11048 fail:
11049 return NULL;
11050 }
11051
11052
11053 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11054 PyObject *resultobj = 0;
11055 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11056 int arg2 ;
11057 void *argp1 = 0 ;
11058 int res1 = 0 ;
11059 int val2 ;
11060 int ecode2 = 0 ;
11061 PyObject * obj0 = 0 ;
11062 PyObject * obj1 = 0 ;
11063 char * kwnames[] = {
11064 (char *) "self",(char *) "indent", NULL
11065 };
11066
11067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
11068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11069 if (!SWIG_IsOK(res1)) {
11070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
11071 }
11072 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11073 ecode2 = SWIG_AsVal_int(obj1, &val2);
11074 if (!SWIG_IsOK(ecode2)) {
11075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
11076 }
11077 arg2 = static_cast< int >(val2);
11078 {
11079 PyThreadState* __tstate = wxPyBeginAllowThreads();
11080 (arg1)->SetRightIndent(arg2);
11081 wxPyEndAllowThreads(__tstate);
11082 if (PyErr_Occurred()) SWIG_fail;
11083 }
11084 resultobj = SWIG_Py_Void();
11085 return resultobj;
11086 fail:
11087 return NULL;
11088 }
11089
11090
11091 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11092 PyObject *resultobj = 0;
11093 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11094 long arg2 ;
11095 void *argp1 = 0 ;
11096 int res1 = 0 ;
11097 long val2 ;
11098 int ecode2 = 0 ;
11099 PyObject * obj0 = 0 ;
11100 PyObject * obj1 = 0 ;
11101 char * kwnames[] = {
11102 (char *) "self",(char *) "flags", NULL
11103 };
11104
11105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
11106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11107 if (!SWIG_IsOK(res1)) {
11108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
11109 }
11110 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11111 ecode2 = SWIG_AsVal_long(obj1, &val2);
11112 if (!SWIG_IsOK(ecode2)) {
11113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
11114 }
11115 arg2 = static_cast< long >(val2);
11116 {
11117 PyThreadState* __tstate = wxPyBeginAllowThreads();
11118 (arg1)->SetFlags(arg2);
11119 wxPyEndAllowThreads(__tstate);
11120 if (PyErr_Occurred()) SWIG_fail;
11121 }
11122 resultobj = SWIG_Py_Void();
11123 return resultobj;
11124 fail:
11125 return NULL;
11126 }
11127
11128
11129 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11130 PyObject *resultobj = 0;
11131 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11132 bool result;
11133 void *argp1 = 0 ;
11134 int res1 = 0 ;
11135 PyObject *swig_obj[1] ;
11136
11137 if (!args) SWIG_fail;
11138 swig_obj[0] = args;
11139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11140 if (!SWIG_IsOK(res1)) {
11141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11142 }
11143 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11144 {
11145 PyThreadState* __tstate = wxPyBeginAllowThreads();
11146 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
11147 wxPyEndAllowThreads(__tstate);
11148 if (PyErr_Occurred()) SWIG_fail;
11149 }
11150 {
11151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11152 }
11153 return resultobj;
11154 fail:
11155 return NULL;
11156 }
11157
11158
11159 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11160 PyObject *resultobj = 0;
11161 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11162 bool result;
11163 void *argp1 = 0 ;
11164 int res1 = 0 ;
11165 PyObject *swig_obj[1] ;
11166
11167 if (!args) SWIG_fail;
11168 swig_obj[0] = args;
11169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11170 if (!SWIG_IsOK(res1)) {
11171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11172 }
11173 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11174 {
11175 PyThreadState* __tstate = wxPyBeginAllowThreads();
11176 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 {
11181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11182 }
11183 return resultobj;
11184 fail:
11185 return NULL;
11186 }
11187
11188
11189 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11190 PyObject *resultobj = 0;
11191 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11192 bool result;
11193 void *argp1 = 0 ;
11194 int res1 = 0 ;
11195 PyObject *swig_obj[1] ;
11196
11197 if (!args) SWIG_fail;
11198 swig_obj[0] = args;
11199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11200 if (!SWIG_IsOK(res1)) {
11201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11202 }
11203 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11204 {
11205 PyThreadState* __tstate = wxPyBeginAllowThreads();
11206 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11207 wxPyEndAllowThreads(__tstate);
11208 if (PyErr_Occurred()) SWIG_fail;
11209 }
11210 {
11211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11212 }
11213 return resultobj;
11214 fail:
11215 return NULL;
11216 }
11217
11218
11219 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11220 PyObject *resultobj = 0;
11221 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11222 bool result;
11223 void *argp1 = 0 ;
11224 int res1 = 0 ;
11225 PyObject *swig_obj[1] ;
11226
11227 if (!args) SWIG_fail;
11228 swig_obj[0] = args;
11229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11230 if (!SWIG_IsOK(res1)) {
11231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11232 }
11233 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11234 {
11235 PyThreadState* __tstate = wxPyBeginAllowThreads();
11236 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11237 wxPyEndAllowThreads(__tstate);
11238 if (PyErr_Occurred()) SWIG_fail;
11239 }
11240 {
11241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11242 }
11243 return resultobj;
11244 fail:
11245 return NULL;
11246 }
11247
11248
11249 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11250 PyObject *resultobj = 0;
11251 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11252 bool result;
11253 void *argp1 = 0 ;
11254 int res1 = 0 ;
11255 PyObject *swig_obj[1] ;
11256
11257 if (!args) SWIG_fail;
11258 swig_obj[0] = args;
11259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11260 if (!SWIG_IsOK(res1)) {
11261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11262 }
11263 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11264 {
11265 PyThreadState* __tstate = wxPyBeginAllowThreads();
11266 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11267 wxPyEndAllowThreads(__tstate);
11268 if (PyErr_Occurred()) SWIG_fail;
11269 }
11270 {
11271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11272 }
11273 return resultobj;
11274 fail:
11275 return NULL;
11276 }
11277
11278
11279 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11280 PyObject *resultobj = 0;
11281 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11282 bool result;
11283 void *argp1 = 0 ;
11284 int res1 = 0 ;
11285 PyObject *swig_obj[1] ;
11286
11287 if (!args) SWIG_fail;
11288 swig_obj[0] = args;
11289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11290 if (!SWIG_IsOK(res1)) {
11291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11292 }
11293 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11294 {
11295 PyThreadState* __tstate = wxPyBeginAllowThreads();
11296 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11297 wxPyEndAllowThreads(__tstate);
11298 if (PyErr_Occurred()) SWIG_fail;
11299 }
11300 {
11301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11302 }
11303 return resultobj;
11304 fail:
11305 return NULL;
11306 }
11307
11308
11309 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11310 PyObject *resultobj = 0;
11311 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11312 bool result;
11313 void *argp1 = 0 ;
11314 int res1 = 0 ;
11315 PyObject *swig_obj[1] ;
11316
11317 if (!args) SWIG_fail;
11318 swig_obj[0] = args;
11319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11320 if (!SWIG_IsOK(res1)) {
11321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11322 }
11323 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11324 {
11325 PyThreadState* __tstate = wxPyBeginAllowThreads();
11326 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11327 wxPyEndAllowThreads(__tstate);
11328 if (PyErr_Occurred()) SWIG_fail;
11329 }
11330 {
11331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11332 }
11333 return resultobj;
11334 fail:
11335 return NULL;
11336 }
11337
11338
11339 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11340 PyObject *resultobj = 0;
11341 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11342 long arg2 ;
11343 bool result;
11344 void *argp1 = 0 ;
11345 int res1 = 0 ;
11346 long val2 ;
11347 int ecode2 = 0 ;
11348 PyObject * obj0 = 0 ;
11349 PyObject * obj1 = 0 ;
11350 char * kwnames[] = {
11351 (char *) "self",(char *) "flag", NULL
11352 };
11353
11354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11356 if (!SWIG_IsOK(res1)) {
11357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11358 }
11359 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11360 ecode2 = SWIG_AsVal_long(obj1, &val2);
11361 if (!SWIG_IsOK(ecode2)) {
11362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11363 }
11364 arg2 = static_cast< long >(val2);
11365 {
11366 PyThreadState* __tstate = wxPyBeginAllowThreads();
11367 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11368 wxPyEndAllowThreads(__tstate);
11369 if (PyErr_Occurred()) SWIG_fail;
11370 }
11371 {
11372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11373 }
11374 return resultobj;
11375 fail:
11376 return NULL;
11377 }
11378
11379
11380 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11381 PyObject *resultobj = 0;
11382 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11383 wxColour *result = 0 ;
11384 void *argp1 = 0 ;
11385 int res1 = 0 ;
11386 PyObject *swig_obj[1] ;
11387
11388 if (!args) SWIG_fail;
11389 swig_obj[0] = args;
11390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11391 if (!SWIG_IsOK(res1)) {
11392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11393 }
11394 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11395 {
11396 PyThreadState* __tstate = wxPyBeginAllowThreads();
11397 {
11398 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11399 result = (wxColour *) &_result_ref;
11400 }
11401 wxPyEndAllowThreads(__tstate);
11402 if (PyErr_Occurred()) SWIG_fail;
11403 }
11404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11405 return resultobj;
11406 fail:
11407 return NULL;
11408 }
11409
11410
11411 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11412 PyObject *resultobj = 0;
11413 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11414 wxColour *result = 0 ;
11415 void *argp1 = 0 ;
11416 int res1 = 0 ;
11417 PyObject *swig_obj[1] ;
11418
11419 if (!args) SWIG_fail;
11420 swig_obj[0] = args;
11421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11422 if (!SWIG_IsOK(res1)) {
11423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11424 }
11425 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11426 {
11427 PyThreadState* __tstate = wxPyBeginAllowThreads();
11428 {
11429 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11430 result = (wxColour *) &_result_ref;
11431 }
11432 wxPyEndAllowThreads(__tstate);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 }
11435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11436 return resultobj;
11437 fail:
11438 return NULL;
11439 }
11440
11441
11442 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11443 PyObject *resultobj = 0;
11444 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11445 wxFont *result = 0 ;
11446 void *argp1 = 0 ;
11447 int res1 = 0 ;
11448 PyObject *swig_obj[1] ;
11449
11450 if (!args) SWIG_fail;
11451 swig_obj[0] = args;
11452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11453 if (!SWIG_IsOK(res1)) {
11454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11455 }
11456 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11457 {
11458 PyThreadState* __tstate = wxPyBeginAllowThreads();
11459 {
11460 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11461 result = (wxFont *) &_result_ref;
11462 }
11463 wxPyEndAllowThreads(__tstate);
11464 if (PyErr_Occurred()) SWIG_fail;
11465 }
11466 {
11467 wxFont* resultptr = new wxFont(*result);
11468 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11469 }
11470 return resultobj;
11471 fail:
11472 return NULL;
11473 }
11474
11475
11476 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11477 PyObject *resultobj = 0;
11478 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11479 wxTextAttrAlignment result;
11480 void *argp1 = 0 ;
11481 int res1 = 0 ;
11482 PyObject *swig_obj[1] ;
11483
11484 if (!args) SWIG_fail;
11485 swig_obj[0] = args;
11486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11487 if (!SWIG_IsOK(res1)) {
11488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11489 }
11490 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11491 {
11492 PyThreadState* __tstate = wxPyBeginAllowThreads();
11493 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11494 wxPyEndAllowThreads(__tstate);
11495 if (PyErr_Occurred()) SWIG_fail;
11496 }
11497 resultobj = SWIG_From_int(static_cast< int >(result));
11498 return resultobj;
11499 fail:
11500 return NULL;
11501 }
11502
11503
11504 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11505 PyObject *resultobj = 0;
11506 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11507 wxArrayInt *result = 0 ;
11508 void *argp1 = 0 ;
11509 int res1 = 0 ;
11510 PyObject *swig_obj[1] ;
11511
11512 if (!args) SWIG_fail;
11513 swig_obj[0] = args;
11514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11515 if (!SWIG_IsOK(res1)) {
11516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11517 }
11518 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11519 {
11520 PyThreadState* __tstate = wxPyBeginAllowThreads();
11521 {
11522 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11523 result = (wxArrayInt *) &_result_ref;
11524 }
11525 wxPyEndAllowThreads(__tstate);
11526 if (PyErr_Occurred()) SWIG_fail;
11527 }
11528 {
11529 resultobj = wxArrayInt2PyList_helper(*result);
11530 }
11531 return resultobj;
11532 fail:
11533 return NULL;
11534 }
11535
11536
11537 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11538 PyObject *resultobj = 0;
11539 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11540 long result;
11541 void *argp1 = 0 ;
11542 int res1 = 0 ;
11543 PyObject *swig_obj[1] ;
11544
11545 if (!args) SWIG_fail;
11546 swig_obj[0] = args;
11547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11548 if (!SWIG_IsOK(res1)) {
11549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11550 }
11551 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11552 {
11553 PyThreadState* __tstate = wxPyBeginAllowThreads();
11554 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11555 wxPyEndAllowThreads(__tstate);
11556 if (PyErr_Occurred()) SWIG_fail;
11557 }
11558 resultobj = SWIG_From_long(static_cast< long >(result));
11559 return resultobj;
11560 fail:
11561 return NULL;
11562 }
11563
11564
11565 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11566 PyObject *resultobj = 0;
11567 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11568 long result;
11569 void *argp1 = 0 ;
11570 int res1 = 0 ;
11571 PyObject *swig_obj[1] ;
11572
11573 if (!args) SWIG_fail;
11574 swig_obj[0] = args;
11575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11576 if (!SWIG_IsOK(res1)) {
11577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11578 }
11579 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11580 {
11581 PyThreadState* __tstate = wxPyBeginAllowThreads();
11582 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11583 wxPyEndAllowThreads(__tstate);
11584 if (PyErr_Occurred()) SWIG_fail;
11585 }
11586 resultobj = SWIG_From_long(static_cast< long >(result));
11587 return resultobj;
11588 fail:
11589 return NULL;
11590 }
11591
11592
11593 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11594 PyObject *resultobj = 0;
11595 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11596 long result;
11597 void *argp1 = 0 ;
11598 int res1 = 0 ;
11599 PyObject *swig_obj[1] ;
11600
11601 if (!args) SWIG_fail;
11602 swig_obj[0] = args;
11603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11604 if (!SWIG_IsOK(res1)) {
11605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11606 }
11607 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11608 {
11609 PyThreadState* __tstate = wxPyBeginAllowThreads();
11610 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11611 wxPyEndAllowThreads(__tstate);
11612 if (PyErr_Occurred()) SWIG_fail;
11613 }
11614 resultobj = SWIG_From_long(static_cast< long >(result));
11615 return resultobj;
11616 fail:
11617 return NULL;
11618 }
11619
11620
11621 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11622 PyObject *resultobj = 0;
11623 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11624 long result;
11625 void *argp1 = 0 ;
11626 int res1 = 0 ;
11627 PyObject *swig_obj[1] ;
11628
11629 if (!args) SWIG_fail;
11630 swig_obj[0] = args;
11631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11632 if (!SWIG_IsOK(res1)) {
11633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11634 }
11635 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11636 {
11637 PyThreadState* __tstate = wxPyBeginAllowThreads();
11638 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11639 wxPyEndAllowThreads(__tstate);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 }
11642 resultobj = SWIG_From_long(static_cast< long >(result));
11643 return resultobj;
11644 fail:
11645 return NULL;
11646 }
11647
11648
11649 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11650 PyObject *resultobj = 0;
11651 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11652 bool result;
11653 void *argp1 = 0 ;
11654 int res1 = 0 ;
11655 PyObject *swig_obj[1] ;
11656
11657 if (!args) SWIG_fail;
11658 swig_obj[0] = args;
11659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11660 if (!SWIG_IsOK(res1)) {
11661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11662 }
11663 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11664 {
11665 PyThreadState* __tstate = wxPyBeginAllowThreads();
11666 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11667 wxPyEndAllowThreads(__tstate);
11668 if (PyErr_Occurred()) SWIG_fail;
11669 }
11670 {
11671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11672 }
11673 return resultobj;
11674 fail:
11675 return NULL;
11676 }
11677
11678
11679 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11680 PyObject *resultobj = 0;
11681 wxTextAttr *arg1 = 0 ;
11682 wxTextAttr *arg2 = 0 ;
11683 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11684 wxTextAttr result;
11685 void *argp1 = 0 ;
11686 int res1 = 0 ;
11687 void *argp2 = 0 ;
11688 int res2 = 0 ;
11689 void *argp3 = 0 ;
11690 int res3 = 0 ;
11691 PyObject * obj0 = 0 ;
11692 PyObject * obj1 = 0 ;
11693 PyObject * obj2 = 0 ;
11694 char * kwnames[] = {
11695 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11696 };
11697
11698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11699 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11700 if (!SWIG_IsOK(res1)) {
11701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11702 }
11703 if (!argp1) {
11704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11705 }
11706 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11708 if (!SWIG_IsOK(res2)) {
11709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11710 }
11711 if (!argp2) {
11712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11713 }
11714 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11715 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11716 if (!SWIG_IsOK(res3)) {
11717 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11718 }
11719 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11720 {
11721 PyThreadState* __tstate = wxPyBeginAllowThreads();
11722 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11723 wxPyEndAllowThreads(__tstate);
11724 if (PyErr_Occurred()) SWIG_fail;
11725 }
11726 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11727 return resultobj;
11728 fail:
11729 return NULL;
11730 }
11731
11732
11733 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11734 PyObject *obj;
11735 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11736 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11737 return SWIG_Py_Void();
11738 }
11739
11740 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11741 return SWIG_Python_InitShadowInstance(args);
11742 }
11743
11744 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11745 PyObject *resultobj = 0;
11746 wxWindow *arg1 = (wxWindow *) 0 ;
11747 int arg2 = (int) -1 ;
11748 wxString const &arg3_defvalue = wxPyEmptyString ;
11749 wxString *arg3 = (wxString *) &arg3_defvalue ;
11750 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11751 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11752 wxSize const &arg5_defvalue = wxDefaultSize ;
11753 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11754 long arg6 = (long) 0 ;
11755 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11756 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11757 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11758 wxString *arg8 = (wxString *) &arg8_defvalue ;
11759 wxTextCtrl *result = 0 ;
11760 void *argp1 = 0 ;
11761 int res1 = 0 ;
11762 int val2 ;
11763 int ecode2 = 0 ;
11764 bool temp3 = false ;
11765 wxPoint temp4 ;
11766 wxSize temp5 ;
11767 long val6 ;
11768 int ecode6 = 0 ;
11769 void *argp7 = 0 ;
11770 int res7 = 0 ;
11771 bool temp8 = false ;
11772 PyObject * obj0 = 0 ;
11773 PyObject * obj1 = 0 ;
11774 PyObject * obj2 = 0 ;
11775 PyObject * obj3 = 0 ;
11776 PyObject * obj4 = 0 ;
11777 PyObject * obj5 = 0 ;
11778 PyObject * obj6 = 0 ;
11779 PyObject * obj7 = 0 ;
11780 char * kwnames[] = {
11781 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11782 };
11783
11784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11786 if (!SWIG_IsOK(res1)) {
11787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11788 }
11789 arg1 = reinterpret_cast< wxWindow * >(argp1);
11790 if (obj1) {
11791 ecode2 = SWIG_AsVal_int(obj1, &val2);
11792 if (!SWIG_IsOK(ecode2)) {
11793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11794 }
11795 arg2 = static_cast< int >(val2);
11796 }
11797 if (obj2) {
11798 {
11799 arg3 = wxString_in_helper(obj2);
11800 if (arg3 == NULL) SWIG_fail;
11801 temp3 = true;
11802 }
11803 }
11804 if (obj3) {
11805 {
11806 arg4 = &temp4;
11807 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11808 }
11809 }
11810 if (obj4) {
11811 {
11812 arg5 = &temp5;
11813 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11814 }
11815 }
11816 if (obj5) {
11817 ecode6 = SWIG_AsVal_long(obj5, &val6);
11818 if (!SWIG_IsOK(ecode6)) {
11819 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11820 }
11821 arg6 = static_cast< long >(val6);
11822 }
11823 if (obj6) {
11824 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11825 if (!SWIG_IsOK(res7)) {
11826 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11827 }
11828 if (!argp7) {
11829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11830 }
11831 arg7 = reinterpret_cast< wxValidator * >(argp7);
11832 }
11833 if (obj7) {
11834 {
11835 arg8 = wxString_in_helper(obj7);
11836 if (arg8 == NULL) SWIG_fail;
11837 temp8 = true;
11838 }
11839 }
11840 {
11841 if (!wxPyCheckForApp()) SWIG_fail;
11842 PyThreadState* __tstate = wxPyBeginAllowThreads();
11843 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11844 wxPyEndAllowThreads(__tstate);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 }
11847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11848 {
11849 if (temp3)
11850 delete arg3;
11851 }
11852 {
11853 if (temp8)
11854 delete arg8;
11855 }
11856 return resultobj;
11857 fail:
11858 {
11859 if (temp3)
11860 delete arg3;
11861 }
11862 {
11863 if (temp8)
11864 delete arg8;
11865 }
11866 return NULL;
11867 }
11868
11869
11870 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11871 PyObject *resultobj = 0;
11872 wxTextCtrl *result = 0 ;
11873
11874 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11875 {
11876 if (!wxPyCheckForApp()) SWIG_fail;
11877 PyThreadState* __tstate = wxPyBeginAllowThreads();
11878 result = (wxTextCtrl *)new wxTextCtrl();
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11883 return resultobj;
11884 fail:
11885 return NULL;
11886 }
11887
11888
11889 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11890 PyObject *resultobj = 0;
11891 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11892 wxWindow *arg2 = (wxWindow *) 0 ;
11893 int arg3 = (int) -1 ;
11894 wxString const &arg4_defvalue = wxPyEmptyString ;
11895 wxString *arg4 = (wxString *) &arg4_defvalue ;
11896 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11897 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11898 wxSize const &arg6_defvalue = wxDefaultSize ;
11899 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11900 long arg7 = (long) 0 ;
11901 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11902 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11903 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11904 wxString *arg9 = (wxString *) &arg9_defvalue ;
11905 bool result;
11906 void *argp1 = 0 ;
11907 int res1 = 0 ;
11908 void *argp2 = 0 ;
11909 int res2 = 0 ;
11910 int val3 ;
11911 int ecode3 = 0 ;
11912 bool temp4 = false ;
11913 wxPoint temp5 ;
11914 wxSize temp6 ;
11915 long val7 ;
11916 int ecode7 = 0 ;
11917 void *argp8 = 0 ;
11918 int res8 = 0 ;
11919 bool temp9 = false ;
11920 PyObject * obj0 = 0 ;
11921 PyObject * obj1 = 0 ;
11922 PyObject * obj2 = 0 ;
11923 PyObject * obj3 = 0 ;
11924 PyObject * obj4 = 0 ;
11925 PyObject * obj5 = 0 ;
11926 PyObject * obj6 = 0 ;
11927 PyObject * obj7 = 0 ;
11928 PyObject * obj8 = 0 ;
11929 char * kwnames[] = {
11930 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11931 };
11932
11933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11935 if (!SWIG_IsOK(res1)) {
11936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11937 }
11938 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11939 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11940 if (!SWIG_IsOK(res2)) {
11941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11942 }
11943 arg2 = reinterpret_cast< wxWindow * >(argp2);
11944 if (obj2) {
11945 ecode3 = SWIG_AsVal_int(obj2, &val3);
11946 if (!SWIG_IsOK(ecode3)) {
11947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11948 }
11949 arg3 = static_cast< int >(val3);
11950 }
11951 if (obj3) {
11952 {
11953 arg4 = wxString_in_helper(obj3);
11954 if (arg4 == NULL) SWIG_fail;
11955 temp4 = true;
11956 }
11957 }
11958 if (obj4) {
11959 {
11960 arg5 = &temp5;
11961 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11962 }
11963 }
11964 if (obj5) {
11965 {
11966 arg6 = &temp6;
11967 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11968 }
11969 }
11970 if (obj6) {
11971 ecode7 = SWIG_AsVal_long(obj6, &val7);
11972 if (!SWIG_IsOK(ecode7)) {
11973 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11974 }
11975 arg7 = static_cast< long >(val7);
11976 }
11977 if (obj7) {
11978 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11979 if (!SWIG_IsOK(res8)) {
11980 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11981 }
11982 if (!argp8) {
11983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11984 }
11985 arg8 = reinterpret_cast< wxValidator * >(argp8);
11986 }
11987 if (obj8) {
11988 {
11989 arg9 = wxString_in_helper(obj8);
11990 if (arg9 == NULL) SWIG_fail;
11991 temp9 = true;
11992 }
11993 }
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11997 wxPyEndAllowThreads(__tstate);
11998 if (PyErr_Occurred()) SWIG_fail;
11999 }
12000 {
12001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12002 }
12003 {
12004 if (temp4)
12005 delete arg4;
12006 }
12007 {
12008 if (temp9)
12009 delete arg9;
12010 }
12011 return resultobj;
12012 fail:
12013 {
12014 if (temp4)
12015 delete arg4;
12016 }
12017 {
12018 if (temp9)
12019 delete arg9;
12020 }
12021 return NULL;
12022 }
12023
12024
12025 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12026 PyObject *resultobj = 0;
12027 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12028 wxString result;
12029 void *argp1 = 0 ;
12030 int res1 = 0 ;
12031 PyObject *swig_obj[1] ;
12032
12033 if (!args) SWIG_fail;
12034 swig_obj[0] = args;
12035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12036 if (!SWIG_IsOK(res1)) {
12037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12038 }
12039 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12040 {
12041 PyThreadState* __tstate = wxPyBeginAllowThreads();
12042 result = ((wxTextCtrl const *)arg1)->GetValue();
12043 wxPyEndAllowThreads(__tstate);
12044 if (PyErr_Occurred()) SWIG_fail;
12045 }
12046 {
12047 #if wxUSE_UNICODE
12048 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12049 #else
12050 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12051 #endif
12052 }
12053 return resultobj;
12054 fail:
12055 return NULL;
12056 }
12057
12058
12059 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12060 PyObject *resultobj = 0;
12061 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12062 wxString *arg2 = 0 ;
12063 void *argp1 = 0 ;
12064 int res1 = 0 ;
12065 bool temp2 = false ;
12066 PyObject * obj0 = 0 ;
12067 PyObject * obj1 = 0 ;
12068 char * kwnames[] = {
12069 (char *) "self",(char *) "value", NULL
12070 };
12071
12072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
12073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12074 if (!SWIG_IsOK(res1)) {
12075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12076 }
12077 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12078 {
12079 arg2 = wxString_in_helper(obj1);
12080 if (arg2 == NULL) SWIG_fail;
12081 temp2 = true;
12082 }
12083 {
12084 PyThreadState* __tstate = wxPyBeginAllowThreads();
12085 (arg1)->SetValue((wxString const &)*arg2);
12086 wxPyEndAllowThreads(__tstate);
12087 if (PyErr_Occurred()) SWIG_fail;
12088 }
12089 resultobj = SWIG_Py_Void();
12090 {
12091 if (temp2)
12092 delete arg2;
12093 }
12094 return resultobj;
12095 fail:
12096 {
12097 if (temp2)
12098 delete arg2;
12099 }
12100 return NULL;
12101 }
12102
12103
12104 SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12105 PyObject *resultobj = 0;
12106 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12107 bool result;
12108 void *argp1 = 0 ;
12109 int res1 = 0 ;
12110 PyObject *swig_obj[1] ;
12111
12112 if (!args) SWIG_fail;
12113 swig_obj[0] = args;
12114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12115 if (!SWIG_IsOK(res1)) {
12116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12117 }
12118 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12119 {
12120 PyThreadState* __tstate = wxPyBeginAllowThreads();
12121 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
12122 wxPyEndAllowThreads(__tstate);
12123 if (PyErr_Occurred()) SWIG_fail;
12124 }
12125 {
12126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12127 }
12128 return resultobj;
12129 fail:
12130 return NULL;
12131 }
12132
12133
12134 SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12135 PyObject *resultobj = 0;
12136 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12137 wxString *arg2 = 0 ;
12138 void *argp1 = 0 ;
12139 int res1 = 0 ;
12140 bool temp2 = false ;
12141 PyObject * obj0 = 0 ;
12142 PyObject * obj1 = 0 ;
12143 char * kwnames[] = {
12144 (char *) "self",(char *) "value", NULL
12145 };
12146
12147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
12148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12149 if (!SWIG_IsOK(res1)) {
12150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12151 }
12152 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12153 {
12154 arg2 = wxString_in_helper(obj1);
12155 if (arg2 == NULL) SWIG_fail;
12156 temp2 = true;
12157 }
12158 {
12159 PyThreadState* __tstate = wxPyBeginAllowThreads();
12160 (arg1)->ChangeValue((wxString const &)*arg2);
12161 wxPyEndAllowThreads(__tstate);
12162 if (PyErr_Occurred()) SWIG_fail;
12163 }
12164 resultobj = SWIG_Py_Void();
12165 {
12166 if (temp2)
12167 delete arg2;
12168 }
12169 return resultobj;
12170 fail:
12171 {
12172 if (temp2)
12173 delete arg2;
12174 }
12175 return NULL;
12176 }
12177
12178
12179 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12180 PyObject *resultobj = 0;
12181 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12182 long arg2 ;
12183 long arg3 ;
12184 wxString result;
12185 void *argp1 = 0 ;
12186 int res1 = 0 ;
12187 long val2 ;
12188 int ecode2 = 0 ;
12189 long val3 ;
12190 int ecode3 = 0 ;
12191 PyObject * obj0 = 0 ;
12192 PyObject * obj1 = 0 ;
12193 PyObject * obj2 = 0 ;
12194 char * kwnames[] = {
12195 (char *) "self",(char *) "from",(char *) "to", NULL
12196 };
12197
12198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12200 if (!SWIG_IsOK(res1)) {
12201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12202 }
12203 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12204 ecode2 = SWIG_AsVal_long(obj1, &val2);
12205 if (!SWIG_IsOK(ecode2)) {
12206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12207 }
12208 arg2 = static_cast< long >(val2);
12209 ecode3 = SWIG_AsVal_long(obj2, &val3);
12210 if (!SWIG_IsOK(ecode3)) {
12211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12212 }
12213 arg3 = static_cast< long >(val3);
12214 {
12215 PyThreadState* __tstate = wxPyBeginAllowThreads();
12216 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12217 wxPyEndAllowThreads(__tstate);
12218 if (PyErr_Occurred()) SWIG_fail;
12219 }
12220 {
12221 #if wxUSE_UNICODE
12222 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12223 #else
12224 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12225 #endif
12226 }
12227 return resultobj;
12228 fail:
12229 return NULL;
12230 }
12231
12232
12233 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12234 PyObject *resultobj = 0;
12235 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12236 long arg2 ;
12237 int result;
12238 void *argp1 = 0 ;
12239 int res1 = 0 ;
12240 long val2 ;
12241 int ecode2 = 0 ;
12242 PyObject * obj0 = 0 ;
12243 PyObject * obj1 = 0 ;
12244 char * kwnames[] = {
12245 (char *) "self",(char *) "lineNo", NULL
12246 };
12247
12248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12250 if (!SWIG_IsOK(res1)) {
12251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12252 }
12253 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12254 ecode2 = SWIG_AsVal_long(obj1, &val2);
12255 if (!SWIG_IsOK(ecode2)) {
12256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12257 }
12258 arg2 = static_cast< long >(val2);
12259 {
12260 PyThreadState* __tstate = wxPyBeginAllowThreads();
12261 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12262 wxPyEndAllowThreads(__tstate);
12263 if (PyErr_Occurred()) SWIG_fail;
12264 }
12265 resultobj = SWIG_From_int(static_cast< int >(result));
12266 return resultobj;
12267 fail:
12268 return NULL;
12269 }
12270
12271
12272 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12273 PyObject *resultobj = 0;
12274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12275 long arg2 ;
12276 wxString result;
12277 void *argp1 = 0 ;
12278 int res1 = 0 ;
12279 long val2 ;
12280 int ecode2 = 0 ;
12281 PyObject * obj0 = 0 ;
12282 PyObject * obj1 = 0 ;
12283 char * kwnames[] = {
12284 (char *) "self",(char *) "lineNo", NULL
12285 };
12286
12287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12289 if (!SWIG_IsOK(res1)) {
12290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12291 }
12292 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12293 ecode2 = SWIG_AsVal_long(obj1, &val2);
12294 if (!SWIG_IsOK(ecode2)) {
12295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12296 }
12297 arg2 = static_cast< long >(val2);
12298 {
12299 PyThreadState* __tstate = wxPyBeginAllowThreads();
12300 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12301 wxPyEndAllowThreads(__tstate);
12302 if (PyErr_Occurred()) SWIG_fail;
12303 }
12304 {
12305 #if wxUSE_UNICODE
12306 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12307 #else
12308 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12309 #endif
12310 }
12311 return resultobj;
12312 fail:
12313 return NULL;
12314 }
12315
12316
12317 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12318 PyObject *resultobj = 0;
12319 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12320 int result;
12321 void *argp1 = 0 ;
12322 int res1 = 0 ;
12323 PyObject *swig_obj[1] ;
12324
12325 if (!args) SWIG_fail;
12326 swig_obj[0] = args;
12327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12328 if (!SWIG_IsOK(res1)) {
12329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12330 }
12331 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12332 {
12333 PyThreadState* __tstate = wxPyBeginAllowThreads();
12334 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12335 wxPyEndAllowThreads(__tstate);
12336 if (PyErr_Occurred()) SWIG_fail;
12337 }
12338 resultobj = SWIG_From_int(static_cast< int >(result));
12339 return resultobj;
12340 fail:
12341 return NULL;
12342 }
12343
12344
12345 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12346 PyObject *resultobj = 0;
12347 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12348 bool result;
12349 void *argp1 = 0 ;
12350 int res1 = 0 ;
12351 PyObject *swig_obj[1] ;
12352
12353 if (!args) SWIG_fail;
12354 swig_obj[0] = args;
12355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12356 if (!SWIG_IsOK(res1)) {
12357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12358 }
12359 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12360 {
12361 PyThreadState* __tstate = wxPyBeginAllowThreads();
12362 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12363 wxPyEndAllowThreads(__tstate);
12364 if (PyErr_Occurred()) SWIG_fail;
12365 }
12366 {
12367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12368 }
12369 return resultobj;
12370 fail:
12371 return NULL;
12372 }
12373
12374
12375 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12376 PyObject *resultobj = 0;
12377 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12378 bool result;
12379 void *argp1 = 0 ;
12380 int res1 = 0 ;
12381 PyObject *swig_obj[1] ;
12382
12383 if (!args) SWIG_fail;
12384 swig_obj[0] = args;
12385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12386 if (!SWIG_IsOK(res1)) {
12387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12388 }
12389 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12390 {
12391 PyThreadState* __tstate = wxPyBeginAllowThreads();
12392 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12393 wxPyEndAllowThreads(__tstate);
12394 if (PyErr_Occurred()) SWIG_fail;
12395 }
12396 {
12397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12398 }
12399 return resultobj;
12400 fail:
12401 return NULL;
12402 }
12403
12404
12405 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12406 PyObject *resultobj = 0;
12407 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12408 bool result;
12409 void *argp1 = 0 ;
12410 int res1 = 0 ;
12411 PyObject *swig_obj[1] ;
12412
12413 if (!args) SWIG_fail;
12414 swig_obj[0] = args;
12415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12416 if (!SWIG_IsOK(res1)) {
12417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12418 }
12419 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12420 {
12421 PyThreadState* __tstate = wxPyBeginAllowThreads();
12422 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12423 wxPyEndAllowThreads(__tstate);
12424 if (PyErr_Occurred()) SWIG_fail;
12425 }
12426 {
12427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12428 }
12429 return resultobj;
12430 fail:
12431 return NULL;
12432 }
12433
12434
12435 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12436 PyObject *resultobj = 0;
12437 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12438 bool result;
12439 void *argp1 = 0 ;
12440 int res1 = 0 ;
12441 PyObject *swig_obj[1] ;
12442
12443 if (!args) SWIG_fail;
12444 swig_obj[0] = args;
12445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12446 if (!SWIG_IsOK(res1)) {
12447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12448 }
12449 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12450 {
12451 PyThreadState* __tstate = wxPyBeginAllowThreads();
12452 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12453 wxPyEndAllowThreads(__tstate);
12454 if (PyErr_Occurred()) SWIG_fail;
12455 }
12456 {
12457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12458 }
12459 return resultobj;
12460 fail:
12461 return NULL;
12462 }
12463
12464
12465 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12466 PyObject *resultobj = 0;
12467 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12468 long *arg2 = (long *) 0 ;
12469 long *arg3 = (long *) 0 ;
12470 void *argp1 = 0 ;
12471 int res1 = 0 ;
12472 long temp2 ;
12473 int res2 = SWIG_TMPOBJ ;
12474 long temp3 ;
12475 int res3 = SWIG_TMPOBJ ;
12476 PyObject *swig_obj[1] ;
12477
12478 arg2 = &temp2;
12479 arg3 = &temp3;
12480 if (!args) SWIG_fail;
12481 swig_obj[0] = args;
12482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12483 if (!SWIG_IsOK(res1)) {
12484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12485 }
12486 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12487 {
12488 PyThreadState* __tstate = wxPyBeginAllowThreads();
12489 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12490 wxPyEndAllowThreads(__tstate);
12491 if (PyErr_Occurred()) SWIG_fail;
12492 }
12493 resultobj = SWIG_Py_Void();
12494 if (SWIG_IsTmpObj(res2)) {
12495 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12496 } else {
12497 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12498 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12499 }
12500 if (SWIG_IsTmpObj(res3)) {
12501 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12502 } else {
12503 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12504 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12505 }
12506 return resultobj;
12507 fail:
12508 return NULL;
12509 }
12510
12511
12512 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12513 PyObject *resultobj = 0;
12514 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12515 wxString result;
12516 void *argp1 = 0 ;
12517 int res1 = 0 ;
12518 PyObject *swig_obj[1] ;
12519
12520 if (!args) SWIG_fail;
12521 swig_obj[0] = args;
12522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12523 if (!SWIG_IsOK(res1)) {
12524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12525 }
12526 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12527 {
12528 PyThreadState* __tstate = wxPyBeginAllowThreads();
12529 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12530 wxPyEndAllowThreads(__tstate);
12531 if (PyErr_Occurred()) SWIG_fail;
12532 }
12533 {
12534 #if wxUSE_UNICODE
12535 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12536 #else
12537 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12538 #endif
12539 }
12540 return resultobj;
12541 fail:
12542 return NULL;
12543 }
12544
12545
12546 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12547 PyObject *resultobj = 0;
12548 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12549 void *argp1 = 0 ;
12550 int res1 = 0 ;
12551 PyObject *swig_obj[1] ;
12552
12553 if (!args) SWIG_fail;
12554 swig_obj[0] = args;
12555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12556 if (!SWIG_IsOK(res1)) {
12557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12558 }
12559 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12560 {
12561 PyThreadState* __tstate = wxPyBeginAllowThreads();
12562 (arg1)->Clear();
12563 wxPyEndAllowThreads(__tstate);
12564 if (PyErr_Occurred()) SWIG_fail;
12565 }
12566 resultobj = SWIG_Py_Void();
12567 return resultobj;
12568 fail:
12569 return NULL;
12570 }
12571
12572
12573 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12574 PyObject *resultobj = 0;
12575 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12576 long arg2 ;
12577 long arg3 ;
12578 wxString *arg4 = 0 ;
12579 void *argp1 = 0 ;
12580 int res1 = 0 ;
12581 long val2 ;
12582 int ecode2 = 0 ;
12583 long val3 ;
12584 int ecode3 = 0 ;
12585 bool temp4 = false ;
12586 PyObject * obj0 = 0 ;
12587 PyObject * obj1 = 0 ;
12588 PyObject * obj2 = 0 ;
12589 PyObject * obj3 = 0 ;
12590 char * kwnames[] = {
12591 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12592 };
12593
12594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12596 if (!SWIG_IsOK(res1)) {
12597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12598 }
12599 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12600 ecode2 = SWIG_AsVal_long(obj1, &val2);
12601 if (!SWIG_IsOK(ecode2)) {
12602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12603 }
12604 arg2 = static_cast< long >(val2);
12605 ecode3 = SWIG_AsVal_long(obj2, &val3);
12606 if (!SWIG_IsOK(ecode3)) {
12607 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12608 }
12609 arg3 = static_cast< long >(val3);
12610 {
12611 arg4 = wxString_in_helper(obj3);
12612 if (arg4 == NULL) SWIG_fail;
12613 temp4 = true;
12614 }
12615 {
12616 PyThreadState* __tstate = wxPyBeginAllowThreads();
12617 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12618 wxPyEndAllowThreads(__tstate);
12619 if (PyErr_Occurred()) SWIG_fail;
12620 }
12621 resultobj = SWIG_Py_Void();
12622 {
12623 if (temp4)
12624 delete arg4;
12625 }
12626 return resultobj;
12627 fail:
12628 {
12629 if (temp4)
12630 delete arg4;
12631 }
12632 return NULL;
12633 }
12634
12635
12636 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12637 PyObject *resultobj = 0;
12638 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12639 long arg2 ;
12640 long arg3 ;
12641 void *argp1 = 0 ;
12642 int res1 = 0 ;
12643 long val2 ;
12644 int ecode2 = 0 ;
12645 long val3 ;
12646 int ecode3 = 0 ;
12647 PyObject * obj0 = 0 ;
12648 PyObject * obj1 = 0 ;
12649 PyObject * obj2 = 0 ;
12650 char * kwnames[] = {
12651 (char *) "self",(char *) "from",(char *) "to", NULL
12652 };
12653
12654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12656 if (!SWIG_IsOK(res1)) {
12657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12658 }
12659 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12660 ecode2 = SWIG_AsVal_long(obj1, &val2);
12661 if (!SWIG_IsOK(ecode2)) {
12662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12663 }
12664 arg2 = static_cast< long >(val2);
12665 ecode3 = SWIG_AsVal_long(obj2, &val3);
12666 if (!SWIG_IsOK(ecode3)) {
12667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12668 }
12669 arg3 = static_cast< long >(val3);
12670 {
12671 PyThreadState* __tstate = wxPyBeginAllowThreads();
12672 (arg1)->Remove(arg2,arg3);
12673 wxPyEndAllowThreads(__tstate);
12674 if (PyErr_Occurred()) SWIG_fail;
12675 }
12676 resultobj = SWIG_Py_Void();
12677 return resultobj;
12678 fail:
12679 return NULL;
12680 }
12681
12682
12683 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12684 PyObject *resultobj = 0;
12685 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12686 wxString *arg2 = 0 ;
12687 int arg3 = (int) wxTEXT_TYPE_ANY ;
12688 bool result;
12689 void *argp1 = 0 ;
12690 int res1 = 0 ;
12691 bool temp2 = false ;
12692 int val3 ;
12693 int ecode3 = 0 ;
12694 PyObject * obj0 = 0 ;
12695 PyObject * obj1 = 0 ;
12696 PyObject * obj2 = 0 ;
12697 char * kwnames[] = {
12698 (char *) "self",(char *) "file",(char *) "fileType", NULL
12699 };
12700
12701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12703 if (!SWIG_IsOK(res1)) {
12704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12705 }
12706 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12707 {
12708 arg2 = wxString_in_helper(obj1);
12709 if (arg2 == NULL) SWIG_fail;
12710 temp2 = true;
12711 }
12712 if (obj2) {
12713 ecode3 = SWIG_AsVal_int(obj2, &val3);
12714 if (!SWIG_IsOK(ecode3)) {
12715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12716 }
12717 arg3 = static_cast< int >(val3);
12718 }
12719 {
12720 PyThreadState* __tstate = wxPyBeginAllowThreads();
12721 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
12722 wxPyEndAllowThreads(__tstate);
12723 if (PyErr_Occurred()) SWIG_fail;
12724 }
12725 {
12726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12727 }
12728 {
12729 if (temp2)
12730 delete arg2;
12731 }
12732 return resultobj;
12733 fail:
12734 {
12735 if (temp2)
12736 delete arg2;
12737 }
12738 return NULL;
12739 }
12740
12741
12742 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12743 PyObject *resultobj = 0;
12744 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12745 wxString const &arg2_defvalue = wxPyEmptyString ;
12746 wxString *arg2 = (wxString *) &arg2_defvalue ;
12747 int arg3 = (int) wxTEXT_TYPE_ANY ;
12748 bool result;
12749 void *argp1 = 0 ;
12750 int res1 = 0 ;
12751 bool temp2 = false ;
12752 int val3 ;
12753 int ecode3 = 0 ;
12754 PyObject * obj0 = 0 ;
12755 PyObject * obj1 = 0 ;
12756 PyObject * obj2 = 0 ;
12757 char * kwnames[] = {
12758 (char *) "self",(char *) "file",(char *) "fileType", NULL
12759 };
12760
12761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12763 if (!SWIG_IsOK(res1)) {
12764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12765 }
12766 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12767 if (obj1) {
12768 {
12769 arg2 = wxString_in_helper(obj1);
12770 if (arg2 == NULL) SWIG_fail;
12771 temp2 = true;
12772 }
12773 }
12774 if (obj2) {
12775 ecode3 = SWIG_AsVal_int(obj2, &val3);
12776 if (!SWIG_IsOK(ecode3)) {
12777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12778 }
12779 arg3 = static_cast< int >(val3);
12780 }
12781 {
12782 PyThreadState* __tstate = wxPyBeginAllowThreads();
12783 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12784 wxPyEndAllowThreads(__tstate);
12785 if (PyErr_Occurred()) SWIG_fail;
12786 }
12787 {
12788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12789 }
12790 {
12791 if (temp2)
12792 delete arg2;
12793 }
12794 return resultobj;
12795 fail:
12796 {
12797 if (temp2)
12798 delete arg2;
12799 }
12800 return NULL;
12801 }
12802
12803
12804 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12805 PyObject *resultobj = 0;
12806 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12807 void *argp1 = 0 ;
12808 int res1 = 0 ;
12809 PyObject *swig_obj[1] ;
12810
12811 if (!args) SWIG_fail;
12812 swig_obj[0] = args;
12813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12814 if (!SWIG_IsOK(res1)) {
12815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12816 }
12817 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12818 {
12819 PyThreadState* __tstate = wxPyBeginAllowThreads();
12820 (arg1)->MarkDirty();
12821 wxPyEndAllowThreads(__tstate);
12822 if (PyErr_Occurred()) SWIG_fail;
12823 }
12824 resultobj = SWIG_Py_Void();
12825 return resultobj;
12826 fail:
12827 return NULL;
12828 }
12829
12830
12831 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12832 PyObject *resultobj = 0;
12833 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12834 void *argp1 = 0 ;
12835 int res1 = 0 ;
12836 PyObject *swig_obj[1] ;
12837
12838 if (!args) SWIG_fail;
12839 swig_obj[0] = args;
12840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12841 if (!SWIG_IsOK(res1)) {
12842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12843 }
12844 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12845 {
12846 PyThreadState* __tstate = wxPyBeginAllowThreads();
12847 (arg1)->DiscardEdits();
12848 wxPyEndAllowThreads(__tstate);
12849 if (PyErr_Occurred()) SWIG_fail;
12850 }
12851 resultobj = SWIG_Py_Void();
12852 return resultobj;
12853 fail:
12854 return NULL;
12855 }
12856
12857
12858 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12859 PyObject *resultobj = 0;
12860 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12861 bool arg2 ;
12862 void *argp1 = 0 ;
12863 int res1 = 0 ;
12864 bool val2 ;
12865 int ecode2 = 0 ;
12866 PyObject * obj0 = 0 ;
12867 PyObject * obj1 = 0 ;
12868 char * kwnames[] = {
12869 (char *) "self",(char *) "modified", NULL
12870 };
12871
12872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12874 if (!SWIG_IsOK(res1)) {
12875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12876 }
12877 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12878 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12879 if (!SWIG_IsOK(ecode2)) {
12880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12881 }
12882 arg2 = static_cast< bool >(val2);
12883 {
12884 PyThreadState* __tstate = wxPyBeginAllowThreads();
12885 (arg1)->SetModified(arg2);
12886 wxPyEndAllowThreads(__tstate);
12887 if (PyErr_Occurred()) SWIG_fail;
12888 }
12889 resultobj = SWIG_Py_Void();
12890 return resultobj;
12891 fail:
12892 return NULL;
12893 }
12894
12895
12896 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12897 PyObject *resultobj = 0;
12898 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12899 unsigned long arg2 ;
12900 void *argp1 = 0 ;
12901 int res1 = 0 ;
12902 unsigned long val2 ;
12903 int ecode2 = 0 ;
12904 PyObject * obj0 = 0 ;
12905 PyObject * obj1 = 0 ;
12906 char * kwnames[] = {
12907 (char *) "self",(char *) "len", NULL
12908 };
12909
12910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12912 if (!SWIG_IsOK(res1)) {
12913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12914 }
12915 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12916 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12917 if (!SWIG_IsOK(ecode2)) {
12918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12919 }
12920 arg2 = static_cast< unsigned long >(val2);
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
12923 (arg1)->SetMaxLength(arg2);
12924 wxPyEndAllowThreads(__tstate);
12925 if (PyErr_Occurred()) SWIG_fail;
12926 }
12927 resultobj = SWIG_Py_Void();
12928 return resultobj;
12929 fail:
12930 return NULL;
12931 }
12932
12933
12934 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12935 PyObject *resultobj = 0;
12936 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12937 wxString *arg2 = 0 ;
12938 void *argp1 = 0 ;
12939 int res1 = 0 ;
12940 bool temp2 = false ;
12941 PyObject * obj0 = 0 ;
12942 PyObject * obj1 = 0 ;
12943 char * kwnames[] = {
12944 (char *) "self",(char *) "text", NULL
12945 };
12946
12947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12949 if (!SWIG_IsOK(res1)) {
12950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12951 }
12952 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12953 {
12954 arg2 = wxString_in_helper(obj1);
12955 if (arg2 == NULL) SWIG_fail;
12956 temp2 = true;
12957 }
12958 {
12959 PyThreadState* __tstate = wxPyBeginAllowThreads();
12960 (arg1)->WriteText((wxString const &)*arg2);
12961 wxPyEndAllowThreads(__tstate);
12962 if (PyErr_Occurred()) SWIG_fail;
12963 }
12964 resultobj = SWIG_Py_Void();
12965 {
12966 if (temp2)
12967 delete arg2;
12968 }
12969 return resultobj;
12970 fail:
12971 {
12972 if (temp2)
12973 delete arg2;
12974 }
12975 return NULL;
12976 }
12977
12978
12979 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12980 PyObject *resultobj = 0;
12981 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12982 wxString *arg2 = 0 ;
12983 void *argp1 = 0 ;
12984 int res1 = 0 ;
12985 bool temp2 = false ;
12986 PyObject * obj0 = 0 ;
12987 PyObject * obj1 = 0 ;
12988 char * kwnames[] = {
12989 (char *) "self",(char *) "text", NULL
12990 };
12991
12992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12994 if (!SWIG_IsOK(res1)) {
12995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12996 }
12997 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12998 {
12999 arg2 = wxString_in_helper(obj1);
13000 if (arg2 == NULL) SWIG_fail;
13001 temp2 = true;
13002 }
13003 {
13004 PyThreadState* __tstate = wxPyBeginAllowThreads();
13005 (arg1)->AppendText((wxString const &)*arg2);
13006 wxPyEndAllowThreads(__tstate);
13007 if (PyErr_Occurred()) SWIG_fail;
13008 }
13009 resultobj = SWIG_Py_Void();
13010 {
13011 if (temp2)
13012 delete arg2;
13013 }
13014 return resultobj;
13015 fail:
13016 {
13017 if (temp2)
13018 delete arg2;
13019 }
13020 return NULL;
13021 }
13022
13023
13024 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13025 PyObject *resultobj = 0;
13026 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13027 wxKeyEvent *arg2 = 0 ;
13028 bool result;
13029 void *argp1 = 0 ;
13030 int res1 = 0 ;
13031 void *argp2 = 0 ;
13032 int res2 = 0 ;
13033 PyObject * obj0 = 0 ;
13034 PyObject * obj1 = 0 ;
13035 char * kwnames[] = {
13036 (char *) "self",(char *) "event", NULL
13037 };
13038
13039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
13040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13041 if (!SWIG_IsOK(res1)) {
13042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13043 }
13044 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13045 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
13046 if (!SWIG_IsOK(res2)) {
13047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
13048 }
13049 if (!argp2) {
13050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
13051 }
13052 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
13053 {
13054 PyThreadState* __tstate = wxPyBeginAllowThreads();
13055 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
13056 wxPyEndAllowThreads(__tstate);
13057 if (PyErr_Occurred()) SWIG_fail;
13058 }
13059 {
13060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13061 }
13062 return resultobj;
13063 fail:
13064 return NULL;
13065 }
13066
13067
13068 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13069 PyObject *resultobj = 0;
13070 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13071 long arg2 ;
13072 long arg3 ;
13073 wxTextAttr *arg4 = 0 ;
13074 bool result;
13075 void *argp1 = 0 ;
13076 int res1 = 0 ;
13077 long val2 ;
13078 int ecode2 = 0 ;
13079 long val3 ;
13080 int ecode3 = 0 ;
13081 void *argp4 = 0 ;
13082 int res4 = 0 ;
13083 PyObject * obj0 = 0 ;
13084 PyObject * obj1 = 0 ;
13085 PyObject * obj2 = 0 ;
13086 PyObject * obj3 = 0 ;
13087 char * kwnames[] = {
13088 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
13089 };
13090
13091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13093 if (!SWIG_IsOK(res1)) {
13094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13095 }
13096 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13097 ecode2 = SWIG_AsVal_long(obj1, &val2);
13098 if (!SWIG_IsOK(ecode2)) {
13099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
13100 }
13101 arg2 = static_cast< long >(val2);
13102 ecode3 = SWIG_AsVal_long(obj2, &val3);
13103 if (!SWIG_IsOK(ecode3)) {
13104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
13105 }
13106 arg3 = static_cast< long >(val3);
13107 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
13108 if (!SWIG_IsOK(res4)) {
13109 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
13110 }
13111 if (!argp4) {
13112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
13113 }
13114 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
13118 wxPyEndAllowThreads(__tstate);
13119 if (PyErr_Occurred()) SWIG_fail;
13120 }
13121 {
13122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13123 }
13124 return resultobj;
13125 fail:
13126 return NULL;
13127 }
13128
13129
13130 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13131 PyObject *resultobj = 0;
13132 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13133 long arg2 ;
13134 wxTextAttr *arg3 = 0 ;
13135 bool result;
13136 void *argp1 = 0 ;
13137 int res1 = 0 ;
13138 long val2 ;
13139 int ecode2 = 0 ;
13140 void *argp3 = 0 ;
13141 int res3 = 0 ;
13142 PyObject * obj0 = 0 ;
13143 PyObject * obj1 = 0 ;
13144 PyObject * obj2 = 0 ;
13145 char * kwnames[] = {
13146 (char *) "self",(char *) "position",(char *) "style", NULL
13147 };
13148
13149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13151 if (!SWIG_IsOK(res1)) {
13152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13153 }
13154 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13155 ecode2 = SWIG_AsVal_long(obj1, &val2);
13156 if (!SWIG_IsOK(ecode2)) {
13157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
13158 }
13159 arg2 = static_cast< long >(val2);
13160 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
13161 if (!SWIG_IsOK(res3)) {
13162 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13163 }
13164 if (!argp3) {
13165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13166 }
13167 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
13168 {
13169 PyThreadState* __tstate = wxPyBeginAllowThreads();
13170 result = (bool)(arg1)->GetStyle(arg2,*arg3);
13171 wxPyEndAllowThreads(__tstate);
13172 if (PyErr_Occurred()) SWIG_fail;
13173 }
13174 {
13175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13176 }
13177 return resultobj;
13178 fail:
13179 return NULL;
13180 }
13181
13182
13183 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13184 PyObject *resultobj = 0;
13185 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13186 wxTextAttr *arg2 = 0 ;
13187 bool result;
13188 void *argp1 = 0 ;
13189 int res1 = 0 ;
13190 void *argp2 = 0 ;
13191 int res2 = 0 ;
13192 PyObject * obj0 = 0 ;
13193 PyObject * obj1 = 0 ;
13194 char * kwnames[] = {
13195 (char *) "self",(char *) "style", NULL
13196 };
13197
13198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13200 if (!SWIG_IsOK(res1)) {
13201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13202 }
13203 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13205 if (!SWIG_IsOK(res2)) {
13206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13207 }
13208 if (!argp2) {
13209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13210 }
13211 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13212 {
13213 PyThreadState* __tstate = wxPyBeginAllowThreads();
13214 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13215 wxPyEndAllowThreads(__tstate);
13216 if (PyErr_Occurred()) SWIG_fail;
13217 }
13218 {
13219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13220 }
13221 return resultobj;
13222 fail:
13223 return NULL;
13224 }
13225
13226
13227 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13228 PyObject *resultobj = 0;
13229 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13230 wxTextAttr *result = 0 ;
13231 void *argp1 = 0 ;
13232 int res1 = 0 ;
13233 PyObject *swig_obj[1] ;
13234
13235 if (!args) SWIG_fail;
13236 swig_obj[0] = args;
13237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13238 if (!SWIG_IsOK(res1)) {
13239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13240 }
13241 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13242 {
13243 PyThreadState* __tstate = wxPyBeginAllowThreads();
13244 {
13245 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13246 result = (wxTextAttr *) &_result_ref;
13247 }
13248 wxPyEndAllowThreads(__tstate);
13249 if (PyErr_Occurred()) SWIG_fail;
13250 }
13251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13252 return resultobj;
13253 fail:
13254 return NULL;
13255 }
13256
13257
13258 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13259 PyObject *resultobj = 0;
13260 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13261 long arg2 ;
13262 long arg3 ;
13263 long result;
13264 void *argp1 = 0 ;
13265 int res1 = 0 ;
13266 long val2 ;
13267 int ecode2 = 0 ;
13268 long val3 ;
13269 int ecode3 = 0 ;
13270 PyObject * obj0 = 0 ;
13271 PyObject * obj1 = 0 ;
13272 PyObject * obj2 = 0 ;
13273 char * kwnames[] = {
13274 (char *) "self",(char *) "x",(char *) "y", NULL
13275 };
13276
13277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13279 if (!SWIG_IsOK(res1)) {
13280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13281 }
13282 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13283 ecode2 = SWIG_AsVal_long(obj1, &val2);
13284 if (!SWIG_IsOK(ecode2)) {
13285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13286 }
13287 arg2 = static_cast< long >(val2);
13288 ecode3 = SWIG_AsVal_long(obj2, &val3);
13289 if (!SWIG_IsOK(ecode3)) {
13290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13291 }
13292 arg3 = static_cast< long >(val3);
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 resultobj = SWIG_From_long(static_cast< long >(result));
13300 return resultobj;
13301 fail:
13302 return NULL;
13303 }
13304
13305
13306 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13307 PyObject *resultobj = 0;
13308 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13309 long arg2 ;
13310 long *arg3 = (long *) 0 ;
13311 long *arg4 = (long *) 0 ;
13312 void *argp1 = 0 ;
13313 int res1 = 0 ;
13314 long val2 ;
13315 int ecode2 = 0 ;
13316 long temp3 ;
13317 int res3 = SWIG_TMPOBJ ;
13318 long temp4 ;
13319 int res4 = SWIG_TMPOBJ ;
13320 PyObject * obj0 = 0 ;
13321 PyObject * obj1 = 0 ;
13322 char * kwnames[] = {
13323 (char *) "self",(char *) "pos", NULL
13324 };
13325
13326 arg3 = &temp3;
13327 arg4 = &temp4;
13328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13330 if (!SWIG_IsOK(res1)) {
13331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13332 }
13333 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13334 ecode2 = SWIG_AsVal_long(obj1, &val2);
13335 if (!SWIG_IsOK(ecode2)) {
13336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13337 }
13338 arg2 = static_cast< long >(val2);
13339 {
13340 PyThreadState* __tstate = wxPyBeginAllowThreads();
13341 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13342 wxPyEndAllowThreads(__tstate);
13343 if (PyErr_Occurred()) SWIG_fail;
13344 }
13345 resultobj = SWIG_Py_Void();
13346 if (SWIG_IsTmpObj(res3)) {
13347 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13348 } else {
13349 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13350 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13351 }
13352 if (SWIG_IsTmpObj(res4)) {
13353 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13354 } else {
13355 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13356 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13357 }
13358 return resultobj;
13359 fail:
13360 return NULL;
13361 }
13362
13363
13364 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13365 PyObject *resultobj = 0;
13366 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13367 long arg2 ;
13368 void *argp1 = 0 ;
13369 int res1 = 0 ;
13370 long val2 ;
13371 int ecode2 = 0 ;
13372 PyObject * obj0 = 0 ;
13373 PyObject * obj1 = 0 ;
13374 char * kwnames[] = {
13375 (char *) "self",(char *) "pos", NULL
13376 };
13377
13378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13380 if (!SWIG_IsOK(res1)) {
13381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13382 }
13383 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13384 ecode2 = SWIG_AsVal_long(obj1, &val2);
13385 if (!SWIG_IsOK(ecode2)) {
13386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13387 }
13388 arg2 = static_cast< long >(val2);
13389 {
13390 PyThreadState* __tstate = wxPyBeginAllowThreads();
13391 (arg1)->ShowPosition(arg2);
13392 wxPyEndAllowThreads(__tstate);
13393 if (PyErr_Occurred()) SWIG_fail;
13394 }
13395 resultobj = SWIG_Py_Void();
13396 return resultobj;
13397 fail:
13398 return NULL;
13399 }
13400
13401
13402 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13403 PyObject *resultobj = 0;
13404 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13405 wxPoint *arg2 = 0 ;
13406 long *arg3 = (long *) 0 ;
13407 long *arg4 = (long *) 0 ;
13408 wxTextCtrlHitTestResult result;
13409 void *argp1 = 0 ;
13410 int res1 = 0 ;
13411 wxPoint temp2 ;
13412 long temp3 ;
13413 int res3 = SWIG_TMPOBJ ;
13414 long temp4 ;
13415 int res4 = SWIG_TMPOBJ ;
13416 PyObject * obj0 = 0 ;
13417 PyObject * obj1 = 0 ;
13418 char * kwnames[] = {
13419 (char *) "self",(char *) "pt", NULL
13420 };
13421
13422 arg3 = &temp3;
13423 arg4 = &temp4;
13424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13426 if (!SWIG_IsOK(res1)) {
13427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13428 }
13429 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13430 {
13431 arg2 = &temp2;
13432 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13433 }
13434 {
13435 PyThreadState* __tstate = wxPyBeginAllowThreads();
13436 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13437 wxPyEndAllowThreads(__tstate);
13438 if (PyErr_Occurred()) SWIG_fail;
13439 }
13440 resultobj = SWIG_From_int(static_cast< int >(result));
13441 if (SWIG_IsTmpObj(res3)) {
13442 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13443 } else {
13444 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13445 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13446 }
13447 if (SWIG_IsTmpObj(res4)) {
13448 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13449 } else {
13450 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13451 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13452 }
13453 return resultobj;
13454 fail:
13455 return NULL;
13456 }
13457
13458
13459 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13460 PyObject *resultobj = 0;
13461 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13462 wxPoint *arg2 = 0 ;
13463 long *arg3 = (long *) 0 ;
13464 wxTextCtrlHitTestResult result;
13465 void *argp1 = 0 ;
13466 int res1 = 0 ;
13467 wxPoint temp2 ;
13468 long temp3 ;
13469 int res3 = SWIG_TMPOBJ ;
13470 PyObject * obj0 = 0 ;
13471 PyObject * obj1 = 0 ;
13472 char * kwnames[] = {
13473 (char *) "self",(char *) "pt", NULL
13474 };
13475
13476 arg3 = &temp3;
13477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13479 if (!SWIG_IsOK(res1)) {
13480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13481 }
13482 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13483 {
13484 arg2 = &temp2;
13485 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13486 }
13487 {
13488 PyThreadState* __tstate = wxPyBeginAllowThreads();
13489 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13490 wxPyEndAllowThreads(__tstate);
13491 if (PyErr_Occurred()) SWIG_fail;
13492 }
13493 resultobj = SWIG_From_int(static_cast< int >(result));
13494 if (SWIG_IsTmpObj(res3)) {
13495 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13496 } else {
13497 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13498 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13499 }
13500 return resultobj;
13501 fail:
13502 return NULL;
13503 }
13504
13505
13506 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13507 PyObject *resultobj = 0;
13508 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13509 void *argp1 = 0 ;
13510 int res1 = 0 ;
13511 PyObject *swig_obj[1] ;
13512
13513 if (!args) SWIG_fail;
13514 swig_obj[0] = args;
13515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13516 if (!SWIG_IsOK(res1)) {
13517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13518 }
13519 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13520 {
13521 PyThreadState* __tstate = wxPyBeginAllowThreads();
13522 (arg1)->Copy();
13523 wxPyEndAllowThreads(__tstate);
13524 if (PyErr_Occurred()) SWIG_fail;
13525 }
13526 resultobj = SWIG_Py_Void();
13527 return resultobj;
13528 fail:
13529 return NULL;
13530 }
13531
13532
13533 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13534 PyObject *resultobj = 0;
13535 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13536 void *argp1 = 0 ;
13537 int res1 = 0 ;
13538 PyObject *swig_obj[1] ;
13539
13540 if (!args) SWIG_fail;
13541 swig_obj[0] = args;
13542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13543 if (!SWIG_IsOK(res1)) {
13544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13545 }
13546 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13547 {
13548 PyThreadState* __tstate = wxPyBeginAllowThreads();
13549 (arg1)->Cut();
13550 wxPyEndAllowThreads(__tstate);
13551 if (PyErr_Occurred()) SWIG_fail;
13552 }
13553 resultobj = SWIG_Py_Void();
13554 return resultobj;
13555 fail:
13556 return NULL;
13557 }
13558
13559
13560 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13561 PyObject *resultobj = 0;
13562 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13563 void *argp1 = 0 ;
13564 int res1 = 0 ;
13565 PyObject *swig_obj[1] ;
13566
13567 if (!args) SWIG_fail;
13568 swig_obj[0] = args;
13569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13570 if (!SWIG_IsOK(res1)) {
13571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13572 }
13573 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13574 {
13575 PyThreadState* __tstate = wxPyBeginAllowThreads();
13576 (arg1)->Paste();
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 resultobj = SWIG_Py_Void();
13581 return resultobj;
13582 fail:
13583 return NULL;
13584 }
13585
13586
13587 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13588 PyObject *resultobj = 0;
13589 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13590 bool result;
13591 void *argp1 = 0 ;
13592 int res1 = 0 ;
13593 PyObject *swig_obj[1] ;
13594
13595 if (!args) SWIG_fail;
13596 swig_obj[0] = args;
13597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13598 if (!SWIG_IsOK(res1)) {
13599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13600 }
13601 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13602 {
13603 PyThreadState* __tstate = wxPyBeginAllowThreads();
13604 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13605 wxPyEndAllowThreads(__tstate);
13606 if (PyErr_Occurred()) SWIG_fail;
13607 }
13608 {
13609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13610 }
13611 return resultobj;
13612 fail:
13613 return NULL;
13614 }
13615
13616
13617 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13618 PyObject *resultobj = 0;
13619 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13620 bool result;
13621 void *argp1 = 0 ;
13622 int res1 = 0 ;
13623 PyObject *swig_obj[1] ;
13624
13625 if (!args) SWIG_fail;
13626 swig_obj[0] = args;
13627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13628 if (!SWIG_IsOK(res1)) {
13629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13630 }
13631 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13632 {
13633 PyThreadState* __tstate = wxPyBeginAllowThreads();
13634 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13635 wxPyEndAllowThreads(__tstate);
13636 if (PyErr_Occurred()) SWIG_fail;
13637 }
13638 {
13639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13640 }
13641 return resultobj;
13642 fail:
13643 return NULL;
13644 }
13645
13646
13647 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13648 PyObject *resultobj = 0;
13649 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13650 bool result;
13651 void *argp1 = 0 ;
13652 int res1 = 0 ;
13653 PyObject *swig_obj[1] ;
13654
13655 if (!args) SWIG_fail;
13656 swig_obj[0] = args;
13657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13658 if (!SWIG_IsOK(res1)) {
13659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13660 }
13661 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13662 {
13663 PyThreadState* __tstate = wxPyBeginAllowThreads();
13664 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13665 wxPyEndAllowThreads(__tstate);
13666 if (PyErr_Occurred()) SWIG_fail;
13667 }
13668 {
13669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13670 }
13671 return resultobj;
13672 fail:
13673 return NULL;
13674 }
13675
13676
13677 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13678 PyObject *resultobj = 0;
13679 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13680 void *argp1 = 0 ;
13681 int res1 = 0 ;
13682 PyObject *swig_obj[1] ;
13683
13684 if (!args) SWIG_fail;
13685 swig_obj[0] = args;
13686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13687 if (!SWIG_IsOK(res1)) {
13688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13689 }
13690 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13691 {
13692 PyThreadState* __tstate = wxPyBeginAllowThreads();
13693 (arg1)->Undo();
13694 wxPyEndAllowThreads(__tstate);
13695 if (PyErr_Occurred()) SWIG_fail;
13696 }
13697 resultobj = SWIG_Py_Void();
13698 return resultobj;
13699 fail:
13700 return NULL;
13701 }
13702
13703
13704 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13705 PyObject *resultobj = 0;
13706 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13707 void *argp1 = 0 ;
13708 int res1 = 0 ;
13709 PyObject *swig_obj[1] ;
13710
13711 if (!args) SWIG_fail;
13712 swig_obj[0] = args;
13713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13714 if (!SWIG_IsOK(res1)) {
13715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13716 }
13717 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13718 {
13719 PyThreadState* __tstate = wxPyBeginAllowThreads();
13720 (arg1)->Redo();
13721 wxPyEndAllowThreads(__tstate);
13722 if (PyErr_Occurred()) SWIG_fail;
13723 }
13724 resultobj = SWIG_Py_Void();
13725 return resultobj;
13726 fail:
13727 return NULL;
13728 }
13729
13730
13731 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13732 PyObject *resultobj = 0;
13733 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13734 bool result;
13735 void *argp1 = 0 ;
13736 int res1 = 0 ;
13737 PyObject *swig_obj[1] ;
13738
13739 if (!args) SWIG_fail;
13740 swig_obj[0] = args;
13741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13742 if (!SWIG_IsOK(res1)) {
13743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13744 }
13745 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
13752 {
13753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13754 }
13755 return resultobj;
13756 fail:
13757 return NULL;
13758 }
13759
13760
13761 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13762 PyObject *resultobj = 0;
13763 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13764 bool result;
13765 void *argp1 = 0 ;
13766 int res1 = 0 ;
13767 PyObject *swig_obj[1] ;
13768
13769 if (!args) SWIG_fail;
13770 swig_obj[0] = args;
13771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13772 if (!SWIG_IsOK(res1)) {
13773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13774 }
13775 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13776 {
13777 PyThreadState* __tstate = wxPyBeginAllowThreads();
13778 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13779 wxPyEndAllowThreads(__tstate);
13780 if (PyErr_Occurred()) SWIG_fail;
13781 }
13782 {
13783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13784 }
13785 return resultobj;
13786 fail:
13787 return NULL;
13788 }
13789
13790
13791 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13792 PyObject *resultobj = 0;
13793 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13794 long arg2 ;
13795 void *argp1 = 0 ;
13796 int res1 = 0 ;
13797 long val2 ;
13798 int ecode2 = 0 ;
13799 PyObject * obj0 = 0 ;
13800 PyObject * obj1 = 0 ;
13801 char * kwnames[] = {
13802 (char *) "self",(char *) "pos", NULL
13803 };
13804
13805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13807 if (!SWIG_IsOK(res1)) {
13808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13809 }
13810 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13811 ecode2 = SWIG_AsVal_long(obj1, &val2);
13812 if (!SWIG_IsOK(ecode2)) {
13813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13814 }
13815 arg2 = static_cast< long >(val2);
13816 {
13817 PyThreadState* __tstate = wxPyBeginAllowThreads();
13818 (arg1)->SetInsertionPoint(arg2);
13819 wxPyEndAllowThreads(__tstate);
13820 if (PyErr_Occurred()) SWIG_fail;
13821 }
13822 resultobj = SWIG_Py_Void();
13823 return resultobj;
13824 fail:
13825 return NULL;
13826 }
13827
13828
13829 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13830 PyObject *resultobj = 0;
13831 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13832 void *argp1 = 0 ;
13833 int res1 = 0 ;
13834 PyObject *swig_obj[1] ;
13835
13836 if (!args) SWIG_fail;
13837 swig_obj[0] = args;
13838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13839 if (!SWIG_IsOK(res1)) {
13840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13841 }
13842 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13843 {
13844 PyThreadState* __tstate = wxPyBeginAllowThreads();
13845 (arg1)->SetInsertionPointEnd();
13846 wxPyEndAllowThreads(__tstate);
13847 if (PyErr_Occurred()) SWIG_fail;
13848 }
13849 resultobj = SWIG_Py_Void();
13850 return resultobj;
13851 fail:
13852 return NULL;
13853 }
13854
13855
13856 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13857 PyObject *resultobj = 0;
13858 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13859 long result;
13860 void *argp1 = 0 ;
13861 int res1 = 0 ;
13862 PyObject *swig_obj[1] ;
13863
13864 if (!args) SWIG_fail;
13865 swig_obj[0] = args;
13866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13867 if (!SWIG_IsOK(res1)) {
13868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13869 }
13870 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13871 {
13872 PyThreadState* __tstate = wxPyBeginAllowThreads();
13873 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13874 wxPyEndAllowThreads(__tstate);
13875 if (PyErr_Occurred()) SWIG_fail;
13876 }
13877 resultobj = SWIG_From_long(static_cast< long >(result));
13878 return resultobj;
13879 fail:
13880 return NULL;
13881 }
13882
13883
13884 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13885 PyObject *resultobj = 0;
13886 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13887 long result;
13888 void *argp1 = 0 ;
13889 int res1 = 0 ;
13890 PyObject *swig_obj[1] ;
13891
13892 if (!args) SWIG_fail;
13893 swig_obj[0] = args;
13894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13895 if (!SWIG_IsOK(res1)) {
13896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13897 }
13898 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13899 {
13900 PyThreadState* __tstate = wxPyBeginAllowThreads();
13901 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13902 wxPyEndAllowThreads(__tstate);
13903 if (PyErr_Occurred()) SWIG_fail;
13904 }
13905 resultobj = SWIG_From_long(static_cast< long >(result));
13906 return resultobj;
13907 fail:
13908 return NULL;
13909 }
13910
13911
13912 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13913 PyObject *resultobj = 0;
13914 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13915 long arg2 ;
13916 long arg3 ;
13917 void *argp1 = 0 ;
13918 int res1 = 0 ;
13919 long val2 ;
13920 int ecode2 = 0 ;
13921 long val3 ;
13922 int ecode3 = 0 ;
13923 PyObject * obj0 = 0 ;
13924 PyObject * obj1 = 0 ;
13925 PyObject * obj2 = 0 ;
13926 char * kwnames[] = {
13927 (char *) "self",(char *) "from",(char *) "to", NULL
13928 };
13929
13930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13932 if (!SWIG_IsOK(res1)) {
13933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13934 }
13935 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13936 ecode2 = SWIG_AsVal_long(obj1, &val2);
13937 if (!SWIG_IsOK(ecode2)) {
13938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13939 }
13940 arg2 = static_cast< long >(val2);
13941 ecode3 = SWIG_AsVal_long(obj2, &val3);
13942 if (!SWIG_IsOK(ecode3)) {
13943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13944 }
13945 arg3 = static_cast< long >(val3);
13946 {
13947 PyThreadState* __tstate = wxPyBeginAllowThreads();
13948 (arg1)->SetSelection(arg2,arg3);
13949 wxPyEndAllowThreads(__tstate);
13950 if (PyErr_Occurred()) SWIG_fail;
13951 }
13952 resultobj = SWIG_Py_Void();
13953 return resultobj;
13954 fail:
13955 return NULL;
13956 }
13957
13958
13959 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13960 PyObject *resultobj = 0;
13961 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13962 void *argp1 = 0 ;
13963 int res1 = 0 ;
13964 PyObject *swig_obj[1] ;
13965
13966 if (!args) SWIG_fail;
13967 swig_obj[0] = args;
13968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13969 if (!SWIG_IsOK(res1)) {
13970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13971 }
13972 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13973 {
13974 PyThreadState* __tstate = wxPyBeginAllowThreads();
13975 (arg1)->SelectAll();
13976 wxPyEndAllowThreads(__tstate);
13977 if (PyErr_Occurred()) SWIG_fail;
13978 }
13979 resultobj = SWIG_Py_Void();
13980 return resultobj;
13981 fail:
13982 return NULL;
13983 }
13984
13985
13986 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13987 PyObject *resultobj = 0;
13988 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13989 bool arg2 ;
13990 void *argp1 = 0 ;
13991 int res1 = 0 ;
13992 bool val2 ;
13993 int ecode2 = 0 ;
13994 PyObject * obj0 = 0 ;
13995 PyObject * obj1 = 0 ;
13996 char * kwnames[] = {
13997 (char *) "self",(char *) "editable", NULL
13998 };
13999
14000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
14001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14002 if (!SWIG_IsOK(res1)) {
14003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14004 }
14005 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14006 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14007 if (!SWIG_IsOK(ecode2)) {
14008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
14009 }
14010 arg2 = static_cast< bool >(val2);
14011 {
14012 PyThreadState* __tstate = wxPyBeginAllowThreads();
14013 (arg1)->SetEditable(arg2);
14014 wxPyEndAllowThreads(__tstate);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 }
14017 resultobj = SWIG_Py_Void();
14018 return resultobj;
14019 fail:
14020 return NULL;
14021 }
14022
14023
14024 SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14025 PyObject *resultobj = 0;
14026 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14027 bool arg2 ;
14028 void *argp1 = 0 ;
14029 int res1 = 0 ;
14030 bool val2 ;
14031 int ecode2 = 0 ;
14032 PyObject * obj0 = 0 ;
14033 PyObject * obj1 = 0 ;
14034 char * kwnames[] = {
14035 (char *) "self",(char *) "check", NULL
14036 };
14037
14038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
14039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14040 if (!SWIG_IsOK(res1)) {
14041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14042 }
14043 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14044 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14045 if (!SWIG_IsOK(ecode2)) {
14046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
14047 }
14048 arg2 = static_cast< bool >(val2);
14049 {
14050 PyThreadState* __tstate = wxPyBeginAllowThreads();
14051 wxTextCtrl_MacCheckSpelling(arg1,arg2);
14052 wxPyEndAllowThreads(__tstate);
14053 if (PyErr_Occurred()) SWIG_fail;
14054 }
14055 resultobj = SWIG_Py_Void();
14056 return resultobj;
14057 fail:
14058 return NULL;
14059 }
14060
14061
14062 SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14063 PyObject *resultobj = 0;
14064 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14065 void *argp1 = 0 ;
14066 int res1 = 0 ;
14067 PyObject *swig_obj[1] ;
14068
14069 if (!args) SWIG_fail;
14070 swig_obj[0] = args;
14071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14072 if (!SWIG_IsOK(res1)) {
14073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14074 }
14075 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14076 {
14077 PyThreadState* __tstate = wxPyBeginAllowThreads();
14078 (arg1)->SendTextUpdatedEvent();
14079 wxPyEndAllowThreads(__tstate);
14080 if (PyErr_Occurred()) SWIG_fail;
14081 }
14082 resultobj = SWIG_Py_Void();
14083 return resultobj;
14084 fail:
14085 return NULL;
14086 }
14087
14088
14089 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14090 PyObject *resultobj = 0;
14091 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14092 wxString *arg2 = 0 ;
14093 void *argp1 = 0 ;
14094 int res1 = 0 ;
14095 bool temp2 = false ;
14096 PyObject * obj0 = 0 ;
14097 PyObject * obj1 = 0 ;
14098 char * kwnames[] = {
14099 (char *) "self",(char *) "text", NULL
14100 };
14101
14102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
14103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14104 if (!SWIG_IsOK(res1)) {
14105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14106 }
14107 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14108 {
14109 arg2 = wxString_in_helper(obj1);
14110 if (arg2 == NULL) SWIG_fail;
14111 temp2 = true;
14112 }
14113 {
14114 PyThreadState* __tstate = wxPyBeginAllowThreads();
14115 wxTextCtrl_write(arg1,(wxString const &)*arg2);
14116 wxPyEndAllowThreads(__tstate);
14117 if (PyErr_Occurred()) SWIG_fail;
14118 }
14119 resultobj = SWIG_Py_Void();
14120 {
14121 if (temp2)
14122 delete arg2;
14123 }
14124 return resultobj;
14125 fail:
14126 {
14127 if (temp2)
14128 delete arg2;
14129 }
14130 return NULL;
14131 }
14132
14133
14134 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14135 PyObject *resultobj = 0;
14136 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14137 long arg2 ;
14138 long arg3 ;
14139 wxString result;
14140 void *argp1 = 0 ;
14141 int res1 = 0 ;
14142 long val2 ;
14143 int ecode2 = 0 ;
14144 long val3 ;
14145 int ecode3 = 0 ;
14146 PyObject * obj0 = 0 ;
14147 PyObject * obj1 = 0 ;
14148 PyObject * obj2 = 0 ;
14149 char * kwnames[] = {
14150 (char *) "self",(char *) "from",(char *) "to", NULL
14151 };
14152
14153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14155 if (!SWIG_IsOK(res1)) {
14156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14157 }
14158 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14159 ecode2 = SWIG_AsVal_long(obj1, &val2);
14160 if (!SWIG_IsOK(ecode2)) {
14161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
14162 }
14163 arg2 = static_cast< long >(val2);
14164 ecode3 = SWIG_AsVal_long(obj2, &val3);
14165 if (!SWIG_IsOK(ecode3)) {
14166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
14167 }
14168 arg3 = static_cast< long >(val3);
14169 {
14170 PyThreadState* __tstate = wxPyBeginAllowThreads();
14171 result = wxTextCtrl_GetString(arg1,arg2,arg3);
14172 wxPyEndAllowThreads(__tstate);
14173 if (PyErr_Occurred()) SWIG_fail;
14174 }
14175 {
14176 #if wxUSE_UNICODE
14177 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14178 #else
14179 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14180 #endif
14181 }
14182 return resultobj;
14183 fail:
14184 return NULL;
14185 }
14186
14187
14188 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14189 PyObject *resultobj = 0;
14190 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14191 SwigValueWrapper<wxVisualAttributes > result;
14192 int val1 ;
14193 int ecode1 = 0 ;
14194 PyObject * obj0 = 0 ;
14195 char * kwnames[] = {
14196 (char *) "variant", NULL
14197 };
14198
14199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14200 if (obj0) {
14201 ecode1 = SWIG_AsVal_int(obj0, &val1);
14202 if (!SWIG_IsOK(ecode1)) {
14203 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14204 }
14205 arg1 = static_cast< wxWindowVariant >(val1);
14206 }
14207 {
14208 if (!wxPyCheckForApp()) SWIG_fail;
14209 PyThreadState* __tstate = wxPyBeginAllowThreads();
14210 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14211 wxPyEndAllowThreads(__tstate);
14212 if (PyErr_Occurred()) SWIG_fail;
14213 }
14214 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14215 return resultobj;
14216 fail:
14217 return NULL;
14218 }
14219
14220
14221 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14222 PyObject *obj;
14223 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14224 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14225 return SWIG_Py_Void();
14226 }
14227
14228 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14229 return SWIG_Python_InitShadowInstance(args);
14230 }
14231
14232 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14233 PyObject *resultobj = 0;
14234 int arg1 ;
14235 wxMouseEvent *arg2 = 0 ;
14236 long arg3 ;
14237 long arg4 ;
14238 wxTextUrlEvent *result = 0 ;
14239 int val1 ;
14240 int ecode1 = 0 ;
14241 void *argp2 = 0 ;
14242 int res2 = 0 ;
14243 long val3 ;
14244 int ecode3 = 0 ;
14245 long val4 ;
14246 int ecode4 = 0 ;
14247 PyObject * obj0 = 0 ;
14248 PyObject * obj1 = 0 ;
14249 PyObject * obj2 = 0 ;
14250 PyObject * obj3 = 0 ;
14251 char * kwnames[] = {
14252 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14253 };
14254
14255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14256 ecode1 = SWIG_AsVal_int(obj0, &val1);
14257 if (!SWIG_IsOK(ecode1)) {
14258 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14259 }
14260 arg1 = static_cast< int >(val1);
14261 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14262 if (!SWIG_IsOK(res2)) {
14263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14264 }
14265 if (!argp2) {
14266 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14267 }
14268 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14269 ecode3 = SWIG_AsVal_long(obj2, &val3);
14270 if (!SWIG_IsOK(ecode3)) {
14271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14272 }
14273 arg3 = static_cast< long >(val3);
14274 ecode4 = SWIG_AsVal_long(obj3, &val4);
14275 if (!SWIG_IsOK(ecode4)) {
14276 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14277 }
14278 arg4 = static_cast< long >(val4);
14279 {
14280 PyThreadState* __tstate = wxPyBeginAllowThreads();
14281 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14282 wxPyEndAllowThreads(__tstate);
14283 if (PyErr_Occurred()) SWIG_fail;
14284 }
14285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14286 return resultobj;
14287 fail:
14288 return NULL;
14289 }
14290
14291
14292 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14293 PyObject *resultobj = 0;
14294 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14295 wxMouseEvent *result = 0 ;
14296 void *argp1 = 0 ;
14297 int res1 = 0 ;
14298 PyObject *swig_obj[1] ;
14299
14300 if (!args) SWIG_fail;
14301 swig_obj[0] = args;
14302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14303 if (!SWIG_IsOK(res1)) {
14304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14305 }
14306 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14307 {
14308 PyThreadState* __tstate = wxPyBeginAllowThreads();
14309 {
14310 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14311 result = (wxMouseEvent *) &_result_ref;
14312 }
14313 wxPyEndAllowThreads(__tstate);
14314 if (PyErr_Occurred()) SWIG_fail;
14315 }
14316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14317 return resultobj;
14318 fail:
14319 return NULL;
14320 }
14321
14322
14323 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14324 PyObject *resultobj = 0;
14325 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14326 long result;
14327 void *argp1 = 0 ;
14328 int res1 = 0 ;
14329 PyObject *swig_obj[1] ;
14330
14331 if (!args) SWIG_fail;
14332 swig_obj[0] = args;
14333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14334 if (!SWIG_IsOK(res1)) {
14335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14336 }
14337 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14338 {
14339 PyThreadState* __tstate = wxPyBeginAllowThreads();
14340 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 resultobj = SWIG_From_long(static_cast< long >(result));
14345 return resultobj;
14346 fail:
14347 return NULL;
14348 }
14349
14350
14351 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14352 PyObject *resultobj = 0;
14353 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14354 long result;
14355 void *argp1 = 0 ;
14356 int res1 = 0 ;
14357 PyObject *swig_obj[1] ;
14358
14359 if (!args) SWIG_fail;
14360 swig_obj[0] = args;
14361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14362 if (!SWIG_IsOK(res1)) {
14363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14364 }
14365 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14366 {
14367 PyThreadState* __tstate = wxPyBeginAllowThreads();
14368 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14369 wxPyEndAllowThreads(__tstate);
14370 if (PyErr_Occurred()) SWIG_fail;
14371 }
14372 resultobj = SWIG_From_long(static_cast< long >(result));
14373 return resultobj;
14374 fail:
14375 return NULL;
14376 }
14377
14378
14379 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14380 PyObject *obj;
14381 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14382 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14383 return SWIG_Py_Void();
14384 }
14385
14386 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14387 return SWIG_Python_InitShadowInstance(args);
14388 }
14389
14390 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14391 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14392 return 1;
14393 }
14394
14395
14396 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14397 PyObject *pyobj = 0;
14398
14399 {
14400 #if wxUSE_UNICODE
14401 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14402 #else
14403 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14404 #endif
14405 }
14406 return pyobj;
14407 }
14408
14409
14410 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14411 PyObject *resultobj = 0;
14412 wxWindow *arg1 = (wxWindow *) 0 ;
14413 int arg2 = (int) -1 ;
14414 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14415 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14416 wxSize const &arg4_defvalue = wxDefaultSize ;
14417 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14418 long arg5 = (long) wxSB_HORIZONTAL ;
14419 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14420 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14421 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14422 wxString *arg7 = (wxString *) &arg7_defvalue ;
14423 wxScrollBar *result = 0 ;
14424 void *argp1 = 0 ;
14425 int res1 = 0 ;
14426 int val2 ;
14427 int ecode2 = 0 ;
14428 wxPoint temp3 ;
14429 wxSize temp4 ;
14430 long val5 ;
14431 int ecode5 = 0 ;
14432 void *argp6 = 0 ;
14433 int res6 = 0 ;
14434 bool temp7 = false ;
14435 PyObject * obj0 = 0 ;
14436 PyObject * obj1 = 0 ;
14437 PyObject * obj2 = 0 ;
14438 PyObject * obj3 = 0 ;
14439 PyObject * obj4 = 0 ;
14440 PyObject * obj5 = 0 ;
14441 PyObject * obj6 = 0 ;
14442 char * kwnames[] = {
14443 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14444 };
14445
14446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14448 if (!SWIG_IsOK(res1)) {
14449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14450 }
14451 arg1 = reinterpret_cast< wxWindow * >(argp1);
14452 if (obj1) {
14453 ecode2 = SWIG_AsVal_int(obj1, &val2);
14454 if (!SWIG_IsOK(ecode2)) {
14455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14456 }
14457 arg2 = static_cast< int >(val2);
14458 }
14459 if (obj2) {
14460 {
14461 arg3 = &temp3;
14462 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14463 }
14464 }
14465 if (obj3) {
14466 {
14467 arg4 = &temp4;
14468 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14469 }
14470 }
14471 if (obj4) {
14472 ecode5 = SWIG_AsVal_long(obj4, &val5);
14473 if (!SWIG_IsOK(ecode5)) {
14474 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14475 }
14476 arg5 = static_cast< long >(val5);
14477 }
14478 if (obj5) {
14479 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14480 if (!SWIG_IsOK(res6)) {
14481 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14482 }
14483 if (!argp6) {
14484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14485 }
14486 arg6 = reinterpret_cast< wxValidator * >(argp6);
14487 }
14488 if (obj6) {
14489 {
14490 arg7 = wxString_in_helper(obj6);
14491 if (arg7 == NULL) SWIG_fail;
14492 temp7 = true;
14493 }
14494 }
14495 {
14496 if (!wxPyCheckForApp()) SWIG_fail;
14497 PyThreadState* __tstate = wxPyBeginAllowThreads();
14498 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14499 wxPyEndAllowThreads(__tstate);
14500 if (PyErr_Occurred()) SWIG_fail;
14501 }
14502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14503 {
14504 if (temp7)
14505 delete arg7;
14506 }
14507 return resultobj;
14508 fail:
14509 {
14510 if (temp7)
14511 delete arg7;
14512 }
14513 return NULL;
14514 }
14515
14516
14517 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14518 PyObject *resultobj = 0;
14519 wxScrollBar *result = 0 ;
14520
14521 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14522 {
14523 if (!wxPyCheckForApp()) SWIG_fail;
14524 PyThreadState* __tstate = wxPyBeginAllowThreads();
14525 result = (wxScrollBar *)new wxScrollBar();
14526 wxPyEndAllowThreads(__tstate);
14527 if (PyErr_Occurred()) SWIG_fail;
14528 }
14529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14530 return resultobj;
14531 fail:
14532 return NULL;
14533 }
14534
14535
14536 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14537 PyObject *resultobj = 0;
14538 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14539 wxWindow *arg2 = (wxWindow *) 0 ;
14540 int arg3 = (int) -1 ;
14541 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14542 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14543 wxSize const &arg5_defvalue = wxDefaultSize ;
14544 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14545 long arg6 = (long) wxSB_HORIZONTAL ;
14546 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14547 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14548 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14549 wxString *arg8 = (wxString *) &arg8_defvalue ;
14550 bool result;
14551 void *argp1 = 0 ;
14552 int res1 = 0 ;
14553 void *argp2 = 0 ;
14554 int res2 = 0 ;
14555 int val3 ;
14556 int ecode3 = 0 ;
14557 wxPoint temp4 ;
14558 wxSize temp5 ;
14559 long val6 ;
14560 int ecode6 = 0 ;
14561 void *argp7 = 0 ;
14562 int res7 = 0 ;
14563 bool temp8 = false ;
14564 PyObject * obj0 = 0 ;
14565 PyObject * obj1 = 0 ;
14566 PyObject * obj2 = 0 ;
14567 PyObject * obj3 = 0 ;
14568 PyObject * obj4 = 0 ;
14569 PyObject * obj5 = 0 ;
14570 PyObject * obj6 = 0 ;
14571 PyObject * obj7 = 0 ;
14572 char * kwnames[] = {
14573 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14574 };
14575
14576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14578 if (!SWIG_IsOK(res1)) {
14579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14580 }
14581 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14583 if (!SWIG_IsOK(res2)) {
14584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14585 }
14586 arg2 = reinterpret_cast< wxWindow * >(argp2);
14587 if (obj2) {
14588 ecode3 = SWIG_AsVal_int(obj2, &val3);
14589 if (!SWIG_IsOK(ecode3)) {
14590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14591 }
14592 arg3 = static_cast< int >(val3);
14593 }
14594 if (obj3) {
14595 {
14596 arg4 = &temp4;
14597 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14598 }
14599 }
14600 if (obj4) {
14601 {
14602 arg5 = &temp5;
14603 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14604 }
14605 }
14606 if (obj5) {
14607 ecode6 = SWIG_AsVal_long(obj5, &val6);
14608 if (!SWIG_IsOK(ecode6)) {
14609 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14610 }
14611 arg6 = static_cast< long >(val6);
14612 }
14613 if (obj6) {
14614 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14615 if (!SWIG_IsOK(res7)) {
14616 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14617 }
14618 if (!argp7) {
14619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14620 }
14621 arg7 = reinterpret_cast< wxValidator * >(argp7);
14622 }
14623 if (obj7) {
14624 {
14625 arg8 = wxString_in_helper(obj7);
14626 if (arg8 == NULL) SWIG_fail;
14627 temp8 = true;
14628 }
14629 }
14630 {
14631 PyThreadState* __tstate = wxPyBeginAllowThreads();
14632 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14633 wxPyEndAllowThreads(__tstate);
14634 if (PyErr_Occurred()) SWIG_fail;
14635 }
14636 {
14637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14638 }
14639 {
14640 if (temp8)
14641 delete arg8;
14642 }
14643 return resultobj;
14644 fail:
14645 {
14646 if (temp8)
14647 delete arg8;
14648 }
14649 return NULL;
14650 }
14651
14652
14653 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14654 PyObject *resultobj = 0;
14655 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14656 int result;
14657 void *argp1 = 0 ;
14658 int res1 = 0 ;
14659 PyObject *swig_obj[1] ;
14660
14661 if (!args) SWIG_fail;
14662 swig_obj[0] = args;
14663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14664 if (!SWIG_IsOK(res1)) {
14665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14666 }
14667 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14668 {
14669 PyThreadState* __tstate = wxPyBeginAllowThreads();
14670 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14671 wxPyEndAllowThreads(__tstate);
14672 if (PyErr_Occurred()) SWIG_fail;
14673 }
14674 resultobj = SWIG_From_int(static_cast< int >(result));
14675 return resultobj;
14676 fail:
14677 return NULL;
14678 }
14679
14680
14681 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14682 PyObject *resultobj = 0;
14683 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14684 int result;
14685 void *argp1 = 0 ;
14686 int res1 = 0 ;
14687 PyObject *swig_obj[1] ;
14688
14689 if (!args) SWIG_fail;
14690 swig_obj[0] = args;
14691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14692 if (!SWIG_IsOK(res1)) {
14693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14694 }
14695 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14696 {
14697 PyThreadState* __tstate = wxPyBeginAllowThreads();
14698 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14699 wxPyEndAllowThreads(__tstate);
14700 if (PyErr_Occurred()) SWIG_fail;
14701 }
14702 resultobj = SWIG_From_int(static_cast< int >(result));
14703 return resultobj;
14704 fail:
14705 return NULL;
14706 }
14707
14708
14709 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14710 PyObject *resultobj = 0;
14711 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14712 int result;
14713 void *argp1 = 0 ;
14714 int res1 = 0 ;
14715 PyObject *swig_obj[1] ;
14716
14717 if (!args) SWIG_fail;
14718 swig_obj[0] = args;
14719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14720 if (!SWIG_IsOK(res1)) {
14721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14722 }
14723 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14724 {
14725 PyThreadState* __tstate = wxPyBeginAllowThreads();
14726 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14727 wxPyEndAllowThreads(__tstate);
14728 if (PyErr_Occurred()) SWIG_fail;
14729 }
14730 resultobj = SWIG_From_int(static_cast< int >(result));
14731 return resultobj;
14732 fail:
14733 return NULL;
14734 }
14735
14736
14737 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14738 PyObject *resultobj = 0;
14739 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14740 int result;
14741 void *argp1 = 0 ;
14742 int res1 = 0 ;
14743 PyObject *swig_obj[1] ;
14744
14745 if (!args) SWIG_fail;
14746 swig_obj[0] = args;
14747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14748 if (!SWIG_IsOK(res1)) {
14749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14750 }
14751 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14752 {
14753 PyThreadState* __tstate = wxPyBeginAllowThreads();
14754 result = (int)((wxScrollBar const *)arg1)->GetRange();
14755 wxPyEndAllowThreads(__tstate);
14756 if (PyErr_Occurred()) SWIG_fail;
14757 }
14758 resultobj = SWIG_From_int(static_cast< int >(result));
14759 return resultobj;
14760 fail:
14761 return NULL;
14762 }
14763
14764
14765 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14766 PyObject *resultobj = 0;
14767 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14768 bool result;
14769 void *argp1 = 0 ;
14770 int res1 = 0 ;
14771 PyObject *swig_obj[1] ;
14772
14773 if (!args) SWIG_fail;
14774 swig_obj[0] = args;
14775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14776 if (!SWIG_IsOK(res1)) {
14777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14778 }
14779 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14780 {
14781 PyThreadState* __tstate = wxPyBeginAllowThreads();
14782 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14783 wxPyEndAllowThreads(__tstate);
14784 if (PyErr_Occurred()) SWIG_fail;
14785 }
14786 {
14787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14788 }
14789 return resultobj;
14790 fail:
14791 return NULL;
14792 }
14793
14794
14795 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14796 PyObject *resultobj = 0;
14797 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14798 int arg2 ;
14799 void *argp1 = 0 ;
14800 int res1 = 0 ;
14801 int val2 ;
14802 int ecode2 = 0 ;
14803 PyObject * obj0 = 0 ;
14804 PyObject * obj1 = 0 ;
14805 char * kwnames[] = {
14806 (char *) "self",(char *) "viewStart", NULL
14807 };
14808
14809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14811 if (!SWIG_IsOK(res1)) {
14812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14813 }
14814 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14815 ecode2 = SWIG_AsVal_int(obj1, &val2);
14816 if (!SWIG_IsOK(ecode2)) {
14817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14818 }
14819 arg2 = static_cast< int >(val2);
14820 {
14821 PyThreadState* __tstate = wxPyBeginAllowThreads();
14822 (arg1)->SetThumbPosition(arg2);
14823 wxPyEndAllowThreads(__tstate);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 }
14826 resultobj = SWIG_Py_Void();
14827 return resultobj;
14828 fail:
14829 return NULL;
14830 }
14831
14832
14833 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14834 PyObject *resultobj = 0;
14835 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14836 SwigValueWrapper<wxVisualAttributes > result;
14837 int val1 ;
14838 int ecode1 = 0 ;
14839 PyObject * obj0 = 0 ;
14840 char * kwnames[] = {
14841 (char *) "variant", NULL
14842 };
14843
14844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14845 if (obj0) {
14846 ecode1 = SWIG_AsVal_int(obj0, &val1);
14847 if (!SWIG_IsOK(ecode1)) {
14848 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14849 }
14850 arg1 = static_cast< wxWindowVariant >(val1);
14851 }
14852 {
14853 if (!wxPyCheckForApp()) SWIG_fail;
14854 PyThreadState* __tstate = wxPyBeginAllowThreads();
14855 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14856 wxPyEndAllowThreads(__tstate);
14857 if (PyErr_Occurred()) SWIG_fail;
14858 }
14859 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14860 return resultobj;
14861 fail:
14862 return NULL;
14863 }
14864
14865
14866 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14867 PyObject *obj;
14868 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14869 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14870 return SWIG_Py_Void();
14871 }
14872
14873 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14874 return SWIG_Python_InitShadowInstance(args);
14875 }
14876
14877 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14878 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14879 return 1;
14880 }
14881
14882
14883 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14884 PyObject *pyobj = 0;
14885
14886 {
14887 #if wxUSE_UNICODE
14888 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14889 #else
14890 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14891 #endif
14892 }
14893 return pyobj;
14894 }
14895
14896
14897 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14898 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14899 return 1;
14900 }
14901
14902
14903 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14904 PyObject *pyobj = 0;
14905
14906 {
14907 #if wxUSE_UNICODE
14908 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14909 #else
14910 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14911 #endif
14912 }
14913 return pyobj;
14914 }
14915
14916
14917 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14918 PyObject *resultobj = 0;
14919 wxWindow *arg1 = (wxWindow *) 0 ;
14920 int arg2 = (int) -1 ;
14921 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14922 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14923 wxSize const &arg4_defvalue = wxDefaultSize ;
14924 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14925 long arg5 = (long) wxSP_HORIZONTAL ;
14926 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14927 wxString *arg6 = (wxString *) &arg6_defvalue ;
14928 wxSpinButton *result = 0 ;
14929 void *argp1 = 0 ;
14930 int res1 = 0 ;
14931 int val2 ;
14932 int ecode2 = 0 ;
14933 wxPoint temp3 ;
14934 wxSize temp4 ;
14935 long val5 ;
14936 int ecode5 = 0 ;
14937 bool temp6 = false ;
14938 PyObject * obj0 = 0 ;
14939 PyObject * obj1 = 0 ;
14940 PyObject * obj2 = 0 ;
14941 PyObject * obj3 = 0 ;
14942 PyObject * obj4 = 0 ;
14943 PyObject * obj5 = 0 ;
14944 char * kwnames[] = {
14945 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14946 };
14947
14948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14950 if (!SWIG_IsOK(res1)) {
14951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14952 }
14953 arg1 = reinterpret_cast< wxWindow * >(argp1);
14954 if (obj1) {
14955 ecode2 = SWIG_AsVal_int(obj1, &val2);
14956 if (!SWIG_IsOK(ecode2)) {
14957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14958 }
14959 arg2 = static_cast< int >(val2);
14960 }
14961 if (obj2) {
14962 {
14963 arg3 = &temp3;
14964 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14965 }
14966 }
14967 if (obj3) {
14968 {
14969 arg4 = &temp4;
14970 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14971 }
14972 }
14973 if (obj4) {
14974 ecode5 = SWIG_AsVal_long(obj4, &val5);
14975 if (!SWIG_IsOK(ecode5)) {
14976 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14977 }
14978 arg5 = static_cast< long >(val5);
14979 }
14980 if (obj5) {
14981 {
14982 arg6 = wxString_in_helper(obj5);
14983 if (arg6 == NULL) SWIG_fail;
14984 temp6 = true;
14985 }
14986 }
14987 {
14988 if (!wxPyCheckForApp()) SWIG_fail;
14989 PyThreadState* __tstate = wxPyBeginAllowThreads();
14990 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14991 wxPyEndAllowThreads(__tstate);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 }
14994 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14995 {
14996 if (temp6)
14997 delete arg6;
14998 }
14999 return resultobj;
15000 fail:
15001 {
15002 if (temp6)
15003 delete arg6;
15004 }
15005 return NULL;
15006 }
15007
15008
15009 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15010 PyObject *resultobj = 0;
15011 wxSpinButton *result = 0 ;
15012
15013 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
15014 {
15015 if (!wxPyCheckForApp()) SWIG_fail;
15016 PyThreadState* __tstate = wxPyBeginAllowThreads();
15017 result = (wxSpinButton *)new wxSpinButton();
15018 wxPyEndAllowThreads(__tstate);
15019 if (PyErr_Occurred()) SWIG_fail;
15020 }
15021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
15022 return resultobj;
15023 fail:
15024 return NULL;
15025 }
15026
15027
15028 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15029 PyObject *resultobj = 0;
15030 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15031 wxWindow *arg2 = (wxWindow *) 0 ;
15032 int arg3 = (int) -1 ;
15033 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15034 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15035 wxSize const &arg5_defvalue = wxDefaultSize ;
15036 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15037 long arg6 = (long) wxSP_HORIZONTAL ;
15038 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
15039 wxString *arg7 = (wxString *) &arg7_defvalue ;
15040 bool result;
15041 void *argp1 = 0 ;
15042 int res1 = 0 ;
15043 void *argp2 = 0 ;
15044 int res2 = 0 ;
15045 int val3 ;
15046 int ecode3 = 0 ;
15047 wxPoint temp4 ;
15048 wxSize temp5 ;
15049 long val6 ;
15050 int ecode6 = 0 ;
15051 bool temp7 = false ;
15052 PyObject * obj0 = 0 ;
15053 PyObject * obj1 = 0 ;
15054 PyObject * obj2 = 0 ;
15055 PyObject * obj3 = 0 ;
15056 PyObject * obj4 = 0 ;
15057 PyObject * obj5 = 0 ;
15058 PyObject * obj6 = 0 ;
15059 char * kwnames[] = {
15060 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15061 };
15062
15063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15065 if (!SWIG_IsOK(res1)) {
15066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15067 }
15068 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15069 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15070 if (!SWIG_IsOK(res2)) {
15071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15072 }
15073 arg2 = reinterpret_cast< wxWindow * >(argp2);
15074 if (obj2) {
15075 ecode3 = SWIG_AsVal_int(obj2, &val3);
15076 if (!SWIG_IsOK(ecode3)) {
15077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
15078 }
15079 arg3 = static_cast< int >(val3);
15080 }
15081 if (obj3) {
15082 {
15083 arg4 = &temp4;
15084 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15085 }
15086 }
15087 if (obj4) {
15088 {
15089 arg5 = &temp5;
15090 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15091 }
15092 }
15093 if (obj5) {
15094 ecode6 = SWIG_AsVal_long(obj5, &val6);
15095 if (!SWIG_IsOK(ecode6)) {
15096 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
15097 }
15098 arg6 = static_cast< long >(val6);
15099 }
15100 if (obj6) {
15101 {
15102 arg7 = wxString_in_helper(obj6);
15103 if (arg7 == NULL) SWIG_fail;
15104 temp7 = true;
15105 }
15106 }
15107 {
15108 PyThreadState* __tstate = wxPyBeginAllowThreads();
15109 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15110 wxPyEndAllowThreads(__tstate);
15111 if (PyErr_Occurred()) SWIG_fail;
15112 }
15113 {
15114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15115 }
15116 {
15117 if (temp7)
15118 delete arg7;
15119 }
15120 return resultobj;
15121 fail:
15122 {
15123 if (temp7)
15124 delete arg7;
15125 }
15126 return NULL;
15127 }
15128
15129
15130 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15131 PyObject *resultobj = 0;
15132 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15133 int result;
15134 void *argp1 = 0 ;
15135 int res1 = 0 ;
15136 PyObject *swig_obj[1] ;
15137
15138 if (!args) SWIG_fail;
15139 swig_obj[0] = args;
15140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15141 if (!SWIG_IsOK(res1)) {
15142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15143 }
15144 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15145 {
15146 PyThreadState* __tstate = wxPyBeginAllowThreads();
15147 result = (int)((wxSpinButton const *)arg1)->GetValue();
15148 wxPyEndAllowThreads(__tstate);
15149 if (PyErr_Occurred()) SWIG_fail;
15150 }
15151 resultobj = SWIG_From_int(static_cast< int >(result));
15152 return resultobj;
15153 fail:
15154 return NULL;
15155 }
15156
15157
15158 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15159 PyObject *resultobj = 0;
15160 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15161 int result;
15162 void *argp1 = 0 ;
15163 int res1 = 0 ;
15164 PyObject *swig_obj[1] ;
15165
15166 if (!args) SWIG_fail;
15167 swig_obj[0] = args;
15168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15169 if (!SWIG_IsOK(res1)) {
15170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15171 }
15172 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15173 {
15174 PyThreadState* __tstate = wxPyBeginAllowThreads();
15175 result = (int)((wxSpinButton const *)arg1)->GetMin();
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 resultobj = SWIG_From_int(static_cast< int >(result));
15180 return resultobj;
15181 fail:
15182 return NULL;
15183 }
15184
15185
15186 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15187 PyObject *resultobj = 0;
15188 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15189 int result;
15190 void *argp1 = 0 ;
15191 int res1 = 0 ;
15192 PyObject *swig_obj[1] ;
15193
15194 if (!args) SWIG_fail;
15195 swig_obj[0] = args;
15196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15197 if (!SWIG_IsOK(res1)) {
15198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15199 }
15200 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15201 {
15202 PyThreadState* __tstate = wxPyBeginAllowThreads();
15203 result = (int)((wxSpinButton const *)arg1)->GetMax();
15204 wxPyEndAllowThreads(__tstate);
15205 if (PyErr_Occurred()) SWIG_fail;
15206 }
15207 resultobj = SWIG_From_int(static_cast< int >(result));
15208 return resultobj;
15209 fail:
15210 return NULL;
15211 }
15212
15213
15214 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15215 PyObject *resultobj = 0;
15216 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15217 int arg2 ;
15218 void *argp1 = 0 ;
15219 int res1 = 0 ;
15220 int val2 ;
15221 int ecode2 = 0 ;
15222 PyObject * obj0 = 0 ;
15223 PyObject * obj1 = 0 ;
15224 char * kwnames[] = {
15225 (char *) "self",(char *) "val", NULL
15226 };
15227
15228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15230 if (!SWIG_IsOK(res1)) {
15231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15232 }
15233 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15234 ecode2 = SWIG_AsVal_int(obj1, &val2);
15235 if (!SWIG_IsOK(ecode2)) {
15236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15237 }
15238 arg2 = static_cast< int >(val2);
15239 {
15240 PyThreadState* __tstate = wxPyBeginAllowThreads();
15241 (arg1)->SetValue(arg2);
15242 wxPyEndAllowThreads(__tstate);
15243 if (PyErr_Occurred()) SWIG_fail;
15244 }
15245 resultobj = SWIG_Py_Void();
15246 return resultobj;
15247 fail:
15248 return NULL;
15249 }
15250
15251
15252 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15253 PyObject *resultobj = 0;
15254 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15255 int arg2 ;
15256 void *argp1 = 0 ;
15257 int res1 = 0 ;
15258 int val2 ;
15259 int ecode2 = 0 ;
15260 PyObject * obj0 = 0 ;
15261 PyObject * obj1 = 0 ;
15262 char * kwnames[] = {
15263 (char *) "self",(char *) "minVal", NULL
15264 };
15265
15266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15268 if (!SWIG_IsOK(res1)) {
15269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15270 }
15271 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15272 ecode2 = SWIG_AsVal_int(obj1, &val2);
15273 if (!SWIG_IsOK(ecode2)) {
15274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15275 }
15276 arg2 = static_cast< int >(val2);
15277 {
15278 PyThreadState* __tstate = wxPyBeginAllowThreads();
15279 (arg1)->SetMin(arg2);
15280 wxPyEndAllowThreads(__tstate);
15281 if (PyErr_Occurred()) SWIG_fail;
15282 }
15283 resultobj = SWIG_Py_Void();
15284 return resultobj;
15285 fail:
15286 return NULL;
15287 }
15288
15289
15290 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15291 PyObject *resultobj = 0;
15292 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15293 int arg2 ;
15294 void *argp1 = 0 ;
15295 int res1 = 0 ;
15296 int val2 ;
15297 int ecode2 = 0 ;
15298 PyObject * obj0 = 0 ;
15299 PyObject * obj1 = 0 ;
15300 char * kwnames[] = {
15301 (char *) "self",(char *) "maxVal", NULL
15302 };
15303
15304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15306 if (!SWIG_IsOK(res1)) {
15307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15308 }
15309 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15310 ecode2 = SWIG_AsVal_int(obj1, &val2);
15311 if (!SWIG_IsOK(ecode2)) {
15312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15313 }
15314 arg2 = static_cast< int >(val2);
15315 {
15316 PyThreadState* __tstate = wxPyBeginAllowThreads();
15317 (arg1)->SetMax(arg2);
15318 wxPyEndAllowThreads(__tstate);
15319 if (PyErr_Occurred()) SWIG_fail;
15320 }
15321 resultobj = SWIG_Py_Void();
15322 return resultobj;
15323 fail:
15324 return NULL;
15325 }
15326
15327
15328 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15329 PyObject *resultobj = 0;
15330 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15331 int arg2 ;
15332 int arg3 ;
15333 void *argp1 = 0 ;
15334 int res1 = 0 ;
15335 int val2 ;
15336 int ecode2 = 0 ;
15337 int val3 ;
15338 int ecode3 = 0 ;
15339 PyObject * obj0 = 0 ;
15340 PyObject * obj1 = 0 ;
15341 PyObject * obj2 = 0 ;
15342 char * kwnames[] = {
15343 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15344 };
15345
15346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15348 if (!SWIG_IsOK(res1)) {
15349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15350 }
15351 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15352 ecode2 = SWIG_AsVal_int(obj1, &val2);
15353 if (!SWIG_IsOK(ecode2)) {
15354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15355 }
15356 arg2 = static_cast< int >(val2);
15357 ecode3 = SWIG_AsVal_int(obj2, &val3);
15358 if (!SWIG_IsOK(ecode3)) {
15359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15360 }
15361 arg3 = static_cast< int >(val3);
15362 {
15363 PyThreadState* __tstate = wxPyBeginAllowThreads();
15364 (arg1)->SetRange(arg2,arg3);
15365 wxPyEndAllowThreads(__tstate);
15366 if (PyErr_Occurred()) SWIG_fail;
15367 }
15368 resultobj = SWIG_Py_Void();
15369 return resultobj;
15370 fail:
15371 return NULL;
15372 }
15373
15374
15375 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15376 PyObject *resultobj = 0;
15377 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15378 bool result;
15379 void *argp1 = 0 ;
15380 int res1 = 0 ;
15381 PyObject *swig_obj[1] ;
15382
15383 if (!args) SWIG_fail;
15384 swig_obj[0] = args;
15385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15386 if (!SWIG_IsOK(res1)) {
15387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15388 }
15389 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15390 {
15391 PyThreadState* __tstate = wxPyBeginAllowThreads();
15392 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15393 wxPyEndAllowThreads(__tstate);
15394 if (PyErr_Occurred()) SWIG_fail;
15395 }
15396 {
15397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15398 }
15399 return resultobj;
15400 fail:
15401 return NULL;
15402 }
15403
15404
15405 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15406 PyObject *resultobj = 0;
15407 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15408 SwigValueWrapper<wxVisualAttributes > result;
15409 int val1 ;
15410 int ecode1 = 0 ;
15411 PyObject * obj0 = 0 ;
15412 char * kwnames[] = {
15413 (char *) "variant", NULL
15414 };
15415
15416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15417 if (obj0) {
15418 ecode1 = SWIG_AsVal_int(obj0, &val1);
15419 if (!SWIG_IsOK(ecode1)) {
15420 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15421 }
15422 arg1 = static_cast< wxWindowVariant >(val1);
15423 }
15424 {
15425 if (!wxPyCheckForApp()) SWIG_fail;
15426 PyThreadState* __tstate = wxPyBeginAllowThreads();
15427 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15428 wxPyEndAllowThreads(__tstate);
15429 if (PyErr_Occurred()) SWIG_fail;
15430 }
15431 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15432 return resultobj;
15433 fail:
15434 return NULL;
15435 }
15436
15437
15438 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15439 PyObject *obj;
15440 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15441 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15442 return SWIG_Py_Void();
15443 }
15444
15445 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15446 return SWIG_Python_InitShadowInstance(args);
15447 }
15448
15449 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15450 PyObject *resultobj = 0;
15451 wxWindow *arg1 = (wxWindow *) 0 ;
15452 int arg2 = (int) -1 ;
15453 wxString const &arg3_defvalue = wxPyEmptyString ;
15454 wxString *arg3 = (wxString *) &arg3_defvalue ;
15455 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15456 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15457 wxSize const &arg5_defvalue = wxDefaultSize ;
15458 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15459 long arg6 = (long) wxSP_ARROW_KEYS ;
15460 int arg7 = (int) 0 ;
15461 int arg8 = (int) 100 ;
15462 int arg9 = (int) 0 ;
15463 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15464 wxString *arg10 = (wxString *) &arg10_defvalue ;
15465 wxSpinCtrl *result = 0 ;
15466 void *argp1 = 0 ;
15467 int res1 = 0 ;
15468 int val2 ;
15469 int ecode2 = 0 ;
15470 bool temp3 = false ;
15471 wxPoint temp4 ;
15472 wxSize temp5 ;
15473 long val6 ;
15474 int ecode6 = 0 ;
15475 int val7 ;
15476 int ecode7 = 0 ;
15477 int val8 ;
15478 int ecode8 = 0 ;
15479 int val9 ;
15480 int ecode9 = 0 ;
15481 bool temp10 = false ;
15482 PyObject * obj0 = 0 ;
15483 PyObject * obj1 = 0 ;
15484 PyObject * obj2 = 0 ;
15485 PyObject * obj3 = 0 ;
15486 PyObject * obj4 = 0 ;
15487 PyObject * obj5 = 0 ;
15488 PyObject * obj6 = 0 ;
15489 PyObject * obj7 = 0 ;
15490 PyObject * obj8 = 0 ;
15491 PyObject * obj9 = 0 ;
15492 char * kwnames[] = {
15493 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15494 };
15495
15496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15498 if (!SWIG_IsOK(res1)) {
15499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15500 }
15501 arg1 = reinterpret_cast< wxWindow * >(argp1);
15502 if (obj1) {
15503 ecode2 = SWIG_AsVal_int(obj1, &val2);
15504 if (!SWIG_IsOK(ecode2)) {
15505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15506 }
15507 arg2 = static_cast< int >(val2);
15508 }
15509 if (obj2) {
15510 {
15511 arg3 = wxString_in_helper(obj2);
15512 if (arg3 == NULL) SWIG_fail;
15513 temp3 = true;
15514 }
15515 }
15516 if (obj3) {
15517 {
15518 arg4 = &temp4;
15519 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15520 }
15521 }
15522 if (obj4) {
15523 {
15524 arg5 = &temp5;
15525 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15526 }
15527 }
15528 if (obj5) {
15529 ecode6 = SWIG_AsVal_long(obj5, &val6);
15530 if (!SWIG_IsOK(ecode6)) {
15531 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15532 }
15533 arg6 = static_cast< long >(val6);
15534 }
15535 if (obj6) {
15536 ecode7 = SWIG_AsVal_int(obj6, &val7);
15537 if (!SWIG_IsOK(ecode7)) {
15538 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15539 }
15540 arg7 = static_cast< int >(val7);
15541 }
15542 if (obj7) {
15543 ecode8 = SWIG_AsVal_int(obj7, &val8);
15544 if (!SWIG_IsOK(ecode8)) {
15545 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15546 }
15547 arg8 = static_cast< int >(val8);
15548 }
15549 if (obj8) {
15550 ecode9 = SWIG_AsVal_int(obj8, &val9);
15551 if (!SWIG_IsOK(ecode9)) {
15552 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15553 }
15554 arg9 = static_cast< int >(val9);
15555 }
15556 if (obj9) {
15557 {
15558 arg10 = wxString_in_helper(obj9);
15559 if (arg10 == NULL) SWIG_fail;
15560 temp10 = true;
15561 }
15562 }
15563 {
15564 if (!wxPyCheckForApp()) SWIG_fail;
15565 PyThreadState* __tstate = wxPyBeginAllowThreads();
15566 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15567 wxPyEndAllowThreads(__tstate);
15568 if (PyErr_Occurred()) SWIG_fail;
15569 }
15570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15571 {
15572 if (temp3)
15573 delete arg3;
15574 }
15575 {
15576 if (temp10)
15577 delete arg10;
15578 }
15579 return resultobj;
15580 fail:
15581 {
15582 if (temp3)
15583 delete arg3;
15584 }
15585 {
15586 if (temp10)
15587 delete arg10;
15588 }
15589 return NULL;
15590 }
15591
15592
15593 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15594 PyObject *resultobj = 0;
15595 wxSpinCtrl *result = 0 ;
15596
15597 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15598 {
15599 if (!wxPyCheckForApp()) SWIG_fail;
15600 PyThreadState* __tstate = wxPyBeginAllowThreads();
15601 result = (wxSpinCtrl *)new wxSpinCtrl();
15602 wxPyEndAllowThreads(__tstate);
15603 if (PyErr_Occurred()) SWIG_fail;
15604 }
15605 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15606 return resultobj;
15607 fail:
15608 return NULL;
15609 }
15610
15611
15612 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15613 PyObject *resultobj = 0;
15614 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15615 wxWindow *arg2 = (wxWindow *) 0 ;
15616 int arg3 = (int) -1 ;
15617 wxString const &arg4_defvalue = wxPyEmptyString ;
15618 wxString *arg4 = (wxString *) &arg4_defvalue ;
15619 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15620 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15621 wxSize const &arg6_defvalue = wxDefaultSize ;
15622 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15623 long arg7 = (long) wxSP_ARROW_KEYS ;
15624 int arg8 = (int) 0 ;
15625 int arg9 = (int) 100 ;
15626 int arg10 = (int) 0 ;
15627 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15628 wxString *arg11 = (wxString *) &arg11_defvalue ;
15629 bool result;
15630 void *argp1 = 0 ;
15631 int res1 = 0 ;
15632 void *argp2 = 0 ;
15633 int res2 = 0 ;
15634 int val3 ;
15635 int ecode3 = 0 ;
15636 bool temp4 = false ;
15637 wxPoint temp5 ;
15638 wxSize temp6 ;
15639 long val7 ;
15640 int ecode7 = 0 ;
15641 int val8 ;
15642 int ecode8 = 0 ;
15643 int val9 ;
15644 int ecode9 = 0 ;
15645 int val10 ;
15646 int ecode10 = 0 ;
15647 bool temp11 = false ;
15648 PyObject * obj0 = 0 ;
15649 PyObject * obj1 = 0 ;
15650 PyObject * obj2 = 0 ;
15651 PyObject * obj3 = 0 ;
15652 PyObject * obj4 = 0 ;
15653 PyObject * obj5 = 0 ;
15654 PyObject * obj6 = 0 ;
15655 PyObject * obj7 = 0 ;
15656 PyObject * obj8 = 0 ;
15657 PyObject * obj9 = 0 ;
15658 PyObject * obj10 = 0 ;
15659 char * kwnames[] = {
15660 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15661 };
15662
15663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15665 if (!SWIG_IsOK(res1)) {
15666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15667 }
15668 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15669 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15670 if (!SWIG_IsOK(res2)) {
15671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15672 }
15673 arg2 = reinterpret_cast< wxWindow * >(argp2);
15674 if (obj2) {
15675 ecode3 = SWIG_AsVal_int(obj2, &val3);
15676 if (!SWIG_IsOK(ecode3)) {
15677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15678 }
15679 arg3 = static_cast< int >(val3);
15680 }
15681 if (obj3) {
15682 {
15683 arg4 = wxString_in_helper(obj3);
15684 if (arg4 == NULL) SWIG_fail;
15685 temp4 = true;
15686 }
15687 }
15688 if (obj4) {
15689 {
15690 arg5 = &temp5;
15691 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15692 }
15693 }
15694 if (obj5) {
15695 {
15696 arg6 = &temp6;
15697 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15698 }
15699 }
15700 if (obj6) {
15701 ecode7 = SWIG_AsVal_long(obj6, &val7);
15702 if (!SWIG_IsOK(ecode7)) {
15703 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15704 }
15705 arg7 = static_cast< long >(val7);
15706 }
15707 if (obj7) {
15708 ecode8 = SWIG_AsVal_int(obj7, &val8);
15709 if (!SWIG_IsOK(ecode8)) {
15710 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15711 }
15712 arg8 = static_cast< int >(val8);
15713 }
15714 if (obj8) {
15715 ecode9 = SWIG_AsVal_int(obj8, &val9);
15716 if (!SWIG_IsOK(ecode9)) {
15717 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15718 }
15719 arg9 = static_cast< int >(val9);
15720 }
15721 if (obj9) {
15722 ecode10 = SWIG_AsVal_int(obj9, &val10);
15723 if (!SWIG_IsOK(ecode10)) {
15724 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15725 }
15726 arg10 = static_cast< int >(val10);
15727 }
15728 if (obj10) {
15729 {
15730 arg11 = wxString_in_helper(obj10);
15731 if (arg11 == NULL) SWIG_fail;
15732 temp11 = true;
15733 }
15734 }
15735 {
15736 PyThreadState* __tstate = wxPyBeginAllowThreads();
15737 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15738 wxPyEndAllowThreads(__tstate);
15739 if (PyErr_Occurred()) SWIG_fail;
15740 }
15741 {
15742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15743 }
15744 {
15745 if (temp4)
15746 delete arg4;
15747 }
15748 {
15749 if (temp11)
15750 delete arg11;
15751 }
15752 return resultobj;
15753 fail:
15754 {
15755 if (temp4)
15756 delete arg4;
15757 }
15758 {
15759 if (temp11)
15760 delete arg11;
15761 }
15762 return NULL;
15763 }
15764
15765
15766 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15767 PyObject *resultobj = 0;
15768 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15769 int result;
15770 void *argp1 = 0 ;
15771 int res1 = 0 ;
15772 PyObject *swig_obj[1] ;
15773
15774 if (!args) SWIG_fail;
15775 swig_obj[0] = args;
15776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15777 if (!SWIG_IsOK(res1)) {
15778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15779 }
15780 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15781 {
15782 PyThreadState* __tstate = wxPyBeginAllowThreads();
15783 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15784 wxPyEndAllowThreads(__tstate);
15785 if (PyErr_Occurred()) SWIG_fail;
15786 }
15787 resultobj = SWIG_From_int(static_cast< int >(result));
15788 return resultobj;
15789 fail:
15790 return NULL;
15791 }
15792
15793
15794 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15795 PyObject *resultobj = 0;
15796 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15797 int arg2 ;
15798 void *argp1 = 0 ;
15799 int res1 = 0 ;
15800 int val2 ;
15801 int ecode2 = 0 ;
15802 PyObject * obj0 = 0 ;
15803 PyObject * obj1 = 0 ;
15804 char * kwnames[] = {
15805 (char *) "self",(char *) "value", NULL
15806 };
15807
15808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15810 if (!SWIG_IsOK(res1)) {
15811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15812 }
15813 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15814 ecode2 = SWIG_AsVal_int(obj1, &val2);
15815 if (!SWIG_IsOK(ecode2)) {
15816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15817 }
15818 arg2 = static_cast< int >(val2);
15819 {
15820 PyThreadState* __tstate = wxPyBeginAllowThreads();
15821 (arg1)->SetValue(arg2);
15822 wxPyEndAllowThreads(__tstate);
15823 if (PyErr_Occurred()) SWIG_fail;
15824 }
15825 resultobj = SWIG_Py_Void();
15826 return resultobj;
15827 fail:
15828 return NULL;
15829 }
15830
15831
15832 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15833 PyObject *resultobj = 0;
15834 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15835 wxString *arg2 = 0 ;
15836 void *argp1 = 0 ;
15837 int res1 = 0 ;
15838 bool temp2 = false ;
15839 PyObject * obj0 = 0 ;
15840 PyObject * obj1 = 0 ;
15841 char * kwnames[] = {
15842 (char *) "self",(char *) "text", NULL
15843 };
15844
15845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15847 if (!SWIG_IsOK(res1)) {
15848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15849 }
15850 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15851 {
15852 arg2 = wxString_in_helper(obj1);
15853 if (arg2 == NULL) SWIG_fail;
15854 temp2 = true;
15855 }
15856 {
15857 PyThreadState* __tstate = wxPyBeginAllowThreads();
15858 (arg1)->SetValue((wxString const &)*arg2);
15859 wxPyEndAllowThreads(__tstate);
15860 if (PyErr_Occurred()) SWIG_fail;
15861 }
15862 resultobj = SWIG_Py_Void();
15863 {
15864 if (temp2)
15865 delete arg2;
15866 }
15867 return resultobj;
15868 fail:
15869 {
15870 if (temp2)
15871 delete arg2;
15872 }
15873 return NULL;
15874 }
15875
15876
15877 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15878 PyObject *resultobj = 0;
15879 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15880 int arg2 ;
15881 int arg3 ;
15882 void *argp1 = 0 ;
15883 int res1 = 0 ;
15884 int val2 ;
15885 int ecode2 = 0 ;
15886 int val3 ;
15887 int ecode3 = 0 ;
15888 PyObject * obj0 = 0 ;
15889 PyObject * obj1 = 0 ;
15890 PyObject * obj2 = 0 ;
15891 char * kwnames[] = {
15892 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15893 };
15894
15895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15897 if (!SWIG_IsOK(res1)) {
15898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15899 }
15900 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15901 ecode2 = SWIG_AsVal_int(obj1, &val2);
15902 if (!SWIG_IsOK(ecode2)) {
15903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15904 }
15905 arg2 = static_cast< int >(val2);
15906 ecode3 = SWIG_AsVal_int(obj2, &val3);
15907 if (!SWIG_IsOK(ecode3)) {
15908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15909 }
15910 arg3 = static_cast< int >(val3);
15911 {
15912 PyThreadState* __tstate = wxPyBeginAllowThreads();
15913 (arg1)->SetRange(arg2,arg3);
15914 wxPyEndAllowThreads(__tstate);
15915 if (PyErr_Occurred()) SWIG_fail;
15916 }
15917 resultobj = SWIG_Py_Void();
15918 return resultobj;
15919 fail:
15920 return NULL;
15921 }
15922
15923
15924 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15925 PyObject *resultobj = 0;
15926 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15927 int result;
15928 void *argp1 = 0 ;
15929 int res1 = 0 ;
15930 PyObject *swig_obj[1] ;
15931
15932 if (!args) SWIG_fail;
15933 swig_obj[0] = args;
15934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15935 if (!SWIG_IsOK(res1)) {
15936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15937 }
15938 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15939 {
15940 PyThreadState* __tstate = wxPyBeginAllowThreads();
15941 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15942 wxPyEndAllowThreads(__tstate);
15943 if (PyErr_Occurred()) SWIG_fail;
15944 }
15945 resultobj = SWIG_From_int(static_cast< int >(result));
15946 return resultobj;
15947 fail:
15948 return NULL;
15949 }
15950
15951
15952 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15953 PyObject *resultobj = 0;
15954 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15955 int result;
15956 void *argp1 = 0 ;
15957 int res1 = 0 ;
15958 PyObject *swig_obj[1] ;
15959
15960 if (!args) SWIG_fail;
15961 swig_obj[0] = args;
15962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15963 if (!SWIG_IsOK(res1)) {
15964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15965 }
15966 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15967 {
15968 PyThreadState* __tstate = wxPyBeginAllowThreads();
15969 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15970 wxPyEndAllowThreads(__tstate);
15971 if (PyErr_Occurred()) SWIG_fail;
15972 }
15973 resultobj = SWIG_From_int(static_cast< int >(result));
15974 return resultobj;
15975 fail:
15976 return NULL;
15977 }
15978
15979
15980 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15981 PyObject *resultobj = 0;
15982 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15983 long arg2 ;
15984 long arg3 ;
15985 void *argp1 = 0 ;
15986 int res1 = 0 ;
15987 long val2 ;
15988 int ecode2 = 0 ;
15989 long val3 ;
15990 int ecode3 = 0 ;
15991 PyObject * obj0 = 0 ;
15992 PyObject * obj1 = 0 ;
15993 PyObject * obj2 = 0 ;
15994 char * kwnames[] = {
15995 (char *) "self",(char *) "from",(char *) "to", NULL
15996 };
15997
15998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
16000 if (!SWIG_IsOK(res1)) {
16001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
16002 }
16003 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
16004 ecode2 = SWIG_AsVal_long(obj1, &val2);
16005 if (!SWIG_IsOK(ecode2)) {
16006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
16007 }
16008 arg2 = static_cast< long >(val2);
16009 ecode3 = SWIG_AsVal_long(obj2, &val3);
16010 if (!SWIG_IsOK(ecode3)) {
16011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
16012 }
16013 arg3 = static_cast< long >(val3);
16014 {
16015 PyThreadState* __tstate = wxPyBeginAllowThreads();
16016 (arg1)->SetSelection(arg2,arg3);
16017 wxPyEndAllowThreads(__tstate);
16018 if (PyErr_Occurred()) SWIG_fail;
16019 }
16020 resultobj = SWIG_Py_Void();
16021 return resultobj;
16022 fail:
16023 return NULL;
16024 }
16025
16026
16027 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16028 PyObject *resultobj = 0;
16029 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16030 SwigValueWrapper<wxVisualAttributes > result;
16031 int val1 ;
16032 int ecode1 = 0 ;
16033 PyObject * obj0 = 0 ;
16034 char * kwnames[] = {
16035 (char *) "variant", NULL
16036 };
16037
16038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16039 if (obj0) {
16040 ecode1 = SWIG_AsVal_int(obj0, &val1);
16041 if (!SWIG_IsOK(ecode1)) {
16042 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16043 }
16044 arg1 = static_cast< wxWindowVariant >(val1);
16045 }
16046 {
16047 if (!wxPyCheckForApp()) SWIG_fail;
16048 PyThreadState* __tstate = wxPyBeginAllowThreads();
16049 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
16050 wxPyEndAllowThreads(__tstate);
16051 if (PyErr_Occurred()) SWIG_fail;
16052 }
16053 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16054 return resultobj;
16055 fail:
16056 return NULL;
16057 }
16058
16059
16060 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16061 PyObject *obj;
16062 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16063 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
16064 return SWIG_Py_Void();
16065 }
16066
16067 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16068 return SWIG_Python_InitShadowInstance(args);
16069 }
16070
16071 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16072 PyObject *resultobj = 0;
16073 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16074 int arg2 = (int) 0 ;
16075 wxSpinEvent *result = 0 ;
16076 int val1 ;
16077 int ecode1 = 0 ;
16078 int val2 ;
16079 int ecode2 = 0 ;
16080 PyObject * obj0 = 0 ;
16081 PyObject * obj1 = 0 ;
16082 char * kwnames[] = {
16083 (char *) "commandType",(char *) "winid", NULL
16084 };
16085
16086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
16087 if (obj0) {
16088 ecode1 = SWIG_AsVal_int(obj0, &val1);
16089 if (!SWIG_IsOK(ecode1)) {
16090 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
16091 }
16092 arg1 = static_cast< wxEventType >(val1);
16093 }
16094 if (obj1) {
16095 ecode2 = SWIG_AsVal_int(obj1, &val2);
16096 if (!SWIG_IsOK(ecode2)) {
16097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
16098 }
16099 arg2 = static_cast< int >(val2);
16100 }
16101 {
16102 PyThreadState* __tstate = wxPyBeginAllowThreads();
16103 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
16104 wxPyEndAllowThreads(__tstate);
16105 if (PyErr_Occurred()) SWIG_fail;
16106 }
16107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
16108 return resultobj;
16109 fail:
16110 return NULL;
16111 }
16112
16113
16114 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16115 PyObject *resultobj = 0;
16116 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16117 int result;
16118 void *argp1 = 0 ;
16119 int res1 = 0 ;
16120 PyObject *swig_obj[1] ;
16121
16122 if (!args) SWIG_fail;
16123 swig_obj[0] = args;
16124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16125 if (!SWIG_IsOK(res1)) {
16126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
16127 }
16128 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16129 {
16130 PyThreadState* __tstate = wxPyBeginAllowThreads();
16131 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
16132 wxPyEndAllowThreads(__tstate);
16133 if (PyErr_Occurred()) SWIG_fail;
16134 }
16135 resultobj = SWIG_From_int(static_cast< int >(result));
16136 return resultobj;
16137 fail:
16138 return NULL;
16139 }
16140
16141
16142 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16143 PyObject *resultobj = 0;
16144 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16145 int arg2 ;
16146 void *argp1 = 0 ;
16147 int res1 = 0 ;
16148 int val2 ;
16149 int ecode2 = 0 ;
16150 PyObject * obj0 = 0 ;
16151 PyObject * obj1 = 0 ;
16152 char * kwnames[] = {
16153 (char *) "self",(char *) "pos", NULL
16154 };
16155
16156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16158 if (!SWIG_IsOK(res1)) {
16159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
16160 }
16161 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16162 ecode2 = SWIG_AsVal_int(obj1, &val2);
16163 if (!SWIG_IsOK(ecode2)) {
16164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
16165 }
16166 arg2 = static_cast< int >(val2);
16167 {
16168 PyThreadState* __tstate = wxPyBeginAllowThreads();
16169 (arg1)->SetPosition(arg2);
16170 wxPyEndAllowThreads(__tstate);
16171 if (PyErr_Occurred()) SWIG_fail;
16172 }
16173 resultobj = SWIG_Py_Void();
16174 return resultobj;
16175 fail:
16176 return NULL;
16177 }
16178
16179
16180 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16181 PyObject *obj;
16182 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16183 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
16184 return SWIG_Py_Void();
16185 }
16186
16187 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16188 return SWIG_Python_InitShadowInstance(args);
16189 }
16190
16191 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16192 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16193 return 1;
16194 }
16195
16196
16197 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16198 PyObject *pyobj = 0;
16199
16200 {
16201 #if wxUSE_UNICODE
16202 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16203 #else
16204 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16205 #endif
16206 }
16207 return pyobj;
16208 }
16209
16210
16211 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16212 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16213 return 1;
16214 }
16215
16216
16217 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16218 PyObject *pyobj = 0;
16219
16220 {
16221 #if wxUSE_UNICODE
16222 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16223 #else
16224 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16225 #endif
16226 }
16227 return pyobj;
16228 }
16229
16230
16231 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16232 PyObject *resultobj = 0;
16233 wxWindow *arg1 = (wxWindow *) 0 ;
16234 int arg2 = (int) -1 ;
16235 wxString const &arg3_defvalue = wxPyEmptyString ;
16236 wxString *arg3 = (wxString *) &arg3_defvalue ;
16237 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16238 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16239 wxSize const &arg5_defvalue = wxDefaultSize ;
16240 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16241 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16242 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16243 int arg7 = (int) 0 ;
16244 long arg8 = (long) wxRA_HORIZONTAL ;
16245 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16246 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16247 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16248 wxString *arg10 = (wxString *) &arg10_defvalue ;
16249 wxRadioBox *result = 0 ;
16250 void *argp1 = 0 ;
16251 int res1 = 0 ;
16252 int val2 ;
16253 int ecode2 = 0 ;
16254 bool temp3 = false ;
16255 wxPoint temp4 ;
16256 wxSize temp5 ;
16257 bool temp6 = false ;
16258 int val7 ;
16259 int ecode7 = 0 ;
16260 long val8 ;
16261 int ecode8 = 0 ;
16262 void *argp9 = 0 ;
16263 int res9 = 0 ;
16264 bool temp10 = false ;
16265 PyObject * obj0 = 0 ;
16266 PyObject * obj1 = 0 ;
16267 PyObject * obj2 = 0 ;
16268 PyObject * obj3 = 0 ;
16269 PyObject * obj4 = 0 ;
16270 PyObject * obj5 = 0 ;
16271 PyObject * obj6 = 0 ;
16272 PyObject * obj7 = 0 ;
16273 PyObject * obj8 = 0 ;
16274 PyObject * obj9 = 0 ;
16275 char * kwnames[] = {
16276 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16277 };
16278
16279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16281 if (!SWIG_IsOK(res1)) {
16282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16283 }
16284 arg1 = reinterpret_cast< wxWindow * >(argp1);
16285 if (obj1) {
16286 ecode2 = SWIG_AsVal_int(obj1, &val2);
16287 if (!SWIG_IsOK(ecode2)) {
16288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16289 }
16290 arg2 = static_cast< int >(val2);
16291 }
16292 if (obj2) {
16293 {
16294 arg3 = wxString_in_helper(obj2);
16295 if (arg3 == NULL) SWIG_fail;
16296 temp3 = true;
16297 }
16298 }
16299 if (obj3) {
16300 {
16301 arg4 = &temp4;
16302 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16303 }
16304 }
16305 if (obj4) {
16306 {
16307 arg5 = &temp5;
16308 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16309 }
16310 }
16311 if (obj5) {
16312 {
16313 if (! PySequence_Check(obj5)) {
16314 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16315 SWIG_fail;
16316 }
16317 arg6 = new wxArrayString;
16318 temp6 = true;
16319 int i, len=PySequence_Length(obj5);
16320 for (i=0; i<len; i++) {
16321 PyObject* item = PySequence_GetItem(obj5, i);
16322 wxString* s = wxString_in_helper(item);
16323 if (PyErr_Occurred()) SWIG_fail;
16324 arg6->Add(*s);
16325 delete s;
16326 Py_DECREF(item);
16327 }
16328 }
16329 }
16330 if (obj6) {
16331 ecode7 = SWIG_AsVal_int(obj6, &val7);
16332 if (!SWIG_IsOK(ecode7)) {
16333 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16334 }
16335 arg7 = static_cast< int >(val7);
16336 }
16337 if (obj7) {
16338 ecode8 = SWIG_AsVal_long(obj7, &val8);
16339 if (!SWIG_IsOK(ecode8)) {
16340 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16341 }
16342 arg8 = static_cast< long >(val8);
16343 }
16344 if (obj8) {
16345 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16346 if (!SWIG_IsOK(res9)) {
16347 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16348 }
16349 if (!argp9) {
16350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16351 }
16352 arg9 = reinterpret_cast< wxValidator * >(argp9);
16353 }
16354 if (obj9) {
16355 {
16356 arg10 = wxString_in_helper(obj9);
16357 if (arg10 == NULL) SWIG_fail;
16358 temp10 = true;
16359 }
16360 }
16361 {
16362 if (!wxPyCheckForApp()) SWIG_fail;
16363 PyThreadState* __tstate = wxPyBeginAllowThreads();
16364 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);
16365 wxPyEndAllowThreads(__tstate);
16366 if (PyErr_Occurred()) SWIG_fail;
16367 }
16368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16369 {
16370 if (temp3)
16371 delete arg3;
16372 }
16373 {
16374 if (temp6) delete arg6;
16375 }
16376 {
16377 if (temp10)
16378 delete arg10;
16379 }
16380 return resultobj;
16381 fail:
16382 {
16383 if (temp3)
16384 delete arg3;
16385 }
16386 {
16387 if (temp6) delete arg6;
16388 }
16389 {
16390 if (temp10)
16391 delete arg10;
16392 }
16393 return NULL;
16394 }
16395
16396
16397 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16398 PyObject *resultobj = 0;
16399 wxRadioBox *result = 0 ;
16400
16401 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16402 {
16403 if (!wxPyCheckForApp()) SWIG_fail;
16404 PyThreadState* __tstate = wxPyBeginAllowThreads();
16405 result = (wxRadioBox *)new wxRadioBox();
16406 wxPyEndAllowThreads(__tstate);
16407 if (PyErr_Occurred()) SWIG_fail;
16408 }
16409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16410 return resultobj;
16411 fail:
16412 return NULL;
16413 }
16414
16415
16416 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16417 PyObject *resultobj = 0;
16418 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16419 wxWindow *arg2 = (wxWindow *) 0 ;
16420 int arg3 = (int) -1 ;
16421 wxString const &arg4_defvalue = wxPyEmptyString ;
16422 wxString *arg4 = (wxString *) &arg4_defvalue ;
16423 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16424 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16425 wxSize const &arg6_defvalue = wxDefaultSize ;
16426 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16427 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16428 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16429 int arg8 = (int) 0 ;
16430 long arg9 = (long) wxRA_HORIZONTAL ;
16431 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16432 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16433 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16434 wxString *arg11 = (wxString *) &arg11_defvalue ;
16435 bool result;
16436 void *argp1 = 0 ;
16437 int res1 = 0 ;
16438 void *argp2 = 0 ;
16439 int res2 = 0 ;
16440 int val3 ;
16441 int ecode3 = 0 ;
16442 bool temp4 = false ;
16443 wxPoint temp5 ;
16444 wxSize temp6 ;
16445 bool temp7 = false ;
16446 int val8 ;
16447 int ecode8 = 0 ;
16448 long val9 ;
16449 int ecode9 = 0 ;
16450 void *argp10 = 0 ;
16451 int res10 = 0 ;
16452 bool temp11 = false ;
16453 PyObject * obj0 = 0 ;
16454 PyObject * obj1 = 0 ;
16455 PyObject * obj2 = 0 ;
16456 PyObject * obj3 = 0 ;
16457 PyObject * obj4 = 0 ;
16458 PyObject * obj5 = 0 ;
16459 PyObject * obj6 = 0 ;
16460 PyObject * obj7 = 0 ;
16461 PyObject * obj8 = 0 ;
16462 PyObject * obj9 = 0 ;
16463 PyObject * obj10 = 0 ;
16464 char * kwnames[] = {
16465 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16466 };
16467
16468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16470 if (!SWIG_IsOK(res1)) {
16471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16472 }
16473 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16474 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16475 if (!SWIG_IsOK(res2)) {
16476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16477 }
16478 arg2 = reinterpret_cast< wxWindow * >(argp2);
16479 if (obj2) {
16480 ecode3 = SWIG_AsVal_int(obj2, &val3);
16481 if (!SWIG_IsOK(ecode3)) {
16482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16483 }
16484 arg3 = static_cast< int >(val3);
16485 }
16486 if (obj3) {
16487 {
16488 arg4 = wxString_in_helper(obj3);
16489 if (arg4 == NULL) SWIG_fail;
16490 temp4 = true;
16491 }
16492 }
16493 if (obj4) {
16494 {
16495 arg5 = &temp5;
16496 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16497 }
16498 }
16499 if (obj5) {
16500 {
16501 arg6 = &temp6;
16502 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16503 }
16504 }
16505 if (obj6) {
16506 {
16507 if (! PySequence_Check(obj6)) {
16508 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16509 SWIG_fail;
16510 }
16511 arg7 = new wxArrayString;
16512 temp7 = true;
16513 int i, len=PySequence_Length(obj6);
16514 for (i=0; i<len; i++) {
16515 PyObject* item = PySequence_GetItem(obj6, i);
16516 wxString* s = wxString_in_helper(item);
16517 if (PyErr_Occurred()) SWIG_fail;
16518 arg7->Add(*s);
16519 delete s;
16520 Py_DECREF(item);
16521 }
16522 }
16523 }
16524 if (obj7) {
16525 ecode8 = SWIG_AsVal_int(obj7, &val8);
16526 if (!SWIG_IsOK(ecode8)) {
16527 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16528 }
16529 arg8 = static_cast< int >(val8);
16530 }
16531 if (obj8) {
16532 ecode9 = SWIG_AsVal_long(obj8, &val9);
16533 if (!SWIG_IsOK(ecode9)) {
16534 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16535 }
16536 arg9 = static_cast< long >(val9);
16537 }
16538 if (obj9) {
16539 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16540 if (!SWIG_IsOK(res10)) {
16541 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16542 }
16543 if (!argp10) {
16544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16545 }
16546 arg10 = reinterpret_cast< wxValidator * >(argp10);
16547 }
16548 if (obj10) {
16549 {
16550 arg11 = wxString_in_helper(obj10);
16551 if (arg11 == NULL) SWIG_fail;
16552 temp11 = true;
16553 }
16554 }
16555 {
16556 PyThreadState* __tstate = wxPyBeginAllowThreads();
16557 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);
16558 wxPyEndAllowThreads(__tstate);
16559 if (PyErr_Occurred()) SWIG_fail;
16560 }
16561 {
16562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16563 }
16564 {
16565 if (temp4)
16566 delete arg4;
16567 }
16568 {
16569 if (temp7) delete arg7;
16570 }
16571 {
16572 if (temp11)
16573 delete arg11;
16574 }
16575 return resultobj;
16576 fail:
16577 {
16578 if (temp4)
16579 delete arg4;
16580 }
16581 {
16582 if (temp7) delete arg7;
16583 }
16584 {
16585 if (temp11)
16586 delete arg11;
16587 }
16588 return NULL;
16589 }
16590
16591
16592 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16593 PyObject *resultobj = 0;
16594 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16595 int arg2 ;
16596 void *argp1 = 0 ;
16597 int res1 = 0 ;
16598 int val2 ;
16599 int ecode2 = 0 ;
16600 PyObject * obj0 = 0 ;
16601 PyObject * obj1 = 0 ;
16602 char * kwnames[] = {
16603 (char *) "self",(char *) "n", NULL
16604 };
16605
16606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16608 if (!SWIG_IsOK(res1)) {
16609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16610 }
16611 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16612 ecode2 = SWIG_AsVal_int(obj1, &val2);
16613 if (!SWIG_IsOK(ecode2)) {
16614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16615 }
16616 arg2 = static_cast< int >(val2);
16617 {
16618 PyThreadState* __tstate = wxPyBeginAllowThreads();
16619 (arg1)->SetSelection(arg2);
16620 wxPyEndAllowThreads(__tstate);
16621 if (PyErr_Occurred()) SWIG_fail;
16622 }
16623 resultobj = SWIG_Py_Void();
16624 return resultobj;
16625 fail:
16626 return NULL;
16627 }
16628
16629
16630 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16631 PyObject *resultobj = 0;
16632 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16633 int result;
16634 void *argp1 = 0 ;
16635 int res1 = 0 ;
16636 PyObject *swig_obj[1] ;
16637
16638 if (!args) SWIG_fail;
16639 swig_obj[0] = args;
16640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16641 if (!SWIG_IsOK(res1)) {
16642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16643 }
16644 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16645 {
16646 PyThreadState* __tstate = wxPyBeginAllowThreads();
16647 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16648 wxPyEndAllowThreads(__tstate);
16649 if (PyErr_Occurred()) SWIG_fail;
16650 }
16651 resultobj = SWIG_From_int(static_cast< int >(result));
16652 return resultobj;
16653 fail:
16654 return NULL;
16655 }
16656
16657
16658 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16659 PyObject *resultobj = 0;
16660 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16661 wxString result;
16662 void *argp1 = 0 ;
16663 int res1 = 0 ;
16664 PyObject *swig_obj[1] ;
16665
16666 if (!args) SWIG_fail;
16667 swig_obj[0] = args;
16668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16669 if (!SWIG_IsOK(res1)) {
16670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16671 }
16672 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16673 {
16674 PyThreadState* __tstate = wxPyBeginAllowThreads();
16675 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16676 wxPyEndAllowThreads(__tstate);
16677 if (PyErr_Occurred()) SWIG_fail;
16678 }
16679 {
16680 #if wxUSE_UNICODE
16681 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16682 #else
16683 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16684 #endif
16685 }
16686 return resultobj;
16687 fail:
16688 return NULL;
16689 }
16690
16691
16692 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16693 PyObject *resultobj = 0;
16694 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16695 wxString *arg2 = 0 ;
16696 bool result;
16697 void *argp1 = 0 ;
16698 int res1 = 0 ;
16699 bool temp2 = false ;
16700 PyObject * obj0 = 0 ;
16701 PyObject * obj1 = 0 ;
16702 char * kwnames[] = {
16703 (char *) "self",(char *) "s", NULL
16704 };
16705
16706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16708 if (!SWIG_IsOK(res1)) {
16709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16710 }
16711 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16712 {
16713 arg2 = wxString_in_helper(obj1);
16714 if (arg2 == NULL) SWIG_fail;
16715 temp2 = true;
16716 }
16717 {
16718 PyThreadState* __tstate = wxPyBeginAllowThreads();
16719 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16720 wxPyEndAllowThreads(__tstate);
16721 if (PyErr_Occurred()) SWIG_fail;
16722 }
16723 {
16724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16725 }
16726 {
16727 if (temp2)
16728 delete arg2;
16729 }
16730 return resultobj;
16731 fail:
16732 {
16733 if (temp2)
16734 delete arg2;
16735 }
16736 return NULL;
16737 }
16738
16739
16740 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16741 PyObject *resultobj = 0;
16742 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16743 size_t result;
16744 void *argp1 = 0 ;
16745 int res1 = 0 ;
16746 PyObject *swig_obj[1] ;
16747
16748 if (!args) SWIG_fail;
16749 swig_obj[0] = args;
16750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16751 if (!SWIG_IsOK(res1)) {
16752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16753 }
16754 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16755 {
16756 PyThreadState* __tstate = wxPyBeginAllowThreads();
16757 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16758 wxPyEndAllowThreads(__tstate);
16759 if (PyErr_Occurred()) SWIG_fail;
16760 }
16761 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16762 return resultobj;
16763 fail:
16764 return NULL;
16765 }
16766
16767
16768 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16769 PyObject *resultobj = 0;
16770 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16771 wxString *arg2 = 0 ;
16772 int result;
16773 void *argp1 = 0 ;
16774 int res1 = 0 ;
16775 bool temp2 = false ;
16776 PyObject * obj0 = 0 ;
16777 PyObject * obj1 = 0 ;
16778 char * kwnames[] = {
16779 (char *) "self",(char *) "s", NULL
16780 };
16781
16782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16784 if (!SWIG_IsOK(res1)) {
16785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16786 }
16787 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16788 {
16789 arg2 = wxString_in_helper(obj1);
16790 if (arg2 == NULL) SWIG_fail;
16791 temp2 = true;
16792 }
16793 {
16794 PyThreadState* __tstate = wxPyBeginAllowThreads();
16795 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16796 wxPyEndAllowThreads(__tstate);
16797 if (PyErr_Occurred()) SWIG_fail;
16798 }
16799 resultobj = SWIG_From_int(static_cast< int >(result));
16800 {
16801 if (temp2)
16802 delete arg2;
16803 }
16804 return resultobj;
16805 fail:
16806 {
16807 if (temp2)
16808 delete arg2;
16809 }
16810 return NULL;
16811 }
16812
16813
16814 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16815 PyObject *resultobj = 0;
16816 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16817 int arg2 ;
16818 wxString result;
16819 void *argp1 = 0 ;
16820 int res1 = 0 ;
16821 int val2 ;
16822 int ecode2 = 0 ;
16823 PyObject * obj0 = 0 ;
16824 PyObject * obj1 = 0 ;
16825 char * kwnames[] = {
16826 (char *) "self",(char *) "n", NULL
16827 };
16828
16829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16831 if (!SWIG_IsOK(res1)) {
16832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16833 }
16834 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16835 ecode2 = SWIG_AsVal_int(obj1, &val2);
16836 if (!SWIG_IsOK(ecode2)) {
16837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16838 }
16839 arg2 = static_cast< int >(val2);
16840 {
16841 PyThreadState* __tstate = wxPyBeginAllowThreads();
16842 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16843 wxPyEndAllowThreads(__tstate);
16844 if (PyErr_Occurred()) SWIG_fail;
16845 }
16846 {
16847 #if wxUSE_UNICODE
16848 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16849 #else
16850 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16851 #endif
16852 }
16853 return resultobj;
16854 fail:
16855 return NULL;
16856 }
16857
16858
16859 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16860 PyObject *resultobj = 0;
16861 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16862 int arg2 ;
16863 wxString *arg3 = 0 ;
16864 void *argp1 = 0 ;
16865 int res1 = 0 ;
16866 int val2 ;
16867 int ecode2 = 0 ;
16868 bool temp3 = false ;
16869 PyObject * obj0 = 0 ;
16870 PyObject * obj1 = 0 ;
16871 PyObject * obj2 = 0 ;
16872 char * kwnames[] = {
16873 (char *) "self",(char *) "n",(char *) "label", NULL
16874 };
16875
16876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16878 if (!SWIG_IsOK(res1)) {
16879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16880 }
16881 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16882 ecode2 = SWIG_AsVal_int(obj1, &val2);
16883 if (!SWIG_IsOK(ecode2)) {
16884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16885 }
16886 arg2 = static_cast< int >(val2);
16887 {
16888 arg3 = wxString_in_helper(obj2);
16889 if (arg3 == NULL) SWIG_fail;
16890 temp3 = true;
16891 }
16892 {
16893 PyThreadState* __tstate = wxPyBeginAllowThreads();
16894 (arg1)->SetString(arg2,(wxString const &)*arg3);
16895 wxPyEndAllowThreads(__tstate);
16896 if (PyErr_Occurred()) SWIG_fail;
16897 }
16898 resultobj = SWIG_Py_Void();
16899 {
16900 if (temp3)
16901 delete arg3;
16902 }
16903 return resultobj;
16904 fail:
16905 {
16906 if (temp3)
16907 delete arg3;
16908 }
16909 return NULL;
16910 }
16911
16912
16913 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16914 PyObject *resultobj = 0;
16915 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16916 unsigned int arg2 ;
16917 bool arg3 = (bool) true ;
16918 void *argp1 = 0 ;
16919 int res1 = 0 ;
16920 unsigned int val2 ;
16921 int ecode2 = 0 ;
16922 bool val3 ;
16923 int ecode3 = 0 ;
16924 PyObject * obj0 = 0 ;
16925 PyObject * obj1 = 0 ;
16926 PyObject * obj2 = 0 ;
16927 char * kwnames[] = {
16928 (char *) "self",(char *) "n",(char *) "enable", NULL
16929 };
16930
16931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16933 if (!SWIG_IsOK(res1)) {
16934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16935 }
16936 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16937 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16938 if (!SWIG_IsOK(ecode2)) {
16939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16940 }
16941 arg2 = static_cast< unsigned int >(val2);
16942 if (obj2) {
16943 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16944 if (!SWIG_IsOK(ecode3)) {
16945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16946 }
16947 arg3 = static_cast< bool >(val3);
16948 }
16949 {
16950 PyThreadState* __tstate = wxPyBeginAllowThreads();
16951 (arg1)->Enable(arg2,arg3);
16952 wxPyEndAllowThreads(__tstate);
16953 if (PyErr_Occurred()) SWIG_fail;
16954 }
16955 resultobj = SWIG_Py_Void();
16956 return resultobj;
16957 fail:
16958 return NULL;
16959 }
16960
16961
16962 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16963 PyObject *resultobj = 0;
16964 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16965 unsigned int arg2 ;
16966 bool arg3 = (bool) true ;
16967 void *argp1 = 0 ;
16968 int res1 = 0 ;
16969 unsigned int val2 ;
16970 int ecode2 = 0 ;
16971 bool val3 ;
16972 int ecode3 = 0 ;
16973 PyObject * obj0 = 0 ;
16974 PyObject * obj1 = 0 ;
16975 PyObject * obj2 = 0 ;
16976 char * kwnames[] = {
16977 (char *) "self",(char *) "n",(char *) "show", NULL
16978 };
16979
16980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16982 if (!SWIG_IsOK(res1)) {
16983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16984 }
16985 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16986 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16987 if (!SWIG_IsOK(ecode2)) {
16988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16989 }
16990 arg2 = static_cast< unsigned int >(val2);
16991 if (obj2) {
16992 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16993 if (!SWIG_IsOK(ecode3)) {
16994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16995 }
16996 arg3 = static_cast< bool >(val3);
16997 }
16998 {
16999 PyThreadState* __tstate = wxPyBeginAllowThreads();
17000 (arg1)->Show(arg2,arg3);
17001 wxPyEndAllowThreads(__tstate);
17002 if (PyErr_Occurred()) SWIG_fail;
17003 }
17004 resultobj = SWIG_Py_Void();
17005 return resultobj;
17006 fail:
17007 return NULL;
17008 }
17009
17010
17011 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17012 PyObject *resultobj = 0;
17013 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17014 unsigned int arg2 ;
17015 bool result;
17016 void *argp1 = 0 ;
17017 int res1 = 0 ;
17018 unsigned int val2 ;
17019 int ecode2 = 0 ;
17020 PyObject * obj0 = 0 ;
17021 PyObject * obj1 = 0 ;
17022 char * kwnames[] = {
17023 (char *) "self",(char *) "n", NULL
17024 };
17025
17026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
17027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17028 if (!SWIG_IsOK(res1)) {
17029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17030 }
17031 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17032 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17033 if (!SWIG_IsOK(ecode2)) {
17034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
17035 }
17036 arg2 = static_cast< unsigned int >(val2);
17037 {
17038 PyThreadState* __tstate = wxPyBeginAllowThreads();
17039 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
17040 wxPyEndAllowThreads(__tstate);
17041 if (PyErr_Occurred()) SWIG_fail;
17042 }
17043 {
17044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17045 }
17046 return resultobj;
17047 fail:
17048 return NULL;
17049 }
17050
17051
17052 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17053 PyObject *resultobj = 0;
17054 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17055 unsigned int arg2 ;
17056 bool result;
17057 void *argp1 = 0 ;
17058 int res1 = 0 ;
17059 unsigned int val2 ;
17060 int ecode2 = 0 ;
17061 PyObject * obj0 = 0 ;
17062 PyObject * obj1 = 0 ;
17063 char * kwnames[] = {
17064 (char *) "self",(char *) "n", NULL
17065 };
17066
17067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
17068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17069 if (!SWIG_IsOK(res1)) {
17070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17071 }
17072 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17073 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17074 if (!SWIG_IsOK(ecode2)) {
17075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
17076 }
17077 arg2 = static_cast< unsigned int >(val2);
17078 {
17079 PyThreadState* __tstate = wxPyBeginAllowThreads();
17080 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
17081 wxPyEndAllowThreads(__tstate);
17082 if (PyErr_Occurred()) SWIG_fail;
17083 }
17084 {
17085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17086 }
17087 return resultobj;
17088 fail:
17089 return NULL;
17090 }
17091
17092
17093 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17094 PyObject *resultobj = 0;
17095 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17096 unsigned int result;
17097 void *argp1 = 0 ;
17098 int res1 = 0 ;
17099 PyObject *swig_obj[1] ;
17100
17101 if (!args) SWIG_fail;
17102 swig_obj[0] = args;
17103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17104 if (!SWIG_IsOK(res1)) {
17105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17106 }
17107 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17108 {
17109 PyThreadState* __tstate = wxPyBeginAllowThreads();
17110 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
17111 wxPyEndAllowThreads(__tstate);
17112 if (PyErr_Occurred()) SWIG_fail;
17113 }
17114 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17115 return resultobj;
17116 fail:
17117 return NULL;
17118 }
17119
17120
17121 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17122 PyObject *resultobj = 0;
17123 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17124 unsigned int result;
17125 void *argp1 = 0 ;
17126 int res1 = 0 ;
17127 PyObject *swig_obj[1] ;
17128
17129 if (!args) SWIG_fail;
17130 swig_obj[0] = args;
17131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17132 if (!SWIG_IsOK(res1)) {
17133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17134 }
17135 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17136 {
17137 PyThreadState* __tstate = wxPyBeginAllowThreads();
17138 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
17139 wxPyEndAllowThreads(__tstate);
17140 if (PyErr_Occurred()) SWIG_fail;
17141 }
17142 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17143 return resultobj;
17144 fail:
17145 return NULL;
17146 }
17147
17148
17149 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17150 PyObject *resultobj = 0;
17151 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17152 int arg2 ;
17153 wxDirection arg3 ;
17154 long arg4 ;
17155 int result;
17156 void *argp1 = 0 ;
17157 int res1 = 0 ;
17158 int val2 ;
17159 int ecode2 = 0 ;
17160 int val3 ;
17161 int ecode3 = 0 ;
17162 long val4 ;
17163 int ecode4 = 0 ;
17164 PyObject * obj0 = 0 ;
17165 PyObject * obj1 = 0 ;
17166 PyObject * obj2 = 0 ;
17167 PyObject * obj3 = 0 ;
17168 char * kwnames[] = {
17169 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
17170 };
17171
17172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17174 if (!SWIG_IsOK(res1)) {
17175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17176 }
17177 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17178 ecode2 = SWIG_AsVal_int(obj1, &val2);
17179 if (!SWIG_IsOK(ecode2)) {
17180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
17181 }
17182 arg2 = static_cast< int >(val2);
17183 ecode3 = SWIG_AsVal_int(obj2, &val3);
17184 if (!SWIG_IsOK(ecode3)) {
17185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
17186 }
17187 arg3 = static_cast< wxDirection >(val3);
17188 ecode4 = SWIG_AsVal_long(obj3, &val4);
17189 if (!SWIG_IsOK(ecode4)) {
17190 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17191 }
17192 arg4 = static_cast< long >(val4);
17193 {
17194 PyThreadState* __tstate = wxPyBeginAllowThreads();
17195 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17196 wxPyEndAllowThreads(__tstate);
17197 if (PyErr_Occurred()) SWIG_fail;
17198 }
17199 resultobj = SWIG_From_int(static_cast< int >(result));
17200 return resultobj;
17201 fail:
17202 return NULL;
17203 }
17204
17205
17206 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17207 PyObject *resultobj = 0;
17208 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17209 unsigned int arg2 ;
17210 wxString *arg3 = 0 ;
17211 void *argp1 = 0 ;
17212 int res1 = 0 ;
17213 unsigned int val2 ;
17214 int ecode2 = 0 ;
17215 bool temp3 = false ;
17216 PyObject * obj0 = 0 ;
17217 PyObject * obj1 = 0 ;
17218 PyObject * obj2 = 0 ;
17219 char * kwnames[] = {
17220 (char *) "self",(char *) "item",(char *) "text", NULL
17221 };
17222
17223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17225 if (!SWIG_IsOK(res1)) {
17226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17227 }
17228 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17229 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17230 if (!SWIG_IsOK(ecode2)) {
17231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17232 }
17233 arg2 = static_cast< unsigned int >(val2);
17234 {
17235 arg3 = wxString_in_helper(obj2);
17236 if (arg3 == NULL) SWIG_fail;
17237 temp3 = true;
17238 }
17239 {
17240 PyThreadState* __tstate = wxPyBeginAllowThreads();
17241 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17242 wxPyEndAllowThreads(__tstate);
17243 if (PyErr_Occurred()) SWIG_fail;
17244 }
17245 resultobj = SWIG_Py_Void();
17246 {
17247 if (temp3)
17248 delete arg3;
17249 }
17250 return resultobj;
17251 fail:
17252 {
17253 if (temp3)
17254 delete arg3;
17255 }
17256 return NULL;
17257 }
17258
17259
17260 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17261 PyObject *resultobj = 0;
17262 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17263 unsigned int arg2 ;
17264 wxToolTip *result = 0 ;
17265 void *argp1 = 0 ;
17266 int res1 = 0 ;
17267 unsigned int val2 ;
17268 int ecode2 = 0 ;
17269 PyObject * obj0 = 0 ;
17270 PyObject * obj1 = 0 ;
17271 char * kwnames[] = {
17272 (char *) "self",(char *) "item", NULL
17273 };
17274
17275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17277 if (!SWIG_IsOK(res1)) {
17278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17279 }
17280 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17281 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17282 if (!SWIG_IsOK(ecode2)) {
17283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17284 }
17285 arg2 = static_cast< unsigned int >(val2);
17286 {
17287 PyThreadState* __tstate = wxPyBeginAllowThreads();
17288 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17289 wxPyEndAllowThreads(__tstate);
17290 if (PyErr_Occurred()) SWIG_fail;
17291 }
17292 {
17293 resultobj = wxPyMake_wxObject(result, (bool)0);
17294 }
17295 return resultobj;
17296 fail:
17297 return NULL;
17298 }
17299
17300
17301 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17302 PyObject *resultobj = 0;
17303 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17304 unsigned int arg2 ;
17305 wxString *arg3 = 0 ;
17306 void *argp1 = 0 ;
17307 int res1 = 0 ;
17308 unsigned int val2 ;
17309 int ecode2 = 0 ;
17310 bool temp3 = false ;
17311 PyObject * obj0 = 0 ;
17312 PyObject * obj1 = 0 ;
17313 PyObject * obj2 = 0 ;
17314 char * kwnames[] = {
17315 (char *) "self",(char *) "n",(char *) "helpText", NULL
17316 };
17317
17318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17320 if (!SWIG_IsOK(res1)) {
17321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17322 }
17323 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17324 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17325 if (!SWIG_IsOK(ecode2)) {
17326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17327 }
17328 arg2 = static_cast< unsigned int >(val2);
17329 {
17330 arg3 = wxString_in_helper(obj2);
17331 if (arg3 == NULL) SWIG_fail;
17332 temp3 = true;
17333 }
17334 {
17335 PyThreadState* __tstate = wxPyBeginAllowThreads();
17336 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17337 wxPyEndAllowThreads(__tstate);
17338 if (PyErr_Occurred()) SWIG_fail;
17339 }
17340 resultobj = SWIG_Py_Void();
17341 {
17342 if (temp3)
17343 delete arg3;
17344 }
17345 return resultobj;
17346 fail:
17347 {
17348 if (temp3)
17349 delete arg3;
17350 }
17351 return NULL;
17352 }
17353
17354
17355 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17356 PyObject *resultobj = 0;
17357 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17358 unsigned int arg2 ;
17359 wxString result;
17360 void *argp1 = 0 ;
17361 int res1 = 0 ;
17362 unsigned int val2 ;
17363 int ecode2 = 0 ;
17364 PyObject * obj0 = 0 ;
17365 PyObject * obj1 = 0 ;
17366 char * kwnames[] = {
17367 (char *) "self",(char *) "n", NULL
17368 };
17369
17370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17372 if (!SWIG_IsOK(res1)) {
17373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17374 }
17375 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17376 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17377 if (!SWIG_IsOK(ecode2)) {
17378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17379 }
17380 arg2 = static_cast< unsigned int >(val2);
17381 {
17382 PyThreadState* __tstate = wxPyBeginAllowThreads();
17383 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17384 wxPyEndAllowThreads(__tstate);
17385 if (PyErr_Occurred()) SWIG_fail;
17386 }
17387 {
17388 #if wxUSE_UNICODE
17389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17390 #else
17391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17392 #endif
17393 }
17394 return resultobj;
17395 fail:
17396 return NULL;
17397 }
17398
17399
17400 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17401 PyObject *resultobj = 0;
17402 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17403 SwigValueWrapper<wxVisualAttributes > result;
17404 int val1 ;
17405 int ecode1 = 0 ;
17406 PyObject * obj0 = 0 ;
17407 char * kwnames[] = {
17408 (char *) "variant", NULL
17409 };
17410
17411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17412 if (obj0) {
17413 ecode1 = SWIG_AsVal_int(obj0, &val1);
17414 if (!SWIG_IsOK(ecode1)) {
17415 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17416 }
17417 arg1 = static_cast< wxWindowVariant >(val1);
17418 }
17419 {
17420 if (!wxPyCheckForApp()) SWIG_fail;
17421 PyThreadState* __tstate = wxPyBeginAllowThreads();
17422 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17423 wxPyEndAllowThreads(__tstate);
17424 if (PyErr_Occurred()) SWIG_fail;
17425 }
17426 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17427 return resultobj;
17428 fail:
17429 return NULL;
17430 }
17431
17432
17433 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17434 PyObject *obj;
17435 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17436 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17437 return SWIG_Py_Void();
17438 }
17439
17440 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17441 return SWIG_Python_InitShadowInstance(args);
17442 }
17443
17444 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17445 PyObject *resultobj = 0;
17446 wxWindow *arg1 = (wxWindow *) 0 ;
17447 int arg2 = (int) -1 ;
17448 wxString const &arg3_defvalue = wxPyEmptyString ;
17449 wxString *arg3 = (wxString *) &arg3_defvalue ;
17450 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17451 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17452 wxSize const &arg5_defvalue = wxDefaultSize ;
17453 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17454 long arg6 = (long) 0 ;
17455 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17456 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17457 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17458 wxString *arg8 = (wxString *) &arg8_defvalue ;
17459 wxRadioButton *result = 0 ;
17460 void *argp1 = 0 ;
17461 int res1 = 0 ;
17462 int val2 ;
17463 int ecode2 = 0 ;
17464 bool temp3 = false ;
17465 wxPoint temp4 ;
17466 wxSize temp5 ;
17467 long val6 ;
17468 int ecode6 = 0 ;
17469 void *argp7 = 0 ;
17470 int res7 = 0 ;
17471 bool temp8 = false ;
17472 PyObject * obj0 = 0 ;
17473 PyObject * obj1 = 0 ;
17474 PyObject * obj2 = 0 ;
17475 PyObject * obj3 = 0 ;
17476 PyObject * obj4 = 0 ;
17477 PyObject * obj5 = 0 ;
17478 PyObject * obj6 = 0 ;
17479 PyObject * obj7 = 0 ;
17480 char * kwnames[] = {
17481 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17482 };
17483
17484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17486 if (!SWIG_IsOK(res1)) {
17487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17488 }
17489 arg1 = reinterpret_cast< wxWindow * >(argp1);
17490 if (obj1) {
17491 ecode2 = SWIG_AsVal_int(obj1, &val2);
17492 if (!SWIG_IsOK(ecode2)) {
17493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17494 }
17495 arg2 = static_cast< int >(val2);
17496 }
17497 if (obj2) {
17498 {
17499 arg3 = wxString_in_helper(obj2);
17500 if (arg3 == NULL) SWIG_fail;
17501 temp3 = true;
17502 }
17503 }
17504 if (obj3) {
17505 {
17506 arg4 = &temp4;
17507 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17508 }
17509 }
17510 if (obj4) {
17511 {
17512 arg5 = &temp5;
17513 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17514 }
17515 }
17516 if (obj5) {
17517 ecode6 = SWIG_AsVal_long(obj5, &val6);
17518 if (!SWIG_IsOK(ecode6)) {
17519 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17520 }
17521 arg6 = static_cast< long >(val6);
17522 }
17523 if (obj6) {
17524 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17525 if (!SWIG_IsOK(res7)) {
17526 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17527 }
17528 if (!argp7) {
17529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17530 }
17531 arg7 = reinterpret_cast< wxValidator * >(argp7);
17532 }
17533 if (obj7) {
17534 {
17535 arg8 = wxString_in_helper(obj7);
17536 if (arg8 == NULL) SWIG_fail;
17537 temp8 = true;
17538 }
17539 }
17540 {
17541 if (!wxPyCheckForApp()) SWIG_fail;
17542 PyThreadState* __tstate = wxPyBeginAllowThreads();
17543 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17544 wxPyEndAllowThreads(__tstate);
17545 if (PyErr_Occurred()) SWIG_fail;
17546 }
17547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17548 {
17549 if (temp3)
17550 delete arg3;
17551 }
17552 {
17553 if (temp8)
17554 delete arg8;
17555 }
17556 return resultobj;
17557 fail:
17558 {
17559 if (temp3)
17560 delete arg3;
17561 }
17562 {
17563 if (temp8)
17564 delete arg8;
17565 }
17566 return NULL;
17567 }
17568
17569
17570 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17571 PyObject *resultobj = 0;
17572 wxRadioButton *result = 0 ;
17573
17574 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17575 {
17576 if (!wxPyCheckForApp()) SWIG_fail;
17577 PyThreadState* __tstate = wxPyBeginAllowThreads();
17578 result = (wxRadioButton *)new wxRadioButton();
17579 wxPyEndAllowThreads(__tstate);
17580 if (PyErr_Occurred()) SWIG_fail;
17581 }
17582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17583 return resultobj;
17584 fail:
17585 return NULL;
17586 }
17587
17588
17589 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17590 PyObject *resultobj = 0;
17591 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17592 wxWindow *arg2 = (wxWindow *) 0 ;
17593 int arg3 = (int) -1 ;
17594 wxString const &arg4_defvalue = wxPyEmptyString ;
17595 wxString *arg4 = (wxString *) &arg4_defvalue ;
17596 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17597 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17598 wxSize const &arg6_defvalue = wxDefaultSize ;
17599 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17600 long arg7 = (long) 0 ;
17601 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17602 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17603 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17604 wxString *arg9 = (wxString *) &arg9_defvalue ;
17605 bool result;
17606 void *argp1 = 0 ;
17607 int res1 = 0 ;
17608 void *argp2 = 0 ;
17609 int res2 = 0 ;
17610 int val3 ;
17611 int ecode3 = 0 ;
17612 bool temp4 = false ;
17613 wxPoint temp5 ;
17614 wxSize temp6 ;
17615 long val7 ;
17616 int ecode7 = 0 ;
17617 void *argp8 = 0 ;
17618 int res8 = 0 ;
17619 bool temp9 = false ;
17620 PyObject * obj0 = 0 ;
17621 PyObject * obj1 = 0 ;
17622 PyObject * obj2 = 0 ;
17623 PyObject * obj3 = 0 ;
17624 PyObject * obj4 = 0 ;
17625 PyObject * obj5 = 0 ;
17626 PyObject * obj6 = 0 ;
17627 PyObject * obj7 = 0 ;
17628 PyObject * obj8 = 0 ;
17629 char * kwnames[] = {
17630 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17631 };
17632
17633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17635 if (!SWIG_IsOK(res1)) {
17636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17637 }
17638 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17639 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17640 if (!SWIG_IsOK(res2)) {
17641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17642 }
17643 arg2 = reinterpret_cast< wxWindow * >(argp2);
17644 if (obj2) {
17645 ecode3 = SWIG_AsVal_int(obj2, &val3);
17646 if (!SWIG_IsOK(ecode3)) {
17647 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17648 }
17649 arg3 = static_cast< int >(val3);
17650 }
17651 if (obj3) {
17652 {
17653 arg4 = wxString_in_helper(obj3);
17654 if (arg4 == NULL) SWIG_fail;
17655 temp4 = true;
17656 }
17657 }
17658 if (obj4) {
17659 {
17660 arg5 = &temp5;
17661 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17662 }
17663 }
17664 if (obj5) {
17665 {
17666 arg6 = &temp6;
17667 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17668 }
17669 }
17670 if (obj6) {
17671 ecode7 = SWIG_AsVal_long(obj6, &val7);
17672 if (!SWIG_IsOK(ecode7)) {
17673 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17674 }
17675 arg7 = static_cast< long >(val7);
17676 }
17677 if (obj7) {
17678 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17679 if (!SWIG_IsOK(res8)) {
17680 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17681 }
17682 if (!argp8) {
17683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17684 }
17685 arg8 = reinterpret_cast< wxValidator * >(argp8);
17686 }
17687 if (obj8) {
17688 {
17689 arg9 = wxString_in_helper(obj8);
17690 if (arg9 == NULL) SWIG_fail;
17691 temp9 = true;
17692 }
17693 }
17694 {
17695 PyThreadState* __tstate = wxPyBeginAllowThreads();
17696 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17697 wxPyEndAllowThreads(__tstate);
17698 if (PyErr_Occurred()) SWIG_fail;
17699 }
17700 {
17701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17702 }
17703 {
17704 if (temp4)
17705 delete arg4;
17706 }
17707 {
17708 if (temp9)
17709 delete arg9;
17710 }
17711 return resultobj;
17712 fail:
17713 {
17714 if (temp4)
17715 delete arg4;
17716 }
17717 {
17718 if (temp9)
17719 delete arg9;
17720 }
17721 return NULL;
17722 }
17723
17724
17725 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17726 PyObject *resultobj = 0;
17727 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17728 bool result;
17729 void *argp1 = 0 ;
17730 int res1 = 0 ;
17731 PyObject *swig_obj[1] ;
17732
17733 if (!args) SWIG_fail;
17734 swig_obj[0] = args;
17735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17736 if (!SWIG_IsOK(res1)) {
17737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17738 }
17739 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17740 {
17741 PyThreadState* __tstate = wxPyBeginAllowThreads();
17742 result = (bool)(arg1)->GetValue();
17743 wxPyEndAllowThreads(__tstate);
17744 if (PyErr_Occurred()) SWIG_fail;
17745 }
17746 {
17747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17748 }
17749 return resultobj;
17750 fail:
17751 return NULL;
17752 }
17753
17754
17755 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17756 PyObject *resultobj = 0;
17757 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17758 bool arg2 ;
17759 void *argp1 = 0 ;
17760 int res1 = 0 ;
17761 bool val2 ;
17762 int ecode2 = 0 ;
17763 PyObject * obj0 = 0 ;
17764 PyObject * obj1 = 0 ;
17765 char * kwnames[] = {
17766 (char *) "self",(char *) "value", NULL
17767 };
17768
17769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17771 if (!SWIG_IsOK(res1)) {
17772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17773 }
17774 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17775 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17776 if (!SWIG_IsOK(ecode2)) {
17777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17778 }
17779 arg2 = static_cast< bool >(val2);
17780 {
17781 PyThreadState* __tstate = wxPyBeginAllowThreads();
17782 (arg1)->SetValue(arg2);
17783 wxPyEndAllowThreads(__tstate);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 resultobj = SWIG_Py_Void();
17787 return resultobj;
17788 fail:
17789 return NULL;
17790 }
17791
17792
17793 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17794 PyObject *resultobj = 0;
17795 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17796 SwigValueWrapper<wxVisualAttributes > result;
17797 int val1 ;
17798 int ecode1 = 0 ;
17799 PyObject * obj0 = 0 ;
17800 char * kwnames[] = {
17801 (char *) "variant", NULL
17802 };
17803
17804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17805 if (obj0) {
17806 ecode1 = SWIG_AsVal_int(obj0, &val1);
17807 if (!SWIG_IsOK(ecode1)) {
17808 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17809 }
17810 arg1 = static_cast< wxWindowVariant >(val1);
17811 }
17812 {
17813 if (!wxPyCheckForApp()) SWIG_fail;
17814 PyThreadState* __tstate = wxPyBeginAllowThreads();
17815 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17816 wxPyEndAllowThreads(__tstate);
17817 if (PyErr_Occurred()) SWIG_fail;
17818 }
17819 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17820 return resultobj;
17821 fail:
17822 return NULL;
17823 }
17824
17825
17826 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17827 PyObject *obj;
17828 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17829 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17830 return SWIG_Py_Void();
17831 }
17832
17833 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17834 return SWIG_Python_InitShadowInstance(args);
17835 }
17836
17837 SWIGINTERN int SliderNameStr_set(PyObject *) {
17838 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17839 return 1;
17840 }
17841
17842
17843 SWIGINTERN PyObject *SliderNameStr_get(void) {
17844 PyObject *pyobj = 0;
17845
17846 {
17847 #if wxUSE_UNICODE
17848 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17849 #else
17850 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17851 #endif
17852 }
17853 return pyobj;
17854 }
17855
17856
17857 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17858 PyObject *resultobj = 0;
17859 wxWindow *arg1 = (wxWindow *) 0 ;
17860 int arg2 = (int) -1 ;
17861 int arg3 = (int) 0 ;
17862 int arg4 = (int) 0 ;
17863 int arg5 = (int) 100 ;
17864 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17865 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17866 wxSize const &arg7_defvalue = wxDefaultSize ;
17867 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17868 long arg8 = (long) wxSL_HORIZONTAL ;
17869 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17870 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17871 wxString const &arg10_defvalue = wxPySliderNameStr ;
17872 wxString *arg10 = (wxString *) &arg10_defvalue ;
17873 wxSlider *result = 0 ;
17874 void *argp1 = 0 ;
17875 int res1 = 0 ;
17876 int val2 ;
17877 int ecode2 = 0 ;
17878 int val3 ;
17879 int ecode3 = 0 ;
17880 int val4 ;
17881 int ecode4 = 0 ;
17882 int val5 ;
17883 int ecode5 = 0 ;
17884 wxPoint temp6 ;
17885 wxSize temp7 ;
17886 long val8 ;
17887 int ecode8 = 0 ;
17888 void *argp9 = 0 ;
17889 int res9 = 0 ;
17890 bool temp10 = false ;
17891 PyObject * obj0 = 0 ;
17892 PyObject * obj1 = 0 ;
17893 PyObject * obj2 = 0 ;
17894 PyObject * obj3 = 0 ;
17895 PyObject * obj4 = 0 ;
17896 PyObject * obj5 = 0 ;
17897 PyObject * obj6 = 0 ;
17898 PyObject * obj7 = 0 ;
17899 PyObject * obj8 = 0 ;
17900 PyObject * obj9 = 0 ;
17901 char * kwnames[] = {
17902 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17903 };
17904
17905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17907 if (!SWIG_IsOK(res1)) {
17908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17909 }
17910 arg1 = reinterpret_cast< wxWindow * >(argp1);
17911 if (obj1) {
17912 ecode2 = SWIG_AsVal_int(obj1, &val2);
17913 if (!SWIG_IsOK(ecode2)) {
17914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17915 }
17916 arg2 = static_cast< int >(val2);
17917 }
17918 if (obj2) {
17919 ecode3 = SWIG_AsVal_int(obj2, &val3);
17920 if (!SWIG_IsOK(ecode3)) {
17921 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17922 }
17923 arg3 = static_cast< int >(val3);
17924 }
17925 if (obj3) {
17926 ecode4 = SWIG_AsVal_int(obj3, &val4);
17927 if (!SWIG_IsOK(ecode4)) {
17928 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17929 }
17930 arg4 = static_cast< int >(val4);
17931 }
17932 if (obj4) {
17933 ecode5 = SWIG_AsVal_int(obj4, &val5);
17934 if (!SWIG_IsOK(ecode5)) {
17935 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17936 }
17937 arg5 = static_cast< int >(val5);
17938 }
17939 if (obj5) {
17940 {
17941 arg6 = &temp6;
17942 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17943 }
17944 }
17945 if (obj6) {
17946 {
17947 arg7 = &temp7;
17948 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17949 }
17950 }
17951 if (obj7) {
17952 ecode8 = SWIG_AsVal_long(obj7, &val8);
17953 if (!SWIG_IsOK(ecode8)) {
17954 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17955 }
17956 arg8 = static_cast< long >(val8);
17957 }
17958 if (obj8) {
17959 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17960 if (!SWIG_IsOK(res9)) {
17961 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17962 }
17963 if (!argp9) {
17964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17965 }
17966 arg9 = reinterpret_cast< wxValidator * >(argp9);
17967 }
17968 if (obj9) {
17969 {
17970 arg10 = wxString_in_helper(obj9);
17971 if (arg10 == NULL) SWIG_fail;
17972 temp10 = true;
17973 }
17974 }
17975 {
17976 if (!wxPyCheckForApp()) SWIG_fail;
17977 PyThreadState* __tstate = wxPyBeginAllowThreads();
17978 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17979 wxPyEndAllowThreads(__tstate);
17980 if (PyErr_Occurred()) SWIG_fail;
17981 }
17982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17983 {
17984 if (temp10)
17985 delete arg10;
17986 }
17987 return resultobj;
17988 fail:
17989 {
17990 if (temp10)
17991 delete arg10;
17992 }
17993 return NULL;
17994 }
17995
17996
17997 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17998 PyObject *resultobj = 0;
17999 wxSlider *result = 0 ;
18000
18001 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
18002 {
18003 if (!wxPyCheckForApp()) SWIG_fail;
18004 PyThreadState* __tstate = wxPyBeginAllowThreads();
18005 result = (wxSlider *)new wxSlider();
18006 wxPyEndAllowThreads(__tstate);
18007 if (PyErr_Occurred()) SWIG_fail;
18008 }
18009 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
18010 return resultobj;
18011 fail:
18012 return NULL;
18013 }
18014
18015
18016 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18017 PyObject *resultobj = 0;
18018 wxSlider *arg1 = (wxSlider *) 0 ;
18019 wxWindow *arg2 = (wxWindow *) 0 ;
18020 int arg3 = (int) -1 ;
18021 int arg4 = (int) 0 ;
18022 int arg5 = (int) 0 ;
18023 int arg6 = (int) 100 ;
18024 wxPoint const &arg7_defvalue = wxDefaultPosition ;
18025 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
18026 wxSize const &arg8_defvalue = wxDefaultSize ;
18027 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
18028 long arg9 = (long) wxSL_HORIZONTAL ;
18029 wxValidator const &arg10_defvalue = wxDefaultValidator ;
18030 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
18031 wxString const &arg11_defvalue = wxPySliderNameStr ;
18032 wxString *arg11 = (wxString *) &arg11_defvalue ;
18033 bool result;
18034 void *argp1 = 0 ;
18035 int res1 = 0 ;
18036 void *argp2 = 0 ;
18037 int res2 = 0 ;
18038 int val3 ;
18039 int ecode3 = 0 ;
18040 int val4 ;
18041 int ecode4 = 0 ;
18042 int val5 ;
18043 int ecode5 = 0 ;
18044 int val6 ;
18045 int ecode6 = 0 ;
18046 wxPoint temp7 ;
18047 wxSize temp8 ;
18048 long val9 ;
18049 int ecode9 = 0 ;
18050 void *argp10 = 0 ;
18051 int res10 = 0 ;
18052 bool temp11 = false ;
18053 PyObject * obj0 = 0 ;
18054 PyObject * obj1 = 0 ;
18055 PyObject * obj2 = 0 ;
18056 PyObject * obj3 = 0 ;
18057 PyObject * obj4 = 0 ;
18058 PyObject * obj5 = 0 ;
18059 PyObject * obj6 = 0 ;
18060 PyObject * obj7 = 0 ;
18061 PyObject * obj8 = 0 ;
18062 PyObject * obj9 = 0 ;
18063 PyObject * obj10 = 0 ;
18064 char * kwnames[] = {
18065 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18066 };
18067
18068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
18069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18070 if (!SWIG_IsOK(res1)) {
18071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
18072 }
18073 arg1 = reinterpret_cast< wxSlider * >(argp1);
18074 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18075 if (!SWIG_IsOK(res2)) {
18076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18077 }
18078 arg2 = reinterpret_cast< wxWindow * >(argp2);
18079 if (obj2) {
18080 ecode3 = SWIG_AsVal_int(obj2, &val3);
18081 if (!SWIG_IsOK(ecode3)) {
18082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
18083 }
18084 arg3 = static_cast< int >(val3);
18085 }
18086 if (obj3) {
18087 ecode4 = SWIG_AsVal_int(obj3, &val4);
18088 if (!SWIG_IsOK(ecode4)) {
18089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
18090 }
18091 arg4 = static_cast< int >(val4);
18092 }
18093 if (obj4) {
18094 ecode5 = SWIG_AsVal_int(obj4, &val5);
18095 if (!SWIG_IsOK(ecode5)) {
18096 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
18097 }
18098 arg5 = static_cast< int >(val5);
18099 }
18100 if (obj5) {
18101 ecode6 = SWIG_AsVal_int(obj5, &val6);
18102 if (!SWIG_IsOK(ecode6)) {
18103 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
18104 }
18105 arg6 = static_cast< int >(val6);
18106 }
18107 if (obj6) {
18108 {
18109 arg7 = &temp7;
18110 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
18111 }
18112 }
18113 if (obj7) {
18114 {
18115 arg8 = &temp8;
18116 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
18117 }
18118 }
18119 if (obj8) {
18120 ecode9 = SWIG_AsVal_long(obj8, &val9);
18121 if (!SWIG_IsOK(ecode9)) {
18122 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
18123 }
18124 arg9 = static_cast< long >(val9);
18125 }
18126 if (obj9) {
18127 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
18128 if (!SWIG_IsOK(res10)) {
18129 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18130 }
18131 if (!argp10) {
18132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18133 }
18134 arg10 = reinterpret_cast< wxValidator * >(argp10);
18135 }
18136 if (obj10) {
18137 {
18138 arg11 = wxString_in_helper(obj10);
18139 if (arg11 == NULL) SWIG_fail;
18140 temp11 = true;
18141 }
18142 }
18143 {
18144 PyThreadState* __tstate = wxPyBeginAllowThreads();
18145 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
18149 {
18150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18151 }
18152 {
18153 if (temp11)
18154 delete arg11;
18155 }
18156 return resultobj;
18157 fail:
18158 {
18159 if (temp11)
18160 delete arg11;
18161 }
18162 return NULL;
18163 }
18164
18165
18166 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18167 PyObject *resultobj = 0;
18168 wxSlider *arg1 = (wxSlider *) 0 ;
18169 int result;
18170 void *argp1 = 0 ;
18171 int res1 = 0 ;
18172 PyObject *swig_obj[1] ;
18173
18174 if (!args) SWIG_fail;
18175 swig_obj[0] = args;
18176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18177 if (!SWIG_IsOK(res1)) {
18178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
18179 }
18180 arg1 = reinterpret_cast< wxSlider * >(argp1);
18181 {
18182 PyThreadState* __tstate = wxPyBeginAllowThreads();
18183 result = (int)((wxSlider const *)arg1)->GetValue();
18184 wxPyEndAllowThreads(__tstate);
18185 if (PyErr_Occurred()) SWIG_fail;
18186 }
18187 resultobj = SWIG_From_int(static_cast< int >(result));
18188 return resultobj;
18189 fail:
18190 return NULL;
18191 }
18192
18193
18194 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18195 PyObject *resultobj = 0;
18196 wxSlider *arg1 = (wxSlider *) 0 ;
18197 int arg2 ;
18198 void *argp1 = 0 ;
18199 int res1 = 0 ;
18200 int val2 ;
18201 int ecode2 = 0 ;
18202 PyObject * obj0 = 0 ;
18203 PyObject * obj1 = 0 ;
18204 char * kwnames[] = {
18205 (char *) "self",(char *) "value", NULL
18206 };
18207
18208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18210 if (!SWIG_IsOK(res1)) {
18211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18212 }
18213 arg1 = reinterpret_cast< wxSlider * >(argp1);
18214 ecode2 = SWIG_AsVal_int(obj1, &val2);
18215 if (!SWIG_IsOK(ecode2)) {
18216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18217 }
18218 arg2 = static_cast< int >(val2);
18219 {
18220 PyThreadState* __tstate = wxPyBeginAllowThreads();
18221 (arg1)->SetValue(arg2);
18222 wxPyEndAllowThreads(__tstate);
18223 if (PyErr_Occurred()) SWIG_fail;
18224 }
18225 resultobj = SWIG_Py_Void();
18226 return resultobj;
18227 fail:
18228 return NULL;
18229 }
18230
18231
18232 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18233 PyObject *resultobj = 0;
18234 wxSlider *arg1 = (wxSlider *) 0 ;
18235 int arg2 ;
18236 int arg3 ;
18237 void *argp1 = 0 ;
18238 int res1 = 0 ;
18239 int val2 ;
18240 int ecode2 = 0 ;
18241 int val3 ;
18242 int ecode3 = 0 ;
18243 PyObject * obj0 = 0 ;
18244 PyObject * obj1 = 0 ;
18245 PyObject * obj2 = 0 ;
18246 char * kwnames[] = {
18247 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18248 };
18249
18250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18252 if (!SWIG_IsOK(res1)) {
18253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18254 }
18255 arg1 = reinterpret_cast< wxSlider * >(argp1);
18256 ecode2 = SWIG_AsVal_int(obj1, &val2);
18257 if (!SWIG_IsOK(ecode2)) {
18258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18259 }
18260 arg2 = static_cast< int >(val2);
18261 ecode3 = SWIG_AsVal_int(obj2, &val3);
18262 if (!SWIG_IsOK(ecode3)) {
18263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18264 }
18265 arg3 = static_cast< int >(val3);
18266 {
18267 PyThreadState* __tstate = wxPyBeginAllowThreads();
18268 (arg1)->SetRange(arg2,arg3);
18269 wxPyEndAllowThreads(__tstate);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 }
18272 resultobj = SWIG_Py_Void();
18273 return resultobj;
18274 fail:
18275 return NULL;
18276 }
18277
18278
18279 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18280 PyObject *resultobj = 0;
18281 wxSlider *arg1 = (wxSlider *) 0 ;
18282 int result;
18283 void *argp1 = 0 ;
18284 int res1 = 0 ;
18285 PyObject *swig_obj[1] ;
18286
18287 if (!args) SWIG_fail;
18288 swig_obj[0] = args;
18289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18290 if (!SWIG_IsOK(res1)) {
18291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18292 }
18293 arg1 = reinterpret_cast< wxSlider * >(argp1);
18294 {
18295 PyThreadState* __tstate = wxPyBeginAllowThreads();
18296 result = (int)((wxSlider const *)arg1)->GetMin();
18297 wxPyEndAllowThreads(__tstate);
18298 if (PyErr_Occurred()) SWIG_fail;
18299 }
18300 resultobj = SWIG_From_int(static_cast< int >(result));
18301 return resultobj;
18302 fail:
18303 return NULL;
18304 }
18305
18306
18307 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18308 PyObject *resultobj = 0;
18309 wxSlider *arg1 = (wxSlider *) 0 ;
18310 int result;
18311 void *argp1 = 0 ;
18312 int res1 = 0 ;
18313 PyObject *swig_obj[1] ;
18314
18315 if (!args) SWIG_fail;
18316 swig_obj[0] = args;
18317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18318 if (!SWIG_IsOK(res1)) {
18319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18320 }
18321 arg1 = reinterpret_cast< wxSlider * >(argp1);
18322 {
18323 PyThreadState* __tstate = wxPyBeginAllowThreads();
18324 result = (int)((wxSlider const *)arg1)->GetMax();
18325 wxPyEndAllowThreads(__tstate);
18326 if (PyErr_Occurred()) SWIG_fail;
18327 }
18328 resultobj = SWIG_From_int(static_cast< int >(result));
18329 return resultobj;
18330 fail:
18331 return NULL;
18332 }
18333
18334
18335 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18336 PyObject *resultobj = 0;
18337 wxSlider *arg1 = (wxSlider *) 0 ;
18338 int arg2 ;
18339 void *argp1 = 0 ;
18340 int res1 = 0 ;
18341 int val2 ;
18342 int ecode2 = 0 ;
18343 PyObject * obj0 = 0 ;
18344 PyObject * obj1 = 0 ;
18345 char * kwnames[] = {
18346 (char *) "self",(char *) "minValue", NULL
18347 };
18348
18349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18351 if (!SWIG_IsOK(res1)) {
18352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18353 }
18354 arg1 = reinterpret_cast< wxSlider * >(argp1);
18355 ecode2 = SWIG_AsVal_int(obj1, &val2);
18356 if (!SWIG_IsOK(ecode2)) {
18357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18358 }
18359 arg2 = static_cast< int >(val2);
18360 {
18361 PyThreadState* __tstate = wxPyBeginAllowThreads();
18362 (arg1)->SetMin(arg2);
18363 wxPyEndAllowThreads(__tstate);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 resultobj = SWIG_Py_Void();
18367 return resultobj;
18368 fail:
18369 return NULL;
18370 }
18371
18372
18373 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18374 PyObject *resultobj = 0;
18375 wxSlider *arg1 = (wxSlider *) 0 ;
18376 int arg2 ;
18377 void *argp1 = 0 ;
18378 int res1 = 0 ;
18379 int val2 ;
18380 int ecode2 = 0 ;
18381 PyObject * obj0 = 0 ;
18382 PyObject * obj1 = 0 ;
18383 char * kwnames[] = {
18384 (char *) "self",(char *) "maxValue", NULL
18385 };
18386
18387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18389 if (!SWIG_IsOK(res1)) {
18390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18391 }
18392 arg1 = reinterpret_cast< wxSlider * >(argp1);
18393 ecode2 = SWIG_AsVal_int(obj1, &val2);
18394 if (!SWIG_IsOK(ecode2)) {
18395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18396 }
18397 arg2 = static_cast< int >(val2);
18398 {
18399 PyThreadState* __tstate = wxPyBeginAllowThreads();
18400 (arg1)->SetMax(arg2);
18401 wxPyEndAllowThreads(__tstate);
18402 if (PyErr_Occurred()) SWIG_fail;
18403 }
18404 resultobj = SWIG_Py_Void();
18405 return resultobj;
18406 fail:
18407 return NULL;
18408 }
18409
18410
18411 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18412 PyObject *resultobj = 0;
18413 wxSlider *arg1 = (wxSlider *) 0 ;
18414 int arg2 ;
18415 void *argp1 = 0 ;
18416 int res1 = 0 ;
18417 int val2 ;
18418 int ecode2 = 0 ;
18419 PyObject * obj0 = 0 ;
18420 PyObject * obj1 = 0 ;
18421 char * kwnames[] = {
18422 (char *) "self",(char *) "lineSize", NULL
18423 };
18424
18425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18427 if (!SWIG_IsOK(res1)) {
18428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18429 }
18430 arg1 = reinterpret_cast< wxSlider * >(argp1);
18431 ecode2 = SWIG_AsVal_int(obj1, &val2);
18432 if (!SWIG_IsOK(ecode2)) {
18433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18434 }
18435 arg2 = static_cast< int >(val2);
18436 {
18437 PyThreadState* __tstate = wxPyBeginAllowThreads();
18438 (arg1)->SetLineSize(arg2);
18439 wxPyEndAllowThreads(__tstate);
18440 if (PyErr_Occurred()) SWIG_fail;
18441 }
18442 resultobj = SWIG_Py_Void();
18443 return resultobj;
18444 fail:
18445 return NULL;
18446 }
18447
18448
18449 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18450 PyObject *resultobj = 0;
18451 wxSlider *arg1 = (wxSlider *) 0 ;
18452 int arg2 ;
18453 void *argp1 = 0 ;
18454 int res1 = 0 ;
18455 int val2 ;
18456 int ecode2 = 0 ;
18457 PyObject * obj0 = 0 ;
18458 PyObject * obj1 = 0 ;
18459 char * kwnames[] = {
18460 (char *) "self",(char *) "pageSize", NULL
18461 };
18462
18463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18465 if (!SWIG_IsOK(res1)) {
18466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18467 }
18468 arg1 = reinterpret_cast< wxSlider * >(argp1);
18469 ecode2 = SWIG_AsVal_int(obj1, &val2);
18470 if (!SWIG_IsOK(ecode2)) {
18471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18472 }
18473 arg2 = static_cast< int >(val2);
18474 {
18475 PyThreadState* __tstate = wxPyBeginAllowThreads();
18476 (arg1)->SetPageSize(arg2);
18477 wxPyEndAllowThreads(__tstate);
18478 if (PyErr_Occurred()) SWIG_fail;
18479 }
18480 resultobj = SWIG_Py_Void();
18481 return resultobj;
18482 fail:
18483 return NULL;
18484 }
18485
18486
18487 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18488 PyObject *resultobj = 0;
18489 wxSlider *arg1 = (wxSlider *) 0 ;
18490 int result;
18491 void *argp1 = 0 ;
18492 int res1 = 0 ;
18493 PyObject *swig_obj[1] ;
18494
18495 if (!args) SWIG_fail;
18496 swig_obj[0] = args;
18497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18498 if (!SWIG_IsOK(res1)) {
18499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18500 }
18501 arg1 = reinterpret_cast< wxSlider * >(argp1);
18502 {
18503 PyThreadState* __tstate = wxPyBeginAllowThreads();
18504 result = (int)((wxSlider const *)arg1)->GetLineSize();
18505 wxPyEndAllowThreads(__tstate);
18506 if (PyErr_Occurred()) SWIG_fail;
18507 }
18508 resultobj = SWIG_From_int(static_cast< int >(result));
18509 return resultobj;
18510 fail:
18511 return NULL;
18512 }
18513
18514
18515 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18516 PyObject *resultobj = 0;
18517 wxSlider *arg1 = (wxSlider *) 0 ;
18518 int result;
18519 void *argp1 = 0 ;
18520 int res1 = 0 ;
18521 PyObject *swig_obj[1] ;
18522
18523 if (!args) SWIG_fail;
18524 swig_obj[0] = args;
18525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18526 if (!SWIG_IsOK(res1)) {
18527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18528 }
18529 arg1 = reinterpret_cast< wxSlider * >(argp1);
18530 {
18531 PyThreadState* __tstate = wxPyBeginAllowThreads();
18532 result = (int)((wxSlider const *)arg1)->GetPageSize();
18533 wxPyEndAllowThreads(__tstate);
18534 if (PyErr_Occurred()) SWIG_fail;
18535 }
18536 resultobj = SWIG_From_int(static_cast< int >(result));
18537 return resultobj;
18538 fail:
18539 return NULL;
18540 }
18541
18542
18543 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18544 PyObject *resultobj = 0;
18545 wxSlider *arg1 = (wxSlider *) 0 ;
18546 int arg2 ;
18547 void *argp1 = 0 ;
18548 int res1 = 0 ;
18549 int val2 ;
18550 int ecode2 = 0 ;
18551 PyObject * obj0 = 0 ;
18552 PyObject * obj1 = 0 ;
18553 char * kwnames[] = {
18554 (char *) "self",(char *) "lenPixels", NULL
18555 };
18556
18557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18559 if (!SWIG_IsOK(res1)) {
18560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18561 }
18562 arg1 = reinterpret_cast< wxSlider * >(argp1);
18563 ecode2 = SWIG_AsVal_int(obj1, &val2);
18564 if (!SWIG_IsOK(ecode2)) {
18565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18566 }
18567 arg2 = static_cast< int >(val2);
18568 {
18569 PyThreadState* __tstate = wxPyBeginAllowThreads();
18570 (arg1)->SetThumbLength(arg2);
18571 wxPyEndAllowThreads(__tstate);
18572 if (PyErr_Occurred()) SWIG_fail;
18573 }
18574 resultobj = SWIG_Py_Void();
18575 return resultobj;
18576 fail:
18577 return NULL;
18578 }
18579
18580
18581 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18582 PyObject *resultobj = 0;
18583 wxSlider *arg1 = (wxSlider *) 0 ;
18584 int result;
18585 void *argp1 = 0 ;
18586 int res1 = 0 ;
18587 PyObject *swig_obj[1] ;
18588
18589 if (!args) SWIG_fail;
18590 swig_obj[0] = args;
18591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18592 if (!SWIG_IsOK(res1)) {
18593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18594 }
18595 arg1 = reinterpret_cast< wxSlider * >(argp1);
18596 {
18597 PyThreadState* __tstate = wxPyBeginAllowThreads();
18598 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18599 wxPyEndAllowThreads(__tstate);
18600 if (PyErr_Occurred()) SWIG_fail;
18601 }
18602 resultobj = SWIG_From_int(static_cast< int >(result));
18603 return resultobj;
18604 fail:
18605 return NULL;
18606 }
18607
18608
18609 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18610 PyObject *resultobj = 0;
18611 wxSlider *arg1 = (wxSlider *) 0 ;
18612 int arg2 ;
18613 int arg3 = (int) 1 ;
18614 void *argp1 = 0 ;
18615 int res1 = 0 ;
18616 int val2 ;
18617 int ecode2 = 0 ;
18618 int val3 ;
18619 int ecode3 = 0 ;
18620 PyObject * obj0 = 0 ;
18621 PyObject * obj1 = 0 ;
18622 PyObject * obj2 = 0 ;
18623 char * kwnames[] = {
18624 (char *) "self",(char *) "n",(char *) "pos", NULL
18625 };
18626
18627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18629 if (!SWIG_IsOK(res1)) {
18630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18631 }
18632 arg1 = reinterpret_cast< wxSlider * >(argp1);
18633 ecode2 = SWIG_AsVal_int(obj1, &val2);
18634 if (!SWIG_IsOK(ecode2)) {
18635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18636 }
18637 arg2 = static_cast< int >(val2);
18638 if (obj2) {
18639 ecode3 = SWIG_AsVal_int(obj2, &val3);
18640 if (!SWIG_IsOK(ecode3)) {
18641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18642 }
18643 arg3 = static_cast< int >(val3);
18644 }
18645 {
18646 PyThreadState* __tstate = wxPyBeginAllowThreads();
18647 (arg1)->SetTickFreq(arg2,arg3);
18648 wxPyEndAllowThreads(__tstate);
18649 if (PyErr_Occurred()) SWIG_fail;
18650 }
18651 resultobj = SWIG_Py_Void();
18652 return resultobj;
18653 fail:
18654 return NULL;
18655 }
18656
18657
18658 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18659 PyObject *resultobj = 0;
18660 wxSlider *arg1 = (wxSlider *) 0 ;
18661 int result;
18662 void *argp1 = 0 ;
18663 int res1 = 0 ;
18664 PyObject *swig_obj[1] ;
18665
18666 if (!args) SWIG_fail;
18667 swig_obj[0] = args;
18668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18669 if (!SWIG_IsOK(res1)) {
18670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18671 }
18672 arg1 = reinterpret_cast< wxSlider * >(argp1);
18673 {
18674 PyThreadState* __tstate = wxPyBeginAllowThreads();
18675 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18676 wxPyEndAllowThreads(__tstate);
18677 if (PyErr_Occurred()) SWIG_fail;
18678 }
18679 resultobj = SWIG_From_int(static_cast< int >(result));
18680 return resultobj;
18681 fail:
18682 return NULL;
18683 }
18684
18685
18686 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18687 PyObject *resultobj = 0;
18688 wxSlider *arg1 = (wxSlider *) 0 ;
18689 void *argp1 = 0 ;
18690 int res1 = 0 ;
18691 PyObject *swig_obj[1] ;
18692
18693 if (!args) SWIG_fail;
18694 swig_obj[0] = args;
18695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18696 if (!SWIG_IsOK(res1)) {
18697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18698 }
18699 arg1 = reinterpret_cast< wxSlider * >(argp1);
18700 {
18701 PyThreadState* __tstate = wxPyBeginAllowThreads();
18702 (arg1)->ClearTicks();
18703 wxPyEndAllowThreads(__tstate);
18704 if (PyErr_Occurred()) SWIG_fail;
18705 }
18706 resultobj = SWIG_Py_Void();
18707 return resultobj;
18708 fail:
18709 return NULL;
18710 }
18711
18712
18713 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18714 PyObject *resultobj = 0;
18715 wxSlider *arg1 = (wxSlider *) 0 ;
18716 int arg2 ;
18717 void *argp1 = 0 ;
18718 int res1 = 0 ;
18719 int val2 ;
18720 int ecode2 = 0 ;
18721 PyObject * obj0 = 0 ;
18722 PyObject * obj1 = 0 ;
18723 char * kwnames[] = {
18724 (char *) "self",(char *) "tickPos", NULL
18725 };
18726
18727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18729 if (!SWIG_IsOK(res1)) {
18730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18731 }
18732 arg1 = reinterpret_cast< wxSlider * >(argp1);
18733 ecode2 = SWIG_AsVal_int(obj1, &val2);
18734 if (!SWIG_IsOK(ecode2)) {
18735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18736 }
18737 arg2 = static_cast< int >(val2);
18738 {
18739 PyThreadState* __tstate = wxPyBeginAllowThreads();
18740 (arg1)->SetTick(arg2);
18741 wxPyEndAllowThreads(__tstate);
18742 if (PyErr_Occurred()) SWIG_fail;
18743 }
18744 resultobj = SWIG_Py_Void();
18745 return resultobj;
18746 fail:
18747 return NULL;
18748 }
18749
18750
18751 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18752 PyObject *resultobj = 0;
18753 wxSlider *arg1 = (wxSlider *) 0 ;
18754 void *argp1 = 0 ;
18755 int res1 = 0 ;
18756 PyObject *swig_obj[1] ;
18757
18758 if (!args) SWIG_fail;
18759 swig_obj[0] = args;
18760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18761 if (!SWIG_IsOK(res1)) {
18762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18763 }
18764 arg1 = reinterpret_cast< wxSlider * >(argp1);
18765 {
18766 PyThreadState* __tstate = wxPyBeginAllowThreads();
18767 (arg1)->ClearSel();
18768 wxPyEndAllowThreads(__tstate);
18769 if (PyErr_Occurred()) SWIG_fail;
18770 }
18771 resultobj = SWIG_Py_Void();
18772 return resultobj;
18773 fail:
18774 return NULL;
18775 }
18776
18777
18778 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18779 PyObject *resultobj = 0;
18780 wxSlider *arg1 = (wxSlider *) 0 ;
18781 int result;
18782 void *argp1 = 0 ;
18783 int res1 = 0 ;
18784 PyObject *swig_obj[1] ;
18785
18786 if (!args) SWIG_fail;
18787 swig_obj[0] = args;
18788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18789 if (!SWIG_IsOK(res1)) {
18790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18791 }
18792 arg1 = reinterpret_cast< wxSlider * >(argp1);
18793 {
18794 PyThreadState* __tstate = wxPyBeginAllowThreads();
18795 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18796 wxPyEndAllowThreads(__tstate);
18797 if (PyErr_Occurred()) SWIG_fail;
18798 }
18799 resultobj = SWIG_From_int(static_cast< int >(result));
18800 return resultobj;
18801 fail:
18802 return NULL;
18803 }
18804
18805
18806 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18807 PyObject *resultobj = 0;
18808 wxSlider *arg1 = (wxSlider *) 0 ;
18809 int result;
18810 void *argp1 = 0 ;
18811 int res1 = 0 ;
18812 PyObject *swig_obj[1] ;
18813
18814 if (!args) SWIG_fail;
18815 swig_obj[0] = args;
18816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18817 if (!SWIG_IsOK(res1)) {
18818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18819 }
18820 arg1 = reinterpret_cast< wxSlider * >(argp1);
18821 {
18822 PyThreadState* __tstate = wxPyBeginAllowThreads();
18823 result = (int)((wxSlider const *)arg1)->GetSelStart();
18824 wxPyEndAllowThreads(__tstate);
18825 if (PyErr_Occurred()) SWIG_fail;
18826 }
18827 resultobj = SWIG_From_int(static_cast< int >(result));
18828 return resultobj;
18829 fail:
18830 return NULL;
18831 }
18832
18833
18834 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18835 PyObject *resultobj = 0;
18836 wxSlider *arg1 = (wxSlider *) 0 ;
18837 int arg2 ;
18838 int arg3 ;
18839 void *argp1 = 0 ;
18840 int res1 = 0 ;
18841 int val2 ;
18842 int ecode2 = 0 ;
18843 int val3 ;
18844 int ecode3 = 0 ;
18845 PyObject * obj0 = 0 ;
18846 PyObject * obj1 = 0 ;
18847 PyObject * obj2 = 0 ;
18848 char * kwnames[] = {
18849 (char *) "self",(char *) "min",(char *) "max", NULL
18850 };
18851
18852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18854 if (!SWIG_IsOK(res1)) {
18855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18856 }
18857 arg1 = reinterpret_cast< wxSlider * >(argp1);
18858 ecode2 = SWIG_AsVal_int(obj1, &val2);
18859 if (!SWIG_IsOK(ecode2)) {
18860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18861 }
18862 arg2 = static_cast< int >(val2);
18863 ecode3 = SWIG_AsVal_int(obj2, &val3);
18864 if (!SWIG_IsOK(ecode3)) {
18865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18866 }
18867 arg3 = static_cast< int >(val3);
18868 {
18869 PyThreadState* __tstate = wxPyBeginAllowThreads();
18870 (arg1)->SetSelection(arg2,arg3);
18871 wxPyEndAllowThreads(__tstate);
18872 if (PyErr_Occurred()) SWIG_fail;
18873 }
18874 resultobj = SWIG_Py_Void();
18875 return resultobj;
18876 fail:
18877 return NULL;
18878 }
18879
18880
18881 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18882 PyObject *resultobj = 0;
18883 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18884 SwigValueWrapper<wxVisualAttributes > result;
18885 int val1 ;
18886 int ecode1 = 0 ;
18887 PyObject * obj0 = 0 ;
18888 char * kwnames[] = {
18889 (char *) "variant", NULL
18890 };
18891
18892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18893 if (obj0) {
18894 ecode1 = SWIG_AsVal_int(obj0, &val1);
18895 if (!SWIG_IsOK(ecode1)) {
18896 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18897 }
18898 arg1 = static_cast< wxWindowVariant >(val1);
18899 }
18900 {
18901 if (!wxPyCheckForApp()) SWIG_fail;
18902 PyThreadState* __tstate = wxPyBeginAllowThreads();
18903 result = wxSlider::GetClassDefaultAttributes(arg1);
18904 wxPyEndAllowThreads(__tstate);
18905 if (PyErr_Occurred()) SWIG_fail;
18906 }
18907 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18908 return resultobj;
18909 fail:
18910 return NULL;
18911 }
18912
18913
18914 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18915 PyObject *obj;
18916 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18917 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18918 return SWIG_Py_Void();
18919 }
18920
18921 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18922 return SWIG_Python_InitShadowInstance(args);
18923 }
18924
18925 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18926 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18927 return 1;
18928 }
18929
18930
18931 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18932 PyObject *pyobj = 0;
18933
18934 {
18935 #if wxUSE_UNICODE
18936 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18937 #else
18938 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18939 #endif
18940 }
18941 return pyobj;
18942 }
18943
18944
18945 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18946 PyObject *resultobj = 0;
18947 wxWindow *arg1 = (wxWindow *) 0 ;
18948 int arg2 = (int) -1 ;
18949 wxString const &arg3_defvalue = wxPyEmptyString ;
18950 wxString *arg3 = (wxString *) &arg3_defvalue ;
18951 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18952 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18953 wxSize const &arg5_defvalue = wxDefaultSize ;
18954 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18955 long arg6 = (long) 0 ;
18956 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18957 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18958 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18959 wxString *arg8 = (wxString *) &arg8_defvalue ;
18960 wxToggleButton *result = 0 ;
18961 void *argp1 = 0 ;
18962 int res1 = 0 ;
18963 int val2 ;
18964 int ecode2 = 0 ;
18965 bool temp3 = false ;
18966 wxPoint temp4 ;
18967 wxSize temp5 ;
18968 long val6 ;
18969 int ecode6 = 0 ;
18970 void *argp7 = 0 ;
18971 int res7 = 0 ;
18972 bool temp8 = false ;
18973 PyObject * obj0 = 0 ;
18974 PyObject * obj1 = 0 ;
18975 PyObject * obj2 = 0 ;
18976 PyObject * obj3 = 0 ;
18977 PyObject * obj4 = 0 ;
18978 PyObject * obj5 = 0 ;
18979 PyObject * obj6 = 0 ;
18980 PyObject * obj7 = 0 ;
18981 char * kwnames[] = {
18982 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18983 };
18984
18985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18987 if (!SWIG_IsOK(res1)) {
18988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18989 }
18990 arg1 = reinterpret_cast< wxWindow * >(argp1);
18991 if (obj1) {
18992 ecode2 = SWIG_AsVal_int(obj1, &val2);
18993 if (!SWIG_IsOK(ecode2)) {
18994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18995 }
18996 arg2 = static_cast< int >(val2);
18997 }
18998 if (obj2) {
18999 {
19000 arg3 = wxString_in_helper(obj2);
19001 if (arg3 == NULL) SWIG_fail;
19002 temp3 = true;
19003 }
19004 }
19005 if (obj3) {
19006 {
19007 arg4 = &temp4;
19008 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
19009 }
19010 }
19011 if (obj4) {
19012 {
19013 arg5 = &temp5;
19014 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
19015 }
19016 }
19017 if (obj5) {
19018 ecode6 = SWIG_AsVal_long(obj5, &val6);
19019 if (!SWIG_IsOK(ecode6)) {
19020 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
19021 }
19022 arg6 = static_cast< long >(val6);
19023 }
19024 if (obj6) {
19025 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
19026 if (!SWIG_IsOK(res7)) {
19027 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
19028 }
19029 if (!argp7) {
19030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
19031 }
19032 arg7 = reinterpret_cast< wxValidator * >(argp7);
19033 }
19034 if (obj7) {
19035 {
19036 arg8 = wxString_in_helper(obj7);
19037 if (arg8 == NULL) SWIG_fail;
19038 temp8 = true;
19039 }
19040 }
19041 {
19042 if (!wxPyCheckForApp()) SWIG_fail;
19043 PyThreadState* __tstate = wxPyBeginAllowThreads();
19044 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
19045 wxPyEndAllowThreads(__tstate);
19046 if (PyErr_Occurred()) SWIG_fail;
19047 }
19048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
19049 {
19050 if (temp3)
19051 delete arg3;
19052 }
19053 {
19054 if (temp8)
19055 delete arg8;
19056 }
19057 return resultobj;
19058 fail:
19059 {
19060 if (temp3)
19061 delete arg3;
19062 }
19063 {
19064 if (temp8)
19065 delete arg8;
19066 }
19067 return NULL;
19068 }
19069
19070
19071 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19072 PyObject *resultobj = 0;
19073 wxToggleButton *result = 0 ;
19074
19075 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
19076 {
19077 if (!wxPyCheckForApp()) SWIG_fail;
19078 PyThreadState* __tstate = wxPyBeginAllowThreads();
19079 result = (wxToggleButton *)new wxToggleButton();
19080 wxPyEndAllowThreads(__tstate);
19081 if (PyErr_Occurred()) SWIG_fail;
19082 }
19083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
19084 return resultobj;
19085 fail:
19086 return NULL;
19087 }
19088
19089
19090 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19091 PyObject *resultobj = 0;
19092 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19093 wxWindow *arg2 = (wxWindow *) 0 ;
19094 int arg3 = (int) -1 ;
19095 wxString const &arg4_defvalue = wxPyEmptyString ;
19096 wxString *arg4 = (wxString *) &arg4_defvalue ;
19097 wxPoint const &arg5_defvalue = wxDefaultPosition ;
19098 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
19099 wxSize const &arg6_defvalue = wxDefaultSize ;
19100 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
19101 long arg7 = (long) 0 ;
19102 wxValidator const &arg8_defvalue = wxDefaultValidator ;
19103 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
19104 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
19105 wxString *arg9 = (wxString *) &arg9_defvalue ;
19106 bool result;
19107 void *argp1 = 0 ;
19108 int res1 = 0 ;
19109 void *argp2 = 0 ;
19110 int res2 = 0 ;
19111 int val3 ;
19112 int ecode3 = 0 ;
19113 bool temp4 = false ;
19114 wxPoint temp5 ;
19115 wxSize temp6 ;
19116 long val7 ;
19117 int ecode7 = 0 ;
19118 void *argp8 = 0 ;
19119 int res8 = 0 ;
19120 bool temp9 = false ;
19121 PyObject * obj0 = 0 ;
19122 PyObject * obj1 = 0 ;
19123 PyObject * obj2 = 0 ;
19124 PyObject * obj3 = 0 ;
19125 PyObject * obj4 = 0 ;
19126 PyObject * obj5 = 0 ;
19127 PyObject * obj6 = 0 ;
19128 PyObject * obj7 = 0 ;
19129 PyObject * obj8 = 0 ;
19130 char * kwnames[] = {
19131 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19132 };
19133
19134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
19135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19136 if (!SWIG_IsOK(res1)) {
19137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19138 }
19139 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19140 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19141 if (!SWIG_IsOK(res2)) {
19142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
19143 }
19144 arg2 = reinterpret_cast< wxWindow * >(argp2);
19145 if (obj2) {
19146 ecode3 = SWIG_AsVal_int(obj2, &val3);
19147 if (!SWIG_IsOK(ecode3)) {
19148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
19149 }
19150 arg3 = static_cast< int >(val3);
19151 }
19152 if (obj3) {
19153 {
19154 arg4 = wxString_in_helper(obj3);
19155 if (arg4 == NULL) SWIG_fail;
19156 temp4 = true;
19157 }
19158 }
19159 if (obj4) {
19160 {
19161 arg5 = &temp5;
19162 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19163 }
19164 }
19165 if (obj5) {
19166 {
19167 arg6 = &temp6;
19168 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
19169 }
19170 }
19171 if (obj6) {
19172 ecode7 = SWIG_AsVal_long(obj6, &val7);
19173 if (!SWIG_IsOK(ecode7)) {
19174 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
19175 }
19176 arg7 = static_cast< long >(val7);
19177 }
19178 if (obj7) {
19179 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
19180 if (!SWIG_IsOK(res8)) {
19181 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19182 }
19183 if (!argp8) {
19184 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19185 }
19186 arg8 = reinterpret_cast< wxValidator * >(argp8);
19187 }
19188 if (obj8) {
19189 {
19190 arg9 = wxString_in_helper(obj8);
19191 if (arg9 == NULL) SWIG_fail;
19192 temp9 = true;
19193 }
19194 }
19195 {
19196 PyThreadState* __tstate = wxPyBeginAllowThreads();
19197 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19198 wxPyEndAllowThreads(__tstate);
19199 if (PyErr_Occurred()) SWIG_fail;
19200 }
19201 {
19202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19203 }
19204 {
19205 if (temp4)
19206 delete arg4;
19207 }
19208 {
19209 if (temp9)
19210 delete arg9;
19211 }
19212 return resultobj;
19213 fail:
19214 {
19215 if (temp4)
19216 delete arg4;
19217 }
19218 {
19219 if (temp9)
19220 delete arg9;
19221 }
19222 return NULL;
19223 }
19224
19225
19226 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19227 PyObject *resultobj = 0;
19228 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19229 bool arg2 ;
19230 void *argp1 = 0 ;
19231 int res1 = 0 ;
19232 bool val2 ;
19233 int ecode2 = 0 ;
19234 PyObject * obj0 = 0 ;
19235 PyObject * obj1 = 0 ;
19236 char * kwnames[] = {
19237 (char *) "self",(char *) "value", NULL
19238 };
19239
19240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19242 if (!SWIG_IsOK(res1)) {
19243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19244 }
19245 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19246 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19247 if (!SWIG_IsOK(ecode2)) {
19248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19249 }
19250 arg2 = static_cast< bool >(val2);
19251 {
19252 PyThreadState* __tstate = wxPyBeginAllowThreads();
19253 (arg1)->SetValue(arg2);
19254 wxPyEndAllowThreads(__tstate);
19255 if (PyErr_Occurred()) SWIG_fail;
19256 }
19257 resultobj = SWIG_Py_Void();
19258 return resultobj;
19259 fail:
19260 return NULL;
19261 }
19262
19263
19264 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19265 PyObject *resultobj = 0;
19266 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19267 bool result;
19268 void *argp1 = 0 ;
19269 int res1 = 0 ;
19270 PyObject *swig_obj[1] ;
19271
19272 if (!args) SWIG_fail;
19273 swig_obj[0] = args;
19274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19275 if (!SWIG_IsOK(res1)) {
19276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19277 }
19278 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19279 {
19280 PyThreadState* __tstate = wxPyBeginAllowThreads();
19281 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19282 wxPyEndAllowThreads(__tstate);
19283 if (PyErr_Occurred()) SWIG_fail;
19284 }
19285 {
19286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19287 }
19288 return resultobj;
19289 fail:
19290 return NULL;
19291 }
19292
19293
19294 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19295 PyObject *resultobj = 0;
19296 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19297 SwigValueWrapper<wxVisualAttributes > result;
19298 int val1 ;
19299 int ecode1 = 0 ;
19300 PyObject * obj0 = 0 ;
19301 char * kwnames[] = {
19302 (char *) "variant", NULL
19303 };
19304
19305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19306 if (obj0) {
19307 ecode1 = SWIG_AsVal_int(obj0, &val1);
19308 if (!SWIG_IsOK(ecode1)) {
19309 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19310 }
19311 arg1 = static_cast< wxWindowVariant >(val1);
19312 }
19313 {
19314 if (!wxPyCheckForApp()) SWIG_fail;
19315 PyThreadState* __tstate = wxPyBeginAllowThreads();
19316 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19317 wxPyEndAllowThreads(__tstate);
19318 if (PyErr_Occurred()) SWIG_fail;
19319 }
19320 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19321 return resultobj;
19322 fail:
19323 return NULL;
19324 }
19325
19326
19327 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19328 PyObject *obj;
19329 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19330 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19331 return SWIG_Py_Void();
19332 }
19333
19334 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19335 return SWIG_Python_InitShadowInstance(args);
19336 }
19337
19338 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19339 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19340 return 1;
19341 }
19342
19343
19344 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19345 PyObject *pyobj = 0;
19346
19347 {
19348 #if wxUSE_UNICODE
19349 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19350 #else
19351 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19352 #endif
19353 }
19354 return pyobj;
19355 }
19356
19357
19358 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19359 PyObject *resultobj = 0;
19360 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19361 size_t result;
19362 void *argp1 = 0 ;
19363 int res1 = 0 ;
19364 PyObject *swig_obj[1] ;
19365
19366 if (!args) SWIG_fail;
19367 swig_obj[0] = args;
19368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19369 if (!SWIG_IsOK(res1)) {
19370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19371 }
19372 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19373 {
19374 PyThreadState* __tstate = wxPyBeginAllowThreads();
19375 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19376 wxPyEndAllowThreads(__tstate);
19377 if (PyErr_Occurred()) SWIG_fail;
19378 }
19379 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19380 return resultobj;
19381 fail:
19382 return NULL;
19383 }
19384
19385
19386 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19387 PyObject *resultobj = 0;
19388 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19389 size_t arg2 ;
19390 wxWindow *result = 0 ;
19391 void *argp1 = 0 ;
19392 int res1 = 0 ;
19393 size_t val2 ;
19394 int ecode2 = 0 ;
19395 PyObject * obj0 = 0 ;
19396 PyObject * obj1 = 0 ;
19397 char * kwnames[] = {
19398 (char *) "self",(char *) "n", NULL
19399 };
19400
19401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19403 if (!SWIG_IsOK(res1)) {
19404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19405 }
19406 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19407 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19408 if (!SWIG_IsOK(ecode2)) {
19409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19410 }
19411 arg2 = static_cast< size_t >(val2);
19412 {
19413 PyThreadState* __tstate = wxPyBeginAllowThreads();
19414 result = (wxWindow *)(arg1)->GetPage(arg2);
19415 wxPyEndAllowThreads(__tstate);
19416 if (PyErr_Occurred()) SWIG_fail;
19417 }
19418 {
19419 resultobj = wxPyMake_wxObject(result, 0);
19420 }
19421 return resultobj;
19422 fail:
19423 return NULL;
19424 }
19425
19426
19427 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19428 PyObject *resultobj = 0;
19429 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19430 wxWindow *result = 0 ;
19431 void *argp1 = 0 ;
19432 int res1 = 0 ;
19433 PyObject *swig_obj[1] ;
19434
19435 if (!args) SWIG_fail;
19436 swig_obj[0] = args;
19437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19438 if (!SWIG_IsOK(res1)) {
19439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19440 }
19441 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19442 {
19443 PyThreadState* __tstate = wxPyBeginAllowThreads();
19444 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19445 wxPyEndAllowThreads(__tstate);
19446 if (PyErr_Occurred()) SWIG_fail;
19447 }
19448 {
19449 resultobj = wxPyMake_wxObject(result, 0);
19450 }
19451 return resultobj;
19452 fail:
19453 return NULL;
19454 }
19455
19456
19457 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19458 PyObject *resultobj = 0;
19459 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19460 int result;
19461 void *argp1 = 0 ;
19462 int res1 = 0 ;
19463 PyObject *swig_obj[1] ;
19464
19465 if (!args) SWIG_fail;
19466 swig_obj[0] = args;
19467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19468 if (!SWIG_IsOK(res1)) {
19469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19470 }
19471 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19472 {
19473 PyThreadState* __tstate = wxPyBeginAllowThreads();
19474 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19475 wxPyEndAllowThreads(__tstate);
19476 if (PyErr_Occurred()) SWIG_fail;
19477 }
19478 resultobj = SWIG_From_int(static_cast< int >(result));
19479 return resultobj;
19480 fail:
19481 return NULL;
19482 }
19483
19484
19485 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19486 PyObject *resultobj = 0;
19487 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19488 size_t arg2 ;
19489 wxString *arg3 = 0 ;
19490 bool result;
19491 void *argp1 = 0 ;
19492 int res1 = 0 ;
19493 size_t val2 ;
19494 int ecode2 = 0 ;
19495 bool temp3 = false ;
19496 PyObject * obj0 = 0 ;
19497 PyObject * obj1 = 0 ;
19498 PyObject * obj2 = 0 ;
19499 char * kwnames[] = {
19500 (char *) "self",(char *) "n",(char *) "strText", NULL
19501 };
19502
19503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19505 if (!SWIG_IsOK(res1)) {
19506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19507 }
19508 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19509 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19510 if (!SWIG_IsOK(ecode2)) {
19511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19512 }
19513 arg2 = static_cast< size_t >(val2);
19514 {
19515 arg3 = wxString_in_helper(obj2);
19516 if (arg3 == NULL) SWIG_fail;
19517 temp3 = true;
19518 }
19519 {
19520 PyThreadState* __tstate = wxPyBeginAllowThreads();
19521 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19522 wxPyEndAllowThreads(__tstate);
19523 if (PyErr_Occurred()) SWIG_fail;
19524 }
19525 {
19526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19527 }
19528 {
19529 if (temp3)
19530 delete arg3;
19531 }
19532 return resultobj;
19533 fail:
19534 {
19535 if (temp3)
19536 delete arg3;
19537 }
19538 return NULL;
19539 }
19540
19541
19542 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19543 PyObject *resultobj = 0;
19544 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19545 size_t arg2 ;
19546 wxString result;
19547 void *argp1 = 0 ;
19548 int res1 = 0 ;
19549 size_t val2 ;
19550 int ecode2 = 0 ;
19551 PyObject * obj0 = 0 ;
19552 PyObject * obj1 = 0 ;
19553 char * kwnames[] = {
19554 (char *) "self",(char *) "n", NULL
19555 };
19556
19557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19559 if (!SWIG_IsOK(res1)) {
19560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19561 }
19562 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19563 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19564 if (!SWIG_IsOK(ecode2)) {
19565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19566 }
19567 arg2 = static_cast< size_t >(val2);
19568 {
19569 PyThreadState* __tstate = wxPyBeginAllowThreads();
19570 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19571 wxPyEndAllowThreads(__tstate);
19572 if (PyErr_Occurred()) SWIG_fail;
19573 }
19574 {
19575 #if wxUSE_UNICODE
19576 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19577 #else
19578 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19579 #endif
19580 }
19581 return resultobj;
19582 fail:
19583 return NULL;
19584 }
19585
19586
19587 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19588 PyObject *resultobj = 0;
19589 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19590 wxImageList *arg2 = (wxImageList *) 0 ;
19591 void *argp1 = 0 ;
19592 int res1 = 0 ;
19593 void *argp2 = 0 ;
19594 int res2 = 0 ;
19595 PyObject * obj0 = 0 ;
19596 PyObject * obj1 = 0 ;
19597 char * kwnames[] = {
19598 (char *) "self",(char *) "imageList", NULL
19599 };
19600
19601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19603 if (!SWIG_IsOK(res1)) {
19604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19605 }
19606 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19607 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19608 if (!SWIG_IsOK(res2)) {
19609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19610 }
19611 arg2 = reinterpret_cast< wxImageList * >(argp2);
19612 {
19613 PyThreadState* __tstate = wxPyBeginAllowThreads();
19614 (arg1)->SetImageList(arg2);
19615 wxPyEndAllowThreads(__tstate);
19616 if (PyErr_Occurred()) SWIG_fail;
19617 }
19618 resultobj = SWIG_Py_Void();
19619 return resultobj;
19620 fail:
19621 return NULL;
19622 }
19623
19624
19625 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19626 PyObject *resultobj = 0;
19627 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19628 wxImageList *arg2 = (wxImageList *) 0 ;
19629 void *argp1 = 0 ;
19630 int res1 = 0 ;
19631 int res2 = 0 ;
19632 PyObject * obj0 = 0 ;
19633 PyObject * obj1 = 0 ;
19634 char * kwnames[] = {
19635 (char *) "self",(char *) "imageList", NULL
19636 };
19637
19638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19640 if (!SWIG_IsOK(res1)) {
19641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19642 }
19643 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19644 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19645 if (!SWIG_IsOK(res2)) {
19646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19647 }
19648 {
19649 PyThreadState* __tstate = wxPyBeginAllowThreads();
19650 (arg1)->AssignImageList(arg2);
19651 wxPyEndAllowThreads(__tstate);
19652 if (PyErr_Occurred()) SWIG_fail;
19653 }
19654 resultobj = SWIG_Py_Void();
19655 return resultobj;
19656 fail:
19657 return NULL;
19658 }
19659
19660
19661 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19662 PyObject *resultobj = 0;
19663 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19664 wxImageList *result = 0 ;
19665 void *argp1 = 0 ;
19666 int res1 = 0 ;
19667 PyObject *swig_obj[1] ;
19668
19669 if (!args) SWIG_fail;
19670 swig_obj[0] = args;
19671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19672 if (!SWIG_IsOK(res1)) {
19673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19674 }
19675 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19676 {
19677 PyThreadState* __tstate = wxPyBeginAllowThreads();
19678 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19679 wxPyEndAllowThreads(__tstate);
19680 if (PyErr_Occurred()) SWIG_fail;
19681 }
19682 {
19683 resultobj = wxPyMake_wxObject(result, (bool)0);
19684 }
19685 return resultobj;
19686 fail:
19687 return NULL;
19688 }
19689
19690
19691 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19692 PyObject *resultobj = 0;
19693 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19694 size_t arg2 ;
19695 int result;
19696 void *argp1 = 0 ;
19697 int res1 = 0 ;
19698 size_t val2 ;
19699 int ecode2 = 0 ;
19700 PyObject * obj0 = 0 ;
19701 PyObject * obj1 = 0 ;
19702 char * kwnames[] = {
19703 (char *) "self",(char *) "n", NULL
19704 };
19705
19706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19708 if (!SWIG_IsOK(res1)) {
19709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19710 }
19711 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19712 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19713 if (!SWIG_IsOK(ecode2)) {
19714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19715 }
19716 arg2 = static_cast< size_t >(val2);
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19720 wxPyEndAllowThreads(__tstate);
19721 if (PyErr_Occurred()) SWIG_fail;
19722 }
19723 resultobj = SWIG_From_int(static_cast< int >(result));
19724 return resultobj;
19725 fail:
19726 return NULL;
19727 }
19728
19729
19730 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19731 PyObject *resultobj = 0;
19732 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19733 size_t arg2 ;
19734 int arg3 ;
19735 bool result;
19736 void *argp1 = 0 ;
19737 int res1 = 0 ;
19738 size_t val2 ;
19739 int ecode2 = 0 ;
19740 int val3 ;
19741 int ecode3 = 0 ;
19742 PyObject * obj0 = 0 ;
19743 PyObject * obj1 = 0 ;
19744 PyObject * obj2 = 0 ;
19745 char * kwnames[] = {
19746 (char *) "self",(char *) "n",(char *) "imageId", NULL
19747 };
19748
19749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19751 if (!SWIG_IsOK(res1)) {
19752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19753 }
19754 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19755 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19756 if (!SWIG_IsOK(ecode2)) {
19757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19758 }
19759 arg2 = static_cast< size_t >(val2);
19760 ecode3 = SWIG_AsVal_int(obj2, &val3);
19761 if (!SWIG_IsOK(ecode3)) {
19762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19763 }
19764 arg3 = static_cast< int >(val3);
19765 {
19766 PyThreadState* __tstate = wxPyBeginAllowThreads();
19767 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19768 wxPyEndAllowThreads(__tstate);
19769 if (PyErr_Occurred()) SWIG_fail;
19770 }
19771 {
19772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19773 }
19774 return resultobj;
19775 fail:
19776 return NULL;
19777 }
19778
19779
19780 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19781 PyObject *resultobj = 0;
19782 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19783 wxSize *arg2 = 0 ;
19784 void *argp1 = 0 ;
19785 int res1 = 0 ;
19786 wxSize temp2 ;
19787 PyObject * obj0 = 0 ;
19788 PyObject * obj1 = 0 ;
19789 char * kwnames[] = {
19790 (char *) "self",(char *) "size", NULL
19791 };
19792
19793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19795 if (!SWIG_IsOK(res1)) {
19796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19797 }
19798 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19799 {
19800 arg2 = &temp2;
19801 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19802 }
19803 {
19804 PyThreadState* __tstate = wxPyBeginAllowThreads();
19805 (arg1)->SetPageSize((wxSize const &)*arg2);
19806 wxPyEndAllowThreads(__tstate);
19807 if (PyErr_Occurred()) SWIG_fail;
19808 }
19809 resultobj = SWIG_Py_Void();
19810 return resultobj;
19811 fail:
19812 return NULL;
19813 }
19814
19815
19816 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19817 PyObject *resultobj = 0;
19818 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19819 wxSize *arg2 = 0 ;
19820 wxSize result;
19821 void *argp1 = 0 ;
19822 int res1 = 0 ;
19823 wxSize temp2 ;
19824 PyObject * obj0 = 0 ;
19825 PyObject * obj1 = 0 ;
19826 char * kwnames[] = {
19827 (char *) "self",(char *) "sizePage", NULL
19828 };
19829
19830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19832 if (!SWIG_IsOK(res1)) {
19833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19834 }
19835 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19836 {
19837 arg2 = &temp2;
19838 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19839 }
19840 {
19841 PyThreadState* __tstate = wxPyBeginAllowThreads();
19842 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19843 wxPyEndAllowThreads(__tstate);
19844 if (PyErr_Occurred()) SWIG_fail;
19845 }
19846 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19847 return resultobj;
19848 fail:
19849 return NULL;
19850 }
19851
19852
19853 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19854 PyObject *resultobj = 0;
19855 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19856 unsigned int result;
19857 void *argp1 = 0 ;
19858 int res1 = 0 ;
19859 PyObject *swig_obj[1] ;
19860
19861 if (!args) SWIG_fail;
19862 swig_obj[0] = args;
19863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19864 if (!SWIG_IsOK(res1)) {
19865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19866 }
19867 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19868 {
19869 PyThreadState* __tstate = wxPyBeginAllowThreads();
19870 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19871 wxPyEndAllowThreads(__tstate);
19872 if (PyErr_Occurred()) SWIG_fail;
19873 }
19874 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19875 return resultobj;
19876 fail:
19877 return NULL;
19878 }
19879
19880
19881 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19882 PyObject *resultobj = 0;
19883 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19884 unsigned int arg2 ;
19885 void *argp1 = 0 ;
19886 int res1 = 0 ;
19887 unsigned int val2 ;
19888 int ecode2 = 0 ;
19889 PyObject * obj0 = 0 ;
19890 PyObject * obj1 = 0 ;
19891 char * kwnames[] = {
19892 (char *) "self",(char *) "internalBorder", NULL
19893 };
19894
19895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19897 if (!SWIG_IsOK(res1)) {
19898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19899 }
19900 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19901 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19902 if (!SWIG_IsOK(ecode2)) {
19903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19904 }
19905 arg2 = static_cast< unsigned int >(val2);
19906 {
19907 PyThreadState* __tstate = wxPyBeginAllowThreads();
19908 (arg1)->SetInternalBorder(arg2);
19909 wxPyEndAllowThreads(__tstate);
19910 if (PyErr_Occurred()) SWIG_fail;
19911 }
19912 resultobj = SWIG_Py_Void();
19913 return resultobj;
19914 fail:
19915 return NULL;
19916 }
19917
19918
19919 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19920 PyObject *resultobj = 0;
19921 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19922 bool result;
19923 void *argp1 = 0 ;
19924 int res1 = 0 ;
19925 PyObject *swig_obj[1] ;
19926
19927 if (!args) SWIG_fail;
19928 swig_obj[0] = args;
19929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19930 if (!SWIG_IsOK(res1)) {
19931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19932 }
19933 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19934 {
19935 PyThreadState* __tstate = wxPyBeginAllowThreads();
19936 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19937 wxPyEndAllowThreads(__tstate);
19938 if (PyErr_Occurred()) SWIG_fail;
19939 }
19940 {
19941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19942 }
19943 return resultobj;
19944 fail:
19945 return NULL;
19946 }
19947
19948
19949 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19950 PyObject *resultobj = 0;
19951 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19952 int arg2 ;
19953 void *argp1 = 0 ;
19954 int res1 = 0 ;
19955 int val2 ;
19956 int ecode2 = 0 ;
19957 PyObject * obj0 = 0 ;
19958 PyObject * obj1 = 0 ;
19959 char * kwnames[] = {
19960 (char *) "self",(char *) "margin", NULL
19961 };
19962
19963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19965 if (!SWIG_IsOK(res1)) {
19966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19967 }
19968 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19969 ecode2 = SWIG_AsVal_int(obj1, &val2);
19970 if (!SWIG_IsOK(ecode2)) {
19971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19972 }
19973 arg2 = static_cast< int >(val2);
19974 {
19975 PyThreadState* __tstate = wxPyBeginAllowThreads();
19976 (arg1)->SetControlMargin(arg2);
19977 wxPyEndAllowThreads(__tstate);
19978 if (PyErr_Occurred()) SWIG_fail;
19979 }
19980 resultobj = SWIG_Py_Void();
19981 return resultobj;
19982 fail:
19983 return NULL;
19984 }
19985
19986
19987 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19988 PyObject *resultobj = 0;
19989 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19990 int result;
19991 void *argp1 = 0 ;
19992 int res1 = 0 ;
19993 PyObject *swig_obj[1] ;
19994
19995 if (!args) SWIG_fail;
19996 swig_obj[0] = args;
19997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19998 if (!SWIG_IsOK(res1)) {
19999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20000 }
20001 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20002 {
20003 PyThreadState* __tstate = wxPyBeginAllowThreads();
20004 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
20005 wxPyEndAllowThreads(__tstate);
20006 if (PyErr_Occurred()) SWIG_fail;
20007 }
20008 resultobj = SWIG_From_int(static_cast< int >(result));
20009 return resultobj;
20010 fail:
20011 return NULL;
20012 }
20013
20014
20015 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20016 PyObject *resultobj = 0;
20017 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20018 bool arg2 ;
20019 void *argp1 = 0 ;
20020 int res1 = 0 ;
20021 bool val2 ;
20022 int ecode2 = 0 ;
20023 PyObject * obj0 = 0 ;
20024 PyObject * obj1 = 0 ;
20025 char * kwnames[] = {
20026 (char *) "self",(char *) "fit", NULL
20027 };
20028
20029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
20030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20031 if (!SWIG_IsOK(res1)) {
20032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20033 }
20034 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20035 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20036 if (!SWIG_IsOK(ecode2)) {
20037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
20038 }
20039 arg2 = static_cast< bool >(val2);
20040 {
20041 PyThreadState* __tstate = wxPyBeginAllowThreads();
20042 (arg1)->SetFitToCurrentPage(arg2);
20043 wxPyEndAllowThreads(__tstate);
20044 if (PyErr_Occurred()) SWIG_fail;
20045 }
20046 resultobj = SWIG_Py_Void();
20047 return resultobj;
20048 fail:
20049 return NULL;
20050 }
20051
20052
20053 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20054 PyObject *resultobj = 0;
20055 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20056 bool result;
20057 void *argp1 = 0 ;
20058 int res1 = 0 ;
20059 PyObject *swig_obj[1] ;
20060
20061 if (!args) SWIG_fail;
20062 swig_obj[0] = args;
20063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20064 if (!SWIG_IsOK(res1)) {
20065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20066 }
20067 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20068 {
20069 PyThreadState* __tstate = wxPyBeginAllowThreads();
20070 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
20071 wxPyEndAllowThreads(__tstate);
20072 if (PyErr_Occurred()) SWIG_fail;
20073 }
20074 {
20075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20076 }
20077 return resultobj;
20078 fail:
20079 return NULL;
20080 }
20081
20082
20083 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20084 PyObject *resultobj = 0;
20085 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20086 wxSizer *result = 0 ;
20087 void *argp1 = 0 ;
20088 int res1 = 0 ;
20089 PyObject *swig_obj[1] ;
20090
20091 if (!args) SWIG_fail;
20092 swig_obj[0] = args;
20093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20094 if (!SWIG_IsOK(res1)) {
20095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20096 }
20097 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20098 {
20099 PyThreadState* __tstate = wxPyBeginAllowThreads();
20100 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
20101 wxPyEndAllowThreads(__tstate);
20102 if (PyErr_Occurred()) SWIG_fail;
20103 }
20104 {
20105 resultobj = wxPyMake_wxObject(result, (bool)0);
20106 }
20107 return resultobj;
20108 fail:
20109 return NULL;
20110 }
20111
20112
20113 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20114 PyObject *resultobj = 0;
20115 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20116 size_t arg2 ;
20117 bool result;
20118 void *argp1 = 0 ;
20119 int res1 = 0 ;
20120 size_t val2 ;
20121 int ecode2 = 0 ;
20122 PyObject * obj0 = 0 ;
20123 PyObject * obj1 = 0 ;
20124 char * kwnames[] = {
20125 (char *) "self",(char *) "n", NULL
20126 };
20127
20128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
20129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20130 if (!SWIG_IsOK(res1)) {
20131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20132 }
20133 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20134 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20135 if (!SWIG_IsOK(ecode2)) {
20136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
20137 }
20138 arg2 = static_cast< size_t >(val2);
20139 {
20140 PyThreadState* __tstate = wxPyBeginAllowThreads();
20141 result = (bool)(arg1)->DeletePage(arg2);
20142 wxPyEndAllowThreads(__tstate);
20143 if (PyErr_Occurred()) SWIG_fail;
20144 }
20145 {
20146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20147 }
20148 return resultobj;
20149 fail:
20150 return NULL;
20151 }
20152
20153
20154 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20155 PyObject *resultobj = 0;
20156 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20157 size_t arg2 ;
20158 bool result;
20159 void *argp1 = 0 ;
20160 int res1 = 0 ;
20161 size_t val2 ;
20162 int ecode2 = 0 ;
20163 PyObject * obj0 = 0 ;
20164 PyObject * obj1 = 0 ;
20165 char * kwnames[] = {
20166 (char *) "self",(char *) "n", NULL
20167 };
20168
20169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
20170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20171 if (!SWIG_IsOK(res1)) {
20172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20173 }
20174 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20175 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20176 if (!SWIG_IsOK(ecode2)) {
20177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
20178 }
20179 arg2 = static_cast< size_t >(val2);
20180 {
20181 PyThreadState* __tstate = wxPyBeginAllowThreads();
20182 result = (bool)(arg1)->RemovePage(arg2);
20183 wxPyEndAllowThreads(__tstate);
20184 if (PyErr_Occurred()) SWIG_fail;
20185 }
20186 {
20187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20188 }
20189 return resultobj;
20190 fail:
20191 return NULL;
20192 }
20193
20194
20195 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20196 PyObject *resultobj = 0;
20197 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20198 bool result;
20199 void *argp1 = 0 ;
20200 int res1 = 0 ;
20201 PyObject *swig_obj[1] ;
20202
20203 if (!args) SWIG_fail;
20204 swig_obj[0] = args;
20205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20206 if (!SWIG_IsOK(res1)) {
20207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20208 }
20209 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20210 {
20211 PyThreadState* __tstate = wxPyBeginAllowThreads();
20212 result = (bool)(arg1)->DeleteAllPages();
20213 wxPyEndAllowThreads(__tstate);
20214 if (PyErr_Occurred()) SWIG_fail;
20215 }
20216 {
20217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20218 }
20219 return resultobj;
20220 fail:
20221 return NULL;
20222 }
20223
20224
20225 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20226 PyObject *resultobj = 0;
20227 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20228 wxWindow *arg2 = (wxWindow *) 0 ;
20229 wxString *arg3 = 0 ;
20230 bool arg4 = (bool) false ;
20231 int arg5 = (int) -1 ;
20232 bool result;
20233 void *argp1 = 0 ;
20234 int res1 = 0 ;
20235 void *argp2 = 0 ;
20236 int res2 = 0 ;
20237 bool temp3 = false ;
20238 bool val4 ;
20239 int ecode4 = 0 ;
20240 int val5 ;
20241 int ecode5 = 0 ;
20242 PyObject * obj0 = 0 ;
20243 PyObject * obj1 = 0 ;
20244 PyObject * obj2 = 0 ;
20245 PyObject * obj3 = 0 ;
20246 PyObject * obj4 = 0 ;
20247 char * kwnames[] = {
20248 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20249 };
20250
20251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20253 if (!SWIG_IsOK(res1)) {
20254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20255 }
20256 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20257 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20258 if (!SWIG_IsOK(res2)) {
20259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20260 }
20261 arg2 = reinterpret_cast< wxWindow * >(argp2);
20262 {
20263 arg3 = wxString_in_helper(obj2);
20264 if (arg3 == NULL) SWIG_fail;
20265 temp3 = true;
20266 }
20267 if (obj3) {
20268 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20269 if (!SWIG_IsOK(ecode4)) {
20270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20271 }
20272 arg4 = static_cast< bool >(val4);
20273 }
20274 if (obj4) {
20275 ecode5 = SWIG_AsVal_int(obj4, &val5);
20276 if (!SWIG_IsOK(ecode5)) {
20277 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20278 }
20279 arg5 = static_cast< int >(val5);
20280 }
20281 {
20282 PyThreadState* __tstate = wxPyBeginAllowThreads();
20283 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20284 wxPyEndAllowThreads(__tstate);
20285 if (PyErr_Occurred()) SWIG_fail;
20286 }
20287 {
20288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20289 }
20290 {
20291 if (temp3)
20292 delete arg3;
20293 }
20294 return resultobj;
20295 fail:
20296 {
20297 if (temp3)
20298 delete arg3;
20299 }
20300 return NULL;
20301 }
20302
20303
20304 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20305 PyObject *resultobj = 0;
20306 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20307 size_t arg2 ;
20308 wxWindow *arg3 = (wxWindow *) 0 ;
20309 wxString *arg4 = 0 ;
20310 bool arg5 = (bool) false ;
20311 int arg6 = (int) -1 ;
20312 bool result;
20313 void *argp1 = 0 ;
20314 int res1 = 0 ;
20315 size_t val2 ;
20316 int ecode2 = 0 ;
20317 void *argp3 = 0 ;
20318 int res3 = 0 ;
20319 bool temp4 = false ;
20320 bool val5 ;
20321 int ecode5 = 0 ;
20322 int val6 ;
20323 int ecode6 = 0 ;
20324 PyObject * obj0 = 0 ;
20325 PyObject * obj1 = 0 ;
20326 PyObject * obj2 = 0 ;
20327 PyObject * obj3 = 0 ;
20328 PyObject * obj4 = 0 ;
20329 PyObject * obj5 = 0 ;
20330 char * kwnames[] = {
20331 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20332 };
20333
20334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20336 if (!SWIG_IsOK(res1)) {
20337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20338 }
20339 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20340 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20341 if (!SWIG_IsOK(ecode2)) {
20342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20343 }
20344 arg2 = static_cast< size_t >(val2);
20345 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20346 if (!SWIG_IsOK(res3)) {
20347 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20348 }
20349 arg3 = reinterpret_cast< wxWindow * >(argp3);
20350 {
20351 arg4 = wxString_in_helper(obj3);
20352 if (arg4 == NULL) SWIG_fail;
20353 temp4 = true;
20354 }
20355 if (obj4) {
20356 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20357 if (!SWIG_IsOK(ecode5)) {
20358 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20359 }
20360 arg5 = static_cast< bool >(val5);
20361 }
20362 if (obj5) {
20363 ecode6 = SWIG_AsVal_int(obj5, &val6);
20364 if (!SWIG_IsOK(ecode6)) {
20365 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20366 }
20367 arg6 = static_cast< int >(val6);
20368 }
20369 {
20370 PyThreadState* __tstate = wxPyBeginAllowThreads();
20371 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20372 wxPyEndAllowThreads(__tstate);
20373 if (PyErr_Occurred()) SWIG_fail;
20374 }
20375 {
20376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20377 }
20378 {
20379 if (temp4)
20380 delete arg4;
20381 }
20382 return resultobj;
20383 fail:
20384 {
20385 if (temp4)
20386 delete arg4;
20387 }
20388 return NULL;
20389 }
20390
20391
20392 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20393 PyObject *resultobj = 0;
20394 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20395 size_t arg2 ;
20396 int result;
20397 void *argp1 = 0 ;
20398 int res1 = 0 ;
20399 size_t val2 ;
20400 int ecode2 = 0 ;
20401 PyObject * obj0 = 0 ;
20402 PyObject * obj1 = 0 ;
20403 char * kwnames[] = {
20404 (char *) "self",(char *) "n", NULL
20405 };
20406
20407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20409 if (!SWIG_IsOK(res1)) {
20410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20411 }
20412 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20413 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20414 if (!SWIG_IsOK(ecode2)) {
20415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20416 }
20417 arg2 = static_cast< size_t >(val2);
20418 {
20419 PyThreadState* __tstate = wxPyBeginAllowThreads();
20420 result = (int)(arg1)->SetSelection(arg2);
20421 wxPyEndAllowThreads(__tstate);
20422 if (PyErr_Occurred()) SWIG_fail;
20423 }
20424 resultobj = SWIG_From_int(static_cast< int >(result));
20425 return resultobj;
20426 fail:
20427 return NULL;
20428 }
20429
20430
20431 SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20432 PyObject *resultobj = 0;
20433 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20434 size_t arg2 ;
20435 int result;
20436 void *argp1 = 0 ;
20437 int res1 = 0 ;
20438 size_t val2 ;
20439 int ecode2 = 0 ;
20440 PyObject * obj0 = 0 ;
20441 PyObject * obj1 = 0 ;
20442 char * kwnames[] = {
20443 (char *) "self",(char *) "n", NULL
20444 };
20445
20446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20448 if (!SWIG_IsOK(res1)) {
20449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20450 }
20451 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20452 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20453 if (!SWIG_IsOK(ecode2)) {
20454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20455 }
20456 arg2 = static_cast< size_t >(val2);
20457 {
20458 PyThreadState* __tstate = wxPyBeginAllowThreads();
20459 result = (int)(arg1)->ChangeSelection(arg2);
20460 wxPyEndAllowThreads(__tstate);
20461 if (PyErr_Occurred()) SWIG_fail;
20462 }
20463 resultobj = SWIG_From_int(static_cast< int >(result));
20464 return resultobj;
20465 fail:
20466 return NULL;
20467 }
20468
20469
20470 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20471 PyObject *resultobj = 0;
20472 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20473 bool arg2 = (bool) true ;
20474 void *argp1 = 0 ;
20475 int res1 = 0 ;
20476 bool val2 ;
20477 int ecode2 = 0 ;
20478 PyObject * obj0 = 0 ;
20479 PyObject * obj1 = 0 ;
20480 char * kwnames[] = {
20481 (char *) "self",(char *) "forward", NULL
20482 };
20483
20484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20486 if (!SWIG_IsOK(res1)) {
20487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20488 }
20489 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20490 if (obj1) {
20491 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20492 if (!SWIG_IsOK(ecode2)) {
20493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20494 }
20495 arg2 = static_cast< bool >(val2);
20496 }
20497 {
20498 PyThreadState* __tstate = wxPyBeginAllowThreads();
20499 (arg1)->AdvanceSelection(arg2);
20500 wxPyEndAllowThreads(__tstate);
20501 if (PyErr_Occurred()) SWIG_fail;
20502 }
20503 resultobj = SWIG_Py_Void();
20504 return resultobj;
20505 fail:
20506 return NULL;
20507 }
20508
20509
20510 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20511 PyObject *resultobj = 0;
20512 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20513 wxPoint *arg2 = 0 ;
20514 long *arg3 = (long *) 0 ;
20515 int result;
20516 void *argp1 = 0 ;
20517 int res1 = 0 ;
20518 wxPoint temp2 ;
20519 long temp3 ;
20520 int res3 = SWIG_TMPOBJ ;
20521 PyObject * obj0 = 0 ;
20522 PyObject * obj1 = 0 ;
20523 char * kwnames[] = {
20524 (char *) "self",(char *) "pt", NULL
20525 };
20526
20527 arg3 = &temp3;
20528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20530 if (!SWIG_IsOK(res1)) {
20531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20532 }
20533 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20534 {
20535 arg2 = &temp2;
20536 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20537 }
20538 {
20539 PyThreadState* __tstate = wxPyBeginAllowThreads();
20540 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20541 wxPyEndAllowThreads(__tstate);
20542 if (PyErr_Occurred()) SWIG_fail;
20543 }
20544 resultobj = SWIG_From_int(static_cast< int >(result));
20545 if (SWIG_IsTmpObj(res3)) {
20546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20547 } else {
20548 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20549 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20550 }
20551 return resultobj;
20552 fail:
20553 return NULL;
20554 }
20555
20556
20557 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20558 PyObject *resultobj = 0;
20559 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20560 SwigValueWrapper<wxVisualAttributes > result;
20561 int val1 ;
20562 int ecode1 = 0 ;
20563 PyObject * obj0 = 0 ;
20564 char * kwnames[] = {
20565 (char *) "variant", NULL
20566 };
20567
20568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20569 if (obj0) {
20570 ecode1 = SWIG_AsVal_int(obj0, &val1);
20571 if (!SWIG_IsOK(ecode1)) {
20572 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20573 }
20574 arg1 = static_cast< wxWindowVariant >(val1);
20575 }
20576 {
20577 if (!wxPyCheckForApp()) SWIG_fail;
20578 PyThreadState* __tstate = wxPyBeginAllowThreads();
20579 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20580 wxPyEndAllowThreads(__tstate);
20581 if (PyErr_Occurred()) SWIG_fail;
20582 }
20583 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20584 return resultobj;
20585 fail:
20586 return NULL;
20587 }
20588
20589
20590 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20591 PyObject *obj;
20592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20593 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20594 return SWIG_Py_Void();
20595 }
20596
20597 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20598 PyObject *resultobj = 0;
20599 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20600 int arg2 = (int) 0 ;
20601 int arg3 = (int) -1 ;
20602 int arg4 = (int) -1 ;
20603 wxBookCtrlBaseEvent *result = 0 ;
20604 int val1 ;
20605 int ecode1 = 0 ;
20606 int val2 ;
20607 int ecode2 = 0 ;
20608 int val3 ;
20609 int ecode3 = 0 ;
20610 int val4 ;
20611 int ecode4 = 0 ;
20612 PyObject * obj0 = 0 ;
20613 PyObject * obj1 = 0 ;
20614 PyObject * obj2 = 0 ;
20615 PyObject * obj3 = 0 ;
20616 char * kwnames[] = {
20617 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20618 };
20619
20620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20621 if (obj0) {
20622 ecode1 = SWIG_AsVal_int(obj0, &val1);
20623 if (!SWIG_IsOK(ecode1)) {
20624 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20625 }
20626 arg1 = static_cast< wxEventType >(val1);
20627 }
20628 if (obj1) {
20629 ecode2 = SWIG_AsVal_int(obj1, &val2);
20630 if (!SWIG_IsOK(ecode2)) {
20631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20632 }
20633 arg2 = static_cast< int >(val2);
20634 }
20635 if (obj2) {
20636 ecode3 = SWIG_AsVal_int(obj2, &val3);
20637 if (!SWIG_IsOK(ecode3)) {
20638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20639 }
20640 arg3 = static_cast< int >(val3);
20641 }
20642 if (obj3) {
20643 ecode4 = SWIG_AsVal_int(obj3, &val4);
20644 if (!SWIG_IsOK(ecode4)) {
20645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20646 }
20647 arg4 = static_cast< int >(val4);
20648 }
20649 {
20650 PyThreadState* __tstate = wxPyBeginAllowThreads();
20651 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20652 wxPyEndAllowThreads(__tstate);
20653 if (PyErr_Occurred()) SWIG_fail;
20654 }
20655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20656 return resultobj;
20657 fail:
20658 return NULL;
20659 }
20660
20661
20662 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20663 PyObject *resultobj = 0;
20664 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20665 int result;
20666 void *argp1 = 0 ;
20667 int res1 = 0 ;
20668 PyObject *swig_obj[1] ;
20669
20670 if (!args) SWIG_fail;
20671 swig_obj[0] = args;
20672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20673 if (!SWIG_IsOK(res1)) {
20674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20675 }
20676 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20677 {
20678 PyThreadState* __tstate = wxPyBeginAllowThreads();
20679 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20680 wxPyEndAllowThreads(__tstate);
20681 if (PyErr_Occurred()) SWIG_fail;
20682 }
20683 resultobj = SWIG_From_int(static_cast< int >(result));
20684 return resultobj;
20685 fail:
20686 return NULL;
20687 }
20688
20689
20690 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20691 PyObject *resultobj = 0;
20692 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20693 int arg2 ;
20694 void *argp1 = 0 ;
20695 int res1 = 0 ;
20696 int val2 ;
20697 int ecode2 = 0 ;
20698 PyObject * obj0 = 0 ;
20699 PyObject * obj1 = 0 ;
20700 char * kwnames[] = {
20701 (char *) "self",(char *) "nSel", NULL
20702 };
20703
20704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20706 if (!SWIG_IsOK(res1)) {
20707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20708 }
20709 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20710 ecode2 = SWIG_AsVal_int(obj1, &val2);
20711 if (!SWIG_IsOK(ecode2)) {
20712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20713 }
20714 arg2 = static_cast< int >(val2);
20715 {
20716 PyThreadState* __tstate = wxPyBeginAllowThreads();
20717 (arg1)->SetSelection(arg2);
20718 wxPyEndAllowThreads(__tstate);
20719 if (PyErr_Occurred()) SWIG_fail;
20720 }
20721 resultobj = SWIG_Py_Void();
20722 return resultobj;
20723 fail:
20724 return NULL;
20725 }
20726
20727
20728 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20729 PyObject *resultobj = 0;
20730 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20731 int result;
20732 void *argp1 = 0 ;
20733 int res1 = 0 ;
20734 PyObject *swig_obj[1] ;
20735
20736 if (!args) SWIG_fail;
20737 swig_obj[0] = args;
20738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20739 if (!SWIG_IsOK(res1)) {
20740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20741 }
20742 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20743 {
20744 PyThreadState* __tstate = wxPyBeginAllowThreads();
20745 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20746 wxPyEndAllowThreads(__tstate);
20747 if (PyErr_Occurred()) SWIG_fail;
20748 }
20749 resultobj = SWIG_From_int(static_cast< int >(result));
20750 return resultobj;
20751 fail:
20752 return NULL;
20753 }
20754
20755
20756 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20757 PyObject *resultobj = 0;
20758 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20759 int arg2 ;
20760 void *argp1 = 0 ;
20761 int res1 = 0 ;
20762 int val2 ;
20763 int ecode2 = 0 ;
20764 PyObject * obj0 = 0 ;
20765 PyObject * obj1 = 0 ;
20766 char * kwnames[] = {
20767 (char *) "self",(char *) "nOldSel", NULL
20768 };
20769
20770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20772 if (!SWIG_IsOK(res1)) {
20773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20774 }
20775 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20776 ecode2 = SWIG_AsVal_int(obj1, &val2);
20777 if (!SWIG_IsOK(ecode2)) {
20778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20779 }
20780 arg2 = static_cast< int >(val2);
20781 {
20782 PyThreadState* __tstate = wxPyBeginAllowThreads();
20783 (arg1)->SetOldSelection(arg2);
20784 wxPyEndAllowThreads(__tstate);
20785 if (PyErr_Occurred()) SWIG_fail;
20786 }
20787 resultobj = SWIG_Py_Void();
20788 return resultobj;
20789 fail:
20790 return NULL;
20791 }
20792
20793
20794 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20795 PyObject *obj;
20796 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20797 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20798 return SWIG_Py_Void();
20799 }
20800
20801 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20802 return SWIG_Python_InitShadowInstance(args);
20803 }
20804
20805 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20806 PyObject *resultobj = 0;
20807 wxWindow *arg1 = (wxWindow *) 0 ;
20808 int arg2 = (int) -1 ;
20809 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20810 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20811 wxSize const &arg4_defvalue = wxDefaultSize ;
20812 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20813 long arg5 = (long) 0 ;
20814 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20815 wxString *arg6 = (wxString *) &arg6_defvalue ;
20816 wxNotebook *result = 0 ;
20817 void *argp1 = 0 ;
20818 int res1 = 0 ;
20819 int val2 ;
20820 int ecode2 = 0 ;
20821 wxPoint temp3 ;
20822 wxSize temp4 ;
20823 long val5 ;
20824 int ecode5 = 0 ;
20825 bool temp6 = false ;
20826 PyObject * obj0 = 0 ;
20827 PyObject * obj1 = 0 ;
20828 PyObject * obj2 = 0 ;
20829 PyObject * obj3 = 0 ;
20830 PyObject * obj4 = 0 ;
20831 PyObject * obj5 = 0 ;
20832 char * kwnames[] = {
20833 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20834 };
20835
20836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20838 if (!SWIG_IsOK(res1)) {
20839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20840 }
20841 arg1 = reinterpret_cast< wxWindow * >(argp1);
20842 if (obj1) {
20843 ecode2 = SWIG_AsVal_int(obj1, &val2);
20844 if (!SWIG_IsOK(ecode2)) {
20845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20846 }
20847 arg2 = static_cast< int >(val2);
20848 }
20849 if (obj2) {
20850 {
20851 arg3 = &temp3;
20852 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20853 }
20854 }
20855 if (obj3) {
20856 {
20857 arg4 = &temp4;
20858 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20859 }
20860 }
20861 if (obj4) {
20862 ecode5 = SWIG_AsVal_long(obj4, &val5);
20863 if (!SWIG_IsOK(ecode5)) {
20864 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20865 }
20866 arg5 = static_cast< long >(val5);
20867 }
20868 if (obj5) {
20869 {
20870 arg6 = wxString_in_helper(obj5);
20871 if (arg6 == NULL) SWIG_fail;
20872 temp6 = true;
20873 }
20874 }
20875 {
20876 if (!wxPyCheckForApp()) SWIG_fail;
20877 PyThreadState* __tstate = wxPyBeginAllowThreads();
20878 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20879 wxPyEndAllowThreads(__tstate);
20880 if (PyErr_Occurred()) SWIG_fail;
20881 }
20882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20883 {
20884 if (temp6)
20885 delete arg6;
20886 }
20887 return resultobj;
20888 fail:
20889 {
20890 if (temp6)
20891 delete arg6;
20892 }
20893 return NULL;
20894 }
20895
20896
20897 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20898 PyObject *resultobj = 0;
20899 wxNotebook *result = 0 ;
20900
20901 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20902 {
20903 if (!wxPyCheckForApp()) SWIG_fail;
20904 PyThreadState* __tstate = wxPyBeginAllowThreads();
20905 result = (wxNotebook *)new wxNotebook();
20906 wxPyEndAllowThreads(__tstate);
20907 if (PyErr_Occurred()) SWIG_fail;
20908 }
20909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20910 return resultobj;
20911 fail:
20912 return NULL;
20913 }
20914
20915
20916 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20917 PyObject *resultobj = 0;
20918 wxNotebook *arg1 = (wxNotebook *) 0 ;
20919 wxWindow *arg2 = (wxWindow *) 0 ;
20920 int arg3 = (int) -1 ;
20921 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20922 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20923 wxSize const &arg5_defvalue = wxDefaultSize ;
20924 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20925 long arg6 = (long) 0 ;
20926 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20927 wxString *arg7 = (wxString *) &arg7_defvalue ;
20928 bool result;
20929 void *argp1 = 0 ;
20930 int res1 = 0 ;
20931 void *argp2 = 0 ;
20932 int res2 = 0 ;
20933 int val3 ;
20934 int ecode3 = 0 ;
20935 wxPoint temp4 ;
20936 wxSize temp5 ;
20937 long val6 ;
20938 int ecode6 = 0 ;
20939 bool temp7 = false ;
20940 PyObject * obj0 = 0 ;
20941 PyObject * obj1 = 0 ;
20942 PyObject * obj2 = 0 ;
20943 PyObject * obj3 = 0 ;
20944 PyObject * obj4 = 0 ;
20945 PyObject * obj5 = 0 ;
20946 PyObject * obj6 = 0 ;
20947 char * kwnames[] = {
20948 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20949 };
20950
20951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20953 if (!SWIG_IsOK(res1)) {
20954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20955 }
20956 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20957 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20958 if (!SWIG_IsOK(res2)) {
20959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20960 }
20961 arg2 = reinterpret_cast< wxWindow * >(argp2);
20962 if (obj2) {
20963 ecode3 = SWIG_AsVal_int(obj2, &val3);
20964 if (!SWIG_IsOK(ecode3)) {
20965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20966 }
20967 arg3 = static_cast< int >(val3);
20968 }
20969 if (obj3) {
20970 {
20971 arg4 = &temp4;
20972 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20973 }
20974 }
20975 if (obj4) {
20976 {
20977 arg5 = &temp5;
20978 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20979 }
20980 }
20981 if (obj5) {
20982 ecode6 = SWIG_AsVal_long(obj5, &val6);
20983 if (!SWIG_IsOK(ecode6)) {
20984 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20985 }
20986 arg6 = static_cast< long >(val6);
20987 }
20988 if (obj6) {
20989 {
20990 arg7 = wxString_in_helper(obj6);
20991 if (arg7 == NULL) SWIG_fail;
20992 temp7 = true;
20993 }
20994 }
20995 {
20996 PyThreadState* __tstate = wxPyBeginAllowThreads();
20997 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20998 wxPyEndAllowThreads(__tstate);
20999 if (PyErr_Occurred()) SWIG_fail;
21000 }
21001 {
21002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21003 }
21004 {
21005 if (temp7)
21006 delete arg7;
21007 }
21008 return resultobj;
21009 fail:
21010 {
21011 if (temp7)
21012 delete arg7;
21013 }
21014 return NULL;
21015 }
21016
21017
21018 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21019 PyObject *resultobj = 0;
21020 wxNotebook *arg1 = (wxNotebook *) 0 ;
21021 int result;
21022 void *argp1 = 0 ;
21023 int res1 = 0 ;
21024 PyObject *swig_obj[1] ;
21025
21026 if (!args) SWIG_fail;
21027 swig_obj[0] = args;
21028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21029 if (!SWIG_IsOK(res1)) {
21030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21031 }
21032 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21033 {
21034 PyThreadState* __tstate = wxPyBeginAllowThreads();
21035 result = (int)((wxNotebook const *)arg1)->GetRowCount();
21036 wxPyEndAllowThreads(__tstate);
21037 if (PyErr_Occurred()) SWIG_fail;
21038 }
21039 resultobj = SWIG_From_int(static_cast< int >(result));
21040 return resultobj;
21041 fail:
21042 return NULL;
21043 }
21044
21045
21046 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21047 PyObject *resultobj = 0;
21048 wxNotebook *arg1 = (wxNotebook *) 0 ;
21049 wxSize *arg2 = 0 ;
21050 void *argp1 = 0 ;
21051 int res1 = 0 ;
21052 wxSize temp2 ;
21053 PyObject * obj0 = 0 ;
21054 PyObject * obj1 = 0 ;
21055 char * kwnames[] = {
21056 (char *) "self",(char *) "padding", NULL
21057 };
21058
21059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
21060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21061 if (!SWIG_IsOK(res1)) {
21062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
21063 }
21064 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21065 {
21066 arg2 = &temp2;
21067 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21068 }
21069 {
21070 PyThreadState* __tstate = wxPyBeginAllowThreads();
21071 (arg1)->SetPadding((wxSize const &)*arg2);
21072 wxPyEndAllowThreads(__tstate);
21073 if (PyErr_Occurred()) SWIG_fail;
21074 }
21075 resultobj = SWIG_Py_Void();
21076 return resultobj;
21077 fail:
21078 return NULL;
21079 }
21080
21081
21082 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21083 PyObject *resultobj = 0;
21084 wxNotebook *arg1 = (wxNotebook *) 0 ;
21085 wxSize *arg2 = 0 ;
21086 void *argp1 = 0 ;
21087 int res1 = 0 ;
21088 wxSize temp2 ;
21089 PyObject * obj0 = 0 ;
21090 PyObject * obj1 = 0 ;
21091 char * kwnames[] = {
21092 (char *) "self",(char *) "sz", NULL
21093 };
21094
21095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
21096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21097 if (!SWIG_IsOK(res1)) {
21098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
21099 }
21100 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21101 {
21102 arg2 = &temp2;
21103 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21104 }
21105 {
21106 PyThreadState* __tstate = wxPyBeginAllowThreads();
21107 (arg1)->SetTabSize((wxSize const &)*arg2);
21108 wxPyEndAllowThreads(__tstate);
21109 if (PyErr_Occurred()) SWIG_fail;
21110 }
21111 resultobj = SWIG_Py_Void();
21112 return resultobj;
21113 fail:
21114 return NULL;
21115 }
21116
21117
21118 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21119 PyObject *resultobj = 0;
21120 wxNotebook *arg1 = (wxNotebook *) 0 ;
21121 wxColour result;
21122 void *argp1 = 0 ;
21123 int res1 = 0 ;
21124 PyObject *swig_obj[1] ;
21125
21126 if (!args) SWIG_fail;
21127 swig_obj[0] = args;
21128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21129 if (!SWIG_IsOK(res1)) {
21130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21131 }
21132 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21133 {
21134 PyThreadState* __tstate = wxPyBeginAllowThreads();
21135 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
21136 wxPyEndAllowThreads(__tstate);
21137 if (PyErr_Occurred()) SWIG_fail;
21138 }
21139 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
21140 return resultobj;
21141 fail:
21142 return NULL;
21143 }
21144
21145
21146 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21147 PyObject *resultobj = 0;
21148 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
21149 SwigValueWrapper<wxVisualAttributes > result;
21150 int val1 ;
21151 int ecode1 = 0 ;
21152 PyObject * obj0 = 0 ;
21153 char * kwnames[] = {
21154 (char *) "variant", NULL
21155 };
21156
21157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
21158 if (obj0) {
21159 ecode1 = SWIG_AsVal_int(obj0, &val1);
21160 if (!SWIG_IsOK(ecode1)) {
21161 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
21162 }
21163 arg1 = static_cast< wxWindowVariant >(val1);
21164 }
21165 {
21166 if (!wxPyCheckForApp()) SWIG_fail;
21167 PyThreadState* __tstate = wxPyBeginAllowThreads();
21168 result = wxNotebook::GetClassDefaultAttributes(arg1);
21169 wxPyEndAllowThreads(__tstate);
21170 if (PyErr_Occurred()) SWIG_fail;
21171 }
21172 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
21173 return resultobj;
21174 fail:
21175 return NULL;
21176 }
21177
21178
21179 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21180 PyObject *resultobj = 0;
21181 wxNotebook *arg1 = (wxNotebook *) 0 ;
21182 int arg2 ;
21183 bool result;
21184 void *argp1 = 0 ;
21185 int res1 = 0 ;
21186 int val2 ;
21187 int ecode2 = 0 ;
21188 PyObject * obj0 = 0 ;
21189 PyObject * obj1 = 0 ;
21190 char * kwnames[] = {
21191 (char *) "self",(char *) "nPage", NULL
21192 };
21193
21194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21196 if (!SWIG_IsOK(res1)) {
21197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21198 }
21199 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21200 ecode2 = SWIG_AsVal_int(obj1, &val2);
21201 if (!SWIG_IsOK(ecode2)) {
21202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21203 }
21204 arg2 = static_cast< int >(val2);
21205 {
21206 PyThreadState* __tstate = wxPyBeginAllowThreads();
21207 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21208 wxPyEndAllowThreads(__tstate);
21209 if (PyErr_Occurred()) SWIG_fail;
21210 }
21211 {
21212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21213 }
21214 return resultobj;
21215 fail:
21216 return NULL;
21217 }
21218
21219
21220 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21221 PyObject *resultobj = 0;
21222 wxNotebook *arg1 = (wxNotebook *) 0 ;
21223 int arg2 ;
21224 int arg3 = (int) -1 ;
21225 void *argp1 = 0 ;
21226 int res1 = 0 ;
21227 int val2 ;
21228 int ecode2 = 0 ;
21229 int val3 ;
21230 int ecode3 = 0 ;
21231 PyObject * obj0 = 0 ;
21232 PyObject * obj1 = 0 ;
21233 PyObject * obj2 = 0 ;
21234 char * kwnames[] = {
21235 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21236 };
21237
21238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21240 if (!SWIG_IsOK(res1)) {
21241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21242 }
21243 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21244 ecode2 = SWIG_AsVal_int(obj1, &val2);
21245 if (!SWIG_IsOK(ecode2)) {
21246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21247 }
21248 arg2 = static_cast< int >(val2);
21249 if (obj2) {
21250 ecode3 = SWIG_AsVal_int(obj2, &val3);
21251 if (!SWIG_IsOK(ecode3)) {
21252 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21253 }
21254 arg3 = static_cast< int >(val3);
21255 }
21256 {
21257 PyThreadState* __tstate = wxPyBeginAllowThreads();
21258 (arg1)->SendPageChangedEvent(arg2,arg3);
21259 wxPyEndAllowThreads(__tstate);
21260 if (PyErr_Occurred()) SWIG_fail;
21261 }
21262 resultobj = SWIG_Py_Void();
21263 return resultobj;
21264 fail:
21265 return NULL;
21266 }
21267
21268
21269 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21270 PyObject *obj;
21271 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21272 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21273 return SWIG_Py_Void();
21274 }
21275
21276 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21277 return SWIG_Python_InitShadowInstance(args);
21278 }
21279
21280 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21281 PyObject *resultobj = 0;
21282 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21283 int arg2 = (int) 0 ;
21284 int arg3 = (int) -1 ;
21285 int arg4 = (int) -1 ;
21286 wxNotebookEvent *result = 0 ;
21287 int val1 ;
21288 int ecode1 = 0 ;
21289 int val2 ;
21290 int ecode2 = 0 ;
21291 int val3 ;
21292 int ecode3 = 0 ;
21293 int val4 ;
21294 int ecode4 = 0 ;
21295 PyObject * obj0 = 0 ;
21296 PyObject * obj1 = 0 ;
21297 PyObject * obj2 = 0 ;
21298 PyObject * obj3 = 0 ;
21299 char * kwnames[] = {
21300 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21301 };
21302
21303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21304 if (obj0) {
21305 ecode1 = SWIG_AsVal_int(obj0, &val1);
21306 if (!SWIG_IsOK(ecode1)) {
21307 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21308 }
21309 arg1 = static_cast< wxEventType >(val1);
21310 }
21311 if (obj1) {
21312 ecode2 = SWIG_AsVal_int(obj1, &val2);
21313 if (!SWIG_IsOK(ecode2)) {
21314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21315 }
21316 arg2 = static_cast< int >(val2);
21317 }
21318 if (obj2) {
21319 ecode3 = SWIG_AsVal_int(obj2, &val3);
21320 if (!SWIG_IsOK(ecode3)) {
21321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21322 }
21323 arg3 = static_cast< int >(val3);
21324 }
21325 if (obj3) {
21326 ecode4 = SWIG_AsVal_int(obj3, &val4);
21327 if (!SWIG_IsOK(ecode4)) {
21328 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21329 }
21330 arg4 = static_cast< int >(val4);
21331 }
21332 {
21333 PyThreadState* __tstate = wxPyBeginAllowThreads();
21334 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21335 wxPyEndAllowThreads(__tstate);
21336 if (PyErr_Occurred()) SWIG_fail;
21337 }
21338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21339 return resultobj;
21340 fail:
21341 return NULL;
21342 }
21343
21344
21345 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21346 PyObject *obj;
21347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21348 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21349 return SWIG_Py_Void();
21350 }
21351
21352 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21353 return SWIG_Python_InitShadowInstance(args);
21354 }
21355
21356 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21357 PyObject *resultobj = 0;
21358 wxWindow *arg1 = (wxWindow *) 0 ;
21359 int arg2 = (int) -1 ;
21360 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21361 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21362 wxSize const &arg4_defvalue = wxDefaultSize ;
21363 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21364 long arg5 = (long) 0 ;
21365 wxString const &arg6_defvalue = wxPyEmptyString ;
21366 wxString *arg6 = (wxString *) &arg6_defvalue ;
21367 wxListbook *result = 0 ;
21368 void *argp1 = 0 ;
21369 int res1 = 0 ;
21370 int val2 ;
21371 int ecode2 = 0 ;
21372 wxPoint temp3 ;
21373 wxSize temp4 ;
21374 long val5 ;
21375 int ecode5 = 0 ;
21376 bool temp6 = false ;
21377 PyObject * obj0 = 0 ;
21378 PyObject * obj1 = 0 ;
21379 PyObject * obj2 = 0 ;
21380 PyObject * obj3 = 0 ;
21381 PyObject * obj4 = 0 ;
21382 PyObject * obj5 = 0 ;
21383 char * kwnames[] = {
21384 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21385 };
21386
21387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21389 if (!SWIG_IsOK(res1)) {
21390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21391 }
21392 arg1 = reinterpret_cast< wxWindow * >(argp1);
21393 if (obj1) {
21394 ecode2 = SWIG_AsVal_int(obj1, &val2);
21395 if (!SWIG_IsOK(ecode2)) {
21396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21397 }
21398 arg2 = static_cast< int >(val2);
21399 }
21400 if (obj2) {
21401 {
21402 arg3 = &temp3;
21403 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21404 }
21405 }
21406 if (obj3) {
21407 {
21408 arg4 = &temp4;
21409 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21410 }
21411 }
21412 if (obj4) {
21413 ecode5 = SWIG_AsVal_long(obj4, &val5);
21414 if (!SWIG_IsOK(ecode5)) {
21415 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21416 }
21417 arg5 = static_cast< long >(val5);
21418 }
21419 if (obj5) {
21420 {
21421 arg6 = wxString_in_helper(obj5);
21422 if (arg6 == NULL) SWIG_fail;
21423 temp6 = true;
21424 }
21425 }
21426 {
21427 if (!wxPyCheckForApp()) SWIG_fail;
21428 PyThreadState* __tstate = wxPyBeginAllowThreads();
21429 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21430 wxPyEndAllowThreads(__tstate);
21431 if (PyErr_Occurred()) SWIG_fail;
21432 }
21433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21434 {
21435 if (temp6)
21436 delete arg6;
21437 }
21438 return resultobj;
21439 fail:
21440 {
21441 if (temp6)
21442 delete arg6;
21443 }
21444 return NULL;
21445 }
21446
21447
21448 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21449 PyObject *resultobj = 0;
21450 wxListbook *result = 0 ;
21451
21452 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21453 {
21454 if (!wxPyCheckForApp()) SWIG_fail;
21455 PyThreadState* __tstate = wxPyBeginAllowThreads();
21456 result = (wxListbook *)new wxListbook();
21457 wxPyEndAllowThreads(__tstate);
21458 if (PyErr_Occurred()) SWIG_fail;
21459 }
21460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21461 return resultobj;
21462 fail:
21463 return NULL;
21464 }
21465
21466
21467 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21468 PyObject *resultobj = 0;
21469 wxListbook *arg1 = (wxListbook *) 0 ;
21470 wxWindow *arg2 = (wxWindow *) 0 ;
21471 int arg3 = (int) -1 ;
21472 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21473 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21474 wxSize const &arg5_defvalue = wxDefaultSize ;
21475 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21476 long arg6 = (long) 0 ;
21477 wxString const &arg7_defvalue = wxPyEmptyString ;
21478 wxString *arg7 = (wxString *) &arg7_defvalue ;
21479 bool result;
21480 void *argp1 = 0 ;
21481 int res1 = 0 ;
21482 void *argp2 = 0 ;
21483 int res2 = 0 ;
21484 int val3 ;
21485 int ecode3 = 0 ;
21486 wxPoint temp4 ;
21487 wxSize temp5 ;
21488 long val6 ;
21489 int ecode6 = 0 ;
21490 bool temp7 = false ;
21491 PyObject * obj0 = 0 ;
21492 PyObject * obj1 = 0 ;
21493 PyObject * obj2 = 0 ;
21494 PyObject * obj3 = 0 ;
21495 PyObject * obj4 = 0 ;
21496 PyObject * obj5 = 0 ;
21497 PyObject * obj6 = 0 ;
21498 char * kwnames[] = {
21499 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21500 };
21501
21502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21504 if (!SWIG_IsOK(res1)) {
21505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21506 }
21507 arg1 = reinterpret_cast< wxListbook * >(argp1);
21508 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21509 if (!SWIG_IsOK(res2)) {
21510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21511 }
21512 arg2 = reinterpret_cast< wxWindow * >(argp2);
21513 if (obj2) {
21514 ecode3 = SWIG_AsVal_int(obj2, &val3);
21515 if (!SWIG_IsOK(ecode3)) {
21516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21517 }
21518 arg3 = static_cast< int >(val3);
21519 }
21520 if (obj3) {
21521 {
21522 arg4 = &temp4;
21523 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21524 }
21525 }
21526 if (obj4) {
21527 {
21528 arg5 = &temp5;
21529 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21530 }
21531 }
21532 if (obj5) {
21533 ecode6 = SWIG_AsVal_long(obj5, &val6);
21534 if (!SWIG_IsOK(ecode6)) {
21535 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21536 }
21537 arg6 = static_cast< long >(val6);
21538 }
21539 if (obj6) {
21540 {
21541 arg7 = wxString_in_helper(obj6);
21542 if (arg7 == NULL) SWIG_fail;
21543 temp7 = true;
21544 }
21545 }
21546 {
21547 PyThreadState* __tstate = wxPyBeginAllowThreads();
21548 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21549 wxPyEndAllowThreads(__tstate);
21550 if (PyErr_Occurred()) SWIG_fail;
21551 }
21552 {
21553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21554 }
21555 {
21556 if (temp7)
21557 delete arg7;
21558 }
21559 return resultobj;
21560 fail:
21561 {
21562 if (temp7)
21563 delete arg7;
21564 }
21565 return NULL;
21566 }
21567
21568
21569 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21570 PyObject *resultobj = 0;
21571 wxListbook *arg1 = (wxListbook *) 0 ;
21572 wxListView *result = 0 ;
21573 void *argp1 = 0 ;
21574 int res1 = 0 ;
21575 PyObject *swig_obj[1] ;
21576
21577 if (!args) SWIG_fail;
21578 swig_obj[0] = args;
21579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21580 if (!SWIG_IsOK(res1)) {
21581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21582 }
21583 arg1 = reinterpret_cast< wxListbook * >(argp1);
21584 {
21585 PyThreadState* __tstate = wxPyBeginAllowThreads();
21586 result = (wxListView *)(arg1)->GetListView();
21587 wxPyEndAllowThreads(__tstate);
21588 if (PyErr_Occurred()) SWIG_fail;
21589 }
21590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21591 return resultobj;
21592 fail:
21593 return NULL;
21594 }
21595
21596
21597 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21598 PyObject *obj;
21599 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21600 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21601 return SWIG_Py_Void();
21602 }
21603
21604 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21605 return SWIG_Python_InitShadowInstance(args);
21606 }
21607
21608 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21609 PyObject *resultobj = 0;
21610 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21611 int arg2 = (int) 0 ;
21612 int arg3 = (int) -1 ;
21613 int arg4 = (int) -1 ;
21614 wxListbookEvent *result = 0 ;
21615 int val1 ;
21616 int ecode1 = 0 ;
21617 int val2 ;
21618 int ecode2 = 0 ;
21619 int val3 ;
21620 int ecode3 = 0 ;
21621 int val4 ;
21622 int ecode4 = 0 ;
21623 PyObject * obj0 = 0 ;
21624 PyObject * obj1 = 0 ;
21625 PyObject * obj2 = 0 ;
21626 PyObject * obj3 = 0 ;
21627 char * kwnames[] = {
21628 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21629 };
21630
21631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21632 if (obj0) {
21633 ecode1 = SWIG_AsVal_int(obj0, &val1);
21634 if (!SWIG_IsOK(ecode1)) {
21635 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21636 }
21637 arg1 = static_cast< wxEventType >(val1);
21638 }
21639 if (obj1) {
21640 ecode2 = SWIG_AsVal_int(obj1, &val2);
21641 if (!SWIG_IsOK(ecode2)) {
21642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21643 }
21644 arg2 = static_cast< int >(val2);
21645 }
21646 if (obj2) {
21647 ecode3 = SWIG_AsVal_int(obj2, &val3);
21648 if (!SWIG_IsOK(ecode3)) {
21649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21650 }
21651 arg3 = static_cast< int >(val3);
21652 }
21653 if (obj3) {
21654 ecode4 = SWIG_AsVal_int(obj3, &val4);
21655 if (!SWIG_IsOK(ecode4)) {
21656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21657 }
21658 arg4 = static_cast< int >(val4);
21659 }
21660 {
21661 PyThreadState* __tstate = wxPyBeginAllowThreads();
21662 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21663 wxPyEndAllowThreads(__tstate);
21664 if (PyErr_Occurred()) SWIG_fail;
21665 }
21666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21667 return resultobj;
21668 fail:
21669 return NULL;
21670 }
21671
21672
21673 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21674 PyObject *obj;
21675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21676 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21677 return SWIG_Py_Void();
21678 }
21679
21680 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21681 return SWIG_Python_InitShadowInstance(args);
21682 }
21683
21684 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21685 PyObject *resultobj = 0;
21686 wxWindow *arg1 = (wxWindow *) 0 ;
21687 int arg2 ;
21688 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21689 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21690 wxSize const &arg4_defvalue = wxDefaultSize ;
21691 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21692 long arg5 = (long) 0 ;
21693 wxString const &arg6_defvalue = wxPyEmptyString ;
21694 wxString *arg6 = (wxString *) &arg6_defvalue ;
21695 wxChoicebook *result = 0 ;
21696 void *argp1 = 0 ;
21697 int res1 = 0 ;
21698 int val2 ;
21699 int ecode2 = 0 ;
21700 wxPoint temp3 ;
21701 wxSize temp4 ;
21702 long val5 ;
21703 int ecode5 = 0 ;
21704 bool temp6 = false ;
21705 PyObject * obj0 = 0 ;
21706 PyObject * obj1 = 0 ;
21707 PyObject * obj2 = 0 ;
21708 PyObject * obj3 = 0 ;
21709 PyObject * obj4 = 0 ;
21710 PyObject * obj5 = 0 ;
21711 char * kwnames[] = {
21712 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21713 };
21714
21715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21717 if (!SWIG_IsOK(res1)) {
21718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21719 }
21720 arg1 = reinterpret_cast< wxWindow * >(argp1);
21721 ecode2 = SWIG_AsVal_int(obj1, &val2);
21722 if (!SWIG_IsOK(ecode2)) {
21723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21724 }
21725 arg2 = static_cast< int >(val2);
21726 if (obj2) {
21727 {
21728 arg3 = &temp3;
21729 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21730 }
21731 }
21732 if (obj3) {
21733 {
21734 arg4 = &temp4;
21735 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21736 }
21737 }
21738 if (obj4) {
21739 ecode5 = SWIG_AsVal_long(obj4, &val5);
21740 if (!SWIG_IsOK(ecode5)) {
21741 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21742 }
21743 arg5 = static_cast< long >(val5);
21744 }
21745 if (obj5) {
21746 {
21747 arg6 = wxString_in_helper(obj5);
21748 if (arg6 == NULL) SWIG_fail;
21749 temp6 = true;
21750 }
21751 }
21752 {
21753 if (!wxPyCheckForApp()) SWIG_fail;
21754 PyThreadState* __tstate = wxPyBeginAllowThreads();
21755 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21756 wxPyEndAllowThreads(__tstate);
21757 if (PyErr_Occurred()) SWIG_fail;
21758 }
21759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21760 {
21761 if (temp6)
21762 delete arg6;
21763 }
21764 return resultobj;
21765 fail:
21766 {
21767 if (temp6)
21768 delete arg6;
21769 }
21770 return NULL;
21771 }
21772
21773
21774 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21775 PyObject *resultobj = 0;
21776 wxChoicebook *result = 0 ;
21777
21778 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21779 {
21780 if (!wxPyCheckForApp()) SWIG_fail;
21781 PyThreadState* __tstate = wxPyBeginAllowThreads();
21782 result = (wxChoicebook *)new wxChoicebook();
21783 wxPyEndAllowThreads(__tstate);
21784 if (PyErr_Occurred()) SWIG_fail;
21785 }
21786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21787 return resultobj;
21788 fail:
21789 return NULL;
21790 }
21791
21792
21793 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21794 PyObject *resultobj = 0;
21795 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21796 wxWindow *arg2 = (wxWindow *) 0 ;
21797 int arg3 ;
21798 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21799 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21800 wxSize const &arg5_defvalue = wxDefaultSize ;
21801 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21802 long arg6 = (long) 0 ;
21803 wxString const &arg7_defvalue = wxPyEmptyString ;
21804 wxString *arg7 = (wxString *) &arg7_defvalue ;
21805 bool result;
21806 void *argp1 = 0 ;
21807 int res1 = 0 ;
21808 void *argp2 = 0 ;
21809 int res2 = 0 ;
21810 int val3 ;
21811 int ecode3 = 0 ;
21812 wxPoint temp4 ;
21813 wxSize temp5 ;
21814 long val6 ;
21815 int ecode6 = 0 ;
21816 bool temp7 = false ;
21817 PyObject * obj0 = 0 ;
21818 PyObject * obj1 = 0 ;
21819 PyObject * obj2 = 0 ;
21820 PyObject * obj3 = 0 ;
21821 PyObject * obj4 = 0 ;
21822 PyObject * obj5 = 0 ;
21823 PyObject * obj6 = 0 ;
21824 char * kwnames[] = {
21825 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21826 };
21827
21828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21830 if (!SWIG_IsOK(res1)) {
21831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21832 }
21833 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21834 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21835 if (!SWIG_IsOK(res2)) {
21836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21837 }
21838 arg2 = reinterpret_cast< wxWindow * >(argp2);
21839 ecode3 = SWIG_AsVal_int(obj2, &val3);
21840 if (!SWIG_IsOK(ecode3)) {
21841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21842 }
21843 arg3 = static_cast< int >(val3);
21844 if (obj3) {
21845 {
21846 arg4 = &temp4;
21847 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21848 }
21849 }
21850 if (obj4) {
21851 {
21852 arg5 = &temp5;
21853 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21854 }
21855 }
21856 if (obj5) {
21857 ecode6 = SWIG_AsVal_long(obj5, &val6);
21858 if (!SWIG_IsOK(ecode6)) {
21859 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21860 }
21861 arg6 = static_cast< long >(val6);
21862 }
21863 if (obj6) {
21864 {
21865 arg7 = wxString_in_helper(obj6);
21866 if (arg7 == NULL) SWIG_fail;
21867 temp7 = true;
21868 }
21869 }
21870 {
21871 PyThreadState* __tstate = wxPyBeginAllowThreads();
21872 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21873 wxPyEndAllowThreads(__tstate);
21874 if (PyErr_Occurred()) SWIG_fail;
21875 }
21876 {
21877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21878 }
21879 {
21880 if (temp7)
21881 delete arg7;
21882 }
21883 return resultobj;
21884 fail:
21885 {
21886 if (temp7)
21887 delete arg7;
21888 }
21889 return NULL;
21890 }
21891
21892
21893 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21894 PyObject *resultobj = 0;
21895 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21896 wxChoice *result = 0 ;
21897 void *argp1 = 0 ;
21898 int res1 = 0 ;
21899 PyObject *swig_obj[1] ;
21900
21901 if (!args) SWIG_fail;
21902 swig_obj[0] = args;
21903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21904 if (!SWIG_IsOK(res1)) {
21905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21906 }
21907 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21908 {
21909 PyThreadState* __tstate = wxPyBeginAllowThreads();
21910 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21911 wxPyEndAllowThreads(__tstate);
21912 if (PyErr_Occurred()) SWIG_fail;
21913 }
21914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21915 return resultobj;
21916 fail:
21917 return NULL;
21918 }
21919
21920
21921 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21922 PyObject *obj;
21923 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21924 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21925 return SWIG_Py_Void();
21926 }
21927
21928 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21929 return SWIG_Python_InitShadowInstance(args);
21930 }
21931
21932 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21933 PyObject *resultobj = 0;
21934 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21935 int arg2 = (int) 0 ;
21936 int arg3 = (int) -1 ;
21937 int arg4 = (int) -1 ;
21938 wxChoicebookEvent *result = 0 ;
21939 int val1 ;
21940 int ecode1 = 0 ;
21941 int val2 ;
21942 int ecode2 = 0 ;
21943 int val3 ;
21944 int ecode3 = 0 ;
21945 int val4 ;
21946 int ecode4 = 0 ;
21947 PyObject * obj0 = 0 ;
21948 PyObject * obj1 = 0 ;
21949 PyObject * obj2 = 0 ;
21950 PyObject * obj3 = 0 ;
21951 char * kwnames[] = {
21952 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21953 };
21954
21955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21956 if (obj0) {
21957 ecode1 = SWIG_AsVal_int(obj0, &val1);
21958 if (!SWIG_IsOK(ecode1)) {
21959 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21960 }
21961 arg1 = static_cast< wxEventType >(val1);
21962 }
21963 if (obj1) {
21964 ecode2 = SWIG_AsVal_int(obj1, &val2);
21965 if (!SWIG_IsOK(ecode2)) {
21966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21967 }
21968 arg2 = static_cast< int >(val2);
21969 }
21970 if (obj2) {
21971 ecode3 = SWIG_AsVal_int(obj2, &val3);
21972 if (!SWIG_IsOK(ecode3)) {
21973 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21974 }
21975 arg3 = static_cast< int >(val3);
21976 }
21977 if (obj3) {
21978 ecode4 = SWIG_AsVal_int(obj3, &val4);
21979 if (!SWIG_IsOK(ecode4)) {
21980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21981 }
21982 arg4 = static_cast< int >(val4);
21983 }
21984 {
21985 PyThreadState* __tstate = wxPyBeginAllowThreads();
21986 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21987 wxPyEndAllowThreads(__tstate);
21988 if (PyErr_Occurred()) SWIG_fail;
21989 }
21990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21991 return resultobj;
21992 fail:
21993 return NULL;
21994 }
21995
21996
21997 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21998 PyObject *obj;
21999 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22000 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
22001 return SWIG_Py_Void();
22002 }
22003
22004 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22005 return SWIG_Python_InitShadowInstance(args);
22006 }
22007
22008 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22009 PyObject *resultobj = 0;
22010 wxWindow *arg1 = (wxWindow *) 0 ;
22011 int arg2 ;
22012 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22013 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22014 wxSize const &arg4_defvalue = wxDefaultSize ;
22015 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22016 long arg5 = (long) wxBK_DEFAULT ;
22017 wxString const &arg6_defvalue = wxPyEmptyString ;
22018 wxString *arg6 = (wxString *) &arg6_defvalue ;
22019 wxTreebook *result = 0 ;
22020 void *argp1 = 0 ;
22021 int res1 = 0 ;
22022 int val2 ;
22023 int ecode2 = 0 ;
22024 wxPoint temp3 ;
22025 wxSize temp4 ;
22026 long val5 ;
22027 int ecode5 = 0 ;
22028 bool temp6 = false ;
22029 PyObject * obj0 = 0 ;
22030 PyObject * obj1 = 0 ;
22031 PyObject * obj2 = 0 ;
22032 PyObject * obj3 = 0 ;
22033 PyObject * obj4 = 0 ;
22034 PyObject * obj5 = 0 ;
22035 char * kwnames[] = {
22036 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22037 };
22038
22039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22041 if (!SWIG_IsOK(res1)) {
22042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
22043 }
22044 arg1 = reinterpret_cast< wxWindow * >(argp1);
22045 ecode2 = SWIG_AsVal_int(obj1, &val2);
22046 if (!SWIG_IsOK(ecode2)) {
22047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
22048 }
22049 arg2 = static_cast< int >(val2);
22050 if (obj2) {
22051 {
22052 arg3 = &temp3;
22053 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22054 }
22055 }
22056 if (obj3) {
22057 {
22058 arg4 = &temp4;
22059 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22060 }
22061 }
22062 if (obj4) {
22063 ecode5 = SWIG_AsVal_long(obj4, &val5);
22064 if (!SWIG_IsOK(ecode5)) {
22065 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
22066 }
22067 arg5 = static_cast< long >(val5);
22068 }
22069 if (obj5) {
22070 {
22071 arg6 = wxString_in_helper(obj5);
22072 if (arg6 == NULL) SWIG_fail;
22073 temp6 = true;
22074 }
22075 }
22076 {
22077 if (!wxPyCheckForApp()) SWIG_fail;
22078 PyThreadState* __tstate = wxPyBeginAllowThreads();
22079 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22080 wxPyEndAllowThreads(__tstate);
22081 if (PyErr_Occurred()) SWIG_fail;
22082 }
22083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
22084 {
22085 if (temp6)
22086 delete arg6;
22087 }
22088 return resultobj;
22089 fail:
22090 {
22091 if (temp6)
22092 delete arg6;
22093 }
22094 return NULL;
22095 }
22096
22097
22098 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22099 PyObject *resultobj = 0;
22100 wxTreebook *result = 0 ;
22101
22102 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
22103 {
22104 if (!wxPyCheckForApp()) SWIG_fail;
22105 PyThreadState* __tstate = wxPyBeginAllowThreads();
22106 result = (wxTreebook *)new wxTreebook();
22107 wxPyEndAllowThreads(__tstate);
22108 if (PyErr_Occurred()) SWIG_fail;
22109 }
22110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
22111 return resultobj;
22112 fail:
22113 return NULL;
22114 }
22115
22116
22117 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22118 PyObject *resultobj = 0;
22119 wxTreebook *arg1 = (wxTreebook *) 0 ;
22120 wxWindow *arg2 = (wxWindow *) 0 ;
22121 int arg3 ;
22122 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22123 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22124 wxSize const &arg5_defvalue = wxDefaultSize ;
22125 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22126 long arg6 = (long) wxBK_DEFAULT ;
22127 wxString const &arg7_defvalue = wxPyEmptyString ;
22128 wxString *arg7 = (wxString *) &arg7_defvalue ;
22129 bool result;
22130 void *argp1 = 0 ;
22131 int res1 = 0 ;
22132 void *argp2 = 0 ;
22133 int res2 = 0 ;
22134 int val3 ;
22135 int ecode3 = 0 ;
22136 wxPoint temp4 ;
22137 wxSize temp5 ;
22138 long val6 ;
22139 int ecode6 = 0 ;
22140 bool temp7 = false ;
22141 PyObject * obj0 = 0 ;
22142 PyObject * obj1 = 0 ;
22143 PyObject * obj2 = 0 ;
22144 PyObject * obj3 = 0 ;
22145 PyObject * obj4 = 0 ;
22146 PyObject * obj5 = 0 ;
22147 PyObject * obj6 = 0 ;
22148 char * kwnames[] = {
22149 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22150 };
22151
22152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22154 if (!SWIG_IsOK(res1)) {
22155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
22156 }
22157 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22158 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22159 if (!SWIG_IsOK(res2)) {
22160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22161 }
22162 arg2 = reinterpret_cast< wxWindow * >(argp2);
22163 ecode3 = SWIG_AsVal_int(obj2, &val3);
22164 if (!SWIG_IsOK(ecode3)) {
22165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
22166 }
22167 arg3 = static_cast< int >(val3);
22168 if (obj3) {
22169 {
22170 arg4 = &temp4;
22171 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22172 }
22173 }
22174 if (obj4) {
22175 {
22176 arg5 = &temp5;
22177 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22178 }
22179 }
22180 if (obj5) {
22181 ecode6 = SWIG_AsVal_long(obj5, &val6);
22182 if (!SWIG_IsOK(ecode6)) {
22183 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
22184 }
22185 arg6 = static_cast< long >(val6);
22186 }
22187 if (obj6) {
22188 {
22189 arg7 = wxString_in_helper(obj6);
22190 if (arg7 == NULL) SWIG_fail;
22191 temp7 = true;
22192 }
22193 }
22194 {
22195 PyThreadState* __tstate = wxPyBeginAllowThreads();
22196 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22197 wxPyEndAllowThreads(__tstate);
22198 if (PyErr_Occurred()) SWIG_fail;
22199 }
22200 {
22201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22202 }
22203 {
22204 if (temp7)
22205 delete arg7;
22206 }
22207 return resultobj;
22208 fail:
22209 {
22210 if (temp7)
22211 delete arg7;
22212 }
22213 return NULL;
22214 }
22215
22216
22217 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22218 PyObject *resultobj = 0;
22219 wxTreebook *arg1 = (wxTreebook *) 0 ;
22220 size_t arg2 ;
22221 wxWindow *arg3 = (wxWindow *) 0 ;
22222 wxString *arg4 = 0 ;
22223 bool arg5 = (bool) false ;
22224 int arg6 = (int) wxNOT_FOUND ;
22225 bool result;
22226 void *argp1 = 0 ;
22227 int res1 = 0 ;
22228 size_t val2 ;
22229 int ecode2 = 0 ;
22230 void *argp3 = 0 ;
22231 int res3 = 0 ;
22232 bool temp4 = false ;
22233 bool val5 ;
22234 int ecode5 = 0 ;
22235 int val6 ;
22236 int ecode6 = 0 ;
22237 PyObject * obj0 = 0 ;
22238 PyObject * obj1 = 0 ;
22239 PyObject * obj2 = 0 ;
22240 PyObject * obj3 = 0 ;
22241 PyObject * obj4 = 0 ;
22242 PyObject * obj5 = 0 ;
22243 char * kwnames[] = {
22244 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22245 };
22246
22247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22249 if (!SWIG_IsOK(res1)) {
22250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22251 }
22252 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22253 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22254 if (!SWIG_IsOK(ecode2)) {
22255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22256 }
22257 arg2 = static_cast< size_t >(val2);
22258 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22259 if (!SWIG_IsOK(res3)) {
22260 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22261 }
22262 arg3 = reinterpret_cast< wxWindow * >(argp3);
22263 {
22264 arg4 = wxString_in_helper(obj3);
22265 if (arg4 == NULL) SWIG_fail;
22266 temp4 = true;
22267 }
22268 if (obj4) {
22269 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22270 if (!SWIG_IsOK(ecode5)) {
22271 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22272 }
22273 arg5 = static_cast< bool >(val5);
22274 }
22275 if (obj5) {
22276 ecode6 = SWIG_AsVal_int(obj5, &val6);
22277 if (!SWIG_IsOK(ecode6)) {
22278 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22279 }
22280 arg6 = static_cast< int >(val6);
22281 }
22282 {
22283 PyThreadState* __tstate = wxPyBeginAllowThreads();
22284 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22285 wxPyEndAllowThreads(__tstate);
22286 if (PyErr_Occurred()) SWIG_fail;
22287 }
22288 {
22289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22290 }
22291 {
22292 if (temp4)
22293 delete arg4;
22294 }
22295 return resultobj;
22296 fail:
22297 {
22298 if (temp4)
22299 delete arg4;
22300 }
22301 return NULL;
22302 }
22303
22304
22305 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22306 PyObject *resultobj = 0;
22307 wxTreebook *arg1 = (wxTreebook *) 0 ;
22308 wxWindow *arg2 = (wxWindow *) 0 ;
22309 wxString *arg3 = 0 ;
22310 bool arg4 = (bool) false ;
22311 int arg5 = (int) wxNOT_FOUND ;
22312 bool result;
22313 void *argp1 = 0 ;
22314 int res1 = 0 ;
22315 void *argp2 = 0 ;
22316 int res2 = 0 ;
22317 bool temp3 = false ;
22318 bool val4 ;
22319 int ecode4 = 0 ;
22320 int val5 ;
22321 int ecode5 = 0 ;
22322 PyObject * obj0 = 0 ;
22323 PyObject * obj1 = 0 ;
22324 PyObject * obj2 = 0 ;
22325 PyObject * obj3 = 0 ;
22326 PyObject * obj4 = 0 ;
22327 char * kwnames[] = {
22328 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22329 };
22330
22331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22333 if (!SWIG_IsOK(res1)) {
22334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22335 }
22336 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22337 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22338 if (!SWIG_IsOK(res2)) {
22339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22340 }
22341 arg2 = reinterpret_cast< wxWindow * >(argp2);
22342 {
22343 arg3 = wxString_in_helper(obj2);
22344 if (arg3 == NULL) SWIG_fail;
22345 temp3 = true;
22346 }
22347 if (obj3) {
22348 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22349 if (!SWIG_IsOK(ecode4)) {
22350 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22351 }
22352 arg4 = static_cast< bool >(val4);
22353 }
22354 if (obj4) {
22355 ecode5 = SWIG_AsVal_int(obj4, &val5);
22356 if (!SWIG_IsOK(ecode5)) {
22357 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22358 }
22359 arg5 = static_cast< int >(val5);
22360 }
22361 {
22362 PyThreadState* __tstate = wxPyBeginAllowThreads();
22363 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22364 wxPyEndAllowThreads(__tstate);
22365 if (PyErr_Occurred()) SWIG_fail;
22366 }
22367 {
22368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22369 }
22370 {
22371 if (temp3)
22372 delete arg3;
22373 }
22374 return resultobj;
22375 fail:
22376 {
22377 if (temp3)
22378 delete arg3;
22379 }
22380 return NULL;
22381 }
22382
22383
22384 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22385 PyObject *resultobj = 0;
22386 wxTreebook *arg1 = (wxTreebook *) 0 ;
22387 size_t arg2 ;
22388 bool result;
22389 void *argp1 = 0 ;
22390 int res1 = 0 ;
22391 size_t val2 ;
22392 int ecode2 = 0 ;
22393 PyObject * obj0 = 0 ;
22394 PyObject * obj1 = 0 ;
22395 char * kwnames[] = {
22396 (char *) "self",(char *) "pos", NULL
22397 };
22398
22399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22401 if (!SWIG_IsOK(res1)) {
22402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22403 }
22404 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22405 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22406 if (!SWIG_IsOK(ecode2)) {
22407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22408 }
22409 arg2 = static_cast< size_t >(val2);
22410 {
22411 PyThreadState* __tstate = wxPyBeginAllowThreads();
22412 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 {
22417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22418 }
22419 return resultobj;
22420 fail:
22421 return NULL;
22422 }
22423
22424
22425 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22426 PyObject *resultobj = 0;
22427 wxTreebook *arg1 = (wxTreebook *) 0 ;
22428 size_t arg2 ;
22429 bool arg3 = (bool) true ;
22430 bool result;
22431 void *argp1 = 0 ;
22432 int res1 = 0 ;
22433 size_t val2 ;
22434 int ecode2 = 0 ;
22435 bool val3 ;
22436 int ecode3 = 0 ;
22437 PyObject * obj0 = 0 ;
22438 PyObject * obj1 = 0 ;
22439 PyObject * obj2 = 0 ;
22440 char * kwnames[] = {
22441 (char *) "self",(char *) "pos",(char *) "expand", NULL
22442 };
22443
22444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22446 if (!SWIG_IsOK(res1)) {
22447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22448 }
22449 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22450 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22451 if (!SWIG_IsOK(ecode2)) {
22452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22453 }
22454 arg2 = static_cast< size_t >(val2);
22455 if (obj2) {
22456 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22457 if (!SWIG_IsOK(ecode3)) {
22458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22459 }
22460 arg3 = static_cast< bool >(val3);
22461 }
22462 {
22463 PyThreadState* __tstate = wxPyBeginAllowThreads();
22464 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22465 wxPyEndAllowThreads(__tstate);
22466 if (PyErr_Occurred()) SWIG_fail;
22467 }
22468 {
22469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22470 }
22471 return resultobj;
22472 fail:
22473 return NULL;
22474 }
22475
22476
22477 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22478 PyObject *resultobj = 0;
22479 wxTreebook *arg1 = (wxTreebook *) 0 ;
22480 size_t arg2 ;
22481 bool result;
22482 void *argp1 = 0 ;
22483 int res1 = 0 ;
22484 size_t val2 ;
22485 int ecode2 = 0 ;
22486 PyObject * obj0 = 0 ;
22487 PyObject * obj1 = 0 ;
22488 char * kwnames[] = {
22489 (char *) "self",(char *) "pos", NULL
22490 };
22491
22492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22494 if (!SWIG_IsOK(res1)) {
22495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22496 }
22497 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22498 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22499 if (!SWIG_IsOK(ecode2)) {
22500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22501 }
22502 arg2 = static_cast< size_t >(val2);
22503 {
22504 PyThreadState* __tstate = wxPyBeginAllowThreads();
22505 result = (bool)(arg1)->CollapseNode(arg2);
22506 wxPyEndAllowThreads(__tstate);
22507 if (PyErr_Occurred()) SWIG_fail;
22508 }
22509 {
22510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22511 }
22512 return resultobj;
22513 fail:
22514 return NULL;
22515 }
22516
22517
22518 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22519 PyObject *resultobj = 0;
22520 wxTreebook *arg1 = (wxTreebook *) 0 ;
22521 size_t arg2 ;
22522 int result;
22523 void *argp1 = 0 ;
22524 int res1 = 0 ;
22525 size_t val2 ;
22526 int ecode2 = 0 ;
22527 PyObject * obj0 = 0 ;
22528 PyObject * obj1 = 0 ;
22529 char * kwnames[] = {
22530 (char *) "self",(char *) "pos", NULL
22531 };
22532
22533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22535 if (!SWIG_IsOK(res1)) {
22536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22537 }
22538 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22539 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22540 if (!SWIG_IsOK(ecode2)) {
22541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22542 }
22543 arg2 = static_cast< size_t >(val2);
22544 {
22545 PyThreadState* __tstate = wxPyBeginAllowThreads();
22546 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22547 wxPyEndAllowThreads(__tstate);
22548 if (PyErr_Occurred()) SWIG_fail;
22549 }
22550 resultobj = SWIG_From_int(static_cast< int >(result));
22551 return resultobj;
22552 fail:
22553 return NULL;
22554 }
22555
22556
22557 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22558 PyObject *resultobj = 0;
22559 wxTreebook *arg1 = (wxTreebook *) 0 ;
22560 wxPyTreeCtrl *result = 0 ;
22561 void *argp1 = 0 ;
22562 int res1 = 0 ;
22563 PyObject *swig_obj[1] ;
22564
22565 if (!args) SWIG_fail;
22566 swig_obj[0] = args;
22567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22568 if (!SWIG_IsOK(res1)) {
22569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22570 }
22571 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22572 {
22573 PyThreadState* __tstate = wxPyBeginAllowThreads();
22574 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22575 wxPyEndAllowThreads(__tstate);
22576 if (PyErr_Occurred()) SWIG_fail;
22577 }
22578 {
22579 resultobj = wxPyMake_wxObject(result, (bool)0);
22580 }
22581 return resultobj;
22582 fail:
22583 return NULL;
22584 }
22585
22586
22587 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22588 PyObject *obj;
22589 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22590 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22591 return SWIG_Py_Void();
22592 }
22593
22594 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22595 return SWIG_Python_InitShadowInstance(args);
22596 }
22597
22598 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22599 PyObject *resultobj = 0;
22600 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22601 int arg2 = (int) 0 ;
22602 int arg3 = (int) wxNOT_FOUND ;
22603 int arg4 = (int) wxNOT_FOUND ;
22604 wxTreebookEvent *result = 0 ;
22605 int val1 ;
22606 int ecode1 = 0 ;
22607 int val2 ;
22608 int ecode2 = 0 ;
22609 int val3 ;
22610 int ecode3 = 0 ;
22611 int val4 ;
22612 int ecode4 = 0 ;
22613 PyObject * obj0 = 0 ;
22614 PyObject * obj1 = 0 ;
22615 PyObject * obj2 = 0 ;
22616 PyObject * obj3 = 0 ;
22617 char * kwnames[] = {
22618 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22619 };
22620
22621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22622 if (obj0) {
22623 ecode1 = SWIG_AsVal_int(obj0, &val1);
22624 if (!SWIG_IsOK(ecode1)) {
22625 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22626 }
22627 arg1 = static_cast< wxEventType >(val1);
22628 }
22629 if (obj1) {
22630 ecode2 = SWIG_AsVal_int(obj1, &val2);
22631 if (!SWIG_IsOK(ecode2)) {
22632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22633 }
22634 arg2 = static_cast< int >(val2);
22635 }
22636 if (obj2) {
22637 ecode3 = SWIG_AsVal_int(obj2, &val3);
22638 if (!SWIG_IsOK(ecode3)) {
22639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22640 }
22641 arg3 = static_cast< int >(val3);
22642 }
22643 if (obj3) {
22644 ecode4 = SWIG_AsVal_int(obj3, &val4);
22645 if (!SWIG_IsOK(ecode4)) {
22646 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22647 }
22648 arg4 = static_cast< int >(val4);
22649 }
22650 {
22651 PyThreadState* __tstate = wxPyBeginAllowThreads();
22652 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22653 wxPyEndAllowThreads(__tstate);
22654 if (PyErr_Occurred()) SWIG_fail;
22655 }
22656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22657 return resultobj;
22658 fail:
22659 return NULL;
22660 }
22661
22662
22663 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22664 PyObject *obj;
22665 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22666 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22667 return SWIG_Py_Void();
22668 }
22669
22670 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22671 return SWIG_Python_InitShadowInstance(args);
22672 }
22673
22674 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22675 PyObject *resultobj = 0;
22676 wxWindow *arg1 = (wxWindow *) 0 ;
22677 int arg2 ;
22678 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22679 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22680 wxSize const &arg4_defvalue = wxDefaultSize ;
22681 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22682 long arg5 = (long) wxBK_DEFAULT ;
22683 wxString const &arg6_defvalue = wxPyEmptyString ;
22684 wxString *arg6 = (wxString *) &arg6_defvalue ;
22685 wxToolbook *result = 0 ;
22686 void *argp1 = 0 ;
22687 int res1 = 0 ;
22688 int val2 ;
22689 int ecode2 = 0 ;
22690 wxPoint temp3 ;
22691 wxSize temp4 ;
22692 long val5 ;
22693 int ecode5 = 0 ;
22694 bool temp6 = false ;
22695 PyObject * obj0 = 0 ;
22696 PyObject * obj1 = 0 ;
22697 PyObject * obj2 = 0 ;
22698 PyObject * obj3 = 0 ;
22699 PyObject * obj4 = 0 ;
22700 PyObject * obj5 = 0 ;
22701 char * kwnames[] = {
22702 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22703 };
22704
22705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22707 if (!SWIG_IsOK(res1)) {
22708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22709 }
22710 arg1 = reinterpret_cast< wxWindow * >(argp1);
22711 ecode2 = SWIG_AsVal_int(obj1, &val2);
22712 if (!SWIG_IsOK(ecode2)) {
22713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22714 }
22715 arg2 = static_cast< int >(val2);
22716 if (obj2) {
22717 {
22718 arg3 = &temp3;
22719 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22720 }
22721 }
22722 if (obj3) {
22723 {
22724 arg4 = &temp4;
22725 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22726 }
22727 }
22728 if (obj4) {
22729 ecode5 = SWIG_AsVal_long(obj4, &val5);
22730 if (!SWIG_IsOK(ecode5)) {
22731 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22732 }
22733 arg5 = static_cast< long >(val5);
22734 }
22735 if (obj5) {
22736 {
22737 arg6 = wxString_in_helper(obj5);
22738 if (arg6 == NULL) SWIG_fail;
22739 temp6 = true;
22740 }
22741 }
22742 {
22743 PyThreadState* __tstate = wxPyBeginAllowThreads();
22744 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22745 wxPyEndAllowThreads(__tstate);
22746 if (PyErr_Occurred()) SWIG_fail;
22747 }
22748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22749 {
22750 if (temp6)
22751 delete arg6;
22752 }
22753 return resultobj;
22754 fail:
22755 {
22756 if (temp6)
22757 delete arg6;
22758 }
22759 return NULL;
22760 }
22761
22762
22763 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22764 PyObject *resultobj = 0;
22765 wxToolbook *result = 0 ;
22766
22767 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22768 {
22769 PyThreadState* __tstate = wxPyBeginAllowThreads();
22770 result = (wxToolbook *)new wxToolbook();
22771 wxPyEndAllowThreads(__tstate);
22772 if (PyErr_Occurred()) SWIG_fail;
22773 }
22774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22775 return resultobj;
22776 fail:
22777 return NULL;
22778 }
22779
22780
22781 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22782 PyObject *resultobj = 0;
22783 wxToolbook *arg1 = (wxToolbook *) 0 ;
22784 wxWindow *arg2 = (wxWindow *) 0 ;
22785 int arg3 ;
22786 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22787 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22788 wxSize const &arg5_defvalue = wxDefaultSize ;
22789 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22790 long arg6 = (long) 0 ;
22791 wxString const &arg7_defvalue = wxEmptyString ;
22792 wxString *arg7 = (wxString *) &arg7_defvalue ;
22793 bool result;
22794 void *argp1 = 0 ;
22795 int res1 = 0 ;
22796 void *argp2 = 0 ;
22797 int res2 = 0 ;
22798 int val3 ;
22799 int ecode3 = 0 ;
22800 wxPoint temp4 ;
22801 wxSize temp5 ;
22802 long val6 ;
22803 int ecode6 = 0 ;
22804 bool temp7 = false ;
22805 PyObject * obj0 = 0 ;
22806 PyObject * obj1 = 0 ;
22807 PyObject * obj2 = 0 ;
22808 PyObject * obj3 = 0 ;
22809 PyObject * obj4 = 0 ;
22810 PyObject * obj5 = 0 ;
22811 PyObject * obj6 = 0 ;
22812 char * kwnames[] = {
22813 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22814 };
22815
22816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22818 if (!SWIG_IsOK(res1)) {
22819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22820 }
22821 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22822 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22823 if (!SWIG_IsOK(res2)) {
22824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22825 }
22826 arg2 = reinterpret_cast< wxWindow * >(argp2);
22827 ecode3 = SWIG_AsVal_int(obj2, &val3);
22828 if (!SWIG_IsOK(ecode3)) {
22829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22830 }
22831 arg3 = static_cast< int >(val3);
22832 if (obj3) {
22833 {
22834 arg4 = &temp4;
22835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22836 }
22837 }
22838 if (obj4) {
22839 {
22840 arg5 = &temp5;
22841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22842 }
22843 }
22844 if (obj5) {
22845 ecode6 = SWIG_AsVal_long(obj5, &val6);
22846 if (!SWIG_IsOK(ecode6)) {
22847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22848 }
22849 arg6 = static_cast< long >(val6);
22850 }
22851 if (obj6) {
22852 {
22853 arg7 = wxString_in_helper(obj6);
22854 if (arg7 == NULL) SWIG_fail;
22855 temp7 = true;
22856 }
22857 }
22858 {
22859 PyThreadState* __tstate = wxPyBeginAllowThreads();
22860 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22861 wxPyEndAllowThreads(__tstate);
22862 if (PyErr_Occurred()) SWIG_fail;
22863 }
22864 {
22865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22866 }
22867 {
22868 if (temp7)
22869 delete arg7;
22870 }
22871 return resultobj;
22872 fail:
22873 {
22874 if (temp7)
22875 delete arg7;
22876 }
22877 return NULL;
22878 }
22879
22880
22881 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22882 PyObject *resultobj = 0;
22883 wxToolbook *arg1 = (wxToolbook *) 0 ;
22884 wxToolBarBase *result = 0 ;
22885 void *argp1 = 0 ;
22886 int res1 = 0 ;
22887 PyObject *swig_obj[1] ;
22888
22889 if (!args) SWIG_fail;
22890 swig_obj[0] = args;
22891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22892 if (!SWIG_IsOK(res1)) {
22893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22894 }
22895 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22896 {
22897 PyThreadState* __tstate = wxPyBeginAllowThreads();
22898 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22899 wxPyEndAllowThreads(__tstate);
22900 if (PyErr_Occurred()) SWIG_fail;
22901 }
22902 {
22903 resultobj = wxPyMake_wxObject(result, (bool)0);
22904 }
22905 return resultobj;
22906 fail:
22907 return NULL;
22908 }
22909
22910
22911 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22912 PyObject *resultobj = 0;
22913 wxToolbook *arg1 = (wxToolbook *) 0 ;
22914 void *argp1 = 0 ;
22915 int res1 = 0 ;
22916 PyObject *swig_obj[1] ;
22917
22918 if (!args) SWIG_fail;
22919 swig_obj[0] = args;
22920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22921 if (!SWIG_IsOK(res1)) {
22922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22923 }
22924 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22925 {
22926 PyThreadState* __tstate = wxPyBeginAllowThreads();
22927 (arg1)->Realize();
22928 wxPyEndAllowThreads(__tstate);
22929 if (PyErr_Occurred()) SWIG_fail;
22930 }
22931 resultobj = SWIG_Py_Void();
22932 return resultobj;
22933 fail:
22934 return NULL;
22935 }
22936
22937
22938 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22939 PyObject *obj;
22940 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22941 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22942 return SWIG_Py_Void();
22943 }
22944
22945 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22946 return SWIG_Python_InitShadowInstance(args);
22947 }
22948
22949 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22950 PyObject *resultobj = 0;
22951 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22952 int arg2 = (int) 0 ;
22953 int arg3 = (int) wxNOT_FOUND ;
22954 int arg4 = (int) wxNOT_FOUND ;
22955 wxToolbookEvent *result = 0 ;
22956 int val1 ;
22957 int ecode1 = 0 ;
22958 int val2 ;
22959 int ecode2 = 0 ;
22960 int val3 ;
22961 int ecode3 = 0 ;
22962 int val4 ;
22963 int ecode4 = 0 ;
22964 PyObject * obj0 = 0 ;
22965 PyObject * obj1 = 0 ;
22966 PyObject * obj2 = 0 ;
22967 PyObject * obj3 = 0 ;
22968 char * kwnames[] = {
22969 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22970 };
22971
22972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22973 if (obj0) {
22974 ecode1 = SWIG_AsVal_int(obj0, &val1);
22975 if (!SWIG_IsOK(ecode1)) {
22976 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22977 }
22978 arg1 = static_cast< wxEventType >(val1);
22979 }
22980 if (obj1) {
22981 ecode2 = SWIG_AsVal_int(obj1, &val2);
22982 if (!SWIG_IsOK(ecode2)) {
22983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22984 }
22985 arg2 = static_cast< int >(val2);
22986 }
22987 if (obj2) {
22988 ecode3 = SWIG_AsVal_int(obj2, &val3);
22989 if (!SWIG_IsOK(ecode3)) {
22990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22991 }
22992 arg3 = static_cast< int >(val3);
22993 }
22994 if (obj3) {
22995 ecode4 = SWIG_AsVal_int(obj3, &val4);
22996 if (!SWIG_IsOK(ecode4)) {
22997 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22998 }
22999 arg4 = static_cast< int >(val4);
23000 }
23001 {
23002 PyThreadState* __tstate = wxPyBeginAllowThreads();
23003 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
23004 wxPyEndAllowThreads(__tstate);
23005 if (PyErr_Occurred()) SWIG_fail;
23006 }
23007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
23008 return resultobj;
23009 fail:
23010 return NULL;
23011 }
23012
23013
23014 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23015 PyObject *obj;
23016 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23017 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
23018 return SWIG_Py_Void();
23019 }
23020
23021 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23022 return SWIG_Python_InitShadowInstance(args);
23023 }
23024
23025 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23026 PyObject *resultobj = 0;
23027 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23028 int result;
23029 void *argp1 = 0 ;
23030 int res1 = 0 ;
23031 PyObject *swig_obj[1] ;
23032
23033 if (!args) SWIG_fail;
23034 swig_obj[0] = args;
23035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23036 if (!SWIG_IsOK(res1)) {
23037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23038 }
23039 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23040 {
23041 PyThreadState* __tstate = wxPyBeginAllowThreads();
23042 result = (int)(arg1)->GetId();
23043 wxPyEndAllowThreads(__tstate);
23044 if (PyErr_Occurred()) SWIG_fail;
23045 }
23046 resultobj = SWIG_From_int(static_cast< int >(result));
23047 return resultobj;
23048 fail:
23049 return NULL;
23050 }
23051
23052
23053 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23054 PyObject *resultobj = 0;
23055 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23056 wxControl *result = 0 ;
23057 void *argp1 = 0 ;
23058 int res1 = 0 ;
23059 PyObject *swig_obj[1] ;
23060
23061 if (!args) SWIG_fail;
23062 swig_obj[0] = args;
23063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23064 if (!SWIG_IsOK(res1)) {
23065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23066 }
23067 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23068 {
23069 PyThreadState* __tstate = wxPyBeginAllowThreads();
23070 result = (wxControl *)(arg1)->GetControl();
23071 wxPyEndAllowThreads(__tstate);
23072 if (PyErr_Occurred()) SWIG_fail;
23073 }
23074 {
23075 resultobj = wxPyMake_wxObject(result, 0);
23076 }
23077 return resultobj;
23078 fail:
23079 return NULL;
23080 }
23081
23082
23083 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23084 PyObject *resultobj = 0;
23085 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23086 wxToolBarBase *result = 0 ;
23087 void *argp1 = 0 ;
23088 int res1 = 0 ;
23089 PyObject *swig_obj[1] ;
23090
23091 if (!args) SWIG_fail;
23092 swig_obj[0] = args;
23093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23094 if (!SWIG_IsOK(res1)) {
23095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23096 }
23097 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23098 {
23099 PyThreadState* __tstate = wxPyBeginAllowThreads();
23100 result = (wxToolBarBase *)(arg1)->GetToolBar();
23101 wxPyEndAllowThreads(__tstate);
23102 if (PyErr_Occurred()) SWIG_fail;
23103 }
23104 {
23105 resultobj = wxPyMake_wxObject(result, (bool)0);
23106 }
23107 return resultobj;
23108 fail:
23109 return NULL;
23110 }
23111
23112
23113 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23114 PyObject *resultobj = 0;
23115 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23116 int result;
23117 void *argp1 = 0 ;
23118 int res1 = 0 ;
23119 PyObject *swig_obj[1] ;
23120
23121 if (!args) SWIG_fail;
23122 swig_obj[0] = args;
23123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23124 if (!SWIG_IsOK(res1)) {
23125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23126 }
23127 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23128 {
23129 PyThreadState* __tstate = wxPyBeginAllowThreads();
23130 result = (int)(arg1)->IsButton();
23131 wxPyEndAllowThreads(__tstate);
23132 if (PyErr_Occurred()) SWIG_fail;
23133 }
23134 resultobj = SWIG_From_int(static_cast< int >(result));
23135 return resultobj;
23136 fail:
23137 return NULL;
23138 }
23139
23140
23141 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23142 PyObject *resultobj = 0;
23143 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23144 int result;
23145 void *argp1 = 0 ;
23146 int res1 = 0 ;
23147 PyObject *swig_obj[1] ;
23148
23149 if (!args) SWIG_fail;
23150 swig_obj[0] = args;
23151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23152 if (!SWIG_IsOK(res1)) {
23153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23154 }
23155 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23156 {
23157 PyThreadState* __tstate = wxPyBeginAllowThreads();
23158 result = (int)(arg1)->IsControl();
23159 wxPyEndAllowThreads(__tstate);
23160 if (PyErr_Occurred()) SWIG_fail;
23161 }
23162 resultobj = SWIG_From_int(static_cast< int >(result));
23163 return resultobj;
23164 fail:
23165 return NULL;
23166 }
23167
23168
23169 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23170 PyObject *resultobj = 0;
23171 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23172 int result;
23173 void *argp1 = 0 ;
23174 int res1 = 0 ;
23175 PyObject *swig_obj[1] ;
23176
23177 if (!args) SWIG_fail;
23178 swig_obj[0] = args;
23179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23180 if (!SWIG_IsOK(res1)) {
23181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23182 }
23183 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23184 {
23185 PyThreadState* __tstate = wxPyBeginAllowThreads();
23186 result = (int)(arg1)->IsSeparator();
23187 wxPyEndAllowThreads(__tstate);
23188 if (PyErr_Occurred()) SWIG_fail;
23189 }
23190 resultobj = SWIG_From_int(static_cast< int >(result));
23191 return resultobj;
23192 fail:
23193 return NULL;
23194 }
23195
23196
23197 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23198 PyObject *resultobj = 0;
23199 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23200 int result;
23201 void *argp1 = 0 ;
23202 int res1 = 0 ;
23203 PyObject *swig_obj[1] ;
23204
23205 if (!args) SWIG_fail;
23206 swig_obj[0] = args;
23207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23208 if (!SWIG_IsOK(res1)) {
23209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23210 }
23211 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23212 {
23213 PyThreadState* __tstate = wxPyBeginAllowThreads();
23214 result = (int)(arg1)->GetStyle();
23215 wxPyEndAllowThreads(__tstate);
23216 if (PyErr_Occurred()) SWIG_fail;
23217 }
23218 resultobj = SWIG_From_int(static_cast< int >(result));
23219 return resultobj;
23220 fail:
23221 return NULL;
23222 }
23223
23224
23225 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23226 PyObject *resultobj = 0;
23227 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23228 wxItemKind result;
23229 void *argp1 = 0 ;
23230 int res1 = 0 ;
23231 PyObject *swig_obj[1] ;
23232
23233 if (!args) SWIG_fail;
23234 swig_obj[0] = args;
23235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23236 if (!SWIG_IsOK(res1)) {
23237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23238 }
23239 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23240 {
23241 PyThreadState* __tstate = wxPyBeginAllowThreads();
23242 result = (wxItemKind)(arg1)->GetKind();
23243 wxPyEndAllowThreads(__tstate);
23244 if (PyErr_Occurred()) SWIG_fail;
23245 }
23246 resultobj = SWIG_From_int(static_cast< int >(result));
23247 return resultobj;
23248 fail:
23249 return NULL;
23250 }
23251
23252
23253 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23254 PyObject *resultobj = 0;
23255 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23256 bool result;
23257 void *argp1 = 0 ;
23258 int res1 = 0 ;
23259 PyObject *swig_obj[1] ;
23260
23261 if (!args) SWIG_fail;
23262 swig_obj[0] = args;
23263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23264 if (!SWIG_IsOK(res1)) {
23265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23266 }
23267 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23268 {
23269 PyThreadState* __tstate = wxPyBeginAllowThreads();
23270 result = (bool)(arg1)->IsEnabled();
23271 wxPyEndAllowThreads(__tstate);
23272 if (PyErr_Occurred()) SWIG_fail;
23273 }
23274 {
23275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23276 }
23277 return resultobj;
23278 fail:
23279 return NULL;
23280 }
23281
23282
23283 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23284 PyObject *resultobj = 0;
23285 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23286 bool result;
23287 void *argp1 = 0 ;
23288 int res1 = 0 ;
23289 PyObject *swig_obj[1] ;
23290
23291 if (!args) SWIG_fail;
23292 swig_obj[0] = args;
23293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23294 if (!SWIG_IsOK(res1)) {
23295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23296 }
23297 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23298 {
23299 PyThreadState* __tstate = wxPyBeginAllowThreads();
23300 result = (bool)(arg1)->IsToggled();
23301 wxPyEndAllowThreads(__tstate);
23302 if (PyErr_Occurred()) SWIG_fail;
23303 }
23304 {
23305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23306 }
23307 return resultobj;
23308 fail:
23309 return NULL;
23310 }
23311
23312
23313 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23314 PyObject *resultobj = 0;
23315 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23316 bool result;
23317 void *argp1 = 0 ;
23318 int res1 = 0 ;
23319 PyObject *swig_obj[1] ;
23320
23321 if (!args) SWIG_fail;
23322 swig_obj[0] = args;
23323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23324 if (!SWIG_IsOK(res1)) {
23325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23326 }
23327 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23328 {
23329 PyThreadState* __tstate = wxPyBeginAllowThreads();
23330 result = (bool)(arg1)->CanBeToggled();
23331 wxPyEndAllowThreads(__tstate);
23332 if (PyErr_Occurred()) SWIG_fail;
23333 }
23334 {
23335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23336 }
23337 return resultobj;
23338 fail:
23339 return NULL;
23340 }
23341
23342
23343 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23344 PyObject *resultobj = 0;
23345 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23346 wxBitmap *result = 0 ;
23347 void *argp1 = 0 ;
23348 int res1 = 0 ;
23349 PyObject *swig_obj[1] ;
23350
23351 if (!args) SWIG_fail;
23352 swig_obj[0] = args;
23353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23354 if (!SWIG_IsOK(res1)) {
23355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23356 }
23357 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23358 {
23359 PyThreadState* __tstate = wxPyBeginAllowThreads();
23360 {
23361 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23362 result = (wxBitmap *) &_result_ref;
23363 }
23364 wxPyEndAllowThreads(__tstate);
23365 if (PyErr_Occurred()) SWIG_fail;
23366 }
23367 {
23368 wxBitmap* resultptr = new wxBitmap(*result);
23369 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23370 }
23371 return resultobj;
23372 fail:
23373 return NULL;
23374 }
23375
23376
23377 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23378 PyObject *resultobj = 0;
23379 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23380 wxBitmap *result = 0 ;
23381 void *argp1 = 0 ;
23382 int res1 = 0 ;
23383 PyObject *swig_obj[1] ;
23384
23385 if (!args) SWIG_fail;
23386 swig_obj[0] = args;
23387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23388 if (!SWIG_IsOK(res1)) {
23389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23390 }
23391 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23392 {
23393 PyThreadState* __tstate = wxPyBeginAllowThreads();
23394 {
23395 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23396 result = (wxBitmap *) &_result_ref;
23397 }
23398 wxPyEndAllowThreads(__tstate);
23399 if (PyErr_Occurred()) SWIG_fail;
23400 }
23401 {
23402 wxBitmap* resultptr = new wxBitmap(*result);
23403 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23404 }
23405 return resultobj;
23406 fail:
23407 return NULL;
23408 }
23409
23410
23411 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23412 PyObject *resultobj = 0;
23413 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23414 wxBitmap result;
23415 void *argp1 = 0 ;
23416 int res1 = 0 ;
23417 PyObject *swig_obj[1] ;
23418
23419 if (!args) SWIG_fail;
23420 swig_obj[0] = args;
23421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23422 if (!SWIG_IsOK(res1)) {
23423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23424 }
23425 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23426 {
23427 PyThreadState* __tstate = wxPyBeginAllowThreads();
23428 result = (arg1)->GetBitmap();
23429 wxPyEndAllowThreads(__tstate);
23430 if (PyErr_Occurred()) SWIG_fail;
23431 }
23432 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23433 return resultobj;
23434 fail:
23435 return NULL;
23436 }
23437
23438
23439 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23440 PyObject *resultobj = 0;
23441 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23442 wxString result;
23443 void *argp1 = 0 ;
23444 int res1 = 0 ;
23445 PyObject *swig_obj[1] ;
23446
23447 if (!args) SWIG_fail;
23448 swig_obj[0] = args;
23449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23450 if (!SWIG_IsOK(res1)) {
23451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23452 }
23453 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23454 {
23455 PyThreadState* __tstate = wxPyBeginAllowThreads();
23456 result = (arg1)->GetLabel();
23457 wxPyEndAllowThreads(__tstate);
23458 if (PyErr_Occurred()) SWIG_fail;
23459 }
23460 {
23461 #if wxUSE_UNICODE
23462 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23463 #else
23464 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23465 #endif
23466 }
23467 return resultobj;
23468 fail:
23469 return NULL;
23470 }
23471
23472
23473 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23474 PyObject *resultobj = 0;
23475 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23476 wxString result;
23477 void *argp1 = 0 ;
23478 int res1 = 0 ;
23479 PyObject *swig_obj[1] ;
23480
23481 if (!args) SWIG_fail;
23482 swig_obj[0] = args;
23483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23484 if (!SWIG_IsOK(res1)) {
23485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23486 }
23487 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23488 {
23489 PyThreadState* __tstate = wxPyBeginAllowThreads();
23490 result = (arg1)->GetShortHelp();
23491 wxPyEndAllowThreads(__tstate);
23492 if (PyErr_Occurred()) SWIG_fail;
23493 }
23494 {
23495 #if wxUSE_UNICODE
23496 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23497 #else
23498 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23499 #endif
23500 }
23501 return resultobj;
23502 fail:
23503 return NULL;
23504 }
23505
23506
23507 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23508 PyObject *resultobj = 0;
23509 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23510 wxString result;
23511 void *argp1 = 0 ;
23512 int res1 = 0 ;
23513 PyObject *swig_obj[1] ;
23514
23515 if (!args) SWIG_fail;
23516 swig_obj[0] = args;
23517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23518 if (!SWIG_IsOK(res1)) {
23519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23520 }
23521 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23522 {
23523 PyThreadState* __tstate = wxPyBeginAllowThreads();
23524 result = (arg1)->GetLongHelp();
23525 wxPyEndAllowThreads(__tstate);
23526 if (PyErr_Occurred()) SWIG_fail;
23527 }
23528 {
23529 #if wxUSE_UNICODE
23530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23531 #else
23532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23533 #endif
23534 }
23535 return resultobj;
23536 fail:
23537 return NULL;
23538 }
23539
23540
23541 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23542 PyObject *resultobj = 0;
23543 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23544 bool arg2 ;
23545 bool result;
23546 void *argp1 = 0 ;
23547 int res1 = 0 ;
23548 bool val2 ;
23549 int ecode2 = 0 ;
23550 PyObject * obj0 = 0 ;
23551 PyObject * obj1 = 0 ;
23552 char * kwnames[] = {
23553 (char *) "self",(char *) "enable", NULL
23554 };
23555
23556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23558 if (!SWIG_IsOK(res1)) {
23559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23560 }
23561 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23562 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23563 if (!SWIG_IsOK(ecode2)) {
23564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23565 }
23566 arg2 = static_cast< bool >(val2);
23567 {
23568 PyThreadState* __tstate = wxPyBeginAllowThreads();
23569 result = (bool)(arg1)->Enable(arg2);
23570 wxPyEndAllowThreads(__tstate);
23571 if (PyErr_Occurred()) SWIG_fail;
23572 }
23573 {
23574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23575 }
23576 return resultobj;
23577 fail:
23578 return NULL;
23579 }
23580
23581
23582 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23583 PyObject *resultobj = 0;
23584 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23585 void *argp1 = 0 ;
23586 int res1 = 0 ;
23587 PyObject *swig_obj[1] ;
23588
23589 if (!args) SWIG_fail;
23590 swig_obj[0] = args;
23591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23592 if (!SWIG_IsOK(res1)) {
23593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23594 }
23595 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23596 {
23597 PyThreadState* __tstate = wxPyBeginAllowThreads();
23598 (arg1)->Toggle();
23599 wxPyEndAllowThreads(__tstate);
23600 if (PyErr_Occurred()) SWIG_fail;
23601 }
23602 resultobj = SWIG_Py_Void();
23603 return resultobj;
23604 fail:
23605 return NULL;
23606 }
23607
23608
23609 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23610 PyObject *resultobj = 0;
23611 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23612 bool arg2 ;
23613 bool result;
23614 void *argp1 = 0 ;
23615 int res1 = 0 ;
23616 bool val2 ;
23617 int ecode2 = 0 ;
23618 PyObject * obj0 = 0 ;
23619 PyObject * obj1 = 0 ;
23620 char * kwnames[] = {
23621 (char *) "self",(char *) "toggle", NULL
23622 };
23623
23624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23626 if (!SWIG_IsOK(res1)) {
23627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23628 }
23629 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23630 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23631 if (!SWIG_IsOK(ecode2)) {
23632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23633 }
23634 arg2 = static_cast< bool >(val2);
23635 {
23636 PyThreadState* __tstate = wxPyBeginAllowThreads();
23637 result = (bool)(arg1)->SetToggle(arg2);
23638 wxPyEndAllowThreads(__tstate);
23639 if (PyErr_Occurred()) SWIG_fail;
23640 }
23641 {
23642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23643 }
23644 return resultobj;
23645 fail:
23646 return NULL;
23647 }
23648
23649
23650 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23651 PyObject *resultobj = 0;
23652 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23653 wxString *arg2 = 0 ;
23654 bool result;
23655 void *argp1 = 0 ;
23656 int res1 = 0 ;
23657 bool temp2 = false ;
23658 PyObject * obj0 = 0 ;
23659 PyObject * obj1 = 0 ;
23660 char * kwnames[] = {
23661 (char *) "self",(char *) "help", NULL
23662 };
23663
23664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23666 if (!SWIG_IsOK(res1)) {
23667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23668 }
23669 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23670 {
23671 arg2 = wxString_in_helper(obj1);
23672 if (arg2 == NULL) SWIG_fail;
23673 temp2 = true;
23674 }
23675 {
23676 PyThreadState* __tstate = wxPyBeginAllowThreads();
23677 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23678 wxPyEndAllowThreads(__tstate);
23679 if (PyErr_Occurred()) SWIG_fail;
23680 }
23681 {
23682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23683 }
23684 {
23685 if (temp2)
23686 delete arg2;
23687 }
23688 return resultobj;
23689 fail:
23690 {
23691 if (temp2)
23692 delete arg2;
23693 }
23694 return NULL;
23695 }
23696
23697
23698 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23699 PyObject *resultobj = 0;
23700 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23701 wxString *arg2 = 0 ;
23702 bool result;
23703 void *argp1 = 0 ;
23704 int res1 = 0 ;
23705 bool temp2 = false ;
23706 PyObject * obj0 = 0 ;
23707 PyObject * obj1 = 0 ;
23708 char * kwnames[] = {
23709 (char *) "self",(char *) "help", NULL
23710 };
23711
23712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23714 if (!SWIG_IsOK(res1)) {
23715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23716 }
23717 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23718 {
23719 arg2 = wxString_in_helper(obj1);
23720 if (arg2 == NULL) SWIG_fail;
23721 temp2 = true;
23722 }
23723 {
23724 PyThreadState* __tstate = wxPyBeginAllowThreads();
23725 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23726 wxPyEndAllowThreads(__tstate);
23727 if (PyErr_Occurred()) SWIG_fail;
23728 }
23729 {
23730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23731 }
23732 {
23733 if (temp2)
23734 delete arg2;
23735 }
23736 return resultobj;
23737 fail:
23738 {
23739 if (temp2)
23740 delete arg2;
23741 }
23742 return NULL;
23743 }
23744
23745
23746 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23747 PyObject *resultobj = 0;
23748 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23749 wxBitmap *arg2 = 0 ;
23750 void *argp1 = 0 ;
23751 int res1 = 0 ;
23752 void *argp2 = 0 ;
23753 int res2 = 0 ;
23754 PyObject * obj0 = 0 ;
23755 PyObject * obj1 = 0 ;
23756 char * kwnames[] = {
23757 (char *) "self",(char *) "bmp", NULL
23758 };
23759
23760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23762 if (!SWIG_IsOK(res1)) {
23763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23764 }
23765 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23766 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23767 if (!SWIG_IsOK(res2)) {
23768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23769 }
23770 if (!argp2) {
23771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23772 }
23773 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23774 {
23775 PyThreadState* __tstate = wxPyBeginAllowThreads();
23776 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23777 wxPyEndAllowThreads(__tstate);
23778 if (PyErr_Occurred()) SWIG_fail;
23779 }
23780 resultobj = SWIG_Py_Void();
23781 return resultobj;
23782 fail:
23783 return NULL;
23784 }
23785
23786
23787 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23788 PyObject *resultobj = 0;
23789 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23790 wxBitmap *arg2 = 0 ;
23791 void *argp1 = 0 ;
23792 int res1 = 0 ;
23793 void *argp2 = 0 ;
23794 int res2 = 0 ;
23795 PyObject * obj0 = 0 ;
23796 PyObject * obj1 = 0 ;
23797 char * kwnames[] = {
23798 (char *) "self",(char *) "bmp", NULL
23799 };
23800
23801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23803 if (!SWIG_IsOK(res1)) {
23804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23805 }
23806 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23807 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23808 if (!SWIG_IsOK(res2)) {
23809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23810 }
23811 if (!argp2) {
23812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23813 }
23814 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23815 {
23816 PyThreadState* __tstate = wxPyBeginAllowThreads();
23817 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23818 wxPyEndAllowThreads(__tstate);
23819 if (PyErr_Occurred()) SWIG_fail;
23820 }
23821 resultobj = SWIG_Py_Void();
23822 return resultobj;
23823 fail:
23824 return NULL;
23825 }
23826
23827
23828 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23829 PyObject *resultobj = 0;
23830 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23831 wxString *arg2 = 0 ;
23832 void *argp1 = 0 ;
23833 int res1 = 0 ;
23834 bool temp2 = false ;
23835 PyObject * obj0 = 0 ;
23836 PyObject * obj1 = 0 ;
23837 char * kwnames[] = {
23838 (char *) "self",(char *) "label", NULL
23839 };
23840
23841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23843 if (!SWIG_IsOK(res1)) {
23844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23845 }
23846 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23847 {
23848 arg2 = wxString_in_helper(obj1);
23849 if (arg2 == NULL) SWIG_fail;
23850 temp2 = true;
23851 }
23852 {
23853 PyThreadState* __tstate = wxPyBeginAllowThreads();
23854 (arg1)->SetLabel((wxString const &)*arg2);
23855 wxPyEndAllowThreads(__tstate);
23856 if (PyErr_Occurred()) SWIG_fail;
23857 }
23858 resultobj = SWIG_Py_Void();
23859 {
23860 if (temp2)
23861 delete arg2;
23862 }
23863 return resultobj;
23864 fail:
23865 {
23866 if (temp2)
23867 delete arg2;
23868 }
23869 return NULL;
23870 }
23871
23872
23873 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23874 PyObject *resultobj = 0;
23875 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23876 void *argp1 = 0 ;
23877 int res1 = 0 ;
23878 PyObject *swig_obj[1] ;
23879
23880 if (!args) SWIG_fail;
23881 swig_obj[0] = args;
23882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23883 if (!SWIG_IsOK(res1)) {
23884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23885 }
23886 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23887 {
23888 PyThreadState* __tstate = wxPyBeginAllowThreads();
23889 (arg1)->Detach();
23890 wxPyEndAllowThreads(__tstate);
23891 if (PyErr_Occurred()) SWIG_fail;
23892 }
23893 resultobj = SWIG_Py_Void();
23894 return resultobj;
23895 fail:
23896 return NULL;
23897 }
23898
23899
23900 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23901 PyObject *resultobj = 0;
23902 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23903 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23904 void *argp1 = 0 ;
23905 int res1 = 0 ;
23906 void *argp2 = 0 ;
23907 int res2 = 0 ;
23908 PyObject * obj0 = 0 ;
23909 PyObject * obj1 = 0 ;
23910 char * kwnames[] = {
23911 (char *) "self",(char *) "tbar", NULL
23912 };
23913
23914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23916 if (!SWIG_IsOK(res1)) {
23917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23918 }
23919 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23920 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23921 if (!SWIG_IsOK(res2)) {
23922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23923 }
23924 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23925 {
23926 PyThreadState* __tstate = wxPyBeginAllowThreads();
23927 (arg1)->Attach(arg2);
23928 wxPyEndAllowThreads(__tstate);
23929 if (PyErr_Occurred()) SWIG_fail;
23930 }
23931 resultobj = SWIG_Py_Void();
23932 return resultobj;
23933 fail:
23934 return NULL;
23935 }
23936
23937
23938 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23939 PyObject *resultobj = 0;
23940 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23941 PyObject *result = 0 ;
23942 void *argp1 = 0 ;
23943 int res1 = 0 ;
23944 PyObject *swig_obj[1] ;
23945
23946 if (!args) SWIG_fail;
23947 swig_obj[0] = args;
23948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23949 if (!SWIG_IsOK(res1)) {
23950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23951 }
23952 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23953 {
23954 PyThreadState* __tstate = wxPyBeginAllowThreads();
23955 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23956 wxPyEndAllowThreads(__tstate);
23957 if (PyErr_Occurred()) SWIG_fail;
23958 }
23959 resultobj = result;
23960 return resultobj;
23961 fail:
23962 return NULL;
23963 }
23964
23965
23966 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23967 PyObject *resultobj = 0;
23968 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23969 PyObject *arg2 = (PyObject *) 0 ;
23970 void *argp1 = 0 ;
23971 int res1 = 0 ;
23972 PyObject * obj0 = 0 ;
23973 PyObject * obj1 = 0 ;
23974 char * kwnames[] = {
23975 (char *) "self",(char *) "clientData", NULL
23976 };
23977
23978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23980 if (!SWIG_IsOK(res1)) {
23981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23982 }
23983 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23984 arg2 = obj1;
23985 {
23986 PyThreadState* __tstate = wxPyBeginAllowThreads();
23987 wxToolBarToolBase_SetClientData(arg1,arg2);
23988 wxPyEndAllowThreads(__tstate);
23989 if (PyErr_Occurred()) SWIG_fail;
23990 }
23991 resultobj = SWIG_Py_Void();
23992 return resultobj;
23993 fail:
23994 return NULL;
23995 }
23996
23997
23998 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23999 PyObject *obj;
24000 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24001 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
24002 return SWIG_Py_Void();
24003 }
24004
24005 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24006 PyObject *resultobj = 0;
24007 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24008 int arg2 ;
24009 wxString *arg3 = 0 ;
24010 wxBitmap *arg4 = 0 ;
24011 wxBitmap const &arg5_defvalue = wxNullBitmap ;
24012 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
24013 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
24014 wxString const &arg7_defvalue = wxPyEmptyString ;
24015 wxString *arg7 = (wxString *) &arg7_defvalue ;
24016 wxString const &arg8_defvalue = wxPyEmptyString ;
24017 wxString *arg8 = (wxString *) &arg8_defvalue ;
24018 PyObject *arg9 = (PyObject *) NULL ;
24019 wxToolBarToolBase *result = 0 ;
24020 void *argp1 = 0 ;
24021 int res1 = 0 ;
24022 int val2 ;
24023 int ecode2 = 0 ;
24024 bool temp3 = false ;
24025 void *argp4 = 0 ;
24026 int res4 = 0 ;
24027 void *argp5 = 0 ;
24028 int res5 = 0 ;
24029 int val6 ;
24030 int ecode6 = 0 ;
24031 bool temp7 = false ;
24032 bool temp8 = false ;
24033 PyObject * obj0 = 0 ;
24034 PyObject * obj1 = 0 ;
24035 PyObject * obj2 = 0 ;
24036 PyObject * obj3 = 0 ;
24037 PyObject * obj4 = 0 ;
24038 PyObject * obj5 = 0 ;
24039 PyObject * obj6 = 0 ;
24040 PyObject * obj7 = 0 ;
24041 PyObject * obj8 = 0 ;
24042 char * kwnames[] = {
24043 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24044 };
24045
24046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
24047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24048 if (!SWIG_IsOK(res1)) {
24049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24050 }
24051 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24052 ecode2 = SWIG_AsVal_int(obj1, &val2);
24053 if (!SWIG_IsOK(ecode2)) {
24054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
24055 }
24056 arg2 = static_cast< int >(val2);
24057 {
24058 arg3 = wxString_in_helper(obj2);
24059 if (arg3 == NULL) SWIG_fail;
24060 temp3 = true;
24061 }
24062 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
24063 if (!SWIG_IsOK(res4)) {
24064 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24065 }
24066 if (!argp4) {
24067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24068 }
24069 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24070 if (obj4) {
24071 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24072 if (!SWIG_IsOK(res5)) {
24073 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24074 }
24075 if (!argp5) {
24076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24077 }
24078 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24079 }
24080 if (obj5) {
24081 ecode6 = SWIG_AsVal_int(obj5, &val6);
24082 if (!SWIG_IsOK(ecode6)) {
24083 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
24084 }
24085 arg6 = static_cast< wxItemKind >(val6);
24086 }
24087 if (obj6) {
24088 {
24089 arg7 = wxString_in_helper(obj6);
24090 if (arg7 == NULL) SWIG_fail;
24091 temp7 = true;
24092 }
24093 }
24094 if (obj7) {
24095 {
24096 arg8 = wxString_in_helper(obj7);
24097 if (arg8 == NULL) SWIG_fail;
24098 temp8 = true;
24099 }
24100 }
24101 if (obj8) {
24102 arg9 = obj8;
24103 }
24104 {
24105 PyThreadState* __tstate = wxPyBeginAllowThreads();
24106 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
24107 wxPyEndAllowThreads(__tstate);
24108 if (PyErr_Occurred()) SWIG_fail;
24109 }
24110 {
24111 resultobj = wxPyMake_wxObject(result, (bool)0);
24112 }
24113 {
24114 if (temp3)
24115 delete arg3;
24116 }
24117 {
24118 if (temp7)
24119 delete arg7;
24120 }
24121 {
24122 if (temp8)
24123 delete arg8;
24124 }
24125 return resultobj;
24126 fail:
24127 {
24128 if (temp3)
24129 delete arg3;
24130 }
24131 {
24132 if (temp7)
24133 delete arg7;
24134 }
24135 {
24136 if (temp8)
24137 delete arg8;
24138 }
24139 return NULL;
24140 }
24141
24142
24143 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24144 PyObject *resultobj = 0;
24145 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24146 size_t arg2 ;
24147 int arg3 ;
24148 wxString *arg4 = 0 ;
24149 wxBitmap *arg5 = 0 ;
24150 wxBitmap const &arg6_defvalue = wxNullBitmap ;
24151 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
24152 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
24153 wxString const &arg8_defvalue = wxPyEmptyString ;
24154 wxString *arg8 = (wxString *) &arg8_defvalue ;
24155 wxString const &arg9_defvalue = wxPyEmptyString ;
24156 wxString *arg9 = (wxString *) &arg9_defvalue ;
24157 PyObject *arg10 = (PyObject *) NULL ;
24158 wxToolBarToolBase *result = 0 ;
24159 void *argp1 = 0 ;
24160 int res1 = 0 ;
24161 size_t val2 ;
24162 int ecode2 = 0 ;
24163 int val3 ;
24164 int ecode3 = 0 ;
24165 bool temp4 = false ;
24166 void *argp5 = 0 ;
24167 int res5 = 0 ;
24168 void *argp6 = 0 ;
24169 int res6 = 0 ;
24170 int val7 ;
24171 int ecode7 = 0 ;
24172 bool temp8 = false ;
24173 bool temp9 = false ;
24174 PyObject * obj0 = 0 ;
24175 PyObject * obj1 = 0 ;
24176 PyObject * obj2 = 0 ;
24177 PyObject * obj3 = 0 ;
24178 PyObject * obj4 = 0 ;
24179 PyObject * obj5 = 0 ;
24180 PyObject * obj6 = 0 ;
24181 PyObject * obj7 = 0 ;
24182 PyObject * obj8 = 0 ;
24183 PyObject * obj9 = 0 ;
24184 char * kwnames[] = {
24185 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24186 };
24187
24188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24190 if (!SWIG_IsOK(res1)) {
24191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24192 }
24193 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24194 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24195 if (!SWIG_IsOK(ecode2)) {
24196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24197 }
24198 arg2 = static_cast< size_t >(val2);
24199 ecode3 = SWIG_AsVal_int(obj2, &val3);
24200 if (!SWIG_IsOK(ecode3)) {
24201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24202 }
24203 arg3 = static_cast< int >(val3);
24204 {
24205 arg4 = wxString_in_helper(obj3);
24206 if (arg4 == NULL) SWIG_fail;
24207 temp4 = true;
24208 }
24209 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24210 if (!SWIG_IsOK(res5)) {
24211 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24212 }
24213 if (!argp5) {
24214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24215 }
24216 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24217 if (obj5) {
24218 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24219 if (!SWIG_IsOK(res6)) {
24220 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24221 }
24222 if (!argp6) {
24223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24224 }
24225 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24226 }
24227 if (obj6) {
24228 ecode7 = SWIG_AsVal_int(obj6, &val7);
24229 if (!SWIG_IsOK(ecode7)) {
24230 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24231 }
24232 arg7 = static_cast< wxItemKind >(val7);
24233 }
24234 if (obj7) {
24235 {
24236 arg8 = wxString_in_helper(obj7);
24237 if (arg8 == NULL) SWIG_fail;
24238 temp8 = true;
24239 }
24240 }
24241 if (obj8) {
24242 {
24243 arg9 = wxString_in_helper(obj8);
24244 if (arg9 == NULL) SWIG_fail;
24245 temp9 = true;
24246 }
24247 }
24248 if (obj9) {
24249 arg10 = obj9;
24250 }
24251 {
24252 PyThreadState* __tstate = wxPyBeginAllowThreads();
24253 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24254 wxPyEndAllowThreads(__tstate);
24255 if (PyErr_Occurred()) SWIG_fail;
24256 }
24257 {
24258 resultobj = wxPyMake_wxObject(result, (bool)0);
24259 }
24260 {
24261 if (temp4)
24262 delete arg4;
24263 }
24264 {
24265 if (temp8)
24266 delete arg8;
24267 }
24268 {
24269 if (temp9)
24270 delete arg9;
24271 }
24272 return resultobj;
24273 fail:
24274 {
24275 if (temp4)
24276 delete arg4;
24277 }
24278 {
24279 if (temp8)
24280 delete arg8;
24281 }
24282 {
24283 if (temp9)
24284 delete arg9;
24285 }
24286 return NULL;
24287 }
24288
24289
24290 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24291 PyObject *resultobj = 0;
24292 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24293 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24294 wxToolBarToolBase *result = 0 ;
24295 void *argp1 = 0 ;
24296 int res1 = 0 ;
24297 void *argp2 = 0 ;
24298 int res2 = 0 ;
24299 PyObject * obj0 = 0 ;
24300 PyObject * obj1 = 0 ;
24301 char * kwnames[] = {
24302 (char *) "self",(char *) "tool", NULL
24303 };
24304
24305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24307 if (!SWIG_IsOK(res1)) {
24308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24309 }
24310 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24311 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24312 if (!SWIG_IsOK(res2)) {
24313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24314 }
24315 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24316 {
24317 PyThreadState* __tstate = wxPyBeginAllowThreads();
24318 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24319 wxPyEndAllowThreads(__tstate);
24320 if (PyErr_Occurred()) SWIG_fail;
24321 }
24322 {
24323 resultobj = wxPyMake_wxObject(result, (bool)0);
24324 }
24325 return resultobj;
24326 fail:
24327 return NULL;
24328 }
24329
24330
24331 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24332 PyObject *resultobj = 0;
24333 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24334 size_t arg2 ;
24335 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24336 wxToolBarToolBase *result = 0 ;
24337 void *argp1 = 0 ;
24338 int res1 = 0 ;
24339 size_t val2 ;
24340 int ecode2 = 0 ;
24341 void *argp3 = 0 ;
24342 int res3 = 0 ;
24343 PyObject * obj0 = 0 ;
24344 PyObject * obj1 = 0 ;
24345 PyObject * obj2 = 0 ;
24346 char * kwnames[] = {
24347 (char *) "self",(char *) "pos",(char *) "tool", NULL
24348 };
24349
24350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24352 if (!SWIG_IsOK(res1)) {
24353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24354 }
24355 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24356 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24357 if (!SWIG_IsOK(ecode2)) {
24358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24359 }
24360 arg2 = static_cast< size_t >(val2);
24361 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24362 if (!SWIG_IsOK(res3)) {
24363 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24364 }
24365 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24366 {
24367 PyThreadState* __tstate = wxPyBeginAllowThreads();
24368 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24369 wxPyEndAllowThreads(__tstate);
24370 if (PyErr_Occurred()) SWIG_fail;
24371 }
24372 {
24373 resultobj = wxPyMake_wxObject(result, (bool)0);
24374 }
24375 return resultobj;
24376 fail:
24377 return NULL;
24378 }
24379
24380
24381 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24382 PyObject *resultobj = 0;
24383 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24384 wxControl *arg2 = (wxControl *) 0 ;
24385 wxString const &arg3_defvalue = wxEmptyString ;
24386 wxString *arg3 = (wxString *) &arg3_defvalue ;
24387 wxToolBarToolBase *result = 0 ;
24388 void *argp1 = 0 ;
24389 int res1 = 0 ;
24390 void *argp2 = 0 ;
24391 int res2 = 0 ;
24392 bool temp3 = false ;
24393 PyObject * obj0 = 0 ;
24394 PyObject * obj1 = 0 ;
24395 PyObject * obj2 = 0 ;
24396 char * kwnames[] = {
24397 (char *) "self",(char *) "control",(char *) "label", NULL
24398 };
24399
24400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ToolBarBase_AddControl",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_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24404 }
24405 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24406 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24407 if (!SWIG_IsOK(res2)) {
24408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24409 }
24410 arg2 = reinterpret_cast< wxControl * >(argp2);
24411 if (obj2) {
24412 {
24413 arg3 = wxString_in_helper(obj2);
24414 if (arg3 == NULL) SWIG_fail;
24415 temp3 = true;
24416 }
24417 }
24418 {
24419 PyThreadState* __tstate = wxPyBeginAllowThreads();
24420 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2,(wxString const &)*arg3);
24421 wxPyEndAllowThreads(__tstate);
24422 if (PyErr_Occurred()) SWIG_fail;
24423 }
24424 {
24425 resultobj = wxPyMake_wxObject(result, (bool)0);
24426 }
24427 {
24428 if (temp3)
24429 delete arg3;
24430 }
24431 return resultobj;
24432 fail:
24433 {
24434 if (temp3)
24435 delete arg3;
24436 }
24437 return NULL;
24438 }
24439
24440
24441 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24442 PyObject *resultobj = 0;
24443 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24444 size_t arg2 ;
24445 wxControl *arg3 = (wxControl *) 0 ;
24446 wxString const &arg4_defvalue = wxEmptyString ;
24447 wxString *arg4 = (wxString *) &arg4_defvalue ;
24448 wxToolBarToolBase *result = 0 ;
24449 void *argp1 = 0 ;
24450 int res1 = 0 ;
24451 size_t val2 ;
24452 int ecode2 = 0 ;
24453 void *argp3 = 0 ;
24454 int res3 = 0 ;
24455 bool temp4 = false ;
24456 PyObject * obj0 = 0 ;
24457 PyObject * obj1 = 0 ;
24458 PyObject * obj2 = 0 ;
24459 PyObject * obj3 = 0 ;
24460 char * kwnames[] = {
24461 (char *) "self",(char *) "pos",(char *) "control",(char *) "label", NULL
24462 };
24463
24464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24466 if (!SWIG_IsOK(res1)) {
24467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24468 }
24469 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24470 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24471 if (!SWIG_IsOK(ecode2)) {
24472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24473 }
24474 arg2 = static_cast< size_t >(val2);
24475 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24476 if (!SWIG_IsOK(res3)) {
24477 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24478 }
24479 arg3 = reinterpret_cast< wxControl * >(argp3);
24480 if (obj3) {
24481 {
24482 arg4 = wxString_in_helper(obj3);
24483 if (arg4 == NULL) SWIG_fail;
24484 temp4 = true;
24485 }
24486 }
24487 {
24488 PyThreadState* __tstate = wxPyBeginAllowThreads();
24489 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3,(wxString const &)*arg4);
24490 wxPyEndAllowThreads(__tstate);
24491 if (PyErr_Occurred()) SWIG_fail;
24492 }
24493 {
24494 resultobj = wxPyMake_wxObject(result, (bool)0);
24495 }
24496 {
24497 if (temp4)
24498 delete arg4;
24499 }
24500 return resultobj;
24501 fail:
24502 {
24503 if (temp4)
24504 delete arg4;
24505 }
24506 return NULL;
24507 }
24508
24509
24510 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24511 PyObject *resultobj = 0;
24512 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24513 int arg2 ;
24514 wxControl *result = 0 ;
24515 void *argp1 = 0 ;
24516 int res1 = 0 ;
24517 int val2 ;
24518 int ecode2 = 0 ;
24519 PyObject * obj0 = 0 ;
24520 PyObject * obj1 = 0 ;
24521 char * kwnames[] = {
24522 (char *) "self",(char *) "id", NULL
24523 };
24524
24525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24527 if (!SWIG_IsOK(res1)) {
24528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24529 }
24530 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24531 ecode2 = SWIG_AsVal_int(obj1, &val2);
24532 if (!SWIG_IsOK(ecode2)) {
24533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24534 }
24535 arg2 = static_cast< int >(val2);
24536 {
24537 PyThreadState* __tstate = wxPyBeginAllowThreads();
24538 result = (wxControl *)(arg1)->FindControl(arg2);
24539 wxPyEndAllowThreads(__tstate);
24540 if (PyErr_Occurred()) SWIG_fail;
24541 }
24542 {
24543 resultobj = wxPyMake_wxObject(result, 0);
24544 }
24545 return resultobj;
24546 fail:
24547 return NULL;
24548 }
24549
24550
24551 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24552 PyObject *resultobj = 0;
24553 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24554 wxToolBarToolBase *result = 0 ;
24555 void *argp1 = 0 ;
24556 int res1 = 0 ;
24557 PyObject *swig_obj[1] ;
24558
24559 if (!args) SWIG_fail;
24560 swig_obj[0] = args;
24561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24562 if (!SWIG_IsOK(res1)) {
24563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24564 }
24565 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24566 {
24567 PyThreadState* __tstate = wxPyBeginAllowThreads();
24568 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24569 wxPyEndAllowThreads(__tstate);
24570 if (PyErr_Occurred()) SWIG_fail;
24571 }
24572 {
24573 resultobj = wxPyMake_wxObject(result, (bool)0);
24574 }
24575 return resultobj;
24576 fail:
24577 return NULL;
24578 }
24579
24580
24581 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24582 PyObject *resultobj = 0;
24583 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24584 size_t arg2 ;
24585 wxToolBarToolBase *result = 0 ;
24586 void *argp1 = 0 ;
24587 int res1 = 0 ;
24588 size_t val2 ;
24589 int ecode2 = 0 ;
24590 PyObject * obj0 = 0 ;
24591 PyObject * obj1 = 0 ;
24592 char * kwnames[] = {
24593 (char *) "self",(char *) "pos", NULL
24594 };
24595
24596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24598 if (!SWIG_IsOK(res1)) {
24599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24600 }
24601 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24602 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24603 if (!SWIG_IsOK(ecode2)) {
24604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24605 }
24606 arg2 = static_cast< size_t >(val2);
24607 {
24608 PyThreadState* __tstate = wxPyBeginAllowThreads();
24609 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24610 wxPyEndAllowThreads(__tstate);
24611 if (PyErr_Occurred()) SWIG_fail;
24612 }
24613 {
24614 resultobj = wxPyMake_wxObject(result, (bool)0);
24615 }
24616 return resultobj;
24617 fail:
24618 return NULL;
24619 }
24620
24621
24622 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24623 PyObject *resultobj = 0;
24624 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24625 int arg2 ;
24626 wxToolBarToolBase *result = 0 ;
24627 void *argp1 = 0 ;
24628 int res1 = 0 ;
24629 int val2 ;
24630 int ecode2 = 0 ;
24631 PyObject * obj0 = 0 ;
24632 PyObject * obj1 = 0 ;
24633 char * kwnames[] = {
24634 (char *) "self",(char *) "id", NULL
24635 };
24636
24637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24639 if (!SWIG_IsOK(res1)) {
24640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24641 }
24642 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24643 ecode2 = SWIG_AsVal_int(obj1, &val2);
24644 if (!SWIG_IsOK(ecode2)) {
24645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24646 }
24647 arg2 = static_cast< int >(val2);
24648 {
24649 PyThreadState* __tstate = wxPyBeginAllowThreads();
24650 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24651 wxPyEndAllowThreads(__tstate);
24652 if (PyErr_Occurred()) SWIG_fail;
24653 }
24654 {
24655 resultobj = wxPyMake_wxObject(result, (bool)0);
24656 }
24657 return resultobj;
24658 fail:
24659 return NULL;
24660 }
24661
24662
24663 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24664 PyObject *resultobj = 0;
24665 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24666 size_t arg2 ;
24667 bool result;
24668 void *argp1 = 0 ;
24669 int res1 = 0 ;
24670 size_t val2 ;
24671 int ecode2 = 0 ;
24672 PyObject * obj0 = 0 ;
24673 PyObject * obj1 = 0 ;
24674 char * kwnames[] = {
24675 (char *) "self",(char *) "pos", NULL
24676 };
24677
24678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24680 if (!SWIG_IsOK(res1)) {
24681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24682 }
24683 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24684 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24685 if (!SWIG_IsOK(ecode2)) {
24686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24687 }
24688 arg2 = static_cast< size_t >(val2);
24689 {
24690 PyThreadState* __tstate = wxPyBeginAllowThreads();
24691 result = (bool)(arg1)->DeleteToolByPos(arg2);
24692 wxPyEndAllowThreads(__tstate);
24693 if (PyErr_Occurred()) SWIG_fail;
24694 }
24695 {
24696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24697 }
24698 return resultobj;
24699 fail:
24700 return NULL;
24701 }
24702
24703
24704 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24705 PyObject *resultobj = 0;
24706 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24707 int arg2 ;
24708 bool result;
24709 void *argp1 = 0 ;
24710 int res1 = 0 ;
24711 int val2 ;
24712 int ecode2 = 0 ;
24713 PyObject * obj0 = 0 ;
24714 PyObject * obj1 = 0 ;
24715 char * kwnames[] = {
24716 (char *) "self",(char *) "id", NULL
24717 };
24718
24719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24721 if (!SWIG_IsOK(res1)) {
24722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24723 }
24724 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24725 ecode2 = SWIG_AsVal_int(obj1, &val2);
24726 if (!SWIG_IsOK(ecode2)) {
24727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24728 }
24729 arg2 = static_cast< int >(val2);
24730 {
24731 PyThreadState* __tstate = wxPyBeginAllowThreads();
24732 result = (bool)(arg1)->DeleteTool(arg2);
24733 wxPyEndAllowThreads(__tstate);
24734 if (PyErr_Occurred()) SWIG_fail;
24735 }
24736 {
24737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24738 }
24739 return resultobj;
24740 fail:
24741 return NULL;
24742 }
24743
24744
24745 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24746 PyObject *resultobj = 0;
24747 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24748 void *argp1 = 0 ;
24749 int res1 = 0 ;
24750 PyObject *swig_obj[1] ;
24751
24752 if (!args) SWIG_fail;
24753 swig_obj[0] = args;
24754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24755 if (!SWIG_IsOK(res1)) {
24756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24757 }
24758 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24759 {
24760 PyThreadState* __tstate = wxPyBeginAllowThreads();
24761 (arg1)->ClearTools();
24762 wxPyEndAllowThreads(__tstate);
24763 if (PyErr_Occurred()) SWIG_fail;
24764 }
24765 resultobj = SWIG_Py_Void();
24766 return resultobj;
24767 fail:
24768 return NULL;
24769 }
24770
24771
24772 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24773 PyObject *resultobj = 0;
24774 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24775 bool result;
24776 void *argp1 = 0 ;
24777 int res1 = 0 ;
24778 PyObject *swig_obj[1] ;
24779
24780 if (!args) SWIG_fail;
24781 swig_obj[0] = args;
24782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24783 if (!SWIG_IsOK(res1)) {
24784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24785 }
24786 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24787 {
24788 PyThreadState* __tstate = wxPyBeginAllowThreads();
24789 result = (bool)(arg1)->Realize();
24790 wxPyEndAllowThreads(__tstate);
24791 if (PyErr_Occurred()) SWIG_fail;
24792 }
24793 {
24794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24795 }
24796 return resultobj;
24797 fail:
24798 return NULL;
24799 }
24800
24801
24802 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24803 PyObject *resultobj = 0;
24804 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24805 int arg2 ;
24806 bool arg3 ;
24807 void *argp1 = 0 ;
24808 int res1 = 0 ;
24809 int val2 ;
24810 int ecode2 = 0 ;
24811 bool val3 ;
24812 int ecode3 = 0 ;
24813 PyObject * obj0 = 0 ;
24814 PyObject * obj1 = 0 ;
24815 PyObject * obj2 = 0 ;
24816 char * kwnames[] = {
24817 (char *) "self",(char *) "id",(char *) "enable", NULL
24818 };
24819
24820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24822 if (!SWIG_IsOK(res1)) {
24823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24824 }
24825 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24826 ecode2 = SWIG_AsVal_int(obj1, &val2);
24827 if (!SWIG_IsOK(ecode2)) {
24828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24829 }
24830 arg2 = static_cast< int >(val2);
24831 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24832 if (!SWIG_IsOK(ecode3)) {
24833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24834 }
24835 arg3 = static_cast< bool >(val3);
24836 {
24837 PyThreadState* __tstate = wxPyBeginAllowThreads();
24838 (arg1)->EnableTool(arg2,arg3);
24839 wxPyEndAllowThreads(__tstate);
24840 if (PyErr_Occurred()) SWIG_fail;
24841 }
24842 resultobj = SWIG_Py_Void();
24843 return resultobj;
24844 fail:
24845 return NULL;
24846 }
24847
24848
24849 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24850 PyObject *resultobj = 0;
24851 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24852 int arg2 ;
24853 bool arg3 ;
24854 void *argp1 = 0 ;
24855 int res1 = 0 ;
24856 int val2 ;
24857 int ecode2 = 0 ;
24858 bool val3 ;
24859 int ecode3 = 0 ;
24860 PyObject * obj0 = 0 ;
24861 PyObject * obj1 = 0 ;
24862 PyObject * obj2 = 0 ;
24863 char * kwnames[] = {
24864 (char *) "self",(char *) "id",(char *) "toggle", NULL
24865 };
24866
24867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24869 if (!SWIG_IsOK(res1)) {
24870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24871 }
24872 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24873 ecode2 = SWIG_AsVal_int(obj1, &val2);
24874 if (!SWIG_IsOK(ecode2)) {
24875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24876 }
24877 arg2 = static_cast< int >(val2);
24878 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24879 if (!SWIG_IsOK(ecode3)) {
24880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24881 }
24882 arg3 = static_cast< bool >(val3);
24883 {
24884 PyThreadState* __tstate = wxPyBeginAllowThreads();
24885 (arg1)->ToggleTool(arg2,arg3);
24886 wxPyEndAllowThreads(__tstate);
24887 if (PyErr_Occurred()) SWIG_fail;
24888 }
24889 resultobj = SWIG_Py_Void();
24890 return resultobj;
24891 fail:
24892 return NULL;
24893 }
24894
24895
24896 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24897 PyObject *resultobj = 0;
24898 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24899 int arg2 ;
24900 bool arg3 ;
24901 void *argp1 = 0 ;
24902 int res1 = 0 ;
24903 int val2 ;
24904 int ecode2 = 0 ;
24905 bool val3 ;
24906 int ecode3 = 0 ;
24907 PyObject * obj0 = 0 ;
24908 PyObject * obj1 = 0 ;
24909 PyObject * obj2 = 0 ;
24910 char * kwnames[] = {
24911 (char *) "self",(char *) "id",(char *) "toggle", NULL
24912 };
24913
24914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24916 if (!SWIG_IsOK(res1)) {
24917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24918 }
24919 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24920 ecode2 = SWIG_AsVal_int(obj1, &val2);
24921 if (!SWIG_IsOK(ecode2)) {
24922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24923 }
24924 arg2 = static_cast< int >(val2);
24925 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24926 if (!SWIG_IsOK(ecode3)) {
24927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24928 }
24929 arg3 = static_cast< bool >(val3);
24930 {
24931 PyThreadState* __tstate = wxPyBeginAllowThreads();
24932 (arg1)->SetToggle(arg2,arg3);
24933 wxPyEndAllowThreads(__tstate);
24934 if (PyErr_Occurred()) SWIG_fail;
24935 }
24936 resultobj = SWIG_Py_Void();
24937 return resultobj;
24938 fail:
24939 return NULL;
24940 }
24941
24942
24943 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24944 PyObject *resultobj = 0;
24945 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24946 int arg2 ;
24947 PyObject *result = 0 ;
24948 void *argp1 = 0 ;
24949 int res1 = 0 ;
24950 int val2 ;
24951 int ecode2 = 0 ;
24952 PyObject * obj0 = 0 ;
24953 PyObject * obj1 = 0 ;
24954 char * kwnames[] = {
24955 (char *) "self",(char *) "id", NULL
24956 };
24957
24958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24960 if (!SWIG_IsOK(res1)) {
24961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24962 }
24963 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24964 ecode2 = SWIG_AsVal_int(obj1, &val2);
24965 if (!SWIG_IsOK(ecode2)) {
24966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24967 }
24968 arg2 = static_cast< int >(val2);
24969 {
24970 PyThreadState* __tstate = wxPyBeginAllowThreads();
24971 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24972 wxPyEndAllowThreads(__tstate);
24973 if (PyErr_Occurred()) SWIG_fail;
24974 }
24975 resultobj = result;
24976 return resultobj;
24977 fail:
24978 return NULL;
24979 }
24980
24981
24982 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24983 PyObject *resultobj = 0;
24984 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24985 int arg2 ;
24986 PyObject *arg3 = (PyObject *) 0 ;
24987 void *argp1 = 0 ;
24988 int res1 = 0 ;
24989 int val2 ;
24990 int ecode2 = 0 ;
24991 PyObject * obj0 = 0 ;
24992 PyObject * obj1 = 0 ;
24993 PyObject * obj2 = 0 ;
24994 char * kwnames[] = {
24995 (char *) "self",(char *) "id",(char *) "clientData", NULL
24996 };
24997
24998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25000 if (!SWIG_IsOK(res1)) {
25001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25002 }
25003 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25004 ecode2 = SWIG_AsVal_int(obj1, &val2);
25005 if (!SWIG_IsOK(ecode2)) {
25006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
25007 }
25008 arg2 = static_cast< int >(val2);
25009 arg3 = obj2;
25010 {
25011 PyThreadState* __tstate = wxPyBeginAllowThreads();
25012 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
25013 wxPyEndAllowThreads(__tstate);
25014 if (PyErr_Occurred()) SWIG_fail;
25015 }
25016 resultobj = SWIG_Py_Void();
25017 return resultobj;
25018 fail:
25019 return NULL;
25020 }
25021
25022
25023 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25024 PyObject *resultobj = 0;
25025 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25026 int arg2 ;
25027 int result;
25028 void *argp1 = 0 ;
25029 int res1 = 0 ;
25030 int val2 ;
25031 int ecode2 = 0 ;
25032 PyObject * obj0 = 0 ;
25033 PyObject * obj1 = 0 ;
25034 char * kwnames[] = {
25035 (char *) "self",(char *) "id", NULL
25036 };
25037
25038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
25039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25040 if (!SWIG_IsOK(res1)) {
25041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25042 }
25043 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25044 ecode2 = SWIG_AsVal_int(obj1, &val2);
25045 if (!SWIG_IsOK(ecode2)) {
25046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
25047 }
25048 arg2 = static_cast< int >(val2);
25049 {
25050 PyThreadState* __tstate = wxPyBeginAllowThreads();
25051 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
25052 wxPyEndAllowThreads(__tstate);
25053 if (PyErr_Occurred()) SWIG_fail;
25054 }
25055 resultobj = SWIG_From_int(static_cast< int >(result));
25056 return resultobj;
25057 fail:
25058 return NULL;
25059 }
25060
25061
25062 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25063 PyObject *resultobj = 0;
25064 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25065 int arg2 ;
25066 bool result;
25067 void *argp1 = 0 ;
25068 int res1 = 0 ;
25069 int val2 ;
25070 int ecode2 = 0 ;
25071 PyObject * obj0 = 0 ;
25072 PyObject * obj1 = 0 ;
25073 char * kwnames[] = {
25074 (char *) "self",(char *) "id", NULL
25075 };
25076
25077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
25078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25079 if (!SWIG_IsOK(res1)) {
25080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25081 }
25082 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25083 ecode2 = SWIG_AsVal_int(obj1, &val2);
25084 if (!SWIG_IsOK(ecode2)) {
25085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
25086 }
25087 arg2 = static_cast< int >(val2);
25088 {
25089 PyThreadState* __tstate = wxPyBeginAllowThreads();
25090 result = (bool)(arg1)->GetToolState(arg2);
25091 wxPyEndAllowThreads(__tstate);
25092 if (PyErr_Occurred()) SWIG_fail;
25093 }
25094 {
25095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25096 }
25097 return resultobj;
25098 fail:
25099 return NULL;
25100 }
25101
25102
25103 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25104 PyObject *resultobj = 0;
25105 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25106 int arg2 ;
25107 bool result;
25108 void *argp1 = 0 ;
25109 int res1 = 0 ;
25110 int val2 ;
25111 int ecode2 = 0 ;
25112 PyObject * obj0 = 0 ;
25113 PyObject * obj1 = 0 ;
25114 char * kwnames[] = {
25115 (char *) "self",(char *) "id", NULL
25116 };
25117
25118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
25119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25120 if (!SWIG_IsOK(res1)) {
25121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25122 }
25123 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25124 ecode2 = SWIG_AsVal_int(obj1, &val2);
25125 if (!SWIG_IsOK(ecode2)) {
25126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
25127 }
25128 arg2 = static_cast< int >(val2);
25129 {
25130 PyThreadState* __tstate = wxPyBeginAllowThreads();
25131 result = (bool)(arg1)->GetToolEnabled(arg2);
25132 wxPyEndAllowThreads(__tstate);
25133 if (PyErr_Occurred()) SWIG_fail;
25134 }
25135 {
25136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25137 }
25138 return resultobj;
25139 fail:
25140 return NULL;
25141 }
25142
25143
25144 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25145 PyObject *resultobj = 0;
25146 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25147 int arg2 ;
25148 wxString *arg3 = 0 ;
25149 void *argp1 = 0 ;
25150 int res1 = 0 ;
25151 int val2 ;
25152 int ecode2 = 0 ;
25153 bool temp3 = false ;
25154 PyObject * obj0 = 0 ;
25155 PyObject * obj1 = 0 ;
25156 PyObject * obj2 = 0 ;
25157 char * kwnames[] = {
25158 (char *) "self",(char *) "id",(char *) "helpString", NULL
25159 };
25160
25161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25163 if (!SWIG_IsOK(res1)) {
25164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25165 }
25166 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25167 ecode2 = SWIG_AsVal_int(obj1, &val2);
25168 if (!SWIG_IsOK(ecode2)) {
25169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25170 }
25171 arg2 = static_cast< int >(val2);
25172 {
25173 arg3 = wxString_in_helper(obj2);
25174 if (arg3 == NULL) SWIG_fail;
25175 temp3 = true;
25176 }
25177 {
25178 PyThreadState* __tstate = wxPyBeginAllowThreads();
25179 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
25180 wxPyEndAllowThreads(__tstate);
25181 if (PyErr_Occurred()) SWIG_fail;
25182 }
25183 resultobj = SWIG_Py_Void();
25184 {
25185 if (temp3)
25186 delete arg3;
25187 }
25188 return resultobj;
25189 fail:
25190 {
25191 if (temp3)
25192 delete arg3;
25193 }
25194 return NULL;
25195 }
25196
25197
25198 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25199 PyObject *resultobj = 0;
25200 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25201 int arg2 ;
25202 wxString result;
25203 void *argp1 = 0 ;
25204 int res1 = 0 ;
25205 int val2 ;
25206 int ecode2 = 0 ;
25207 PyObject * obj0 = 0 ;
25208 PyObject * obj1 = 0 ;
25209 char * kwnames[] = {
25210 (char *) "self",(char *) "id", NULL
25211 };
25212
25213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25215 if (!SWIG_IsOK(res1)) {
25216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25217 }
25218 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25219 ecode2 = SWIG_AsVal_int(obj1, &val2);
25220 if (!SWIG_IsOK(ecode2)) {
25221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25222 }
25223 arg2 = static_cast< int >(val2);
25224 {
25225 PyThreadState* __tstate = wxPyBeginAllowThreads();
25226 result = (arg1)->GetToolShortHelp(arg2);
25227 wxPyEndAllowThreads(__tstate);
25228 if (PyErr_Occurred()) SWIG_fail;
25229 }
25230 {
25231 #if wxUSE_UNICODE
25232 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25233 #else
25234 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25235 #endif
25236 }
25237 return resultobj;
25238 fail:
25239 return NULL;
25240 }
25241
25242
25243 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25244 PyObject *resultobj = 0;
25245 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25246 int arg2 ;
25247 wxString *arg3 = 0 ;
25248 void *argp1 = 0 ;
25249 int res1 = 0 ;
25250 int val2 ;
25251 int ecode2 = 0 ;
25252 bool temp3 = false ;
25253 PyObject * obj0 = 0 ;
25254 PyObject * obj1 = 0 ;
25255 PyObject * obj2 = 0 ;
25256 char * kwnames[] = {
25257 (char *) "self",(char *) "id",(char *) "helpString", NULL
25258 };
25259
25260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25262 if (!SWIG_IsOK(res1)) {
25263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25264 }
25265 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25266 ecode2 = SWIG_AsVal_int(obj1, &val2);
25267 if (!SWIG_IsOK(ecode2)) {
25268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25269 }
25270 arg2 = static_cast< int >(val2);
25271 {
25272 arg3 = wxString_in_helper(obj2);
25273 if (arg3 == NULL) SWIG_fail;
25274 temp3 = true;
25275 }
25276 {
25277 PyThreadState* __tstate = wxPyBeginAllowThreads();
25278 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25279 wxPyEndAllowThreads(__tstate);
25280 if (PyErr_Occurred()) SWIG_fail;
25281 }
25282 resultobj = SWIG_Py_Void();
25283 {
25284 if (temp3)
25285 delete arg3;
25286 }
25287 return resultobj;
25288 fail:
25289 {
25290 if (temp3)
25291 delete arg3;
25292 }
25293 return NULL;
25294 }
25295
25296
25297 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25298 PyObject *resultobj = 0;
25299 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25300 int arg2 ;
25301 wxString result;
25302 void *argp1 = 0 ;
25303 int res1 = 0 ;
25304 int val2 ;
25305 int ecode2 = 0 ;
25306 PyObject * obj0 = 0 ;
25307 PyObject * obj1 = 0 ;
25308 char * kwnames[] = {
25309 (char *) "self",(char *) "id", NULL
25310 };
25311
25312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25314 if (!SWIG_IsOK(res1)) {
25315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25316 }
25317 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25318 ecode2 = SWIG_AsVal_int(obj1, &val2);
25319 if (!SWIG_IsOK(ecode2)) {
25320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25321 }
25322 arg2 = static_cast< int >(val2);
25323 {
25324 PyThreadState* __tstate = wxPyBeginAllowThreads();
25325 result = (arg1)->GetToolLongHelp(arg2);
25326 wxPyEndAllowThreads(__tstate);
25327 if (PyErr_Occurred()) SWIG_fail;
25328 }
25329 {
25330 #if wxUSE_UNICODE
25331 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25332 #else
25333 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25334 #endif
25335 }
25336 return resultobj;
25337 fail:
25338 return NULL;
25339 }
25340
25341
25342 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25343 PyObject *resultobj = 0;
25344 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25345 int arg2 ;
25346 int arg3 ;
25347 void *argp1 = 0 ;
25348 int res1 = 0 ;
25349 int val2 ;
25350 int ecode2 = 0 ;
25351 int val3 ;
25352 int ecode3 = 0 ;
25353 PyObject * obj0 = 0 ;
25354 PyObject * obj1 = 0 ;
25355 PyObject * obj2 = 0 ;
25356 char * kwnames[] = {
25357 (char *) "self",(char *) "x",(char *) "y", NULL
25358 };
25359
25360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25362 if (!SWIG_IsOK(res1)) {
25363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25364 }
25365 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25366 ecode2 = SWIG_AsVal_int(obj1, &val2);
25367 if (!SWIG_IsOK(ecode2)) {
25368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25369 }
25370 arg2 = static_cast< int >(val2);
25371 ecode3 = SWIG_AsVal_int(obj2, &val3);
25372 if (!SWIG_IsOK(ecode3)) {
25373 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25374 }
25375 arg3 = static_cast< int >(val3);
25376 {
25377 PyThreadState* __tstate = wxPyBeginAllowThreads();
25378 (arg1)->SetMargins(arg2,arg3);
25379 wxPyEndAllowThreads(__tstate);
25380 if (PyErr_Occurred()) SWIG_fail;
25381 }
25382 resultobj = SWIG_Py_Void();
25383 return resultobj;
25384 fail:
25385 return NULL;
25386 }
25387
25388
25389 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25390 PyObject *resultobj = 0;
25391 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25392 wxSize *arg2 = 0 ;
25393 void *argp1 = 0 ;
25394 int res1 = 0 ;
25395 wxSize temp2 ;
25396 PyObject * obj0 = 0 ;
25397 PyObject * obj1 = 0 ;
25398 char * kwnames[] = {
25399 (char *) "self",(char *) "size", NULL
25400 };
25401
25402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25404 if (!SWIG_IsOK(res1)) {
25405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25406 }
25407 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25408 {
25409 arg2 = &temp2;
25410 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25411 }
25412 {
25413 PyThreadState* __tstate = wxPyBeginAllowThreads();
25414 (arg1)->SetMargins((wxSize const &)*arg2);
25415 wxPyEndAllowThreads(__tstate);
25416 if (PyErr_Occurred()) SWIG_fail;
25417 }
25418 resultobj = SWIG_Py_Void();
25419 return resultobj;
25420 fail:
25421 return NULL;
25422 }
25423
25424
25425 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25426 PyObject *resultobj = 0;
25427 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25428 int arg2 ;
25429 void *argp1 = 0 ;
25430 int res1 = 0 ;
25431 int val2 ;
25432 int ecode2 = 0 ;
25433 PyObject * obj0 = 0 ;
25434 PyObject * obj1 = 0 ;
25435 char * kwnames[] = {
25436 (char *) "self",(char *) "packing", NULL
25437 };
25438
25439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25441 if (!SWIG_IsOK(res1)) {
25442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25443 }
25444 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25445 ecode2 = SWIG_AsVal_int(obj1, &val2);
25446 if (!SWIG_IsOK(ecode2)) {
25447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25448 }
25449 arg2 = static_cast< int >(val2);
25450 {
25451 PyThreadState* __tstate = wxPyBeginAllowThreads();
25452 (arg1)->SetToolPacking(arg2);
25453 wxPyEndAllowThreads(__tstate);
25454 if (PyErr_Occurred()) SWIG_fail;
25455 }
25456 resultobj = SWIG_Py_Void();
25457 return resultobj;
25458 fail:
25459 return NULL;
25460 }
25461
25462
25463 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25464 PyObject *resultobj = 0;
25465 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25466 int arg2 ;
25467 void *argp1 = 0 ;
25468 int res1 = 0 ;
25469 int val2 ;
25470 int ecode2 = 0 ;
25471 PyObject * obj0 = 0 ;
25472 PyObject * obj1 = 0 ;
25473 char * kwnames[] = {
25474 (char *) "self",(char *) "separation", NULL
25475 };
25476
25477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25479 if (!SWIG_IsOK(res1)) {
25480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25481 }
25482 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25483 ecode2 = SWIG_AsVal_int(obj1, &val2);
25484 if (!SWIG_IsOK(ecode2)) {
25485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25486 }
25487 arg2 = static_cast< int >(val2);
25488 {
25489 PyThreadState* __tstate = wxPyBeginAllowThreads();
25490 (arg1)->SetToolSeparation(arg2);
25491 wxPyEndAllowThreads(__tstate);
25492 if (PyErr_Occurred()) SWIG_fail;
25493 }
25494 resultobj = SWIG_Py_Void();
25495 return resultobj;
25496 fail:
25497 return NULL;
25498 }
25499
25500
25501 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25502 PyObject *resultobj = 0;
25503 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25504 wxSize result;
25505 void *argp1 = 0 ;
25506 int res1 = 0 ;
25507 PyObject *swig_obj[1] ;
25508
25509 if (!args) SWIG_fail;
25510 swig_obj[0] = args;
25511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25512 if (!SWIG_IsOK(res1)) {
25513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25514 }
25515 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25516 {
25517 PyThreadState* __tstate = wxPyBeginAllowThreads();
25518 result = (arg1)->GetToolMargins();
25519 wxPyEndAllowThreads(__tstate);
25520 if (PyErr_Occurred()) SWIG_fail;
25521 }
25522 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25523 return resultobj;
25524 fail:
25525 return NULL;
25526 }
25527
25528
25529 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25530 PyObject *resultobj = 0;
25531 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25532 wxSize result;
25533 void *argp1 = 0 ;
25534 int res1 = 0 ;
25535 PyObject *swig_obj[1] ;
25536
25537 if (!args) SWIG_fail;
25538 swig_obj[0] = args;
25539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25540 if (!SWIG_IsOK(res1)) {
25541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25542 }
25543 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25544 {
25545 PyThreadState* __tstate = wxPyBeginAllowThreads();
25546 result = (arg1)->GetMargins();
25547 wxPyEndAllowThreads(__tstate);
25548 if (PyErr_Occurred()) SWIG_fail;
25549 }
25550 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25551 return resultobj;
25552 fail:
25553 return NULL;
25554 }
25555
25556
25557 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25558 PyObject *resultobj = 0;
25559 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25560 int result;
25561 void *argp1 = 0 ;
25562 int res1 = 0 ;
25563 PyObject *swig_obj[1] ;
25564
25565 if (!args) SWIG_fail;
25566 swig_obj[0] = args;
25567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25568 if (!SWIG_IsOK(res1)) {
25569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25570 }
25571 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25572 {
25573 PyThreadState* __tstate = wxPyBeginAllowThreads();
25574 result = (int)(arg1)->GetToolPacking();
25575 wxPyEndAllowThreads(__tstate);
25576 if (PyErr_Occurred()) SWIG_fail;
25577 }
25578 resultobj = SWIG_From_int(static_cast< int >(result));
25579 return resultobj;
25580 fail:
25581 return NULL;
25582 }
25583
25584
25585 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25586 PyObject *resultobj = 0;
25587 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25588 int result;
25589 void *argp1 = 0 ;
25590 int res1 = 0 ;
25591 PyObject *swig_obj[1] ;
25592
25593 if (!args) SWIG_fail;
25594 swig_obj[0] = args;
25595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25596 if (!SWIG_IsOK(res1)) {
25597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25598 }
25599 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25600 {
25601 PyThreadState* __tstate = wxPyBeginAllowThreads();
25602 result = (int)(arg1)->GetToolSeparation();
25603 wxPyEndAllowThreads(__tstate);
25604 if (PyErr_Occurred()) SWIG_fail;
25605 }
25606 resultobj = SWIG_From_int(static_cast< int >(result));
25607 return resultobj;
25608 fail:
25609 return NULL;
25610 }
25611
25612
25613 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25614 PyObject *resultobj = 0;
25615 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25616 int arg2 ;
25617 void *argp1 = 0 ;
25618 int res1 = 0 ;
25619 int val2 ;
25620 int ecode2 = 0 ;
25621 PyObject * obj0 = 0 ;
25622 PyObject * obj1 = 0 ;
25623 char * kwnames[] = {
25624 (char *) "self",(char *) "nRows", NULL
25625 };
25626
25627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25629 if (!SWIG_IsOK(res1)) {
25630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25631 }
25632 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25633 ecode2 = SWIG_AsVal_int(obj1, &val2);
25634 if (!SWIG_IsOK(ecode2)) {
25635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25636 }
25637 arg2 = static_cast< int >(val2);
25638 {
25639 PyThreadState* __tstate = wxPyBeginAllowThreads();
25640 (arg1)->SetRows(arg2);
25641 wxPyEndAllowThreads(__tstate);
25642 if (PyErr_Occurred()) SWIG_fail;
25643 }
25644 resultobj = SWIG_Py_Void();
25645 return resultobj;
25646 fail:
25647 return NULL;
25648 }
25649
25650
25651 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25652 PyObject *resultobj = 0;
25653 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25654 int arg2 ;
25655 int arg3 ;
25656 void *argp1 = 0 ;
25657 int res1 = 0 ;
25658 int val2 ;
25659 int ecode2 = 0 ;
25660 int val3 ;
25661 int ecode3 = 0 ;
25662 PyObject * obj0 = 0 ;
25663 PyObject * obj1 = 0 ;
25664 PyObject * obj2 = 0 ;
25665 char * kwnames[] = {
25666 (char *) "self",(char *) "rows",(char *) "cols", NULL
25667 };
25668
25669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25671 if (!SWIG_IsOK(res1)) {
25672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25673 }
25674 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25675 ecode2 = SWIG_AsVal_int(obj1, &val2);
25676 if (!SWIG_IsOK(ecode2)) {
25677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25678 }
25679 arg2 = static_cast< int >(val2);
25680 ecode3 = SWIG_AsVal_int(obj2, &val3);
25681 if (!SWIG_IsOK(ecode3)) {
25682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25683 }
25684 arg3 = static_cast< int >(val3);
25685 {
25686 PyThreadState* __tstate = wxPyBeginAllowThreads();
25687 (arg1)->SetMaxRowsCols(arg2,arg3);
25688 wxPyEndAllowThreads(__tstate);
25689 if (PyErr_Occurred()) SWIG_fail;
25690 }
25691 resultobj = SWIG_Py_Void();
25692 return resultobj;
25693 fail:
25694 return NULL;
25695 }
25696
25697
25698 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25699 PyObject *resultobj = 0;
25700 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25701 int result;
25702 void *argp1 = 0 ;
25703 int res1 = 0 ;
25704 PyObject *swig_obj[1] ;
25705
25706 if (!args) SWIG_fail;
25707 swig_obj[0] = args;
25708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25709 if (!SWIG_IsOK(res1)) {
25710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25711 }
25712 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25713 {
25714 PyThreadState* __tstate = wxPyBeginAllowThreads();
25715 result = (int)(arg1)->GetMaxRows();
25716 wxPyEndAllowThreads(__tstate);
25717 if (PyErr_Occurred()) SWIG_fail;
25718 }
25719 resultobj = SWIG_From_int(static_cast< int >(result));
25720 return resultobj;
25721 fail:
25722 return NULL;
25723 }
25724
25725
25726 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25727 PyObject *resultobj = 0;
25728 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25729 int result;
25730 void *argp1 = 0 ;
25731 int res1 = 0 ;
25732 PyObject *swig_obj[1] ;
25733
25734 if (!args) SWIG_fail;
25735 swig_obj[0] = args;
25736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25737 if (!SWIG_IsOK(res1)) {
25738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25739 }
25740 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25741 {
25742 PyThreadState* __tstate = wxPyBeginAllowThreads();
25743 result = (int)(arg1)->GetMaxCols();
25744 wxPyEndAllowThreads(__tstate);
25745 if (PyErr_Occurred()) SWIG_fail;
25746 }
25747 resultobj = SWIG_From_int(static_cast< int >(result));
25748 return resultobj;
25749 fail:
25750 return NULL;
25751 }
25752
25753
25754 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25755 PyObject *resultobj = 0;
25756 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25757 wxSize *arg2 = 0 ;
25758 void *argp1 = 0 ;
25759 int res1 = 0 ;
25760 wxSize temp2 ;
25761 PyObject * obj0 = 0 ;
25762 PyObject * obj1 = 0 ;
25763 char * kwnames[] = {
25764 (char *) "self",(char *) "size", NULL
25765 };
25766
25767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25769 if (!SWIG_IsOK(res1)) {
25770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25771 }
25772 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25773 {
25774 arg2 = &temp2;
25775 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25776 }
25777 {
25778 PyThreadState* __tstate = wxPyBeginAllowThreads();
25779 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25780 wxPyEndAllowThreads(__tstate);
25781 if (PyErr_Occurred()) SWIG_fail;
25782 }
25783 resultobj = SWIG_Py_Void();
25784 return resultobj;
25785 fail:
25786 return NULL;
25787 }
25788
25789
25790 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25791 PyObject *resultobj = 0;
25792 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25793 wxSize result;
25794 void *argp1 = 0 ;
25795 int res1 = 0 ;
25796 PyObject *swig_obj[1] ;
25797
25798 if (!args) SWIG_fail;
25799 swig_obj[0] = args;
25800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25801 if (!SWIG_IsOK(res1)) {
25802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25803 }
25804 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25805 {
25806 PyThreadState* __tstate = wxPyBeginAllowThreads();
25807 result = (arg1)->GetToolBitmapSize();
25808 wxPyEndAllowThreads(__tstate);
25809 if (PyErr_Occurred()) SWIG_fail;
25810 }
25811 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25812 return resultobj;
25813 fail:
25814 return NULL;
25815 }
25816
25817
25818 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25819 PyObject *resultobj = 0;
25820 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25821 wxSize result;
25822 void *argp1 = 0 ;
25823 int res1 = 0 ;
25824 PyObject *swig_obj[1] ;
25825
25826 if (!args) SWIG_fail;
25827 swig_obj[0] = args;
25828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25829 if (!SWIG_IsOK(res1)) {
25830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25831 }
25832 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25833 {
25834 PyThreadState* __tstate = wxPyBeginAllowThreads();
25835 result = (arg1)->GetToolSize();
25836 wxPyEndAllowThreads(__tstate);
25837 if (PyErr_Occurred()) SWIG_fail;
25838 }
25839 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25840 return resultobj;
25841 fail:
25842 return NULL;
25843 }
25844
25845
25846 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25847 PyObject *resultobj = 0;
25848 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25849 int arg2 ;
25850 int arg3 ;
25851 wxToolBarToolBase *result = 0 ;
25852 void *argp1 = 0 ;
25853 int res1 = 0 ;
25854 int val2 ;
25855 int ecode2 = 0 ;
25856 int val3 ;
25857 int ecode3 = 0 ;
25858 PyObject * obj0 = 0 ;
25859 PyObject * obj1 = 0 ;
25860 PyObject * obj2 = 0 ;
25861 char * kwnames[] = {
25862 (char *) "self",(char *) "x",(char *) "y", NULL
25863 };
25864
25865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25867 if (!SWIG_IsOK(res1)) {
25868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25869 }
25870 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25871 ecode2 = SWIG_AsVal_int(obj1, &val2);
25872 if (!SWIG_IsOK(ecode2)) {
25873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25874 }
25875 arg2 = static_cast< int >(val2);
25876 ecode3 = SWIG_AsVal_int(obj2, &val3);
25877 if (!SWIG_IsOK(ecode3)) {
25878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25879 }
25880 arg3 = static_cast< int >(val3);
25881 {
25882 PyThreadState* __tstate = wxPyBeginAllowThreads();
25883 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25884 wxPyEndAllowThreads(__tstate);
25885 if (PyErr_Occurred()) SWIG_fail;
25886 }
25887 {
25888 resultobj = wxPyMake_wxObject(result, (bool)0);
25889 }
25890 return resultobj;
25891 fail:
25892 return NULL;
25893 }
25894
25895
25896 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25897 PyObject *resultobj = 0;
25898 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25899 int arg2 ;
25900 wxToolBarToolBase *result = 0 ;
25901 void *argp1 = 0 ;
25902 int res1 = 0 ;
25903 int val2 ;
25904 int ecode2 = 0 ;
25905 PyObject * obj0 = 0 ;
25906 PyObject * obj1 = 0 ;
25907 char * kwnames[] = {
25908 (char *) "self",(char *) "toolid", NULL
25909 };
25910
25911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25913 if (!SWIG_IsOK(res1)) {
25914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25915 }
25916 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25917 ecode2 = SWIG_AsVal_int(obj1, &val2);
25918 if (!SWIG_IsOK(ecode2)) {
25919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25920 }
25921 arg2 = static_cast< int >(val2);
25922 {
25923 PyThreadState* __tstate = wxPyBeginAllowThreads();
25924 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25925 wxPyEndAllowThreads(__tstate);
25926 if (PyErr_Occurred()) SWIG_fail;
25927 }
25928 {
25929 resultobj = wxPyMake_wxObject(result, (bool)0);
25930 }
25931 return resultobj;
25932 fail:
25933 return NULL;
25934 }
25935
25936
25937 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25938 PyObject *resultobj = 0;
25939 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25940 bool result;
25941 void *argp1 = 0 ;
25942 int res1 = 0 ;
25943 PyObject *swig_obj[1] ;
25944
25945 if (!args) SWIG_fail;
25946 swig_obj[0] = args;
25947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25948 if (!SWIG_IsOK(res1)) {
25949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25950 }
25951 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25952 {
25953 PyThreadState* __tstate = wxPyBeginAllowThreads();
25954 result = (bool)(arg1)->IsVertical();
25955 wxPyEndAllowThreads(__tstate);
25956 if (PyErr_Occurred()) SWIG_fail;
25957 }
25958 {
25959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25960 }
25961 return resultobj;
25962 fail:
25963 return NULL;
25964 }
25965
25966
25967 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25968 PyObject *resultobj = 0;
25969 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25970 size_t result;
25971 void *argp1 = 0 ;
25972 int res1 = 0 ;
25973 PyObject *swig_obj[1] ;
25974
25975 if (!args) SWIG_fail;
25976 swig_obj[0] = args;
25977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25978 if (!SWIG_IsOK(res1)) {
25979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25980 }
25981 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25982 {
25983 PyThreadState* __tstate = wxPyBeginAllowThreads();
25984 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25985 wxPyEndAllowThreads(__tstate);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25989 return resultobj;
25990 fail:
25991 return NULL;
25992 }
25993
25994
25995 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25996 PyObject *obj;
25997 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25998 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25999 return SWIG_Py_Void();
26000 }
26001
26002 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26003 PyObject *resultobj = 0;
26004 wxWindow *arg1 = (wxWindow *) 0 ;
26005 int arg2 = (int) -1 ;
26006 wxPoint const &arg3_defvalue = wxDefaultPosition ;
26007 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
26008 wxSize const &arg4_defvalue = wxDefaultSize ;
26009 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
26010 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
26011 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
26012 wxString *arg6 = (wxString *) &arg6_defvalue ;
26013 wxToolBar *result = 0 ;
26014 void *argp1 = 0 ;
26015 int res1 = 0 ;
26016 int val2 ;
26017 int ecode2 = 0 ;
26018 wxPoint temp3 ;
26019 wxSize temp4 ;
26020 long val5 ;
26021 int ecode5 = 0 ;
26022 bool temp6 = false ;
26023 PyObject * obj0 = 0 ;
26024 PyObject * obj1 = 0 ;
26025 PyObject * obj2 = 0 ;
26026 PyObject * obj3 = 0 ;
26027 PyObject * obj4 = 0 ;
26028 PyObject * obj5 = 0 ;
26029 char * kwnames[] = {
26030 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
26031 };
26032
26033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
26035 if (!SWIG_IsOK(res1)) {
26036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
26037 }
26038 arg1 = reinterpret_cast< wxWindow * >(argp1);
26039 if (obj1) {
26040 ecode2 = SWIG_AsVal_int(obj1, &val2);
26041 if (!SWIG_IsOK(ecode2)) {
26042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
26043 }
26044 arg2 = static_cast< int >(val2);
26045 }
26046 if (obj2) {
26047 {
26048 arg3 = &temp3;
26049 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
26050 }
26051 }
26052 if (obj3) {
26053 {
26054 arg4 = &temp4;
26055 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
26056 }
26057 }
26058 if (obj4) {
26059 ecode5 = SWIG_AsVal_long(obj4, &val5);
26060 if (!SWIG_IsOK(ecode5)) {
26061 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
26062 }
26063 arg5 = static_cast< long >(val5);
26064 }
26065 if (obj5) {
26066 {
26067 arg6 = wxString_in_helper(obj5);
26068 if (arg6 == NULL) SWIG_fail;
26069 temp6 = true;
26070 }
26071 }
26072 {
26073 if (!wxPyCheckForApp()) SWIG_fail;
26074 PyThreadState* __tstate = wxPyBeginAllowThreads();
26075 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
26076 wxPyEndAllowThreads(__tstate);
26077 if (PyErr_Occurred()) SWIG_fail;
26078 }
26079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
26080 {
26081 if (temp6)
26082 delete arg6;
26083 }
26084 return resultobj;
26085 fail:
26086 {
26087 if (temp6)
26088 delete arg6;
26089 }
26090 return NULL;
26091 }
26092
26093
26094 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26095 PyObject *resultobj = 0;
26096 wxToolBar *result = 0 ;
26097
26098 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
26099 {
26100 if (!wxPyCheckForApp()) SWIG_fail;
26101 PyThreadState* __tstate = wxPyBeginAllowThreads();
26102 result = (wxToolBar *)new wxToolBar();
26103 wxPyEndAllowThreads(__tstate);
26104 if (PyErr_Occurred()) SWIG_fail;
26105 }
26106 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
26107 return resultobj;
26108 fail:
26109 return NULL;
26110 }
26111
26112
26113 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26114 PyObject *resultobj = 0;
26115 wxToolBar *arg1 = (wxToolBar *) 0 ;
26116 wxWindow *arg2 = (wxWindow *) 0 ;
26117 int arg3 = (int) -1 ;
26118 wxPoint const &arg4_defvalue = wxDefaultPosition ;
26119 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
26120 wxSize const &arg5_defvalue = wxDefaultSize ;
26121 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
26122 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
26123 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
26124 wxString *arg7 = (wxString *) &arg7_defvalue ;
26125 bool result;
26126 void *argp1 = 0 ;
26127 int res1 = 0 ;
26128 void *argp2 = 0 ;
26129 int res2 = 0 ;
26130 int val3 ;
26131 int ecode3 = 0 ;
26132 wxPoint temp4 ;
26133 wxSize temp5 ;
26134 long val6 ;
26135 int ecode6 = 0 ;
26136 bool temp7 = false ;
26137 PyObject * obj0 = 0 ;
26138 PyObject * obj1 = 0 ;
26139 PyObject * obj2 = 0 ;
26140 PyObject * obj3 = 0 ;
26141 PyObject * obj4 = 0 ;
26142 PyObject * obj5 = 0 ;
26143 PyObject * obj6 = 0 ;
26144 char * kwnames[] = {
26145 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
26146 };
26147
26148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26150 if (!SWIG_IsOK(res1)) {
26151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
26152 }
26153 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26154 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26155 if (!SWIG_IsOK(res2)) {
26156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
26157 }
26158 arg2 = reinterpret_cast< wxWindow * >(argp2);
26159 if (obj2) {
26160 ecode3 = SWIG_AsVal_int(obj2, &val3);
26161 if (!SWIG_IsOK(ecode3)) {
26162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
26163 }
26164 arg3 = static_cast< int >(val3);
26165 }
26166 if (obj3) {
26167 {
26168 arg4 = &temp4;
26169 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26170 }
26171 }
26172 if (obj4) {
26173 {
26174 arg5 = &temp5;
26175 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
26176 }
26177 }
26178 if (obj5) {
26179 ecode6 = SWIG_AsVal_long(obj5, &val6);
26180 if (!SWIG_IsOK(ecode6)) {
26181 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
26182 }
26183 arg6 = static_cast< long >(val6);
26184 }
26185 if (obj6) {
26186 {
26187 arg7 = wxString_in_helper(obj6);
26188 if (arg7 == NULL) SWIG_fail;
26189 temp7 = true;
26190 }
26191 }
26192 {
26193 PyThreadState* __tstate = wxPyBeginAllowThreads();
26194 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
26195 wxPyEndAllowThreads(__tstate);
26196 if (PyErr_Occurred()) SWIG_fail;
26197 }
26198 {
26199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26200 }
26201 {
26202 if (temp7)
26203 delete arg7;
26204 }
26205 return resultobj;
26206 fail:
26207 {
26208 if (temp7)
26209 delete arg7;
26210 }
26211 return NULL;
26212 }
26213
26214
26215 SWIGINTERN PyObject *_wrap_ToolBar_SetToolNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26216 PyObject *resultobj = 0;
26217 wxToolBar *arg1 = (wxToolBar *) 0 ;
26218 int arg2 ;
26219 wxBitmap *arg3 = 0 ;
26220 void *argp1 = 0 ;
26221 int res1 = 0 ;
26222 int val2 ;
26223 int ecode2 = 0 ;
26224 void *argp3 = 0 ;
26225 int res3 = 0 ;
26226 PyObject * obj0 = 0 ;
26227 PyObject * obj1 = 0 ;
26228 PyObject * obj2 = 0 ;
26229 char * kwnames[] = {
26230 (char *) "self",(char *) "id",(char *) "bitmap", NULL
26231 };
26232
26233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolNormalBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26235 if (!SWIG_IsOK(res1)) {
26236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'");
26237 }
26238 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26239 ecode2 = SWIG_AsVal_int(obj1, &val2);
26240 if (!SWIG_IsOK(ecode2)) {
26241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "2"" of type '" "int""'");
26242 }
26243 arg2 = static_cast< int >(val2);
26244 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26245 if (!SWIG_IsOK(res3)) {
26246 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26247 }
26248 if (!argp3) {
26249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26250 }
26251 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26252 {
26253 PyThreadState* __tstate = wxPyBeginAllowThreads();
26254 (arg1)->SetToolNormalBitmap(arg2,(wxBitmap const &)*arg3);
26255 wxPyEndAllowThreads(__tstate);
26256 if (PyErr_Occurred()) SWIG_fail;
26257 }
26258 resultobj = SWIG_Py_Void();
26259 return resultobj;
26260 fail:
26261 return NULL;
26262 }
26263
26264
26265 SWIGINTERN PyObject *_wrap_ToolBar_SetToolDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26266 PyObject *resultobj = 0;
26267 wxToolBar *arg1 = (wxToolBar *) 0 ;
26268 int arg2 ;
26269 wxBitmap *arg3 = 0 ;
26270 void *argp1 = 0 ;
26271 int res1 = 0 ;
26272 int val2 ;
26273 int ecode2 = 0 ;
26274 void *argp3 = 0 ;
26275 int res3 = 0 ;
26276 PyObject * obj0 = 0 ;
26277 PyObject * obj1 = 0 ;
26278 PyObject * obj2 = 0 ;
26279 char * kwnames[] = {
26280 (char *) "self",(char *) "id",(char *) "bitmap", NULL
26281 };
26282
26283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolDisabledBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26285 if (!SWIG_IsOK(res1)) {
26286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'");
26287 }
26288 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26289 ecode2 = SWIG_AsVal_int(obj1, &val2);
26290 if (!SWIG_IsOK(ecode2)) {
26291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "2"" of type '" "int""'");
26292 }
26293 arg2 = static_cast< int >(val2);
26294 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26295 if (!SWIG_IsOK(res3)) {
26296 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26297 }
26298 if (!argp3) {
26299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26300 }
26301 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26302 {
26303 PyThreadState* __tstate = wxPyBeginAllowThreads();
26304 (arg1)->SetToolDisabledBitmap(arg2,(wxBitmap const &)*arg3);
26305 wxPyEndAllowThreads(__tstate);
26306 if (PyErr_Occurred()) SWIG_fail;
26307 }
26308 resultobj = SWIG_Py_Void();
26309 return resultobj;
26310 fail:
26311 return NULL;
26312 }
26313
26314
26315 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26316 PyObject *resultobj = 0;
26317 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
26318 SwigValueWrapper<wxVisualAttributes > result;
26319 int val1 ;
26320 int ecode1 = 0 ;
26321 PyObject * obj0 = 0 ;
26322 char * kwnames[] = {
26323 (char *) "variant", NULL
26324 };
26325
26326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26327 if (obj0) {
26328 ecode1 = SWIG_AsVal_int(obj0, &val1);
26329 if (!SWIG_IsOK(ecode1)) {
26330 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26331 }
26332 arg1 = static_cast< wxWindowVariant >(val1);
26333 }
26334 {
26335 if (!wxPyCheckForApp()) SWIG_fail;
26336 PyThreadState* __tstate = wxPyBeginAllowThreads();
26337 result = wxToolBar::GetClassDefaultAttributes(arg1);
26338 wxPyEndAllowThreads(__tstate);
26339 if (PyErr_Occurred()) SWIG_fail;
26340 }
26341 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26342 return resultobj;
26343 fail:
26344 return NULL;
26345 }
26346
26347
26348 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26349 PyObject *obj;
26350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26351 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26352 return SWIG_Py_Void();
26353 }
26354
26355 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26356 return SWIG_Python_InitShadowInstance(args);
26357 }
26358
26359 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26360 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26361 return 1;
26362 }
26363
26364
26365 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26366 PyObject *pyobj = 0;
26367
26368 {
26369 #if wxUSE_UNICODE
26370 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26371 #else
26372 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26373 #endif
26374 }
26375 return pyobj;
26376 }
26377
26378
26379 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26380 PyObject *resultobj = 0;
26381 wxColour const &arg1_defvalue = wxNullColour ;
26382 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26383 wxColour const &arg2_defvalue = wxNullColour ;
26384 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26385 wxFont const &arg3_defvalue = wxNullFont ;
26386 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26387 wxListItemAttr *result = 0 ;
26388 wxColour temp1 ;
26389 wxColour temp2 ;
26390 void *argp3 = 0 ;
26391 int res3 = 0 ;
26392 PyObject * obj0 = 0 ;
26393 PyObject * obj1 = 0 ;
26394 PyObject * obj2 = 0 ;
26395 char * kwnames[] = {
26396 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26397 };
26398
26399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26400 if (obj0) {
26401 {
26402 arg1 = &temp1;
26403 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
26404 }
26405 }
26406 if (obj1) {
26407 {
26408 arg2 = &temp2;
26409 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26410 }
26411 }
26412 if (obj2) {
26413 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26414 if (!SWIG_IsOK(res3)) {
26415 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26416 }
26417 if (!argp3) {
26418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26419 }
26420 arg3 = reinterpret_cast< wxFont * >(argp3);
26421 }
26422 {
26423 PyThreadState* __tstate = wxPyBeginAllowThreads();
26424 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26425 wxPyEndAllowThreads(__tstate);
26426 if (PyErr_Occurred()) SWIG_fail;
26427 }
26428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26429 return resultobj;
26430 fail:
26431 return NULL;
26432 }
26433
26434
26435 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26436 PyObject *resultobj = 0;
26437 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26438 void *argp1 = 0 ;
26439 int res1 = 0 ;
26440 PyObject *swig_obj[1] ;
26441
26442 if (!args) SWIG_fail;
26443 swig_obj[0] = args;
26444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26445 if (!SWIG_IsOK(res1)) {
26446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26447 }
26448 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26449 {
26450 PyThreadState* __tstate = wxPyBeginAllowThreads();
26451 delete arg1;
26452
26453 wxPyEndAllowThreads(__tstate);
26454 if (PyErr_Occurred()) SWIG_fail;
26455 }
26456 resultobj = SWIG_Py_Void();
26457 return resultobj;
26458 fail:
26459 return NULL;
26460 }
26461
26462
26463 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26464 PyObject *resultobj = 0;
26465 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26466 wxColour *arg2 = 0 ;
26467 void *argp1 = 0 ;
26468 int res1 = 0 ;
26469 wxColour temp2 ;
26470 PyObject * obj0 = 0 ;
26471 PyObject * obj1 = 0 ;
26472 char * kwnames[] = {
26473 (char *) "self",(char *) "colText", NULL
26474 };
26475
26476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26478 if (!SWIG_IsOK(res1)) {
26479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26480 }
26481 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26482 {
26483 arg2 = &temp2;
26484 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26485 }
26486 {
26487 PyThreadState* __tstate = wxPyBeginAllowThreads();
26488 (arg1)->SetTextColour((wxColour const &)*arg2);
26489 wxPyEndAllowThreads(__tstate);
26490 if (PyErr_Occurred()) SWIG_fail;
26491 }
26492 resultobj = SWIG_Py_Void();
26493 return resultobj;
26494 fail:
26495 return NULL;
26496 }
26497
26498
26499 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26500 PyObject *resultobj = 0;
26501 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26502 wxColour *arg2 = 0 ;
26503 void *argp1 = 0 ;
26504 int res1 = 0 ;
26505 wxColour temp2 ;
26506 PyObject * obj0 = 0 ;
26507 PyObject * obj1 = 0 ;
26508 char * kwnames[] = {
26509 (char *) "self",(char *) "colBack", NULL
26510 };
26511
26512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26514 if (!SWIG_IsOK(res1)) {
26515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26516 }
26517 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26518 {
26519 arg2 = &temp2;
26520 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26521 }
26522 {
26523 PyThreadState* __tstate = wxPyBeginAllowThreads();
26524 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26525 wxPyEndAllowThreads(__tstate);
26526 if (PyErr_Occurred()) SWIG_fail;
26527 }
26528 resultobj = SWIG_Py_Void();
26529 return resultobj;
26530 fail:
26531 return NULL;
26532 }
26533
26534
26535 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26536 PyObject *resultobj = 0;
26537 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26538 wxFont *arg2 = 0 ;
26539 void *argp1 = 0 ;
26540 int res1 = 0 ;
26541 void *argp2 = 0 ;
26542 int res2 = 0 ;
26543 PyObject * obj0 = 0 ;
26544 PyObject * obj1 = 0 ;
26545 char * kwnames[] = {
26546 (char *) "self",(char *) "font", NULL
26547 };
26548
26549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26551 if (!SWIG_IsOK(res1)) {
26552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26553 }
26554 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26556 if (!SWIG_IsOK(res2)) {
26557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26558 }
26559 if (!argp2) {
26560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26561 }
26562 arg2 = reinterpret_cast< wxFont * >(argp2);
26563 {
26564 PyThreadState* __tstate = wxPyBeginAllowThreads();
26565 (arg1)->SetFont((wxFont const &)*arg2);
26566 wxPyEndAllowThreads(__tstate);
26567 if (PyErr_Occurred()) SWIG_fail;
26568 }
26569 resultobj = SWIG_Py_Void();
26570 return resultobj;
26571 fail:
26572 return NULL;
26573 }
26574
26575
26576 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26577 PyObject *resultobj = 0;
26578 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26579 bool result;
26580 void *argp1 = 0 ;
26581 int res1 = 0 ;
26582 PyObject *swig_obj[1] ;
26583
26584 if (!args) SWIG_fail;
26585 swig_obj[0] = args;
26586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26587 if (!SWIG_IsOK(res1)) {
26588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26589 }
26590 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26591 {
26592 PyThreadState* __tstate = wxPyBeginAllowThreads();
26593 result = (bool)(arg1)->HasTextColour();
26594 wxPyEndAllowThreads(__tstate);
26595 if (PyErr_Occurred()) SWIG_fail;
26596 }
26597 {
26598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26599 }
26600 return resultobj;
26601 fail:
26602 return NULL;
26603 }
26604
26605
26606 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26607 PyObject *resultobj = 0;
26608 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26609 bool result;
26610 void *argp1 = 0 ;
26611 int res1 = 0 ;
26612 PyObject *swig_obj[1] ;
26613
26614 if (!args) SWIG_fail;
26615 swig_obj[0] = args;
26616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26617 if (!SWIG_IsOK(res1)) {
26618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26619 }
26620 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26621 {
26622 PyThreadState* __tstate = wxPyBeginAllowThreads();
26623 result = (bool)(arg1)->HasBackgroundColour();
26624 wxPyEndAllowThreads(__tstate);
26625 if (PyErr_Occurred()) SWIG_fail;
26626 }
26627 {
26628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26629 }
26630 return resultobj;
26631 fail:
26632 return NULL;
26633 }
26634
26635
26636 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26637 PyObject *resultobj = 0;
26638 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26639 bool result;
26640 void *argp1 = 0 ;
26641 int res1 = 0 ;
26642 PyObject *swig_obj[1] ;
26643
26644 if (!args) SWIG_fail;
26645 swig_obj[0] = args;
26646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26647 if (!SWIG_IsOK(res1)) {
26648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26649 }
26650 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26651 {
26652 PyThreadState* __tstate = wxPyBeginAllowThreads();
26653 result = (bool)(arg1)->HasFont();
26654 wxPyEndAllowThreads(__tstate);
26655 if (PyErr_Occurred()) SWIG_fail;
26656 }
26657 {
26658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26659 }
26660 return resultobj;
26661 fail:
26662 return NULL;
26663 }
26664
26665
26666 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26667 PyObject *resultobj = 0;
26668 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26669 wxColour result;
26670 void *argp1 = 0 ;
26671 int res1 = 0 ;
26672 PyObject *swig_obj[1] ;
26673
26674 if (!args) SWIG_fail;
26675 swig_obj[0] = args;
26676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26677 if (!SWIG_IsOK(res1)) {
26678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26679 }
26680 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26681 {
26682 PyThreadState* __tstate = wxPyBeginAllowThreads();
26683 result = (arg1)->GetTextColour();
26684 wxPyEndAllowThreads(__tstate);
26685 if (PyErr_Occurred()) SWIG_fail;
26686 }
26687 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26688 return resultobj;
26689 fail:
26690 return NULL;
26691 }
26692
26693
26694 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26695 PyObject *resultobj = 0;
26696 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26697 wxColour result;
26698 void *argp1 = 0 ;
26699 int res1 = 0 ;
26700 PyObject *swig_obj[1] ;
26701
26702 if (!args) SWIG_fail;
26703 swig_obj[0] = args;
26704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26705 if (!SWIG_IsOK(res1)) {
26706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26707 }
26708 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26709 {
26710 PyThreadState* __tstate = wxPyBeginAllowThreads();
26711 result = (arg1)->GetBackgroundColour();
26712 wxPyEndAllowThreads(__tstate);
26713 if (PyErr_Occurred()) SWIG_fail;
26714 }
26715 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26716 return resultobj;
26717 fail:
26718 return NULL;
26719 }
26720
26721
26722 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26723 PyObject *resultobj = 0;
26724 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26725 wxFont result;
26726 void *argp1 = 0 ;
26727 int res1 = 0 ;
26728 PyObject *swig_obj[1] ;
26729
26730 if (!args) SWIG_fail;
26731 swig_obj[0] = args;
26732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26733 if (!SWIG_IsOK(res1)) {
26734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26735 }
26736 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26737 {
26738 PyThreadState* __tstate = wxPyBeginAllowThreads();
26739 result = (arg1)->GetFont();
26740 wxPyEndAllowThreads(__tstate);
26741 if (PyErr_Occurred()) SWIG_fail;
26742 }
26743 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26744 return resultobj;
26745 fail:
26746 return NULL;
26747 }
26748
26749
26750 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26751 PyObject *resultobj = 0;
26752 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26753 wxListItemAttr *arg2 = 0 ;
26754 void *argp1 = 0 ;
26755 int res1 = 0 ;
26756 void *argp2 = 0 ;
26757 int res2 = 0 ;
26758 PyObject * obj0 = 0 ;
26759 PyObject * obj1 = 0 ;
26760 char * kwnames[] = {
26761 (char *) "self",(char *) "source", NULL
26762 };
26763
26764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26766 if (!SWIG_IsOK(res1)) {
26767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26768 }
26769 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26770 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26771 if (!SWIG_IsOK(res2)) {
26772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26773 }
26774 if (!argp2) {
26775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26776 }
26777 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26778 {
26779 PyThreadState* __tstate = wxPyBeginAllowThreads();
26780 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26781 wxPyEndAllowThreads(__tstate);
26782 if (PyErr_Occurred()) SWIG_fail;
26783 }
26784 resultobj = SWIG_Py_Void();
26785 return resultobj;
26786 fail:
26787 return NULL;
26788 }
26789
26790
26791 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26792 PyObject *resultobj = 0;
26793 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26794 void *argp1 = 0 ;
26795 int res1 = 0 ;
26796 PyObject *swig_obj[1] ;
26797
26798 if (!args) SWIG_fail;
26799 swig_obj[0] = args;
26800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26801 if (!SWIG_IsOK(res1)) {
26802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26803 }
26804 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26805 {
26806 PyThreadState* __tstate = wxPyBeginAllowThreads();
26807 wxListItemAttr_Destroy(arg1);
26808 wxPyEndAllowThreads(__tstate);
26809 if (PyErr_Occurred()) SWIG_fail;
26810 }
26811 resultobj = SWIG_Py_Void();
26812 return resultobj;
26813 fail:
26814 return NULL;
26815 }
26816
26817
26818 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26819 PyObject *obj;
26820 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26821 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26822 return SWIG_Py_Void();
26823 }
26824
26825 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26826 return SWIG_Python_InitShadowInstance(args);
26827 }
26828
26829 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26830 PyObject *resultobj = 0;
26831 wxListItem *result = 0 ;
26832
26833 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26834 {
26835 PyThreadState* __tstate = wxPyBeginAllowThreads();
26836 result = (wxListItem *)new wxListItem();
26837 wxPyEndAllowThreads(__tstate);
26838 if (PyErr_Occurred()) SWIG_fail;
26839 }
26840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
26841 return resultobj;
26842 fail:
26843 return NULL;
26844 }
26845
26846
26847 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26848 PyObject *resultobj = 0;
26849 wxListItem *arg1 = (wxListItem *) 0 ;
26850 void *argp1 = 0 ;
26851 int res1 = 0 ;
26852 PyObject *swig_obj[1] ;
26853
26854 if (!args) SWIG_fail;
26855 swig_obj[0] = args;
26856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26857 if (!SWIG_IsOK(res1)) {
26858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26859 }
26860 arg1 = reinterpret_cast< wxListItem * >(argp1);
26861 {
26862 PyThreadState* __tstate = wxPyBeginAllowThreads();
26863 delete arg1;
26864
26865 wxPyEndAllowThreads(__tstate);
26866 if (PyErr_Occurred()) SWIG_fail;
26867 }
26868 resultobj = SWIG_Py_Void();
26869 return resultobj;
26870 fail:
26871 return NULL;
26872 }
26873
26874
26875 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26876 PyObject *resultobj = 0;
26877 wxListItem *arg1 = (wxListItem *) 0 ;
26878 void *argp1 = 0 ;
26879 int res1 = 0 ;
26880 PyObject *swig_obj[1] ;
26881
26882 if (!args) SWIG_fail;
26883 swig_obj[0] = args;
26884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26885 if (!SWIG_IsOK(res1)) {
26886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26887 }
26888 arg1 = reinterpret_cast< wxListItem * >(argp1);
26889 {
26890 PyThreadState* __tstate = wxPyBeginAllowThreads();
26891 (arg1)->Clear();
26892 wxPyEndAllowThreads(__tstate);
26893 if (PyErr_Occurred()) SWIG_fail;
26894 }
26895 resultobj = SWIG_Py_Void();
26896 return resultobj;
26897 fail:
26898 return NULL;
26899 }
26900
26901
26902 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26903 PyObject *resultobj = 0;
26904 wxListItem *arg1 = (wxListItem *) 0 ;
26905 void *argp1 = 0 ;
26906 int res1 = 0 ;
26907 PyObject *swig_obj[1] ;
26908
26909 if (!args) SWIG_fail;
26910 swig_obj[0] = args;
26911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26912 if (!SWIG_IsOK(res1)) {
26913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26914 }
26915 arg1 = reinterpret_cast< wxListItem * >(argp1);
26916 {
26917 PyThreadState* __tstate = wxPyBeginAllowThreads();
26918 (arg1)->ClearAttributes();
26919 wxPyEndAllowThreads(__tstate);
26920 if (PyErr_Occurred()) SWIG_fail;
26921 }
26922 resultobj = SWIG_Py_Void();
26923 return resultobj;
26924 fail:
26925 return NULL;
26926 }
26927
26928
26929 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26930 PyObject *resultobj = 0;
26931 wxListItem *arg1 = (wxListItem *) 0 ;
26932 long arg2 ;
26933 void *argp1 = 0 ;
26934 int res1 = 0 ;
26935 long val2 ;
26936 int ecode2 = 0 ;
26937 PyObject * obj0 = 0 ;
26938 PyObject * obj1 = 0 ;
26939 char * kwnames[] = {
26940 (char *) "self",(char *) "mask", NULL
26941 };
26942
26943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26945 if (!SWIG_IsOK(res1)) {
26946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26947 }
26948 arg1 = reinterpret_cast< wxListItem * >(argp1);
26949 ecode2 = SWIG_AsVal_long(obj1, &val2);
26950 if (!SWIG_IsOK(ecode2)) {
26951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26952 }
26953 arg2 = static_cast< long >(val2);
26954 {
26955 PyThreadState* __tstate = wxPyBeginAllowThreads();
26956 (arg1)->SetMask(arg2);
26957 wxPyEndAllowThreads(__tstate);
26958 if (PyErr_Occurred()) SWIG_fail;
26959 }
26960 resultobj = SWIG_Py_Void();
26961 return resultobj;
26962 fail:
26963 return NULL;
26964 }
26965
26966
26967 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26968 PyObject *resultobj = 0;
26969 wxListItem *arg1 = (wxListItem *) 0 ;
26970 long arg2 ;
26971 void *argp1 = 0 ;
26972 int res1 = 0 ;
26973 long val2 ;
26974 int ecode2 = 0 ;
26975 PyObject * obj0 = 0 ;
26976 PyObject * obj1 = 0 ;
26977 char * kwnames[] = {
26978 (char *) "self",(char *) "id", NULL
26979 };
26980
26981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26983 if (!SWIG_IsOK(res1)) {
26984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26985 }
26986 arg1 = reinterpret_cast< wxListItem * >(argp1);
26987 ecode2 = SWIG_AsVal_long(obj1, &val2);
26988 if (!SWIG_IsOK(ecode2)) {
26989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26990 }
26991 arg2 = static_cast< long >(val2);
26992 {
26993 PyThreadState* __tstate = wxPyBeginAllowThreads();
26994 (arg1)->SetId(arg2);
26995 wxPyEndAllowThreads(__tstate);
26996 if (PyErr_Occurred()) SWIG_fail;
26997 }
26998 resultobj = SWIG_Py_Void();
26999 return resultobj;
27000 fail:
27001 return NULL;
27002 }
27003
27004
27005 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27006 PyObject *resultobj = 0;
27007 wxListItem *arg1 = (wxListItem *) 0 ;
27008 int arg2 ;
27009 void *argp1 = 0 ;
27010 int res1 = 0 ;
27011 int val2 ;
27012 int ecode2 = 0 ;
27013 PyObject * obj0 = 0 ;
27014 PyObject * obj1 = 0 ;
27015 char * kwnames[] = {
27016 (char *) "self",(char *) "col", NULL
27017 };
27018
27019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
27020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27021 if (!SWIG_IsOK(res1)) {
27022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27023 }
27024 arg1 = reinterpret_cast< wxListItem * >(argp1);
27025 ecode2 = SWIG_AsVal_int(obj1, &val2);
27026 if (!SWIG_IsOK(ecode2)) {
27027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
27028 }
27029 arg2 = static_cast< int >(val2);
27030 {
27031 PyThreadState* __tstate = wxPyBeginAllowThreads();
27032 (arg1)->SetColumn(arg2);
27033 wxPyEndAllowThreads(__tstate);
27034 if (PyErr_Occurred()) SWIG_fail;
27035 }
27036 resultobj = SWIG_Py_Void();
27037 return resultobj;
27038 fail:
27039 return NULL;
27040 }
27041
27042
27043 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27044 PyObject *resultobj = 0;
27045 wxListItem *arg1 = (wxListItem *) 0 ;
27046 long arg2 ;
27047 void *argp1 = 0 ;
27048 int res1 = 0 ;
27049 long val2 ;
27050 int ecode2 = 0 ;
27051 PyObject * obj0 = 0 ;
27052 PyObject * obj1 = 0 ;
27053 char * kwnames[] = {
27054 (char *) "self",(char *) "state", NULL
27055 };
27056
27057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
27058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27059 if (!SWIG_IsOK(res1)) {
27060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27061 }
27062 arg1 = reinterpret_cast< wxListItem * >(argp1);
27063 ecode2 = SWIG_AsVal_long(obj1, &val2);
27064 if (!SWIG_IsOK(ecode2)) {
27065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
27066 }
27067 arg2 = static_cast< long >(val2);
27068 {
27069 PyThreadState* __tstate = wxPyBeginAllowThreads();
27070 (arg1)->SetState(arg2);
27071 wxPyEndAllowThreads(__tstate);
27072 if (PyErr_Occurred()) SWIG_fail;
27073 }
27074 resultobj = SWIG_Py_Void();
27075 return resultobj;
27076 fail:
27077 return NULL;
27078 }
27079
27080
27081 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27082 PyObject *resultobj = 0;
27083 wxListItem *arg1 = (wxListItem *) 0 ;
27084 long arg2 ;
27085 void *argp1 = 0 ;
27086 int res1 = 0 ;
27087 long val2 ;
27088 int ecode2 = 0 ;
27089 PyObject * obj0 = 0 ;
27090 PyObject * obj1 = 0 ;
27091 char * kwnames[] = {
27092 (char *) "self",(char *) "stateMask", NULL
27093 };
27094
27095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
27096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27097 if (!SWIG_IsOK(res1)) {
27098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27099 }
27100 arg1 = reinterpret_cast< wxListItem * >(argp1);
27101 ecode2 = SWIG_AsVal_long(obj1, &val2);
27102 if (!SWIG_IsOK(ecode2)) {
27103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
27104 }
27105 arg2 = static_cast< long >(val2);
27106 {
27107 PyThreadState* __tstate = wxPyBeginAllowThreads();
27108 (arg1)->SetStateMask(arg2);
27109 wxPyEndAllowThreads(__tstate);
27110 if (PyErr_Occurred()) SWIG_fail;
27111 }
27112 resultobj = SWIG_Py_Void();
27113 return resultobj;
27114 fail:
27115 return NULL;
27116 }
27117
27118
27119 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27120 PyObject *resultobj = 0;
27121 wxListItem *arg1 = (wxListItem *) 0 ;
27122 wxString *arg2 = 0 ;
27123 void *argp1 = 0 ;
27124 int res1 = 0 ;
27125 bool temp2 = false ;
27126 PyObject * obj0 = 0 ;
27127 PyObject * obj1 = 0 ;
27128 char * kwnames[] = {
27129 (char *) "self",(char *) "text", NULL
27130 };
27131
27132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
27133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27134 if (!SWIG_IsOK(res1)) {
27135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27136 }
27137 arg1 = reinterpret_cast< wxListItem * >(argp1);
27138 {
27139 arg2 = wxString_in_helper(obj1);
27140 if (arg2 == NULL) SWIG_fail;
27141 temp2 = true;
27142 }
27143 {
27144 PyThreadState* __tstate = wxPyBeginAllowThreads();
27145 (arg1)->SetText((wxString const &)*arg2);
27146 wxPyEndAllowThreads(__tstate);
27147 if (PyErr_Occurred()) SWIG_fail;
27148 }
27149 resultobj = SWIG_Py_Void();
27150 {
27151 if (temp2)
27152 delete arg2;
27153 }
27154 return resultobj;
27155 fail:
27156 {
27157 if (temp2)
27158 delete arg2;
27159 }
27160 return NULL;
27161 }
27162
27163
27164 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27165 PyObject *resultobj = 0;
27166 wxListItem *arg1 = (wxListItem *) 0 ;
27167 int arg2 ;
27168 void *argp1 = 0 ;
27169 int res1 = 0 ;
27170 int val2 ;
27171 int ecode2 = 0 ;
27172 PyObject * obj0 = 0 ;
27173 PyObject * obj1 = 0 ;
27174 char * kwnames[] = {
27175 (char *) "self",(char *) "image", NULL
27176 };
27177
27178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
27179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27180 if (!SWIG_IsOK(res1)) {
27181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27182 }
27183 arg1 = reinterpret_cast< wxListItem * >(argp1);
27184 ecode2 = SWIG_AsVal_int(obj1, &val2);
27185 if (!SWIG_IsOK(ecode2)) {
27186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
27187 }
27188 arg2 = static_cast< int >(val2);
27189 {
27190 PyThreadState* __tstate = wxPyBeginAllowThreads();
27191 (arg1)->SetImage(arg2);
27192 wxPyEndAllowThreads(__tstate);
27193 if (PyErr_Occurred()) SWIG_fail;
27194 }
27195 resultobj = SWIG_Py_Void();
27196 return resultobj;
27197 fail:
27198 return NULL;
27199 }
27200
27201
27202 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27203 PyObject *resultobj = 0;
27204 wxListItem *arg1 = (wxListItem *) 0 ;
27205 long arg2 ;
27206 void *argp1 = 0 ;
27207 int res1 = 0 ;
27208 long val2 ;
27209 int ecode2 = 0 ;
27210 PyObject * obj0 = 0 ;
27211 PyObject * obj1 = 0 ;
27212 char * kwnames[] = {
27213 (char *) "self",(char *) "data", NULL
27214 };
27215
27216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
27217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27218 if (!SWIG_IsOK(res1)) {
27219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27220 }
27221 arg1 = reinterpret_cast< wxListItem * >(argp1);
27222 ecode2 = SWIG_AsVal_long(obj1, &val2);
27223 if (!SWIG_IsOK(ecode2)) {
27224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
27225 }
27226 arg2 = static_cast< long >(val2);
27227 {
27228 PyThreadState* __tstate = wxPyBeginAllowThreads();
27229 (arg1)->SetData(arg2);
27230 wxPyEndAllowThreads(__tstate);
27231 if (PyErr_Occurred()) SWIG_fail;
27232 }
27233 resultobj = SWIG_Py_Void();
27234 return resultobj;
27235 fail:
27236 return NULL;
27237 }
27238
27239
27240 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27241 PyObject *resultobj = 0;
27242 wxListItem *arg1 = (wxListItem *) 0 ;
27243 int arg2 ;
27244 void *argp1 = 0 ;
27245 int res1 = 0 ;
27246 int val2 ;
27247 int ecode2 = 0 ;
27248 PyObject * obj0 = 0 ;
27249 PyObject * obj1 = 0 ;
27250 char * kwnames[] = {
27251 (char *) "self",(char *) "width", NULL
27252 };
27253
27254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
27255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27256 if (!SWIG_IsOK(res1)) {
27257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27258 }
27259 arg1 = reinterpret_cast< wxListItem * >(argp1);
27260 ecode2 = SWIG_AsVal_int(obj1, &val2);
27261 if (!SWIG_IsOK(ecode2)) {
27262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
27263 }
27264 arg2 = static_cast< int >(val2);
27265 {
27266 PyThreadState* __tstate = wxPyBeginAllowThreads();
27267 (arg1)->SetWidth(arg2);
27268 wxPyEndAllowThreads(__tstate);
27269 if (PyErr_Occurred()) SWIG_fail;
27270 }
27271 resultobj = SWIG_Py_Void();
27272 return resultobj;
27273 fail:
27274 return NULL;
27275 }
27276
27277
27278 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27279 PyObject *resultobj = 0;
27280 wxListItem *arg1 = (wxListItem *) 0 ;
27281 wxListColumnFormat arg2 ;
27282 void *argp1 = 0 ;
27283 int res1 = 0 ;
27284 int val2 ;
27285 int ecode2 = 0 ;
27286 PyObject * obj0 = 0 ;
27287 PyObject * obj1 = 0 ;
27288 char * kwnames[] = {
27289 (char *) "self",(char *) "align", NULL
27290 };
27291
27292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
27293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27294 if (!SWIG_IsOK(res1)) {
27295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27296 }
27297 arg1 = reinterpret_cast< wxListItem * >(argp1);
27298 ecode2 = SWIG_AsVal_int(obj1, &val2);
27299 if (!SWIG_IsOK(ecode2)) {
27300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
27301 }
27302 arg2 = static_cast< wxListColumnFormat >(val2);
27303 {
27304 PyThreadState* __tstate = wxPyBeginAllowThreads();
27305 (arg1)->SetAlign(arg2);
27306 wxPyEndAllowThreads(__tstate);
27307 if (PyErr_Occurred()) SWIG_fail;
27308 }
27309 resultobj = SWIG_Py_Void();
27310 return resultobj;
27311 fail:
27312 return NULL;
27313 }
27314
27315
27316 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27317 PyObject *resultobj = 0;
27318 wxListItem *arg1 = (wxListItem *) 0 ;
27319 wxColour *arg2 = 0 ;
27320 void *argp1 = 0 ;
27321 int res1 = 0 ;
27322 wxColour temp2 ;
27323 PyObject * obj0 = 0 ;
27324 PyObject * obj1 = 0 ;
27325 char * kwnames[] = {
27326 (char *) "self",(char *) "colText", NULL
27327 };
27328
27329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
27330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27331 if (!SWIG_IsOK(res1)) {
27332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27333 }
27334 arg1 = reinterpret_cast< wxListItem * >(argp1);
27335 {
27336 arg2 = &temp2;
27337 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27338 }
27339 {
27340 PyThreadState* __tstate = wxPyBeginAllowThreads();
27341 (arg1)->SetTextColour((wxColour const &)*arg2);
27342 wxPyEndAllowThreads(__tstate);
27343 if (PyErr_Occurred()) SWIG_fail;
27344 }
27345 resultobj = SWIG_Py_Void();
27346 return resultobj;
27347 fail:
27348 return NULL;
27349 }
27350
27351
27352 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27353 PyObject *resultobj = 0;
27354 wxListItem *arg1 = (wxListItem *) 0 ;
27355 wxColour *arg2 = 0 ;
27356 void *argp1 = 0 ;
27357 int res1 = 0 ;
27358 wxColour temp2 ;
27359 PyObject * obj0 = 0 ;
27360 PyObject * obj1 = 0 ;
27361 char * kwnames[] = {
27362 (char *) "self",(char *) "colBack", NULL
27363 };
27364
27365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27367 if (!SWIG_IsOK(res1)) {
27368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27369 }
27370 arg1 = reinterpret_cast< wxListItem * >(argp1);
27371 {
27372 arg2 = &temp2;
27373 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27374 }
27375 {
27376 PyThreadState* __tstate = wxPyBeginAllowThreads();
27377 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27378 wxPyEndAllowThreads(__tstate);
27379 if (PyErr_Occurred()) SWIG_fail;
27380 }
27381 resultobj = SWIG_Py_Void();
27382 return resultobj;
27383 fail:
27384 return NULL;
27385 }
27386
27387
27388 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27389 PyObject *resultobj = 0;
27390 wxListItem *arg1 = (wxListItem *) 0 ;
27391 wxFont *arg2 = 0 ;
27392 void *argp1 = 0 ;
27393 int res1 = 0 ;
27394 void *argp2 = 0 ;
27395 int res2 = 0 ;
27396 PyObject * obj0 = 0 ;
27397 PyObject * obj1 = 0 ;
27398 char * kwnames[] = {
27399 (char *) "self",(char *) "font", NULL
27400 };
27401
27402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27404 if (!SWIG_IsOK(res1)) {
27405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27406 }
27407 arg1 = reinterpret_cast< wxListItem * >(argp1);
27408 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27409 if (!SWIG_IsOK(res2)) {
27410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27411 }
27412 if (!argp2) {
27413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27414 }
27415 arg2 = reinterpret_cast< wxFont * >(argp2);
27416 {
27417 PyThreadState* __tstate = wxPyBeginAllowThreads();
27418 (arg1)->SetFont((wxFont const &)*arg2);
27419 wxPyEndAllowThreads(__tstate);
27420 if (PyErr_Occurred()) SWIG_fail;
27421 }
27422 resultobj = SWIG_Py_Void();
27423 return resultobj;
27424 fail:
27425 return NULL;
27426 }
27427
27428
27429 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27430 PyObject *resultobj = 0;
27431 wxListItem *arg1 = (wxListItem *) 0 ;
27432 long result;
27433 void *argp1 = 0 ;
27434 int res1 = 0 ;
27435 PyObject *swig_obj[1] ;
27436
27437 if (!args) SWIG_fail;
27438 swig_obj[0] = args;
27439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27440 if (!SWIG_IsOK(res1)) {
27441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27442 }
27443 arg1 = reinterpret_cast< wxListItem * >(argp1);
27444 {
27445 PyThreadState* __tstate = wxPyBeginAllowThreads();
27446 result = (long)(arg1)->GetMask();
27447 wxPyEndAllowThreads(__tstate);
27448 if (PyErr_Occurred()) SWIG_fail;
27449 }
27450 resultobj = SWIG_From_long(static_cast< long >(result));
27451 return resultobj;
27452 fail:
27453 return NULL;
27454 }
27455
27456
27457 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27458 PyObject *resultobj = 0;
27459 wxListItem *arg1 = (wxListItem *) 0 ;
27460 long result;
27461 void *argp1 = 0 ;
27462 int res1 = 0 ;
27463 PyObject *swig_obj[1] ;
27464
27465 if (!args) SWIG_fail;
27466 swig_obj[0] = args;
27467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27468 if (!SWIG_IsOK(res1)) {
27469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27470 }
27471 arg1 = reinterpret_cast< wxListItem * >(argp1);
27472 {
27473 PyThreadState* __tstate = wxPyBeginAllowThreads();
27474 result = (long)(arg1)->GetId();
27475 wxPyEndAllowThreads(__tstate);
27476 if (PyErr_Occurred()) SWIG_fail;
27477 }
27478 resultobj = SWIG_From_long(static_cast< long >(result));
27479 return resultobj;
27480 fail:
27481 return NULL;
27482 }
27483
27484
27485 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27486 PyObject *resultobj = 0;
27487 wxListItem *arg1 = (wxListItem *) 0 ;
27488 int result;
27489 void *argp1 = 0 ;
27490 int res1 = 0 ;
27491 PyObject *swig_obj[1] ;
27492
27493 if (!args) SWIG_fail;
27494 swig_obj[0] = args;
27495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27496 if (!SWIG_IsOK(res1)) {
27497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27498 }
27499 arg1 = reinterpret_cast< wxListItem * >(argp1);
27500 {
27501 PyThreadState* __tstate = wxPyBeginAllowThreads();
27502 result = (int)(arg1)->GetColumn();
27503 wxPyEndAllowThreads(__tstate);
27504 if (PyErr_Occurred()) SWIG_fail;
27505 }
27506 resultobj = SWIG_From_int(static_cast< int >(result));
27507 return resultobj;
27508 fail:
27509 return NULL;
27510 }
27511
27512
27513 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27514 PyObject *resultobj = 0;
27515 wxListItem *arg1 = (wxListItem *) 0 ;
27516 long result;
27517 void *argp1 = 0 ;
27518 int res1 = 0 ;
27519 PyObject *swig_obj[1] ;
27520
27521 if (!args) SWIG_fail;
27522 swig_obj[0] = args;
27523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27524 if (!SWIG_IsOK(res1)) {
27525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27526 }
27527 arg1 = reinterpret_cast< wxListItem * >(argp1);
27528 {
27529 PyThreadState* __tstate = wxPyBeginAllowThreads();
27530 result = (long)(arg1)->GetState();
27531 wxPyEndAllowThreads(__tstate);
27532 if (PyErr_Occurred()) SWIG_fail;
27533 }
27534 resultobj = SWIG_From_long(static_cast< long >(result));
27535 return resultobj;
27536 fail:
27537 return NULL;
27538 }
27539
27540
27541 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27542 PyObject *resultobj = 0;
27543 wxListItem *arg1 = (wxListItem *) 0 ;
27544 wxString *result = 0 ;
27545 void *argp1 = 0 ;
27546 int res1 = 0 ;
27547 PyObject *swig_obj[1] ;
27548
27549 if (!args) SWIG_fail;
27550 swig_obj[0] = args;
27551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27552 if (!SWIG_IsOK(res1)) {
27553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27554 }
27555 arg1 = reinterpret_cast< wxListItem * >(argp1);
27556 {
27557 PyThreadState* __tstate = wxPyBeginAllowThreads();
27558 {
27559 wxString const &_result_ref = (arg1)->GetText();
27560 result = (wxString *) &_result_ref;
27561 }
27562 wxPyEndAllowThreads(__tstate);
27563 if (PyErr_Occurred()) SWIG_fail;
27564 }
27565 {
27566 #if wxUSE_UNICODE
27567 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27568 #else
27569 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27570 #endif
27571 }
27572 return resultobj;
27573 fail:
27574 return NULL;
27575 }
27576
27577
27578 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27579 PyObject *resultobj = 0;
27580 wxListItem *arg1 = (wxListItem *) 0 ;
27581 int result;
27582 void *argp1 = 0 ;
27583 int res1 = 0 ;
27584 PyObject *swig_obj[1] ;
27585
27586 if (!args) SWIG_fail;
27587 swig_obj[0] = args;
27588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27589 if (!SWIG_IsOK(res1)) {
27590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27591 }
27592 arg1 = reinterpret_cast< wxListItem * >(argp1);
27593 {
27594 PyThreadState* __tstate = wxPyBeginAllowThreads();
27595 result = (int)(arg1)->GetImage();
27596 wxPyEndAllowThreads(__tstate);
27597 if (PyErr_Occurred()) SWIG_fail;
27598 }
27599 resultobj = SWIG_From_int(static_cast< int >(result));
27600 return resultobj;
27601 fail:
27602 return NULL;
27603 }
27604
27605
27606 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27607 PyObject *resultobj = 0;
27608 wxListItem *arg1 = (wxListItem *) 0 ;
27609 long result;
27610 void *argp1 = 0 ;
27611 int res1 = 0 ;
27612 PyObject *swig_obj[1] ;
27613
27614 if (!args) SWIG_fail;
27615 swig_obj[0] = args;
27616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27617 if (!SWIG_IsOK(res1)) {
27618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27619 }
27620 arg1 = reinterpret_cast< wxListItem * >(argp1);
27621 {
27622 PyThreadState* __tstate = wxPyBeginAllowThreads();
27623 result = (long)(arg1)->GetData();
27624 wxPyEndAllowThreads(__tstate);
27625 if (PyErr_Occurred()) SWIG_fail;
27626 }
27627 resultobj = SWIG_From_long(static_cast< long >(result));
27628 return resultobj;
27629 fail:
27630 return NULL;
27631 }
27632
27633
27634 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27635 PyObject *resultobj = 0;
27636 wxListItem *arg1 = (wxListItem *) 0 ;
27637 int result;
27638 void *argp1 = 0 ;
27639 int res1 = 0 ;
27640 PyObject *swig_obj[1] ;
27641
27642 if (!args) SWIG_fail;
27643 swig_obj[0] = args;
27644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27645 if (!SWIG_IsOK(res1)) {
27646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27647 }
27648 arg1 = reinterpret_cast< wxListItem * >(argp1);
27649 {
27650 PyThreadState* __tstate = wxPyBeginAllowThreads();
27651 result = (int)(arg1)->GetWidth();
27652 wxPyEndAllowThreads(__tstate);
27653 if (PyErr_Occurred()) SWIG_fail;
27654 }
27655 resultobj = SWIG_From_int(static_cast< int >(result));
27656 return resultobj;
27657 fail:
27658 return NULL;
27659 }
27660
27661
27662 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27663 PyObject *resultobj = 0;
27664 wxListItem *arg1 = (wxListItem *) 0 ;
27665 wxListColumnFormat result;
27666 void *argp1 = 0 ;
27667 int res1 = 0 ;
27668 PyObject *swig_obj[1] ;
27669
27670 if (!args) SWIG_fail;
27671 swig_obj[0] = args;
27672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27673 if (!SWIG_IsOK(res1)) {
27674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27675 }
27676 arg1 = reinterpret_cast< wxListItem * >(argp1);
27677 {
27678 PyThreadState* __tstate = wxPyBeginAllowThreads();
27679 result = (wxListColumnFormat)(arg1)->GetAlign();
27680 wxPyEndAllowThreads(__tstate);
27681 if (PyErr_Occurred()) SWIG_fail;
27682 }
27683 resultobj = SWIG_From_int(static_cast< int >(result));
27684 return resultobj;
27685 fail:
27686 return NULL;
27687 }
27688
27689
27690 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27691 PyObject *resultobj = 0;
27692 wxListItem *arg1 = (wxListItem *) 0 ;
27693 wxListItemAttr *result = 0 ;
27694 void *argp1 = 0 ;
27695 int res1 = 0 ;
27696 PyObject *swig_obj[1] ;
27697
27698 if (!args) SWIG_fail;
27699 swig_obj[0] = args;
27700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27701 if (!SWIG_IsOK(res1)) {
27702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27703 }
27704 arg1 = reinterpret_cast< wxListItem * >(argp1);
27705 {
27706 PyThreadState* __tstate = wxPyBeginAllowThreads();
27707 result = (wxListItemAttr *)(arg1)->GetAttributes();
27708 wxPyEndAllowThreads(__tstate);
27709 if (PyErr_Occurred()) SWIG_fail;
27710 }
27711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27712 return resultobj;
27713 fail:
27714 return NULL;
27715 }
27716
27717
27718 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27719 PyObject *resultobj = 0;
27720 wxListItem *arg1 = (wxListItem *) 0 ;
27721 bool result;
27722 void *argp1 = 0 ;
27723 int res1 = 0 ;
27724 PyObject *swig_obj[1] ;
27725
27726 if (!args) SWIG_fail;
27727 swig_obj[0] = args;
27728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27729 if (!SWIG_IsOK(res1)) {
27730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27731 }
27732 arg1 = reinterpret_cast< wxListItem * >(argp1);
27733 {
27734 PyThreadState* __tstate = wxPyBeginAllowThreads();
27735 result = (bool)(arg1)->HasAttributes();
27736 wxPyEndAllowThreads(__tstate);
27737 if (PyErr_Occurred()) SWIG_fail;
27738 }
27739 {
27740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27741 }
27742 return resultobj;
27743 fail:
27744 return NULL;
27745 }
27746
27747
27748 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27749 PyObject *resultobj = 0;
27750 wxListItem *arg1 = (wxListItem *) 0 ;
27751 wxColour result;
27752 void *argp1 = 0 ;
27753 int res1 = 0 ;
27754 PyObject *swig_obj[1] ;
27755
27756 if (!args) SWIG_fail;
27757 swig_obj[0] = args;
27758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27759 if (!SWIG_IsOK(res1)) {
27760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27761 }
27762 arg1 = reinterpret_cast< wxListItem * >(argp1);
27763 {
27764 PyThreadState* __tstate = wxPyBeginAllowThreads();
27765 result = ((wxListItem const *)arg1)->GetTextColour();
27766 wxPyEndAllowThreads(__tstate);
27767 if (PyErr_Occurred()) SWIG_fail;
27768 }
27769 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27770 return resultobj;
27771 fail:
27772 return NULL;
27773 }
27774
27775
27776 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27777 PyObject *resultobj = 0;
27778 wxListItem *arg1 = (wxListItem *) 0 ;
27779 wxColour result;
27780 void *argp1 = 0 ;
27781 int res1 = 0 ;
27782 PyObject *swig_obj[1] ;
27783
27784 if (!args) SWIG_fail;
27785 swig_obj[0] = args;
27786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27787 if (!SWIG_IsOK(res1)) {
27788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27789 }
27790 arg1 = reinterpret_cast< wxListItem * >(argp1);
27791 {
27792 PyThreadState* __tstate = wxPyBeginAllowThreads();
27793 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27794 wxPyEndAllowThreads(__tstate);
27795 if (PyErr_Occurred()) SWIG_fail;
27796 }
27797 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27798 return resultobj;
27799 fail:
27800 return NULL;
27801 }
27802
27803
27804 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27805 PyObject *resultobj = 0;
27806 wxListItem *arg1 = (wxListItem *) 0 ;
27807 wxFont result;
27808 void *argp1 = 0 ;
27809 int res1 = 0 ;
27810 PyObject *swig_obj[1] ;
27811
27812 if (!args) SWIG_fail;
27813 swig_obj[0] = args;
27814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27815 if (!SWIG_IsOK(res1)) {
27816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27817 }
27818 arg1 = reinterpret_cast< wxListItem * >(argp1);
27819 {
27820 PyThreadState* __tstate = wxPyBeginAllowThreads();
27821 result = ((wxListItem const *)arg1)->GetFont();
27822 wxPyEndAllowThreads(__tstate);
27823 if (PyErr_Occurred()) SWIG_fail;
27824 }
27825 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27826 return resultobj;
27827 fail:
27828 return NULL;
27829 }
27830
27831
27832 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27833 PyObject *resultobj = 0;
27834 wxListItem *arg1 = (wxListItem *) 0 ;
27835 long arg2 ;
27836 void *argp1 = 0 ;
27837 int res1 = 0 ;
27838 long val2 ;
27839 int ecode2 = 0 ;
27840 PyObject *swig_obj[2] ;
27841
27842 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27844 if (!SWIG_IsOK(res1)) {
27845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27846 }
27847 arg1 = reinterpret_cast< wxListItem * >(argp1);
27848 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27849 if (!SWIG_IsOK(ecode2)) {
27850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27851 }
27852 arg2 = static_cast< long >(val2);
27853 if (arg1) (arg1)->m_mask = arg2;
27854
27855 resultobj = SWIG_Py_Void();
27856 return resultobj;
27857 fail:
27858 return NULL;
27859 }
27860
27861
27862 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27863 PyObject *resultobj = 0;
27864 wxListItem *arg1 = (wxListItem *) 0 ;
27865 long result;
27866 void *argp1 = 0 ;
27867 int res1 = 0 ;
27868 PyObject *swig_obj[1] ;
27869
27870 if (!args) SWIG_fail;
27871 swig_obj[0] = args;
27872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27873 if (!SWIG_IsOK(res1)) {
27874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27875 }
27876 arg1 = reinterpret_cast< wxListItem * >(argp1);
27877 result = (long) ((arg1)->m_mask);
27878 resultobj = SWIG_From_long(static_cast< long >(result));
27879 return resultobj;
27880 fail:
27881 return NULL;
27882 }
27883
27884
27885 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27886 PyObject *resultobj = 0;
27887 wxListItem *arg1 = (wxListItem *) 0 ;
27888 long arg2 ;
27889 void *argp1 = 0 ;
27890 int res1 = 0 ;
27891 long val2 ;
27892 int ecode2 = 0 ;
27893 PyObject *swig_obj[2] ;
27894
27895 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27897 if (!SWIG_IsOK(res1)) {
27898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27899 }
27900 arg1 = reinterpret_cast< wxListItem * >(argp1);
27901 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27902 if (!SWIG_IsOK(ecode2)) {
27903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27904 }
27905 arg2 = static_cast< long >(val2);
27906 if (arg1) (arg1)->m_itemId = arg2;
27907
27908 resultobj = SWIG_Py_Void();
27909 return resultobj;
27910 fail:
27911 return NULL;
27912 }
27913
27914
27915 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27916 PyObject *resultobj = 0;
27917 wxListItem *arg1 = (wxListItem *) 0 ;
27918 long result;
27919 void *argp1 = 0 ;
27920 int res1 = 0 ;
27921 PyObject *swig_obj[1] ;
27922
27923 if (!args) SWIG_fail;
27924 swig_obj[0] = args;
27925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27926 if (!SWIG_IsOK(res1)) {
27927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27928 }
27929 arg1 = reinterpret_cast< wxListItem * >(argp1);
27930 result = (long) ((arg1)->m_itemId);
27931 resultobj = SWIG_From_long(static_cast< long >(result));
27932 return resultobj;
27933 fail:
27934 return NULL;
27935 }
27936
27937
27938 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27939 PyObject *resultobj = 0;
27940 wxListItem *arg1 = (wxListItem *) 0 ;
27941 int arg2 ;
27942 void *argp1 = 0 ;
27943 int res1 = 0 ;
27944 int val2 ;
27945 int ecode2 = 0 ;
27946 PyObject *swig_obj[2] ;
27947
27948 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27950 if (!SWIG_IsOK(res1)) {
27951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27952 }
27953 arg1 = reinterpret_cast< wxListItem * >(argp1);
27954 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27955 if (!SWIG_IsOK(ecode2)) {
27956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27957 }
27958 arg2 = static_cast< int >(val2);
27959 if (arg1) (arg1)->m_col = arg2;
27960
27961 resultobj = SWIG_Py_Void();
27962 return resultobj;
27963 fail:
27964 return NULL;
27965 }
27966
27967
27968 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27969 PyObject *resultobj = 0;
27970 wxListItem *arg1 = (wxListItem *) 0 ;
27971 int result;
27972 void *argp1 = 0 ;
27973 int res1 = 0 ;
27974 PyObject *swig_obj[1] ;
27975
27976 if (!args) SWIG_fail;
27977 swig_obj[0] = args;
27978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27979 if (!SWIG_IsOK(res1)) {
27980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27981 }
27982 arg1 = reinterpret_cast< wxListItem * >(argp1);
27983 result = (int) ((arg1)->m_col);
27984 resultobj = SWIG_From_int(static_cast< int >(result));
27985 return resultobj;
27986 fail:
27987 return NULL;
27988 }
27989
27990
27991 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27992 PyObject *resultobj = 0;
27993 wxListItem *arg1 = (wxListItem *) 0 ;
27994 long arg2 ;
27995 void *argp1 = 0 ;
27996 int res1 = 0 ;
27997 long val2 ;
27998 int ecode2 = 0 ;
27999 PyObject *swig_obj[2] ;
28000
28001 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
28002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28003 if (!SWIG_IsOK(res1)) {
28004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28005 }
28006 arg1 = reinterpret_cast< wxListItem * >(argp1);
28007 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28008 if (!SWIG_IsOK(ecode2)) {
28009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
28010 }
28011 arg2 = static_cast< long >(val2);
28012 if (arg1) (arg1)->m_state = arg2;
28013
28014 resultobj = SWIG_Py_Void();
28015 return resultobj;
28016 fail:
28017 return NULL;
28018 }
28019
28020
28021 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28022 PyObject *resultobj = 0;
28023 wxListItem *arg1 = (wxListItem *) 0 ;
28024 long result;
28025 void *argp1 = 0 ;
28026 int res1 = 0 ;
28027 PyObject *swig_obj[1] ;
28028
28029 if (!args) SWIG_fail;
28030 swig_obj[0] = args;
28031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28032 if (!SWIG_IsOK(res1)) {
28033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28034 }
28035 arg1 = reinterpret_cast< wxListItem * >(argp1);
28036 result = (long) ((arg1)->m_state);
28037 resultobj = SWIG_From_long(static_cast< long >(result));
28038 return resultobj;
28039 fail:
28040 return NULL;
28041 }
28042
28043
28044 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28045 PyObject *resultobj = 0;
28046 wxListItem *arg1 = (wxListItem *) 0 ;
28047 long arg2 ;
28048 void *argp1 = 0 ;
28049 int res1 = 0 ;
28050 long val2 ;
28051 int ecode2 = 0 ;
28052 PyObject *swig_obj[2] ;
28053
28054 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
28055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28056 if (!SWIG_IsOK(res1)) {
28057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28058 }
28059 arg1 = reinterpret_cast< wxListItem * >(argp1);
28060 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28061 if (!SWIG_IsOK(ecode2)) {
28062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
28063 }
28064 arg2 = static_cast< long >(val2);
28065 if (arg1) (arg1)->m_stateMask = arg2;
28066
28067 resultobj = SWIG_Py_Void();
28068 return resultobj;
28069 fail:
28070 return NULL;
28071 }
28072
28073
28074 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28075 PyObject *resultobj = 0;
28076 wxListItem *arg1 = (wxListItem *) 0 ;
28077 long result;
28078 void *argp1 = 0 ;
28079 int res1 = 0 ;
28080 PyObject *swig_obj[1] ;
28081
28082 if (!args) SWIG_fail;
28083 swig_obj[0] = args;
28084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28085 if (!SWIG_IsOK(res1)) {
28086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28087 }
28088 arg1 = reinterpret_cast< wxListItem * >(argp1);
28089 result = (long) ((arg1)->m_stateMask);
28090 resultobj = SWIG_From_long(static_cast< long >(result));
28091 return resultobj;
28092 fail:
28093 return NULL;
28094 }
28095
28096
28097 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28098 PyObject *resultobj = 0;
28099 wxListItem *arg1 = (wxListItem *) 0 ;
28100 wxString *arg2 = (wxString *) 0 ;
28101 void *argp1 = 0 ;
28102 int res1 = 0 ;
28103 bool temp2 = false ;
28104 PyObject *swig_obj[2] ;
28105
28106 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
28107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28108 if (!SWIG_IsOK(res1)) {
28109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28110 }
28111 arg1 = reinterpret_cast< wxListItem * >(argp1);
28112 {
28113 arg2 = wxString_in_helper(swig_obj[1]);
28114 if (arg2 == NULL) SWIG_fail;
28115 temp2 = true;
28116 }
28117 if (arg1) (arg1)->m_text = *arg2;
28118
28119 resultobj = SWIG_Py_Void();
28120 {
28121 if (temp2)
28122 delete arg2;
28123 }
28124 return resultobj;
28125 fail:
28126 {
28127 if (temp2)
28128 delete arg2;
28129 }
28130 return NULL;
28131 }
28132
28133
28134 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28135 PyObject *resultobj = 0;
28136 wxListItem *arg1 = (wxListItem *) 0 ;
28137 wxString *result = 0 ;
28138 void *argp1 = 0 ;
28139 int res1 = 0 ;
28140 PyObject *swig_obj[1] ;
28141
28142 if (!args) SWIG_fail;
28143 swig_obj[0] = args;
28144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28145 if (!SWIG_IsOK(res1)) {
28146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28147 }
28148 arg1 = reinterpret_cast< wxListItem * >(argp1);
28149 result = (wxString *)& ((arg1)->m_text);
28150 {
28151 #if wxUSE_UNICODE
28152 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28153 #else
28154 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28155 #endif
28156 }
28157 return resultobj;
28158 fail:
28159 return NULL;
28160 }
28161
28162
28163 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28164 PyObject *resultobj = 0;
28165 wxListItem *arg1 = (wxListItem *) 0 ;
28166 int arg2 ;
28167 void *argp1 = 0 ;
28168 int res1 = 0 ;
28169 int val2 ;
28170 int ecode2 = 0 ;
28171 PyObject *swig_obj[2] ;
28172
28173 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
28174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28175 if (!SWIG_IsOK(res1)) {
28176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28177 }
28178 arg1 = reinterpret_cast< wxListItem * >(argp1);
28179 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28180 if (!SWIG_IsOK(ecode2)) {
28181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
28182 }
28183 arg2 = static_cast< int >(val2);
28184 if (arg1) (arg1)->m_image = arg2;
28185
28186 resultobj = SWIG_Py_Void();
28187 return resultobj;
28188 fail:
28189 return NULL;
28190 }
28191
28192
28193 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28194 PyObject *resultobj = 0;
28195 wxListItem *arg1 = (wxListItem *) 0 ;
28196 int result;
28197 void *argp1 = 0 ;
28198 int res1 = 0 ;
28199 PyObject *swig_obj[1] ;
28200
28201 if (!args) SWIG_fail;
28202 swig_obj[0] = args;
28203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28204 if (!SWIG_IsOK(res1)) {
28205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28206 }
28207 arg1 = reinterpret_cast< wxListItem * >(argp1);
28208 result = (int) ((arg1)->m_image);
28209 resultobj = SWIG_From_int(static_cast< int >(result));
28210 return resultobj;
28211 fail:
28212 return NULL;
28213 }
28214
28215
28216 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28217 PyObject *resultobj = 0;
28218 wxListItem *arg1 = (wxListItem *) 0 ;
28219 long arg2 ;
28220 void *argp1 = 0 ;
28221 int res1 = 0 ;
28222 long val2 ;
28223 int ecode2 = 0 ;
28224 PyObject *swig_obj[2] ;
28225
28226 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
28227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28228 if (!SWIG_IsOK(res1)) {
28229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28230 }
28231 arg1 = reinterpret_cast< wxListItem * >(argp1);
28232 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28233 if (!SWIG_IsOK(ecode2)) {
28234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
28235 }
28236 arg2 = static_cast< long >(val2);
28237 if (arg1) (arg1)->m_data = arg2;
28238
28239 resultobj = SWIG_Py_Void();
28240 return resultobj;
28241 fail:
28242 return NULL;
28243 }
28244
28245
28246 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28247 PyObject *resultobj = 0;
28248 wxListItem *arg1 = (wxListItem *) 0 ;
28249 long result;
28250 void *argp1 = 0 ;
28251 int res1 = 0 ;
28252 PyObject *swig_obj[1] ;
28253
28254 if (!args) SWIG_fail;
28255 swig_obj[0] = args;
28256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28257 if (!SWIG_IsOK(res1)) {
28258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28259 }
28260 arg1 = reinterpret_cast< wxListItem * >(argp1);
28261 result = (long) ((arg1)->m_data);
28262 resultobj = SWIG_From_long(static_cast< long >(result));
28263 return resultobj;
28264 fail:
28265 return NULL;
28266 }
28267
28268
28269 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28270 PyObject *resultobj = 0;
28271 wxListItem *arg1 = (wxListItem *) 0 ;
28272 int arg2 ;
28273 void *argp1 = 0 ;
28274 int res1 = 0 ;
28275 int val2 ;
28276 int ecode2 = 0 ;
28277 PyObject *swig_obj[2] ;
28278
28279 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
28280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28281 if (!SWIG_IsOK(res1)) {
28282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28283 }
28284 arg1 = reinterpret_cast< wxListItem * >(argp1);
28285 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28286 if (!SWIG_IsOK(ecode2)) {
28287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
28288 }
28289 arg2 = static_cast< int >(val2);
28290 if (arg1) (arg1)->m_format = arg2;
28291
28292 resultobj = SWIG_Py_Void();
28293 return resultobj;
28294 fail:
28295 return NULL;
28296 }
28297
28298
28299 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28300 PyObject *resultobj = 0;
28301 wxListItem *arg1 = (wxListItem *) 0 ;
28302 int result;
28303 void *argp1 = 0 ;
28304 int res1 = 0 ;
28305 PyObject *swig_obj[1] ;
28306
28307 if (!args) SWIG_fail;
28308 swig_obj[0] = args;
28309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28310 if (!SWIG_IsOK(res1)) {
28311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28312 }
28313 arg1 = reinterpret_cast< wxListItem * >(argp1);
28314 result = (int) ((arg1)->m_format);
28315 resultobj = SWIG_From_int(static_cast< int >(result));
28316 return resultobj;
28317 fail:
28318 return NULL;
28319 }
28320
28321
28322 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28323 PyObject *resultobj = 0;
28324 wxListItem *arg1 = (wxListItem *) 0 ;
28325 int arg2 ;
28326 void *argp1 = 0 ;
28327 int res1 = 0 ;
28328 int val2 ;
28329 int ecode2 = 0 ;
28330 PyObject *swig_obj[2] ;
28331
28332 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28334 if (!SWIG_IsOK(res1)) {
28335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28336 }
28337 arg1 = reinterpret_cast< wxListItem * >(argp1);
28338 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28339 if (!SWIG_IsOK(ecode2)) {
28340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28341 }
28342 arg2 = static_cast< int >(val2);
28343 if (arg1) (arg1)->m_width = arg2;
28344
28345 resultobj = SWIG_Py_Void();
28346 return resultobj;
28347 fail:
28348 return NULL;
28349 }
28350
28351
28352 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28353 PyObject *resultobj = 0;
28354 wxListItem *arg1 = (wxListItem *) 0 ;
28355 int result;
28356 void *argp1 = 0 ;
28357 int res1 = 0 ;
28358 PyObject *swig_obj[1] ;
28359
28360 if (!args) SWIG_fail;
28361 swig_obj[0] = args;
28362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28363 if (!SWIG_IsOK(res1)) {
28364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28365 }
28366 arg1 = reinterpret_cast< wxListItem * >(argp1);
28367 result = (int) ((arg1)->m_width);
28368 resultobj = SWIG_From_int(static_cast< int >(result));
28369 return resultobj;
28370 fail:
28371 return NULL;
28372 }
28373
28374
28375 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28376 PyObject *obj;
28377 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28378 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28379 return SWIG_Py_Void();
28380 }
28381
28382 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28383 return SWIG_Python_InitShadowInstance(args);
28384 }
28385
28386 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28387 PyObject *resultobj = 0;
28388 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28389 int arg2 = (int) 0 ;
28390 wxListEvent *result = 0 ;
28391 int val1 ;
28392 int ecode1 = 0 ;
28393 int val2 ;
28394 int ecode2 = 0 ;
28395 PyObject * obj0 = 0 ;
28396 PyObject * obj1 = 0 ;
28397 char * kwnames[] = {
28398 (char *) "commandType",(char *) "id", NULL
28399 };
28400
28401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28402 if (obj0) {
28403 ecode1 = SWIG_AsVal_int(obj0, &val1);
28404 if (!SWIG_IsOK(ecode1)) {
28405 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28406 }
28407 arg1 = static_cast< wxEventType >(val1);
28408 }
28409 if (obj1) {
28410 ecode2 = SWIG_AsVal_int(obj1, &val2);
28411 if (!SWIG_IsOK(ecode2)) {
28412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28413 }
28414 arg2 = static_cast< int >(val2);
28415 }
28416 {
28417 PyThreadState* __tstate = wxPyBeginAllowThreads();
28418 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28419 wxPyEndAllowThreads(__tstate);
28420 if (PyErr_Occurred()) SWIG_fail;
28421 }
28422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28423 return resultobj;
28424 fail:
28425 return NULL;
28426 }
28427
28428
28429 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28430 PyObject *resultobj = 0;
28431 wxListEvent *arg1 = (wxListEvent *) 0 ;
28432 int arg2 ;
28433 void *argp1 = 0 ;
28434 int res1 = 0 ;
28435 int val2 ;
28436 int ecode2 = 0 ;
28437 PyObject *swig_obj[2] ;
28438
28439 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28441 if (!SWIG_IsOK(res1)) {
28442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28443 }
28444 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28445 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28446 if (!SWIG_IsOK(ecode2)) {
28447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28448 }
28449 arg2 = static_cast< int >(val2);
28450 if (arg1) (arg1)->m_code = arg2;
28451
28452 resultobj = SWIG_Py_Void();
28453 return resultobj;
28454 fail:
28455 return NULL;
28456 }
28457
28458
28459 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28460 PyObject *resultobj = 0;
28461 wxListEvent *arg1 = (wxListEvent *) 0 ;
28462 int result;
28463 void *argp1 = 0 ;
28464 int res1 = 0 ;
28465 PyObject *swig_obj[1] ;
28466
28467 if (!args) SWIG_fail;
28468 swig_obj[0] = args;
28469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28470 if (!SWIG_IsOK(res1)) {
28471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28472 }
28473 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28474 result = (int) ((arg1)->m_code);
28475 resultobj = SWIG_From_int(static_cast< int >(result));
28476 return resultobj;
28477 fail:
28478 return NULL;
28479 }
28480
28481
28482 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28483 PyObject *resultobj = 0;
28484 wxListEvent *arg1 = (wxListEvent *) 0 ;
28485 long arg2 ;
28486 void *argp1 = 0 ;
28487 int res1 = 0 ;
28488 long val2 ;
28489 int ecode2 = 0 ;
28490 PyObject *swig_obj[2] ;
28491
28492 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28494 if (!SWIG_IsOK(res1)) {
28495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28496 }
28497 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28498 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28499 if (!SWIG_IsOK(ecode2)) {
28500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28501 }
28502 arg2 = static_cast< long >(val2);
28503 if (arg1) (arg1)->m_oldItemIndex = arg2;
28504
28505 resultobj = SWIG_Py_Void();
28506 return resultobj;
28507 fail:
28508 return NULL;
28509 }
28510
28511
28512 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28513 PyObject *resultobj = 0;
28514 wxListEvent *arg1 = (wxListEvent *) 0 ;
28515 long result;
28516 void *argp1 = 0 ;
28517 int res1 = 0 ;
28518 PyObject *swig_obj[1] ;
28519
28520 if (!args) SWIG_fail;
28521 swig_obj[0] = args;
28522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28523 if (!SWIG_IsOK(res1)) {
28524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28525 }
28526 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28527 result = (long) ((arg1)->m_oldItemIndex);
28528 resultobj = SWIG_From_long(static_cast< long >(result));
28529 return resultobj;
28530 fail:
28531 return NULL;
28532 }
28533
28534
28535 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28536 PyObject *resultobj = 0;
28537 wxListEvent *arg1 = (wxListEvent *) 0 ;
28538 long arg2 ;
28539 void *argp1 = 0 ;
28540 int res1 = 0 ;
28541 long val2 ;
28542 int ecode2 = 0 ;
28543 PyObject *swig_obj[2] ;
28544
28545 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28547 if (!SWIG_IsOK(res1)) {
28548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28549 }
28550 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28551 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28552 if (!SWIG_IsOK(ecode2)) {
28553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28554 }
28555 arg2 = static_cast< long >(val2);
28556 if (arg1) (arg1)->m_itemIndex = arg2;
28557
28558 resultobj = SWIG_Py_Void();
28559 return resultobj;
28560 fail:
28561 return NULL;
28562 }
28563
28564
28565 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28566 PyObject *resultobj = 0;
28567 wxListEvent *arg1 = (wxListEvent *) 0 ;
28568 long result;
28569 void *argp1 = 0 ;
28570 int res1 = 0 ;
28571 PyObject *swig_obj[1] ;
28572
28573 if (!args) SWIG_fail;
28574 swig_obj[0] = args;
28575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28576 if (!SWIG_IsOK(res1)) {
28577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28578 }
28579 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28580 result = (long) ((arg1)->m_itemIndex);
28581 resultobj = SWIG_From_long(static_cast< long >(result));
28582 return resultobj;
28583 fail:
28584 return NULL;
28585 }
28586
28587
28588 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28589 PyObject *resultobj = 0;
28590 wxListEvent *arg1 = (wxListEvent *) 0 ;
28591 int arg2 ;
28592 void *argp1 = 0 ;
28593 int res1 = 0 ;
28594 int val2 ;
28595 int ecode2 = 0 ;
28596 PyObject *swig_obj[2] ;
28597
28598 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28600 if (!SWIG_IsOK(res1)) {
28601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28602 }
28603 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28604 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28605 if (!SWIG_IsOK(ecode2)) {
28606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28607 }
28608 arg2 = static_cast< int >(val2);
28609 if (arg1) (arg1)->m_col = arg2;
28610
28611 resultobj = SWIG_Py_Void();
28612 return resultobj;
28613 fail:
28614 return NULL;
28615 }
28616
28617
28618 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28619 PyObject *resultobj = 0;
28620 wxListEvent *arg1 = (wxListEvent *) 0 ;
28621 int result;
28622 void *argp1 = 0 ;
28623 int res1 = 0 ;
28624 PyObject *swig_obj[1] ;
28625
28626 if (!args) SWIG_fail;
28627 swig_obj[0] = args;
28628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28629 if (!SWIG_IsOK(res1)) {
28630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28631 }
28632 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28633 result = (int) ((arg1)->m_col);
28634 resultobj = SWIG_From_int(static_cast< int >(result));
28635 return resultobj;
28636 fail:
28637 return NULL;
28638 }
28639
28640
28641 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28642 PyObject *resultobj = 0;
28643 wxListEvent *arg1 = (wxListEvent *) 0 ;
28644 wxPoint *arg2 = (wxPoint *) 0 ;
28645 void *argp1 = 0 ;
28646 int res1 = 0 ;
28647 void *argp2 = 0 ;
28648 int res2 = 0 ;
28649 PyObject *swig_obj[2] ;
28650
28651 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28653 if (!SWIG_IsOK(res1)) {
28654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28655 }
28656 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28657 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28658 if (!SWIG_IsOK(res2)) {
28659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28660 }
28661 arg2 = reinterpret_cast< wxPoint * >(argp2);
28662 if (arg1) (arg1)->m_pointDrag = *arg2;
28663
28664 resultobj = SWIG_Py_Void();
28665 return resultobj;
28666 fail:
28667 return NULL;
28668 }
28669
28670
28671 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28672 PyObject *resultobj = 0;
28673 wxListEvent *arg1 = (wxListEvent *) 0 ;
28674 wxPoint *result = 0 ;
28675 void *argp1 = 0 ;
28676 int res1 = 0 ;
28677 PyObject *swig_obj[1] ;
28678
28679 if (!args) SWIG_fail;
28680 swig_obj[0] = args;
28681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28682 if (!SWIG_IsOK(res1)) {
28683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28684 }
28685 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28686 result = (wxPoint *)& ((arg1)->m_pointDrag);
28687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28688 return resultobj;
28689 fail:
28690 return NULL;
28691 }
28692
28693
28694 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28695 PyObject *resultobj = 0;
28696 wxListEvent *arg1 = (wxListEvent *) 0 ;
28697 wxListItem *result = 0 ;
28698 void *argp1 = 0 ;
28699 int res1 = 0 ;
28700 PyObject *swig_obj[1] ;
28701
28702 if (!args) SWIG_fail;
28703 swig_obj[0] = args;
28704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28705 if (!SWIG_IsOK(res1)) {
28706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28707 }
28708 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28709 result = (wxListItem *)& ((arg1)->m_item);
28710 {
28711 resultobj = wxPyMake_wxObject(result, 0);
28712 }
28713 return resultobj;
28714 fail:
28715 return NULL;
28716 }
28717
28718
28719 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28720 PyObject *resultobj = 0;
28721 wxListEvent *arg1 = (wxListEvent *) 0 ;
28722 int result;
28723 void *argp1 = 0 ;
28724 int res1 = 0 ;
28725 PyObject *swig_obj[1] ;
28726
28727 if (!args) SWIG_fail;
28728 swig_obj[0] = args;
28729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28730 if (!SWIG_IsOK(res1)) {
28731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28732 }
28733 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28734 {
28735 PyThreadState* __tstate = wxPyBeginAllowThreads();
28736 result = (int)(arg1)->GetKeyCode();
28737 wxPyEndAllowThreads(__tstate);
28738 if (PyErr_Occurred()) SWIG_fail;
28739 }
28740 resultobj = SWIG_From_int(static_cast< int >(result));
28741 return resultobj;
28742 fail:
28743 return NULL;
28744 }
28745
28746
28747 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28748 PyObject *resultobj = 0;
28749 wxListEvent *arg1 = (wxListEvent *) 0 ;
28750 long result;
28751 void *argp1 = 0 ;
28752 int res1 = 0 ;
28753 PyObject *swig_obj[1] ;
28754
28755 if (!args) SWIG_fail;
28756 swig_obj[0] = args;
28757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28758 if (!SWIG_IsOK(res1)) {
28759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28760 }
28761 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28762 {
28763 PyThreadState* __tstate = wxPyBeginAllowThreads();
28764 result = (long)(arg1)->GetIndex();
28765 wxPyEndAllowThreads(__tstate);
28766 if (PyErr_Occurred()) SWIG_fail;
28767 }
28768 resultobj = SWIG_From_long(static_cast< long >(result));
28769 return resultobj;
28770 fail:
28771 return NULL;
28772 }
28773
28774
28775 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28776 PyObject *resultobj = 0;
28777 wxListEvent *arg1 = (wxListEvent *) 0 ;
28778 int result;
28779 void *argp1 = 0 ;
28780 int res1 = 0 ;
28781 PyObject *swig_obj[1] ;
28782
28783 if (!args) SWIG_fail;
28784 swig_obj[0] = args;
28785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28786 if (!SWIG_IsOK(res1)) {
28787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28788 }
28789 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28790 {
28791 PyThreadState* __tstate = wxPyBeginAllowThreads();
28792 result = (int)(arg1)->GetColumn();
28793 wxPyEndAllowThreads(__tstate);
28794 if (PyErr_Occurred()) SWIG_fail;
28795 }
28796 resultobj = SWIG_From_int(static_cast< int >(result));
28797 return resultobj;
28798 fail:
28799 return NULL;
28800 }
28801
28802
28803 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28804 PyObject *resultobj = 0;
28805 wxListEvent *arg1 = (wxListEvent *) 0 ;
28806 wxPoint result;
28807 void *argp1 = 0 ;
28808 int res1 = 0 ;
28809 PyObject *swig_obj[1] ;
28810
28811 if (!args) SWIG_fail;
28812 swig_obj[0] = args;
28813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28814 if (!SWIG_IsOK(res1)) {
28815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28816 }
28817 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28818 {
28819 PyThreadState* __tstate = wxPyBeginAllowThreads();
28820 result = (arg1)->GetPoint();
28821 wxPyEndAllowThreads(__tstate);
28822 if (PyErr_Occurred()) SWIG_fail;
28823 }
28824 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28825 return resultobj;
28826 fail:
28827 return NULL;
28828 }
28829
28830
28831 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28832 PyObject *resultobj = 0;
28833 wxListEvent *arg1 = (wxListEvent *) 0 ;
28834 wxString *result = 0 ;
28835 void *argp1 = 0 ;
28836 int res1 = 0 ;
28837 PyObject *swig_obj[1] ;
28838
28839 if (!args) SWIG_fail;
28840 swig_obj[0] = args;
28841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28842 if (!SWIG_IsOK(res1)) {
28843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28844 }
28845 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28846 {
28847 PyThreadState* __tstate = wxPyBeginAllowThreads();
28848 {
28849 wxString const &_result_ref = (arg1)->GetLabel();
28850 result = (wxString *) &_result_ref;
28851 }
28852 wxPyEndAllowThreads(__tstate);
28853 if (PyErr_Occurred()) SWIG_fail;
28854 }
28855 {
28856 #if wxUSE_UNICODE
28857 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28858 #else
28859 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28860 #endif
28861 }
28862 return resultobj;
28863 fail:
28864 return NULL;
28865 }
28866
28867
28868 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28869 PyObject *resultobj = 0;
28870 wxListEvent *arg1 = (wxListEvent *) 0 ;
28871 wxString *result = 0 ;
28872 void *argp1 = 0 ;
28873 int res1 = 0 ;
28874 PyObject *swig_obj[1] ;
28875
28876 if (!args) SWIG_fail;
28877 swig_obj[0] = args;
28878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28879 if (!SWIG_IsOK(res1)) {
28880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28881 }
28882 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28883 {
28884 PyThreadState* __tstate = wxPyBeginAllowThreads();
28885 {
28886 wxString const &_result_ref = (arg1)->GetText();
28887 result = (wxString *) &_result_ref;
28888 }
28889 wxPyEndAllowThreads(__tstate);
28890 if (PyErr_Occurred()) SWIG_fail;
28891 }
28892 {
28893 #if wxUSE_UNICODE
28894 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28895 #else
28896 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28897 #endif
28898 }
28899 return resultobj;
28900 fail:
28901 return NULL;
28902 }
28903
28904
28905 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28906 PyObject *resultobj = 0;
28907 wxListEvent *arg1 = (wxListEvent *) 0 ;
28908 int result;
28909 void *argp1 = 0 ;
28910 int res1 = 0 ;
28911 PyObject *swig_obj[1] ;
28912
28913 if (!args) SWIG_fail;
28914 swig_obj[0] = args;
28915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28916 if (!SWIG_IsOK(res1)) {
28917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28918 }
28919 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28920 {
28921 PyThreadState* __tstate = wxPyBeginAllowThreads();
28922 result = (int)(arg1)->GetImage();
28923 wxPyEndAllowThreads(__tstate);
28924 if (PyErr_Occurred()) SWIG_fail;
28925 }
28926 resultobj = SWIG_From_int(static_cast< int >(result));
28927 return resultobj;
28928 fail:
28929 return NULL;
28930 }
28931
28932
28933 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28934 PyObject *resultobj = 0;
28935 wxListEvent *arg1 = (wxListEvent *) 0 ;
28936 long result;
28937 void *argp1 = 0 ;
28938 int res1 = 0 ;
28939 PyObject *swig_obj[1] ;
28940
28941 if (!args) SWIG_fail;
28942 swig_obj[0] = args;
28943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28944 if (!SWIG_IsOK(res1)) {
28945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28946 }
28947 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28948 {
28949 PyThreadState* __tstate = wxPyBeginAllowThreads();
28950 result = (long)(arg1)->GetData();
28951 wxPyEndAllowThreads(__tstate);
28952 if (PyErr_Occurred()) SWIG_fail;
28953 }
28954 resultobj = SWIG_From_long(static_cast< long >(result));
28955 return resultobj;
28956 fail:
28957 return NULL;
28958 }
28959
28960
28961 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28962 PyObject *resultobj = 0;
28963 wxListEvent *arg1 = (wxListEvent *) 0 ;
28964 long result;
28965 void *argp1 = 0 ;
28966 int res1 = 0 ;
28967 PyObject *swig_obj[1] ;
28968
28969 if (!args) SWIG_fail;
28970 swig_obj[0] = args;
28971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28972 if (!SWIG_IsOK(res1)) {
28973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28974 }
28975 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28976 {
28977 PyThreadState* __tstate = wxPyBeginAllowThreads();
28978 result = (long)(arg1)->GetMask();
28979 wxPyEndAllowThreads(__tstate);
28980 if (PyErr_Occurred()) SWIG_fail;
28981 }
28982 resultobj = SWIG_From_long(static_cast< long >(result));
28983 return resultobj;
28984 fail:
28985 return NULL;
28986 }
28987
28988
28989 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28990 PyObject *resultobj = 0;
28991 wxListEvent *arg1 = (wxListEvent *) 0 ;
28992 wxListItem *result = 0 ;
28993 void *argp1 = 0 ;
28994 int res1 = 0 ;
28995 PyObject *swig_obj[1] ;
28996
28997 if (!args) SWIG_fail;
28998 swig_obj[0] = args;
28999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29000 if (!SWIG_IsOK(res1)) {
29001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
29002 }
29003 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29004 {
29005 PyThreadState* __tstate = wxPyBeginAllowThreads();
29006 {
29007 wxListItem const &_result_ref = (arg1)->GetItem();
29008 result = (wxListItem *) &_result_ref;
29009 }
29010 wxPyEndAllowThreads(__tstate);
29011 if (PyErr_Occurred()) SWIG_fail;
29012 }
29013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
29014 return resultobj;
29015 fail:
29016 return NULL;
29017 }
29018
29019
29020 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29021 PyObject *resultobj = 0;
29022 wxListEvent *arg1 = (wxListEvent *) 0 ;
29023 long result;
29024 void *argp1 = 0 ;
29025 int res1 = 0 ;
29026 PyObject *swig_obj[1] ;
29027
29028 if (!args) SWIG_fail;
29029 swig_obj[0] = args;
29030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29031 if (!SWIG_IsOK(res1)) {
29032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
29033 }
29034 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29035 {
29036 PyThreadState* __tstate = wxPyBeginAllowThreads();
29037 result = (long)(arg1)->GetCacheFrom();
29038 wxPyEndAllowThreads(__tstate);
29039 if (PyErr_Occurred()) SWIG_fail;
29040 }
29041 resultobj = SWIG_From_long(static_cast< long >(result));
29042 return resultobj;
29043 fail:
29044 return NULL;
29045 }
29046
29047
29048 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29049 PyObject *resultobj = 0;
29050 wxListEvent *arg1 = (wxListEvent *) 0 ;
29051 long result;
29052 void *argp1 = 0 ;
29053 int res1 = 0 ;
29054 PyObject *swig_obj[1] ;
29055
29056 if (!args) SWIG_fail;
29057 swig_obj[0] = args;
29058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29059 if (!SWIG_IsOK(res1)) {
29060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
29061 }
29062 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29063 {
29064 PyThreadState* __tstate = wxPyBeginAllowThreads();
29065 result = (long)(arg1)->GetCacheTo();
29066 wxPyEndAllowThreads(__tstate);
29067 if (PyErr_Occurred()) SWIG_fail;
29068 }
29069 resultobj = SWIG_From_long(static_cast< long >(result));
29070 return resultobj;
29071 fail:
29072 return NULL;
29073 }
29074
29075
29076 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29077 PyObject *resultobj = 0;
29078 wxListEvent *arg1 = (wxListEvent *) 0 ;
29079 bool result;
29080 void *argp1 = 0 ;
29081 int res1 = 0 ;
29082 PyObject *swig_obj[1] ;
29083
29084 if (!args) SWIG_fail;
29085 swig_obj[0] = args;
29086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29087 if (!SWIG_IsOK(res1)) {
29088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
29089 }
29090 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29091 {
29092 PyThreadState* __tstate = wxPyBeginAllowThreads();
29093 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
29094 wxPyEndAllowThreads(__tstate);
29095 if (PyErr_Occurred()) SWIG_fail;
29096 }
29097 {
29098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29099 }
29100 return resultobj;
29101 fail:
29102 return NULL;
29103 }
29104
29105
29106 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29107 PyObject *resultobj = 0;
29108 wxListEvent *arg1 = (wxListEvent *) 0 ;
29109 bool arg2 ;
29110 void *argp1 = 0 ;
29111 int res1 = 0 ;
29112 bool val2 ;
29113 int ecode2 = 0 ;
29114 PyObject * obj0 = 0 ;
29115 PyObject * obj1 = 0 ;
29116 char * kwnames[] = {
29117 (char *) "self",(char *) "editCancelled", NULL
29118 };
29119
29120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
29121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29122 if (!SWIG_IsOK(res1)) {
29123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
29124 }
29125 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29126 ecode2 = SWIG_AsVal_bool(obj1, &val2);
29127 if (!SWIG_IsOK(ecode2)) {
29128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
29129 }
29130 arg2 = static_cast< bool >(val2);
29131 {
29132 PyThreadState* __tstate = wxPyBeginAllowThreads();
29133 (arg1)->SetEditCanceled(arg2);
29134 wxPyEndAllowThreads(__tstate);
29135 if (PyErr_Occurred()) SWIG_fail;
29136 }
29137 resultobj = SWIG_Py_Void();
29138 return resultobj;
29139 fail:
29140 return NULL;
29141 }
29142
29143
29144 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29145 PyObject *obj;
29146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29147 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
29148 return SWIG_Py_Void();
29149 }
29150
29151 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29152 return SWIG_Python_InitShadowInstance(args);
29153 }
29154
29155 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29156 PyObject *resultobj = 0;
29157 wxWindow *arg1 = (wxWindow *) 0 ;
29158 int arg2 = (int) -1 ;
29159 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29160 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29161 wxSize const &arg4_defvalue = wxDefaultSize ;
29162 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29163 long arg5 = (long) wxLC_ICON ;
29164 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29165 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29166 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
29167 wxString *arg7 = (wxString *) &arg7_defvalue ;
29168 wxPyListCtrl *result = 0 ;
29169 void *argp1 = 0 ;
29170 int res1 = 0 ;
29171 int val2 ;
29172 int ecode2 = 0 ;
29173 wxPoint temp3 ;
29174 wxSize temp4 ;
29175 long val5 ;
29176 int ecode5 = 0 ;
29177 void *argp6 = 0 ;
29178 int res6 = 0 ;
29179 bool temp7 = false ;
29180 PyObject * obj0 = 0 ;
29181 PyObject * obj1 = 0 ;
29182 PyObject * obj2 = 0 ;
29183 PyObject * obj3 = 0 ;
29184 PyObject * obj4 = 0 ;
29185 PyObject * obj5 = 0 ;
29186 PyObject * obj6 = 0 ;
29187 char * kwnames[] = {
29188 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29189 };
29190
29191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29193 if (!SWIG_IsOK(res1)) {
29194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
29195 }
29196 arg1 = reinterpret_cast< wxWindow * >(argp1);
29197 if (obj1) {
29198 ecode2 = SWIG_AsVal_int(obj1, &val2);
29199 if (!SWIG_IsOK(ecode2)) {
29200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
29201 }
29202 arg2 = static_cast< int >(val2);
29203 }
29204 if (obj2) {
29205 {
29206 arg3 = &temp3;
29207 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29208 }
29209 }
29210 if (obj3) {
29211 {
29212 arg4 = &temp4;
29213 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29214 }
29215 }
29216 if (obj4) {
29217 ecode5 = SWIG_AsVal_long(obj4, &val5);
29218 if (!SWIG_IsOK(ecode5)) {
29219 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
29220 }
29221 arg5 = static_cast< long >(val5);
29222 }
29223 if (obj5) {
29224 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
29225 if (!SWIG_IsOK(res6)) {
29226 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
29227 }
29228 if (!argp6) {
29229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
29230 }
29231 arg6 = reinterpret_cast< wxValidator * >(argp6);
29232 }
29233 if (obj6) {
29234 {
29235 arg7 = wxString_in_helper(obj6);
29236 if (arg7 == NULL) SWIG_fail;
29237 temp7 = true;
29238 }
29239 }
29240 {
29241 if (!wxPyCheckForApp()) SWIG_fail;
29242 PyThreadState* __tstate = wxPyBeginAllowThreads();
29243 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29244 wxPyEndAllowThreads(__tstate);
29245 if (PyErr_Occurred()) SWIG_fail;
29246 }
29247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
29248 {
29249 if (temp7)
29250 delete arg7;
29251 }
29252 return resultobj;
29253 fail:
29254 {
29255 if (temp7)
29256 delete arg7;
29257 }
29258 return NULL;
29259 }
29260
29261
29262 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29263 PyObject *resultobj = 0;
29264 wxPyListCtrl *result = 0 ;
29265
29266 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
29267 {
29268 if (!wxPyCheckForApp()) SWIG_fail;
29269 PyThreadState* __tstate = wxPyBeginAllowThreads();
29270 result = (wxPyListCtrl *)new wxPyListCtrl();
29271 wxPyEndAllowThreads(__tstate);
29272 if (PyErr_Occurred()) SWIG_fail;
29273 }
29274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
29275 return resultobj;
29276 fail:
29277 return NULL;
29278 }
29279
29280
29281 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29282 PyObject *resultobj = 0;
29283 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29284 wxWindow *arg2 = (wxWindow *) 0 ;
29285 int arg3 = (int) -1 ;
29286 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29287 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29288 wxSize const &arg5_defvalue = wxDefaultSize ;
29289 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29290 long arg6 = (long) wxLC_ICON ;
29291 wxValidator const &arg7_defvalue = wxDefaultValidator ;
29292 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
29293 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
29294 wxString *arg8 = (wxString *) &arg8_defvalue ;
29295 bool result;
29296 void *argp1 = 0 ;
29297 int res1 = 0 ;
29298 void *argp2 = 0 ;
29299 int res2 = 0 ;
29300 int val3 ;
29301 int ecode3 = 0 ;
29302 wxPoint temp4 ;
29303 wxSize temp5 ;
29304 long val6 ;
29305 int ecode6 = 0 ;
29306 void *argp7 = 0 ;
29307 int res7 = 0 ;
29308 bool temp8 = false ;
29309 PyObject * obj0 = 0 ;
29310 PyObject * obj1 = 0 ;
29311 PyObject * obj2 = 0 ;
29312 PyObject * obj3 = 0 ;
29313 PyObject * obj4 = 0 ;
29314 PyObject * obj5 = 0 ;
29315 PyObject * obj6 = 0 ;
29316 PyObject * obj7 = 0 ;
29317 char * kwnames[] = {
29318 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29319 };
29320
29321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29323 if (!SWIG_IsOK(res1)) {
29324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29325 }
29326 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29327 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29328 if (!SWIG_IsOK(res2)) {
29329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29330 }
29331 arg2 = reinterpret_cast< wxWindow * >(argp2);
29332 if (obj2) {
29333 ecode3 = SWIG_AsVal_int(obj2, &val3);
29334 if (!SWIG_IsOK(ecode3)) {
29335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29336 }
29337 arg3 = static_cast< int >(val3);
29338 }
29339 if (obj3) {
29340 {
29341 arg4 = &temp4;
29342 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29343 }
29344 }
29345 if (obj4) {
29346 {
29347 arg5 = &temp5;
29348 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29349 }
29350 }
29351 if (obj5) {
29352 ecode6 = SWIG_AsVal_long(obj5, &val6);
29353 if (!SWIG_IsOK(ecode6)) {
29354 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29355 }
29356 arg6 = static_cast< long >(val6);
29357 }
29358 if (obj6) {
29359 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29360 if (!SWIG_IsOK(res7)) {
29361 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29362 }
29363 if (!argp7) {
29364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29365 }
29366 arg7 = reinterpret_cast< wxValidator * >(argp7);
29367 }
29368 if (obj7) {
29369 {
29370 arg8 = wxString_in_helper(obj7);
29371 if (arg8 == NULL) SWIG_fail;
29372 temp8 = true;
29373 }
29374 }
29375 {
29376 PyThreadState* __tstate = wxPyBeginAllowThreads();
29377 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29378 wxPyEndAllowThreads(__tstate);
29379 if (PyErr_Occurred()) SWIG_fail;
29380 }
29381 {
29382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29383 }
29384 {
29385 if (temp8)
29386 delete arg8;
29387 }
29388 return resultobj;
29389 fail:
29390 {
29391 if (temp8)
29392 delete arg8;
29393 }
29394 return NULL;
29395 }
29396
29397
29398 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29399 PyObject *resultobj = 0;
29400 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29401 PyObject *arg2 = (PyObject *) 0 ;
29402 PyObject *arg3 = (PyObject *) 0 ;
29403 void *argp1 = 0 ;
29404 int res1 = 0 ;
29405 PyObject * obj0 = 0 ;
29406 PyObject * obj1 = 0 ;
29407 PyObject * obj2 = 0 ;
29408 char * kwnames[] = {
29409 (char *) "self",(char *) "self",(char *) "_class", NULL
29410 };
29411
29412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29414 if (!SWIG_IsOK(res1)) {
29415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29416 }
29417 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29418 arg2 = obj1;
29419 arg3 = obj2;
29420 {
29421 PyThreadState* __tstate = wxPyBeginAllowThreads();
29422 (arg1)->_setCallbackInfo(arg2,arg3);
29423 wxPyEndAllowThreads(__tstate);
29424 if (PyErr_Occurred()) SWIG_fail;
29425 }
29426 resultobj = SWIG_Py_Void();
29427 return resultobj;
29428 fail:
29429 return NULL;
29430 }
29431
29432
29433 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29434 PyObject *resultobj = 0;
29435 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29436 int arg2 ;
29437 wxListItem *result = 0 ;
29438 void *argp1 = 0 ;
29439 int res1 = 0 ;
29440 int val2 ;
29441 int ecode2 = 0 ;
29442 PyObject * obj0 = 0 ;
29443 PyObject * obj1 = 0 ;
29444 char * kwnames[] = {
29445 (char *) "self",(char *) "col", NULL
29446 };
29447
29448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29450 if (!SWIG_IsOK(res1)) {
29451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29452 }
29453 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29454 ecode2 = SWIG_AsVal_int(obj1, &val2);
29455 if (!SWIG_IsOK(ecode2)) {
29456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29457 }
29458 arg2 = static_cast< int >(val2);
29459 {
29460 PyThreadState* __tstate = wxPyBeginAllowThreads();
29461 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29462 wxPyEndAllowThreads(__tstate);
29463 if (PyErr_Occurred()) SWIG_fail;
29464 }
29465 {
29466 resultobj = wxPyMake_wxObject(result, 0);
29467 }
29468 return resultobj;
29469 fail:
29470 return NULL;
29471 }
29472
29473
29474 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29475 PyObject *resultobj = 0;
29476 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29477 int arg2 ;
29478 wxListItem *arg3 = 0 ;
29479 bool result;
29480 void *argp1 = 0 ;
29481 int res1 = 0 ;
29482 int val2 ;
29483 int ecode2 = 0 ;
29484 void *argp3 = 0 ;
29485 int res3 = 0 ;
29486 PyObject * obj0 = 0 ;
29487 PyObject * obj1 = 0 ;
29488 PyObject * obj2 = 0 ;
29489 char * kwnames[] = {
29490 (char *) "self",(char *) "col",(char *) "item", NULL
29491 };
29492
29493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29495 if (!SWIG_IsOK(res1)) {
29496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29497 }
29498 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29499 ecode2 = SWIG_AsVal_int(obj1, &val2);
29500 if (!SWIG_IsOK(ecode2)) {
29501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29502 }
29503 arg2 = static_cast< int >(val2);
29504 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29505 if (!SWIG_IsOK(res3)) {
29506 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29507 }
29508 if (!argp3) {
29509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29510 }
29511 arg3 = reinterpret_cast< wxListItem * >(argp3);
29512 {
29513 PyThreadState* __tstate = wxPyBeginAllowThreads();
29514 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29515 wxPyEndAllowThreads(__tstate);
29516 if (PyErr_Occurred()) SWIG_fail;
29517 }
29518 {
29519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29520 }
29521 return resultobj;
29522 fail:
29523 return NULL;
29524 }
29525
29526
29527 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29528 PyObject *resultobj = 0;
29529 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29530 int arg2 ;
29531 int result;
29532 void *argp1 = 0 ;
29533 int res1 = 0 ;
29534 int val2 ;
29535 int ecode2 = 0 ;
29536 PyObject * obj0 = 0 ;
29537 PyObject * obj1 = 0 ;
29538 char * kwnames[] = {
29539 (char *) "self",(char *) "col", NULL
29540 };
29541
29542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29544 if (!SWIG_IsOK(res1)) {
29545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29546 }
29547 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29548 ecode2 = SWIG_AsVal_int(obj1, &val2);
29549 if (!SWIG_IsOK(ecode2)) {
29550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29551 }
29552 arg2 = static_cast< int >(val2);
29553 {
29554 PyThreadState* __tstate = wxPyBeginAllowThreads();
29555 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29556 wxPyEndAllowThreads(__tstate);
29557 if (PyErr_Occurred()) SWIG_fail;
29558 }
29559 resultobj = SWIG_From_int(static_cast< int >(result));
29560 return resultobj;
29561 fail:
29562 return NULL;
29563 }
29564
29565
29566 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29567 PyObject *resultobj = 0;
29568 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29569 int arg2 ;
29570 int arg3 ;
29571 bool result;
29572 void *argp1 = 0 ;
29573 int res1 = 0 ;
29574 int val2 ;
29575 int ecode2 = 0 ;
29576 int val3 ;
29577 int ecode3 = 0 ;
29578 PyObject * obj0 = 0 ;
29579 PyObject * obj1 = 0 ;
29580 PyObject * obj2 = 0 ;
29581 char * kwnames[] = {
29582 (char *) "self",(char *) "col",(char *) "width", NULL
29583 };
29584
29585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29587 if (!SWIG_IsOK(res1)) {
29588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29589 }
29590 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29591 ecode2 = SWIG_AsVal_int(obj1, &val2);
29592 if (!SWIG_IsOK(ecode2)) {
29593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29594 }
29595 arg2 = static_cast< int >(val2);
29596 ecode3 = SWIG_AsVal_int(obj2, &val3);
29597 if (!SWIG_IsOK(ecode3)) {
29598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29599 }
29600 arg3 = static_cast< int >(val3);
29601 {
29602 PyThreadState* __tstate = wxPyBeginAllowThreads();
29603 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29604 wxPyEndAllowThreads(__tstate);
29605 if (PyErr_Occurred()) SWIG_fail;
29606 }
29607 {
29608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29609 }
29610 return resultobj;
29611 fail:
29612 return NULL;
29613 }
29614
29615
29616 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29617 PyObject *resultobj = 0;
29618 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29619 int result;
29620 void *argp1 = 0 ;
29621 int res1 = 0 ;
29622 PyObject *swig_obj[1] ;
29623
29624 if (!args) SWIG_fail;
29625 swig_obj[0] = args;
29626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29627 if (!SWIG_IsOK(res1)) {
29628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29629 }
29630 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29631 {
29632 PyThreadState* __tstate = wxPyBeginAllowThreads();
29633 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29634 wxPyEndAllowThreads(__tstate);
29635 if (PyErr_Occurred()) SWIG_fail;
29636 }
29637 resultobj = SWIG_From_int(static_cast< int >(result));
29638 return resultobj;
29639 fail:
29640 return NULL;
29641 }
29642
29643
29644 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29645 PyObject *resultobj = 0;
29646 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29647 wxRect result;
29648 void *argp1 = 0 ;
29649 int res1 = 0 ;
29650 PyObject *swig_obj[1] ;
29651
29652 if (!args) SWIG_fail;
29653 swig_obj[0] = args;
29654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29655 if (!SWIG_IsOK(res1)) {
29656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29657 }
29658 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29659 {
29660 PyThreadState* __tstate = wxPyBeginAllowThreads();
29661 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29662 wxPyEndAllowThreads(__tstate);
29663 if (PyErr_Occurred()) SWIG_fail;
29664 }
29665 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29666 return resultobj;
29667 fail:
29668 return NULL;
29669 }
29670
29671
29672 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29673 PyObject *resultobj = 0;
29674 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29675 wxTextCtrl *result = 0 ;
29676 void *argp1 = 0 ;
29677 int res1 = 0 ;
29678 PyObject *swig_obj[1] ;
29679
29680 if (!args) SWIG_fail;
29681 swig_obj[0] = args;
29682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29683 if (!SWIG_IsOK(res1)) {
29684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29685 }
29686 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29687 {
29688 PyThreadState* __tstate = wxPyBeginAllowThreads();
29689 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29690 wxPyEndAllowThreads(__tstate);
29691 if (PyErr_Occurred()) SWIG_fail;
29692 }
29693 {
29694 resultobj = wxPyMake_wxObject(result, 0);
29695 }
29696 return resultobj;
29697 fail:
29698 return NULL;
29699 }
29700
29701
29702 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29703 PyObject *resultobj = 0;
29704 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29705 long arg2 ;
29706 int arg3 = (int) 0 ;
29707 wxListItem *result = 0 ;
29708 void *argp1 = 0 ;
29709 int res1 = 0 ;
29710 long val2 ;
29711 int ecode2 = 0 ;
29712 int val3 ;
29713 int ecode3 = 0 ;
29714 PyObject * obj0 = 0 ;
29715 PyObject * obj1 = 0 ;
29716 PyObject * obj2 = 0 ;
29717 char * kwnames[] = {
29718 (char *) "self",(char *) "itemId",(char *) "col", NULL
29719 };
29720
29721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29723 if (!SWIG_IsOK(res1)) {
29724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29725 }
29726 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29727 ecode2 = SWIG_AsVal_long(obj1, &val2);
29728 if (!SWIG_IsOK(ecode2)) {
29729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29730 }
29731 arg2 = static_cast< long >(val2);
29732 if (obj2) {
29733 ecode3 = SWIG_AsVal_int(obj2, &val3);
29734 if (!SWIG_IsOK(ecode3)) {
29735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29736 }
29737 arg3 = static_cast< int >(val3);
29738 }
29739 {
29740 PyThreadState* __tstate = wxPyBeginAllowThreads();
29741 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29742 wxPyEndAllowThreads(__tstate);
29743 if (PyErr_Occurred()) SWIG_fail;
29744 }
29745 {
29746 resultobj = wxPyMake_wxObject(result, 0);
29747 }
29748 return resultobj;
29749 fail:
29750 return NULL;
29751 }
29752
29753
29754 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29755 PyObject *resultobj = 0;
29756 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29757 wxListItem *arg2 = 0 ;
29758 bool result;
29759 void *argp1 = 0 ;
29760 int res1 = 0 ;
29761 void *argp2 = 0 ;
29762 int res2 = 0 ;
29763 PyObject * obj0 = 0 ;
29764 PyObject * obj1 = 0 ;
29765 char * kwnames[] = {
29766 (char *) "self",(char *) "info", NULL
29767 };
29768
29769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29771 if (!SWIG_IsOK(res1)) {
29772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29773 }
29774 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29776 if (!SWIG_IsOK(res2)) {
29777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29778 }
29779 if (!argp2) {
29780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29781 }
29782 arg2 = reinterpret_cast< wxListItem * >(argp2);
29783 {
29784 PyThreadState* __tstate = wxPyBeginAllowThreads();
29785 result = (bool)(arg1)->SetItem(*arg2);
29786 wxPyEndAllowThreads(__tstate);
29787 if (PyErr_Occurred()) SWIG_fail;
29788 }
29789 {
29790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29791 }
29792 return resultobj;
29793 fail:
29794 return NULL;
29795 }
29796
29797
29798 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29799 PyObject *resultobj = 0;
29800 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29801 long arg2 ;
29802 int arg3 ;
29803 wxString *arg4 = 0 ;
29804 int arg5 = (int) -1 ;
29805 long result;
29806 void *argp1 = 0 ;
29807 int res1 = 0 ;
29808 long val2 ;
29809 int ecode2 = 0 ;
29810 int val3 ;
29811 int ecode3 = 0 ;
29812 bool temp4 = false ;
29813 int val5 ;
29814 int ecode5 = 0 ;
29815 PyObject * obj0 = 0 ;
29816 PyObject * obj1 = 0 ;
29817 PyObject * obj2 = 0 ;
29818 PyObject * obj3 = 0 ;
29819 PyObject * obj4 = 0 ;
29820 char * kwnames[] = {
29821 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29822 };
29823
29824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29826 if (!SWIG_IsOK(res1)) {
29827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29828 }
29829 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29830 ecode2 = SWIG_AsVal_long(obj1, &val2);
29831 if (!SWIG_IsOK(ecode2)) {
29832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29833 }
29834 arg2 = static_cast< long >(val2);
29835 ecode3 = SWIG_AsVal_int(obj2, &val3);
29836 if (!SWIG_IsOK(ecode3)) {
29837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29838 }
29839 arg3 = static_cast< int >(val3);
29840 {
29841 arg4 = wxString_in_helper(obj3);
29842 if (arg4 == NULL) SWIG_fail;
29843 temp4 = true;
29844 }
29845 if (obj4) {
29846 ecode5 = SWIG_AsVal_int(obj4, &val5);
29847 if (!SWIG_IsOK(ecode5)) {
29848 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29849 }
29850 arg5 = static_cast< int >(val5);
29851 }
29852 {
29853 PyThreadState* __tstate = wxPyBeginAllowThreads();
29854 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29855 wxPyEndAllowThreads(__tstate);
29856 if (PyErr_Occurred()) SWIG_fail;
29857 }
29858 resultobj = SWIG_From_long(static_cast< long >(result));
29859 {
29860 if (temp4)
29861 delete arg4;
29862 }
29863 return resultobj;
29864 fail:
29865 {
29866 if (temp4)
29867 delete arg4;
29868 }
29869 return NULL;
29870 }
29871
29872
29873 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29874 PyObject *resultobj = 0;
29875 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29876 long arg2 ;
29877 long arg3 ;
29878 int result;
29879 void *argp1 = 0 ;
29880 int res1 = 0 ;
29881 long val2 ;
29882 int ecode2 = 0 ;
29883 long val3 ;
29884 int ecode3 = 0 ;
29885 PyObject * obj0 = 0 ;
29886 PyObject * obj1 = 0 ;
29887 PyObject * obj2 = 0 ;
29888 char * kwnames[] = {
29889 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29890 };
29891
29892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29894 if (!SWIG_IsOK(res1)) {
29895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29896 }
29897 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29898 ecode2 = SWIG_AsVal_long(obj1, &val2);
29899 if (!SWIG_IsOK(ecode2)) {
29900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29901 }
29902 arg2 = static_cast< long >(val2);
29903 ecode3 = SWIG_AsVal_long(obj2, &val3);
29904 if (!SWIG_IsOK(ecode3)) {
29905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29906 }
29907 arg3 = static_cast< long >(val3);
29908 {
29909 PyThreadState* __tstate = wxPyBeginAllowThreads();
29910 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29911 wxPyEndAllowThreads(__tstate);
29912 if (PyErr_Occurred()) SWIG_fail;
29913 }
29914 resultobj = SWIG_From_int(static_cast< int >(result));
29915 return resultobj;
29916 fail:
29917 return NULL;
29918 }
29919
29920
29921 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29922 PyObject *resultobj = 0;
29923 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29924 long arg2 ;
29925 long arg3 ;
29926 long arg4 ;
29927 bool result;
29928 void *argp1 = 0 ;
29929 int res1 = 0 ;
29930 long val2 ;
29931 int ecode2 = 0 ;
29932 long val3 ;
29933 int ecode3 = 0 ;
29934 long val4 ;
29935 int ecode4 = 0 ;
29936 PyObject * obj0 = 0 ;
29937 PyObject * obj1 = 0 ;
29938 PyObject * obj2 = 0 ;
29939 PyObject * obj3 = 0 ;
29940 char * kwnames[] = {
29941 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29942 };
29943
29944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29946 if (!SWIG_IsOK(res1)) {
29947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29948 }
29949 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29950 ecode2 = SWIG_AsVal_long(obj1, &val2);
29951 if (!SWIG_IsOK(ecode2)) {
29952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29953 }
29954 arg2 = static_cast< long >(val2);
29955 ecode3 = SWIG_AsVal_long(obj2, &val3);
29956 if (!SWIG_IsOK(ecode3)) {
29957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29958 }
29959 arg3 = static_cast< long >(val3);
29960 ecode4 = SWIG_AsVal_long(obj3, &val4);
29961 if (!SWIG_IsOK(ecode4)) {
29962 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29963 }
29964 arg4 = static_cast< long >(val4);
29965 {
29966 PyThreadState* __tstate = wxPyBeginAllowThreads();
29967 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29968 wxPyEndAllowThreads(__tstate);
29969 if (PyErr_Occurred()) SWIG_fail;
29970 }
29971 {
29972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29973 }
29974 return resultobj;
29975 fail:
29976 return NULL;
29977 }
29978
29979
29980 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29981 PyObject *resultobj = 0;
29982 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29983 long arg2 ;
29984 int arg3 ;
29985 int arg4 = (int) -1 ;
29986 bool result;
29987 void *argp1 = 0 ;
29988 int res1 = 0 ;
29989 long val2 ;
29990 int ecode2 = 0 ;
29991 int val3 ;
29992 int ecode3 = 0 ;
29993 int val4 ;
29994 int ecode4 = 0 ;
29995 PyObject * obj0 = 0 ;
29996 PyObject * obj1 = 0 ;
29997 PyObject * obj2 = 0 ;
29998 PyObject * obj3 = 0 ;
29999 char * kwnames[] = {
30000 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
30001 };
30002
30003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30005 if (!SWIG_IsOK(res1)) {
30006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30007 }
30008 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30009 ecode2 = SWIG_AsVal_long(obj1, &val2);
30010 if (!SWIG_IsOK(ecode2)) {
30011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
30012 }
30013 arg2 = static_cast< long >(val2);
30014 ecode3 = SWIG_AsVal_int(obj2, &val3);
30015 if (!SWIG_IsOK(ecode3)) {
30016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
30017 }
30018 arg3 = static_cast< int >(val3);
30019 if (obj3) {
30020 ecode4 = SWIG_AsVal_int(obj3, &val4);
30021 if (!SWIG_IsOK(ecode4)) {
30022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
30023 }
30024 arg4 = static_cast< int >(val4);
30025 }
30026 {
30027 PyThreadState* __tstate = wxPyBeginAllowThreads();
30028 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
30029 wxPyEndAllowThreads(__tstate);
30030 if (PyErr_Occurred()) SWIG_fail;
30031 }
30032 {
30033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30034 }
30035 return resultobj;
30036 fail:
30037 return NULL;
30038 }
30039
30040
30041 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30042 PyObject *resultobj = 0;
30043 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30044 long arg2 ;
30045 long arg3 ;
30046 int arg4 ;
30047 bool result;
30048 void *argp1 = 0 ;
30049 int res1 = 0 ;
30050 long val2 ;
30051 int ecode2 = 0 ;
30052 long val3 ;
30053 int ecode3 = 0 ;
30054 int val4 ;
30055 int ecode4 = 0 ;
30056 PyObject * obj0 = 0 ;
30057 PyObject * obj1 = 0 ;
30058 PyObject * obj2 = 0 ;
30059 PyObject * obj3 = 0 ;
30060 char * kwnames[] = {
30061 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
30062 };
30063
30064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30066 if (!SWIG_IsOK(res1)) {
30067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30068 }
30069 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30070 ecode2 = SWIG_AsVal_long(obj1, &val2);
30071 if (!SWIG_IsOK(ecode2)) {
30072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
30073 }
30074 arg2 = static_cast< long >(val2);
30075 ecode3 = SWIG_AsVal_long(obj2, &val3);
30076 if (!SWIG_IsOK(ecode3)) {
30077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
30078 }
30079 arg3 = static_cast< long >(val3);
30080 ecode4 = SWIG_AsVal_int(obj3, &val4);
30081 if (!SWIG_IsOK(ecode4)) {
30082 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
30083 }
30084 arg4 = static_cast< int >(val4);
30085 {
30086 PyThreadState* __tstate = wxPyBeginAllowThreads();
30087 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
30088 wxPyEndAllowThreads(__tstate);
30089 if (PyErr_Occurred()) SWIG_fail;
30090 }
30091 {
30092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30093 }
30094 return resultobj;
30095 fail:
30096 return NULL;
30097 }
30098
30099
30100 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30101 PyObject *resultobj = 0;
30102 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30103 long arg2 ;
30104 wxString result;
30105 void *argp1 = 0 ;
30106 int res1 = 0 ;
30107 long val2 ;
30108 int ecode2 = 0 ;
30109 PyObject * obj0 = 0 ;
30110 PyObject * obj1 = 0 ;
30111 char * kwnames[] = {
30112 (char *) "self",(char *) "item", NULL
30113 };
30114
30115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
30116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30117 if (!SWIG_IsOK(res1)) {
30118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30119 }
30120 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30121 ecode2 = SWIG_AsVal_long(obj1, &val2);
30122 if (!SWIG_IsOK(ecode2)) {
30123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
30124 }
30125 arg2 = static_cast< long >(val2);
30126 {
30127 PyThreadState* __tstate = wxPyBeginAllowThreads();
30128 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
30129 wxPyEndAllowThreads(__tstate);
30130 if (PyErr_Occurred()) SWIG_fail;
30131 }
30132 {
30133 #if wxUSE_UNICODE
30134 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30135 #else
30136 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30137 #endif
30138 }
30139 return resultobj;
30140 fail:
30141 return NULL;
30142 }
30143
30144
30145 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30146 PyObject *resultobj = 0;
30147 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30148 long arg2 ;
30149 wxString *arg3 = 0 ;
30150 void *argp1 = 0 ;
30151 int res1 = 0 ;
30152 long val2 ;
30153 int ecode2 = 0 ;
30154 bool temp3 = false ;
30155 PyObject * obj0 = 0 ;
30156 PyObject * obj1 = 0 ;
30157 PyObject * obj2 = 0 ;
30158 char * kwnames[] = {
30159 (char *) "self",(char *) "item",(char *) "str", NULL
30160 };
30161
30162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30164 if (!SWIG_IsOK(res1)) {
30165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30166 }
30167 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30168 ecode2 = SWIG_AsVal_long(obj1, &val2);
30169 if (!SWIG_IsOK(ecode2)) {
30170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
30171 }
30172 arg2 = static_cast< long >(val2);
30173 {
30174 arg3 = wxString_in_helper(obj2);
30175 if (arg3 == NULL) SWIG_fail;
30176 temp3 = true;
30177 }
30178 {
30179 PyThreadState* __tstate = wxPyBeginAllowThreads();
30180 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
30181 wxPyEndAllowThreads(__tstate);
30182 if (PyErr_Occurred()) SWIG_fail;
30183 }
30184 resultobj = SWIG_Py_Void();
30185 {
30186 if (temp3)
30187 delete arg3;
30188 }
30189 return resultobj;
30190 fail:
30191 {
30192 if (temp3)
30193 delete arg3;
30194 }
30195 return NULL;
30196 }
30197
30198
30199 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30200 PyObject *resultobj = 0;
30201 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30202 long arg2 ;
30203 long result;
30204 void *argp1 = 0 ;
30205 int res1 = 0 ;
30206 long val2 ;
30207 int ecode2 = 0 ;
30208 PyObject * obj0 = 0 ;
30209 PyObject * obj1 = 0 ;
30210 char * kwnames[] = {
30211 (char *) "self",(char *) "item", NULL
30212 };
30213
30214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
30215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30216 if (!SWIG_IsOK(res1)) {
30217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30218 }
30219 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30220 ecode2 = SWIG_AsVal_long(obj1, &val2);
30221 if (!SWIG_IsOK(ecode2)) {
30222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
30223 }
30224 arg2 = static_cast< long >(val2);
30225 {
30226 PyThreadState* __tstate = wxPyBeginAllowThreads();
30227 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
30228 wxPyEndAllowThreads(__tstate);
30229 if (PyErr_Occurred()) SWIG_fail;
30230 }
30231 resultobj = SWIG_From_long(static_cast< long >(result));
30232 return resultobj;
30233 fail:
30234 return NULL;
30235 }
30236
30237
30238 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30239 PyObject *resultobj = 0;
30240 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30241 long arg2 ;
30242 long arg3 ;
30243 bool result;
30244 void *argp1 = 0 ;
30245 int res1 = 0 ;
30246 long val2 ;
30247 int ecode2 = 0 ;
30248 long val3 ;
30249 int ecode3 = 0 ;
30250 PyObject * obj0 = 0 ;
30251 PyObject * obj1 = 0 ;
30252 PyObject * obj2 = 0 ;
30253 char * kwnames[] = {
30254 (char *) "self",(char *) "item",(char *) "data", NULL
30255 };
30256
30257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30259 if (!SWIG_IsOK(res1)) {
30260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30261 }
30262 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30263 ecode2 = SWIG_AsVal_long(obj1, &val2);
30264 if (!SWIG_IsOK(ecode2)) {
30265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
30266 }
30267 arg2 = static_cast< long >(val2);
30268 ecode3 = SWIG_AsVal_long(obj2, &val3);
30269 if (!SWIG_IsOK(ecode3)) {
30270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
30271 }
30272 arg3 = static_cast< long >(val3);
30273 {
30274 PyThreadState* __tstate = wxPyBeginAllowThreads();
30275 result = (bool)(arg1)->SetItemData(arg2,arg3);
30276 wxPyEndAllowThreads(__tstate);
30277 if (PyErr_Occurred()) SWIG_fail;
30278 }
30279 {
30280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30281 }
30282 return resultobj;
30283 fail:
30284 return NULL;
30285 }
30286
30287
30288 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30289 PyObject *resultobj = 0;
30290 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30291 long arg2 ;
30292 wxPoint result;
30293 void *argp1 = 0 ;
30294 int res1 = 0 ;
30295 long val2 ;
30296 int ecode2 = 0 ;
30297 PyObject * obj0 = 0 ;
30298 PyObject * obj1 = 0 ;
30299 char * kwnames[] = {
30300 (char *) "self",(char *) "item", NULL
30301 };
30302
30303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
30304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30305 if (!SWIG_IsOK(res1)) {
30306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30307 }
30308 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30309 ecode2 = SWIG_AsVal_long(obj1, &val2);
30310 if (!SWIG_IsOK(ecode2)) {
30311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
30312 }
30313 arg2 = static_cast< long >(val2);
30314 {
30315 PyThreadState* __tstate = wxPyBeginAllowThreads();
30316 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
30317 wxPyEndAllowThreads(__tstate);
30318 if (PyErr_Occurred()) SWIG_fail;
30319 }
30320 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
30321 return resultobj;
30322 fail:
30323 return NULL;
30324 }
30325
30326
30327 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30328 PyObject *resultobj = 0;
30329 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30330 long arg2 ;
30331 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30332 wxRect result;
30333 void *argp1 = 0 ;
30334 int res1 = 0 ;
30335 long val2 ;
30336 int ecode2 = 0 ;
30337 int val3 ;
30338 int ecode3 = 0 ;
30339 PyObject * obj0 = 0 ;
30340 PyObject * obj1 = 0 ;
30341 PyObject * obj2 = 0 ;
30342 char * kwnames[] = {
30343 (char *) "self",(char *) "item",(char *) "code", NULL
30344 };
30345
30346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30348 if (!SWIG_IsOK(res1)) {
30349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30350 }
30351 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30352 ecode2 = SWIG_AsVal_long(obj1, &val2);
30353 if (!SWIG_IsOK(ecode2)) {
30354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30355 }
30356 arg2 = static_cast< long >(val2);
30357 if (obj2) {
30358 ecode3 = SWIG_AsVal_int(obj2, &val3);
30359 if (!SWIG_IsOK(ecode3)) {
30360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30361 }
30362 arg3 = static_cast< int >(val3);
30363 }
30364 {
30365 PyThreadState* __tstate = wxPyBeginAllowThreads();
30366 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30367 wxPyEndAllowThreads(__tstate);
30368 if (PyErr_Occurred()) SWIG_fail;
30369 }
30370 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30371 return resultobj;
30372 fail:
30373 return NULL;
30374 }
30375
30376
30377 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30378 PyObject *resultobj = 0;
30379 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30380 long arg2 ;
30381 wxPoint *arg3 = 0 ;
30382 bool result;
30383 void *argp1 = 0 ;
30384 int res1 = 0 ;
30385 long val2 ;
30386 int ecode2 = 0 ;
30387 wxPoint temp3 ;
30388 PyObject * obj0 = 0 ;
30389 PyObject * obj1 = 0 ;
30390 PyObject * obj2 = 0 ;
30391 char * kwnames[] = {
30392 (char *) "self",(char *) "item",(char *) "pos", NULL
30393 };
30394
30395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30397 if (!SWIG_IsOK(res1)) {
30398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30399 }
30400 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30401 ecode2 = SWIG_AsVal_long(obj1, &val2);
30402 if (!SWIG_IsOK(ecode2)) {
30403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30404 }
30405 arg2 = static_cast< long >(val2);
30406 {
30407 arg3 = &temp3;
30408 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30409 }
30410 {
30411 PyThreadState* __tstate = wxPyBeginAllowThreads();
30412 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30413 wxPyEndAllowThreads(__tstate);
30414 if (PyErr_Occurred()) SWIG_fail;
30415 }
30416 {
30417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30418 }
30419 return resultobj;
30420 fail:
30421 return NULL;
30422 }
30423
30424
30425 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30426 PyObject *resultobj = 0;
30427 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30428 int result;
30429 void *argp1 = 0 ;
30430 int res1 = 0 ;
30431 PyObject *swig_obj[1] ;
30432
30433 if (!args) SWIG_fail;
30434 swig_obj[0] = args;
30435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30436 if (!SWIG_IsOK(res1)) {
30437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30438 }
30439 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30440 {
30441 PyThreadState* __tstate = wxPyBeginAllowThreads();
30442 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30443 wxPyEndAllowThreads(__tstate);
30444 if (PyErr_Occurred()) SWIG_fail;
30445 }
30446 resultobj = SWIG_From_int(static_cast< int >(result));
30447 return resultobj;
30448 fail:
30449 return NULL;
30450 }
30451
30452
30453 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30454 PyObject *resultobj = 0;
30455 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30456 int result;
30457 void *argp1 = 0 ;
30458 int res1 = 0 ;
30459 PyObject *swig_obj[1] ;
30460
30461 if (!args) SWIG_fail;
30462 swig_obj[0] = args;
30463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30464 if (!SWIG_IsOK(res1)) {
30465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30466 }
30467 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30468 {
30469 PyThreadState* __tstate = wxPyBeginAllowThreads();
30470 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30471 wxPyEndAllowThreads(__tstate);
30472 if (PyErr_Occurred()) SWIG_fail;
30473 }
30474 resultobj = SWIG_From_int(static_cast< int >(result));
30475 return resultobj;
30476 fail:
30477 return NULL;
30478 }
30479
30480
30481 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30482 PyObject *resultobj = 0;
30483 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30484 wxSize result;
30485 void *argp1 = 0 ;
30486 int res1 = 0 ;
30487 PyObject *swig_obj[1] ;
30488
30489 if (!args) SWIG_fail;
30490 swig_obj[0] = args;
30491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30492 if (!SWIG_IsOK(res1)) {
30493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30494 }
30495 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30496 {
30497 PyThreadState* __tstate = wxPyBeginAllowThreads();
30498 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30499 wxPyEndAllowThreads(__tstate);
30500 if (PyErr_Occurred()) SWIG_fail;
30501 }
30502 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30503 return resultobj;
30504 fail:
30505 return NULL;
30506 }
30507
30508
30509 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30510 PyObject *resultobj = 0;
30511 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30512 int arg2 ;
30513 bool arg3 = (bool) false ;
30514 void *argp1 = 0 ;
30515 int res1 = 0 ;
30516 int val2 ;
30517 int ecode2 = 0 ;
30518 bool val3 ;
30519 int ecode3 = 0 ;
30520 PyObject * obj0 = 0 ;
30521 PyObject * obj1 = 0 ;
30522 PyObject * obj2 = 0 ;
30523 char * kwnames[] = {
30524 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30525 };
30526
30527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30529 if (!SWIG_IsOK(res1)) {
30530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30531 }
30532 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30533 ecode2 = SWIG_AsVal_int(obj1, &val2);
30534 if (!SWIG_IsOK(ecode2)) {
30535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30536 }
30537 arg2 = static_cast< int >(val2);
30538 if (obj2) {
30539 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30540 if (!SWIG_IsOK(ecode3)) {
30541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30542 }
30543 arg3 = static_cast< bool >(val3);
30544 }
30545 {
30546 PyThreadState* __tstate = wxPyBeginAllowThreads();
30547 (arg1)->SetItemSpacing(arg2,arg3);
30548 wxPyEndAllowThreads(__tstate);
30549 if (PyErr_Occurred()) SWIG_fail;
30550 }
30551 resultobj = SWIG_Py_Void();
30552 return resultobj;
30553 fail:
30554 return NULL;
30555 }
30556
30557
30558 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30559 PyObject *resultobj = 0;
30560 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30561 int result;
30562 void *argp1 = 0 ;
30563 int res1 = 0 ;
30564 PyObject *swig_obj[1] ;
30565
30566 if (!args) SWIG_fail;
30567 swig_obj[0] = args;
30568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30569 if (!SWIG_IsOK(res1)) {
30570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30571 }
30572 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30573 {
30574 PyThreadState* __tstate = wxPyBeginAllowThreads();
30575 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30576 wxPyEndAllowThreads(__tstate);
30577 if (PyErr_Occurred()) SWIG_fail;
30578 }
30579 resultobj = SWIG_From_int(static_cast< int >(result));
30580 return resultobj;
30581 fail:
30582 return NULL;
30583 }
30584
30585
30586 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30587 PyObject *resultobj = 0;
30588 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30589 wxColour result;
30590 void *argp1 = 0 ;
30591 int res1 = 0 ;
30592 PyObject *swig_obj[1] ;
30593
30594 if (!args) SWIG_fail;
30595 swig_obj[0] = args;
30596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30597 if (!SWIG_IsOK(res1)) {
30598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30599 }
30600 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30601 {
30602 PyThreadState* __tstate = wxPyBeginAllowThreads();
30603 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30604 wxPyEndAllowThreads(__tstate);
30605 if (PyErr_Occurred()) SWIG_fail;
30606 }
30607 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30608 return resultobj;
30609 fail:
30610 return NULL;
30611 }
30612
30613
30614 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30615 PyObject *resultobj = 0;
30616 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30617 wxColour *arg2 = 0 ;
30618 void *argp1 = 0 ;
30619 int res1 = 0 ;
30620 wxColour temp2 ;
30621 PyObject * obj0 = 0 ;
30622 PyObject * obj1 = 0 ;
30623 char * kwnames[] = {
30624 (char *) "self",(char *) "col", NULL
30625 };
30626
30627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30629 if (!SWIG_IsOK(res1)) {
30630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30631 }
30632 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30633 {
30634 arg2 = &temp2;
30635 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30636 }
30637 {
30638 PyThreadState* __tstate = wxPyBeginAllowThreads();
30639 (arg1)->SetTextColour((wxColour const &)*arg2);
30640 wxPyEndAllowThreads(__tstate);
30641 if (PyErr_Occurred()) SWIG_fail;
30642 }
30643 resultobj = SWIG_Py_Void();
30644 return resultobj;
30645 fail:
30646 return NULL;
30647 }
30648
30649
30650 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30651 PyObject *resultobj = 0;
30652 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30653 long result;
30654 void *argp1 = 0 ;
30655 int res1 = 0 ;
30656 PyObject *swig_obj[1] ;
30657
30658 if (!args) SWIG_fail;
30659 swig_obj[0] = args;
30660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30661 if (!SWIG_IsOK(res1)) {
30662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30663 }
30664 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30665 {
30666 PyThreadState* __tstate = wxPyBeginAllowThreads();
30667 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30668 wxPyEndAllowThreads(__tstate);
30669 if (PyErr_Occurred()) SWIG_fail;
30670 }
30671 resultobj = SWIG_From_long(static_cast< long >(result));
30672 return resultobj;
30673 fail:
30674 return NULL;
30675 }
30676
30677
30678 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30679 PyObject *resultobj = 0;
30680 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30681 long arg2 ;
30682 bool arg3 = (bool) true ;
30683 void *argp1 = 0 ;
30684 int res1 = 0 ;
30685 long val2 ;
30686 int ecode2 = 0 ;
30687 bool val3 ;
30688 int ecode3 = 0 ;
30689 PyObject * obj0 = 0 ;
30690 PyObject * obj1 = 0 ;
30691 PyObject * obj2 = 0 ;
30692 char * kwnames[] = {
30693 (char *) "self",(char *) "style",(char *) "add", NULL
30694 };
30695
30696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30698 if (!SWIG_IsOK(res1)) {
30699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30700 }
30701 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30702 ecode2 = SWIG_AsVal_long(obj1, &val2);
30703 if (!SWIG_IsOK(ecode2)) {
30704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30705 }
30706 arg2 = static_cast< long >(val2);
30707 if (obj2) {
30708 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30709 if (!SWIG_IsOK(ecode3)) {
30710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30711 }
30712 arg3 = static_cast< bool >(val3);
30713 }
30714 {
30715 PyThreadState* __tstate = wxPyBeginAllowThreads();
30716 (arg1)->SetSingleStyle(arg2,arg3);
30717 wxPyEndAllowThreads(__tstate);
30718 if (PyErr_Occurred()) SWIG_fail;
30719 }
30720 resultobj = SWIG_Py_Void();
30721 return resultobj;
30722 fail:
30723 return NULL;
30724 }
30725
30726
30727 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30728 PyObject *resultobj = 0;
30729 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30730 long arg2 ;
30731 int arg3 = (int) wxLIST_NEXT_ALL ;
30732 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30733 long result;
30734 void *argp1 = 0 ;
30735 int res1 = 0 ;
30736 long val2 ;
30737 int ecode2 = 0 ;
30738 int val3 ;
30739 int ecode3 = 0 ;
30740 int val4 ;
30741 int ecode4 = 0 ;
30742 PyObject * obj0 = 0 ;
30743 PyObject * obj1 = 0 ;
30744 PyObject * obj2 = 0 ;
30745 PyObject * obj3 = 0 ;
30746 char * kwnames[] = {
30747 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30748 };
30749
30750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30752 if (!SWIG_IsOK(res1)) {
30753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30754 }
30755 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30756 ecode2 = SWIG_AsVal_long(obj1, &val2);
30757 if (!SWIG_IsOK(ecode2)) {
30758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30759 }
30760 arg2 = static_cast< long >(val2);
30761 if (obj2) {
30762 ecode3 = SWIG_AsVal_int(obj2, &val3);
30763 if (!SWIG_IsOK(ecode3)) {
30764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30765 }
30766 arg3 = static_cast< int >(val3);
30767 }
30768 if (obj3) {
30769 ecode4 = SWIG_AsVal_int(obj3, &val4);
30770 if (!SWIG_IsOK(ecode4)) {
30771 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30772 }
30773 arg4 = static_cast< int >(val4);
30774 }
30775 {
30776 PyThreadState* __tstate = wxPyBeginAllowThreads();
30777 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30778 wxPyEndAllowThreads(__tstate);
30779 if (PyErr_Occurred()) SWIG_fail;
30780 }
30781 resultobj = SWIG_From_long(static_cast< long >(result));
30782 return resultobj;
30783 fail:
30784 return NULL;
30785 }
30786
30787
30788 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30789 PyObject *resultobj = 0;
30790 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30791 int arg2 ;
30792 wxImageList *result = 0 ;
30793 void *argp1 = 0 ;
30794 int res1 = 0 ;
30795 int val2 ;
30796 int ecode2 = 0 ;
30797 PyObject * obj0 = 0 ;
30798 PyObject * obj1 = 0 ;
30799 char * kwnames[] = {
30800 (char *) "self",(char *) "which", NULL
30801 };
30802
30803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30805 if (!SWIG_IsOK(res1)) {
30806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30807 }
30808 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30809 ecode2 = SWIG_AsVal_int(obj1, &val2);
30810 if (!SWIG_IsOK(ecode2)) {
30811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30812 }
30813 arg2 = static_cast< int >(val2);
30814 {
30815 PyThreadState* __tstate = wxPyBeginAllowThreads();
30816 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30817 wxPyEndAllowThreads(__tstate);
30818 if (PyErr_Occurred()) SWIG_fail;
30819 }
30820 {
30821 resultobj = wxPyMake_wxObject(result, (bool)0);
30822 }
30823 return resultobj;
30824 fail:
30825 return NULL;
30826 }
30827
30828
30829 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30830 PyObject *resultobj = 0;
30831 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30832 wxImageList *arg2 = (wxImageList *) 0 ;
30833 int arg3 ;
30834 void *argp1 = 0 ;
30835 int res1 = 0 ;
30836 void *argp2 = 0 ;
30837 int res2 = 0 ;
30838 int val3 ;
30839 int ecode3 = 0 ;
30840 PyObject * obj0 = 0 ;
30841 PyObject * obj1 = 0 ;
30842 PyObject * obj2 = 0 ;
30843 char * kwnames[] = {
30844 (char *) "self",(char *) "imageList",(char *) "which", NULL
30845 };
30846
30847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30849 if (!SWIG_IsOK(res1)) {
30850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30851 }
30852 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30853 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30854 if (!SWIG_IsOK(res2)) {
30855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30856 }
30857 arg2 = reinterpret_cast< wxImageList * >(argp2);
30858 ecode3 = SWIG_AsVal_int(obj2, &val3);
30859 if (!SWIG_IsOK(ecode3)) {
30860 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30861 }
30862 arg3 = static_cast< int >(val3);
30863 {
30864 PyThreadState* __tstate = wxPyBeginAllowThreads();
30865 (arg1)->SetImageList(arg2,arg3);
30866 wxPyEndAllowThreads(__tstate);
30867 if (PyErr_Occurred()) SWIG_fail;
30868 }
30869 resultobj = SWIG_Py_Void();
30870 return resultobj;
30871 fail:
30872 return NULL;
30873 }
30874
30875
30876 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30877 PyObject *resultobj = 0;
30878 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30879 wxImageList *arg2 = (wxImageList *) 0 ;
30880 int arg3 ;
30881 void *argp1 = 0 ;
30882 int res1 = 0 ;
30883 int res2 = 0 ;
30884 int val3 ;
30885 int ecode3 = 0 ;
30886 PyObject * obj0 = 0 ;
30887 PyObject * obj1 = 0 ;
30888 PyObject * obj2 = 0 ;
30889 char * kwnames[] = {
30890 (char *) "self",(char *) "imageList",(char *) "which", NULL
30891 };
30892
30893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30895 if (!SWIG_IsOK(res1)) {
30896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30897 }
30898 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30899 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30900 if (!SWIG_IsOK(res2)) {
30901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30902 }
30903 ecode3 = SWIG_AsVal_int(obj2, &val3);
30904 if (!SWIG_IsOK(ecode3)) {
30905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30906 }
30907 arg3 = static_cast< int >(val3);
30908 {
30909 PyThreadState* __tstate = wxPyBeginAllowThreads();
30910 (arg1)->AssignImageList(arg2,arg3);
30911 wxPyEndAllowThreads(__tstate);
30912 if (PyErr_Occurred()) SWIG_fail;
30913 }
30914 resultobj = SWIG_Py_Void();
30915 return resultobj;
30916 fail:
30917 return NULL;
30918 }
30919
30920
30921 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30922 PyObject *resultobj = 0;
30923 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30924 bool result;
30925 void *argp1 = 0 ;
30926 int res1 = 0 ;
30927 PyObject *swig_obj[1] ;
30928
30929 if (!args) SWIG_fail;
30930 swig_obj[0] = args;
30931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30932 if (!SWIG_IsOK(res1)) {
30933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30934 }
30935 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30936 {
30937 PyThreadState* __tstate = wxPyBeginAllowThreads();
30938 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30939 wxPyEndAllowThreads(__tstate);
30940 if (PyErr_Occurred()) SWIG_fail;
30941 }
30942 {
30943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30944 }
30945 return resultobj;
30946 fail:
30947 return NULL;
30948 }
30949
30950
30951 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30952 PyObject *resultobj = 0;
30953 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30954 bool result;
30955 void *argp1 = 0 ;
30956 int res1 = 0 ;
30957 PyObject *swig_obj[1] ;
30958
30959 if (!args) SWIG_fail;
30960 swig_obj[0] = args;
30961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30962 if (!SWIG_IsOK(res1)) {
30963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30964 }
30965 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30966 {
30967 PyThreadState* __tstate = wxPyBeginAllowThreads();
30968 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30969 wxPyEndAllowThreads(__tstate);
30970 if (PyErr_Occurred()) SWIG_fail;
30971 }
30972 {
30973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30974 }
30975 return resultobj;
30976 fail:
30977 return NULL;
30978 }
30979
30980
30981 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30982 PyObject *resultobj = 0;
30983 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30984 long arg2 ;
30985 void *argp1 = 0 ;
30986 int res1 = 0 ;
30987 long val2 ;
30988 int ecode2 = 0 ;
30989 PyObject * obj0 = 0 ;
30990 PyObject * obj1 = 0 ;
30991 char * kwnames[] = {
30992 (char *) "self",(char *) "item", NULL
30993 };
30994
30995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30997 if (!SWIG_IsOK(res1)) {
30998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30999 }
31000 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31001 ecode2 = SWIG_AsVal_long(obj1, &val2);
31002 if (!SWIG_IsOK(ecode2)) {
31003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
31004 }
31005 arg2 = static_cast< long >(val2);
31006 {
31007 PyThreadState* __tstate = wxPyBeginAllowThreads();
31008 (arg1)->RefreshItem(arg2);
31009 wxPyEndAllowThreads(__tstate);
31010 if (PyErr_Occurred()) SWIG_fail;
31011 }
31012 resultobj = SWIG_Py_Void();
31013 return resultobj;
31014 fail:
31015 return NULL;
31016 }
31017
31018
31019 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31020 PyObject *resultobj = 0;
31021 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31022 long arg2 ;
31023 long arg3 ;
31024 void *argp1 = 0 ;
31025 int res1 = 0 ;
31026 long val2 ;
31027 int ecode2 = 0 ;
31028 long val3 ;
31029 int ecode3 = 0 ;
31030 PyObject * obj0 = 0 ;
31031 PyObject * obj1 = 0 ;
31032 PyObject * obj2 = 0 ;
31033 char * kwnames[] = {
31034 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
31035 };
31036
31037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31039 if (!SWIG_IsOK(res1)) {
31040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31041 }
31042 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31043 ecode2 = SWIG_AsVal_long(obj1, &val2);
31044 if (!SWIG_IsOK(ecode2)) {
31045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
31046 }
31047 arg2 = static_cast< long >(val2);
31048 ecode3 = SWIG_AsVal_long(obj2, &val3);
31049 if (!SWIG_IsOK(ecode3)) {
31050 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
31051 }
31052 arg3 = static_cast< long >(val3);
31053 {
31054 PyThreadState* __tstate = wxPyBeginAllowThreads();
31055 (arg1)->RefreshItems(arg2,arg3);
31056 wxPyEndAllowThreads(__tstate);
31057 if (PyErr_Occurred()) SWIG_fail;
31058 }
31059 resultobj = SWIG_Py_Void();
31060 return resultobj;
31061 fail:
31062 return NULL;
31063 }
31064
31065
31066 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31067 PyObject *resultobj = 0;
31068 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31069 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
31070 bool result;
31071 void *argp1 = 0 ;
31072 int res1 = 0 ;
31073 int val2 ;
31074 int ecode2 = 0 ;
31075 PyObject * obj0 = 0 ;
31076 PyObject * obj1 = 0 ;
31077 char * kwnames[] = {
31078 (char *) "self",(char *) "flag", NULL
31079 };
31080
31081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
31082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31083 if (!SWIG_IsOK(res1)) {
31084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31085 }
31086 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31087 if (obj1) {
31088 ecode2 = SWIG_AsVal_int(obj1, &val2);
31089 if (!SWIG_IsOK(ecode2)) {
31090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
31091 }
31092 arg2 = static_cast< int >(val2);
31093 }
31094 {
31095 PyThreadState* __tstate = wxPyBeginAllowThreads();
31096 result = (bool)(arg1)->Arrange(arg2);
31097 wxPyEndAllowThreads(__tstate);
31098 if (PyErr_Occurred()) SWIG_fail;
31099 }
31100 {
31101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31102 }
31103 return resultobj;
31104 fail:
31105 return NULL;
31106 }
31107
31108
31109 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31110 PyObject *resultobj = 0;
31111 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31112 long arg2 ;
31113 bool result;
31114 void *argp1 = 0 ;
31115 int res1 = 0 ;
31116 long val2 ;
31117 int ecode2 = 0 ;
31118 PyObject * obj0 = 0 ;
31119 PyObject * obj1 = 0 ;
31120 char * kwnames[] = {
31121 (char *) "self",(char *) "item", NULL
31122 };
31123
31124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
31125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31126 if (!SWIG_IsOK(res1)) {
31127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31128 }
31129 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31130 ecode2 = SWIG_AsVal_long(obj1, &val2);
31131 if (!SWIG_IsOK(ecode2)) {
31132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
31133 }
31134 arg2 = static_cast< long >(val2);
31135 {
31136 PyThreadState* __tstate = wxPyBeginAllowThreads();
31137 result = (bool)(arg1)->DeleteItem(arg2);
31138 wxPyEndAllowThreads(__tstate);
31139 if (PyErr_Occurred()) SWIG_fail;
31140 }
31141 {
31142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31143 }
31144 return resultobj;
31145 fail:
31146 return NULL;
31147 }
31148
31149
31150 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31151 PyObject *resultobj = 0;
31152 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31153 bool result;
31154 void *argp1 = 0 ;
31155 int res1 = 0 ;
31156 PyObject *swig_obj[1] ;
31157
31158 if (!args) SWIG_fail;
31159 swig_obj[0] = args;
31160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31161 if (!SWIG_IsOK(res1)) {
31162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31163 }
31164 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31165 {
31166 PyThreadState* __tstate = wxPyBeginAllowThreads();
31167 result = (bool)(arg1)->DeleteAllItems();
31168 wxPyEndAllowThreads(__tstate);
31169 if (PyErr_Occurred()) SWIG_fail;
31170 }
31171 {
31172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31173 }
31174 return resultobj;
31175 fail:
31176 return NULL;
31177 }
31178
31179
31180 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31181 PyObject *resultobj = 0;
31182 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31183 int arg2 ;
31184 bool result;
31185 void *argp1 = 0 ;
31186 int res1 = 0 ;
31187 int val2 ;
31188 int ecode2 = 0 ;
31189 PyObject * obj0 = 0 ;
31190 PyObject * obj1 = 0 ;
31191 char * kwnames[] = {
31192 (char *) "self",(char *) "col", NULL
31193 };
31194
31195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
31196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31197 if (!SWIG_IsOK(res1)) {
31198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31199 }
31200 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31201 ecode2 = SWIG_AsVal_int(obj1, &val2);
31202 if (!SWIG_IsOK(ecode2)) {
31203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
31204 }
31205 arg2 = static_cast< int >(val2);
31206 {
31207 PyThreadState* __tstate = wxPyBeginAllowThreads();
31208 result = (bool)(arg1)->DeleteColumn(arg2);
31209 wxPyEndAllowThreads(__tstate);
31210 if (PyErr_Occurred()) SWIG_fail;
31211 }
31212 {
31213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31214 }
31215 return resultobj;
31216 fail:
31217 return NULL;
31218 }
31219
31220
31221 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31222 PyObject *resultobj = 0;
31223 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31224 bool result;
31225 void *argp1 = 0 ;
31226 int res1 = 0 ;
31227 PyObject *swig_obj[1] ;
31228
31229 if (!args) SWIG_fail;
31230 swig_obj[0] = args;
31231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31232 if (!SWIG_IsOK(res1)) {
31233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31234 }
31235 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31236 {
31237 PyThreadState* __tstate = wxPyBeginAllowThreads();
31238 result = (bool)(arg1)->DeleteAllColumns();
31239 wxPyEndAllowThreads(__tstate);
31240 if (PyErr_Occurred()) SWIG_fail;
31241 }
31242 {
31243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31244 }
31245 return resultobj;
31246 fail:
31247 return NULL;
31248 }
31249
31250
31251 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31252 PyObject *resultobj = 0;
31253 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31254 void *argp1 = 0 ;
31255 int res1 = 0 ;
31256 PyObject *swig_obj[1] ;
31257
31258 if (!args) SWIG_fail;
31259 swig_obj[0] = args;
31260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31261 if (!SWIG_IsOK(res1)) {
31262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31263 }
31264 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31265 {
31266 PyThreadState* __tstate = wxPyBeginAllowThreads();
31267 (arg1)->ClearAll();
31268 wxPyEndAllowThreads(__tstate);
31269 if (PyErr_Occurred()) SWIG_fail;
31270 }
31271 resultobj = SWIG_Py_Void();
31272 return resultobj;
31273 fail:
31274 return NULL;
31275 }
31276
31277
31278 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31279 PyObject *resultobj = 0;
31280 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31281 long arg2 ;
31282 void *argp1 = 0 ;
31283 int res1 = 0 ;
31284 long val2 ;
31285 int ecode2 = 0 ;
31286 PyObject * obj0 = 0 ;
31287 PyObject * obj1 = 0 ;
31288 char * kwnames[] = {
31289 (char *) "self",(char *) "item", NULL
31290 };
31291
31292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31294 if (!SWIG_IsOK(res1)) {
31295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31296 }
31297 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31298 ecode2 = SWIG_AsVal_long(obj1, &val2);
31299 if (!SWIG_IsOK(ecode2)) {
31300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
31301 }
31302 arg2 = static_cast< long >(val2);
31303 {
31304 PyThreadState* __tstate = wxPyBeginAllowThreads();
31305 (arg1)->EditLabel(arg2);
31306 wxPyEndAllowThreads(__tstate);
31307 if (PyErr_Occurred()) SWIG_fail;
31308 }
31309 resultobj = SWIG_Py_Void();
31310 return resultobj;
31311 fail:
31312 return NULL;
31313 }
31314
31315
31316 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31317 PyObject *resultobj = 0;
31318 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31319 long arg2 ;
31320 bool result;
31321 void *argp1 = 0 ;
31322 int res1 = 0 ;
31323 long val2 ;
31324 int ecode2 = 0 ;
31325 PyObject * obj0 = 0 ;
31326 PyObject * obj1 = 0 ;
31327 char * kwnames[] = {
31328 (char *) "self",(char *) "item", NULL
31329 };
31330
31331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31333 if (!SWIG_IsOK(res1)) {
31334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31335 }
31336 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31337 ecode2 = SWIG_AsVal_long(obj1, &val2);
31338 if (!SWIG_IsOK(ecode2)) {
31339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31340 }
31341 arg2 = static_cast< long >(val2);
31342 {
31343 PyThreadState* __tstate = wxPyBeginAllowThreads();
31344 result = (bool)(arg1)->EnsureVisible(arg2);
31345 wxPyEndAllowThreads(__tstate);
31346 if (PyErr_Occurred()) SWIG_fail;
31347 }
31348 {
31349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31350 }
31351 return resultobj;
31352 fail:
31353 return NULL;
31354 }
31355
31356
31357 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31358 PyObject *resultobj = 0;
31359 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31360 long arg2 ;
31361 wxString *arg3 = 0 ;
31362 bool arg4 = (bool) false ;
31363 long result;
31364 void *argp1 = 0 ;
31365 int res1 = 0 ;
31366 long val2 ;
31367 int ecode2 = 0 ;
31368 bool temp3 = false ;
31369 bool val4 ;
31370 int ecode4 = 0 ;
31371 PyObject * obj0 = 0 ;
31372 PyObject * obj1 = 0 ;
31373 PyObject * obj2 = 0 ;
31374 PyObject * obj3 = 0 ;
31375 char * kwnames[] = {
31376 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31377 };
31378
31379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31381 if (!SWIG_IsOK(res1)) {
31382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31383 }
31384 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31385 ecode2 = SWIG_AsVal_long(obj1, &val2);
31386 if (!SWIG_IsOK(ecode2)) {
31387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31388 }
31389 arg2 = static_cast< long >(val2);
31390 {
31391 arg3 = wxString_in_helper(obj2);
31392 if (arg3 == NULL) SWIG_fail;
31393 temp3 = true;
31394 }
31395 if (obj3) {
31396 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31397 if (!SWIG_IsOK(ecode4)) {
31398 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31399 }
31400 arg4 = static_cast< bool >(val4);
31401 }
31402 {
31403 PyThreadState* __tstate = wxPyBeginAllowThreads();
31404 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31405 wxPyEndAllowThreads(__tstate);
31406 if (PyErr_Occurred()) SWIG_fail;
31407 }
31408 resultobj = SWIG_From_long(static_cast< long >(result));
31409 {
31410 if (temp3)
31411 delete arg3;
31412 }
31413 return resultobj;
31414 fail:
31415 {
31416 if (temp3)
31417 delete arg3;
31418 }
31419 return NULL;
31420 }
31421
31422
31423 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31424 PyObject *resultobj = 0;
31425 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31426 long arg2 ;
31427 long arg3 ;
31428 long result;
31429 void *argp1 = 0 ;
31430 int res1 = 0 ;
31431 long val2 ;
31432 int ecode2 = 0 ;
31433 long val3 ;
31434 int ecode3 = 0 ;
31435 PyObject * obj0 = 0 ;
31436 PyObject * obj1 = 0 ;
31437 PyObject * obj2 = 0 ;
31438 char * kwnames[] = {
31439 (char *) "self",(char *) "start",(char *) "data", NULL
31440 };
31441
31442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31444 if (!SWIG_IsOK(res1)) {
31445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31446 }
31447 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31448 ecode2 = SWIG_AsVal_long(obj1, &val2);
31449 if (!SWIG_IsOK(ecode2)) {
31450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31451 }
31452 arg2 = static_cast< long >(val2);
31453 ecode3 = SWIG_AsVal_long(obj2, &val3);
31454 if (!SWIG_IsOK(ecode3)) {
31455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31456 }
31457 arg3 = static_cast< long >(val3);
31458 {
31459 PyThreadState* __tstate = wxPyBeginAllowThreads();
31460 result = (long)(arg1)->FindItem(arg2,arg3);
31461 wxPyEndAllowThreads(__tstate);
31462 if (PyErr_Occurred()) SWIG_fail;
31463 }
31464 resultobj = SWIG_From_long(static_cast< long >(result));
31465 return resultobj;
31466 fail:
31467 return NULL;
31468 }
31469
31470
31471 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31472 PyObject *resultobj = 0;
31473 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31474 long arg2 ;
31475 wxPoint *arg3 = 0 ;
31476 int arg4 ;
31477 long result;
31478 void *argp1 = 0 ;
31479 int res1 = 0 ;
31480 long val2 ;
31481 int ecode2 = 0 ;
31482 wxPoint temp3 ;
31483 int val4 ;
31484 int ecode4 = 0 ;
31485 PyObject * obj0 = 0 ;
31486 PyObject * obj1 = 0 ;
31487 PyObject * obj2 = 0 ;
31488 PyObject * obj3 = 0 ;
31489 char * kwnames[] = {
31490 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31491 };
31492
31493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31495 if (!SWIG_IsOK(res1)) {
31496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31497 }
31498 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31499 ecode2 = SWIG_AsVal_long(obj1, &val2);
31500 if (!SWIG_IsOK(ecode2)) {
31501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31502 }
31503 arg2 = static_cast< long >(val2);
31504 {
31505 arg3 = &temp3;
31506 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31507 }
31508 ecode4 = SWIG_AsVal_int(obj3, &val4);
31509 if (!SWIG_IsOK(ecode4)) {
31510 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31511 }
31512 arg4 = static_cast< int >(val4);
31513 {
31514 PyThreadState* __tstate = wxPyBeginAllowThreads();
31515 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31516 wxPyEndAllowThreads(__tstate);
31517 if (PyErr_Occurred()) SWIG_fail;
31518 }
31519 resultobj = SWIG_From_long(static_cast< long >(result));
31520 return resultobj;
31521 fail:
31522 return NULL;
31523 }
31524
31525
31526 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31527 PyObject *resultobj = 0;
31528 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31529 wxPoint *arg2 = 0 ;
31530 int *arg3 = 0 ;
31531 long result;
31532 void *argp1 = 0 ;
31533 int res1 = 0 ;
31534 wxPoint temp2 ;
31535 int temp3 ;
31536 int res3 = SWIG_TMPOBJ ;
31537 PyObject * obj0 = 0 ;
31538 PyObject * obj1 = 0 ;
31539 char * kwnames[] = {
31540 (char *) "self",(char *) "point", NULL
31541 };
31542
31543 arg3 = &temp3;
31544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31546 if (!SWIG_IsOK(res1)) {
31547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31548 }
31549 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31550 {
31551 arg2 = &temp2;
31552 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31553 }
31554 {
31555 PyThreadState* __tstate = wxPyBeginAllowThreads();
31556 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31557 wxPyEndAllowThreads(__tstate);
31558 if (PyErr_Occurred()) SWIG_fail;
31559 }
31560 resultobj = SWIG_From_long(static_cast< long >(result));
31561 if (SWIG_IsTmpObj(res3)) {
31562 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31563 } else {
31564 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31565 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31566 }
31567 return resultobj;
31568 fail:
31569 return NULL;
31570 }
31571
31572
31573 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31574 PyObject *resultobj = 0;
31575 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31576 wxPoint *arg2 = 0 ;
31577 int *arg3 = 0 ;
31578 long *arg4 = (long *) 0 ;
31579 long result;
31580 void *argp1 = 0 ;
31581 int res1 = 0 ;
31582 wxPoint temp2 ;
31583 int temp3 ;
31584 int res3 = SWIG_TMPOBJ ;
31585 long temp4 ;
31586 int res4 = SWIG_TMPOBJ ;
31587 PyObject * obj0 = 0 ;
31588 PyObject * obj1 = 0 ;
31589 char * kwnames[] = {
31590 (char *) "self",(char *) "point", NULL
31591 };
31592
31593 arg3 = &temp3;
31594 arg4 = &temp4;
31595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31597 if (!SWIG_IsOK(res1)) {
31598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31599 }
31600 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31601 {
31602 arg2 = &temp2;
31603 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31604 }
31605 {
31606 PyThreadState* __tstate = wxPyBeginAllowThreads();
31607 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31608 wxPyEndAllowThreads(__tstate);
31609 if (PyErr_Occurred()) SWIG_fail;
31610 }
31611 resultobj = SWIG_From_long(static_cast< long >(result));
31612 if (SWIG_IsTmpObj(res3)) {
31613 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31614 } else {
31615 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31616 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31617 }
31618 if (SWIG_IsTmpObj(res4)) {
31619 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31620 } else {
31621 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31622 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31623 }
31624 return resultobj;
31625 fail:
31626 return NULL;
31627 }
31628
31629
31630 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31631 PyObject *resultobj = 0;
31632 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31633 wxListItem *arg2 = 0 ;
31634 long result;
31635 void *argp1 = 0 ;
31636 int res1 = 0 ;
31637 void *argp2 = 0 ;
31638 int res2 = 0 ;
31639 PyObject * obj0 = 0 ;
31640 PyObject * obj1 = 0 ;
31641 char * kwnames[] = {
31642 (char *) "self",(char *) "info", NULL
31643 };
31644
31645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31647 if (!SWIG_IsOK(res1)) {
31648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31649 }
31650 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31651 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31652 if (!SWIG_IsOK(res2)) {
31653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31654 }
31655 if (!argp2) {
31656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31657 }
31658 arg2 = reinterpret_cast< wxListItem * >(argp2);
31659 {
31660 PyThreadState* __tstate = wxPyBeginAllowThreads();
31661 result = (long)(arg1)->InsertItem(*arg2);
31662 wxPyEndAllowThreads(__tstate);
31663 if (PyErr_Occurred()) SWIG_fail;
31664 }
31665 resultobj = SWIG_From_long(static_cast< long >(result));
31666 return resultobj;
31667 fail:
31668 return NULL;
31669 }
31670
31671
31672 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31673 PyObject *resultobj = 0;
31674 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31675 long arg2 ;
31676 wxString *arg3 = 0 ;
31677 int arg4 = (int) -1 ;
31678 long result;
31679 void *argp1 = 0 ;
31680 int res1 = 0 ;
31681 long val2 ;
31682 int ecode2 = 0 ;
31683 bool temp3 = false ;
31684 int val4 ;
31685 int ecode4 = 0 ;
31686 PyObject * obj0 = 0 ;
31687 PyObject * obj1 = 0 ;
31688 PyObject * obj2 = 0 ;
31689 PyObject * obj3 = 0 ;
31690 char * kwnames[] = {
31691 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31692 };
31693
31694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31696 if (!SWIG_IsOK(res1)) {
31697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31698 }
31699 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31700 ecode2 = SWIG_AsVal_long(obj1, &val2);
31701 if (!SWIG_IsOK(ecode2)) {
31702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31703 }
31704 arg2 = static_cast< long >(val2);
31705 {
31706 arg3 = wxString_in_helper(obj2);
31707 if (arg3 == NULL) SWIG_fail;
31708 temp3 = true;
31709 }
31710 if (obj3) {
31711 ecode4 = SWIG_AsVal_int(obj3, &val4);
31712 if (!SWIG_IsOK(ecode4)) {
31713 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31714 }
31715 arg4 = static_cast< int >(val4);
31716 }
31717 {
31718 PyThreadState* __tstate = wxPyBeginAllowThreads();
31719 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31720 wxPyEndAllowThreads(__tstate);
31721 if (PyErr_Occurred()) SWIG_fail;
31722 }
31723 resultobj = SWIG_From_long(static_cast< long >(result));
31724 {
31725 if (temp3)
31726 delete arg3;
31727 }
31728 return resultobj;
31729 fail:
31730 {
31731 if (temp3)
31732 delete arg3;
31733 }
31734 return NULL;
31735 }
31736
31737
31738 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31739 PyObject *resultobj = 0;
31740 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31741 long arg2 ;
31742 int arg3 ;
31743 long result;
31744 void *argp1 = 0 ;
31745 int res1 = 0 ;
31746 long val2 ;
31747 int ecode2 = 0 ;
31748 int val3 ;
31749 int ecode3 = 0 ;
31750 PyObject * obj0 = 0 ;
31751 PyObject * obj1 = 0 ;
31752 PyObject * obj2 = 0 ;
31753 char * kwnames[] = {
31754 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31755 };
31756
31757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31759 if (!SWIG_IsOK(res1)) {
31760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31761 }
31762 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31763 ecode2 = SWIG_AsVal_long(obj1, &val2);
31764 if (!SWIG_IsOK(ecode2)) {
31765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31766 }
31767 arg2 = static_cast< long >(val2);
31768 ecode3 = SWIG_AsVal_int(obj2, &val3);
31769 if (!SWIG_IsOK(ecode3)) {
31770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31771 }
31772 arg3 = static_cast< int >(val3);
31773 {
31774 PyThreadState* __tstate = wxPyBeginAllowThreads();
31775 result = (long)(arg1)->InsertItem(arg2,arg3);
31776 wxPyEndAllowThreads(__tstate);
31777 if (PyErr_Occurred()) SWIG_fail;
31778 }
31779 resultobj = SWIG_From_long(static_cast< long >(result));
31780 return resultobj;
31781 fail:
31782 return NULL;
31783 }
31784
31785
31786 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31787 PyObject *resultobj = 0;
31788 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31789 long arg2 ;
31790 wxString *arg3 = 0 ;
31791 int arg4 ;
31792 long result;
31793 void *argp1 = 0 ;
31794 int res1 = 0 ;
31795 long val2 ;
31796 int ecode2 = 0 ;
31797 bool temp3 = false ;
31798 int val4 ;
31799 int ecode4 = 0 ;
31800 PyObject * obj0 = 0 ;
31801 PyObject * obj1 = 0 ;
31802 PyObject * obj2 = 0 ;
31803 PyObject * obj3 = 0 ;
31804 char * kwnames[] = {
31805 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31806 };
31807
31808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31810 if (!SWIG_IsOK(res1)) {
31811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31812 }
31813 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31814 ecode2 = SWIG_AsVal_long(obj1, &val2);
31815 if (!SWIG_IsOK(ecode2)) {
31816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31817 }
31818 arg2 = static_cast< long >(val2);
31819 {
31820 arg3 = wxString_in_helper(obj2);
31821 if (arg3 == NULL) SWIG_fail;
31822 temp3 = true;
31823 }
31824 ecode4 = SWIG_AsVal_int(obj3, &val4);
31825 if (!SWIG_IsOK(ecode4)) {
31826 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31827 }
31828 arg4 = static_cast< int >(val4);
31829 {
31830 PyThreadState* __tstate = wxPyBeginAllowThreads();
31831 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31832 wxPyEndAllowThreads(__tstate);
31833 if (PyErr_Occurred()) SWIG_fail;
31834 }
31835 resultobj = SWIG_From_long(static_cast< long >(result));
31836 {
31837 if (temp3)
31838 delete arg3;
31839 }
31840 return resultobj;
31841 fail:
31842 {
31843 if (temp3)
31844 delete arg3;
31845 }
31846 return NULL;
31847 }
31848
31849
31850 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31851 PyObject *resultobj = 0;
31852 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31853 long arg2 ;
31854 wxListItem *arg3 = 0 ;
31855 long result;
31856 void *argp1 = 0 ;
31857 int res1 = 0 ;
31858 long val2 ;
31859 int ecode2 = 0 ;
31860 void *argp3 = 0 ;
31861 int res3 = 0 ;
31862 PyObject * obj0 = 0 ;
31863 PyObject * obj1 = 0 ;
31864 PyObject * obj2 = 0 ;
31865 char * kwnames[] = {
31866 (char *) "self",(char *) "col",(char *) "info", NULL
31867 };
31868
31869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31871 if (!SWIG_IsOK(res1)) {
31872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31873 }
31874 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31875 ecode2 = SWIG_AsVal_long(obj1, &val2);
31876 if (!SWIG_IsOK(ecode2)) {
31877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31878 }
31879 arg2 = static_cast< long >(val2);
31880 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31881 if (!SWIG_IsOK(res3)) {
31882 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31883 }
31884 if (!argp3) {
31885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31886 }
31887 arg3 = reinterpret_cast< wxListItem * >(argp3);
31888 {
31889 PyThreadState* __tstate = wxPyBeginAllowThreads();
31890 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31891 wxPyEndAllowThreads(__tstate);
31892 if (PyErr_Occurred()) SWIG_fail;
31893 }
31894 resultobj = SWIG_From_long(static_cast< long >(result));
31895 return resultobj;
31896 fail:
31897 return NULL;
31898 }
31899
31900
31901 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31902 PyObject *resultobj = 0;
31903 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31904 long arg2 ;
31905 wxString *arg3 = 0 ;
31906 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31907 int arg5 = (int) -1 ;
31908 long result;
31909 void *argp1 = 0 ;
31910 int res1 = 0 ;
31911 long val2 ;
31912 int ecode2 = 0 ;
31913 bool temp3 = false ;
31914 int val4 ;
31915 int ecode4 = 0 ;
31916 int val5 ;
31917 int ecode5 = 0 ;
31918 PyObject * obj0 = 0 ;
31919 PyObject * obj1 = 0 ;
31920 PyObject * obj2 = 0 ;
31921 PyObject * obj3 = 0 ;
31922 PyObject * obj4 = 0 ;
31923 char * kwnames[] = {
31924 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31925 };
31926
31927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31929 if (!SWIG_IsOK(res1)) {
31930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31931 }
31932 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31933 ecode2 = SWIG_AsVal_long(obj1, &val2);
31934 if (!SWIG_IsOK(ecode2)) {
31935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31936 }
31937 arg2 = static_cast< long >(val2);
31938 {
31939 arg3 = wxString_in_helper(obj2);
31940 if (arg3 == NULL) SWIG_fail;
31941 temp3 = true;
31942 }
31943 if (obj3) {
31944 ecode4 = SWIG_AsVal_int(obj3, &val4);
31945 if (!SWIG_IsOK(ecode4)) {
31946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31947 }
31948 arg4 = static_cast< int >(val4);
31949 }
31950 if (obj4) {
31951 ecode5 = SWIG_AsVal_int(obj4, &val5);
31952 if (!SWIG_IsOK(ecode5)) {
31953 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31954 }
31955 arg5 = static_cast< int >(val5);
31956 }
31957 {
31958 PyThreadState* __tstate = wxPyBeginAllowThreads();
31959 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31960 wxPyEndAllowThreads(__tstate);
31961 if (PyErr_Occurred()) SWIG_fail;
31962 }
31963 resultobj = SWIG_From_long(static_cast< long >(result));
31964 {
31965 if (temp3)
31966 delete arg3;
31967 }
31968 return resultobj;
31969 fail:
31970 {
31971 if (temp3)
31972 delete arg3;
31973 }
31974 return NULL;
31975 }
31976
31977
31978 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31979 PyObject *resultobj = 0;
31980 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31981 long arg2 ;
31982 void *argp1 = 0 ;
31983 int res1 = 0 ;
31984 long val2 ;
31985 int ecode2 = 0 ;
31986 PyObject * obj0 = 0 ;
31987 PyObject * obj1 = 0 ;
31988 char * kwnames[] = {
31989 (char *) "self",(char *) "count", NULL
31990 };
31991
31992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31994 if (!SWIG_IsOK(res1)) {
31995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31996 }
31997 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31998 ecode2 = SWIG_AsVal_long(obj1, &val2);
31999 if (!SWIG_IsOK(ecode2)) {
32000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
32001 }
32002 arg2 = static_cast< long >(val2);
32003 {
32004 PyThreadState* __tstate = wxPyBeginAllowThreads();
32005 (arg1)->SetItemCount(arg2);
32006 wxPyEndAllowThreads(__tstate);
32007 if (PyErr_Occurred()) SWIG_fail;
32008 }
32009 resultobj = SWIG_Py_Void();
32010 return resultobj;
32011 fail:
32012 return NULL;
32013 }
32014
32015
32016 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32017 PyObject *resultobj = 0;
32018 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32019 int arg2 ;
32020 int arg3 ;
32021 bool result;
32022 void *argp1 = 0 ;
32023 int res1 = 0 ;
32024 int val2 ;
32025 int ecode2 = 0 ;
32026 int val3 ;
32027 int ecode3 = 0 ;
32028 PyObject * obj0 = 0 ;
32029 PyObject * obj1 = 0 ;
32030 PyObject * obj2 = 0 ;
32031 char * kwnames[] = {
32032 (char *) "self",(char *) "dx",(char *) "dy", NULL
32033 };
32034
32035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32037 if (!SWIG_IsOK(res1)) {
32038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32039 }
32040 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32041 ecode2 = SWIG_AsVal_int(obj1, &val2);
32042 if (!SWIG_IsOK(ecode2)) {
32043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
32044 }
32045 arg2 = static_cast< int >(val2);
32046 ecode3 = SWIG_AsVal_int(obj2, &val3);
32047 if (!SWIG_IsOK(ecode3)) {
32048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
32049 }
32050 arg3 = static_cast< int >(val3);
32051 {
32052 PyThreadState* __tstate = wxPyBeginAllowThreads();
32053 result = (bool)(arg1)->ScrollList(arg2,arg3);
32054 wxPyEndAllowThreads(__tstate);
32055 if (PyErr_Occurred()) SWIG_fail;
32056 }
32057 {
32058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32059 }
32060 return resultobj;
32061 fail:
32062 return NULL;
32063 }
32064
32065
32066 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32067 PyObject *resultobj = 0;
32068 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32069 long arg2 ;
32070 wxColour *arg3 = 0 ;
32071 void *argp1 = 0 ;
32072 int res1 = 0 ;
32073 long val2 ;
32074 int ecode2 = 0 ;
32075 wxColour temp3 ;
32076 PyObject * obj0 = 0 ;
32077 PyObject * obj1 = 0 ;
32078 PyObject * obj2 = 0 ;
32079 char * kwnames[] = {
32080 (char *) "self",(char *) "item",(char *) "col", NULL
32081 };
32082
32083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32085 if (!SWIG_IsOK(res1)) {
32086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32087 }
32088 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32089 ecode2 = SWIG_AsVal_long(obj1, &val2);
32090 if (!SWIG_IsOK(ecode2)) {
32091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
32092 }
32093 arg2 = static_cast< long >(val2);
32094 {
32095 arg3 = &temp3;
32096 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32097 }
32098 {
32099 PyThreadState* __tstate = wxPyBeginAllowThreads();
32100 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
32101 wxPyEndAllowThreads(__tstate);
32102 if (PyErr_Occurred()) SWIG_fail;
32103 }
32104 resultobj = SWIG_Py_Void();
32105 return resultobj;
32106 fail:
32107 return NULL;
32108 }
32109
32110
32111 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32112 PyObject *resultobj = 0;
32113 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32114 long arg2 ;
32115 wxColour result;
32116 void *argp1 = 0 ;
32117 int res1 = 0 ;
32118 long val2 ;
32119 int ecode2 = 0 ;
32120 PyObject * obj0 = 0 ;
32121 PyObject * obj1 = 0 ;
32122 char * kwnames[] = {
32123 (char *) "self",(char *) "item", NULL
32124 };
32125
32126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
32127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32128 if (!SWIG_IsOK(res1)) {
32129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32130 }
32131 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32132 ecode2 = SWIG_AsVal_long(obj1, &val2);
32133 if (!SWIG_IsOK(ecode2)) {
32134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
32135 }
32136 arg2 = static_cast< long >(val2);
32137 {
32138 PyThreadState* __tstate = wxPyBeginAllowThreads();
32139 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
32140 wxPyEndAllowThreads(__tstate);
32141 if (PyErr_Occurred()) SWIG_fail;
32142 }
32143 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32144 return resultobj;
32145 fail:
32146 return NULL;
32147 }
32148
32149
32150 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32151 PyObject *resultobj = 0;
32152 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32153 long arg2 ;
32154 wxColour *arg3 = 0 ;
32155 void *argp1 = 0 ;
32156 int res1 = 0 ;
32157 long val2 ;
32158 int ecode2 = 0 ;
32159 wxColour temp3 ;
32160 PyObject * obj0 = 0 ;
32161 PyObject * obj1 = 0 ;
32162 PyObject * obj2 = 0 ;
32163 char * kwnames[] = {
32164 (char *) "self",(char *) "item",(char *) "col", NULL
32165 };
32166
32167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32169 if (!SWIG_IsOK(res1)) {
32170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32171 }
32172 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32173 ecode2 = SWIG_AsVal_long(obj1, &val2);
32174 if (!SWIG_IsOK(ecode2)) {
32175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
32176 }
32177 arg2 = static_cast< long >(val2);
32178 {
32179 arg3 = &temp3;
32180 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32181 }
32182 {
32183 PyThreadState* __tstate = wxPyBeginAllowThreads();
32184 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
32185 wxPyEndAllowThreads(__tstate);
32186 if (PyErr_Occurred()) SWIG_fail;
32187 }
32188 resultobj = SWIG_Py_Void();
32189 return resultobj;
32190 fail:
32191 return NULL;
32192 }
32193
32194
32195 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32196 PyObject *resultobj = 0;
32197 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32198 long arg2 ;
32199 wxColour result;
32200 void *argp1 = 0 ;
32201 int res1 = 0 ;
32202 long val2 ;
32203 int ecode2 = 0 ;
32204 PyObject * obj0 = 0 ;
32205 PyObject * obj1 = 0 ;
32206 char * kwnames[] = {
32207 (char *) "self",(char *) "item", NULL
32208 };
32209
32210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
32211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32212 if (!SWIG_IsOK(res1)) {
32213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32214 }
32215 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32216 ecode2 = SWIG_AsVal_long(obj1, &val2);
32217 if (!SWIG_IsOK(ecode2)) {
32218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
32219 }
32220 arg2 = static_cast< long >(val2);
32221 {
32222 PyThreadState* __tstate = wxPyBeginAllowThreads();
32223 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
32224 wxPyEndAllowThreads(__tstate);
32225 if (PyErr_Occurred()) SWIG_fail;
32226 }
32227 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32228 return resultobj;
32229 fail:
32230 return NULL;
32231 }
32232
32233
32234 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32235 PyObject *resultobj = 0;
32236 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32237 long arg2 ;
32238 wxFont *arg3 = 0 ;
32239 void *argp1 = 0 ;
32240 int res1 = 0 ;
32241 long val2 ;
32242 int ecode2 = 0 ;
32243 void *argp3 = 0 ;
32244 int res3 = 0 ;
32245 PyObject * obj0 = 0 ;
32246 PyObject * obj1 = 0 ;
32247 PyObject * obj2 = 0 ;
32248 char * kwnames[] = {
32249 (char *) "self",(char *) "item",(char *) "f", NULL
32250 };
32251
32252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32254 if (!SWIG_IsOK(res1)) {
32255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32256 }
32257 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32258 ecode2 = SWIG_AsVal_long(obj1, &val2);
32259 if (!SWIG_IsOK(ecode2)) {
32260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
32261 }
32262 arg2 = static_cast< long >(val2);
32263 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
32264 if (!SWIG_IsOK(res3)) {
32265 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32266 }
32267 if (!argp3) {
32268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32269 }
32270 arg3 = reinterpret_cast< wxFont * >(argp3);
32271 {
32272 PyThreadState* __tstate = wxPyBeginAllowThreads();
32273 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
32274 wxPyEndAllowThreads(__tstate);
32275 if (PyErr_Occurred()) SWIG_fail;
32276 }
32277 resultobj = SWIG_Py_Void();
32278 return resultobj;
32279 fail:
32280 return NULL;
32281 }
32282
32283
32284 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32285 PyObject *resultobj = 0;
32286 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32287 long arg2 ;
32288 wxFont result;
32289 void *argp1 = 0 ;
32290 int res1 = 0 ;
32291 long val2 ;
32292 int ecode2 = 0 ;
32293 PyObject * obj0 = 0 ;
32294 PyObject * obj1 = 0 ;
32295 char * kwnames[] = {
32296 (char *) "self",(char *) "item", NULL
32297 };
32298
32299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
32300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32301 if (!SWIG_IsOK(res1)) {
32302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32303 }
32304 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32305 ecode2 = SWIG_AsVal_long(obj1, &val2);
32306 if (!SWIG_IsOK(ecode2)) {
32307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
32308 }
32309 arg2 = static_cast< long >(val2);
32310 {
32311 PyThreadState* __tstate = wxPyBeginAllowThreads();
32312 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
32313 wxPyEndAllowThreads(__tstate);
32314 if (PyErr_Occurred()) SWIG_fail;
32315 }
32316 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
32317 return resultobj;
32318 fail:
32319 return NULL;
32320 }
32321
32322
32323 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32324 PyObject *resultobj = 0;
32325 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32326 PyObject *arg2 = (PyObject *) 0 ;
32327 bool result;
32328 void *argp1 = 0 ;
32329 int res1 = 0 ;
32330 PyObject * obj0 = 0 ;
32331 PyObject * obj1 = 0 ;
32332 char * kwnames[] = {
32333 (char *) "self",(char *) "func", NULL
32334 };
32335
32336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32338 if (!SWIG_IsOK(res1)) {
32339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32340 }
32341 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32342 arg2 = obj1;
32343 {
32344 PyThreadState* __tstate = wxPyBeginAllowThreads();
32345 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32346 wxPyEndAllowThreads(__tstate);
32347 if (PyErr_Occurred()) SWIG_fail;
32348 }
32349 {
32350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32351 }
32352 return resultobj;
32353 fail:
32354 return NULL;
32355 }
32356
32357
32358 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32359 PyObject *resultobj = 0;
32360 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32361 wxWindow *result = 0 ;
32362 void *argp1 = 0 ;
32363 int res1 = 0 ;
32364 PyObject *swig_obj[1] ;
32365
32366 if (!args) SWIG_fail;
32367 swig_obj[0] = args;
32368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32369 if (!SWIG_IsOK(res1)) {
32370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32371 }
32372 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32373 {
32374 PyThreadState* __tstate = wxPyBeginAllowThreads();
32375 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32376 wxPyEndAllowThreads(__tstate);
32377 if (PyErr_Occurred()) SWIG_fail;
32378 }
32379 {
32380 resultobj = wxPyMake_wxObject(result, 0);
32381 }
32382 return resultobj;
32383 fail:
32384 return NULL;
32385 }
32386
32387
32388 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32389 PyObject *resultobj = 0;
32390 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32391 SwigValueWrapper<wxVisualAttributes > result;
32392 int val1 ;
32393 int ecode1 = 0 ;
32394 PyObject * obj0 = 0 ;
32395 char * kwnames[] = {
32396 (char *) "variant", NULL
32397 };
32398
32399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32400 if (obj0) {
32401 ecode1 = SWIG_AsVal_int(obj0, &val1);
32402 if (!SWIG_IsOK(ecode1)) {
32403 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32404 }
32405 arg1 = static_cast< wxWindowVariant >(val1);
32406 }
32407 {
32408 if (!wxPyCheckForApp()) SWIG_fail;
32409 PyThreadState* __tstate = wxPyBeginAllowThreads();
32410 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32411 wxPyEndAllowThreads(__tstate);
32412 if (PyErr_Occurred()) SWIG_fail;
32413 }
32414 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32415 return resultobj;
32416 fail:
32417 return NULL;
32418 }
32419
32420
32421 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32422 PyObject *obj;
32423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32424 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32425 return SWIG_Py_Void();
32426 }
32427
32428 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32429 return SWIG_Python_InitShadowInstance(args);
32430 }
32431
32432 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32433 PyObject *resultobj = 0;
32434 wxWindow *arg1 = (wxWindow *) 0 ;
32435 int arg2 = (int) -1 ;
32436 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32437 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32438 wxSize const &arg4_defvalue = wxDefaultSize ;
32439 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32440 long arg5 = (long) wxLC_REPORT ;
32441 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32442 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32443 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32444 wxString *arg7 = (wxString *) &arg7_defvalue ;
32445 wxListView *result = 0 ;
32446 void *argp1 = 0 ;
32447 int res1 = 0 ;
32448 int val2 ;
32449 int ecode2 = 0 ;
32450 wxPoint temp3 ;
32451 wxSize temp4 ;
32452 long val5 ;
32453 int ecode5 = 0 ;
32454 void *argp6 = 0 ;
32455 int res6 = 0 ;
32456 bool temp7 = false ;
32457 PyObject * obj0 = 0 ;
32458 PyObject * obj1 = 0 ;
32459 PyObject * obj2 = 0 ;
32460 PyObject * obj3 = 0 ;
32461 PyObject * obj4 = 0 ;
32462 PyObject * obj5 = 0 ;
32463 PyObject * obj6 = 0 ;
32464 char * kwnames[] = {
32465 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32466 };
32467
32468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32470 if (!SWIG_IsOK(res1)) {
32471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32472 }
32473 arg1 = reinterpret_cast< wxWindow * >(argp1);
32474 if (obj1) {
32475 ecode2 = SWIG_AsVal_int(obj1, &val2);
32476 if (!SWIG_IsOK(ecode2)) {
32477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32478 }
32479 arg2 = static_cast< int >(val2);
32480 }
32481 if (obj2) {
32482 {
32483 arg3 = &temp3;
32484 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32485 }
32486 }
32487 if (obj3) {
32488 {
32489 arg4 = &temp4;
32490 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32491 }
32492 }
32493 if (obj4) {
32494 ecode5 = SWIG_AsVal_long(obj4, &val5);
32495 if (!SWIG_IsOK(ecode5)) {
32496 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32497 }
32498 arg5 = static_cast< long >(val5);
32499 }
32500 if (obj5) {
32501 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32502 if (!SWIG_IsOK(res6)) {
32503 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32504 }
32505 if (!argp6) {
32506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32507 }
32508 arg6 = reinterpret_cast< wxValidator * >(argp6);
32509 }
32510 if (obj6) {
32511 {
32512 arg7 = wxString_in_helper(obj6);
32513 if (arg7 == NULL) SWIG_fail;
32514 temp7 = true;
32515 }
32516 }
32517 {
32518 if (!wxPyCheckForApp()) SWIG_fail;
32519 PyThreadState* __tstate = wxPyBeginAllowThreads();
32520 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32521 wxPyEndAllowThreads(__tstate);
32522 if (PyErr_Occurred()) SWIG_fail;
32523 }
32524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32525 {
32526 if (temp7)
32527 delete arg7;
32528 }
32529 return resultobj;
32530 fail:
32531 {
32532 if (temp7)
32533 delete arg7;
32534 }
32535 return NULL;
32536 }
32537
32538
32539 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32540 PyObject *resultobj = 0;
32541 wxListView *result = 0 ;
32542
32543 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32544 {
32545 if (!wxPyCheckForApp()) SWIG_fail;
32546 PyThreadState* __tstate = wxPyBeginAllowThreads();
32547 result = (wxListView *)new wxListView();
32548 wxPyEndAllowThreads(__tstate);
32549 if (PyErr_Occurred()) SWIG_fail;
32550 }
32551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32552 return resultobj;
32553 fail:
32554 return NULL;
32555 }
32556
32557
32558 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32559 PyObject *resultobj = 0;
32560 wxListView *arg1 = (wxListView *) 0 ;
32561 wxWindow *arg2 = (wxWindow *) 0 ;
32562 int arg3 = (int) -1 ;
32563 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32564 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32565 wxSize const &arg5_defvalue = wxDefaultSize ;
32566 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32567 long arg6 = (long) wxLC_REPORT ;
32568 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32569 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32570 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32571 wxString *arg8 = (wxString *) &arg8_defvalue ;
32572 bool result;
32573 void *argp1 = 0 ;
32574 int res1 = 0 ;
32575 void *argp2 = 0 ;
32576 int res2 = 0 ;
32577 int val3 ;
32578 int ecode3 = 0 ;
32579 wxPoint temp4 ;
32580 wxSize temp5 ;
32581 long val6 ;
32582 int ecode6 = 0 ;
32583 void *argp7 = 0 ;
32584 int res7 = 0 ;
32585 bool temp8 = false ;
32586 PyObject * obj0 = 0 ;
32587 PyObject * obj1 = 0 ;
32588 PyObject * obj2 = 0 ;
32589 PyObject * obj3 = 0 ;
32590 PyObject * obj4 = 0 ;
32591 PyObject * obj5 = 0 ;
32592 PyObject * obj6 = 0 ;
32593 PyObject * obj7 = 0 ;
32594 char * kwnames[] = {
32595 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32596 };
32597
32598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32600 if (!SWIG_IsOK(res1)) {
32601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32602 }
32603 arg1 = reinterpret_cast< wxListView * >(argp1);
32604 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32605 if (!SWIG_IsOK(res2)) {
32606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32607 }
32608 arg2 = reinterpret_cast< wxWindow * >(argp2);
32609 if (obj2) {
32610 ecode3 = SWIG_AsVal_int(obj2, &val3);
32611 if (!SWIG_IsOK(ecode3)) {
32612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32613 }
32614 arg3 = static_cast< int >(val3);
32615 }
32616 if (obj3) {
32617 {
32618 arg4 = &temp4;
32619 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32620 }
32621 }
32622 if (obj4) {
32623 {
32624 arg5 = &temp5;
32625 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32626 }
32627 }
32628 if (obj5) {
32629 ecode6 = SWIG_AsVal_long(obj5, &val6);
32630 if (!SWIG_IsOK(ecode6)) {
32631 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32632 }
32633 arg6 = static_cast< long >(val6);
32634 }
32635 if (obj6) {
32636 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32637 if (!SWIG_IsOK(res7)) {
32638 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32639 }
32640 if (!argp7) {
32641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32642 }
32643 arg7 = reinterpret_cast< wxValidator * >(argp7);
32644 }
32645 if (obj7) {
32646 {
32647 arg8 = wxString_in_helper(obj7);
32648 if (arg8 == NULL) SWIG_fail;
32649 temp8 = true;
32650 }
32651 }
32652 {
32653 PyThreadState* __tstate = wxPyBeginAllowThreads();
32654 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32655 wxPyEndAllowThreads(__tstate);
32656 if (PyErr_Occurred()) SWIG_fail;
32657 }
32658 {
32659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32660 }
32661 {
32662 if (temp8)
32663 delete arg8;
32664 }
32665 return resultobj;
32666 fail:
32667 {
32668 if (temp8)
32669 delete arg8;
32670 }
32671 return NULL;
32672 }
32673
32674
32675 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32676 PyObject *resultobj = 0;
32677 wxListView *arg1 = (wxListView *) 0 ;
32678 long arg2 ;
32679 bool arg3 = (bool) true ;
32680 void *argp1 = 0 ;
32681 int res1 = 0 ;
32682 long val2 ;
32683 int ecode2 = 0 ;
32684 bool val3 ;
32685 int ecode3 = 0 ;
32686 PyObject * obj0 = 0 ;
32687 PyObject * obj1 = 0 ;
32688 PyObject * obj2 = 0 ;
32689 char * kwnames[] = {
32690 (char *) "self",(char *) "n",(char *) "on", NULL
32691 };
32692
32693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32695 if (!SWIG_IsOK(res1)) {
32696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32697 }
32698 arg1 = reinterpret_cast< wxListView * >(argp1);
32699 ecode2 = SWIG_AsVal_long(obj1, &val2);
32700 if (!SWIG_IsOK(ecode2)) {
32701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32702 }
32703 arg2 = static_cast< long >(val2);
32704 if (obj2) {
32705 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32706 if (!SWIG_IsOK(ecode3)) {
32707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32708 }
32709 arg3 = static_cast< bool >(val3);
32710 }
32711 {
32712 PyThreadState* __tstate = wxPyBeginAllowThreads();
32713 (arg1)->Select(arg2,arg3);
32714 wxPyEndAllowThreads(__tstate);
32715 if (PyErr_Occurred()) SWIG_fail;
32716 }
32717 resultobj = SWIG_Py_Void();
32718 return resultobj;
32719 fail:
32720 return NULL;
32721 }
32722
32723
32724 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32725 PyObject *resultobj = 0;
32726 wxListView *arg1 = (wxListView *) 0 ;
32727 long arg2 ;
32728 void *argp1 = 0 ;
32729 int res1 = 0 ;
32730 long val2 ;
32731 int ecode2 = 0 ;
32732 PyObject * obj0 = 0 ;
32733 PyObject * obj1 = 0 ;
32734 char * kwnames[] = {
32735 (char *) "self",(char *) "index", NULL
32736 };
32737
32738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32740 if (!SWIG_IsOK(res1)) {
32741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32742 }
32743 arg1 = reinterpret_cast< wxListView * >(argp1);
32744 ecode2 = SWIG_AsVal_long(obj1, &val2);
32745 if (!SWIG_IsOK(ecode2)) {
32746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32747 }
32748 arg2 = static_cast< long >(val2);
32749 {
32750 PyThreadState* __tstate = wxPyBeginAllowThreads();
32751 (arg1)->Focus(arg2);
32752 wxPyEndAllowThreads(__tstate);
32753 if (PyErr_Occurred()) SWIG_fail;
32754 }
32755 resultobj = SWIG_Py_Void();
32756 return resultobj;
32757 fail:
32758 return NULL;
32759 }
32760
32761
32762 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32763 PyObject *resultobj = 0;
32764 wxListView *arg1 = (wxListView *) 0 ;
32765 long result;
32766 void *argp1 = 0 ;
32767 int res1 = 0 ;
32768 PyObject *swig_obj[1] ;
32769
32770 if (!args) SWIG_fail;
32771 swig_obj[0] = args;
32772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32773 if (!SWIG_IsOK(res1)) {
32774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32775 }
32776 arg1 = reinterpret_cast< wxListView * >(argp1);
32777 {
32778 PyThreadState* __tstate = wxPyBeginAllowThreads();
32779 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32780 wxPyEndAllowThreads(__tstate);
32781 if (PyErr_Occurred()) SWIG_fail;
32782 }
32783 resultobj = SWIG_From_long(static_cast< long >(result));
32784 return resultobj;
32785 fail:
32786 return NULL;
32787 }
32788
32789
32790 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32791 PyObject *resultobj = 0;
32792 wxListView *arg1 = (wxListView *) 0 ;
32793 long arg2 ;
32794 long result;
32795 void *argp1 = 0 ;
32796 int res1 = 0 ;
32797 long val2 ;
32798 int ecode2 = 0 ;
32799 PyObject * obj0 = 0 ;
32800 PyObject * obj1 = 0 ;
32801 char * kwnames[] = {
32802 (char *) "self",(char *) "item", NULL
32803 };
32804
32805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32807 if (!SWIG_IsOK(res1)) {
32808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32809 }
32810 arg1 = reinterpret_cast< wxListView * >(argp1);
32811 ecode2 = SWIG_AsVal_long(obj1, &val2);
32812 if (!SWIG_IsOK(ecode2)) {
32813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32814 }
32815 arg2 = static_cast< long >(val2);
32816 {
32817 PyThreadState* __tstate = wxPyBeginAllowThreads();
32818 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32819 wxPyEndAllowThreads(__tstate);
32820 if (PyErr_Occurred()) SWIG_fail;
32821 }
32822 resultobj = SWIG_From_long(static_cast< long >(result));
32823 return resultobj;
32824 fail:
32825 return NULL;
32826 }
32827
32828
32829 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32830 PyObject *resultobj = 0;
32831 wxListView *arg1 = (wxListView *) 0 ;
32832 long result;
32833 void *argp1 = 0 ;
32834 int res1 = 0 ;
32835 PyObject *swig_obj[1] ;
32836
32837 if (!args) SWIG_fail;
32838 swig_obj[0] = args;
32839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32840 if (!SWIG_IsOK(res1)) {
32841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32842 }
32843 arg1 = reinterpret_cast< wxListView * >(argp1);
32844 {
32845 PyThreadState* __tstate = wxPyBeginAllowThreads();
32846 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32847 wxPyEndAllowThreads(__tstate);
32848 if (PyErr_Occurred()) SWIG_fail;
32849 }
32850 resultobj = SWIG_From_long(static_cast< long >(result));
32851 return resultobj;
32852 fail:
32853 return NULL;
32854 }
32855
32856
32857 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32858 PyObject *resultobj = 0;
32859 wxListView *arg1 = (wxListView *) 0 ;
32860 long arg2 ;
32861 bool result;
32862 void *argp1 = 0 ;
32863 int res1 = 0 ;
32864 long val2 ;
32865 int ecode2 = 0 ;
32866 PyObject * obj0 = 0 ;
32867 PyObject * obj1 = 0 ;
32868 char * kwnames[] = {
32869 (char *) "self",(char *) "index", NULL
32870 };
32871
32872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32874 if (!SWIG_IsOK(res1)) {
32875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32876 }
32877 arg1 = reinterpret_cast< wxListView * >(argp1);
32878 ecode2 = SWIG_AsVal_long(obj1, &val2);
32879 if (!SWIG_IsOK(ecode2)) {
32880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32881 }
32882 arg2 = static_cast< long >(val2);
32883 {
32884 PyThreadState* __tstate = wxPyBeginAllowThreads();
32885 result = (bool)(arg1)->IsSelected(arg2);
32886 wxPyEndAllowThreads(__tstate);
32887 if (PyErr_Occurred()) SWIG_fail;
32888 }
32889 {
32890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32891 }
32892 return resultobj;
32893 fail:
32894 return NULL;
32895 }
32896
32897
32898 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32899 PyObject *resultobj = 0;
32900 wxListView *arg1 = (wxListView *) 0 ;
32901 int arg2 ;
32902 int arg3 ;
32903 void *argp1 = 0 ;
32904 int res1 = 0 ;
32905 int val2 ;
32906 int ecode2 = 0 ;
32907 int val3 ;
32908 int ecode3 = 0 ;
32909 PyObject * obj0 = 0 ;
32910 PyObject * obj1 = 0 ;
32911 PyObject * obj2 = 0 ;
32912 char * kwnames[] = {
32913 (char *) "self",(char *) "col",(char *) "image", NULL
32914 };
32915
32916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32918 if (!SWIG_IsOK(res1)) {
32919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32920 }
32921 arg1 = reinterpret_cast< wxListView * >(argp1);
32922 ecode2 = SWIG_AsVal_int(obj1, &val2);
32923 if (!SWIG_IsOK(ecode2)) {
32924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32925 }
32926 arg2 = static_cast< int >(val2);
32927 ecode3 = SWIG_AsVal_int(obj2, &val3);
32928 if (!SWIG_IsOK(ecode3)) {
32929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32930 }
32931 arg3 = static_cast< int >(val3);
32932 {
32933 PyThreadState* __tstate = wxPyBeginAllowThreads();
32934 (arg1)->SetColumnImage(arg2,arg3);
32935 wxPyEndAllowThreads(__tstate);
32936 if (PyErr_Occurred()) SWIG_fail;
32937 }
32938 resultobj = SWIG_Py_Void();
32939 return resultobj;
32940 fail:
32941 return NULL;
32942 }
32943
32944
32945 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32946 PyObject *resultobj = 0;
32947 wxListView *arg1 = (wxListView *) 0 ;
32948 int arg2 ;
32949 void *argp1 = 0 ;
32950 int res1 = 0 ;
32951 int val2 ;
32952 int ecode2 = 0 ;
32953 PyObject * obj0 = 0 ;
32954 PyObject * obj1 = 0 ;
32955 char * kwnames[] = {
32956 (char *) "self",(char *) "col", NULL
32957 };
32958
32959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32961 if (!SWIG_IsOK(res1)) {
32962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32963 }
32964 arg1 = reinterpret_cast< wxListView * >(argp1);
32965 ecode2 = SWIG_AsVal_int(obj1, &val2);
32966 if (!SWIG_IsOK(ecode2)) {
32967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32968 }
32969 arg2 = static_cast< int >(val2);
32970 {
32971 PyThreadState* __tstate = wxPyBeginAllowThreads();
32972 (arg1)->ClearColumnImage(arg2);
32973 wxPyEndAllowThreads(__tstate);
32974 if (PyErr_Occurred()) SWIG_fail;
32975 }
32976 resultobj = SWIG_Py_Void();
32977 return resultobj;
32978 fail:
32979 return NULL;
32980 }
32981
32982
32983 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32984 PyObject *obj;
32985 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32986 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32987 return SWIG_Py_Void();
32988 }
32989
32990 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32991 return SWIG_Python_InitShadowInstance(args);
32992 }
32993
32994 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32995 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32996 return 1;
32997 }
32998
32999
33000 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
33001 PyObject *pyobj = 0;
33002
33003 {
33004 #if wxUSE_UNICODE
33005 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
33006 #else
33007 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
33008 #endif
33009 }
33010 return pyobj;
33011 }
33012
33013
33014 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33015 PyObject *resultobj = 0;
33016 wxTreeItemId *result = 0 ;
33017
33018 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
33019 {
33020 PyThreadState* __tstate = wxPyBeginAllowThreads();
33021 result = (wxTreeItemId *)new wxTreeItemId();
33022 wxPyEndAllowThreads(__tstate);
33023 if (PyErr_Occurred()) SWIG_fail;
33024 }
33025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
33026 return resultobj;
33027 fail:
33028 return NULL;
33029 }
33030
33031
33032 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33033 PyObject *resultobj = 0;
33034 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33035 void *argp1 = 0 ;
33036 int res1 = 0 ;
33037 PyObject *swig_obj[1] ;
33038
33039 if (!args) SWIG_fail;
33040 swig_obj[0] = args;
33041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
33042 if (!SWIG_IsOK(res1)) {
33043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33044 }
33045 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33046 {
33047 PyThreadState* __tstate = wxPyBeginAllowThreads();
33048 delete arg1;
33049
33050 wxPyEndAllowThreads(__tstate);
33051 if (PyErr_Occurred()) SWIG_fail;
33052 }
33053 resultobj = SWIG_Py_Void();
33054 return resultobj;
33055 fail:
33056 return NULL;
33057 }
33058
33059
33060 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33061 PyObject *resultobj = 0;
33062 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33063 bool result;
33064 void *argp1 = 0 ;
33065 int res1 = 0 ;
33066 PyObject *swig_obj[1] ;
33067
33068 if (!args) SWIG_fail;
33069 swig_obj[0] = args;
33070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33071 if (!SWIG_IsOK(res1)) {
33072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
33073 }
33074 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33075 {
33076 PyThreadState* __tstate = wxPyBeginAllowThreads();
33077 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
33078 wxPyEndAllowThreads(__tstate);
33079 if (PyErr_Occurred()) SWIG_fail;
33080 }
33081 {
33082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33083 }
33084 return resultobj;
33085 fail:
33086 return NULL;
33087 }
33088
33089
33090 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33091 PyObject *resultobj = 0;
33092 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33093 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
33094 bool result;
33095 void *argp1 = 0 ;
33096 int res1 = 0 ;
33097 void *argp2 = 0 ;
33098 int res2 = 0 ;
33099 PyObject * obj0 = 0 ;
33100 PyObject * obj1 = 0 ;
33101 char * kwnames[] = {
33102 (char *) "self",(char *) "other", NULL
33103 };
33104
33105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
33106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33107 if (!SWIG_IsOK(res1)) {
33108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33109 }
33110 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33111 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33112 if (!SWIG_IsOK(res2)) {
33113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
33114 }
33115 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33116 {
33117 PyThreadState* __tstate = wxPyBeginAllowThreads();
33118 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
33119 wxPyEndAllowThreads(__tstate);
33120 if (PyErr_Occurred()) SWIG_fail;
33121 }
33122 {
33123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33124 }
33125 return resultobj;
33126 fail:
33127 return NULL;
33128 }
33129
33130
33131 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33132 PyObject *resultobj = 0;
33133 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33134 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
33135 bool result;
33136 void *argp1 = 0 ;
33137 int res1 = 0 ;
33138 void *argp2 = 0 ;
33139 int res2 = 0 ;
33140 PyObject * obj0 = 0 ;
33141 PyObject * obj1 = 0 ;
33142 char * kwnames[] = {
33143 (char *) "self",(char *) "other", NULL
33144 };
33145
33146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
33147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33148 if (!SWIG_IsOK(res1)) {
33149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33150 }
33151 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33152 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33153 if (!SWIG_IsOK(res2)) {
33154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
33155 }
33156 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33157 {
33158 PyThreadState* __tstate = wxPyBeginAllowThreads();
33159 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
33160 wxPyEndAllowThreads(__tstate);
33161 if (PyErr_Occurred()) SWIG_fail;
33162 }
33163 {
33164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33165 }
33166 return resultobj;
33167 fail:
33168 return NULL;
33169 }
33170
33171
33172 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33173 PyObject *resultobj = 0;
33174 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33175 void *arg2 = (void *) 0 ;
33176 void *argp1 = 0 ;
33177 int res1 = 0 ;
33178 int res2 ;
33179 PyObject *swig_obj[2] ;
33180
33181 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
33182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33183 if (!SWIG_IsOK(res1)) {
33184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33185 }
33186 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33187 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
33188 if (!SWIG_IsOK(res2)) {
33189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
33190 }
33191 if (arg1) (arg1)->m_pItem = arg2;
33192
33193 resultobj = SWIG_Py_Void();
33194 return resultobj;
33195 fail:
33196 return NULL;
33197 }
33198
33199
33200 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33201 PyObject *resultobj = 0;
33202 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33203 void *result = 0 ;
33204 void *argp1 = 0 ;
33205 int res1 = 0 ;
33206 PyObject *swig_obj[1] ;
33207
33208 if (!args) SWIG_fail;
33209 swig_obj[0] = args;
33210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33211 if (!SWIG_IsOK(res1)) {
33212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33213 }
33214 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33215 result = (void *) ((arg1)->m_pItem);
33216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
33217 return resultobj;
33218 fail:
33219 return NULL;
33220 }
33221
33222
33223 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33224 PyObject *obj;
33225 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33226 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
33227 return SWIG_Py_Void();
33228 }
33229
33230 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33231 return SWIG_Python_InitShadowInstance(args);
33232 }
33233
33234 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33235 PyObject *resultobj = 0;
33236 PyObject *arg1 = (PyObject *) NULL ;
33237 wxPyTreeItemData *result = 0 ;
33238 PyObject * obj0 = 0 ;
33239 char * kwnames[] = {
33240 (char *) "obj", NULL
33241 };
33242
33243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
33244 if (obj0) {
33245 arg1 = obj0;
33246 }
33247 {
33248 PyThreadState* __tstate = wxPyBeginAllowThreads();
33249 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
33250 wxPyEndAllowThreads(__tstate);
33251 if (PyErr_Occurred()) SWIG_fail;
33252 }
33253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
33254 return resultobj;
33255 fail:
33256 return NULL;
33257 }
33258
33259
33260 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33261 PyObject *resultobj = 0;
33262 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33263 void *argp1 = 0 ;
33264 int res1 = 0 ;
33265 PyObject *swig_obj[1] ;
33266
33267 if (!args) SWIG_fail;
33268 swig_obj[0] = args;
33269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
33270 if (!SWIG_IsOK(res1)) {
33271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33272 }
33273 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33274 {
33275 PyThreadState* __tstate = wxPyBeginAllowThreads();
33276 delete arg1;
33277
33278 wxPyEndAllowThreads(__tstate);
33279 if (PyErr_Occurred()) SWIG_fail;
33280 }
33281 resultobj = SWIG_Py_Void();
33282 return resultobj;
33283 fail:
33284 return NULL;
33285 }
33286
33287
33288 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33289 PyObject *resultobj = 0;
33290 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33291 PyObject *result = 0 ;
33292 void *argp1 = 0 ;
33293 int res1 = 0 ;
33294 PyObject *swig_obj[1] ;
33295
33296 if (!args) SWIG_fail;
33297 swig_obj[0] = args;
33298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33299 if (!SWIG_IsOK(res1)) {
33300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33301 }
33302 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33303 {
33304 PyThreadState* __tstate = wxPyBeginAllowThreads();
33305 result = (PyObject *)(arg1)->GetData();
33306 wxPyEndAllowThreads(__tstate);
33307 if (PyErr_Occurred()) SWIG_fail;
33308 }
33309 resultobj = result;
33310 return resultobj;
33311 fail:
33312 return NULL;
33313 }
33314
33315
33316 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33317 PyObject *resultobj = 0;
33318 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33319 PyObject *arg2 = (PyObject *) 0 ;
33320 void *argp1 = 0 ;
33321 int res1 = 0 ;
33322 PyObject * obj0 = 0 ;
33323 PyObject * obj1 = 0 ;
33324 char * kwnames[] = {
33325 (char *) "self",(char *) "obj", NULL
33326 };
33327
33328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33330 if (!SWIG_IsOK(res1)) {
33331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33332 }
33333 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33334 arg2 = obj1;
33335 {
33336 PyThreadState* __tstate = wxPyBeginAllowThreads();
33337 (arg1)->SetData(arg2);
33338 wxPyEndAllowThreads(__tstate);
33339 if (PyErr_Occurred()) SWIG_fail;
33340 }
33341 resultobj = SWIG_Py_Void();
33342 return resultobj;
33343 fail:
33344 return NULL;
33345 }
33346
33347
33348 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33349 PyObject *resultobj = 0;
33350 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33351 wxTreeItemId *result = 0 ;
33352 void *argp1 = 0 ;
33353 int res1 = 0 ;
33354 PyObject *swig_obj[1] ;
33355
33356 if (!args) SWIG_fail;
33357 swig_obj[0] = args;
33358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33359 if (!SWIG_IsOK(res1)) {
33360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33361 }
33362 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33363 {
33364 PyThreadState* __tstate = wxPyBeginAllowThreads();
33365 {
33366 wxTreeItemId const &_result_ref = (arg1)->GetId();
33367 result = (wxTreeItemId *) &_result_ref;
33368 }
33369 wxPyEndAllowThreads(__tstate);
33370 if (PyErr_Occurred()) SWIG_fail;
33371 }
33372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33373 return resultobj;
33374 fail:
33375 return NULL;
33376 }
33377
33378
33379 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33380 PyObject *resultobj = 0;
33381 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33382 wxTreeItemId *arg2 = 0 ;
33383 void *argp1 = 0 ;
33384 int res1 = 0 ;
33385 void *argp2 = 0 ;
33386 int res2 = 0 ;
33387 PyObject * obj0 = 0 ;
33388 PyObject * obj1 = 0 ;
33389 char * kwnames[] = {
33390 (char *) "self",(char *) "id", NULL
33391 };
33392
33393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33395 if (!SWIG_IsOK(res1)) {
33396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33397 }
33398 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33399 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33400 if (!SWIG_IsOK(res2)) {
33401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33402 }
33403 if (!argp2) {
33404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33405 }
33406 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33407 {
33408 PyThreadState* __tstate = wxPyBeginAllowThreads();
33409 (arg1)->SetId((wxTreeItemId const &)*arg2);
33410 wxPyEndAllowThreads(__tstate);
33411 if (PyErr_Occurred()) SWIG_fail;
33412 }
33413 resultobj = SWIG_Py_Void();
33414 return resultobj;
33415 fail:
33416 return NULL;
33417 }
33418
33419
33420 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33421 PyObject *resultobj = 0;
33422 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33423 void *argp1 = 0 ;
33424 int res1 = 0 ;
33425 PyObject *swig_obj[1] ;
33426
33427 if (!args) SWIG_fail;
33428 swig_obj[0] = args;
33429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33430 if (!SWIG_IsOK(res1)) {
33431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33432 }
33433 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33434 {
33435 PyThreadState* __tstate = wxPyBeginAllowThreads();
33436 wxPyTreeItemData_Destroy(arg1);
33437 wxPyEndAllowThreads(__tstate);
33438 if (PyErr_Occurred()) SWIG_fail;
33439 }
33440 resultobj = SWIG_Py_Void();
33441 return resultobj;
33442 fail:
33443 return NULL;
33444 }
33445
33446
33447 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33448 PyObject *obj;
33449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33450 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33451 return SWIG_Py_Void();
33452 }
33453
33454 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33455 return SWIG_Python_InitShadowInstance(args);
33456 }
33457
33458 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33459 {
33460 void *argp = 0;
33461 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33462 if (!SWIG_IsOK(res)) {
33463 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33464 }
33465 if (!argp) {
33466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33467 } else {
33468 wxTreeItemId * temp;
33469 temp = reinterpret_cast< wxTreeItemId * >(argp);
33470 wxNullTreeItemId = *temp;
33471 if (SWIG_IsNewObj(res)) delete temp;
33472 }
33473 }
33474 return 0;
33475 fail:
33476 return 1;
33477 }
33478
33479
33480 SWIGINTERN PyObject *NullTreeItemId_get(void) {
33481 PyObject *pyobj = 0;
33482
33483 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33484 return pyobj;
33485 }
33486
33487
33488 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33489 PyObject *resultobj = 0;
33490 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33491 int arg2 = (int) 0 ;
33492 wxTreeEvent *result = 0 ;
33493 int val1 ;
33494 int ecode1 = 0 ;
33495 int val2 ;
33496 int ecode2 = 0 ;
33497
33498 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33499 if (swig_obj[0]) {
33500 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33501 if (!SWIG_IsOK(ecode1)) {
33502 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33503 }
33504 arg1 = static_cast< wxEventType >(val1);
33505 }
33506 if (swig_obj[1]) {
33507 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33508 if (!SWIG_IsOK(ecode2)) {
33509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33510 }
33511 arg2 = static_cast< int >(val2);
33512 }
33513 {
33514 PyThreadState* __tstate = wxPyBeginAllowThreads();
33515 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33516 wxPyEndAllowThreads(__tstate);
33517 if (PyErr_Occurred()) SWIG_fail;
33518 }
33519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33520 return resultobj;
33521 fail:
33522 return NULL;
33523 }
33524
33525
33526 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33527 PyObject *resultobj = 0;
33528 wxEventType arg1 ;
33529 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33530 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33531 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33532 wxTreeEvent *result = 0 ;
33533 int val1 ;
33534 int ecode1 = 0 ;
33535 void *argp2 = 0 ;
33536 int res2 = 0 ;
33537 void *argp3 = 0 ;
33538 int res3 = 0 ;
33539
33540 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33541 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33542 if (!SWIG_IsOK(ecode1)) {
33543 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33544 }
33545 arg1 = static_cast< wxEventType >(val1);
33546 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33547 if (!SWIG_IsOK(res2)) {
33548 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33549 }
33550 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33551 if (swig_obj[2]) {
33552 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33553 if (!SWIG_IsOK(res3)) {
33554 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33555 }
33556 if (!argp3) {
33557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33558 }
33559 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33560 }
33561 {
33562 PyThreadState* __tstate = wxPyBeginAllowThreads();
33563 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33564 wxPyEndAllowThreads(__tstate);
33565 if (PyErr_Occurred()) SWIG_fail;
33566 }
33567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33568 return resultobj;
33569 fail:
33570 return NULL;
33571 }
33572
33573
33574 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33575 int argc;
33576 PyObject *argv[4];
33577
33578 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33579 --argc;
33580 if ((argc >= 0) && (argc <= 2)) {
33581 int _v = 0;
33582 if (argc > 1) {
33583 {
33584 {
33585 int res = SWIG_AsVal_int(argv[1], NULL);
33586 _v = SWIG_CheckState(res);
33587 }
33588 }
33589 if (!_v) goto check_1;
33590 }
33591 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33592 }
33593 check_1:
33594
33595 if ((argc >= 2) && (argc <= 3)) {
33596 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33597 }
33598
33599 fail:
33600 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33601 return NULL;
33602 }
33603
33604
33605 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33606 PyObject *resultobj = 0;
33607 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33608 wxTreeItemId result;
33609 void *argp1 = 0 ;
33610 int res1 = 0 ;
33611 PyObject *swig_obj[1] ;
33612
33613 if (!args) SWIG_fail;
33614 swig_obj[0] = args;
33615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33616 if (!SWIG_IsOK(res1)) {
33617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33618 }
33619 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33620 {
33621 PyThreadState* __tstate = wxPyBeginAllowThreads();
33622 result = ((wxTreeEvent const *)arg1)->GetItem();
33623 wxPyEndAllowThreads(__tstate);
33624 if (PyErr_Occurred()) SWIG_fail;
33625 }
33626 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33627 return resultobj;
33628 fail:
33629 return NULL;
33630 }
33631
33632
33633 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33634 PyObject *resultobj = 0;
33635 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33636 wxTreeItemId *arg2 = 0 ;
33637 void *argp1 = 0 ;
33638 int res1 = 0 ;
33639 void *argp2 = 0 ;
33640 int res2 = 0 ;
33641 PyObject * obj0 = 0 ;
33642 PyObject * obj1 = 0 ;
33643 char * kwnames[] = {
33644 (char *) "self",(char *) "item", NULL
33645 };
33646
33647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33649 if (!SWIG_IsOK(res1)) {
33650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33651 }
33652 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33654 if (!SWIG_IsOK(res2)) {
33655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33656 }
33657 if (!argp2) {
33658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33659 }
33660 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33661 {
33662 PyThreadState* __tstate = wxPyBeginAllowThreads();
33663 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33664 wxPyEndAllowThreads(__tstate);
33665 if (PyErr_Occurred()) SWIG_fail;
33666 }
33667 resultobj = SWIG_Py_Void();
33668 return resultobj;
33669 fail:
33670 return NULL;
33671 }
33672
33673
33674 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33675 PyObject *resultobj = 0;
33676 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33677 wxTreeItemId result;
33678 void *argp1 = 0 ;
33679 int res1 = 0 ;
33680 PyObject *swig_obj[1] ;
33681
33682 if (!args) SWIG_fail;
33683 swig_obj[0] = args;
33684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33685 if (!SWIG_IsOK(res1)) {
33686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33687 }
33688 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33689 {
33690 PyThreadState* __tstate = wxPyBeginAllowThreads();
33691 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33692 wxPyEndAllowThreads(__tstate);
33693 if (PyErr_Occurred()) SWIG_fail;
33694 }
33695 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33696 return resultobj;
33697 fail:
33698 return NULL;
33699 }
33700
33701
33702 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33703 PyObject *resultobj = 0;
33704 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33705 wxTreeItemId *arg2 = 0 ;
33706 void *argp1 = 0 ;
33707 int res1 = 0 ;
33708 void *argp2 = 0 ;
33709 int res2 = 0 ;
33710 PyObject * obj0 = 0 ;
33711 PyObject * obj1 = 0 ;
33712 char * kwnames[] = {
33713 (char *) "self",(char *) "item", NULL
33714 };
33715
33716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33718 if (!SWIG_IsOK(res1)) {
33719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33720 }
33721 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33722 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33723 if (!SWIG_IsOK(res2)) {
33724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33725 }
33726 if (!argp2) {
33727 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33728 }
33729 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33730 {
33731 PyThreadState* __tstate = wxPyBeginAllowThreads();
33732 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33733 wxPyEndAllowThreads(__tstate);
33734 if (PyErr_Occurred()) SWIG_fail;
33735 }
33736 resultobj = SWIG_Py_Void();
33737 return resultobj;
33738 fail:
33739 return NULL;
33740 }
33741
33742
33743 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33744 PyObject *resultobj = 0;
33745 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33746 wxPoint result;
33747 void *argp1 = 0 ;
33748 int res1 = 0 ;
33749 PyObject *swig_obj[1] ;
33750
33751 if (!args) SWIG_fail;
33752 swig_obj[0] = args;
33753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33754 if (!SWIG_IsOK(res1)) {
33755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33756 }
33757 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33758 {
33759 PyThreadState* __tstate = wxPyBeginAllowThreads();
33760 result = ((wxTreeEvent const *)arg1)->GetPoint();
33761 wxPyEndAllowThreads(__tstate);
33762 if (PyErr_Occurred()) SWIG_fail;
33763 }
33764 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33765 return resultobj;
33766 fail:
33767 return NULL;
33768 }
33769
33770
33771 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33772 PyObject *resultobj = 0;
33773 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33774 wxPoint *arg2 = 0 ;
33775 void *argp1 = 0 ;
33776 int res1 = 0 ;
33777 wxPoint temp2 ;
33778 PyObject * obj0 = 0 ;
33779 PyObject * obj1 = 0 ;
33780 char * kwnames[] = {
33781 (char *) "self",(char *) "pt", NULL
33782 };
33783
33784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33786 if (!SWIG_IsOK(res1)) {
33787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33788 }
33789 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33790 {
33791 arg2 = &temp2;
33792 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33793 }
33794 {
33795 PyThreadState* __tstate = wxPyBeginAllowThreads();
33796 (arg1)->SetPoint((wxPoint const &)*arg2);
33797 wxPyEndAllowThreads(__tstate);
33798 if (PyErr_Occurred()) SWIG_fail;
33799 }
33800 resultobj = SWIG_Py_Void();
33801 return resultobj;
33802 fail:
33803 return NULL;
33804 }
33805
33806
33807 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33808 PyObject *resultobj = 0;
33809 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33810 wxKeyEvent *result = 0 ;
33811 void *argp1 = 0 ;
33812 int res1 = 0 ;
33813 PyObject *swig_obj[1] ;
33814
33815 if (!args) SWIG_fail;
33816 swig_obj[0] = args;
33817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33818 if (!SWIG_IsOK(res1)) {
33819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33820 }
33821 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33822 {
33823 PyThreadState* __tstate = wxPyBeginAllowThreads();
33824 {
33825 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33826 result = (wxKeyEvent *) &_result_ref;
33827 }
33828 wxPyEndAllowThreads(__tstate);
33829 if (PyErr_Occurred()) SWIG_fail;
33830 }
33831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33832 return resultobj;
33833 fail:
33834 return NULL;
33835 }
33836
33837
33838 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33839 PyObject *resultobj = 0;
33840 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33841 int result;
33842 void *argp1 = 0 ;
33843 int res1 = 0 ;
33844 PyObject *swig_obj[1] ;
33845
33846 if (!args) SWIG_fail;
33847 swig_obj[0] = args;
33848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33849 if (!SWIG_IsOK(res1)) {
33850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33851 }
33852 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33853 {
33854 PyThreadState* __tstate = wxPyBeginAllowThreads();
33855 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33856 wxPyEndAllowThreads(__tstate);
33857 if (PyErr_Occurred()) SWIG_fail;
33858 }
33859 resultobj = SWIG_From_int(static_cast< int >(result));
33860 return resultobj;
33861 fail:
33862 return NULL;
33863 }
33864
33865
33866 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33867 PyObject *resultobj = 0;
33868 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33869 wxKeyEvent *arg2 = 0 ;
33870 void *argp1 = 0 ;
33871 int res1 = 0 ;
33872 void *argp2 = 0 ;
33873 int res2 = 0 ;
33874 PyObject * obj0 = 0 ;
33875 PyObject * obj1 = 0 ;
33876 char * kwnames[] = {
33877 (char *) "self",(char *) "evt", NULL
33878 };
33879
33880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33882 if (!SWIG_IsOK(res1)) {
33883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33884 }
33885 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33886 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33887 if (!SWIG_IsOK(res2)) {
33888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33889 }
33890 if (!argp2) {
33891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33892 }
33893 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33894 {
33895 PyThreadState* __tstate = wxPyBeginAllowThreads();
33896 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33897 wxPyEndAllowThreads(__tstate);
33898 if (PyErr_Occurred()) SWIG_fail;
33899 }
33900 resultobj = SWIG_Py_Void();
33901 return resultobj;
33902 fail:
33903 return NULL;
33904 }
33905
33906
33907 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33908 PyObject *resultobj = 0;
33909 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33910 wxString *result = 0 ;
33911 void *argp1 = 0 ;
33912 int res1 = 0 ;
33913 PyObject *swig_obj[1] ;
33914
33915 if (!args) SWIG_fail;
33916 swig_obj[0] = args;
33917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33918 if (!SWIG_IsOK(res1)) {
33919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33920 }
33921 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33922 {
33923 PyThreadState* __tstate = wxPyBeginAllowThreads();
33924 {
33925 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33926 result = (wxString *) &_result_ref;
33927 }
33928 wxPyEndAllowThreads(__tstate);
33929 if (PyErr_Occurred()) SWIG_fail;
33930 }
33931 {
33932 #if wxUSE_UNICODE
33933 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33934 #else
33935 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33936 #endif
33937 }
33938 return resultobj;
33939 fail:
33940 return NULL;
33941 }
33942
33943
33944 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33945 PyObject *resultobj = 0;
33946 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33947 wxString *arg2 = 0 ;
33948 void *argp1 = 0 ;
33949 int res1 = 0 ;
33950 bool temp2 = false ;
33951 PyObject * obj0 = 0 ;
33952 PyObject * obj1 = 0 ;
33953 char * kwnames[] = {
33954 (char *) "self",(char *) "label", NULL
33955 };
33956
33957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33959 if (!SWIG_IsOK(res1)) {
33960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33961 }
33962 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33963 {
33964 arg2 = wxString_in_helper(obj1);
33965 if (arg2 == NULL) SWIG_fail;
33966 temp2 = true;
33967 }
33968 {
33969 PyThreadState* __tstate = wxPyBeginAllowThreads();
33970 (arg1)->SetLabel((wxString const &)*arg2);
33971 wxPyEndAllowThreads(__tstate);
33972 if (PyErr_Occurred()) SWIG_fail;
33973 }
33974 resultobj = SWIG_Py_Void();
33975 {
33976 if (temp2)
33977 delete arg2;
33978 }
33979 return resultobj;
33980 fail:
33981 {
33982 if (temp2)
33983 delete arg2;
33984 }
33985 return NULL;
33986 }
33987
33988
33989 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33990 PyObject *resultobj = 0;
33991 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33992 bool result;
33993 void *argp1 = 0 ;
33994 int res1 = 0 ;
33995 PyObject *swig_obj[1] ;
33996
33997 if (!args) SWIG_fail;
33998 swig_obj[0] = args;
33999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34000 if (!SWIG_IsOK(res1)) {
34001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
34002 }
34003 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34004 {
34005 PyThreadState* __tstate = wxPyBeginAllowThreads();
34006 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
34007 wxPyEndAllowThreads(__tstate);
34008 if (PyErr_Occurred()) SWIG_fail;
34009 }
34010 {
34011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34012 }
34013 return resultobj;
34014 fail:
34015 return NULL;
34016 }
34017
34018
34019 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34020 PyObject *resultobj = 0;
34021 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
34022 bool arg2 ;
34023 void *argp1 = 0 ;
34024 int res1 = 0 ;
34025 bool val2 ;
34026 int ecode2 = 0 ;
34027 PyObject * obj0 = 0 ;
34028 PyObject * obj1 = 0 ;
34029 char * kwnames[] = {
34030 (char *) "self",(char *) "editCancelled", NULL
34031 };
34032
34033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
34034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34035 if (!SWIG_IsOK(res1)) {
34036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
34037 }
34038 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34039 ecode2 = SWIG_AsVal_bool(obj1, &val2);
34040 if (!SWIG_IsOK(ecode2)) {
34041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
34042 }
34043 arg2 = static_cast< bool >(val2);
34044 {
34045 PyThreadState* __tstate = wxPyBeginAllowThreads();
34046 (arg1)->SetEditCanceled(arg2);
34047 wxPyEndAllowThreads(__tstate);
34048 if (PyErr_Occurred()) SWIG_fail;
34049 }
34050 resultobj = SWIG_Py_Void();
34051 return resultobj;
34052 fail:
34053 return NULL;
34054 }
34055
34056
34057 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34058 PyObject *resultobj = 0;
34059 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
34060 wxString *arg2 = 0 ;
34061 void *argp1 = 0 ;
34062 int res1 = 0 ;
34063 bool temp2 = false ;
34064 PyObject * obj0 = 0 ;
34065 PyObject * obj1 = 0 ;
34066 char * kwnames[] = {
34067 (char *) "self",(char *) "toolTip", NULL
34068 };
34069
34070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
34071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34072 if (!SWIG_IsOK(res1)) {
34073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
34074 }
34075 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34076 {
34077 arg2 = wxString_in_helper(obj1);
34078 if (arg2 == NULL) SWIG_fail;
34079 temp2 = true;
34080 }
34081 {
34082 PyThreadState* __tstate = wxPyBeginAllowThreads();
34083 (arg1)->SetToolTip((wxString const &)*arg2);
34084 wxPyEndAllowThreads(__tstate);
34085 if (PyErr_Occurred()) SWIG_fail;
34086 }
34087 resultobj = SWIG_Py_Void();
34088 {
34089 if (temp2)
34090 delete arg2;
34091 }
34092 return resultobj;
34093 fail:
34094 {
34095 if (temp2)
34096 delete arg2;
34097 }
34098 return NULL;
34099 }
34100
34101
34102 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34103 PyObject *resultobj = 0;
34104 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
34105 wxString result;
34106 void *argp1 = 0 ;
34107 int res1 = 0 ;
34108 PyObject *swig_obj[1] ;
34109
34110 if (!args) SWIG_fail;
34111 swig_obj[0] = args;
34112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34113 if (!SWIG_IsOK(res1)) {
34114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
34115 }
34116 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34117 {
34118 PyThreadState* __tstate = wxPyBeginAllowThreads();
34119 result = (arg1)->GetToolTip();
34120 wxPyEndAllowThreads(__tstate);
34121 if (PyErr_Occurred()) SWIG_fail;
34122 }
34123 {
34124 #if wxUSE_UNICODE
34125 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34126 #else
34127 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34128 #endif
34129 }
34130 return resultobj;
34131 fail:
34132 return NULL;
34133 }
34134
34135
34136 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34137 PyObject *obj;
34138 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34139 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
34140 return SWIG_Py_Void();
34141 }
34142
34143 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34144 return SWIG_Python_InitShadowInstance(args);
34145 }
34146
34147 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34148 PyObject *resultobj = 0;
34149 wxWindow *arg1 = (wxWindow *) 0 ;
34150 int arg2 = (int) -1 ;
34151 wxPoint const &arg3_defvalue = wxDefaultPosition ;
34152 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
34153 wxSize const &arg4_defvalue = wxDefaultSize ;
34154 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
34155 long arg5 = (long) wxTR_DEFAULT_STYLE ;
34156 wxValidator const &arg6_defvalue = wxDefaultValidator ;
34157 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
34158 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
34159 wxString *arg7 = (wxString *) &arg7_defvalue ;
34160 wxPyTreeCtrl *result = 0 ;
34161 void *argp1 = 0 ;
34162 int res1 = 0 ;
34163 int val2 ;
34164 int ecode2 = 0 ;
34165 wxPoint temp3 ;
34166 wxSize temp4 ;
34167 long val5 ;
34168 int ecode5 = 0 ;
34169 void *argp6 = 0 ;
34170 int res6 = 0 ;
34171 bool temp7 = false ;
34172 PyObject * obj0 = 0 ;
34173 PyObject * obj1 = 0 ;
34174 PyObject * obj2 = 0 ;
34175 PyObject * obj3 = 0 ;
34176 PyObject * obj4 = 0 ;
34177 PyObject * obj5 = 0 ;
34178 PyObject * obj6 = 0 ;
34179 char * kwnames[] = {
34180 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34181 };
34182
34183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34185 if (!SWIG_IsOK(res1)) {
34186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
34187 }
34188 arg1 = reinterpret_cast< wxWindow * >(argp1);
34189 if (obj1) {
34190 ecode2 = SWIG_AsVal_int(obj1, &val2);
34191 if (!SWIG_IsOK(ecode2)) {
34192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
34193 }
34194 arg2 = static_cast< int >(val2);
34195 }
34196 if (obj2) {
34197 {
34198 arg3 = &temp3;
34199 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34200 }
34201 }
34202 if (obj3) {
34203 {
34204 arg4 = &temp4;
34205 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34206 }
34207 }
34208 if (obj4) {
34209 ecode5 = SWIG_AsVal_long(obj4, &val5);
34210 if (!SWIG_IsOK(ecode5)) {
34211 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
34212 }
34213 arg5 = static_cast< long >(val5);
34214 }
34215 if (obj5) {
34216 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
34217 if (!SWIG_IsOK(res6)) {
34218 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
34219 }
34220 if (!argp6) {
34221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
34222 }
34223 arg6 = reinterpret_cast< wxValidator * >(argp6);
34224 }
34225 if (obj6) {
34226 {
34227 arg7 = wxString_in_helper(obj6);
34228 if (arg7 == NULL) SWIG_fail;
34229 temp7 = true;
34230 }
34231 }
34232 {
34233 if (!wxPyCheckForApp()) SWIG_fail;
34234 PyThreadState* __tstate = wxPyBeginAllowThreads();
34235 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
34236 wxPyEndAllowThreads(__tstate);
34237 if (PyErr_Occurred()) SWIG_fail;
34238 }
34239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
34240 {
34241 if (temp7)
34242 delete arg7;
34243 }
34244 return resultobj;
34245 fail:
34246 {
34247 if (temp7)
34248 delete arg7;
34249 }
34250 return NULL;
34251 }
34252
34253
34254 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34255 PyObject *resultobj = 0;
34256 wxPyTreeCtrl *result = 0 ;
34257
34258 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
34259 {
34260 if (!wxPyCheckForApp()) SWIG_fail;
34261 PyThreadState* __tstate = wxPyBeginAllowThreads();
34262 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
34263 wxPyEndAllowThreads(__tstate);
34264 if (PyErr_Occurred()) SWIG_fail;
34265 }
34266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
34267 return resultobj;
34268 fail:
34269 return NULL;
34270 }
34271
34272
34273 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34274 PyObject *resultobj = 0;
34275 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34276 wxWindow *arg2 = (wxWindow *) 0 ;
34277 int arg3 = (int) -1 ;
34278 wxPoint const &arg4_defvalue = wxDefaultPosition ;
34279 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
34280 wxSize const &arg5_defvalue = wxDefaultSize ;
34281 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
34282 long arg6 = (long) wxTR_DEFAULT_STYLE ;
34283 wxValidator const &arg7_defvalue = wxDefaultValidator ;
34284 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
34285 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
34286 wxString *arg8 = (wxString *) &arg8_defvalue ;
34287 bool result;
34288 void *argp1 = 0 ;
34289 int res1 = 0 ;
34290 void *argp2 = 0 ;
34291 int res2 = 0 ;
34292 int val3 ;
34293 int ecode3 = 0 ;
34294 wxPoint temp4 ;
34295 wxSize temp5 ;
34296 long val6 ;
34297 int ecode6 = 0 ;
34298 void *argp7 = 0 ;
34299 int res7 = 0 ;
34300 bool temp8 = false ;
34301 PyObject * obj0 = 0 ;
34302 PyObject * obj1 = 0 ;
34303 PyObject * obj2 = 0 ;
34304 PyObject * obj3 = 0 ;
34305 PyObject * obj4 = 0 ;
34306 PyObject * obj5 = 0 ;
34307 PyObject * obj6 = 0 ;
34308 PyObject * obj7 = 0 ;
34309 char * kwnames[] = {
34310 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34311 };
34312
34313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
34314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34315 if (!SWIG_IsOK(res1)) {
34316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34317 }
34318 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34319 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34320 if (!SWIG_IsOK(res2)) {
34321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
34322 }
34323 arg2 = reinterpret_cast< wxWindow * >(argp2);
34324 if (obj2) {
34325 ecode3 = SWIG_AsVal_int(obj2, &val3);
34326 if (!SWIG_IsOK(ecode3)) {
34327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34328 }
34329 arg3 = static_cast< int >(val3);
34330 }
34331 if (obj3) {
34332 {
34333 arg4 = &temp4;
34334 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
34335 }
34336 }
34337 if (obj4) {
34338 {
34339 arg5 = &temp5;
34340 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
34341 }
34342 }
34343 if (obj5) {
34344 ecode6 = SWIG_AsVal_long(obj5, &val6);
34345 if (!SWIG_IsOK(ecode6)) {
34346 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34347 }
34348 arg6 = static_cast< long >(val6);
34349 }
34350 if (obj6) {
34351 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34352 if (!SWIG_IsOK(res7)) {
34353 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34354 }
34355 if (!argp7) {
34356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34357 }
34358 arg7 = reinterpret_cast< wxValidator * >(argp7);
34359 }
34360 if (obj7) {
34361 {
34362 arg8 = wxString_in_helper(obj7);
34363 if (arg8 == NULL) SWIG_fail;
34364 temp8 = true;
34365 }
34366 }
34367 {
34368 PyThreadState* __tstate = wxPyBeginAllowThreads();
34369 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34370 wxPyEndAllowThreads(__tstate);
34371 if (PyErr_Occurred()) SWIG_fail;
34372 }
34373 {
34374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34375 }
34376 {
34377 if (temp8)
34378 delete arg8;
34379 }
34380 return resultobj;
34381 fail:
34382 {
34383 if (temp8)
34384 delete arg8;
34385 }
34386 return NULL;
34387 }
34388
34389
34390 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34391 PyObject *resultobj = 0;
34392 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34393 PyObject *arg2 = (PyObject *) 0 ;
34394 PyObject *arg3 = (PyObject *) 0 ;
34395 void *argp1 = 0 ;
34396 int res1 = 0 ;
34397 PyObject * obj0 = 0 ;
34398 PyObject * obj1 = 0 ;
34399 PyObject * obj2 = 0 ;
34400 char * kwnames[] = {
34401 (char *) "self",(char *) "self",(char *) "_class", NULL
34402 };
34403
34404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34406 if (!SWIG_IsOK(res1)) {
34407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34408 }
34409 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34410 arg2 = obj1;
34411 arg3 = obj2;
34412 {
34413 PyThreadState* __tstate = wxPyBeginAllowThreads();
34414 (arg1)->_setCallbackInfo(arg2,arg3);
34415 wxPyEndAllowThreads(__tstate);
34416 if (PyErr_Occurred()) SWIG_fail;
34417 }
34418 resultobj = SWIG_Py_Void();
34419 return resultobj;
34420 fail:
34421 return NULL;
34422 }
34423
34424
34425 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34426 PyObject *resultobj = 0;
34427 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34428 unsigned int result;
34429 void *argp1 = 0 ;
34430 int res1 = 0 ;
34431 PyObject *swig_obj[1] ;
34432
34433 if (!args) SWIG_fail;
34434 swig_obj[0] = args;
34435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34436 if (!SWIG_IsOK(res1)) {
34437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34438 }
34439 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34440 {
34441 PyThreadState* __tstate = wxPyBeginAllowThreads();
34442 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
34443 wxPyEndAllowThreads(__tstate);
34444 if (PyErr_Occurred()) SWIG_fail;
34445 }
34446 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34447 return resultobj;
34448 fail:
34449 return NULL;
34450 }
34451
34452
34453 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34454 PyObject *resultobj = 0;
34455 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34456 unsigned int result;
34457 void *argp1 = 0 ;
34458 int res1 = 0 ;
34459 PyObject *swig_obj[1] ;
34460
34461 if (!args) SWIG_fail;
34462 swig_obj[0] = args;
34463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34464 if (!SWIG_IsOK(res1)) {
34465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34466 }
34467 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34468 {
34469 PyThreadState* __tstate = wxPyBeginAllowThreads();
34470 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34471 wxPyEndAllowThreads(__tstate);
34472 if (PyErr_Occurred()) SWIG_fail;
34473 }
34474 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34475 return resultobj;
34476 fail:
34477 return NULL;
34478 }
34479
34480
34481 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34482 PyObject *resultobj = 0;
34483 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34484 unsigned int arg2 ;
34485 void *argp1 = 0 ;
34486 int res1 = 0 ;
34487 unsigned int val2 ;
34488 int ecode2 = 0 ;
34489 PyObject * obj0 = 0 ;
34490 PyObject * obj1 = 0 ;
34491 char * kwnames[] = {
34492 (char *) "self",(char *) "indent", NULL
34493 };
34494
34495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34497 if (!SWIG_IsOK(res1)) {
34498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34499 }
34500 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34501 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34502 if (!SWIG_IsOK(ecode2)) {
34503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34504 }
34505 arg2 = static_cast< unsigned int >(val2);
34506 {
34507 PyThreadState* __tstate = wxPyBeginAllowThreads();
34508 (arg1)->SetIndent(arg2);
34509 wxPyEndAllowThreads(__tstate);
34510 if (PyErr_Occurred()) SWIG_fail;
34511 }
34512 resultobj = SWIG_Py_Void();
34513 return resultobj;
34514 fail:
34515 return NULL;
34516 }
34517
34518
34519 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34520 PyObject *resultobj = 0;
34521 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34522 unsigned int result;
34523 void *argp1 = 0 ;
34524 int res1 = 0 ;
34525 PyObject *swig_obj[1] ;
34526
34527 if (!args) SWIG_fail;
34528 swig_obj[0] = args;
34529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34530 if (!SWIG_IsOK(res1)) {
34531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34532 }
34533 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34534 {
34535 PyThreadState* __tstate = wxPyBeginAllowThreads();
34536 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34537 wxPyEndAllowThreads(__tstate);
34538 if (PyErr_Occurred()) SWIG_fail;
34539 }
34540 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34541 return resultobj;
34542 fail:
34543 return NULL;
34544 }
34545
34546
34547 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34548 PyObject *resultobj = 0;
34549 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34550 unsigned int arg2 ;
34551 void *argp1 = 0 ;
34552 int res1 = 0 ;
34553 unsigned int val2 ;
34554 int ecode2 = 0 ;
34555 PyObject * obj0 = 0 ;
34556 PyObject * obj1 = 0 ;
34557 char * kwnames[] = {
34558 (char *) "self",(char *) "spacing", NULL
34559 };
34560
34561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34563 if (!SWIG_IsOK(res1)) {
34564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34565 }
34566 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34567 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34568 if (!SWIG_IsOK(ecode2)) {
34569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34570 }
34571 arg2 = static_cast< unsigned int >(val2);
34572 {
34573 PyThreadState* __tstate = wxPyBeginAllowThreads();
34574 (arg1)->SetSpacing(arg2);
34575 wxPyEndAllowThreads(__tstate);
34576 if (PyErr_Occurred()) SWIG_fail;
34577 }
34578 resultobj = SWIG_Py_Void();
34579 return resultobj;
34580 fail:
34581 return NULL;
34582 }
34583
34584
34585 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34586 PyObject *resultobj = 0;
34587 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34588 wxImageList *result = 0 ;
34589 void *argp1 = 0 ;
34590 int res1 = 0 ;
34591 PyObject *swig_obj[1] ;
34592
34593 if (!args) SWIG_fail;
34594 swig_obj[0] = args;
34595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34596 if (!SWIG_IsOK(res1)) {
34597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34598 }
34599 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34600 {
34601 PyThreadState* __tstate = wxPyBeginAllowThreads();
34602 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34603 wxPyEndAllowThreads(__tstate);
34604 if (PyErr_Occurred()) SWIG_fail;
34605 }
34606 {
34607 resultobj = wxPyMake_wxObject(result, (bool)0);
34608 }
34609 return resultobj;
34610 fail:
34611 return NULL;
34612 }
34613
34614
34615 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34616 PyObject *resultobj = 0;
34617 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34618 wxImageList *result = 0 ;
34619 void *argp1 = 0 ;
34620 int res1 = 0 ;
34621 PyObject *swig_obj[1] ;
34622
34623 if (!args) SWIG_fail;
34624 swig_obj[0] = args;
34625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34626 if (!SWIG_IsOK(res1)) {
34627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34628 }
34629 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34630 {
34631 PyThreadState* __tstate = wxPyBeginAllowThreads();
34632 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34633 wxPyEndAllowThreads(__tstate);
34634 if (PyErr_Occurred()) SWIG_fail;
34635 }
34636 {
34637 resultobj = wxPyMake_wxObject(result, (bool)0);
34638 }
34639 return resultobj;
34640 fail:
34641 return NULL;
34642 }
34643
34644
34645 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34646 PyObject *resultobj = 0;
34647 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34648 wxImageList *arg2 = (wxImageList *) 0 ;
34649 void *argp1 = 0 ;
34650 int res1 = 0 ;
34651 void *argp2 = 0 ;
34652 int res2 = 0 ;
34653 PyObject * obj0 = 0 ;
34654 PyObject * obj1 = 0 ;
34655 char * kwnames[] = {
34656 (char *) "self",(char *) "imageList", NULL
34657 };
34658
34659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34661 if (!SWIG_IsOK(res1)) {
34662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34663 }
34664 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34665 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34666 if (!SWIG_IsOK(res2)) {
34667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34668 }
34669 arg2 = reinterpret_cast< wxImageList * >(argp2);
34670 {
34671 PyThreadState* __tstate = wxPyBeginAllowThreads();
34672 (arg1)->SetImageList(arg2);
34673 wxPyEndAllowThreads(__tstate);
34674 if (PyErr_Occurred()) SWIG_fail;
34675 }
34676 resultobj = SWIG_Py_Void();
34677 return resultobj;
34678 fail:
34679 return NULL;
34680 }
34681
34682
34683 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34684 PyObject *resultobj = 0;
34685 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34686 wxImageList *arg2 = (wxImageList *) 0 ;
34687 void *argp1 = 0 ;
34688 int res1 = 0 ;
34689 void *argp2 = 0 ;
34690 int res2 = 0 ;
34691 PyObject * obj0 = 0 ;
34692 PyObject * obj1 = 0 ;
34693 char * kwnames[] = {
34694 (char *) "self",(char *) "imageList", NULL
34695 };
34696
34697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34699 if (!SWIG_IsOK(res1)) {
34700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34701 }
34702 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34703 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34704 if (!SWIG_IsOK(res2)) {
34705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34706 }
34707 arg2 = reinterpret_cast< wxImageList * >(argp2);
34708 {
34709 PyThreadState* __tstate = wxPyBeginAllowThreads();
34710 (arg1)->SetStateImageList(arg2);
34711 wxPyEndAllowThreads(__tstate);
34712 if (PyErr_Occurred()) SWIG_fail;
34713 }
34714 resultobj = SWIG_Py_Void();
34715 return resultobj;
34716 fail:
34717 return NULL;
34718 }
34719
34720
34721 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34722 PyObject *resultobj = 0;
34723 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34724 wxImageList *arg2 = (wxImageList *) 0 ;
34725 void *argp1 = 0 ;
34726 int res1 = 0 ;
34727 int res2 = 0 ;
34728 PyObject * obj0 = 0 ;
34729 PyObject * obj1 = 0 ;
34730 char * kwnames[] = {
34731 (char *) "self",(char *) "imageList", NULL
34732 };
34733
34734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34736 if (!SWIG_IsOK(res1)) {
34737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34738 }
34739 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34740 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34741 if (!SWIG_IsOK(res2)) {
34742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34743 }
34744 {
34745 PyThreadState* __tstate = wxPyBeginAllowThreads();
34746 (arg1)->AssignImageList(arg2);
34747 wxPyEndAllowThreads(__tstate);
34748 if (PyErr_Occurred()) SWIG_fail;
34749 }
34750 resultobj = SWIG_Py_Void();
34751 return resultobj;
34752 fail:
34753 return NULL;
34754 }
34755
34756
34757 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34758 PyObject *resultobj = 0;
34759 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34760 wxImageList *arg2 = (wxImageList *) 0 ;
34761 void *argp1 = 0 ;
34762 int res1 = 0 ;
34763 int res2 = 0 ;
34764 PyObject * obj0 = 0 ;
34765 PyObject * obj1 = 0 ;
34766 char * kwnames[] = {
34767 (char *) "self",(char *) "imageList", NULL
34768 };
34769
34770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34772 if (!SWIG_IsOK(res1)) {
34773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34774 }
34775 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34776 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34777 if (!SWIG_IsOK(res2)) {
34778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34779 }
34780 {
34781 PyThreadState* __tstate = wxPyBeginAllowThreads();
34782 (arg1)->AssignStateImageList(arg2);
34783 wxPyEndAllowThreads(__tstate);
34784 if (PyErr_Occurred()) SWIG_fail;
34785 }
34786 resultobj = SWIG_Py_Void();
34787 return resultobj;
34788 fail:
34789 return NULL;
34790 }
34791
34792
34793 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34794 PyObject *resultobj = 0;
34795 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34796 wxTreeItemId *arg2 = 0 ;
34797 wxString result;
34798 void *argp1 = 0 ;
34799 int res1 = 0 ;
34800 void *argp2 = 0 ;
34801 int res2 = 0 ;
34802 PyObject * obj0 = 0 ;
34803 PyObject * obj1 = 0 ;
34804 char * kwnames[] = {
34805 (char *) "self",(char *) "item", NULL
34806 };
34807
34808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34810 if (!SWIG_IsOK(res1)) {
34811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34812 }
34813 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34814 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34815 if (!SWIG_IsOK(res2)) {
34816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34817 }
34818 if (!argp2) {
34819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34820 }
34821 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34822 {
34823 PyThreadState* __tstate = wxPyBeginAllowThreads();
34824 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34825 wxPyEndAllowThreads(__tstate);
34826 if (PyErr_Occurred()) SWIG_fail;
34827 }
34828 {
34829 #if wxUSE_UNICODE
34830 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34831 #else
34832 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34833 #endif
34834 }
34835 return resultobj;
34836 fail:
34837 return NULL;
34838 }
34839
34840
34841 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34842 PyObject *resultobj = 0;
34843 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34844 wxTreeItemId *arg2 = 0 ;
34845 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34846 int result;
34847 void *argp1 = 0 ;
34848 int res1 = 0 ;
34849 void *argp2 = 0 ;
34850 int res2 = 0 ;
34851 int val3 ;
34852 int ecode3 = 0 ;
34853 PyObject * obj0 = 0 ;
34854 PyObject * obj1 = 0 ;
34855 PyObject * obj2 = 0 ;
34856 char * kwnames[] = {
34857 (char *) "self",(char *) "item",(char *) "which", NULL
34858 };
34859
34860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34862 if (!SWIG_IsOK(res1)) {
34863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34864 }
34865 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34866 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34867 if (!SWIG_IsOK(res2)) {
34868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34869 }
34870 if (!argp2) {
34871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34872 }
34873 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34874 if (obj2) {
34875 ecode3 = SWIG_AsVal_int(obj2, &val3);
34876 if (!SWIG_IsOK(ecode3)) {
34877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34878 }
34879 arg3 = static_cast< wxTreeItemIcon >(val3);
34880 }
34881 {
34882 PyThreadState* __tstate = wxPyBeginAllowThreads();
34883 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34884 wxPyEndAllowThreads(__tstate);
34885 if (PyErr_Occurred()) SWIG_fail;
34886 }
34887 resultobj = SWIG_From_int(static_cast< int >(result));
34888 return resultobj;
34889 fail:
34890 return NULL;
34891 }
34892
34893
34894 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34895 PyObject *resultobj = 0;
34896 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34897 wxTreeItemId *arg2 = 0 ;
34898 wxPyTreeItemData *result = 0 ;
34899 void *argp1 = 0 ;
34900 int res1 = 0 ;
34901 void *argp2 = 0 ;
34902 int res2 = 0 ;
34903 PyObject * obj0 = 0 ;
34904 PyObject * obj1 = 0 ;
34905 char * kwnames[] = {
34906 (char *) "self",(char *) "item", NULL
34907 };
34908
34909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34911 if (!SWIG_IsOK(res1)) {
34912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34913 }
34914 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34915 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34916 if (!SWIG_IsOK(res2)) {
34917 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34918 }
34919 if (!argp2) {
34920 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34921 }
34922 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34923 {
34924 PyThreadState* __tstate = wxPyBeginAllowThreads();
34925 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34926 wxPyEndAllowThreads(__tstate);
34927 if (PyErr_Occurred()) SWIG_fail;
34928 }
34929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34930 return resultobj;
34931 fail:
34932 return NULL;
34933 }
34934
34935
34936 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34937 PyObject *resultobj = 0;
34938 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34939 wxTreeItemId *arg2 = 0 ;
34940 PyObject *result = 0 ;
34941 void *argp1 = 0 ;
34942 int res1 = 0 ;
34943 void *argp2 = 0 ;
34944 int res2 = 0 ;
34945 PyObject * obj0 = 0 ;
34946 PyObject * obj1 = 0 ;
34947 char * kwnames[] = {
34948 (char *) "self",(char *) "item", NULL
34949 };
34950
34951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34953 if (!SWIG_IsOK(res1)) {
34954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34955 }
34956 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34957 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34958 if (!SWIG_IsOK(res2)) {
34959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34960 }
34961 if (!argp2) {
34962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34963 }
34964 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34965 {
34966 PyThreadState* __tstate = wxPyBeginAllowThreads();
34967 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34968 wxPyEndAllowThreads(__tstate);
34969 if (PyErr_Occurred()) SWIG_fail;
34970 }
34971 resultobj = result;
34972 return resultobj;
34973 fail:
34974 return NULL;
34975 }
34976
34977
34978 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34979 PyObject *resultobj = 0;
34980 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34981 wxTreeItemId *arg2 = 0 ;
34982 wxColour result;
34983 void *argp1 = 0 ;
34984 int res1 = 0 ;
34985 void *argp2 = 0 ;
34986 int res2 = 0 ;
34987 PyObject * obj0 = 0 ;
34988 PyObject * obj1 = 0 ;
34989 char * kwnames[] = {
34990 (char *) "self",(char *) "item", NULL
34991 };
34992
34993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34995 if (!SWIG_IsOK(res1)) {
34996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34997 }
34998 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35000 if (!SWIG_IsOK(res2)) {
35001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35002 }
35003 if (!argp2) {
35004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35005 }
35006 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35007 {
35008 PyThreadState* __tstate = wxPyBeginAllowThreads();
35009 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
35010 wxPyEndAllowThreads(__tstate);
35011 if (PyErr_Occurred()) SWIG_fail;
35012 }
35013 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
35014 return resultobj;
35015 fail:
35016 return NULL;
35017 }
35018
35019
35020 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35021 PyObject *resultobj = 0;
35022 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35023 wxTreeItemId *arg2 = 0 ;
35024 wxColour result;
35025 void *argp1 = 0 ;
35026 int res1 = 0 ;
35027 void *argp2 = 0 ;
35028 int res2 = 0 ;
35029 PyObject * obj0 = 0 ;
35030 PyObject * obj1 = 0 ;
35031 char * kwnames[] = {
35032 (char *) "self",(char *) "item", NULL
35033 };
35034
35035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
35036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35037 if (!SWIG_IsOK(res1)) {
35038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35039 }
35040 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35042 if (!SWIG_IsOK(res2)) {
35043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35044 }
35045 if (!argp2) {
35046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35047 }
35048 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35049 {
35050 PyThreadState* __tstate = wxPyBeginAllowThreads();
35051 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
35052 wxPyEndAllowThreads(__tstate);
35053 if (PyErr_Occurred()) SWIG_fail;
35054 }
35055 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
35056 return resultobj;
35057 fail:
35058 return NULL;
35059 }
35060
35061
35062 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35063 PyObject *resultobj = 0;
35064 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35065 wxTreeItemId *arg2 = 0 ;
35066 wxFont result;
35067 void *argp1 = 0 ;
35068 int res1 = 0 ;
35069 void *argp2 = 0 ;
35070 int res2 = 0 ;
35071 PyObject * obj0 = 0 ;
35072 PyObject * obj1 = 0 ;
35073 char * kwnames[] = {
35074 (char *) "self",(char *) "item", NULL
35075 };
35076
35077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
35078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35079 if (!SWIG_IsOK(res1)) {
35080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35081 }
35082 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35083 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35084 if (!SWIG_IsOK(res2)) {
35085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35086 }
35087 if (!argp2) {
35088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35089 }
35090 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35091 {
35092 PyThreadState* __tstate = wxPyBeginAllowThreads();
35093 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
35094 wxPyEndAllowThreads(__tstate);
35095 if (PyErr_Occurred()) SWIG_fail;
35096 }
35097 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
35098 return resultobj;
35099 fail:
35100 return NULL;
35101 }
35102
35103
35104 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35105 PyObject *resultobj = 0;
35106 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35107 wxTreeItemId *arg2 = 0 ;
35108 wxString *arg3 = 0 ;
35109 void *argp1 = 0 ;
35110 int res1 = 0 ;
35111 void *argp2 = 0 ;
35112 int res2 = 0 ;
35113 bool temp3 = false ;
35114 PyObject * obj0 = 0 ;
35115 PyObject * obj1 = 0 ;
35116 PyObject * obj2 = 0 ;
35117 char * kwnames[] = {
35118 (char *) "self",(char *) "item",(char *) "text", NULL
35119 };
35120
35121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35123 if (!SWIG_IsOK(res1)) {
35124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35125 }
35126 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35127 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35128 if (!SWIG_IsOK(res2)) {
35129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35130 }
35131 if (!argp2) {
35132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35133 }
35134 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35135 {
35136 arg3 = wxString_in_helper(obj2);
35137 if (arg3 == NULL) SWIG_fail;
35138 temp3 = true;
35139 }
35140 {
35141 PyThreadState* __tstate = wxPyBeginAllowThreads();
35142 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
35143 wxPyEndAllowThreads(__tstate);
35144 if (PyErr_Occurred()) SWIG_fail;
35145 }
35146 resultobj = SWIG_Py_Void();
35147 {
35148 if (temp3)
35149 delete arg3;
35150 }
35151 return resultobj;
35152 fail:
35153 {
35154 if (temp3)
35155 delete arg3;
35156 }
35157 return NULL;
35158 }
35159
35160
35161 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35162 PyObject *resultobj = 0;
35163 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35164 wxTreeItemId *arg2 = 0 ;
35165 int arg3 ;
35166 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
35167 void *argp1 = 0 ;
35168 int res1 = 0 ;
35169 void *argp2 = 0 ;
35170 int res2 = 0 ;
35171 int val3 ;
35172 int ecode3 = 0 ;
35173 int val4 ;
35174 int ecode4 = 0 ;
35175 PyObject * obj0 = 0 ;
35176 PyObject * obj1 = 0 ;
35177 PyObject * obj2 = 0 ;
35178 PyObject * obj3 = 0 ;
35179 char * kwnames[] = {
35180 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
35181 };
35182
35183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35185 if (!SWIG_IsOK(res1)) {
35186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35187 }
35188 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35189 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35190 if (!SWIG_IsOK(res2)) {
35191 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35192 }
35193 if (!argp2) {
35194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35195 }
35196 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35197 ecode3 = SWIG_AsVal_int(obj2, &val3);
35198 if (!SWIG_IsOK(ecode3)) {
35199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
35200 }
35201 arg3 = static_cast< int >(val3);
35202 if (obj3) {
35203 ecode4 = SWIG_AsVal_int(obj3, &val4);
35204 if (!SWIG_IsOK(ecode4)) {
35205 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
35206 }
35207 arg4 = static_cast< wxTreeItemIcon >(val4);
35208 }
35209 {
35210 PyThreadState* __tstate = wxPyBeginAllowThreads();
35211 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
35212 wxPyEndAllowThreads(__tstate);
35213 if (PyErr_Occurred()) SWIG_fail;
35214 }
35215 resultobj = SWIG_Py_Void();
35216 return resultobj;
35217 fail:
35218 return NULL;
35219 }
35220
35221
35222 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35223 PyObject *resultobj = 0;
35224 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35225 wxTreeItemId *arg2 = 0 ;
35226 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
35227 void *argp1 = 0 ;
35228 int res1 = 0 ;
35229 void *argp2 = 0 ;
35230 int res2 = 0 ;
35231 int res3 = 0 ;
35232 PyObject * obj0 = 0 ;
35233 PyObject * obj1 = 0 ;
35234 PyObject * obj2 = 0 ;
35235 char * kwnames[] = {
35236 (char *) "self",(char *) "item",(char *) "data", NULL
35237 };
35238
35239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35241 if (!SWIG_IsOK(res1)) {
35242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35243 }
35244 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35245 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35246 if (!SWIG_IsOK(res2)) {
35247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35248 }
35249 if (!argp2) {
35250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35251 }
35252 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35253 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35254 if (!SWIG_IsOK(res3)) {
35255 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
35256 }
35257 {
35258 PyThreadState* __tstate = wxPyBeginAllowThreads();
35259 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
35260 wxPyEndAllowThreads(__tstate);
35261 if (PyErr_Occurred()) SWIG_fail;
35262 }
35263 resultobj = SWIG_Py_Void();
35264 return resultobj;
35265 fail:
35266 return NULL;
35267 }
35268
35269
35270 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35271 PyObject *resultobj = 0;
35272 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35273 wxTreeItemId *arg2 = 0 ;
35274 PyObject *arg3 = (PyObject *) 0 ;
35275 void *argp1 = 0 ;
35276 int res1 = 0 ;
35277 void *argp2 = 0 ;
35278 int res2 = 0 ;
35279 PyObject * obj0 = 0 ;
35280 PyObject * obj1 = 0 ;
35281 PyObject * obj2 = 0 ;
35282 char * kwnames[] = {
35283 (char *) "self",(char *) "item",(char *) "obj", NULL
35284 };
35285
35286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35288 if (!SWIG_IsOK(res1)) {
35289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35290 }
35291 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35292 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35293 if (!SWIG_IsOK(res2)) {
35294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35295 }
35296 if (!argp2) {
35297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35298 }
35299 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35300 arg3 = obj2;
35301 {
35302 PyThreadState* __tstate = wxPyBeginAllowThreads();
35303 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
35304 wxPyEndAllowThreads(__tstate);
35305 if (PyErr_Occurred()) SWIG_fail;
35306 }
35307 resultobj = SWIG_Py_Void();
35308 return resultobj;
35309 fail:
35310 return NULL;
35311 }
35312
35313
35314 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35315 PyObject *resultobj = 0;
35316 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35317 wxTreeItemId *arg2 = 0 ;
35318 bool arg3 = (bool) true ;
35319 void *argp1 = 0 ;
35320 int res1 = 0 ;
35321 void *argp2 = 0 ;
35322 int res2 = 0 ;
35323 bool val3 ;
35324 int ecode3 = 0 ;
35325 PyObject * obj0 = 0 ;
35326 PyObject * obj1 = 0 ;
35327 PyObject * obj2 = 0 ;
35328 char * kwnames[] = {
35329 (char *) "self",(char *) "item",(char *) "has", NULL
35330 };
35331
35332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35334 if (!SWIG_IsOK(res1)) {
35335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35336 }
35337 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35338 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35339 if (!SWIG_IsOK(res2)) {
35340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35341 }
35342 if (!argp2) {
35343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35344 }
35345 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35346 if (obj2) {
35347 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35348 if (!SWIG_IsOK(ecode3)) {
35349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35350 }
35351 arg3 = static_cast< bool >(val3);
35352 }
35353 {
35354 PyThreadState* __tstate = wxPyBeginAllowThreads();
35355 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35356 wxPyEndAllowThreads(__tstate);
35357 if (PyErr_Occurred()) SWIG_fail;
35358 }
35359 resultobj = SWIG_Py_Void();
35360 return resultobj;
35361 fail:
35362 return NULL;
35363 }
35364
35365
35366 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35367 PyObject *resultobj = 0;
35368 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35369 wxTreeItemId *arg2 = 0 ;
35370 bool arg3 = (bool) true ;
35371 void *argp1 = 0 ;
35372 int res1 = 0 ;
35373 void *argp2 = 0 ;
35374 int res2 = 0 ;
35375 bool val3 ;
35376 int ecode3 = 0 ;
35377 PyObject * obj0 = 0 ;
35378 PyObject * obj1 = 0 ;
35379 PyObject * obj2 = 0 ;
35380 char * kwnames[] = {
35381 (char *) "self",(char *) "item",(char *) "bold", NULL
35382 };
35383
35384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35386 if (!SWIG_IsOK(res1)) {
35387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35388 }
35389 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35390 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35391 if (!SWIG_IsOK(res2)) {
35392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35393 }
35394 if (!argp2) {
35395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35396 }
35397 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35398 if (obj2) {
35399 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35400 if (!SWIG_IsOK(ecode3)) {
35401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35402 }
35403 arg3 = static_cast< bool >(val3);
35404 }
35405 {
35406 PyThreadState* __tstate = wxPyBeginAllowThreads();
35407 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35408 wxPyEndAllowThreads(__tstate);
35409 if (PyErr_Occurred()) SWIG_fail;
35410 }
35411 resultobj = SWIG_Py_Void();
35412 return resultobj;
35413 fail:
35414 return NULL;
35415 }
35416
35417
35418 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35419 PyObject *resultobj = 0;
35420 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35421 wxTreeItemId *arg2 = 0 ;
35422 bool arg3 = (bool) true ;
35423 void *argp1 = 0 ;
35424 int res1 = 0 ;
35425 void *argp2 = 0 ;
35426 int res2 = 0 ;
35427 bool val3 ;
35428 int ecode3 = 0 ;
35429 PyObject * obj0 = 0 ;
35430 PyObject * obj1 = 0 ;
35431 PyObject * obj2 = 0 ;
35432 char * kwnames[] = {
35433 (char *) "self",(char *) "item",(char *) "highlight", NULL
35434 };
35435
35436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35438 if (!SWIG_IsOK(res1)) {
35439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35440 }
35441 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35443 if (!SWIG_IsOK(res2)) {
35444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35445 }
35446 if (!argp2) {
35447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35448 }
35449 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35450 if (obj2) {
35451 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35452 if (!SWIG_IsOK(ecode3)) {
35453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35454 }
35455 arg3 = static_cast< bool >(val3);
35456 }
35457 {
35458 PyThreadState* __tstate = wxPyBeginAllowThreads();
35459 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35460 wxPyEndAllowThreads(__tstate);
35461 if (PyErr_Occurred()) SWIG_fail;
35462 }
35463 resultobj = SWIG_Py_Void();
35464 return resultobj;
35465 fail:
35466 return NULL;
35467 }
35468
35469
35470 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35471 PyObject *resultobj = 0;
35472 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35473 wxTreeItemId *arg2 = 0 ;
35474 wxColour *arg3 = 0 ;
35475 void *argp1 = 0 ;
35476 int res1 = 0 ;
35477 void *argp2 = 0 ;
35478 int res2 = 0 ;
35479 wxColour temp3 ;
35480 PyObject * obj0 = 0 ;
35481 PyObject * obj1 = 0 ;
35482 PyObject * obj2 = 0 ;
35483 char * kwnames[] = {
35484 (char *) "self",(char *) "item",(char *) "col", NULL
35485 };
35486
35487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35489 if (!SWIG_IsOK(res1)) {
35490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35491 }
35492 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35493 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35494 if (!SWIG_IsOK(res2)) {
35495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35496 }
35497 if (!argp2) {
35498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35499 }
35500 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35501 {
35502 arg3 = &temp3;
35503 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35504 }
35505 {
35506 PyThreadState* __tstate = wxPyBeginAllowThreads();
35507 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35508 wxPyEndAllowThreads(__tstate);
35509 if (PyErr_Occurred()) SWIG_fail;
35510 }
35511 resultobj = SWIG_Py_Void();
35512 return resultobj;
35513 fail:
35514 return NULL;
35515 }
35516
35517
35518 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35519 PyObject *resultobj = 0;
35520 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35521 wxTreeItemId *arg2 = 0 ;
35522 wxColour *arg3 = 0 ;
35523 void *argp1 = 0 ;
35524 int res1 = 0 ;
35525 void *argp2 = 0 ;
35526 int res2 = 0 ;
35527 wxColour temp3 ;
35528 PyObject * obj0 = 0 ;
35529 PyObject * obj1 = 0 ;
35530 PyObject * obj2 = 0 ;
35531 char * kwnames[] = {
35532 (char *) "self",(char *) "item",(char *) "col", NULL
35533 };
35534
35535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35537 if (!SWIG_IsOK(res1)) {
35538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35539 }
35540 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35542 if (!SWIG_IsOK(res2)) {
35543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35544 }
35545 if (!argp2) {
35546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35547 }
35548 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35549 {
35550 arg3 = &temp3;
35551 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35552 }
35553 {
35554 PyThreadState* __tstate = wxPyBeginAllowThreads();
35555 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35556 wxPyEndAllowThreads(__tstate);
35557 if (PyErr_Occurred()) SWIG_fail;
35558 }
35559 resultobj = SWIG_Py_Void();
35560 return resultobj;
35561 fail:
35562 return NULL;
35563 }
35564
35565
35566 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35567 PyObject *resultobj = 0;
35568 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35569 wxTreeItemId *arg2 = 0 ;
35570 wxFont *arg3 = 0 ;
35571 void *argp1 = 0 ;
35572 int res1 = 0 ;
35573 void *argp2 = 0 ;
35574 int res2 = 0 ;
35575 void *argp3 = 0 ;
35576 int res3 = 0 ;
35577 PyObject * obj0 = 0 ;
35578 PyObject * obj1 = 0 ;
35579 PyObject * obj2 = 0 ;
35580 char * kwnames[] = {
35581 (char *) "self",(char *) "item",(char *) "font", NULL
35582 };
35583
35584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35586 if (!SWIG_IsOK(res1)) {
35587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35588 }
35589 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35590 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35591 if (!SWIG_IsOK(res2)) {
35592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35593 }
35594 if (!argp2) {
35595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35596 }
35597 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35598 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35599 if (!SWIG_IsOK(res3)) {
35600 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35601 }
35602 if (!argp3) {
35603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35604 }
35605 arg3 = reinterpret_cast< wxFont * >(argp3);
35606 {
35607 PyThreadState* __tstate = wxPyBeginAllowThreads();
35608 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35609 wxPyEndAllowThreads(__tstate);
35610 if (PyErr_Occurred()) SWIG_fail;
35611 }
35612 resultobj = SWIG_Py_Void();
35613 return resultobj;
35614 fail:
35615 return NULL;
35616 }
35617
35618
35619 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35620 PyObject *resultobj = 0;
35621 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35622 wxTreeItemId *arg2 = 0 ;
35623 bool result;
35624 void *argp1 = 0 ;
35625 int res1 = 0 ;
35626 void *argp2 = 0 ;
35627 int res2 = 0 ;
35628 PyObject * obj0 = 0 ;
35629 PyObject * obj1 = 0 ;
35630 char * kwnames[] = {
35631 (char *) "self",(char *) "item", NULL
35632 };
35633
35634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35636 if (!SWIG_IsOK(res1)) {
35637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35638 }
35639 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35640 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35641 if (!SWIG_IsOK(res2)) {
35642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35643 }
35644 if (!argp2) {
35645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35646 }
35647 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35648 {
35649 PyThreadState* __tstate = wxPyBeginAllowThreads();
35650 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35651 wxPyEndAllowThreads(__tstate);
35652 if (PyErr_Occurred()) SWIG_fail;
35653 }
35654 {
35655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35656 }
35657 return resultobj;
35658 fail:
35659 return NULL;
35660 }
35661
35662
35663 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35664 PyObject *resultobj = 0;
35665 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35666 wxTreeItemId *arg2 = 0 ;
35667 bool result;
35668 void *argp1 = 0 ;
35669 int res1 = 0 ;
35670 void *argp2 = 0 ;
35671 int res2 = 0 ;
35672 PyObject * obj0 = 0 ;
35673 PyObject * obj1 = 0 ;
35674 char * kwnames[] = {
35675 (char *) "self",(char *) "item", NULL
35676 };
35677
35678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35680 if (!SWIG_IsOK(res1)) {
35681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35682 }
35683 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35685 if (!SWIG_IsOK(res2)) {
35686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35687 }
35688 if (!argp2) {
35689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35690 }
35691 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35692 {
35693 PyThreadState* __tstate = wxPyBeginAllowThreads();
35694 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35695 wxPyEndAllowThreads(__tstate);
35696 if (PyErr_Occurred()) SWIG_fail;
35697 }
35698 {
35699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35700 }
35701 return resultobj;
35702 fail:
35703 return NULL;
35704 }
35705
35706
35707 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35708 PyObject *resultobj = 0;
35709 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35710 wxTreeItemId *arg2 = 0 ;
35711 bool result;
35712 void *argp1 = 0 ;
35713 int res1 = 0 ;
35714 void *argp2 = 0 ;
35715 int res2 = 0 ;
35716 PyObject * obj0 = 0 ;
35717 PyObject * obj1 = 0 ;
35718 char * kwnames[] = {
35719 (char *) "self",(char *) "item", NULL
35720 };
35721
35722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35724 if (!SWIG_IsOK(res1)) {
35725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35726 }
35727 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35728 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35729 if (!SWIG_IsOK(res2)) {
35730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35731 }
35732 if (!argp2) {
35733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35734 }
35735 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35736 {
35737 PyThreadState* __tstate = wxPyBeginAllowThreads();
35738 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35739 wxPyEndAllowThreads(__tstate);
35740 if (PyErr_Occurred()) SWIG_fail;
35741 }
35742 {
35743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35744 }
35745 return resultobj;
35746 fail:
35747 return NULL;
35748 }
35749
35750
35751 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35752 PyObject *resultobj = 0;
35753 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35754 wxTreeItemId *arg2 = 0 ;
35755 bool result;
35756 void *argp1 = 0 ;
35757 int res1 = 0 ;
35758 void *argp2 = 0 ;
35759 int res2 = 0 ;
35760 PyObject * obj0 = 0 ;
35761 PyObject * obj1 = 0 ;
35762 char * kwnames[] = {
35763 (char *) "self",(char *) "item", NULL
35764 };
35765
35766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35768 if (!SWIG_IsOK(res1)) {
35769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35770 }
35771 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35772 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35773 if (!SWIG_IsOK(res2)) {
35774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35775 }
35776 if (!argp2) {
35777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35778 }
35779 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35780 {
35781 PyThreadState* __tstate = wxPyBeginAllowThreads();
35782 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35783 wxPyEndAllowThreads(__tstate);
35784 if (PyErr_Occurred()) SWIG_fail;
35785 }
35786 {
35787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35788 }
35789 return resultobj;
35790 fail:
35791 return NULL;
35792 }
35793
35794
35795 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35796 PyObject *resultobj = 0;
35797 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35798 wxTreeItemId *arg2 = 0 ;
35799 bool result;
35800 void *argp1 = 0 ;
35801 int res1 = 0 ;
35802 void *argp2 = 0 ;
35803 int res2 = 0 ;
35804 PyObject * obj0 = 0 ;
35805 PyObject * obj1 = 0 ;
35806 char * kwnames[] = {
35807 (char *) "self",(char *) "item", NULL
35808 };
35809
35810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35812 if (!SWIG_IsOK(res1)) {
35813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35814 }
35815 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35816 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35817 if (!SWIG_IsOK(res2)) {
35818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35819 }
35820 if (!argp2) {
35821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35822 }
35823 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35824 {
35825 PyThreadState* __tstate = wxPyBeginAllowThreads();
35826 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35827 wxPyEndAllowThreads(__tstate);
35828 if (PyErr_Occurred()) SWIG_fail;
35829 }
35830 {
35831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35832 }
35833 return resultobj;
35834 fail:
35835 return NULL;
35836 }
35837
35838
35839 SWIGINTERN PyObject *_wrap_TreeCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35840 PyObject *resultobj = 0;
35841 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35842 bool result;
35843 void *argp1 = 0 ;
35844 int res1 = 0 ;
35845 PyObject *swig_obj[1] ;
35846
35847 if (!args) SWIG_fail;
35848 swig_obj[0] = args;
35849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35850 if (!SWIG_IsOK(res1)) {
35851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35852 }
35853 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35854 {
35855 PyThreadState* __tstate = wxPyBeginAllowThreads();
35856 result = (bool)((wxPyTreeCtrl const *)arg1)->IsEmpty();
35857 wxPyEndAllowThreads(__tstate);
35858 if (PyErr_Occurred()) SWIG_fail;
35859 }
35860 {
35861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35862 }
35863 return resultobj;
35864 fail:
35865 return NULL;
35866 }
35867
35868
35869 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35870 PyObject *resultobj = 0;
35871 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35872 wxTreeItemId *arg2 = 0 ;
35873 bool arg3 = (bool) true ;
35874 size_t result;
35875 void *argp1 = 0 ;
35876 int res1 = 0 ;
35877 void *argp2 = 0 ;
35878 int res2 = 0 ;
35879 bool val3 ;
35880 int ecode3 = 0 ;
35881 PyObject * obj0 = 0 ;
35882 PyObject * obj1 = 0 ;
35883 PyObject * obj2 = 0 ;
35884 char * kwnames[] = {
35885 (char *) "self",(char *) "item",(char *) "recursively", NULL
35886 };
35887
35888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35890 if (!SWIG_IsOK(res1)) {
35891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35892 }
35893 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35895 if (!SWIG_IsOK(res2)) {
35896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35897 }
35898 if (!argp2) {
35899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35900 }
35901 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35902 if (obj2) {
35903 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35904 if (!SWIG_IsOK(ecode3)) {
35905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35906 }
35907 arg3 = static_cast< bool >(val3);
35908 }
35909 {
35910 PyThreadState* __tstate = wxPyBeginAllowThreads();
35911 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35912 wxPyEndAllowThreads(__tstate);
35913 if (PyErr_Occurred()) SWIG_fail;
35914 }
35915 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35916 return resultobj;
35917 fail:
35918 return NULL;
35919 }
35920
35921
35922 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35923 PyObject *resultobj = 0;
35924 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35925 wxTreeItemId result;
35926 void *argp1 = 0 ;
35927 int res1 = 0 ;
35928 PyObject *swig_obj[1] ;
35929
35930 if (!args) SWIG_fail;
35931 swig_obj[0] = args;
35932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35933 if (!SWIG_IsOK(res1)) {
35934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35935 }
35936 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35937 {
35938 PyThreadState* __tstate = wxPyBeginAllowThreads();
35939 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35940 wxPyEndAllowThreads(__tstate);
35941 if (PyErr_Occurred()) SWIG_fail;
35942 }
35943 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35944 return resultobj;
35945 fail:
35946 return NULL;
35947 }
35948
35949
35950 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35951 PyObject *resultobj = 0;
35952 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35953 wxTreeItemId result;
35954 void *argp1 = 0 ;
35955 int res1 = 0 ;
35956 PyObject *swig_obj[1] ;
35957
35958 if (!args) SWIG_fail;
35959 swig_obj[0] = args;
35960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35961 if (!SWIG_IsOK(res1)) {
35962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35963 }
35964 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35965 {
35966 PyThreadState* __tstate = wxPyBeginAllowThreads();
35967 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35968 wxPyEndAllowThreads(__tstate);
35969 if (PyErr_Occurred()) SWIG_fail;
35970 }
35971 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35972 return resultobj;
35973 fail:
35974 return NULL;
35975 }
35976
35977
35978 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35979 PyObject *resultobj = 0;
35980 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35981 PyObject *result = 0 ;
35982 void *argp1 = 0 ;
35983 int res1 = 0 ;
35984 PyObject *swig_obj[1] ;
35985
35986 if (!args) SWIG_fail;
35987 swig_obj[0] = args;
35988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35989 if (!SWIG_IsOK(res1)) {
35990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35991 }
35992 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35993 {
35994 PyThreadState* __tstate = wxPyBeginAllowThreads();
35995 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35996 wxPyEndAllowThreads(__tstate);
35997 if (PyErr_Occurred()) SWIG_fail;
35998 }
35999 resultobj = result;
36000 return resultobj;
36001 fail:
36002 return NULL;
36003 }
36004
36005
36006 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36007 PyObject *resultobj = 0;
36008 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36009 wxTreeItemId *arg2 = 0 ;
36010 wxTreeItemId result;
36011 void *argp1 = 0 ;
36012 int res1 = 0 ;
36013 void *argp2 = 0 ;
36014 int res2 = 0 ;
36015 PyObject * obj0 = 0 ;
36016 PyObject * obj1 = 0 ;
36017 char * kwnames[] = {
36018 (char *) "self",(char *) "item", NULL
36019 };
36020
36021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
36022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36023 if (!SWIG_IsOK(res1)) {
36024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36025 }
36026 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36027 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36028 if (!SWIG_IsOK(res2)) {
36029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36030 }
36031 if (!argp2) {
36032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36033 }
36034 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36035 {
36036 PyThreadState* __tstate = wxPyBeginAllowThreads();
36037 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
36038 wxPyEndAllowThreads(__tstate);
36039 if (PyErr_Occurred()) SWIG_fail;
36040 }
36041 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36042 return resultobj;
36043 fail:
36044 return NULL;
36045 }
36046
36047
36048 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36049 PyObject *resultobj = 0;
36050 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36051 wxTreeItemId *arg2 = 0 ;
36052 PyObject *result = 0 ;
36053 void *argp1 = 0 ;
36054 int res1 = 0 ;
36055 void *argp2 = 0 ;
36056 int res2 = 0 ;
36057 PyObject * obj0 = 0 ;
36058 PyObject * obj1 = 0 ;
36059 char * kwnames[] = {
36060 (char *) "self",(char *) "item", NULL
36061 };
36062
36063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
36064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36065 if (!SWIG_IsOK(res1)) {
36066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36067 }
36068 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36069 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36070 if (!SWIG_IsOK(res2)) {
36071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36072 }
36073 if (!argp2) {
36074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36075 }
36076 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36077 {
36078 PyThreadState* __tstate = wxPyBeginAllowThreads();
36079 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
36080 wxPyEndAllowThreads(__tstate);
36081 if (PyErr_Occurred()) SWIG_fail;
36082 }
36083 resultobj = result;
36084 return resultobj;
36085 fail:
36086 return NULL;
36087 }
36088
36089
36090 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36091 PyObject *resultobj = 0;
36092 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36093 wxTreeItemId *arg2 = 0 ;
36094 void *arg3 = (void *) 0 ;
36095 PyObject *result = 0 ;
36096 void *argp1 = 0 ;
36097 int res1 = 0 ;
36098 void *argp2 = 0 ;
36099 int res2 = 0 ;
36100 int res3 ;
36101 PyObject * obj0 = 0 ;
36102 PyObject * obj1 = 0 ;
36103 PyObject * obj2 = 0 ;
36104 char * kwnames[] = {
36105 (char *) "self",(char *) "item",(char *) "cookie", NULL
36106 };
36107
36108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36110 if (!SWIG_IsOK(res1)) {
36111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36112 }
36113 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36114 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36115 if (!SWIG_IsOK(res2)) {
36116 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36117 }
36118 if (!argp2) {
36119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36120 }
36121 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36122 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
36123 if (!SWIG_IsOK(res3)) {
36124 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
36125 }
36126 {
36127 PyThreadState* __tstate = wxPyBeginAllowThreads();
36128 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
36129 wxPyEndAllowThreads(__tstate);
36130 if (PyErr_Occurred()) SWIG_fail;
36131 }
36132 resultobj = result;
36133 return resultobj;
36134 fail:
36135 return NULL;
36136 }
36137
36138
36139 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36140 PyObject *resultobj = 0;
36141 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36142 wxTreeItemId *arg2 = 0 ;
36143 wxTreeItemId result;
36144 void *argp1 = 0 ;
36145 int res1 = 0 ;
36146 void *argp2 = 0 ;
36147 int res2 = 0 ;
36148 PyObject * obj0 = 0 ;
36149 PyObject * obj1 = 0 ;
36150 char * kwnames[] = {
36151 (char *) "self",(char *) "item", NULL
36152 };
36153
36154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
36155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36156 if (!SWIG_IsOK(res1)) {
36157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36158 }
36159 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36160 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36161 if (!SWIG_IsOK(res2)) {
36162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36163 }
36164 if (!argp2) {
36165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36166 }
36167 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36168 {
36169 PyThreadState* __tstate = wxPyBeginAllowThreads();
36170 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
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 return resultobj;
36176 fail:
36177 return NULL;
36178 }
36179
36180
36181 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36182 PyObject *resultobj = 0;
36183 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36184 wxTreeItemId *arg2 = 0 ;
36185 wxTreeItemId result;
36186 void *argp1 = 0 ;
36187 int res1 = 0 ;
36188 void *argp2 = 0 ;
36189 int res2 = 0 ;
36190 PyObject * obj0 = 0 ;
36191 PyObject * obj1 = 0 ;
36192 char * kwnames[] = {
36193 (char *) "self",(char *) "item", NULL
36194 };
36195
36196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36198 if (!SWIG_IsOK(res1)) {
36199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36200 }
36201 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36202 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36203 if (!SWIG_IsOK(res2)) {
36204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36205 }
36206 if (!argp2) {
36207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36208 }
36209 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36210 {
36211 PyThreadState* __tstate = wxPyBeginAllowThreads();
36212 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
36213 wxPyEndAllowThreads(__tstate);
36214 if (PyErr_Occurred()) SWIG_fail;
36215 }
36216 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36217 return resultobj;
36218 fail:
36219 return NULL;
36220 }
36221
36222
36223 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36224 PyObject *resultobj = 0;
36225 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36226 wxTreeItemId *arg2 = 0 ;
36227 wxTreeItemId result;
36228 void *argp1 = 0 ;
36229 int res1 = 0 ;
36230 void *argp2 = 0 ;
36231 int res2 = 0 ;
36232 PyObject * obj0 = 0 ;
36233 PyObject * obj1 = 0 ;
36234 char * kwnames[] = {
36235 (char *) "self",(char *) "item", NULL
36236 };
36237
36238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36240 if (!SWIG_IsOK(res1)) {
36241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36242 }
36243 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36244 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36245 if (!SWIG_IsOK(res2)) {
36246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36247 }
36248 if (!argp2) {
36249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36250 }
36251 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36252 {
36253 PyThreadState* __tstate = wxPyBeginAllowThreads();
36254 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
36255 wxPyEndAllowThreads(__tstate);
36256 if (PyErr_Occurred()) SWIG_fail;
36257 }
36258 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36259 return resultobj;
36260 fail:
36261 return NULL;
36262 }
36263
36264
36265 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36266 PyObject *resultobj = 0;
36267 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36268 wxTreeItemId result;
36269 void *argp1 = 0 ;
36270 int res1 = 0 ;
36271 PyObject *swig_obj[1] ;
36272
36273 if (!args) SWIG_fail;
36274 swig_obj[0] = args;
36275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36276 if (!SWIG_IsOK(res1)) {
36277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36278 }
36279 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36280 {
36281 PyThreadState* __tstate = wxPyBeginAllowThreads();
36282 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
36283 wxPyEndAllowThreads(__tstate);
36284 if (PyErr_Occurred()) SWIG_fail;
36285 }
36286 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36287 return resultobj;
36288 fail:
36289 return NULL;
36290 }
36291
36292
36293 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36294 PyObject *resultobj = 0;
36295 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36296 wxTreeItemId *arg2 = 0 ;
36297 wxTreeItemId result;
36298 void *argp1 = 0 ;
36299 int res1 = 0 ;
36300 void *argp2 = 0 ;
36301 int res2 = 0 ;
36302 PyObject * obj0 = 0 ;
36303 PyObject * obj1 = 0 ;
36304 char * kwnames[] = {
36305 (char *) "self",(char *) "item", NULL
36306 };
36307
36308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36310 if (!SWIG_IsOK(res1)) {
36311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36312 }
36313 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36314 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36315 if (!SWIG_IsOK(res2)) {
36316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36317 }
36318 if (!argp2) {
36319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36320 }
36321 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36322 {
36323 PyThreadState* __tstate = wxPyBeginAllowThreads();
36324 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
36325 wxPyEndAllowThreads(__tstate);
36326 if (PyErr_Occurred()) SWIG_fail;
36327 }
36328 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36329 return resultobj;
36330 fail:
36331 return NULL;
36332 }
36333
36334
36335 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36336 PyObject *resultobj = 0;
36337 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36338 wxTreeItemId *arg2 = 0 ;
36339 wxTreeItemId result;
36340 void *argp1 = 0 ;
36341 int res1 = 0 ;
36342 void *argp2 = 0 ;
36343 int res2 = 0 ;
36344 PyObject * obj0 = 0 ;
36345 PyObject * obj1 = 0 ;
36346 char * kwnames[] = {
36347 (char *) "self",(char *) "item", NULL
36348 };
36349
36350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36352 if (!SWIG_IsOK(res1)) {
36353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36354 }
36355 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36356 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36357 if (!SWIG_IsOK(res2)) {
36358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36359 }
36360 if (!argp2) {
36361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36362 }
36363 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36364 {
36365 PyThreadState* __tstate = wxPyBeginAllowThreads();
36366 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36367 wxPyEndAllowThreads(__tstate);
36368 if (PyErr_Occurred()) SWIG_fail;
36369 }
36370 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36371 return resultobj;
36372 fail:
36373 return NULL;
36374 }
36375
36376
36377 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36378 PyObject *resultobj = 0;
36379 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36380 wxString *arg2 = 0 ;
36381 int arg3 = (int) -1 ;
36382 int arg4 = (int) -1 ;
36383 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36384 wxTreeItemId result;
36385 void *argp1 = 0 ;
36386 int res1 = 0 ;
36387 bool temp2 = false ;
36388 int val3 ;
36389 int ecode3 = 0 ;
36390 int val4 ;
36391 int ecode4 = 0 ;
36392 int res5 = 0 ;
36393 PyObject * obj0 = 0 ;
36394 PyObject * obj1 = 0 ;
36395 PyObject * obj2 = 0 ;
36396 PyObject * obj3 = 0 ;
36397 PyObject * obj4 = 0 ;
36398 char * kwnames[] = {
36399 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36400 };
36401
36402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36404 if (!SWIG_IsOK(res1)) {
36405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36406 }
36407 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36408 {
36409 arg2 = wxString_in_helper(obj1);
36410 if (arg2 == NULL) SWIG_fail;
36411 temp2 = true;
36412 }
36413 if (obj2) {
36414 ecode3 = SWIG_AsVal_int(obj2, &val3);
36415 if (!SWIG_IsOK(ecode3)) {
36416 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36417 }
36418 arg3 = static_cast< int >(val3);
36419 }
36420 if (obj3) {
36421 ecode4 = SWIG_AsVal_int(obj3, &val4);
36422 if (!SWIG_IsOK(ecode4)) {
36423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36424 }
36425 arg4 = static_cast< int >(val4);
36426 }
36427 if (obj4) {
36428 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36429 if (!SWIG_IsOK(res5)) {
36430 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36431 }
36432 }
36433 {
36434 PyThreadState* __tstate = wxPyBeginAllowThreads();
36435 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36436 wxPyEndAllowThreads(__tstate);
36437 if (PyErr_Occurred()) SWIG_fail;
36438 }
36439 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36440 {
36441 if (temp2)
36442 delete arg2;
36443 }
36444 return resultobj;
36445 fail:
36446 {
36447 if (temp2)
36448 delete arg2;
36449 }
36450 return NULL;
36451 }
36452
36453
36454 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36455 PyObject *resultobj = 0;
36456 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36457 wxTreeItemId *arg2 = 0 ;
36458 wxString *arg3 = 0 ;
36459 int arg4 = (int) -1 ;
36460 int arg5 = (int) -1 ;
36461 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36462 wxTreeItemId result;
36463 void *argp1 = 0 ;
36464 int res1 = 0 ;
36465 void *argp2 = 0 ;
36466 int res2 = 0 ;
36467 bool temp3 = false ;
36468 int val4 ;
36469 int ecode4 = 0 ;
36470 int val5 ;
36471 int ecode5 = 0 ;
36472 int res6 = 0 ;
36473 PyObject * obj0 = 0 ;
36474 PyObject * obj1 = 0 ;
36475 PyObject * obj2 = 0 ;
36476 PyObject * obj3 = 0 ;
36477 PyObject * obj4 = 0 ;
36478 PyObject * obj5 = 0 ;
36479 char * kwnames[] = {
36480 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36481 };
36482
36483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36485 if (!SWIG_IsOK(res1)) {
36486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36487 }
36488 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36489 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36490 if (!SWIG_IsOK(res2)) {
36491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36492 }
36493 if (!argp2) {
36494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36495 }
36496 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36497 {
36498 arg3 = wxString_in_helper(obj2);
36499 if (arg3 == NULL) SWIG_fail;
36500 temp3 = true;
36501 }
36502 if (obj3) {
36503 ecode4 = SWIG_AsVal_int(obj3, &val4);
36504 if (!SWIG_IsOK(ecode4)) {
36505 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36506 }
36507 arg4 = static_cast< int >(val4);
36508 }
36509 if (obj4) {
36510 ecode5 = SWIG_AsVal_int(obj4, &val5);
36511 if (!SWIG_IsOK(ecode5)) {
36512 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36513 }
36514 arg5 = static_cast< int >(val5);
36515 }
36516 if (obj5) {
36517 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36518 if (!SWIG_IsOK(res6)) {
36519 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36520 }
36521 }
36522 {
36523 PyThreadState* __tstate = wxPyBeginAllowThreads();
36524 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36525 wxPyEndAllowThreads(__tstate);
36526 if (PyErr_Occurred()) SWIG_fail;
36527 }
36528 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36529 {
36530 if (temp3)
36531 delete arg3;
36532 }
36533 return resultobj;
36534 fail:
36535 {
36536 if (temp3)
36537 delete arg3;
36538 }
36539 return NULL;
36540 }
36541
36542
36543 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36544 PyObject *resultobj = 0;
36545 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36546 wxTreeItemId *arg2 = 0 ;
36547 wxTreeItemId *arg3 = 0 ;
36548 wxString *arg4 = 0 ;
36549 int arg5 = (int) -1 ;
36550 int arg6 = (int) -1 ;
36551 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36552 wxTreeItemId result;
36553 void *argp1 = 0 ;
36554 int res1 = 0 ;
36555 void *argp2 = 0 ;
36556 int res2 = 0 ;
36557 void *argp3 = 0 ;
36558 int res3 = 0 ;
36559 bool temp4 = false ;
36560 int val5 ;
36561 int ecode5 = 0 ;
36562 int val6 ;
36563 int ecode6 = 0 ;
36564 int res7 = 0 ;
36565 PyObject * obj0 = 0 ;
36566 PyObject * obj1 = 0 ;
36567 PyObject * obj2 = 0 ;
36568 PyObject * obj3 = 0 ;
36569 PyObject * obj4 = 0 ;
36570 PyObject * obj5 = 0 ;
36571 PyObject * obj6 = 0 ;
36572 char * kwnames[] = {
36573 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36574 };
36575
36576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36578 if (!SWIG_IsOK(res1)) {
36579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36580 }
36581 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36583 if (!SWIG_IsOK(res2)) {
36584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36585 }
36586 if (!argp2) {
36587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36588 }
36589 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36590 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36591 if (!SWIG_IsOK(res3)) {
36592 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36593 }
36594 if (!argp3) {
36595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36596 }
36597 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36598 {
36599 arg4 = wxString_in_helper(obj3);
36600 if (arg4 == NULL) SWIG_fail;
36601 temp4 = true;
36602 }
36603 if (obj4) {
36604 ecode5 = SWIG_AsVal_int(obj4, &val5);
36605 if (!SWIG_IsOK(ecode5)) {
36606 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36607 }
36608 arg5 = static_cast< int >(val5);
36609 }
36610 if (obj5) {
36611 ecode6 = SWIG_AsVal_int(obj5, &val6);
36612 if (!SWIG_IsOK(ecode6)) {
36613 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36614 }
36615 arg6 = static_cast< int >(val6);
36616 }
36617 if (obj6) {
36618 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36619 if (!SWIG_IsOK(res7)) {
36620 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36621 }
36622 }
36623 {
36624 PyThreadState* __tstate = wxPyBeginAllowThreads();
36625 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36626 wxPyEndAllowThreads(__tstate);
36627 if (PyErr_Occurred()) SWIG_fail;
36628 }
36629 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36630 {
36631 if (temp4)
36632 delete arg4;
36633 }
36634 return resultobj;
36635 fail:
36636 {
36637 if (temp4)
36638 delete arg4;
36639 }
36640 return NULL;
36641 }
36642
36643
36644 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36645 PyObject *resultobj = 0;
36646 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36647 wxTreeItemId *arg2 = 0 ;
36648 size_t arg3 ;
36649 wxString *arg4 = 0 ;
36650 int arg5 = (int) -1 ;
36651 int arg6 = (int) -1 ;
36652 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36653 wxTreeItemId result;
36654 void *argp1 = 0 ;
36655 int res1 = 0 ;
36656 void *argp2 = 0 ;
36657 int res2 = 0 ;
36658 size_t val3 ;
36659 int ecode3 = 0 ;
36660 bool temp4 = false ;
36661 int val5 ;
36662 int ecode5 = 0 ;
36663 int val6 ;
36664 int ecode6 = 0 ;
36665 int res7 = 0 ;
36666 PyObject * obj0 = 0 ;
36667 PyObject * obj1 = 0 ;
36668 PyObject * obj2 = 0 ;
36669 PyObject * obj3 = 0 ;
36670 PyObject * obj4 = 0 ;
36671 PyObject * obj5 = 0 ;
36672 PyObject * obj6 = 0 ;
36673 char * kwnames[] = {
36674 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36675 };
36676
36677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36679 if (!SWIG_IsOK(res1)) {
36680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36681 }
36682 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36683 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36684 if (!SWIG_IsOK(res2)) {
36685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36686 }
36687 if (!argp2) {
36688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36689 }
36690 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36691 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36692 if (!SWIG_IsOK(ecode3)) {
36693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36694 }
36695 arg3 = static_cast< size_t >(val3);
36696 {
36697 arg4 = wxString_in_helper(obj3);
36698 if (arg4 == NULL) SWIG_fail;
36699 temp4 = true;
36700 }
36701 if (obj4) {
36702 ecode5 = SWIG_AsVal_int(obj4, &val5);
36703 if (!SWIG_IsOK(ecode5)) {
36704 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36705 }
36706 arg5 = static_cast< int >(val5);
36707 }
36708 if (obj5) {
36709 ecode6 = SWIG_AsVal_int(obj5, &val6);
36710 if (!SWIG_IsOK(ecode6)) {
36711 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36712 }
36713 arg6 = static_cast< int >(val6);
36714 }
36715 if (obj6) {
36716 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36717 if (!SWIG_IsOK(res7)) {
36718 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36719 }
36720 }
36721 {
36722 PyThreadState* __tstate = wxPyBeginAllowThreads();
36723 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36724 wxPyEndAllowThreads(__tstate);
36725 if (PyErr_Occurred()) SWIG_fail;
36726 }
36727 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36728 {
36729 if (temp4)
36730 delete arg4;
36731 }
36732 return resultobj;
36733 fail:
36734 {
36735 if (temp4)
36736 delete arg4;
36737 }
36738 return NULL;
36739 }
36740
36741
36742 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36743 PyObject *resultobj = 0;
36744 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36745 wxTreeItemId *arg2 = 0 ;
36746 wxString *arg3 = 0 ;
36747 int arg4 = (int) -1 ;
36748 int arg5 = (int) -1 ;
36749 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36750 wxTreeItemId result;
36751 void *argp1 = 0 ;
36752 int res1 = 0 ;
36753 void *argp2 = 0 ;
36754 int res2 = 0 ;
36755 bool temp3 = false ;
36756 int val4 ;
36757 int ecode4 = 0 ;
36758 int val5 ;
36759 int ecode5 = 0 ;
36760 int res6 = 0 ;
36761 PyObject * obj0 = 0 ;
36762 PyObject * obj1 = 0 ;
36763 PyObject * obj2 = 0 ;
36764 PyObject * obj3 = 0 ;
36765 PyObject * obj4 = 0 ;
36766 PyObject * obj5 = 0 ;
36767 char * kwnames[] = {
36768 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36769 };
36770
36771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36773 if (!SWIG_IsOK(res1)) {
36774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36775 }
36776 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36777 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36778 if (!SWIG_IsOK(res2)) {
36779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36780 }
36781 if (!argp2) {
36782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36783 }
36784 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36785 {
36786 arg3 = wxString_in_helper(obj2);
36787 if (arg3 == NULL) SWIG_fail;
36788 temp3 = true;
36789 }
36790 if (obj3) {
36791 ecode4 = SWIG_AsVal_int(obj3, &val4);
36792 if (!SWIG_IsOK(ecode4)) {
36793 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36794 }
36795 arg4 = static_cast< int >(val4);
36796 }
36797 if (obj4) {
36798 ecode5 = SWIG_AsVal_int(obj4, &val5);
36799 if (!SWIG_IsOK(ecode5)) {
36800 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36801 }
36802 arg5 = static_cast< int >(val5);
36803 }
36804 if (obj5) {
36805 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36806 if (!SWIG_IsOK(res6)) {
36807 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36808 }
36809 }
36810 {
36811 PyThreadState* __tstate = wxPyBeginAllowThreads();
36812 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36813 wxPyEndAllowThreads(__tstate);
36814 if (PyErr_Occurred()) SWIG_fail;
36815 }
36816 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36817 {
36818 if (temp3)
36819 delete arg3;
36820 }
36821 return resultobj;
36822 fail:
36823 {
36824 if (temp3)
36825 delete arg3;
36826 }
36827 return NULL;
36828 }
36829
36830
36831 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36832 PyObject *resultobj = 0;
36833 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36834 wxTreeItemId *arg2 = 0 ;
36835 void *argp1 = 0 ;
36836 int res1 = 0 ;
36837 void *argp2 = 0 ;
36838 int res2 = 0 ;
36839 PyObject * obj0 = 0 ;
36840 PyObject * obj1 = 0 ;
36841 char * kwnames[] = {
36842 (char *) "self",(char *) "item", NULL
36843 };
36844
36845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36847 if (!SWIG_IsOK(res1)) {
36848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36849 }
36850 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36851 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36852 if (!SWIG_IsOK(res2)) {
36853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36854 }
36855 if (!argp2) {
36856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36857 }
36858 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36859 {
36860 PyThreadState* __tstate = wxPyBeginAllowThreads();
36861 (arg1)->Delete((wxTreeItemId const &)*arg2);
36862 wxPyEndAllowThreads(__tstate);
36863 if (PyErr_Occurred()) SWIG_fail;
36864 }
36865 resultobj = SWIG_Py_Void();
36866 return resultobj;
36867 fail:
36868 return NULL;
36869 }
36870
36871
36872 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36873 PyObject *resultobj = 0;
36874 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36875 wxTreeItemId *arg2 = 0 ;
36876 void *argp1 = 0 ;
36877 int res1 = 0 ;
36878 void *argp2 = 0 ;
36879 int res2 = 0 ;
36880 PyObject * obj0 = 0 ;
36881 PyObject * obj1 = 0 ;
36882 char * kwnames[] = {
36883 (char *) "self",(char *) "item", NULL
36884 };
36885
36886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36888 if (!SWIG_IsOK(res1)) {
36889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36890 }
36891 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36892 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36893 if (!SWIG_IsOK(res2)) {
36894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36895 }
36896 if (!argp2) {
36897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36898 }
36899 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36900 {
36901 PyThreadState* __tstate = wxPyBeginAllowThreads();
36902 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36903 wxPyEndAllowThreads(__tstate);
36904 if (PyErr_Occurred()) SWIG_fail;
36905 }
36906 resultobj = SWIG_Py_Void();
36907 return resultobj;
36908 fail:
36909 return NULL;
36910 }
36911
36912
36913 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36914 PyObject *resultobj = 0;
36915 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36916 void *argp1 = 0 ;
36917 int res1 = 0 ;
36918 PyObject *swig_obj[1] ;
36919
36920 if (!args) SWIG_fail;
36921 swig_obj[0] = args;
36922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36923 if (!SWIG_IsOK(res1)) {
36924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36925 }
36926 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36927 {
36928 PyThreadState* __tstate = wxPyBeginAllowThreads();
36929 (arg1)->DeleteAllItems();
36930 wxPyEndAllowThreads(__tstate);
36931 if (PyErr_Occurred()) SWIG_fail;
36932 }
36933 resultobj = SWIG_Py_Void();
36934 return resultobj;
36935 fail:
36936 return NULL;
36937 }
36938
36939
36940 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36941 PyObject *resultobj = 0;
36942 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36943 wxTreeItemId *arg2 = 0 ;
36944 void *argp1 = 0 ;
36945 int res1 = 0 ;
36946 void *argp2 = 0 ;
36947 int res2 = 0 ;
36948 PyObject * obj0 = 0 ;
36949 PyObject * obj1 = 0 ;
36950 char * kwnames[] = {
36951 (char *) "self",(char *) "item", NULL
36952 };
36953
36954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36956 if (!SWIG_IsOK(res1)) {
36957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36958 }
36959 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36961 if (!SWIG_IsOK(res2)) {
36962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36963 }
36964 if (!argp2) {
36965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36966 }
36967 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36968 {
36969 PyThreadState* __tstate = wxPyBeginAllowThreads();
36970 (arg1)->Expand((wxTreeItemId const &)*arg2);
36971 wxPyEndAllowThreads(__tstate);
36972 if (PyErr_Occurred()) SWIG_fail;
36973 }
36974 resultobj = SWIG_Py_Void();
36975 return resultobj;
36976 fail:
36977 return NULL;
36978 }
36979
36980
36981 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36982 PyObject *resultobj = 0;
36983 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36984 wxTreeItemId *arg2 = 0 ;
36985 void *argp1 = 0 ;
36986 int res1 = 0 ;
36987 void *argp2 = 0 ;
36988 int res2 = 0 ;
36989 PyObject * obj0 = 0 ;
36990 PyObject * obj1 = 0 ;
36991 char * kwnames[] = {
36992 (char *) "self",(char *) "item", NULL
36993 };
36994
36995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36997 if (!SWIG_IsOK(res1)) {
36998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36999 }
37000 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37001 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37002 if (!SWIG_IsOK(res2)) {
37003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37004 }
37005 if (!argp2) {
37006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37007 }
37008 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37009 {
37010 PyThreadState* __tstate = wxPyBeginAllowThreads();
37011 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
37012 wxPyEndAllowThreads(__tstate);
37013 if (PyErr_Occurred()) SWIG_fail;
37014 }
37015 resultobj = SWIG_Py_Void();
37016 return resultobj;
37017 fail:
37018 return NULL;
37019 }
37020
37021
37022 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37023 PyObject *resultobj = 0;
37024 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37025 void *argp1 = 0 ;
37026 int res1 = 0 ;
37027 PyObject *swig_obj[1] ;
37028
37029 if (!args) SWIG_fail;
37030 swig_obj[0] = args;
37031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37032 if (!SWIG_IsOK(res1)) {
37033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37034 }
37035 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37036 {
37037 PyThreadState* __tstate = wxPyBeginAllowThreads();
37038 (arg1)->ExpandAll();
37039 wxPyEndAllowThreads(__tstate);
37040 if (PyErr_Occurred()) SWIG_fail;
37041 }
37042 resultobj = SWIG_Py_Void();
37043 return resultobj;
37044 fail:
37045 return NULL;
37046 }
37047
37048
37049 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37050 PyObject *resultobj = 0;
37051 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37052 wxTreeItemId *arg2 = 0 ;
37053 void *argp1 = 0 ;
37054 int res1 = 0 ;
37055 void *argp2 = 0 ;
37056 int res2 = 0 ;
37057 PyObject * obj0 = 0 ;
37058 PyObject * obj1 = 0 ;
37059 char * kwnames[] = {
37060 (char *) "self",(char *) "item", NULL
37061 };
37062
37063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
37064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37065 if (!SWIG_IsOK(res1)) {
37066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37067 }
37068 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37069 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37070 if (!SWIG_IsOK(res2)) {
37071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37072 }
37073 if (!argp2) {
37074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37075 }
37076 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37077 {
37078 PyThreadState* __tstate = wxPyBeginAllowThreads();
37079 (arg1)->Collapse((wxTreeItemId const &)*arg2);
37080 wxPyEndAllowThreads(__tstate);
37081 if (PyErr_Occurred()) SWIG_fail;
37082 }
37083 resultobj = SWIG_Py_Void();
37084 return resultobj;
37085 fail:
37086 return NULL;
37087 }
37088
37089
37090 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37091 PyObject *resultobj = 0;
37092 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37093 wxTreeItemId *arg2 = 0 ;
37094 void *argp1 = 0 ;
37095 int res1 = 0 ;
37096 void *argp2 = 0 ;
37097 int res2 = 0 ;
37098 PyObject * obj0 = 0 ;
37099 PyObject * obj1 = 0 ;
37100 char * kwnames[] = {
37101 (char *) "self",(char *) "item", NULL
37102 };
37103
37104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37106 if (!SWIG_IsOK(res1)) {
37107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37108 }
37109 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37110 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37111 if (!SWIG_IsOK(res2)) {
37112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37113 }
37114 if (!argp2) {
37115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37116 }
37117 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37118 {
37119 PyThreadState* __tstate = wxPyBeginAllowThreads();
37120 (arg1)->CollapseAllChildren((wxTreeItemId const &)*arg2);
37121 wxPyEndAllowThreads(__tstate);
37122 if (PyErr_Occurred()) SWIG_fail;
37123 }
37124 resultobj = SWIG_Py_Void();
37125 return resultobj;
37126 fail:
37127 return NULL;
37128 }
37129
37130
37131 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37132 PyObject *resultobj = 0;
37133 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37134 void *argp1 = 0 ;
37135 int res1 = 0 ;
37136 PyObject *swig_obj[1] ;
37137
37138 if (!args) SWIG_fail;
37139 swig_obj[0] = args;
37140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37141 if (!SWIG_IsOK(res1)) {
37142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37143 }
37144 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37145 {
37146 PyThreadState* __tstate = wxPyBeginAllowThreads();
37147 (arg1)->CollapseAll();
37148 wxPyEndAllowThreads(__tstate);
37149 if (PyErr_Occurred()) SWIG_fail;
37150 }
37151 resultobj = SWIG_Py_Void();
37152 return resultobj;
37153 fail:
37154 return NULL;
37155 }
37156
37157
37158 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37159 PyObject *resultobj = 0;
37160 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37161 wxTreeItemId *arg2 = 0 ;
37162 void *argp1 = 0 ;
37163 int res1 = 0 ;
37164 void *argp2 = 0 ;
37165 int res2 = 0 ;
37166 PyObject * obj0 = 0 ;
37167 PyObject * obj1 = 0 ;
37168 char * kwnames[] = {
37169 (char *) "self",(char *) "item", NULL
37170 };
37171
37172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
37173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37174 if (!SWIG_IsOK(res1)) {
37175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37176 }
37177 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37178 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37179 if (!SWIG_IsOK(res2)) {
37180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37181 }
37182 if (!argp2) {
37183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37184 }
37185 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37186 {
37187 PyThreadState* __tstate = wxPyBeginAllowThreads();
37188 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
37189 wxPyEndAllowThreads(__tstate);
37190 if (PyErr_Occurred()) SWIG_fail;
37191 }
37192 resultobj = SWIG_Py_Void();
37193 return resultobj;
37194 fail:
37195 return NULL;
37196 }
37197
37198
37199 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37200 PyObject *resultobj = 0;
37201 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37202 wxTreeItemId *arg2 = 0 ;
37203 void *argp1 = 0 ;
37204 int res1 = 0 ;
37205 void *argp2 = 0 ;
37206 int res2 = 0 ;
37207 PyObject * obj0 = 0 ;
37208 PyObject * obj1 = 0 ;
37209 char * kwnames[] = {
37210 (char *) "self",(char *) "item", NULL
37211 };
37212
37213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
37214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37215 if (!SWIG_IsOK(res1)) {
37216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37217 }
37218 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37220 if (!SWIG_IsOK(res2)) {
37221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37222 }
37223 if (!argp2) {
37224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37225 }
37226 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37227 {
37228 PyThreadState* __tstate = wxPyBeginAllowThreads();
37229 (arg1)->Toggle((wxTreeItemId const &)*arg2);
37230 wxPyEndAllowThreads(__tstate);
37231 if (PyErr_Occurred()) SWIG_fail;
37232 }
37233 resultobj = SWIG_Py_Void();
37234 return resultobj;
37235 fail:
37236 return NULL;
37237 }
37238
37239
37240 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37241 PyObject *resultobj = 0;
37242 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37243 void *argp1 = 0 ;
37244 int res1 = 0 ;
37245 PyObject *swig_obj[1] ;
37246
37247 if (!args) SWIG_fail;
37248 swig_obj[0] = args;
37249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37250 if (!SWIG_IsOK(res1)) {
37251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37252 }
37253 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37254 {
37255 PyThreadState* __tstate = wxPyBeginAllowThreads();
37256 (arg1)->Unselect();
37257 wxPyEndAllowThreads(__tstate);
37258 if (PyErr_Occurred()) SWIG_fail;
37259 }
37260 resultobj = SWIG_Py_Void();
37261 return resultobj;
37262 fail:
37263 return NULL;
37264 }
37265
37266
37267 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37268 PyObject *resultobj = 0;
37269 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37270 wxTreeItemId *arg2 = 0 ;
37271 void *argp1 = 0 ;
37272 int res1 = 0 ;
37273 void *argp2 = 0 ;
37274 int res2 = 0 ;
37275 PyObject * obj0 = 0 ;
37276 PyObject * obj1 = 0 ;
37277 char * kwnames[] = {
37278 (char *) "self",(char *) "item", NULL
37279 };
37280
37281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
37282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37283 if (!SWIG_IsOK(res1)) {
37284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37285 }
37286 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37288 if (!SWIG_IsOK(res2)) {
37289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37290 }
37291 if (!argp2) {
37292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37293 }
37294 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37295 {
37296 PyThreadState* __tstate = wxPyBeginAllowThreads();
37297 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
37298 wxPyEndAllowThreads(__tstate);
37299 if (PyErr_Occurred()) SWIG_fail;
37300 }
37301 resultobj = SWIG_Py_Void();
37302 return resultobj;
37303 fail:
37304 return NULL;
37305 }
37306
37307
37308 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37309 PyObject *resultobj = 0;
37310 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37311 void *argp1 = 0 ;
37312 int res1 = 0 ;
37313 PyObject *swig_obj[1] ;
37314
37315 if (!args) SWIG_fail;
37316 swig_obj[0] = args;
37317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37318 if (!SWIG_IsOK(res1)) {
37319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37320 }
37321 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37322 {
37323 PyThreadState* __tstate = wxPyBeginAllowThreads();
37324 (arg1)->UnselectAll();
37325 wxPyEndAllowThreads(__tstate);
37326 if (PyErr_Occurred()) SWIG_fail;
37327 }
37328 resultobj = SWIG_Py_Void();
37329 return resultobj;
37330 fail:
37331 return NULL;
37332 }
37333
37334
37335 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37336 PyObject *resultobj = 0;
37337 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37338 wxTreeItemId *arg2 = 0 ;
37339 bool arg3 = (bool) true ;
37340 void *argp1 = 0 ;
37341 int res1 = 0 ;
37342 void *argp2 = 0 ;
37343 int res2 = 0 ;
37344 bool val3 ;
37345 int ecode3 = 0 ;
37346 PyObject * obj0 = 0 ;
37347 PyObject * obj1 = 0 ;
37348 PyObject * obj2 = 0 ;
37349 char * kwnames[] = {
37350 (char *) "self",(char *) "item",(char *) "select", NULL
37351 };
37352
37353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37355 if (!SWIG_IsOK(res1)) {
37356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37357 }
37358 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37359 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37360 if (!SWIG_IsOK(res2)) {
37361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37362 }
37363 if (!argp2) {
37364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37365 }
37366 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37367 if (obj2) {
37368 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37369 if (!SWIG_IsOK(ecode3)) {
37370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
37371 }
37372 arg3 = static_cast< bool >(val3);
37373 }
37374 {
37375 PyThreadState* __tstate = wxPyBeginAllowThreads();
37376 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
37377 wxPyEndAllowThreads(__tstate);
37378 if (PyErr_Occurred()) SWIG_fail;
37379 }
37380 resultobj = SWIG_Py_Void();
37381 return resultobj;
37382 fail:
37383 return NULL;
37384 }
37385
37386
37387 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37388 PyObject *resultobj = 0;
37389 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37390 wxTreeItemId *arg2 = 0 ;
37391 void *argp1 = 0 ;
37392 int res1 = 0 ;
37393 void *argp2 = 0 ;
37394 int res2 = 0 ;
37395 PyObject * obj0 = 0 ;
37396 PyObject * obj1 = 0 ;
37397 char * kwnames[] = {
37398 (char *) "self",(char *) "item", NULL
37399 };
37400
37401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
37402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37403 if (!SWIG_IsOK(res1)) {
37404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37405 }
37406 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37407 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37408 if (!SWIG_IsOK(res2)) {
37409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37410 }
37411 if (!argp2) {
37412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37413 }
37414 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37415 {
37416 PyThreadState* __tstate = wxPyBeginAllowThreads();
37417 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37418 wxPyEndAllowThreads(__tstate);
37419 if (PyErr_Occurred()) SWIG_fail;
37420 }
37421 resultobj = SWIG_Py_Void();
37422 return resultobj;
37423 fail:
37424 return NULL;
37425 }
37426
37427
37428 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37429 PyObject *resultobj = 0;
37430 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37431 wxTreeItemId *arg2 = 0 ;
37432 void *argp1 = 0 ;
37433 int res1 = 0 ;
37434 void *argp2 = 0 ;
37435 int res2 = 0 ;
37436 PyObject * obj0 = 0 ;
37437 PyObject * obj1 = 0 ;
37438 char * kwnames[] = {
37439 (char *) "self",(char *) "item", NULL
37440 };
37441
37442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37444 if (!SWIG_IsOK(res1)) {
37445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37446 }
37447 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37449 if (!SWIG_IsOK(res2)) {
37450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37451 }
37452 if (!argp2) {
37453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37454 }
37455 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37456 {
37457 PyThreadState* __tstate = wxPyBeginAllowThreads();
37458 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37459 wxPyEndAllowThreads(__tstate);
37460 if (PyErr_Occurred()) SWIG_fail;
37461 }
37462 resultobj = SWIG_Py_Void();
37463 return resultobj;
37464 fail:
37465 return NULL;
37466 }
37467
37468
37469 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37470 PyObject *resultobj = 0;
37471 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37472 wxTreeItemId *arg2 = 0 ;
37473 void *argp1 = 0 ;
37474 int res1 = 0 ;
37475 void *argp2 = 0 ;
37476 int res2 = 0 ;
37477 PyObject * obj0 = 0 ;
37478 PyObject * obj1 = 0 ;
37479 char * kwnames[] = {
37480 (char *) "self",(char *) "item", NULL
37481 };
37482
37483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37485 if (!SWIG_IsOK(res1)) {
37486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37487 }
37488 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37489 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37490 if (!SWIG_IsOK(res2)) {
37491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37492 }
37493 if (!argp2) {
37494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37495 }
37496 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37497 {
37498 PyThreadState* __tstate = wxPyBeginAllowThreads();
37499 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37500 wxPyEndAllowThreads(__tstate);
37501 if (PyErr_Occurred()) SWIG_fail;
37502 }
37503 resultobj = SWIG_Py_Void();
37504 return resultobj;
37505 fail:
37506 return NULL;
37507 }
37508
37509
37510 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37511 PyObject *resultobj = 0;
37512 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37513 wxTreeItemId *arg2 = 0 ;
37514 void *argp1 = 0 ;
37515 int res1 = 0 ;
37516 void *argp2 = 0 ;
37517 int res2 = 0 ;
37518 PyObject * obj0 = 0 ;
37519 PyObject * obj1 = 0 ;
37520 char * kwnames[] = {
37521 (char *) "self",(char *) "item", NULL
37522 };
37523
37524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37526 if (!SWIG_IsOK(res1)) {
37527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37528 }
37529 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37530 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37531 if (!SWIG_IsOK(res2)) {
37532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37533 }
37534 if (!argp2) {
37535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37536 }
37537 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37538 {
37539 PyThreadState* __tstate = wxPyBeginAllowThreads();
37540 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37541 wxPyEndAllowThreads(__tstate);
37542 if (PyErr_Occurred()) SWIG_fail;
37543 }
37544 resultobj = SWIG_Py_Void();
37545 return resultobj;
37546 fail:
37547 return NULL;
37548 }
37549
37550
37551 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37552 PyObject *resultobj = 0;
37553 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37554 wxTextCtrl *result = 0 ;
37555 void *argp1 = 0 ;
37556 int res1 = 0 ;
37557 PyObject *swig_obj[1] ;
37558
37559 if (!args) SWIG_fail;
37560 swig_obj[0] = args;
37561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37562 if (!SWIG_IsOK(res1)) {
37563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37564 }
37565 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37566 {
37567 PyThreadState* __tstate = wxPyBeginAllowThreads();
37568 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37569 wxPyEndAllowThreads(__tstate);
37570 if (PyErr_Occurred()) SWIG_fail;
37571 }
37572 {
37573 resultobj = wxPyMake_wxObject(result, 0);
37574 }
37575 return resultobj;
37576 fail:
37577 return NULL;
37578 }
37579
37580
37581 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37582 PyObject *resultobj = 0;
37583 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37584 wxTreeItemId *arg2 = 0 ;
37585 void *argp1 = 0 ;
37586 int res1 = 0 ;
37587 void *argp2 = 0 ;
37588 int res2 = 0 ;
37589 PyObject * obj0 = 0 ;
37590 PyObject * obj1 = 0 ;
37591 char * kwnames[] = {
37592 (char *) "self",(char *) "item", NULL
37593 };
37594
37595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37597 if (!SWIG_IsOK(res1)) {
37598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37599 }
37600 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37601 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37602 if (!SWIG_IsOK(res2)) {
37603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37604 }
37605 if (!argp2) {
37606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37607 }
37608 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37609 {
37610 PyThreadState* __tstate = wxPyBeginAllowThreads();
37611 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37612 wxPyEndAllowThreads(__tstate);
37613 if (PyErr_Occurred()) SWIG_fail;
37614 }
37615 resultobj = SWIG_Py_Void();
37616 return resultobj;
37617 fail:
37618 return NULL;
37619 }
37620
37621
37622 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37623 PyObject *resultobj = 0;
37624 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37625 wxPoint *arg2 = 0 ;
37626 int *arg3 = 0 ;
37627 wxTreeItemId result;
37628 void *argp1 = 0 ;
37629 int res1 = 0 ;
37630 wxPoint temp2 ;
37631 int temp3 ;
37632 int res3 = SWIG_TMPOBJ ;
37633 PyObject * obj0 = 0 ;
37634 PyObject * obj1 = 0 ;
37635 char * kwnames[] = {
37636 (char *) "self",(char *) "point", NULL
37637 };
37638
37639 arg3 = &temp3;
37640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37642 if (!SWIG_IsOK(res1)) {
37643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37644 }
37645 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37646 {
37647 arg2 = &temp2;
37648 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37649 }
37650 {
37651 PyThreadState* __tstate = wxPyBeginAllowThreads();
37652 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37653 wxPyEndAllowThreads(__tstate);
37654 if (PyErr_Occurred()) SWIG_fail;
37655 }
37656 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37657 if (SWIG_IsTmpObj(res3)) {
37658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37659 } else {
37660 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37662 }
37663 return resultobj;
37664 fail:
37665 return NULL;
37666 }
37667
37668
37669 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37670 PyObject *resultobj = 0;
37671 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37672 wxTreeItemId *arg2 = 0 ;
37673 bool arg3 = (bool) false ;
37674 PyObject *result = 0 ;
37675 void *argp1 = 0 ;
37676 int res1 = 0 ;
37677 void *argp2 = 0 ;
37678 int res2 = 0 ;
37679 bool val3 ;
37680 int ecode3 = 0 ;
37681 PyObject * obj0 = 0 ;
37682 PyObject * obj1 = 0 ;
37683 PyObject * obj2 = 0 ;
37684 char * kwnames[] = {
37685 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37686 };
37687
37688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37690 if (!SWIG_IsOK(res1)) {
37691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37692 }
37693 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37695 if (!SWIG_IsOK(res2)) {
37696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37697 }
37698 if (!argp2) {
37699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37700 }
37701 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37702 if (obj2) {
37703 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37704 if (!SWIG_IsOK(ecode3)) {
37705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37706 }
37707 arg3 = static_cast< bool >(val3);
37708 }
37709 {
37710 PyThreadState* __tstate = wxPyBeginAllowThreads();
37711 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37712 wxPyEndAllowThreads(__tstate);
37713 if (PyErr_Occurred()) SWIG_fail;
37714 }
37715 resultobj = result;
37716 return resultobj;
37717 fail:
37718 return NULL;
37719 }
37720
37721
37722 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37723 PyObject *resultobj = 0;
37724 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37725 SwigValueWrapper<wxVisualAttributes > result;
37726 int val1 ;
37727 int ecode1 = 0 ;
37728 PyObject * obj0 = 0 ;
37729 char * kwnames[] = {
37730 (char *) "variant", NULL
37731 };
37732
37733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37734 if (obj0) {
37735 ecode1 = SWIG_AsVal_int(obj0, &val1);
37736 if (!SWIG_IsOK(ecode1)) {
37737 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37738 }
37739 arg1 = static_cast< wxWindowVariant >(val1);
37740 }
37741 {
37742 if (!wxPyCheckForApp()) SWIG_fail;
37743 PyThreadState* __tstate = wxPyBeginAllowThreads();
37744 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37745 wxPyEndAllowThreads(__tstate);
37746 if (PyErr_Occurred()) SWIG_fail;
37747 }
37748 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37749 return resultobj;
37750 fail:
37751 return NULL;
37752 }
37753
37754
37755 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37756 PyObject *resultobj = 0;
37757 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37758 bool arg2 ;
37759 void *argp1 = 0 ;
37760 int res1 = 0 ;
37761 bool val2 ;
37762 int ecode2 = 0 ;
37763 PyObject * obj0 = 0 ;
37764 PyObject * obj1 = 0 ;
37765 char * kwnames[] = {
37766 (char *) "self",(char *) "q", NULL
37767 };
37768
37769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37771 if (!SWIG_IsOK(res1)) {
37772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37773 }
37774 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37775 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37776 if (!SWIG_IsOK(ecode2)) {
37777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37778 }
37779 arg2 = static_cast< bool >(val2);
37780 {
37781 PyThreadState* __tstate = wxPyBeginAllowThreads();
37782 (arg1)->SetQuickBestSize(arg2);
37783 wxPyEndAllowThreads(__tstate);
37784 if (PyErr_Occurred()) SWIG_fail;
37785 }
37786 resultobj = SWIG_Py_Void();
37787 return resultobj;
37788 fail:
37789 return NULL;
37790 }
37791
37792
37793 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37794 PyObject *resultobj = 0;
37795 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37796 bool result;
37797 void *argp1 = 0 ;
37798 int res1 = 0 ;
37799 PyObject *swig_obj[1] ;
37800
37801 if (!args) SWIG_fail;
37802 swig_obj[0] = args;
37803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37804 if (!SWIG_IsOK(res1)) {
37805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37806 }
37807 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37808 {
37809 PyThreadState* __tstate = wxPyBeginAllowThreads();
37810 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37811 wxPyEndAllowThreads(__tstate);
37812 if (PyErr_Occurred()) SWIG_fail;
37813 }
37814 {
37815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37816 }
37817 return resultobj;
37818 fail:
37819 return NULL;
37820 }
37821
37822
37823 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37824 PyObject *obj;
37825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37826 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37827 return SWIG_Py_Void();
37828 }
37829
37830 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37831 return SWIG_Python_InitShadowInstance(args);
37832 }
37833
37834 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37835 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37836 return 1;
37837 }
37838
37839
37840 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37841 PyObject *pyobj = 0;
37842
37843 {
37844 #if wxUSE_UNICODE
37845 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37846 #else
37847 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37848 #endif
37849 }
37850 return pyobj;
37851 }
37852
37853
37854 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37855 PyObject *resultobj = 0;
37856 wxWindow *arg1 = (wxWindow *) 0 ;
37857 int arg2 = (int) (int)-1 ;
37858 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37859 wxString *arg3 = (wxString *) &arg3_defvalue ;
37860 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37861 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37862 wxSize const &arg5_defvalue = wxDefaultSize ;
37863 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37864 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37865 wxString const &arg7_defvalue = wxPyEmptyString ;
37866 wxString *arg7 = (wxString *) &arg7_defvalue ;
37867 int arg8 = (int) 0 ;
37868 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37869 wxString *arg9 = (wxString *) &arg9_defvalue ;
37870 wxGenericDirCtrl *result = 0 ;
37871 void *argp1 = 0 ;
37872 int res1 = 0 ;
37873 int val2 ;
37874 int ecode2 = 0 ;
37875 bool temp3 = false ;
37876 wxPoint temp4 ;
37877 wxSize temp5 ;
37878 long val6 ;
37879 int ecode6 = 0 ;
37880 bool temp7 = false ;
37881 int val8 ;
37882 int ecode8 = 0 ;
37883 bool temp9 = false ;
37884 PyObject * obj0 = 0 ;
37885 PyObject * obj1 = 0 ;
37886 PyObject * obj2 = 0 ;
37887 PyObject * obj3 = 0 ;
37888 PyObject * obj4 = 0 ;
37889 PyObject * obj5 = 0 ;
37890 PyObject * obj6 = 0 ;
37891 PyObject * obj7 = 0 ;
37892 PyObject * obj8 = 0 ;
37893 char * kwnames[] = {
37894 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37895 };
37896
37897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37899 if (!SWIG_IsOK(res1)) {
37900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37901 }
37902 arg1 = reinterpret_cast< wxWindow * >(argp1);
37903 if (obj1) {
37904 ecode2 = SWIG_AsVal_int(obj1, &val2);
37905 if (!SWIG_IsOK(ecode2)) {
37906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37907 }
37908 arg2 = static_cast< int >(val2);
37909 }
37910 if (obj2) {
37911 {
37912 arg3 = wxString_in_helper(obj2);
37913 if (arg3 == NULL) SWIG_fail;
37914 temp3 = true;
37915 }
37916 }
37917 if (obj3) {
37918 {
37919 arg4 = &temp4;
37920 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37921 }
37922 }
37923 if (obj4) {
37924 {
37925 arg5 = &temp5;
37926 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37927 }
37928 }
37929 if (obj5) {
37930 ecode6 = SWIG_AsVal_long(obj5, &val6);
37931 if (!SWIG_IsOK(ecode6)) {
37932 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37933 }
37934 arg6 = static_cast< long >(val6);
37935 }
37936 if (obj6) {
37937 {
37938 arg7 = wxString_in_helper(obj6);
37939 if (arg7 == NULL) SWIG_fail;
37940 temp7 = true;
37941 }
37942 }
37943 if (obj7) {
37944 ecode8 = SWIG_AsVal_int(obj7, &val8);
37945 if (!SWIG_IsOK(ecode8)) {
37946 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37947 }
37948 arg8 = static_cast< int >(val8);
37949 }
37950 if (obj8) {
37951 {
37952 arg9 = wxString_in_helper(obj8);
37953 if (arg9 == NULL) SWIG_fail;
37954 temp9 = true;
37955 }
37956 }
37957 {
37958 if (!wxPyCheckForApp()) SWIG_fail;
37959 PyThreadState* __tstate = wxPyBeginAllowThreads();
37960 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37961 wxPyEndAllowThreads(__tstate);
37962 if (PyErr_Occurred()) SWIG_fail;
37963 }
37964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37965 {
37966 if (temp3)
37967 delete arg3;
37968 }
37969 {
37970 if (temp7)
37971 delete arg7;
37972 }
37973 {
37974 if (temp9)
37975 delete arg9;
37976 }
37977 return resultobj;
37978 fail:
37979 {
37980 if (temp3)
37981 delete arg3;
37982 }
37983 {
37984 if (temp7)
37985 delete arg7;
37986 }
37987 {
37988 if (temp9)
37989 delete arg9;
37990 }
37991 return NULL;
37992 }
37993
37994
37995 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37996 PyObject *resultobj = 0;
37997 wxGenericDirCtrl *result = 0 ;
37998
37999 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
38000 {
38001 if (!wxPyCheckForApp()) SWIG_fail;
38002 PyThreadState* __tstate = wxPyBeginAllowThreads();
38003 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
38004 wxPyEndAllowThreads(__tstate);
38005 if (PyErr_Occurred()) SWIG_fail;
38006 }
38007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
38008 return resultobj;
38009 fail:
38010 return NULL;
38011 }
38012
38013
38014 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38015 PyObject *resultobj = 0;
38016 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38017 wxWindow *arg2 = (wxWindow *) 0 ;
38018 int arg3 = (int) (int)-1 ;
38019 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
38020 wxString *arg4 = (wxString *) &arg4_defvalue ;
38021 wxPoint const &arg5_defvalue = wxDefaultPosition ;
38022 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
38023 wxSize const &arg6_defvalue = wxDefaultSize ;
38024 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
38025 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
38026 wxString const &arg8_defvalue = wxPyEmptyString ;
38027 wxString *arg8 = (wxString *) &arg8_defvalue ;
38028 int arg9 = (int) 0 ;
38029 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
38030 wxString *arg10 = (wxString *) &arg10_defvalue ;
38031 bool result;
38032 void *argp1 = 0 ;
38033 int res1 = 0 ;
38034 void *argp2 = 0 ;
38035 int res2 = 0 ;
38036 int val3 ;
38037 int ecode3 = 0 ;
38038 bool temp4 = false ;
38039 wxPoint temp5 ;
38040 wxSize temp6 ;
38041 long val7 ;
38042 int ecode7 = 0 ;
38043 bool temp8 = false ;
38044 int val9 ;
38045 int ecode9 = 0 ;
38046 bool temp10 = false ;
38047 PyObject * obj0 = 0 ;
38048 PyObject * obj1 = 0 ;
38049 PyObject * obj2 = 0 ;
38050 PyObject * obj3 = 0 ;
38051 PyObject * obj4 = 0 ;
38052 PyObject * obj5 = 0 ;
38053 PyObject * obj6 = 0 ;
38054 PyObject * obj7 = 0 ;
38055 PyObject * obj8 = 0 ;
38056 PyObject * obj9 = 0 ;
38057 char * kwnames[] = {
38058 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
38059 };
38060
38061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
38062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38063 if (!SWIG_IsOK(res1)) {
38064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38065 }
38066 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38067 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
38068 if (!SWIG_IsOK(res2)) {
38069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
38070 }
38071 arg2 = reinterpret_cast< wxWindow * >(argp2);
38072 if (obj2) {
38073 ecode3 = SWIG_AsVal_int(obj2, &val3);
38074 if (!SWIG_IsOK(ecode3)) {
38075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38076 }
38077 arg3 = static_cast< int >(val3);
38078 }
38079 if (obj3) {
38080 {
38081 arg4 = wxString_in_helper(obj3);
38082 if (arg4 == NULL) SWIG_fail;
38083 temp4 = true;
38084 }
38085 }
38086 if (obj4) {
38087 {
38088 arg5 = &temp5;
38089 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
38090 }
38091 }
38092 if (obj5) {
38093 {
38094 arg6 = &temp6;
38095 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
38096 }
38097 }
38098 if (obj6) {
38099 ecode7 = SWIG_AsVal_long(obj6, &val7);
38100 if (!SWIG_IsOK(ecode7)) {
38101 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
38102 }
38103 arg7 = static_cast< long >(val7);
38104 }
38105 if (obj7) {
38106 {
38107 arg8 = wxString_in_helper(obj7);
38108 if (arg8 == NULL) SWIG_fail;
38109 temp8 = true;
38110 }
38111 }
38112 if (obj8) {
38113 ecode9 = SWIG_AsVal_int(obj8, &val9);
38114 if (!SWIG_IsOK(ecode9)) {
38115 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
38116 }
38117 arg9 = static_cast< int >(val9);
38118 }
38119 if (obj9) {
38120 {
38121 arg10 = wxString_in_helper(obj9);
38122 if (arg10 == NULL) SWIG_fail;
38123 temp10 = true;
38124 }
38125 }
38126 {
38127 PyThreadState* __tstate = wxPyBeginAllowThreads();
38128 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
38129 wxPyEndAllowThreads(__tstate);
38130 if (PyErr_Occurred()) SWIG_fail;
38131 }
38132 {
38133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38134 }
38135 {
38136 if (temp4)
38137 delete arg4;
38138 }
38139 {
38140 if (temp8)
38141 delete arg8;
38142 }
38143 {
38144 if (temp10)
38145 delete arg10;
38146 }
38147 return resultobj;
38148 fail:
38149 {
38150 if (temp4)
38151 delete arg4;
38152 }
38153 {
38154 if (temp8)
38155 delete arg8;
38156 }
38157 {
38158 if (temp10)
38159 delete arg10;
38160 }
38161 return NULL;
38162 }
38163
38164
38165 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38166 PyObject *resultobj = 0;
38167 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38168 wxString *arg2 = 0 ;
38169 bool result;
38170 void *argp1 = 0 ;
38171 int res1 = 0 ;
38172 bool temp2 = false ;
38173 PyObject * obj0 = 0 ;
38174 PyObject * obj1 = 0 ;
38175 char * kwnames[] = {
38176 (char *) "self",(char *) "path", NULL
38177 };
38178
38179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
38180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38181 if (!SWIG_IsOK(res1)) {
38182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38183 }
38184 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38185 {
38186 arg2 = wxString_in_helper(obj1);
38187 if (arg2 == NULL) SWIG_fail;
38188 temp2 = true;
38189 }
38190 {
38191 PyThreadState* __tstate = wxPyBeginAllowThreads();
38192 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
38193 wxPyEndAllowThreads(__tstate);
38194 if (PyErr_Occurred()) SWIG_fail;
38195 }
38196 {
38197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38198 }
38199 {
38200 if (temp2)
38201 delete arg2;
38202 }
38203 return resultobj;
38204 fail:
38205 {
38206 if (temp2)
38207 delete arg2;
38208 }
38209 return NULL;
38210 }
38211
38212
38213 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38214 PyObject *resultobj = 0;
38215 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38216 wxString *arg2 = 0 ;
38217 bool result;
38218 void *argp1 = 0 ;
38219 int res1 = 0 ;
38220 bool temp2 = false ;
38221 PyObject * obj0 = 0 ;
38222 PyObject * obj1 = 0 ;
38223 char * kwnames[] = {
38224 (char *) "self",(char *) "path", NULL
38225 };
38226
38227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
38228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38229 if (!SWIG_IsOK(res1)) {
38230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38231 }
38232 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38233 {
38234 arg2 = wxString_in_helper(obj1);
38235 if (arg2 == NULL) SWIG_fail;
38236 temp2 = true;
38237 }
38238 {
38239 PyThreadState* __tstate = wxPyBeginAllowThreads();
38240 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
38241 wxPyEndAllowThreads(__tstate);
38242 if (PyErr_Occurred()) SWIG_fail;
38243 }
38244 {
38245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38246 }
38247 {
38248 if (temp2)
38249 delete arg2;
38250 }
38251 return resultobj;
38252 fail:
38253 {
38254 if (temp2)
38255 delete arg2;
38256 }
38257 return NULL;
38258 }
38259
38260
38261 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38262 PyObject *resultobj = 0;
38263 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38264 wxString result;
38265 void *argp1 = 0 ;
38266 int res1 = 0 ;
38267 PyObject *swig_obj[1] ;
38268
38269 if (!args) SWIG_fail;
38270 swig_obj[0] = args;
38271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38272 if (!SWIG_IsOK(res1)) {
38273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38274 }
38275 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38276 {
38277 PyThreadState* __tstate = wxPyBeginAllowThreads();
38278 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
38279 wxPyEndAllowThreads(__tstate);
38280 if (PyErr_Occurred()) SWIG_fail;
38281 }
38282 {
38283 #if wxUSE_UNICODE
38284 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38285 #else
38286 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38287 #endif
38288 }
38289 return resultobj;
38290 fail:
38291 return NULL;
38292 }
38293
38294
38295 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38296 PyObject *resultobj = 0;
38297 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38298 wxString *arg2 = 0 ;
38299 void *argp1 = 0 ;
38300 int res1 = 0 ;
38301 bool temp2 = false ;
38302 PyObject * obj0 = 0 ;
38303 PyObject * obj1 = 0 ;
38304 char * kwnames[] = {
38305 (char *) "self",(char *) "path", NULL
38306 };
38307
38308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
38309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38310 if (!SWIG_IsOK(res1)) {
38311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38312 }
38313 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38314 {
38315 arg2 = wxString_in_helper(obj1);
38316 if (arg2 == NULL) SWIG_fail;
38317 temp2 = true;
38318 }
38319 {
38320 PyThreadState* __tstate = wxPyBeginAllowThreads();
38321 (arg1)->SetDefaultPath((wxString const &)*arg2);
38322 wxPyEndAllowThreads(__tstate);
38323 if (PyErr_Occurred()) SWIG_fail;
38324 }
38325 resultobj = SWIG_Py_Void();
38326 {
38327 if (temp2)
38328 delete arg2;
38329 }
38330 return resultobj;
38331 fail:
38332 {
38333 if (temp2)
38334 delete arg2;
38335 }
38336 return NULL;
38337 }
38338
38339
38340 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38341 PyObject *resultobj = 0;
38342 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38343 wxString result;
38344 void *argp1 = 0 ;
38345 int res1 = 0 ;
38346 PyObject *swig_obj[1] ;
38347
38348 if (!args) SWIG_fail;
38349 swig_obj[0] = args;
38350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38351 if (!SWIG_IsOK(res1)) {
38352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38353 }
38354 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38355 {
38356 PyThreadState* __tstate = wxPyBeginAllowThreads();
38357 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
38358 wxPyEndAllowThreads(__tstate);
38359 if (PyErr_Occurred()) SWIG_fail;
38360 }
38361 {
38362 #if wxUSE_UNICODE
38363 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38364 #else
38365 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38366 #endif
38367 }
38368 return resultobj;
38369 fail:
38370 return NULL;
38371 }
38372
38373
38374 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38375 PyObject *resultobj = 0;
38376 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38377 wxString result;
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_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38387 }
38388 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38389 {
38390 PyThreadState* __tstate = wxPyBeginAllowThreads();
38391 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
38392 wxPyEndAllowThreads(__tstate);
38393 if (PyErr_Occurred()) SWIG_fail;
38394 }
38395 {
38396 #if wxUSE_UNICODE
38397 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38398 #else
38399 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38400 #endif
38401 }
38402 return resultobj;
38403 fail:
38404 return NULL;
38405 }
38406
38407
38408 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38409 PyObject *resultobj = 0;
38410 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38411 wxString *arg2 = 0 ;
38412 void *argp1 = 0 ;
38413 int res1 = 0 ;
38414 bool temp2 = false ;
38415 PyObject * obj0 = 0 ;
38416 PyObject * obj1 = 0 ;
38417 char * kwnames[] = {
38418 (char *) "self",(char *) "path", NULL
38419 };
38420
38421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
38422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38423 if (!SWIG_IsOK(res1)) {
38424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38425 }
38426 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38427 {
38428 arg2 = wxString_in_helper(obj1);
38429 if (arg2 == NULL) SWIG_fail;
38430 temp2 = true;
38431 }
38432 {
38433 PyThreadState* __tstate = wxPyBeginAllowThreads();
38434 (arg1)->SetPath((wxString const &)*arg2);
38435 wxPyEndAllowThreads(__tstate);
38436 if (PyErr_Occurred()) SWIG_fail;
38437 }
38438 resultobj = SWIG_Py_Void();
38439 {
38440 if (temp2)
38441 delete arg2;
38442 }
38443 return resultobj;
38444 fail:
38445 {
38446 if (temp2)
38447 delete arg2;
38448 }
38449 return NULL;
38450 }
38451
38452
38453 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38454 PyObject *resultobj = 0;
38455 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38456 bool arg2 ;
38457 void *argp1 = 0 ;
38458 int res1 = 0 ;
38459 bool val2 ;
38460 int ecode2 = 0 ;
38461 PyObject * obj0 = 0 ;
38462 PyObject * obj1 = 0 ;
38463 char * kwnames[] = {
38464 (char *) "self",(char *) "show", NULL
38465 };
38466
38467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38469 if (!SWIG_IsOK(res1)) {
38470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38471 }
38472 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38473 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38474 if (!SWIG_IsOK(ecode2)) {
38475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38476 }
38477 arg2 = static_cast< bool >(val2);
38478 {
38479 PyThreadState* __tstate = wxPyBeginAllowThreads();
38480 (arg1)->ShowHidden(arg2);
38481 wxPyEndAllowThreads(__tstate);
38482 if (PyErr_Occurred()) SWIG_fail;
38483 }
38484 resultobj = SWIG_Py_Void();
38485 return resultobj;
38486 fail:
38487 return NULL;
38488 }
38489
38490
38491 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38492 PyObject *resultobj = 0;
38493 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38494 bool result;
38495 void *argp1 = 0 ;
38496 int res1 = 0 ;
38497 PyObject *swig_obj[1] ;
38498
38499 if (!args) SWIG_fail;
38500 swig_obj[0] = args;
38501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38502 if (!SWIG_IsOK(res1)) {
38503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38504 }
38505 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38506 {
38507 PyThreadState* __tstate = wxPyBeginAllowThreads();
38508 result = (bool)(arg1)->GetShowHidden();
38509 wxPyEndAllowThreads(__tstate);
38510 if (PyErr_Occurred()) SWIG_fail;
38511 }
38512 {
38513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38514 }
38515 return resultobj;
38516 fail:
38517 return NULL;
38518 }
38519
38520
38521 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38522 PyObject *resultobj = 0;
38523 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38524 wxString result;
38525 void *argp1 = 0 ;
38526 int res1 = 0 ;
38527 PyObject *swig_obj[1] ;
38528
38529 if (!args) SWIG_fail;
38530 swig_obj[0] = args;
38531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38532 if (!SWIG_IsOK(res1)) {
38533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38534 }
38535 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38536 {
38537 PyThreadState* __tstate = wxPyBeginAllowThreads();
38538 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38539 wxPyEndAllowThreads(__tstate);
38540 if (PyErr_Occurred()) SWIG_fail;
38541 }
38542 {
38543 #if wxUSE_UNICODE
38544 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38545 #else
38546 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38547 #endif
38548 }
38549 return resultobj;
38550 fail:
38551 return NULL;
38552 }
38553
38554
38555 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38556 PyObject *resultobj = 0;
38557 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38558 wxString *arg2 = 0 ;
38559 void *argp1 = 0 ;
38560 int res1 = 0 ;
38561 bool temp2 = false ;
38562 PyObject * obj0 = 0 ;
38563 PyObject * obj1 = 0 ;
38564 char * kwnames[] = {
38565 (char *) "self",(char *) "filter", NULL
38566 };
38567
38568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38570 if (!SWIG_IsOK(res1)) {
38571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38572 }
38573 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38574 {
38575 arg2 = wxString_in_helper(obj1);
38576 if (arg2 == NULL) SWIG_fail;
38577 temp2 = true;
38578 }
38579 {
38580 PyThreadState* __tstate = wxPyBeginAllowThreads();
38581 (arg1)->SetFilter((wxString const &)*arg2);
38582 wxPyEndAllowThreads(__tstate);
38583 if (PyErr_Occurred()) SWIG_fail;
38584 }
38585 resultobj = SWIG_Py_Void();
38586 {
38587 if (temp2)
38588 delete arg2;
38589 }
38590 return resultobj;
38591 fail:
38592 {
38593 if (temp2)
38594 delete arg2;
38595 }
38596 return NULL;
38597 }
38598
38599
38600 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38601 PyObject *resultobj = 0;
38602 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38603 int result;
38604 void *argp1 = 0 ;
38605 int res1 = 0 ;
38606 PyObject *swig_obj[1] ;
38607
38608 if (!args) SWIG_fail;
38609 swig_obj[0] = args;
38610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38611 if (!SWIG_IsOK(res1)) {
38612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38613 }
38614 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38615 {
38616 PyThreadState* __tstate = wxPyBeginAllowThreads();
38617 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38618 wxPyEndAllowThreads(__tstate);
38619 if (PyErr_Occurred()) SWIG_fail;
38620 }
38621 resultobj = SWIG_From_int(static_cast< int >(result));
38622 return resultobj;
38623 fail:
38624 return NULL;
38625 }
38626
38627
38628 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38629 PyObject *resultobj = 0;
38630 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38631 int arg2 ;
38632 void *argp1 = 0 ;
38633 int res1 = 0 ;
38634 int val2 ;
38635 int ecode2 = 0 ;
38636 PyObject * obj0 = 0 ;
38637 PyObject * obj1 = 0 ;
38638 char * kwnames[] = {
38639 (char *) "self",(char *) "n", NULL
38640 };
38641
38642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38644 if (!SWIG_IsOK(res1)) {
38645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38646 }
38647 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38648 ecode2 = SWIG_AsVal_int(obj1, &val2);
38649 if (!SWIG_IsOK(ecode2)) {
38650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38651 }
38652 arg2 = static_cast< int >(val2);
38653 {
38654 PyThreadState* __tstate = wxPyBeginAllowThreads();
38655 (arg1)->SetFilterIndex(arg2);
38656 wxPyEndAllowThreads(__tstate);
38657 if (PyErr_Occurred()) SWIG_fail;
38658 }
38659 resultobj = SWIG_Py_Void();
38660 return resultobj;
38661 fail:
38662 return NULL;
38663 }
38664
38665
38666 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38667 PyObject *resultobj = 0;
38668 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38669 wxTreeItemId result;
38670 void *argp1 = 0 ;
38671 int res1 = 0 ;
38672 PyObject *swig_obj[1] ;
38673
38674 if (!args) SWIG_fail;
38675 swig_obj[0] = args;
38676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38677 if (!SWIG_IsOK(res1)) {
38678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38679 }
38680 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38681 {
38682 PyThreadState* __tstate = wxPyBeginAllowThreads();
38683 result = (arg1)->GetRootId();
38684 wxPyEndAllowThreads(__tstate);
38685 if (PyErr_Occurred()) SWIG_fail;
38686 }
38687 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38688 return resultobj;
38689 fail:
38690 return NULL;
38691 }
38692
38693
38694 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38695 PyObject *resultobj = 0;
38696 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38697 wxPyTreeCtrl *result = 0 ;
38698 void *argp1 = 0 ;
38699 int res1 = 0 ;
38700 PyObject *swig_obj[1] ;
38701
38702 if (!args) SWIG_fail;
38703 swig_obj[0] = args;
38704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38705 if (!SWIG_IsOK(res1)) {
38706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38707 }
38708 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38709 {
38710 PyThreadState* __tstate = wxPyBeginAllowThreads();
38711 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38712 wxPyEndAllowThreads(__tstate);
38713 if (PyErr_Occurred()) SWIG_fail;
38714 }
38715 {
38716 resultobj = wxPyMake_wxObject(result, 0);
38717 }
38718 return resultobj;
38719 fail:
38720 return NULL;
38721 }
38722
38723
38724 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38725 PyObject *resultobj = 0;
38726 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38727 wxDirFilterListCtrl *result = 0 ;
38728 void *argp1 = 0 ;
38729 int res1 = 0 ;
38730 PyObject *swig_obj[1] ;
38731
38732 if (!args) SWIG_fail;
38733 swig_obj[0] = args;
38734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38735 if (!SWIG_IsOK(res1)) {
38736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38737 }
38738 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38739 {
38740 PyThreadState* __tstate = wxPyBeginAllowThreads();
38741 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38742 wxPyEndAllowThreads(__tstate);
38743 if (PyErr_Occurred()) SWIG_fail;
38744 }
38745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38746 return resultobj;
38747 fail:
38748 return NULL;
38749 }
38750
38751
38752 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38753 PyObject *resultobj = 0;
38754 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38755 wxTreeItemId arg2 ;
38756 wxString *arg3 = 0 ;
38757 bool *arg4 = 0 ;
38758 wxTreeItemId result;
38759 void *argp1 = 0 ;
38760 int res1 = 0 ;
38761 void *argp2 ;
38762 int res2 = 0 ;
38763 bool temp3 = false ;
38764 bool temp4 ;
38765 int res4 = SWIG_TMPOBJ ;
38766 PyObject * obj0 = 0 ;
38767 PyObject * obj1 = 0 ;
38768 PyObject * obj2 = 0 ;
38769 char * kwnames[] = {
38770 (char *) "self",(char *) "parentId",(char *) "path", NULL
38771 };
38772
38773 arg4 = &temp4;
38774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38776 if (!SWIG_IsOK(res1)) {
38777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38778 }
38779 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38780 {
38781 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38782 if (!SWIG_IsOK(res2)) {
38783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38784 }
38785 if (!argp2) {
38786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38787 } else {
38788 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38789 arg2 = *temp;
38790 if (SWIG_IsNewObj(res2)) delete temp;
38791 }
38792 }
38793 {
38794 arg3 = wxString_in_helper(obj2);
38795 if (arg3 == NULL) SWIG_fail;
38796 temp3 = true;
38797 }
38798 {
38799 PyThreadState* __tstate = wxPyBeginAllowThreads();
38800 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38801 wxPyEndAllowThreads(__tstate);
38802 if (PyErr_Occurred()) SWIG_fail;
38803 }
38804 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38805 if (SWIG_IsTmpObj(res4)) {
38806 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38807 } else {
38808 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38810 }
38811 {
38812 if (temp3)
38813 delete arg3;
38814 }
38815 return resultobj;
38816 fail:
38817 {
38818 if (temp3)
38819 delete arg3;
38820 }
38821 return NULL;
38822 }
38823
38824
38825 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38826 PyObject *resultobj = 0;
38827 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38828 void *argp1 = 0 ;
38829 int res1 = 0 ;
38830 PyObject *swig_obj[1] ;
38831
38832 if (!args) SWIG_fail;
38833 swig_obj[0] = args;
38834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38835 if (!SWIG_IsOK(res1)) {
38836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38837 }
38838 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38839 {
38840 PyThreadState* __tstate = wxPyBeginAllowThreads();
38841 (arg1)->DoResize();
38842 wxPyEndAllowThreads(__tstate);
38843 if (PyErr_Occurred()) SWIG_fail;
38844 }
38845 resultobj = SWIG_Py_Void();
38846 return resultobj;
38847 fail:
38848 return NULL;
38849 }
38850
38851
38852 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38853 PyObject *resultobj = 0;
38854 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38855 void *argp1 = 0 ;
38856 int res1 = 0 ;
38857 PyObject *swig_obj[1] ;
38858
38859 if (!args) SWIG_fail;
38860 swig_obj[0] = args;
38861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38862 if (!SWIG_IsOK(res1)) {
38863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38864 }
38865 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38866 {
38867 PyThreadState* __tstate = wxPyBeginAllowThreads();
38868 (arg1)->ReCreateTree();
38869 wxPyEndAllowThreads(__tstate);
38870 if (PyErr_Occurred()) SWIG_fail;
38871 }
38872 resultobj = SWIG_Py_Void();
38873 return resultobj;
38874 fail:
38875 return NULL;
38876 }
38877
38878
38879 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38880 PyObject *obj;
38881 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38882 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38883 return SWIG_Py_Void();
38884 }
38885
38886 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38887 return SWIG_Python_InitShadowInstance(args);
38888 }
38889
38890 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38891 PyObject *resultobj = 0;
38892 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38893 int arg2 = (int) (int)-1 ;
38894 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38895 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38896 wxSize const &arg4_defvalue = wxDefaultSize ;
38897 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38898 long arg5 = (long) 0 ;
38899 wxDirFilterListCtrl *result = 0 ;
38900 void *argp1 = 0 ;
38901 int res1 = 0 ;
38902 int val2 ;
38903 int ecode2 = 0 ;
38904 wxPoint temp3 ;
38905 wxSize temp4 ;
38906 long 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 *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38915 };
38916
38917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38919 if (!SWIG_IsOK(res1)) {
38920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38921 }
38922 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38923 if (obj1) {
38924 ecode2 = SWIG_AsVal_int(obj1, &val2);
38925 if (!SWIG_IsOK(ecode2)) {
38926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38927 }
38928 arg2 = static_cast< int >(val2);
38929 }
38930 if (obj2) {
38931 {
38932 arg3 = &temp3;
38933 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38934 }
38935 }
38936 if (obj3) {
38937 {
38938 arg4 = &temp4;
38939 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38940 }
38941 }
38942 if (obj4) {
38943 ecode5 = SWIG_AsVal_long(obj4, &val5);
38944 if (!SWIG_IsOK(ecode5)) {
38945 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38946 }
38947 arg5 = static_cast< long >(val5);
38948 }
38949 {
38950 if (!wxPyCheckForApp()) SWIG_fail;
38951 PyThreadState* __tstate = wxPyBeginAllowThreads();
38952 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38953 wxPyEndAllowThreads(__tstate);
38954 if (PyErr_Occurred()) SWIG_fail;
38955 }
38956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38957 return resultobj;
38958 fail:
38959 return NULL;
38960 }
38961
38962
38963 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38964 PyObject *resultobj = 0;
38965 wxDirFilterListCtrl *result = 0 ;
38966
38967 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38968 {
38969 if (!wxPyCheckForApp()) SWIG_fail;
38970 PyThreadState* __tstate = wxPyBeginAllowThreads();
38971 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38972 wxPyEndAllowThreads(__tstate);
38973 if (PyErr_Occurred()) SWIG_fail;
38974 }
38975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38976 return resultobj;
38977 fail:
38978 return NULL;
38979 }
38980
38981
38982 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38983 PyObject *resultobj = 0;
38984 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38985 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38986 int arg3 = (int) (int)-1 ;
38987 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38988 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38989 wxSize const &arg5_defvalue = wxDefaultSize ;
38990 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38991 long arg6 = (long) 0 ;
38992 bool result;
38993 void *argp1 = 0 ;
38994 int res1 = 0 ;
38995 void *argp2 = 0 ;
38996 int res2 = 0 ;
38997 int val3 ;
38998 int ecode3 = 0 ;
38999 wxPoint temp4 ;
39000 wxSize temp5 ;
39001 long val6 ;
39002 int ecode6 = 0 ;
39003 PyObject * obj0 = 0 ;
39004 PyObject * obj1 = 0 ;
39005 PyObject * obj2 = 0 ;
39006 PyObject * obj3 = 0 ;
39007 PyObject * obj4 = 0 ;
39008 PyObject * obj5 = 0 ;
39009 char * kwnames[] = {
39010 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39011 };
39012
39013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
39015 if (!SWIG_IsOK(res1)) {
39016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
39017 }
39018 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
39019 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
39020 if (!SWIG_IsOK(res2)) {
39021 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
39022 }
39023 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
39024 if (obj2) {
39025 ecode3 = SWIG_AsVal_int(obj2, &val3);
39026 if (!SWIG_IsOK(ecode3)) {
39027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
39028 }
39029 arg3 = static_cast< int >(val3);
39030 }
39031 if (obj3) {
39032 {
39033 arg4 = &temp4;
39034 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
39035 }
39036 }
39037 if (obj4) {
39038 {
39039 arg5 = &temp5;
39040 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
39041 }
39042 }
39043 if (obj5) {
39044 ecode6 = SWIG_AsVal_long(obj5, &val6);
39045 if (!SWIG_IsOK(ecode6)) {
39046 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
39047 }
39048 arg6 = static_cast< long >(val6);
39049 }
39050 {
39051 PyThreadState* __tstate = wxPyBeginAllowThreads();
39052 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
39053 wxPyEndAllowThreads(__tstate);
39054 if (PyErr_Occurred()) SWIG_fail;
39055 }
39056 {
39057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39058 }
39059 return resultobj;
39060 fail:
39061 return NULL;
39062 }
39063
39064
39065 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39066 PyObject *resultobj = 0;
39067 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
39068 wxString *arg2 = 0 ;
39069 int arg3 ;
39070 void *argp1 = 0 ;
39071 int res1 = 0 ;
39072 bool temp2 = false ;
39073 int val3 ;
39074 int ecode3 = 0 ;
39075 PyObject * obj0 = 0 ;
39076 PyObject * obj1 = 0 ;
39077 PyObject * obj2 = 0 ;
39078 char * kwnames[] = {
39079 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
39080 };
39081
39082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
39084 if (!SWIG_IsOK(res1)) {
39085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
39086 }
39087 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
39088 {
39089 arg2 = wxString_in_helper(obj1);
39090 if (arg2 == NULL) SWIG_fail;
39091 temp2 = true;
39092 }
39093 ecode3 = SWIG_AsVal_int(obj2, &val3);
39094 if (!SWIG_IsOK(ecode3)) {
39095 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
39096 }
39097 arg3 = static_cast< int >(val3);
39098 {
39099 PyThreadState* __tstate = wxPyBeginAllowThreads();
39100 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
39101 wxPyEndAllowThreads(__tstate);
39102 if (PyErr_Occurred()) SWIG_fail;
39103 }
39104 resultobj = SWIG_Py_Void();
39105 {
39106 if (temp2)
39107 delete arg2;
39108 }
39109 return resultobj;
39110 fail:
39111 {
39112 if (temp2)
39113 delete arg2;
39114 }
39115 return NULL;
39116 }
39117
39118
39119 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39120 PyObject *obj;
39121 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39122 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
39123 return SWIG_Py_Void();
39124 }
39125
39126 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39127 return SWIG_Python_InitShadowInstance(args);
39128 }
39129
39130 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39131 PyObject *resultobj = 0;
39132 wxWindow *arg1 = (wxWindow *) 0 ;
39133 int arg2 = (int) (int)-1 ;
39134 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39135 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39136 wxSize const &arg4_defvalue = wxDefaultSize ;
39137 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39138 long arg5 = (long) 0 ;
39139 wxValidator const &arg6_defvalue = wxDefaultValidator ;
39140 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
39141 wxString const &arg7_defvalue = wxPyControlNameStr ;
39142 wxString *arg7 = (wxString *) &arg7_defvalue ;
39143 wxPyControl *result = 0 ;
39144 void *argp1 = 0 ;
39145 int res1 = 0 ;
39146 int val2 ;
39147 int ecode2 = 0 ;
39148 wxPoint temp3 ;
39149 wxSize temp4 ;
39150 long val5 ;
39151 int ecode5 = 0 ;
39152 void *argp6 = 0 ;
39153 int res6 = 0 ;
39154 bool temp7 = false ;
39155 PyObject * obj0 = 0 ;
39156 PyObject * obj1 = 0 ;
39157 PyObject * obj2 = 0 ;
39158 PyObject * obj3 = 0 ;
39159 PyObject * obj4 = 0 ;
39160 PyObject * obj5 = 0 ;
39161 PyObject * obj6 = 0 ;
39162 char * kwnames[] = {
39163 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
39164 };
39165
39166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
39167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39168 if (!SWIG_IsOK(res1)) {
39169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
39170 }
39171 arg1 = reinterpret_cast< wxWindow * >(argp1);
39172 if (obj1) {
39173 ecode2 = SWIG_AsVal_int(obj1, &val2);
39174 if (!SWIG_IsOK(ecode2)) {
39175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
39176 }
39177 arg2 = static_cast< int >(val2);
39178 }
39179 if (obj2) {
39180 {
39181 arg3 = &temp3;
39182 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39183 }
39184 }
39185 if (obj3) {
39186 {
39187 arg4 = &temp4;
39188 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39189 }
39190 }
39191 if (obj4) {
39192 ecode5 = SWIG_AsVal_long(obj4, &val5);
39193 if (!SWIG_IsOK(ecode5)) {
39194 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
39195 }
39196 arg5 = static_cast< long >(val5);
39197 }
39198 if (obj5) {
39199 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
39200 if (!SWIG_IsOK(res6)) {
39201 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39202 }
39203 if (!argp6) {
39204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39205 }
39206 arg6 = reinterpret_cast< wxValidator * >(argp6);
39207 }
39208 if (obj6) {
39209 {
39210 arg7 = wxString_in_helper(obj6);
39211 if (arg7 == NULL) SWIG_fail;
39212 temp7 = true;
39213 }
39214 }
39215 {
39216 if (!wxPyCheckForApp()) SWIG_fail;
39217 PyThreadState* __tstate = wxPyBeginAllowThreads();
39218 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
39219 wxPyEndAllowThreads(__tstate);
39220 if (PyErr_Occurred()) SWIG_fail;
39221 }
39222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
39223 {
39224 if (temp7)
39225 delete arg7;
39226 }
39227 return resultobj;
39228 fail:
39229 {
39230 if (temp7)
39231 delete arg7;
39232 }
39233 return NULL;
39234 }
39235
39236
39237 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39238 PyObject *resultobj = 0;
39239 wxPyControl *result = 0 ;
39240
39241 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
39242 {
39243 if (!wxPyCheckForApp()) SWIG_fail;
39244 PyThreadState* __tstate = wxPyBeginAllowThreads();
39245 result = (wxPyControl *)new wxPyControl();
39246 wxPyEndAllowThreads(__tstate);
39247 if (PyErr_Occurred()) SWIG_fail;
39248 }
39249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
39250 return resultobj;
39251 fail:
39252 return NULL;
39253 }
39254
39255
39256 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39257 PyObject *resultobj = 0;
39258 wxPyControl *arg1 = (wxPyControl *) 0 ;
39259 PyObject *arg2 = (PyObject *) 0 ;
39260 PyObject *arg3 = (PyObject *) 0 ;
39261 void *argp1 = 0 ;
39262 int res1 = 0 ;
39263 PyObject * obj0 = 0 ;
39264 PyObject * obj1 = 0 ;
39265 PyObject * obj2 = 0 ;
39266 char * kwnames[] = {
39267 (char *) "self",(char *) "self",(char *) "_class", NULL
39268 };
39269
39270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39272 if (!SWIG_IsOK(res1)) {
39273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
39274 }
39275 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39276 arg2 = obj1;
39277 arg3 = obj2;
39278 {
39279 PyThreadState* __tstate = wxPyBeginAllowThreads();
39280 (arg1)->_setCallbackInfo(arg2,arg3);
39281 wxPyEndAllowThreads(__tstate);
39282 if (PyErr_Occurred()) SWIG_fail;
39283 }
39284 resultobj = SWIG_Py_Void();
39285 return resultobj;
39286 fail:
39287 return NULL;
39288 }
39289
39290
39291 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39292 PyObject *resultobj = 0;
39293 wxPyControl *arg1 = (wxPyControl *) 0 ;
39294 wxDC *arg2 = (wxDC *) 0 ;
39295 bool result;
39296 void *argp1 = 0 ;
39297 int res1 = 0 ;
39298 void *argp2 = 0 ;
39299 int res2 = 0 ;
39300 PyObject * obj0 = 0 ;
39301 PyObject * obj1 = 0 ;
39302 char * kwnames[] = {
39303 (char *) "self",(char *) "dc", NULL
39304 };
39305
39306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39308 if (!SWIG_IsOK(res1)) {
39309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
39310 }
39311 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39312 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
39313 if (!SWIG_IsOK(res2)) {
39314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
39315 }
39316 arg2 = reinterpret_cast< wxDC * >(argp2);
39317 {
39318 PyThreadState* __tstate = wxPyBeginAllowThreads();
39319 result = (bool)(arg1)->DoEraseBackground(arg2);
39320 wxPyEndAllowThreads(__tstate);
39321 if (PyErr_Occurred()) SWIG_fail;
39322 }
39323 {
39324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39325 }
39326 return resultobj;
39327 fail:
39328 return NULL;
39329 }
39330
39331
39332 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39333 PyObject *resultobj = 0;
39334 wxPyControl *arg1 = (wxPyControl *) 0 ;
39335 int arg2 ;
39336 int arg3 ;
39337 int arg4 ;
39338 int arg5 ;
39339 void *argp1 = 0 ;
39340 int res1 = 0 ;
39341 int val2 ;
39342 int ecode2 = 0 ;
39343 int val3 ;
39344 int ecode3 = 0 ;
39345 int val4 ;
39346 int ecode4 = 0 ;
39347 int val5 ;
39348 int ecode5 = 0 ;
39349 PyObject * obj0 = 0 ;
39350 PyObject * obj1 = 0 ;
39351 PyObject * obj2 = 0 ;
39352 PyObject * obj3 = 0 ;
39353 PyObject * obj4 = 0 ;
39354 char * kwnames[] = {
39355 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
39356 };
39357
39358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39360 if (!SWIG_IsOK(res1)) {
39361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
39362 }
39363 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39364 ecode2 = SWIG_AsVal_int(obj1, &val2);
39365 if (!SWIG_IsOK(ecode2)) {
39366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
39367 }
39368 arg2 = static_cast< int >(val2);
39369 ecode3 = SWIG_AsVal_int(obj2, &val3);
39370 if (!SWIG_IsOK(ecode3)) {
39371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
39372 }
39373 arg3 = static_cast< int >(val3);
39374 ecode4 = SWIG_AsVal_int(obj3, &val4);
39375 if (!SWIG_IsOK(ecode4)) {
39376 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
39377 }
39378 arg4 = static_cast< int >(val4);
39379 ecode5 = SWIG_AsVal_int(obj4, &val5);
39380 if (!SWIG_IsOK(ecode5)) {
39381 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
39382 }
39383 arg5 = static_cast< int >(val5);
39384 {
39385 PyThreadState* __tstate = wxPyBeginAllowThreads();
39386 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
39387 wxPyEndAllowThreads(__tstate);
39388 if (PyErr_Occurred()) SWIG_fail;
39389 }
39390 resultobj = SWIG_Py_Void();
39391 return resultobj;
39392 fail:
39393 return NULL;
39394 }
39395
39396
39397 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39398 PyObject *resultobj = 0;
39399 wxPyControl *arg1 = (wxPyControl *) 0 ;
39400 int arg2 ;
39401 int arg3 ;
39402 int arg4 ;
39403 int arg5 ;
39404 int arg6 = (int) wxSIZE_AUTO ;
39405 void *argp1 = 0 ;
39406 int res1 = 0 ;
39407 int val2 ;
39408 int ecode2 = 0 ;
39409 int val3 ;
39410 int ecode3 = 0 ;
39411 int val4 ;
39412 int ecode4 = 0 ;
39413 int val5 ;
39414 int ecode5 = 0 ;
39415 int val6 ;
39416 int ecode6 = 0 ;
39417 PyObject * obj0 = 0 ;
39418 PyObject * obj1 = 0 ;
39419 PyObject * obj2 = 0 ;
39420 PyObject * obj3 = 0 ;
39421 PyObject * obj4 = 0 ;
39422 PyObject * obj5 = 0 ;
39423 char * kwnames[] = {
39424 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39425 };
39426
39427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39429 if (!SWIG_IsOK(res1)) {
39430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39431 }
39432 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39433 ecode2 = SWIG_AsVal_int(obj1, &val2);
39434 if (!SWIG_IsOK(ecode2)) {
39435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39436 }
39437 arg2 = static_cast< int >(val2);
39438 ecode3 = SWIG_AsVal_int(obj2, &val3);
39439 if (!SWIG_IsOK(ecode3)) {
39440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39441 }
39442 arg3 = static_cast< int >(val3);
39443 ecode4 = SWIG_AsVal_int(obj3, &val4);
39444 if (!SWIG_IsOK(ecode4)) {
39445 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39446 }
39447 arg4 = static_cast< int >(val4);
39448 ecode5 = SWIG_AsVal_int(obj4, &val5);
39449 if (!SWIG_IsOK(ecode5)) {
39450 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39451 }
39452 arg5 = static_cast< int >(val5);
39453 if (obj5) {
39454 ecode6 = SWIG_AsVal_int(obj5, &val6);
39455 if (!SWIG_IsOK(ecode6)) {
39456 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39457 }
39458 arg6 = static_cast< int >(val6);
39459 }
39460 {
39461 PyThreadState* __tstate = wxPyBeginAllowThreads();
39462 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39463 wxPyEndAllowThreads(__tstate);
39464 if (PyErr_Occurred()) SWIG_fail;
39465 }
39466 resultobj = SWIG_Py_Void();
39467 return resultobj;
39468 fail:
39469 return NULL;
39470 }
39471
39472
39473 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39474 PyObject *resultobj = 0;
39475 wxPyControl *arg1 = (wxPyControl *) 0 ;
39476 int arg2 ;
39477 int arg3 ;
39478 void *argp1 = 0 ;
39479 int res1 = 0 ;
39480 int val2 ;
39481 int ecode2 = 0 ;
39482 int val3 ;
39483 int ecode3 = 0 ;
39484 PyObject * obj0 = 0 ;
39485 PyObject * obj1 = 0 ;
39486 PyObject * obj2 = 0 ;
39487 char * kwnames[] = {
39488 (char *) "self",(char *) "width",(char *) "height", NULL
39489 };
39490
39491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39493 if (!SWIG_IsOK(res1)) {
39494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39495 }
39496 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39497 ecode2 = SWIG_AsVal_int(obj1, &val2);
39498 if (!SWIG_IsOK(ecode2)) {
39499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39500 }
39501 arg2 = static_cast< int >(val2);
39502 ecode3 = SWIG_AsVal_int(obj2, &val3);
39503 if (!SWIG_IsOK(ecode3)) {
39504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39505 }
39506 arg3 = static_cast< int >(val3);
39507 {
39508 PyThreadState* __tstate = wxPyBeginAllowThreads();
39509 (arg1)->DoSetClientSize(arg2,arg3);
39510 wxPyEndAllowThreads(__tstate);
39511 if (PyErr_Occurred()) SWIG_fail;
39512 }
39513 resultobj = SWIG_Py_Void();
39514 return resultobj;
39515 fail:
39516 return NULL;
39517 }
39518
39519
39520 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39521 PyObject *resultobj = 0;
39522 wxPyControl *arg1 = (wxPyControl *) 0 ;
39523 int arg2 ;
39524 int arg3 ;
39525 void *argp1 = 0 ;
39526 int res1 = 0 ;
39527 int val2 ;
39528 int ecode2 = 0 ;
39529 int val3 ;
39530 int ecode3 = 0 ;
39531 PyObject * obj0 = 0 ;
39532 PyObject * obj1 = 0 ;
39533 PyObject * obj2 = 0 ;
39534 char * kwnames[] = {
39535 (char *) "self",(char *) "x",(char *) "y", NULL
39536 };
39537
39538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39540 if (!SWIG_IsOK(res1)) {
39541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39542 }
39543 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39544 ecode2 = SWIG_AsVal_int(obj1, &val2);
39545 if (!SWIG_IsOK(ecode2)) {
39546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39547 }
39548 arg2 = static_cast< int >(val2);
39549 ecode3 = SWIG_AsVal_int(obj2, &val3);
39550 if (!SWIG_IsOK(ecode3)) {
39551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39552 }
39553 arg3 = static_cast< int >(val3);
39554 {
39555 PyThreadState* __tstate = wxPyBeginAllowThreads();
39556 (arg1)->DoSetVirtualSize(arg2,arg3);
39557 wxPyEndAllowThreads(__tstate);
39558 if (PyErr_Occurred()) SWIG_fail;
39559 }
39560 resultobj = SWIG_Py_Void();
39561 return resultobj;
39562 fail:
39563 return NULL;
39564 }
39565
39566
39567 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39568 PyObject *resultobj = 0;
39569 wxPyControl *arg1 = (wxPyControl *) 0 ;
39570 int *arg2 = (int *) 0 ;
39571 int *arg3 = (int *) 0 ;
39572 void *argp1 = 0 ;
39573 int res1 = 0 ;
39574 int temp2 ;
39575 int res2 = SWIG_TMPOBJ ;
39576 int temp3 ;
39577 int res3 = SWIG_TMPOBJ ;
39578 PyObject *swig_obj[1] ;
39579
39580 arg2 = &temp2;
39581 arg3 = &temp3;
39582 if (!args) SWIG_fail;
39583 swig_obj[0] = args;
39584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39585 if (!SWIG_IsOK(res1)) {
39586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39587 }
39588 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39589 {
39590 PyThreadState* __tstate = wxPyBeginAllowThreads();
39591 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39592 wxPyEndAllowThreads(__tstate);
39593 if (PyErr_Occurred()) SWIG_fail;
39594 }
39595 resultobj = SWIG_Py_Void();
39596 if (SWIG_IsTmpObj(res2)) {
39597 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39598 } else {
39599 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39600 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39601 }
39602 if (SWIG_IsTmpObj(res3)) {
39603 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39604 } else {
39605 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39606 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39607 }
39608 return resultobj;
39609 fail:
39610 return NULL;
39611 }
39612
39613
39614 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39615 PyObject *resultobj = 0;
39616 wxPyControl *arg1 = (wxPyControl *) 0 ;
39617 int *arg2 = (int *) 0 ;
39618 int *arg3 = (int *) 0 ;
39619 void *argp1 = 0 ;
39620 int res1 = 0 ;
39621 int temp2 ;
39622 int res2 = SWIG_TMPOBJ ;
39623 int temp3 ;
39624 int res3 = SWIG_TMPOBJ ;
39625 PyObject *swig_obj[1] ;
39626
39627 arg2 = &temp2;
39628 arg3 = &temp3;
39629 if (!args) SWIG_fail;
39630 swig_obj[0] = args;
39631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39632 if (!SWIG_IsOK(res1)) {
39633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39634 }
39635 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39636 {
39637 PyThreadState* __tstate = wxPyBeginAllowThreads();
39638 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39639 wxPyEndAllowThreads(__tstate);
39640 if (PyErr_Occurred()) SWIG_fail;
39641 }
39642 resultobj = SWIG_Py_Void();
39643 if (SWIG_IsTmpObj(res2)) {
39644 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39645 } else {
39646 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39647 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39648 }
39649 if (SWIG_IsTmpObj(res3)) {
39650 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39651 } else {
39652 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39653 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39654 }
39655 return resultobj;
39656 fail:
39657 return NULL;
39658 }
39659
39660
39661 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39662 PyObject *resultobj = 0;
39663 wxPyControl *arg1 = (wxPyControl *) 0 ;
39664 int *arg2 = (int *) 0 ;
39665 int *arg3 = (int *) 0 ;
39666 void *argp1 = 0 ;
39667 int res1 = 0 ;
39668 int temp2 ;
39669 int res2 = SWIG_TMPOBJ ;
39670 int temp3 ;
39671 int res3 = SWIG_TMPOBJ ;
39672 PyObject *swig_obj[1] ;
39673
39674 arg2 = &temp2;
39675 arg3 = &temp3;
39676 if (!args) SWIG_fail;
39677 swig_obj[0] = args;
39678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39679 if (!SWIG_IsOK(res1)) {
39680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39681 }
39682 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39683 {
39684 PyThreadState* __tstate = wxPyBeginAllowThreads();
39685 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39686 wxPyEndAllowThreads(__tstate);
39687 if (PyErr_Occurred()) SWIG_fail;
39688 }
39689 resultobj = SWIG_Py_Void();
39690 if (SWIG_IsTmpObj(res2)) {
39691 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39692 } else {
39693 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39694 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39695 }
39696 if (SWIG_IsTmpObj(res3)) {
39697 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39698 } else {
39699 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39700 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39701 }
39702 return resultobj;
39703 fail:
39704 return NULL;
39705 }
39706
39707
39708 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39709 PyObject *resultobj = 0;
39710 wxPyControl *arg1 = (wxPyControl *) 0 ;
39711 wxSize result;
39712 void *argp1 = 0 ;
39713 int res1 = 0 ;
39714 PyObject *swig_obj[1] ;
39715
39716 if (!args) SWIG_fail;
39717 swig_obj[0] = args;
39718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39719 if (!SWIG_IsOK(res1)) {
39720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39721 }
39722 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39723 {
39724 PyThreadState* __tstate = wxPyBeginAllowThreads();
39725 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39726 wxPyEndAllowThreads(__tstate);
39727 if (PyErr_Occurred()) SWIG_fail;
39728 }
39729 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39730 return resultobj;
39731 fail:
39732 return NULL;
39733 }
39734
39735
39736 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39737 PyObject *resultobj = 0;
39738 wxPyControl *arg1 = (wxPyControl *) 0 ;
39739 wxSize result;
39740 void *argp1 = 0 ;
39741 int res1 = 0 ;
39742 PyObject *swig_obj[1] ;
39743
39744 if (!args) SWIG_fail;
39745 swig_obj[0] = args;
39746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39747 if (!SWIG_IsOK(res1)) {
39748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39749 }
39750 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39751 {
39752 PyThreadState* __tstate = wxPyBeginAllowThreads();
39753 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39754 wxPyEndAllowThreads(__tstate);
39755 if (PyErr_Occurred()) SWIG_fail;
39756 }
39757 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39758 return resultobj;
39759 fail:
39760 return NULL;
39761 }
39762
39763
39764 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39765 PyObject *resultobj = 0;
39766 wxPyControl *arg1 = (wxPyControl *) 0 ;
39767 SwigValueWrapper<wxVisualAttributes > result;
39768 void *argp1 = 0 ;
39769 int res1 = 0 ;
39770 PyObject *swig_obj[1] ;
39771
39772 if (!args) SWIG_fail;
39773 swig_obj[0] = args;
39774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39775 if (!SWIG_IsOK(res1)) {
39776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39777 }
39778 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39779 {
39780 PyThreadState* __tstate = wxPyBeginAllowThreads();
39781 result = (arg1)->GetDefaultAttributes();
39782 wxPyEndAllowThreads(__tstate);
39783 if (PyErr_Occurred()) SWIG_fail;
39784 }
39785 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39786 return resultobj;
39787 fail:
39788 return NULL;
39789 }
39790
39791
39792 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39793 PyObject *resultobj = 0;
39794 wxPyControl *arg1 = (wxPyControl *) 0 ;
39795 void *argp1 = 0 ;
39796 int res1 = 0 ;
39797 PyObject *swig_obj[1] ;
39798
39799 if (!args) SWIG_fail;
39800 swig_obj[0] = args;
39801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39802 if (!SWIG_IsOK(res1)) {
39803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39804 }
39805 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39806 {
39807 PyThreadState* __tstate = wxPyBeginAllowThreads();
39808 (arg1)->OnInternalIdle();
39809 wxPyEndAllowThreads(__tstate);
39810 if (PyErr_Occurred()) SWIG_fail;
39811 }
39812 resultobj = SWIG_Py_Void();
39813 return resultobj;
39814 fail:
39815 return NULL;
39816 }
39817
39818
39819 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39820 PyObject *obj;
39821 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39822 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39823 return SWIG_Py_Void();
39824 }
39825
39826 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39827 return SWIG_Python_InitShadowInstance(args);
39828 }
39829
39830 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39831 PyObject *resultobj = 0;
39832 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39833 int arg2 = (int) 0 ;
39834 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39835 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39836 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39837 wxHelpEvent *result = 0 ;
39838 int val1 ;
39839 int ecode1 = 0 ;
39840 int val2 ;
39841 int ecode2 = 0 ;
39842 wxPoint temp3 ;
39843 int val4 ;
39844 int ecode4 = 0 ;
39845 PyObject * obj0 = 0 ;
39846 PyObject * obj1 = 0 ;
39847 PyObject * obj2 = 0 ;
39848 PyObject * obj3 = 0 ;
39849 char * kwnames[] = {
39850 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39851 };
39852
39853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39854 if (obj0) {
39855 ecode1 = SWIG_AsVal_int(obj0, &val1);
39856 if (!SWIG_IsOK(ecode1)) {
39857 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39858 }
39859 arg1 = static_cast< wxEventType >(val1);
39860 }
39861 if (obj1) {
39862 ecode2 = SWIG_AsVal_int(obj1, &val2);
39863 if (!SWIG_IsOK(ecode2)) {
39864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39865 }
39866 arg2 = static_cast< int >(val2);
39867 }
39868 if (obj2) {
39869 {
39870 arg3 = &temp3;
39871 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39872 }
39873 }
39874 if (obj3) {
39875 ecode4 = SWIG_AsVal_int(obj3, &val4);
39876 if (!SWIG_IsOK(ecode4)) {
39877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39878 }
39879 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39880 }
39881 {
39882 PyThreadState* __tstate = wxPyBeginAllowThreads();
39883 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39884 wxPyEndAllowThreads(__tstate);
39885 if (PyErr_Occurred()) SWIG_fail;
39886 }
39887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39888 return resultobj;
39889 fail:
39890 return NULL;
39891 }
39892
39893
39894 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39895 PyObject *resultobj = 0;
39896 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39897 wxPoint result;
39898 void *argp1 = 0 ;
39899 int res1 = 0 ;
39900 PyObject *swig_obj[1] ;
39901
39902 if (!args) SWIG_fail;
39903 swig_obj[0] = args;
39904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39905 if (!SWIG_IsOK(res1)) {
39906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39907 }
39908 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39909 {
39910 PyThreadState* __tstate = wxPyBeginAllowThreads();
39911 result = ((wxHelpEvent const *)arg1)->GetPosition();
39912 wxPyEndAllowThreads(__tstate);
39913 if (PyErr_Occurred()) SWIG_fail;
39914 }
39915 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39916 return resultobj;
39917 fail:
39918 return NULL;
39919 }
39920
39921
39922 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39923 PyObject *resultobj = 0;
39924 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39925 wxPoint *arg2 = 0 ;
39926 void *argp1 = 0 ;
39927 int res1 = 0 ;
39928 wxPoint temp2 ;
39929 PyObject * obj0 = 0 ;
39930 PyObject * obj1 = 0 ;
39931 char * kwnames[] = {
39932 (char *) "self",(char *) "pos", NULL
39933 };
39934
39935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39937 if (!SWIG_IsOK(res1)) {
39938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39939 }
39940 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39941 {
39942 arg2 = &temp2;
39943 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39944 }
39945 {
39946 PyThreadState* __tstate = wxPyBeginAllowThreads();
39947 (arg1)->SetPosition((wxPoint const &)*arg2);
39948 wxPyEndAllowThreads(__tstate);
39949 if (PyErr_Occurred()) SWIG_fail;
39950 }
39951 resultobj = SWIG_Py_Void();
39952 return resultobj;
39953 fail:
39954 return NULL;
39955 }
39956
39957
39958 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39959 PyObject *resultobj = 0;
39960 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39961 wxString *result = 0 ;
39962 void *argp1 = 0 ;
39963 int res1 = 0 ;
39964 PyObject *swig_obj[1] ;
39965
39966 if (!args) SWIG_fail;
39967 swig_obj[0] = args;
39968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39969 if (!SWIG_IsOK(res1)) {
39970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39971 }
39972 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39973 {
39974 PyThreadState* __tstate = wxPyBeginAllowThreads();
39975 {
39976 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39977 result = (wxString *) &_result_ref;
39978 }
39979 wxPyEndAllowThreads(__tstate);
39980 if (PyErr_Occurred()) SWIG_fail;
39981 }
39982 {
39983 #if wxUSE_UNICODE
39984 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39985 #else
39986 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39987 #endif
39988 }
39989 return resultobj;
39990 fail:
39991 return NULL;
39992 }
39993
39994
39995 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39996 PyObject *resultobj = 0;
39997 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39998 wxString *arg2 = 0 ;
39999 void *argp1 = 0 ;
40000 int res1 = 0 ;
40001 bool temp2 = false ;
40002 PyObject * obj0 = 0 ;
40003 PyObject * obj1 = 0 ;
40004 char * kwnames[] = {
40005 (char *) "self",(char *) "link", NULL
40006 };
40007
40008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
40009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40010 if (!SWIG_IsOK(res1)) {
40011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40012 }
40013 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40014 {
40015 arg2 = wxString_in_helper(obj1);
40016 if (arg2 == NULL) SWIG_fail;
40017 temp2 = true;
40018 }
40019 {
40020 PyThreadState* __tstate = wxPyBeginAllowThreads();
40021 (arg1)->SetLink((wxString const &)*arg2);
40022 wxPyEndAllowThreads(__tstate);
40023 if (PyErr_Occurred()) SWIG_fail;
40024 }
40025 resultobj = SWIG_Py_Void();
40026 {
40027 if (temp2)
40028 delete arg2;
40029 }
40030 return resultobj;
40031 fail:
40032 {
40033 if (temp2)
40034 delete arg2;
40035 }
40036 return NULL;
40037 }
40038
40039
40040 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40041 PyObject *resultobj = 0;
40042 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40043 wxString *result = 0 ;
40044 void *argp1 = 0 ;
40045 int res1 = 0 ;
40046 PyObject *swig_obj[1] ;
40047
40048 if (!args) SWIG_fail;
40049 swig_obj[0] = args;
40050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40051 if (!SWIG_IsOK(res1)) {
40052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40053 }
40054 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40055 {
40056 PyThreadState* __tstate = wxPyBeginAllowThreads();
40057 {
40058 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
40059 result = (wxString *) &_result_ref;
40060 }
40061 wxPyEndAllowThreads(__tstate);
40062 if (PyErr_Occurred()) SWIG_fail;
40063 }
40064 {
40065 #if wxUSE_UNICODE
40066 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
40067 #else
40068 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
40069 #endif
40070 }
40071 return resultobj;
40072 fail:
40073 return NULL;
40074 }
40075
40076
40077 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40078 PyObject *resultobj = 0;
40079 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40080 wxString *arg2 = 0 ;
40081 void *argp1 = 0 ;
40082 int res1 = 0 ;
40083 bool temp2 = false ;
40084 PyObject * obj0 = 0 ;
40085 PyObject * obj1 = 0 ;
40086 char * kwnames[] = {
40087 (char *) "self",(char *) "target", NULL
40088 };
40089
40090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
40091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40092 if (!SWIG_IsOK(res1)) {
40093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40094 }
40095 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40096 {
40097 arg2 = wxString_in_helper(obj1);
40098 if (arg2 == NULL) SWIG_fail;
40099 temp2 = true;
40100 }
40101 {
40102 PyThreadState* __tstate = wxPyBeginAllowThreads();
40103 (arg1)->SetTarget((wxString const &)*arg2);
40104 wxPyEndAllowThreads(__tstate);
40105 if (PyErr_Occurred()) SWIG_fail;
40106 }
40107 resultobj = SWIG_Py_Void();
40108 {
40109 if (temp2)
40110 delete arg2;
40111 }
40112 return resultobj;
40113 fail:
40114 {
40115 if (temp2)
40116 delete arg2;
40117 }
40118 return NULL;
40119 }
40120
40121
40122 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40123 PyObject *resultobj = 0;
40124 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40125 wxHelpEvent::Origin result;
40126 void *argp1 = 0 ;
40127 int res1 = 0 ;
40128 PyObject *swig_obj[1] ;
40129
40130 if (!args) SWIG_fail;
40131 swig_obj[0] = args;
40132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40133 if (!SWIG_IsOK(res1)) {
40134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40135 }
40136 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40137 {
40138 PyThreadState* __tstate = wxPyBeginAllowThreads();
40139 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
40140 wxPyEndAllowThreads(__tstate);
40141 if (PyErr_Occurred()) SWIG_fail;
40142 }
40143 resultobj = SWIG_From_int(static_cast< int >(result));
40144 return resultobj;
40145 fail:
40146 return NULL;
40147 }
40148
40149
40150 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40151 PyObject *resultobj = 0;
40152 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40153 wxHelpEvent::Origin arg2 ;
40154 void *argp1 = 0 ;
40155 int res1 = 0 ;
40156 int val2 ;
40157 int ecode2 = 0 ;
40158 PyObject * obj0 = 0 ;
40159 PyObject * obj1 = 0 ;
40160 char * kwnames[] = {
40161 (char *) "self",(char *) "origin", NULL
40162 };
40163
40164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
40165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40166 if (!SWIG_IsOK(res1)) {
40167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40168 }
40169 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40170 ecode2 = SWIG_AsVal_int(obj1, &val2);
40171 if (!SWIG_IsOK(ecode2)) {
40172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
40173 }
40174 arg2 = static_cast< wxHelpEvent::Origin >(val2);
40175 {
40176 PyThreadState* __tstate = wxPyBeginAllowThreads();
40177 (arg1)->SetOrigin(arg2);
40178 wxPyEndAllowThreads(__tstate);
40179 if (PyErr_Occurred()) SWIG_fail;
40180 }
40181 resultobj = SWIG_Py_Void();
40182 return resultobj;
40183 fail:
40184 return NULL;
40185 }
40186
40187
40188 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40189 PyObject *obj;
40190 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40191 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
40192 return SWIG_Py_Void();
40193 }
40194
40195 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40196 return SWIG_Python_InitShadowInstance(args);
40197 }
40198
40199 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40200 PyObject *resultobj = 0;
40201 wxWindow *arg1 = (wxWindow *) NULL ;
40202 bool arg2 = (bool) true ;
40203 wxContextHelp *result = 0 ;
40204 void *argp1 = 0 ;
40205 int res1 = 0 ;
40206 bool val2 ;
40207 int ecode2 = 0 ;
40208 PyObject * obj0 = 0 ;
40209 PyObject * obj1 = 0 ;
40210 char * kwnames[] = {
40211 (char *) "window",(char *) "doNow", NULL
40212 };
40213
40214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40215 if (obj0) {
40216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40217 if (!SWIG_IsOK(res1)) {
40218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
40219 }
40220 arg1 = reinterpret_cast< wxWindow * >(argp1);
40221 }
40222 if (obj1) {
40223 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40224 if (!SWIG_IsOK(ecode2)) {
40225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
40226 }
40227 arg2 = static_cast< bool >(val2);
40228 }
40229 {
40230 if (!wxPyCheckForApp()) SWIG_fail;
40231 PyThreadState* __tstate = wxPyBeginAllowThreads();
40232 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
40233 wxPyEndAllowThreads(__tstate);
40234 if (PyErr_Occurred()) SWIG_fail;
40235 }
40236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
40237 return resultobj;
40238 fail:
40239 return NULL;
40240 }
40241
40242
40243 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40244 PyObject *resultobj = 0;
40245 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40246 void *argp1 = 0 ;
40247 int res1 = 0 ;
40248 PyObject *swig_obj[1] ;
40249
40250 if (!args) SWIG_fail;
40251 swig_obj[0] = args;
40252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
40253 if (!SWIG_IsOK(res1)) {
40254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40255 }
40256 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40257 {
40258 PyThreadState* __tstate = wxPyBeginAllowThreads();
40259 delete arg1;
40260
40261 wxPyEndAllowThreads(__tstate);
40262 if (PyErr_Occurred()) SWIG_fail;
40263 }
40264 resultobj = SWIG_Py_Void();
40265 return resultobj;
40266 fail:
40267 return NULL;
40268 }
40269
40270
40271 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40272 PyObject *resultobj = 0;
40273 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40274 wxWindow *arg2 = (wxWindow *) NULL ;
40275 bool result;
40276 void *argp1 = 0 ;
40277 int res1 = 0 ;
40278 void *argp2 = 0 ;
40279 int res2 = 0 ;
40280 PyObject * obj0 = 0 ;
40281 PyObject * obj1 = 0 ;
40282 char * kwnames[] = {
40283 (char *) "self",(char *) "window", NULL
40284 };
40285
40286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40288 if (!SWIG_IsOK(res1)) {
40289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40290 }
40291 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40292 if (obj1) {
40293 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40294 if (!SWIG_IsOK(res2)) {
40295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40296 }
40297 arg2 = reinterpret_cast< wxWindow * >(argp2);
40298 }
40299 {
40300 PyThreadState* __tstate = wxPyBeginAllowThreads();
40301 result = (bool)(arg1)->BeginContextHelp(arg2);
40302 wxPyEndAllowThreads(__tstate);
40303 if (PyErr_Occurred()) SWIG_fail;
40304 }
40305 {
40306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40307 }
40308 return resultobj;
40309 fail:
40310 return NULL;
40311 }
40312
40313
40314 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40315 PyObject *resultobj = 0;
40316 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40317 bool result;
40318 void *argp1 = 0 ;
40319 int res1 = 0 ;
40320 PyObject *swig_obj[1] ;
40321
40322 if (!args) SWIG_fail;
40323 swig_obj[0] = args;
40324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40325 if (!SWIG_IsOK(res1)) {
40326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40327 }
40328 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40329 {
40330 PyThreadState* __tstate = wxPyBeginAllowThreads();
40331 result = (bool)(arg1)->EndContextHelp();
40332 wxPyEndAllowThreads(__tstate);
40333 if (PyErr_Occurred()) SWIG_fail;
40334 }
40335 {
40336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40337 }
40338 return resultobj;
40339 fail:
40340 return NULL;
40341 }
40342
40343
40344 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40345 PyObject *obj;
40346 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40347 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
40348 return SWIG_Py_Void();
40349 }
40350
40351 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40352 return SWIG_Python_InitShadowInstance(args);
40353 }
40354
40355 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40356 PyObject *resultobj = 0;
40357 wxWindow *arg1 = (wxWindow *) 0 ;
40358 int arg2 = (int) wxID_CONTEXT_HELP ;
40359 wxPoint const &arg3_defvalue = wxDefaultPosition ;
40360 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
40361 wxSize const &arg4_defvalue = wxDefaultSize ;
40362 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
40363 long arg5 = (long) wxBU_AUTODRAW ;
40364 wxContextHelpButton *result = 0 ;
40365 void *argp1 = 0 ;
40366 int res1 = 0 ;
40367 int val2 ;
40368 int ecode2 = 0 ;
40369 wxPoint temp3 ;
40370 wxSize temp4 ;
40371 long val5 ;
40372 int ecode5 = 0 ;
40373 PyObject * obj0 = 0 ;
40374 PyObject * obj1 = 0 ;
40375 PyObject * obj2 = 0 ;
40376 PyObject * obj3 = 0 ;
40377 PyObject * obj4 = 0 ;
40378 char * kwnames[] = {
40379 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
40380 };
40381
40382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40384 if (!SWIG_IsOK(res1)) {
40385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
40386 }
40387 arg1 = reinterpret_cast< wxWindow * >(argp1);
40388 if (obj1) {
40389 ecode2 = SWIG_AsVal_int(obj1, &val2);
40390 if (!SWIG_IsOK(ecode2)) {
40391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
40392 }
40393 arg2 = static_cast< int >(val2);
40394 }
40395 if (obj2) {
40396 {
40397 arg3 = &temp3;
40398 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40399 }
40400 }
40401 if (obj3) {
40402 {
40403 arg4 = &temp4;
40404 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
40405 }
40406 }
40407 if (obj4) {
40408 ecode5 = SWIG_AsVal_long(obj4, &val5);
40409 if (!SWIG_IsOK(ecode5)) {
40410 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40411 }
40412 arg5 = static_cast< long >(val5);
40413 }
40414 {
40415 if (!wxPyCheckForApp()) SWIG_fail;
40416 PyThreadState* __tstate = wxPyBeginAllowThreads();
40417 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40418 wxPyEndAllowThreads(__tstate);
40419 if (PyErr_Occurred()) SWIG_fail;
40420 }
40421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40422 return resultobj;
40423 fail:
40424 return NULL;
40425 }
40426
40427
40428 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40429 PyObject *obj;
40430 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40431 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40432 return SWIG_Py_Void();
40433 }
40434
40435 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40436 return SWIG_Python_InitShadowInstance(args);
40437 }
40438
40439 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40440 PyObject *resultobj = 0;
40441 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40442 void *argp1 = 0 ;
40443 int res1 = 0 ;
40444 PyObject *swig_obj[1] ;
40445
40446 if (!args) SWIG_fail;
40447 swig_obj[0] = args;
40448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40449 if (!SWIG_IsOK(res1)) {
40450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40451 }
40452 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40453 {
40454 PyThreadState* __tstate = wxPyBeginAllowThreads();
40455 delete arg1;
40456
40457 wxPyEndAllowThreads(__tstate);
40458 if (PyErr_Occurred()) SWIG_fail;
40459 }
40460 resultobj = SWIG_Py_Void();
40461 return resultobj;
40462 fail:
40463 return NULL;
40464 }
40465
40466
40467 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40468 PyObject *resultobj = 0;
40469 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40470 wxHelpProvider *result = 0 ;
40471 int res1 = 0 ;
40472 PyObject * obj0 = 0 ;
40473 char * kwnames[] = {
40474 (char *) "helpProvider", NULL
40475 };
40476
40477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40478 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40479 if (!SWIG_IsOK(res1)) {
40480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40481 }
40482 {
40483 PyThreadState* __tstate = wxPyBeginAllowThreads();
40484 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40485 wxPyEndAllowThreads(__tstate);
40486 if (PyErr_Occurred()) SWIG_fail;
40487 }
40488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40489 return resultobj;
40490 fail:
40491 return NULL;
40492 }
40493
40494
40495 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40496 PyObject *resultobj = 0;
40497 wxHelpProvider *result = 0 ;
40498
40499 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40500 {
40501 PyThreadState* __tstate = wxPyBeginAllowThreads();
40502 result = (wxHelpProvider *)wxHelpProvider::Get();
40503 wxPyEndAllowThreads(__tstate);
40504 if (PyErr_Occurred()) SWIG_fail;
40505 }
40506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40507 return resultobj;
40508 fail:
40509 return NULL;
40510 }
40511
40512
40513 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40514 PyObject *resultobj = 0;
40515 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40516 wxWindow *arg2 = (wxWindow *) 0 ;
40517 wxString result;
40518 void *argp1 = 0 ;
40519 int res1 = 0 ;
40520 void *argp2 = 0 ;
40521 int res2 = 0 ;
40522 PyObject * obj0 = 0 ;
40523 PyObject * obj1 = 0 ;
40524 char * kwnames[] = {
40525 (char *) "self",(char *) "window", NULL
40526 };
40527
40528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40530 if (!SWIG_IsOK(res1)) {
40531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40532 }
40533 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40534 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40535 if (!SWIG_IsOK(res2)) {
40536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40537 }
40538 arg2 = reinterpret_cast< wxWindow * >(argp2);
40539 {
40540 PyThreadState* __tstate = wxPyBeginAllowThreads();
40541 result = (arg1)->GetHelp((wxWindow const *)arg2);
40542 wxPyEndAllowThreads(__tstate);
40543 if (PyErr_Occurred()) SWIG_fail;
40544 }
40545 {
40546 #if wxUSE_UNICODE
40547 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40548 #else
40549 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40550 #endif
40551 }
40552 return resultobj;
40553 fail:
40554 return NULL;
40555 }
40556
40557
40558 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40559 PyObject *resultobj = 0;
40560 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40561 wxWindow *arg2 = (wxWindow *) 0 ;
40562 bool result;
40563 void *argp1 = 0 ;
40564 int res1 = 0 ;
40565 void *argp2 = 0 ;
40566 int res2 = 0 ;
40567 PyObject * obj0 = 0 ;
40568 PyObject * obj1 = 0 ;
40569 char * kwnames[] = {
40570 (char *) "self",(char *) "window", NULL
40571 };
40572
40573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40575 if (!SWIG_IsOK(res1)) {
40576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40577 }
40578 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40579 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40580 if (!SWIG_IsOK(res2)) {
40581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40582 }
40583 arg2 = reinterpret_cast< wxWindow * >(argp2);
40584 {
40585 PyThreadState* __tstate = wxPyBeginAllowThreads();
40586 result = (bool)(arg1)->ShowHelp(arg2);
40587 wxPyEndAllowThreads(__tstate);
40588 if (PyErr_Occurred()) SWIG_fail;
40589 }
40590 {
40591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40592 }
40593 return resultobj;
40594 fail:
40595 return NULL;
40596 }
40597
40598
40599 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40600 PyObject *resultobj = 0;
40601 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40602 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40603 wxPoint *arg3 = 0 ;
40604 wxHelpEvent::Origin arg4 ;
40605 bool result;
40606 void *argp1 = 0 ;
40607 int res1 = 0 ;
40608 void *argp2 = 0 ;
40609 int res2 = 0 ;
40610 wxPoint temp3 ;
40611 int val4 ;
40612 int ecode4 = 0 ;
40613 PyObject * obj0 = 0 ;
40614 PyObject * obj1 = 0 ;
40615 PyObject * obj2 = 0 ;
40616 PyObject * obj3 = 0 ;
40617 char * kwnames[] = {
40618 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40619 };
40620
40621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40623 if (!SWIG_IsOK(res1)) {
40624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40625 }
40626 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40627 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40628 if (!SWIG_IsOK(res2)) {
40629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40630 }
40631 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40632 {
40633 arg3 = &temp3;
40634 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40635 }
40636 ecode4 = SWIG_AsVal_int(obj3, &val4);
40637 if (!SWIG_IsOK(ecode4)) {
40638 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40639 }
40640 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40641 {
40642 PyThreadState* __tstate = wxPyBeginAllowThreads();
40643 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40644 wxPyEndAllowThreads(__tstate);
40645 if (PyErr_Occurred()) SWIG_fail;
40646 }
40647 {
40648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40649 }
40650 return resultobj;
40651 fail:
40652 return NULL;
40653 }
40654
40655
40656 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40657 PyObject *resultobj = 0;
40658 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40659 wxWindow *arg2 = (wxWindow *) 0 ;
40660 wxString *arg3 = 0 ;
40661 void *argp1 = 0 ;
40662 int res1 = 0 ;
40663 void *argp2 = 0 ;
40664 int res2 = 0 ;
40665 bool temp3 = false ;
40666 PyObject * obj0 = 0 ;
40667 PyObject * obj1 = 0 ;
40668 PyObject * obj2 = 0 ;
40669 char * kwnames[] = {
40670 (char *) "self",(char *) "window",(char *) "text", NULL
40671 };
40672
40673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40675 if (!SWIG_IsOK(res1)) {
40676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40677 }
40678 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40679 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40680 if (!SWIG_IsOK(res2)) {
40681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40682 }
40683 arg2 = reinterpret_cast< wxWindow * >(argp2);
40684 {
40685 arg3 = wxString_in_helper(obj2);
40686 if (arg3 == NULL) SWIG_fail;
40687 temp3 = true;
40688 }
40689 {
40690 PyThreadState* __tstate = wxPyBeginAllowThreads();
40691 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40692 wxPyEndAllowThreads(__tstate);
40693 if (PyErr_Occurred()) SWIG_fail;
40694 }
40695 resultobj = SWIG_Py_Void();
40696 {
40697 if (temp3)
40698 delete arg3;
40699 }
40700 return resultobj;
40701 fail:
40702 {
40703 if (temp3)
40704 delete arg3;
40705 }
40706 return NULL;
40707 }
40708
40709
40710 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40711 PyObject *resultobj = 0;
40712 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40713 int arg2 ;
40714 wxString *arg3 = 0 ;
40715 void *argp1 = 0 ;
40716 int res1 = 0 ;
40717 int val2 ;
40718 int ecode2 = 0 ;
40719 bool temp3 = false ;
40720 PyObject * obj0 = 0 ;
40721 PyObject * obj1 = 0 ;
40722 PyObject * obj2 = 0 ;
40723 char * kwnames[] = {
40724 (char *) "self",(char *) "id",(char *) "text", NULL
40725 };
40726
40727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40729 if (!SWIG_IsOK(res1)) {
40730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40731 }
40732 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40733 ecode2 = SWIG_AsVal_int(obj1, &val2);
40734 if (!SWIG_IsOK(ecode2)) {
40735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40736 }
40737 arg2 = static_cast< int >(val2);
40738 {
40739 arg3 = wxString_in_helper(obj2);
40740 if (arg3 == NULL) SWIG_fail;
40741 temp3 = true;
40742 }
40743 {
40744 PyThreadState* __tstate = wxPyBeginAllowThreads();
40745 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40746 wxPyEndAllowThreads(__tstate);
40747 if (PyErr_Occurred()) SWIG_fail;
40748 }
40749 resultobj = SWIG_Py_Void();
40750 {
40751 if (temp3)
40752 delete arg3;
40753 }
40754 return resultobj;
40755 fail:
40756 {
40757 if (temp3)
40758 delete arg3;
40759 }
40760 return NULL;
40761 }
40762
40763
40764 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40765 PyObject *resultobj = 0;
40766 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40767 wxWindow *arg2 = (wxWindow *) 0 ;
40768 void *argp1 = 0 ;
40769 int res1 = 0 ;
40770 void *argp2 = 0 ;
40771 int res2 = 0 ;
40772 PyObject * obj0 = 0 ;
40773 PyObject * obj1 = 0 ;
40774 char * kwnames[] = {
40775 (char *) "self",(char *) "window", NULL
40776 };
40777
40778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40780 if (!SWIG_IsOK(res1)) {
40781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40782 }
40783 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40784 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40785 if (!SWIG_IsOK(res2)) {
40786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40787 }
40788 arg2 = reinterpret_cast< wxWindow * >(argp2);
40789 {
40790 PyThreadState* __tstate = wxPyBeginAllowThreads();
40791 (arg1)->RemoveHelp(arg2);
40792 wxPyEndAllowThreads(__tstate);
40793 if (PyErr_Occurred()) SWIG_fail;
40794 }
40795 resultobj = SWIG_Py_Void();
40796 return resultobj;
40797 fail:
40798 return NULL;
40799 }
40800
40801
40802 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40803 PyObject *resultobj = 0;
40804 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40805 void *argp1 = 0 ;
40806 int res1 = 0 ;
40807 PyObject *swig_obj[1] ;
40808
40809 if (!args) SWIG_fail;
40810 swig_obj[0] = args;
40811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40812 if (!SWIG_IsOK(res1)) {
40813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40814 }
40815 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40816 {
40817 PyThreadState* __tstate = wxPyBeginAllowThreads();
40818 wxHelpProvider_Destroy(arg1);
40819 wxPyEndAllowThreads(__tstate);
40820 if (PyErr_Occurred()) SWIG_fail;
40821 }
40822 resultobj = SWIG_Py_Void();
40823 return resultobj;
40824 fail:
40825 return NULL;
40826 }
40827
40828
40829 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40830 PyObject *obj;
40831 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40832 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40833 return SWIG_Py_Void();
40834 }
40835
40836 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40837 PyObject *resultobj = 0;
40838 wxSimpleHelpProvider *result = 0 ;
40839
40840 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40841 {
40842 PyThreadState* __tstate = wxPyBeginAllowThreads();
40843 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40844 wxPyEndAllowThreads(__tstate);
40845 if (PyErr_Occurred()) SWIG_fail;
40846 }
40847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40848 return resultobj;
40849 fail:
40850 return NULL;
40851 }
40852
40853
40854 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40855 PyObject *obj;
40856 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40857 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40858 return SWIG_Py_Void();
40859 }
40860
40861 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40862 return SWIG_Python_InitShadowInstance(args);
40863 }
40864
40865 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40866 PyObject *resultobj = 0;
40867 wxBitmap *arg1 = 0 ;
40868 wxCursor const &arg2_defvalue = wxNullCursor ;
40869 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40870 wxGenericDragImage *result = 0 ;
40871 void *argp1 = 0 ;
40872 int res1 = 0 ;
40873 void *argp2 = 0 ;
40874 int res2 = 0 ;
40875 PyObject * obj0 = 0 ;
40876 PyObject * obj1 = 0 ;
40877 char * kwnames[] = {
40878 (char *) "image",(char *) "cursor", NULL
40879 };
40880
40881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40882 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40883 if (!SWIG_IsOK(res1)) {
40884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40885 }
40886 if (!argp1) {
40887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40888 }
40889 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40890 if (obj1) {
40891 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40892 if (!SWIG_IsOK(res2)) {
40893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40894 }
40895 if (!argp2) {
40896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40897 }
40898 arg2 = reinterpret_cast< wxCursor * >(argp2);
40899 }
40900 {
40901 if (!wxPyCheckForApp()) SWIG_fail;
40902 PyThreadState* __tstate = wxPyBeginAllowThreads();
40903 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40904 wxPyEndAllowThreads(__tstate);
40905 if (PyErr_Occurred()) SWIG_fail;
40906 }
40907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40908 return resultobj;
40909 fail:
40910 return NULL;
40911 }
40912
40913
40914 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40915 PyObject *resultobj = 0;
40916 wxIcon *arg1 = 0 ;
40917 wxCursor const &arg2_defvalue = wxNullCursor ;
40918 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40919 wxGenericDragImage *result = 0 ;
40920 void *argp1 = 0 ;
40921 int res1 = 0 ;
40922 void *argp2 = 0 ;
40923 int res2 = 0 ;
40924 PyObject * obj0 = 0 ;
40925 PyObject * obj1 = 0 ;
40926 char * kwnames[] = {
40927 (char *) "image",(char *) "cursor", NULL
40928 };
40929
40930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40931 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40932 if (!SWIG_IsOK(res1)) {
40933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40934 }
40935 if (!argp1) {
40936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40937 }
40938 arg1 = reinterpret_cast< wxIcon * >(argp1);
40939 if (obj1) {
40940 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40941 if (!SWIG_IsOK(res2)) {
40942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40943 }
40944 if (!argp2) {
40945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40946 }
40947 arg2 = reinterpret_cast< wxCursor * >(argp2);
40948 }
40949 {
40950 if (!wxPyCheckForApp()) SWIG_fail;
40951 PyThreadState* __tstate = wxPyBeginAllowThreads();
40952 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40953 wxPyEndAllowThreads(__tstate);
40954 if (PyErr_Occurred()) SWIG_fail;
40955 }
40956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40957 return resultobj;
40958 fail:
40959 return NULL;
40960 }
40961
40962
40963 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40964 PyObject *resultobj = 0;
40965 wxString *arg1 = 0 ;
40966 wxCursor const &arg2_defvalue = wxNullCursor ;
40967 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40968 wxGenericDragImage *result = 0 ;
40969 bool temp1 = false ;
40970 void *argp2 = 0 ;
40971 int res2 = 0 ;
40972 PyObject * obj0 = 0 ;
40973 PyObject * obj1 = 0 ;
40974 char * kwnames[] = {
40975 (char *) "str",(char *) "cursor", NULL
40976 };
40977
40978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40979 {
40980 arg1 = wxString_in_helper(obj0);
40981 if (arg1 == NULL) SWIG_fail;
40982 temp1 = true;
40983 }
40984 if (obj1) {
40985 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40986 if (!SWIG_IsOK(res2)) {
40987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40988 }
40989 if (!argp2) {
40990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40991 }
40992 arg2 = reinterpret_cast< wxCursor * >(argp2);
40993 }
40994 {
40995 if (!wxPyCheckForApp()) SWIG_fail;
40996 PyThreadState* __tstate = wxPyBeginAllowThreads();
40997 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40998 wxPyEndAllowThreads(__tstate);
40999 if (PyErr_Occurred()) SWIG_fail;
41000 }
41001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41002 {
41003 if (temp1)
41004 delete arg1;
41005 }
41006 return resultobj;
41007 fail:
41008 {
41009 if (temp1)
41010 delete arg1;
41011 }
41012 return NULL;
41013 }
41014
41015
41016 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41017 PyObject *resultobj = 0;
41018 wxPyTreeCtrl *arg1 = 0 ;
41019 wxTreeItemId *arg2 = 0 ;
41020 wxGenericDragImage *result = 0 ;
41021 void *argp1 = 0 ;
41022 int res1 = 0 ;
41023 void *argp2 = 0 ;
41024 int res2 = 0 ;
41025 PyObject * obj0 = 0 ;
41026 PyObject * obj1 = 0 ;
41027 char * kwnames[] = {
41028 (char *) "treeCtrl",(char *) "id", NULL
41029 };
41030
41031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
41032 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
41033 if (!SWIG_IsOK(res1)) {
41034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
41035 }
41036 if (!argp1) {
41037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
41038 }
41039 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
41040 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
41041 if (!SWIG_IsOK(res2)) {
41042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
41043 }
41044 if (!argp2) {
41045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
41046 }
41047 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
41048 {
41049 if (!wxPyCheckForApp()) SWIG_fail;
41050 PyThreadState* __tstate = wxPyBeginAllowThreads();
41051 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
41052 wxPyEndAllowThreads(__tstate);
41053 if (PyErr_Occurred()) SWIG_fail;
41054 }
41055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41056 return resultobj;
41057 fail:
41058 return NULL;
41059 }
41060
41061
41062 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41063 PyObject *resultobj = 0;
41064 wxPyListCtrl *arg1 = 0 ;
41065 long arg2 ;
41066 wxGenericDragImage *result = 0 ;
41067 void *argp1 = 0 ;
41068 int res1 = 0 ;
41069 long val2 ;
41070 int ecode2 = 0 ;
41071 PyObject * obj0 = 0 ;
41072 PyObject * obj1 = 0 ;
41073 char * kwnames[] = {
41074 (char *) "listCtrl",(char *) "id", NULL
41075 };
41076
41077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
41078 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
41079 if (!SWIG_IsOK(res1)) {
41080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41081 }
41082 if (!argp1) {
41083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41084 }
41085 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
41086 ecode2 = SWIG_AsVal_long(obj1, &val2);
41087 if (!SWIG_IsOK(ecode2)) {
41088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
41089 }
41090 arg2 = static_cast< long >(val2);
41091 {
41092 if (!wxPyCheckForApp()) SWIG_fail;
41093 PyThreadState* __tstate = wxPyBeginAllowThreads();
41094 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
41095 wxPyEndAllowThreads(__tstate);
41096 if (PyErr_Occurred()) SWIG_fail;
41097 }
41098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41099 return resultobj;
41100 fail:
41101 return NULL;
41102 }
41103
41104
41105 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41106 PyObject *resultobj = 0;
41107 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41108 void *argp1 = 0 ;
41109 int res1 = 0 ;
41110 PyObject *swig_obj[1] ;
41111
41112 if (!args) SWIG_fail;
41113 swig_obj[0] = args;
41114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
41115 if (!SWIG_IsOK(res1)) {
41116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41117 }
41118 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41119 {
41120 PyThreadState* __tstate = wxPyBeginAllowThreads();
41121 delete arg1;
41122
41123 wxPyEndAllowThreads(__tstate);
41124 if (PyErr_Occurred()) SWIG_fail;
41125 }
41126 resultobj = SWIG_Py_Void();
41127 return resultobj;
41128 fail:
41129 return NULL;
41130 }
41131
41132
41133 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41134 PyObject *resultobj = 0;
41135 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41136 wxBitmap *arg2 = (wxBitmap *) 0 ;
41137 void *argp1 = 0 ;
41138 int res1 = 0 ;
41139 void *argp2 = 0 ;
41140 int res2 = 0 ;
41141 PyObject * obj0 = 0 ;
41142 PyObject * obj1 = 0 ;
41143 char * kwnames[] = {
41144 (char *) "self",(char *) "bitmap", NULL
41145 };
41146
41147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
41148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41149 if (!SWIG_IsOK(res1)) {
41150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41151 }
41152 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41153 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
41154 if (!SWIG_IsOK(res2)) {
41155 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
41156 }
41157 arg2 = reinterpret_cast< wxBitmap * >(argp2);
41158 {
41159 PyThreadState* __tstate = wxPyBeginAllowThreads();
41160 (arg1)->SetBackingBitmap(arg2);
41161 wxPyEndAllowThreads(__tstate);
41162 if (PyErr_Occurred()) SWIG_fail;
41163 }
41164 resultobj = SWIG_Py_Void();
41165 return resultobj;
41166 fail:
41167 return NULL;
41168 }
41169
41170
41171 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41172 PyObject *resultobj = 0;
41173 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41174 wxPoint *arg2 = 0 ;
41175 wxWindow *arg3 = (wxWindow *) 0 ;
41176 bool arg4 = (bool) false ;
41177 wxRect *arg5 = (wxRect *) NULL ;
41178 bool result;
41179 void *argp1 = 0 ;
41180 int res1 = 0 ;
41181 wxPoint temp2 ;
41182 void *argp3 = 0 ;
41183 int res3 = 0 ;
41184 bool val4 ;
41185 int ecode4 = 0 ;
41186 void *argp5 = 0 ;
41187 int res5 = 0 ;
41188 PyObject * obj0 = 0 ;
41189 PyObject * obj1 = 0 ;
41190 PyObject * obj2 = 0 ;
41191 PyObject * obj3 = 0 ;
41192 PyObject * obj4 = 0 ;
41193 char * kwnames[] = {
41194 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
41195 };
41196
41197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41199 if (!SWIG_IsOK(res1)) {
41200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41201 }
41202 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41203 {
41204 arg2 = &temp2;
41205 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41206 }
41207 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41208 if (!SWIG_IsOK(res3)) {
41209 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
41210 }
41211 arg3 = reinterpret_cast< wxWindow * >(argp3);
41212 if (obj3) {
41213 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41214 if (!SWIG_IsOK(ecode4)) {
41215 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
41216 }
41217 arg4 = static_cast< bool >(val4);
41218 }
41219 if (obj4) {
41220 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
41221 if (!SWIG_IsOK(res5)) {
41222 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
41223 }
41224 arg5 = reinterpret_cast< wxRect * >(argp5);
41225 }
41226 {
41227 PyThreadState* __tstate = wxPyBeginAllowThreads();
41228 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
41229 wxPyEndAllowThreads(__tstate);
41230 if (PyErr_Occurred()) SWIG_fail;
41231 }
41232 {
41233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41234 }
41235 return resultobj;
41236 fail:
41237 return NULL;
41238 }
41239
41240
41241 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41242 PyObject *resultobj = 0;
41243 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41244 wxPoint *arg2 = 0 ;
41245 wxWindow *arg3 = (wxWindow *) 0 ;
41246 wxWindow *arg4 = (wxWindow *) 0 ;
41247 bool result;
41248 void *argp1 = 0 ;
41249 int res1 = 0 ;
41250 wxPoint temp2 ;
41251 void *argp3 = 0 ;
41252 int res3 = 0 ;
41253 void *argp4 = 0 ;
41254 int res4 = 0 ;
41255 PyObject * obj0 = 0 ;
41256 PyObject * obj1 = 0 ;
41257 PyObject * obj2 = 0 ;
41258 PyObject * obj3 = 0 ;
41259 char * kwnames[] = {
41260 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
41261 };
41262
41263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41265 if (!SWIG_IsOK(res1)) {
41266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41267 }
41268 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41269 {
41270 arg2 = &temp2;
41271 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41272 }
41273 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41274 if (!SWIG_IsOK(res3)) {
41275 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
41276 }
41277 arg3 = reinterpret_cast< wxWindow * >(argp3);
41278 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
41279 if (!SWIG_IsOK(res4)) {
41280 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
41281 }
41282 arg4 = reinterpret_cast< wxWindow * >(argp4);
41283 {
41284 PyThreadState* __tstate = wxPyBeginAllowThreads();
41285 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
41286 wxPyEndAllowThreads(__tstate);
41287 if (PyErr_Occurred()) SWIG_fail;
41288 }
41289 {
41290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41291 }
41292 return resultobj;
41293 fail:
41294 return NULL;
41295 }
41296
41297
41298 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41299 PyObject *resultobj = 0;
41300 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41301 bool result;
41302 void *argp1 = 0 ;
41303 int res1 = 0 ;
41304 PyObject *swig_obj[1] ;
41305
41306 if (!args) SWIG_fail;
41307 swig_obj[0] = args;
41308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41309 if (!SWIG_IsOK(res1)) {
41310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41311 }
41312 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41313 {
41314 PyThreadState* __tstate = wxPyBeginAllowThreads();
41315 result = (bool)(arg1)->EndDrag();
41316 wxPyEndAllowThreads(__tstate);
41317 if (PyErr_Occurred()) SWIG_fail;
41318 }
41319 {
41320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41321 }
41322 return resultobj;
41323 fail:
41324 return NULL;
41325 }
41326
41327
41328 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41329 PyObject *resultobj = 0;
41330 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41331 wxPoint *arg2 = 0 ;
41332 bool result;
41333 void *argp1 = 0 ;
41334 int res1 = 0 ;
41335 wxPoint temp2 ;
41336 PyObject * obj0 = 0 ;
41337 PyObject * obj1 = 0 ;
41338 char * kwnames[] = {
41339 (char *) "self",(char *) "pt", NULL
41340 };
41341
41342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
41343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41344 if (!SWIG_IsOK(res1)) {
41345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41346 }
41347 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41348 {
41349 arg2 = &temp2;
41350 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41351 }
41352 {
41353 PyThreadState* __tstate = wxPyBeginAllowThreads();
41354 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
41355 wxPyEndAllowThreads(__tstate);
41356 if (PyErr_Occurred()) SWIG_fail;
41357 }
41358 {
41359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41360 }
41361 return resultobj;
41362 fail:
41363 return NULL;
41364 }
41365
41366
41367 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41368 PyObject *resultobj = 0;
41369 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41370 bool result;
41371 void *argp1 = 0 ;
41372 int res1 = 0 ;
41373 PyObject *swig_obj[1] ;
41374
41375 if (!args) SWIG_fail;
41376 swig_obj[0] = args;
41377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41378 if (!SWIG_IsOK(res1)) {
41379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41380 }
41381 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41382 {
41383 PyThreadState* __tstate = wxPyBeginAllowThreads();
41384 result = (bool)(arg1)->Show();
41385 wxPyEndAllowThreads(__tstate);
41386 if (PyErr_Occurred()) SWIG_fail;
41387 }
41388 {
41389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41390 }
41391 return resultobj;
41392 fail:
41393 return NULL;
41394 }
41395
41396
41397 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41398 PyObject *resultobj = 0;
41399 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41400 bool result;
41401 void *argp1 = 0 ;
41402 int res1 = 0 ;
41403 PyObject *swig_obj[1] ;
41404
41405 if (!args) SWIG_fail;
41406 swig_obj[0] = args;
41407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41408 if (!SWIG_IsOK(res1)) {
41409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41410 }
41411 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41412 {
41413 PyThreadState* __tstate = wxPyBeginAllowThreads();
41414 result = (bool)(arg1)->Hide();
41415 wxPyEndAllowThreads(__tstate);
41416 if (PyErr_Occurred()) SWIG_fail;
41417 }
41418 {
41419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41420 }
41421 return resultobj;
41422 fail:
41423 return NULL;
41424 }
41425
41426
41427 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41428 PyObject *resultobj = 0;
41429 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41430 wxPoint *arg2 = 0 ;
41431 wxRect result;
41432 void *argp1 = 0 ;
41433 int res1 = 0 ;
41434 wxPoint temp2 ;
41435 PyObject * obj0 = 0 ;
41436 PyObject * obj1 = 0 ;
41437 char * kwnames[] = {
41438 (char *) "self",(char *) "pos", NULL
41439 };
41440
41441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41443 if (!SWIG_IsOK(res1)) {
41444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41445 }
41446 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41447 {
41448 arg2 = &temp2;
41449 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41450 }
41451 {
41452 PyThreadState* __tstate = wxPyBeginAllowThreads();
41453 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41454 wxPyEndAllowThreads(__tstate);
41455 if (PyErr_Occurred()) SWIG_fail;
41456 }
41457 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41458 return resultobj;
41459 fail:
41460 return NULL;
41461 }
41462
41463
41464 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41465 PyObject *resultobj = 0;
41466 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41467 wxDC *arg2 = 0 ;
41468 wxPoint *arg3 = 0 ;
41469 bool result;
41470 void *argp1 = 0 ;
41471 int res1 = 0 ;
41472 void *argp2 = 0 ;
41473 int res2 = 0 ;
41474 wxPoint temp3 ;
41475 PyObject * obj0 = 0 ;
41476 PyObject * obj1 = 0 ;
41477 PyObject * obj2 = 0 ;
41478 char * kwnames[] = {
41479 (char *) "self",(char *) "dc",(char *) "pos", NULL
41480 };
41481
41482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41484 if (!SWIG_IsOK(res1)) {
41485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41486 }
41487 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41488 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41489 if (!SWIG_IsOK(res2)) {
41490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41491 }
41492 if (!argp2) {
41493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41494 }
41495 arg2 = reinterpret_cast< wxDC * >(argp2);
41496 {
41497 arg3 = &temp3;
41498 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41499 }
41500 {
41501 PyThreadState* __tstate = wxPyBeginAllowThreads();
41502 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41503 wxPyEndAllowThreads(__tstate);
41504 if (PyErr_Occurred()) SWIG_fail;
41505 }
41506 {
41507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41508 }
41509 return resultobj;
41510 fail:
41511 return NULL;
41512 }
41513
41514
41515 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41516 PyObject *resultobj = 0;
41517 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41518 wxDC *arg2 = 0 ;
41519 wxMemoryDC *arg3 = 0 ;
41520 wxRect *arg4 = 0 ;
41521 wxRect *arg5 = 0 ;
41522 bool result;
41523 void *argp1 = 0 ;
41524 int res1 = 0 ;
41525 void *argp2 = 0 ;
41526 int res2 = 0 ;
41527 void *argp3 = 0 ;
41528 int res3 = 0 ;
41529 wxRect temp4 ;
41530 wxRect temp5 ;
41531 PyObject * obj0 = 0 ;
41532 PyObject * obj1 = 0 ;
41533 PyObject * obj2 = 0 ;
41534 PyObject * obj3 = 0 ;
41535 PyObject * obj4 = 0 ;
41536 char * kwnames[] = {
41537 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41538 };
41539
41540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41542 if (!SWIG_IsOK(res1)) {
41543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41544 }
41545 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41546 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41547 if (!SWIG_IsOK(res2)) {
41548 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41549 }
41550 if (!argp2) {
41551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41552 }
41553 arg2 = reinterpret_cast< wxDC * >(argp2);
41554 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41555 if (!SWIG_IsOK(res3)) {
41556 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41557 }
41558 if (!argp3) {
41559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41560 }
41561 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41562 {
41563 arg4 = &temp4;
41564 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41565 }
41566 {
41567 arg5 = &temp5;
41568 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41569 }
41570 {
41571 PyThreadState* __tstate = wxPyBeginAllowThreads();
41572 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41573 wxPyEndAllowThreads(__tstate);
41574 if (PyErr_Occurred()) SWIG_fail;
41575 }
41576 {
41577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41578 }
41579 return resultobj;
41580 fail:
41581 return NULL;
41582 }
41583
41584
41585 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41586 PyObject *resultobj = 0;
41587 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41588 wxPoint *arg2 = 0 ;
41589 wxPoint *arg3 = 0 ;
41590 bool arg4 ;
41591 bool arg5 ;
41592 bool result;
41593 void *argp1 = 0 ;
41594 int res1 = 0 ;
41595 wxPoint temp2 ;
41596 wxPoint temp3 ;
41597 bool val4 ;
41598 int ecode4 = 0 ;
41599 bool val5 ;
41600 int ecode5 = 0 ;
41601 PyObject * obj0 = 0 ;
41602 PyObject * obj1 = 0 ;
41603 PyObject * obj2 = 0 ;
41604 PyObject * obj3 = 0 ;
41605 PyObject * obj4 = 0 ;
41606 char * kwnames[] = {
41607 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41608 };
41609
41610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41612 if (!SWIG_IsOK(res1)) {
41613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41614 }
41615 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41616 {
41617 arg2 = &temp2;
41618 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41619 }
41620 {
41621 arg3 = &temp3;
41622 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41623 }
41624 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41625 if (!SWIG_IsOK(ecode4)) {
41626 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41627 }
41628 arg4 = static_cast< bool >(val4);
41629 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41630 if (!SWIG_IsOK(ecode5)) {
41631 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41632 }
41633 arg5 = static_cast< bool >(val5);
41634 {
41635 PyThreadState* __tstate = wxPyBeginAllowThreads();
41636 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41637 wxPyEndAllowThreads(__tstate);
41638 if (PyErr_Occurred()) SWIG_fail;
41639 }
41640 {
41641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41642 }
41643 return resultobj;
41644 fail:
41645 return NULL;
41646 }
41647
41648
41649 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41650 PyObject *obj;
41651 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41652 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41653 return SWIG_Py_Void();
41654 }
41655
41656 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41657 return SWIG_Python_InitShadowInstance(args);
41658 }
41659
41660 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41661 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41662 return 1;
41663 }
41664
41665
41666 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41667 PyObject *pyobj = 0;
41668
41669 {
41670 #if wxUSE_UNICODE
41671 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41672 #else
41673 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41674 #endif
41675 }
41676 return pyobj;
41677 }
41678
41679
41680 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41681 PyObject *resultobj = 0;
41682 wxWindow *arg1 = (wxWindow *) 0 ;
41683 int arg2 = (int) -1 ;
41684 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41685 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41686 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41687 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41688 wxSize const &arg5_defvalue = wxDefaultSize ;
41689 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41690 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41691 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41692 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41693 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41694 wxString *arg8 = (wxString *) &arg8_defvalue ;
41695 wxDatePickerCtrl *result = 0 ;
41696 void *argp1 = 0 ;
41697 int res1 = 0 ;
41698 int val2 ;
41699 int ecode2 = 0 ;
41700 void *argp3 = 0 ;
41701 int res3 = 0 ;
41702 wxPoint temp4 ;
41703 wxSize temp5 ;
41704 long val6 ;
41705 int ecode6 = 0 ;
41706 void *argp7 = 0 ;
41707 int res7 = 0 ;
41708 bool temp8 = false ;
41709 PyObject * obj0 = 0 ;
41710 PyObject * obj1 = 0 ;
41711 PyObject * obj2 = 0 ;
41712 PyObject * obj3 = 0 ;
41713 PyObject * obj4 = 0 ;
41714 PyObject * obj5 = 0 ;
41715 PyObject * obj6 = 0 ;
41716 PyObject * obj7 = 0 ;
41717 char * kwnames[] = {
41718 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41719 };
41720
41721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41723 if (!SWIG_IsOK(res1)) {
41724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41725 }
41726 arg1 = reinterpret_cast< wxWindow * >(argp1);
41727 if (obj1) {
41728 ecode2 = SWIG_AsVal_int(obj1, &val2);
41729 if (!SWIG_IsOK(ecode2)) {
41730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41731 }
41732 arg2 = static_cast< int >(val2);
41733 }
41734 if (obj2) {
41735 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41736 if (!SWIG_IsOK(res3)) {
41737 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41738 }
41739 if (!argp3) {
41740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41741 }
41742 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41743 }
41744 if (obj3) {
41745 {
41746 arg4 = &temp4;
41747 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41748 }
41749 }
41750 if (obj4) {
41751 {
41752 arg5 = &temp5;
41753 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41754 }
41755 }
41756 if (obj5) {
41757 ecode6 = SWIG_AsVal_long(obj5, &val6);
41758 if (!SWIG_IsOK(ecode6)) {
41759 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41760 }
41761 arg6 = static_cast< long >(val6);
41762 }
41763 if (obj6) {
41764 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41765 if (!SWIG_IsOK(res7)) {
41766 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41767 }
41768 if (!argp7) {
41769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41770 }
41771 arg7 = reinterpret_cast< wxValidator * >(argp7);
41772 }
41773 if (obj7) {
41774 {
41775 arg8 = wxString_in_helper(obj7);
41776 if (arg8 == NULL) SWIG_fail;
41777 temp8 = true;
41778 }
41779 }
41780 {
41781 if (!wxPyCheckForApp()) SWIG_fail;
41782 PyThreadState* __tstate = wxPyBeginAllowThreads();
41783 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41784 wxPyEndAllowThreads(__tstate);
41785 if (PyErr_Occurred()) SWIG_fail;
41786 }
41787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41788 {
41789 if (temp8)
41790 delete arg8;
41791 }
41792 return resultobj;
41793 fail:
41794 {
41795 if (temp8)
41796 delete arg8;
41797 }
41798 return NULL;
41799 }
41800
41801
41802 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41803 PyObject *resultobj = 0;
41804 wxDatePickerCtrl *result = 0 ;
41805
41806 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41807 {
41808 if (!wxPyCheckForApp()) SWIG_fail;
41809 PyThreadState* __tstate = wxPyBeginAllowThreads();
41810 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41811 wxPyEndAllowThreads(__tstate);
41812 if (PyErr_Occurred()) SWIG_fail;
41813 }
41814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41815 return resultobj;
41816 fail:
41817 return NULL;
41818 }
41819
41820
41821 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41822 PyObject *resultobj = 0;
41823 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41824 wxWindow *arg2 = (wxWindow *) 0 ;
41825 int arg3 = (int) -1 ;
41826 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41827 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41828 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41829 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41830 wxSize const &arg6_defvalue = wxDefaultSize ;
41831 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41832 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41833 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41834 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41835 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41836 wxString *arg9 = (wxString *) &arg9_defvalue ;
41837 bool result;
41838 void *argp1 = 0 ;
41839 int res1 = 0 ;
41840 void *argp2 = 0 ;
41841 int res2 = 0 ;
41842 int val3 ;
41843 int ecode3 = 0 ;
41844 void *argp4 = 0 ;
41845 int res4 = 0 ;
41846 wxPoint temp5 ;
41847 wxSize temp6 ;
41848 long val7 ;
41849 int ecode7 = 0 ;
41850 void *argp8 = 0 ;
41851 int res8 = 0 ;
41852 bool temp9 = false ;
41853 PyObject * obj0 = 0 ;
41854 PyObject * obj1 = 0 ;
41855 PyObject * obj2 = 0 ;
41856 PyObject * obj3 = 0 ;
41857 PyObject * obj4 = 0 ;
41858 PyObject * obj5 = 0 ;
41859 PyObject * obj6 = 0 ;
41860 PyObject * obj7 = 0 ;
41861 PyObject * obj8 = 0 ;
41862 char * kwnames[] = {
41863 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41864 };
41865
41866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41868 if (!SWIG_IsOK(res1)) {
41869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41870 }
41871 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41872 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41873 if (!SWIG_IsOK(res2)) {
41874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41875 }
41876 arg2 = reinterpret_cast< wxWindow * >(argp2);
41877 if (obj2) {
41878 ecode3 = SWIG_AsVal_int(obj2, &val3);
41879 if (!SWIG_IsOK(ecode3)) {
41880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41881 }
41882 arg3 = static_cast< int >(val3);
41883 }
41884 if (obj3) {
41885 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41886 if (!SWIG_IsOK(res4)) {
41887 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41888 }
41889 if (!argp4) {
41890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41891 }
41892 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41893 }
41894 if (obj4) {
41895 {
41896 arg5 = &temp5;
41897 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41898 }
41899 }
41900 if (obj5) {
41901 {
41902 arg6 = &temp6;
41903 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41904 }
41905 }
41906 if (obj6) {
41907 ecode7 = SWIG_AsVal_long(obj6, &val7);
41908 if (!SWIG_IsOK(ecode7)) {
41909 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41910 }
41911 arg7 = static_cast< long >(val7);
41912 }
41913 if (obj7) {
41914 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41915 if (!SWIG_IsOK(res8)) {
41916 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41917 }
41918 if (!argp8) {
41919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41920 }
41921 arg8 = reinterpret_cast< wxValidator * >(argp8);
41922 }
41923 if (obj8) {
41924 {
41925 arg9 = wxString_in_helper(obj8);
41926 if (arg9 == NULL) SWIG_fail;
41927 temp9 = true;
41928 }
41929 }
41930 {
41931 PyThreadState* __tstate = wxPyBeginAllowThreads();
41932 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41933 wxPyEndAllowThreads(__tstate);
41934 if (PyErr_Occurred()) SWIG_fail;
41935 }
41936 {
41937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41938 }
41939 {
41940 if (temp9)
41941 delete arg9;
41942 }
41943 return resultobj;
41944 fail:
41945 {
41946 if (temp9)
41947 delete arg9;
41948 }
41949 return NULL;
41950 }
41951
41952
41953 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41954 PyObject *resultobj = 0;
41955 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41956 wxDateTime *arg2 = 0 ;
41957 void *argp1 = 0 ;
41958 int res1 = 0 ;
41959 void *argp2 = 0 ;
41960 int res2 = 0 ;
41961 PyObject * obj0 = 0 ;
41962 PyObject * obj1 = 0 ;
41963 char * kwnames[] = {
41964 (char *) "self",(char *) "dt", NULL
41965 };
41966
41967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41969 if (!SWIG_IsOK(res1)) {
41970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41971 }
41972 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41974 if (!SWIG_IsOK(res2)) {
41975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41976 }
41977 if (!argp2) {
41978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41979 }
41980 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41981 {
41982 PyThreadState* __tstate = wxPyBeginAllowThreads();
41983 (arg1)->SetValue((wxDateTime const &)*arg2);
41984 wxPyEndAllowThreads(__tstate);
41985 if (PyErr_Occurred()) SWIG_fail;
41986 }
41987 resultobj = SWIG_Py_Void();
41988 return resultobj;
41989 fail:
41990 return NULL;
41991 }
41992
41993
41994 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41995 PyObject *resultobj = 0;
41996 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41997 wxDateTime 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_wxDatePickerCtrl, 0 | 0 );
42005 if (!SWIG_IsOK(res1)) {
42006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
42007 }
42008 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42009 {
42010 PyThreadState* __tstate = wxPyBeginAllowThreads();
42011 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
42012 wxPyEndAllowThreads(__tstate);
42013 if (PyErr_Occurred()) SWIG_fail;
42014 }
42015 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42016 return resultobj;
42017 fail:
42018 return NULL;
42019 }
42020
42021
42022 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42023 PyObject *resultobj = 0;
42024 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42025 wxDateTime *arg2 = 0 ;
42026 wxDateTime *arg3 = 0 ;
42027 void *argp1 = 0 ;
42028 int res1 = 0 ;
42029 void *argp2 = 0 ;
42030 int res2 = 0 ;
42031 void *argp3 = 0 ;
42032 int res3 = 0 ;
42033 PyObject * obj0 = 0 ;
42034 PyObject * obj1 = 0 ;
42035 PyObject * obj2 = 0 ;
42036 char * kwnames[] = {
42037 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
42038 };
42039
42040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42042 if (!SWIG_IsOK(res1)) {
42043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42044 }
42045 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42046 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
42047 if (!SWIG_IsOK(res2)) {
42048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42049 }
42050 if (!argp2) {
42051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42052 }
42053 arg2 = reinterpret_cast< wxDateTime * >(argp2);
42054 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
42055 if (!SWIG_IsOK(res3)) {
42056 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
42057 }
42058 if (!argp3) {
42059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
42060 }
42061 arg3 = reinterpret_cast< wxDateTime * >(argp3);
42062 {
42063 PyThreadState* __tstate = wxPyBeginAllowThreads();
42064 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
42065 wxPyEndAllowThreads(__tstate);
42066 if (PyErr_Occurred()) SWIG_fail;
42067 }
42068 resultobj = SWIG_Py_Void();
42069 return resultobj;
42070 fail:
42071 return NULL;
42072 }
42073
42074
42075 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42076 PyObject *resultobj = 0;
42077 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42078 wxDateTime result;
42079 void *argp1 = 0 ;
42080 int res1 = 0 ;
42081 PyObject *swig_obj[1] ;
42082
42083 if (!args) SWIG_fail;
42084 swig_obj[0] = args;
42085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42086 if (!SWIG_IsOK(res1)) {
42087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42088 }
42089 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42090 {
42091 PyThreadState* __tstate = wxPyBeginAllowThreads();
42092 result = wxDatePickerCtrl_GetLowerLimit(arg1);
42093 wxPyEndAllowThreads(__tstate);
42094 if (PyErr_Occurred()) SWIG_fail;
42095 }
42096 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42097 return resultobj;
42098 fail:
42099 return NULL;
42100 }
42101
42102
42103 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42104 PyObject *resultobj = 0;
42105 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42106 wxDateTime result;
42107 void *argp1 = 0 ;
42108 int res1 = 0 ;
42109 PyObject *swig_obj[1] ;
42110
42111 if (!args) SWIG_fail;
42112 swig_obj[0] = args;
42113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42114 if (!SWIG_IsOK(res1)) {
42115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42116 }
42117 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42118 {
42119 PyThreadState* __tstate = wxPyBeginAllowThreads();
42120 result = wxDatePickerCtrl_GetUpperLimit(arg1);
42121 wxPyEndAllowThreads(__tstate);
42122 if (PyErr_Occurred()) SWIG_fail;
42123 }
42124 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42125 return resultobj;
42126 fail:
42127 return NULL;
42128 }
42129
42130
42131 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42132 PyObject *obj;
42133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42134 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
42135 return SWIG_Py_Void();
42136 }
42137
42138 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42139 return SWIG_Python_InitShadowInstance(args);
42140 }
42141
42142 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
42143 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
42144 return 1;
42145 }
42146
42147
42148 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
42149 PyObject *pyobj = 0;
42150
42151 {
42152 #if wxUSE_UNICODE
42153 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42154 #else
42155 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42156 #endif
42157 }
42158 return pyobj;
42159 }
42160
42161
42162 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42163 PyObject *resultobj = 0;
42164 wxWindow *arg1 = (wxWindow *) 0 ;
42165 int arg2 ;
42166 wxString *arg3 = 0 ;
42167 wxString *arg4 = 0 ;
42168 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42169 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42170 wxSize const &arg6_defvalue = wxDefaultSize ;
42171 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42172 long arg7 = (long) wxHL_DEFAULT_STYLE ;
42173 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
42174 wxString *arg8 = (wxString *) &arg8_defvalue ;
42175 wxHyperlinkCtrl *result = 0 ;
42176 void *argp1 = 0 ;
42177 int res1 = 0 ;
42178 int val2 ;
42179 int ecode2 = 0 ;
42180 bool temp3 = false ;
42181 bool temp4 = false ;
42182 wxPoint temp5 ;
42183 wxSize temp6 ;
42184 long val7 ;
42185 int ecode7 = 0 ;
42186 bool temp8 = false ;
42187 PyObject * obj0 = 0 ;
42188 PyObject * obj1 = 0 ;
42189 PyObject * obj2 = 0 ;
42190 PyObject * obj3 = 0 ;
42191 PyObject * obj4 = 0 ;
42192 PyObject * obj5 = 0 ;
42193 PyObject * obj6 = 0 ;
42194 PyObject * obj7 = 0 ;
42195 char * kwnames[] = {
42196 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42197 };
42198
42199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42201 if (!SWIG_IsOK(res1)) {
42202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42203 }
42204 arg1 = reinterpret_cast< wxWindow * >(argp1);
42205 ecode2 = SWIG_AsVal_int(obj1, &val2);
42206 if (!SWIG_IsOK(ecode2)) {
42207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
42208 }
42209 arg2 = static_cast< int >(val2);
42210 {
42211 arg3 = wxString_in_helper(obj2);
42212 if (arg3 == NULL) SWIG_fail;
42213 temp3 = true;
42214 }
42215 {
42216 arg4 = wxString_in_helper(obj3);
42217 if (arg4 == NULL) SWIG_fail;
42218 temp4 = true;
42219 }
42220 if (obj4) {
42221 {
42222 arg5 = &temp5;
42223 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42224 }
42225 }
42226 if (obj5) {
42227 {
42228 arg6 = &temp6;
42229 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42230 }
42231 }
42232 if (obj6) {
42233 ecode7 = SWIG_AsVal_long(obj6, &val7);
42234 if (!SWIG_IsOK(ecode7)) {
42235 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
42236 }
42237 arg7 = static_cast< long >(val7);
42238 }
42239 if (obj7) {
42240 {
42241 arg8 = wxString_in_helper(obj7);
42242 if (arg8 == NULL) SWIG_fail;
42243 temp8 = true;
42244 }
42245 }
42246 {
42247 if (!wxPyCheckForApp()) SWIG_fail;
42248 PyThreadState* __tstate = wxPyBeginAllowThreads();
42249 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
42250 wxPyEndAllowThreads(__tstate);
42251 if (PyErr_Occurred()) SWIG_fail;
42252 }
42253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
42254 {
42255 if (temp3)
42256 delete arg3;
42257 }
42258 {
42259 if (temp4)
42260 delete arg4;
42261 }
42262 {
42263 if (temp8)
42264 delete arg8;
42265 }
42266 return resultobj;
42267 fail:
42268 {
42269 if (temp3)
42270 delete arg3;
42271 }
42272 {
42273 if (temp4)
42274 delete arg4;
42275 }
42276 {
42277 if (temp8)
42278 delete arg8;
42279 }
42280 return NULL;
42281 }
42282
42283
42284 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42285 PyObject *resultobj = 0;
42286 wxHyperlinkCtrl *result = 0 ;
42287
42288 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
42289 {
42290 if (!wxPyCheckForApp()) SWIG_fail;
42291 PyThreadState* __tstate = wxPyBeginAllowThreads();
42292 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
42293 wxPyEndAllowThreads(__tstate);
42294 if (PyErr_Occurred()) SWIG_fail;
42295 }
42296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
42297 return resultobj;
42298 fail:
42299 return NULL;
42300 }
42301
42302
42303 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42304 PyObject *resultobj = 0;
42305 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42306 wxWindow *arg2 = (wxWindow *) 0 ;
42307 int arg3 ;
42308 wxString *arg4 = 0 ;
42309 wxString *arg5 = 0 ;
42310 wxPoint const &arg6_defvalue = wxDefaultPosition ;
42311 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
42312 wxSize const &arg7_defvalue = wxDefaultSize ;
42313 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
42314 long arg8 = (long) wxHL_DEFAULT_STYLE ;
42315 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
42316 wxString *arg9 = (wxString *) &arg9_defvalue ;
42317 bool result;
42318 void *argp1 = 0 ;
42319 int res1 = 0 ;
42320 void *argp2 = 0 ;
42321 int res2 = 0 ;
42322 int val3 ;
42323 int ecode3 = 0 ;
42324 bool temp4 = false ;
42325 bool temp5 = false ;
42326 wxPoint temp6 ;
42327 wxSize temp7 ;
42328 long val8 ;
42329 int ecode8 = 0 ;
42330 bool temp9 = false ;
42331 PyObject * obj0 = 0 ;
42332 PyObject * obj1 = 0 ;
42333 PyObject * obj2 = 0 ;
42334 PyObject * obj3 = 0 ;
42335 PyObject * obj4 = 0 ;
42336 PyObject * obj5 = 0 ;
42337 PyObject * obj6 = 0 ;
42338 PyObject * obj7 = 0 ;
42339 PyObject * obj8 = 0 ;
42340 char * kwnames[] = {
42341 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42342 };
42343
42344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42346 if (!SWIG_IsOK(res1)) {
42347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42348 }
42349 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42350 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42351 if (!SWIG_IsOK(res2)) {
42352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42353 }
42354 arg2 = reinterpret_cast< wxWindow * >(argp2);
42355 ecode3 = SWIG_AsVal_int(obj2, &val3);
42356 if (!SWIG_IsOK(ecode3)) {
42357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42358 }
42359 arg3 = static_cast< int >(val3);
42360 {
42361 arg4 = wxString_in_helper(obj3);
42362 if (arg4 == NULL) SWIG_fail;
42363 temp4 = true;
42364 }
42365 {
42366 arg5 = wxString_in_helper(obj4);
42367 if (arg5 == NULL) SWIG_fail;
42368 temp5 = true;
42369 }
42370 if (obj5) {
42371 {
42372 arg6 = &temp6;
42373 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
42374 }
42375 }
42376 if (obj6) {
42377 {
42378 arg7 = &temp7;
42379 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
42380 }
42381 }
42382 if (obj7) {
42383 ecode8 = SWIG_AsVal_long(obj7, &val8);
42384 if (!SWIG_IsOK(ecode8)) {
42385 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
42386 }
42387 arg8 = static_cast< long >(val8);
42388 }
42389 if (obj8) {
42390 {
42391 arg9 = wxString_in_helper(obj8);
42392 if (arg9 == NULL) SWIG_fail;
42393 temp9 = true;
42394 }
42395 }
42396 {
42397 PyThreadState* __tstate = wxPyBeginAllowThreads();
42398 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
42399 wxPyEndAllowThreads(__tstate);
42400 if (PyErr_Occurred()) SWIG_fail;
42401 }
42402 {
42403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42404 }
42405 {
42406 if (temp4)
42407 delete arg4;
42408 }
42409 {
42410 if (temp5)
42411 delete arg5;
42412 }
42413 {
42414 if (temp9)
42415 delete arg9;
42416 }
42417 return resultobj;
42418 fail:
42419 {
42420 if (temp4)
42421 delete arg4;
42422 }
42423 {
42424 if (temp5)
42425 delete arg5;
42426 }
42427 {
42428 if (temp9)
42429 delete arg9;
42430 }
42431 return NULL;
42432 }
42433
42434
42435 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42436 PyObject *resultobj = 0;
42437 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42438 wxColour result;
42439 void *argp1 = 0 ;
42440 int res1 = 0 ;
42441 PyObject *swig_obj[1] ;
42442
42443 if (!args) SWIG_fail;
42444 swig_obj[0] = args;
42445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42446 if (!SWIG_IsOK(res1)) {
42447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42448 }
42449 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42450 {
42451 PyThreadState* __tstate = wxPyBeginAllowThreads();
42452 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42453 wxPyEndAllowThreads(__tstate);
42454 if (PyErr_Occurred()) SWIG_fail;
42455 }
42456 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42457 return resultobj;
42458 fail:
42459 return NULL;
42460 }
42461
42462
42463 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42464 PyObject *resultobj = 0;
42465 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42466 wxColour *arg2 = 0 ;
42467 void *argp1 = 0 ;
42468 int res1 = 0 ;
42469 wxColour temp2 ;
42470 PyObject * obj0 = 0 ;
42471 PyObject * obj1 = 0 ;
42472 char * kwnames[] = {
42473 (char *) "self",(char *) "colour", NULL
42474 };
42475
42476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42478 if (!SWIG_IsOK(res1)) {
42479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42480 }
42481 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42482 {
42483 arg2 = &temp2;
42484 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42485 }
42486 {
42487 PyThreadState* __tstate = wxPyBeginAllowThreads();
42488 (arg1)->SetHoverColour((wxColour const &)*arg2);
42489 wxPyEndAllowThreads(__tstate);
42490 if (PyErr_Occurred()) SWIG_fail;
42491 }
42492 resultobj = SWIG_Py_Void();
42493 return resultobj;
42494 fail:
42495 return NULL;
42496 }
42497
42498
42499 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42500 PyObject *resultobj = 0;
42501 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42502 wxColour result;
42503 void *argp1 = 0 ;
42504 int res1 = 0 ;
42505 PyObject *swig_obj[1] ;
42506
42507 if (!args) SWIG_fail;
42508 swig_obj[0] = args;
42509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42510 if (!SWIG_IsOK(res1)) {
42511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42512 }
42513 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42514 {
42515 PyThreadState* __tstate = wxPyBeginAllowThreads();
42516 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42517 wxPyEndAllowThreads(__tstate);
42518 if (PyErr_Occurred()) SWIG_fail;
42519 }
42520 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42521 return resultobj;
42522 fail:
42523 return NULL;
42524 }
42525
42526
42527 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42528 PyObject *resultobj = 0;
42529 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42530 wxColour *arg2 = 0 ;
42531 void *argp1 = 0 ;
42532 int res1 = 0 ;
42533 wxColour temp2 ;
42534 PyObject * obj0 = 0 ;
42535 PyObject * obj1 = 0 ;
42536 char * kwnames[] = {
42537 (char *) "self",(char *) "colour", NULL
42538 };
42539
42540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42542 if (!SWIG_IsOK(res1)) {
42543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42544 }
42545 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42546 {
42547 arg2 = &temp2;
42548 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42549 }
42550 {
42551 PyThreadState* __tstate = wxPyBeginAllowThreads();
42552 (arg1)->SetNormalColour((wxColour const &)*arg2);
42553 wxPyEndAllowThreads(__tstate);
42554 if (PyErr_Occurred()) SWIG_fail;
42555 }
42556 resultobj = SWIG_Py_Void();
42557 return resultobj;
42558 fail:
42559 return NULL;
42560 }
42561
42562
42563 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42564 PyObject *resultobj = 0;
42565 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42566 wxColour result;
42567 void *argp1 = 0 ;
42568 int res1 = 0 ;
42569 PyObject *swig_obj[1] ;
42570
42571 if (!args) SWIG_fail;
42572 swig_obj[0] = args;
42573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42574 if (!SWIG_IsOK(res1)) {
42575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42576 }
42577 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42578 {
42579 PyThreadState* __tstate = wxPyBeginAllowThreads();
42580 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42581 wxPyEndAllowThreads(__tstate);
42582 if (PyErr_Occurred()) SWIG_fail;
42583 }
42584 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42585 return resultobj;
42586 fail:
42587 return NULL;
42588 }
42589
42590
42591 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42592 PyObject *resultobj = 0;
42593 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42594 wxColour *arg2 = 0 ;
42595 void *argp1 = 0 ;
42596 int res1 = 0 ;
42597 wxColour temp2 ;
42598 PyObject * obj0 = 0 ;
42599 PyObject * obj1 = 0 ;
42600 char * kwnames[] = {
42601 (char *) "self",(char *) "colour", NULL
42602 };
42603
42604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42606 if (!SWIG_IsOK(res1)) {
42607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42608 }
42609 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42610 {
42611 arg2 = &temp2;
42612 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42613 }
42614 {
42615 PyThreadState* __tstate = wxPyBeginAllowThreads();
42616 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42617 wxPyEndAllowThreads(__tstate);
42618 if (PyErr_Occurred()) SWIG_fail;
42619 }
42620 resultobj = SWIG_Py_Void();
42621 return resultobj;
42622 fail:
42623 return NULL;
42624 }
42625
42626
42627 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42628 PyObject *resultobj = 0;
42629 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42630 wxString result;
42631 void *argp1 = 0 ;
42632 int res1 = 0 ;
42633 PyObject *swig_obj[1] ;
42634
42635 if (!args) SWIG_fail;
42636 swig_obj[0] = args;
42637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42638 if (!SWIG_IsOK(res1)) {
42639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42640 }
42641 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42642 {
42643 PyThreadState* __tstate = wxPyBeginAllowThreads();
42644 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42645 wxPyEndAllowThreads(__tstate);
42646 if (PyErr_Occurred()) SWIG_fail;
42647 }
42648 {
42649 #if wxUSE_UNICODE
42650 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42651 #else
42652 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42653 #endif
42654 }
42655 return resultobj;
42656 fail:
42657 return NULL;
42658 }
42659
42660
42661 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42662 PyObject *resultobj = 0;
42663 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42664 wxString *arg2 = 0 ;
42665 void *argp1 = 0 ;
42666 int res1 = 0 ;
42667 bool temp2 = false ;
42668 PyObject * obj0 = 0 ;
42669 PyObject * obj1 = 0 ;
42670 char * kwnames[] = {
42671 (char *) "self",(char *) "url", NULL
42672 };
42673
42674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42676 if (!SWIG_IsOK(res1)) {
42677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42678 }
42679 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42680 {
42681 arg2 = wxString_in_helper(obj1);
42682 if (arg2 == NULL) SWIG_fail;
42683 temp2 = true;
42684 }
42685 {
42686 PyThreadState* __tstate = wxPyBeginAllowThreads();
42687 (arg1)->SetURL((wxString const &)*arg2);
42688 wxPyEndAllowThreads(__tstate);
42689 if (PyErr_Occurred()) SWIG_fail;
42690 }
42691 resultobj = SWIG_Py_Void();
42692 {
42693 if (temp2)
42694 delete arg2;
42695 }
42696 return resultobj;
42697 fail:
42698 {
42699 if (temp2)
42700 delete arg2;
42701 }
42702 return NULL;
42703 }
42704
42705
42706 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42707 PyObject *resultobj = 0;
42708 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42709 bool arg2 = (bool) true ;
42710 void *argp1 = 0 ;
42711 int res1 = 0 ;
42712 bool val2 ;
42713 int ecode2 = 0 ;
42714 PyObject * obj0 = 0 ;
42715 PyObject * obj1 = 0 ;
42716 char * kwnames[] = {
42717 (char *) "self",(char *) "visited", NULL
42718 };
42719
42720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42722 if (!SWIG_IsOK(res1)) {
42723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42724 }
42725 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42726 if (obj1) {
42727 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42728 if (!SWIG_IsOK(ecode2)) {
42729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42730 }
42731 arg2 = static_cast< bool >(val2);
42732 }
42733 {
42734 PyThreadState* __tstate = wxPyBeginAllowThreads();
42735 (arg1)->SetVisited(arg2);
42736 wxPyEndAllowThreads(__tstate);
42737 if (PyErr_Occurred()) SWIG_fail;
42738 }
42739 resultobj = SWIG_Py_Void();
42740 return resultobj;
42741 fail:
42742 return NULL;
42743 }
42744
42745
42746 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42747 PyObject *resultobj = 0;
42748 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42749 bool result;
42750 void *argp1 = 0 ;
42751 int res1 = 0 ;
42752 PyObject *swig_obj[1] ;
42753
42754 if (!args) SWIG_fail;
42755 swig_obj[0] = args;
42756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42757 if (!SWIG_IsOK(res1)) {
42758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42759 }
42760 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42761 {
42762 PyThreadState* __tstate = wxPyBeginAllowThreads();
42763 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42764 wxPyEndAllowThreads(__tstate);
42765 if (PyErr_Occurred()) SWIG_fail;
42766 }
42767 {
42768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42769 }
42770 return resultobj;
42771 fail:
42772 return NULL;
42773 }
42774
42775
42776 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42777 PyObject *obj;
42778 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42779 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42780 return SWIG_Py_Void();
42781 }
42782
42783 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42784 return SWIG_Python_InitShadowInstance(args);
42785 }
42786
42787 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42788 PyObject *resultobj = 0;
42789 wxObject *arg1 = (wxObject *) 0 ;
42790 int arg2 ;
42791 wxString *arg3 = 0 ;
42792 wxHyperlinkEvent *result = 0 ;
42793 void *argp1 = 0 ;
42794 int res1 = 0 ;
42795 int val2 ;
42796 int ecode2 = 0 ;
42797 bool temp3 = false ;
42798 PyObject * obj0 = 0 ;
42799 PyObject * obj1 = 0 ;
42800 PyObject * obj2 = 0 ;
42801 char * kwnames[] = {
42802 (char *) "generator",(char *) "id",(char *) "url", NULL
42803 };
42804
42805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42807 if (!SWIG_IsOK(res1)) {
42808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42809 }
42810 arg1 = reinterpret_cast< wxObject * >(argp1);
42811 ecode2 = SWIG_AsVal_int(obj1, &val2);
42812 if (!SWIG_IsOK(ecode2)) {
42813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42814 }
42815 arg2 = static_cast< int >(val2);
42816 {
42817 arg3 = wxString_in_helper(obj2);
42818 if (arg3 == NULL) SWIG_fail;
42819 temp3 = true;
42820 }
42821 {
42822 PyThreadState* __tstate = wxPyBeginAllowThreads();
42823 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42824 wxPyEndAllowThreads(__tstate);
42825 if (PyErr_Occurred()) SWIG_fail;
42826 }
42827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42828 {
42829 if (temp3)
42830 delete arg3;
42831 }
42832 return resultobj;
42833 fail:
42834 {
42835 if (temp3)
42836 delete arg3;
42837 }
42838 return NULL;
42839 }
42840
42841
42842 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42843 PyObject *resultobj = 0;
42844 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42845 wxString result;
42846 void *argp1 = 0 ;
42847 int res1 = 0 ;
42848 PyObject *swig_obj[1] ;
42849
42850 if (!args) SWIG_fail;
42851 swig_obj[0] = args;
42852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42853 if (!SWIG_IsOK(res1)) {
42854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42855 }
42856 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42857 {
42858 PyThreadState* __tstate = wxPyBeginAllowThreads();
42859 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42860 wxPyEndAllowThreads(__tstate);
42861 if (PyErr_Occurred()) SWIG_fail;
42862 }
42863 {
42864 #if wxUSE_UNICODE
42865 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42866 #else
42867 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42868 #endif
42869 }
42870 return resultobj;
42871 fail:
42872 return NULL;
42873 }
42874
42875
42876 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42877 PyObject *resultobj = 0;
42878 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42879 wxString *arg2 = 0 ;
42880 void *argp1 = 0 ;
42881 int res1 = 0 ;
42882 bool temp2 = false ;
42883 PyObject * obj0 = 0 ;
42884 PyObject * obj1 = 0 ;
42885 char * kwnames[] = {
42886 (char *) "self",(char *) "url", NULL
42887 };
42888
42889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42891 if (!SWIG_IsOK(res1)) {
42892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42893 }
42894 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42895 {
42896 arg2 = wxString_in_helper(obj1);
42897 if (arg2 == NULL) SWIG_fail;
42898 temp2 = true;
42899 }
42900 {
42901 PyThreadState* __tstate = wxPyBeginAllowThreads();
42902 (arg1)->SetURL((wxString const &)*arg2);
42903 wxPyEndAllowThreads(__tstate);
42904 if (PyErr_Occurred()) SWIG_fail;
42905 }
42906 resultobj = SWIG_Py_Void();
42907 {
42908 if (temp2)
42909 delete arg2;
42910 }
42911 return resultobj;
42912 fail:
42913 {
42914 if (temp2)
42915 delete arg2;
42916 }
42917 return NULL;
42918 }
42919
42920
42921 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42922 PyObject *obj;
42923 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42924 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42925 return SWIG_Py_Void();
42926 }
42927
42928 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42929 return SWIG_Python_InitShadowInstance(args);
42930 }
42931
42932 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42933 PyObject *resultobj = 0;
42934 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42935 wxWindow *arg2 = (wxWindow *) 0 ;
42936 int arg3 ;
42937 wxString const &arg4_defvalue = wxEmptyString ;
42938 wxString *arg4 = (wxString *) &arg4_defvalue ;
42939 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42940 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42941 wxSize const &arg6_defvalue = wxDefaultSize ;
42942 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42943 long arg7 = (long) 0 ;
42944 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42945 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42946 wxString const &arg9_defvalue = wxButtonNameStr ;
42947 wxString *arg9 = (wxString *) &arg9_defvalue ;
42948 bool result;
42949 void *argp1 = 0 ;
42950 int res1 = 0 ;
42951 void *argp2 = 0 ;
42952 int res2 = 0 ;
42953 int val3 ;
42954 int ecode3 = 0 ;
42955 bool temp4 = false ;
42956 wxPoint temp5 ;
42957 wxSize temp6 ;
42958 long val7 ;
42959 int ecode7 = 0 ;
42960 void *argp8 = 0 ;
42961 int res8 = 0 ;
42962 bool temp9 = false ;
42963 PyObject * obj0 = 0 ;
42964 PyObject * obj1 = 0 ;
42965 PyObject * obj2 = 0 ;
42966 PyObject * obj3 = 0 ;
42967 PyObject * obj4 = 0 ;
42968 PyObject * obj5 = 0 ;
42969 PyObject * obj6 = 0 ;
42970 PyObject * obj7 = 0 ;
42971 PyObject * obj8 = 0 ;
42972 char * kwnames[] = {
42973 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42974 };
42975
42976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42978 if (!SWIG_IsOK(res1)) {
42979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42980 }
42981 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42982 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42983 if (!SWIG_IsOK(res2)) {
42984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42985 }
42986 arg2 = reinterpret_cast< wxWindow * >(argp2);
42987 ecode3 = SWIG_AsVal_int(obj2, &val3);
42988 if (!SWIG_IsOK(ecode3)) {
42989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42990 }
42991 arg3 = static_cast< int >(val3);
42992 if (obj3) {
42993 {
42994 arg4 = wxString_in_helper(obj3);
42995 if (arg4 == NULL) SWIG_fail;
42996 temp4 = true;
42997 }
42998 }
42999 if (obj4) {
43000 {
43001 arg5 = &temp5;
43002 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43003 }
43004 }
43005 if (obj5) {
43006 {
43007 arg6 = &temp6;
43008 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43009 }
43010 }
43011 if (obj6) {
43012 ecode7 = SWIG_AsVal_long(obj6, &val7);
43013 if (!SWIG_IsOK(ecode7)) {
43014 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
43015 }
43016 arg7 = static_cast< long >(val7);
43017 }
43018 if (obj7) {
43019 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43020 if (!SWIG_IsOK(res8)) {
43021 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
43022 }
43023 if (!argp8) {
43024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
43025 }
43026 arg8 = reinterpret_cast< wxValidator * >(argp8);
43027 }
43028 if (obj8) {
43029 {
43030 arg9 = wxString_in_helper(obj8);
43031 if (arg9 == NULL) SWIG_fail;
43032 temp9 = true;
43033 }
43034 }
43035 {
43036 PyThreadState* __tstate = wxPyBeginAllowThreads();
43037 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43038 wxPyEndAllowThreads(__tstate);
43039 if (PyErr_Occurred()) SWIG_fail;
43040 }
43041 {
43042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43043 }
43044 {
43045 if (temp4)
43046 delete arg4;
43047 }
43048 {
43049 if (temp9)
43050 delete arg9;
43051 }
43052 return resultobj;
43053 fail:
43054 {
43055 if (temp4)
43056 delete arg4;
43057 }
43058 {
43059 if (temp9)
43060 delete arg9;
43061 }
43062 return NULL;
43063 }
43064
43065
43066 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43067 PyObject *resultobj = 0;
43068 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43069 int arg2 ;
43070 void *argp1 = 0 ;
43071 int res1 = 0 ;
43072 int val2 ;
43073 int ecode2 = 0 ;
43074 PyObject * obj0 = 0 ;
43075 PyObject * obj1 = 0 ;
43076 char * kwnames[] = {
43077 (char *) "self",(char *) "newmargin", NULL
43078 };
43079
43080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
43081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43082 if (!SWIG_IsOK(res1)) {
43083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43084 }
43085 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43086 ecode2 = SWIG_AsVal_int(obj1, &val2);
43087 if (!SWIG_IsOK(ecode2)) {
43088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
43089 }
43090 arg2 = static_cast< int >(val2);
43091 {
43092 PyThreadState* __tstate = wxPyBeginAllowThreads();
43093 (arg1)->SetInternalMargin(arg2);
43094 wxPyEndAllowThreads(__tstate);
43095 if (PyErr_Occurred()) SWIG_fail;
43096 }
43097 resultobj = SWIG_Py_Void();
43098 return resultobj;
43099 fail:
43100 return NULL;
43101 }
43102
43103
43104 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43105 PyObject *resultobj = 0;
43106 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43107 int result;
43108 void *argp1 = 0 ;
43109 int res1 = 0 ;
43110 PyObject *swig_obj[1] ;
43111
43112 if (!args) SWIG_fail;
43113 swig_obj[0] = args;
43114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43115 if (!SWIG_IsOK(res1)) {
43116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43117 }
43118 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43119 {
43120 PyThreadState* __tstate = wxPyBeginAllowThreads();
43121 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
43122 wxPyEndAllowThreads(__tstate);
43123 if (PyErr_Occurred()) SWIG_fail;
43124 }
43125 resultobj = SWIG_From_int(static_cast< int >(result));
43126 return resultobj;
43127 fail:
43128 return NULL;
43129 }
43130
43131
43132 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43133 PyObject *resultobj = 0;
43134 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43135 int arg2 ;
43136 void *argp1 = 0 ;
43137 int res1 = 0 ;
43138 int val2 ;
43139 int ecode2 = 0 ;
43140 PyObject * obj0 = 0 ;
43141 PyObject * obj1 = 0 ;
43142 char * kwnames[] = {
43143 (char *) "self",(char *) "prop", NULL
43144 };
43145
43146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43148 if (!SWIG_IsOK(res1)) {
43149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43150 }
43151 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43152 ecode2 = SWIG_AsVal_int(obj1, &val2);
43153 if (!SWIG_IsOK(ecode2)) {
43154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43155 }
43156 arg2 = static_cast< int >(val2);
43157 {
43158 PyThreadState* __tstate = wxPyBeginAllowThreads();
43159 (arg1)->SetTextCtrlProportion(arg2);
43160 wxPyEndAllowThreads(__tstate);
43161 if (PyErr_Occurred()) SWIG_fail;
43162 }
43163 resultobj = SWIG_Py_Void();
43164 return resultobj;
43165 fail:
43166 return NULL;
43167 }
43168
43169
43170 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43171 PyObject *resultobj = 0;
43172 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43173 int result;
43174 void *argp1 = 0 ;
43175 int res1 = 0 ;
43176 PyObject *swig_obj[1] ;
43177
43178 if (!args) SWIG_fail;
43179 swig_obj[0] = args;
43180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43181 if (!SWIG_IsOK(res1)) {
43182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43183 }
43184 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43185 {
43186 PyThreadState* __tstate = wxPyBeginAllowThreads();
43187 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
43188 wxPyEndAllowThreads(__tstate);
43189 if (PyErr_Occurred()) SWIG_fail;
43190 }
43191 resultobj = SWIG_From_int(static_cast< int >(result));
43192 return resultobj;
43193 fail:
43194 return NULL;
43195 }
43196
43197
43198 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43199 PyObject *resultobj = 0;
43200 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43201 int arg2 ;
43202 void *argp1 = 0 ;
43203 int res1 = 0 ;
43204 int val2 ;
43205 int ecode2 = 0 ;
43206 PyObject * obj0 = 0 ;
43207 PyObject * obj1 = 0 ;
43208 char * kwnames[] = {
43209 (char *) "self",(char *) "prop", NULL
43210 };
43211
43212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43214 if (!SWIG_IsOK(res1)) {
43215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43216 }
43217 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43218 ecode2 = SWIG_AsVal_int(obj1, &val2);
43219 if (!SWIG_IsOK(ecode2)) {
43220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43221 }
43222 arg2 = static_cast< int >(val2);
43223 {
43224 PyThreadState* __tstate = wxPyBeginAllowThreads();
43225 (arg1)->SetPickerCtrlProportion(arg2);
43226 wxPyEndAllowThreads(__tstate);
43227 if (PyErr_Occurred()) SWIG_fail;
43228 }
43229 resultobj = SWIG_Py_Void();
43230 return resultobj;
43231 fail:
43232 return NULL;
43233 }
43234
43235
43236 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43237 PyObject *resultobj = 0;
43238 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43239 int result;
43240 void *argp1 = 0 ;
43241 int res1 = 0 ;
43242 PyObject *swig_obj[1] ;
43243
43244 if (!args) SWIG_fail;
43245 swig_obj[0] = args;
43246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43247 if (!SWIG_IsOK(res1)) {
43248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43249 }
43250 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43251 {
43252 PyThreadState* __tstate = wxPyBeginAllowThreads();
43253 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
43254 wxPyEndAllowThreads(__tstate);
43255 if (PyErr_Occurred()) SWIG_fail;
43256 }
43257 resultobj = SWIG_From_int(static_cast< int >(result));
43258 return resultobj;
43259 fail:
43260 return NULL;
43261 }
43262
43263
43264 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43265 PyObject *resultobj = 0;
43266 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43267 bool result;
43268 void *argp1 = 0 ;
43269 int res1 = 0 ;
43270 PyObject *swig_obj[1] ;
43271
43272 if (!args) SWIG_fail;
43273 swig_obj[0] = args;
43274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43275 if (!SWIG_IsOK(res1)) {
43276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43277 }
43278 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43279 {
43280 PyThreadState* __tstate = wxPyBeginAllowThreads();
43281 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
43282 wxPyEndAllowThreads(__tstate);
43283 if (PyErr_Occurred()) SWIG_fail;
43284 }
43285 {
43286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43287 }
43288 return resultobj;
43289 fail:
43290 return NULL;
43291 }
43292
43293
43294 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43295 PyObject *resultobj = 0;
43296 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43297 bool arg2 = (bool) true ;
43298 void *argp1 = 0 ;
43299 int res1 = 0 ;
43300 bool val2 ;
43301 int ecode2 = 0 ;
43302 PyObject * obj0 = 0 ;
43303 PyObject * obj1 = 0 ;
43304 char * kwnames[] = {
43305 (char *) "self",(char *) "grow", NULL
43306 };
43307
43308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43310 if (!SWIG_IsOK(res1)) {
43311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43312 }
43313 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43314 if (obj1) {
43315 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43316 if (!SWIG_IsOK(ecode2)) {
43317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43318 }
43319 arg2 = static_cast< bool >(val2);
43320 }
43321 {
43322 PyThreadState* __tstate = wxPyBeginAllowThreads();
43323 (arg1)->SetTextCtrlGrowable(arg2);
43324 wxPyEndAllowThreads(__tstate);
43325 if (PyErr_Occurred()) SWIG_fail;
43326 }
43327 resultobj = SWIG_Py_Void();
43328 return resultobj;
43329 fail:
43330 return NULL;
43331 }
43332
43333
43334 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43335 PyObject *resultobj = 0;
43336 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43337 bool result;
43338 void *argp1 = 0 ;
43339 int res1 = 0 ;
43340 PyObject *swig_obj[1] ;
43341
43342 if (!args) SWIG_fail;
43343 swig_obj[0] = args;
43344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43345 if (!SWIG_IsOK(res1)) {
43346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43347 }
43348 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43349 {
43350 PyThreadState* __tstate = wxPyBeginAllowThreads();
43351 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
43352 wxPyEndAllowThreads(__tstate);
43353 if (PyErr_Occurred()) SWIG_fail;
43354 }
43355 {
43356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43357 }
43358 return resultobj;
43359 fail:
43360 return NULL;
43361 }
43362
43363
43364 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43365 PyObject *resultobj = 0;
43366 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43367 bool arg2 = (bool) true ;
43368 void *argp1 = 0 ;
43369 int res1 = 0 ;
43370 bool val2 ;
43371 int ecode2 = 0 ;
43372 PyObject * obj0 = 0 ;
43373 PyObject * obj1 = 0 ;
43374 char * kwnames[] = {
43375 (char *) "self",(char *) "grow", NULL
43376 };
43377
43378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43380 if (!SWIG_IsOK(res1)) {
43381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43382 }
43383 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43384 if (obj1) {
43385 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43386 if (!SWIG_IsOK(ecode2)) {
43387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43388 }
43389 arg2 = static_cast< bool >(val2);
43390 }
43391 {
43392 PyThreadState* __tstate = wxPyBeginAllowThreads();
43393 (arg1)->SetPickerCtrlGrowable(arg2);
43394 wxPyEndAllowThreads(__tstate);
43395 if (PyErr_Occurred()) SWIG_fail;
43396 }
43397 resultobj = SWIG_Py_Void();
43398 return resultobj;
43399 fail:
43400 return NULL;
43401 }
43402
43403
43404 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43405 PyObject *resultobj = 0;
43406 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43407 bool result;
43408 void *argp1 = 0 ;
43409 int res1 = 0 ;
43410 PyObject *swig_obj[1] ;
43411
43412 if (!args) SWIG_fail;
43413 swig_obj[0] = args;
43414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43415 if (!SWIG_IsOK(res1)) {
43416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43417 }
43418 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43419 {
43420 PyThreadState* __tstate = wxPyBeginAllowThreads();
43421 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43422 wxPyEndAllowThreads(__tstate);
43423 if (PyErr_Occurred()) SWIG_fail;
43424 }
43425 {
43426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43427 }
43428 return resultobj;
43429 fail:
43430 return NULL;
43431 }
43432
43433
43434 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43435 PyObject *resultobj = 0;
43436 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43437 wxTextCtrl *result = 0 ;
43438 void *argp1 = 0 ;
43439 int res1 = 0 ;
43440 PyObject *swig_obj[1] ;
43441
43442 if (!args) SWIG_fail;
43443 swig_obj[0] = args;
43444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43445 if (!SWIG_IsOK(res1)) {
43446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43447 }
43448 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43449 {
43450 PyThreadState* __tstate = wxPyBeginAllowThreads();
43451 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43452 wxPyEndAllowThreads(__tstate);
43453 if (PyErr_Occurred()) SWIG_fail;
43454 }
43455 {
43456 resultobj = wxPyMake_wxObject(result, 0);
43457 }
43458 return resultobj;
43459 fail:
43460 return NULL;
43461 }
43462
43463
43464 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43465 PyObject *resultobj = 0;
43466 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43467 wxControl *result = 0 ;
43468 void *argp1 = 0 ;
43469 int res1 = 0 ;
43470 PyObject *swig_obj[1] ;
43471
43472 if (!args) SWIG_fail;
43473 swig_obj[0] = args;
43474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43475 if (!SWIG_IsOK(res1)) {
43476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43477 }
43478 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43479 {
43480 PyThreadState* __tstate = wxPyBeginAllowThreads();
43481 result = (wxControl *)(arg1)->GetPickerCtrl();
43482 wxPyEndAllowThreads(__tstate);
43483 if (PyErr_Occurred()) SWIG_fail;
43484 }
43485 {
43486 resultobj = wxPyMake_wxObject(result, 0);
43487 }
43488 return resultobj;
43489 fail:
43490 return NULL;
43491 }
43492
43493
43494 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43495 PyObject *obj;
43496 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43497 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43498 return SWIG_Py_Void();
43499 }
43500
43501 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43502 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43503 return 1;
43504 }
43505
43506
43507 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43508 PyObject *pyobj = 0;
43509
43510 {
43511 #if wxUSE_UNICODE
43512 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43513 #else
43514 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43515 #endif
43516 }
43517 return pyobj;
43518 }
43519
43520
43521 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43522 PyObject *resultobj = 0;
43523 wxWindow *arg1 = (wxWindow *) 0 ;
43524 int arg2 = (int) -1 ;
43525 wxColour const &arg3_defvalue = *wxBLACK ;
43526 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43527 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43528 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43529 wxSize const &arg5_defvalue = wxDefaultSize ;
43530 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43531 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43532 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43533 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43534 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43535 wxString *arg8 = (wxString *) &arg8_defvalue ;
43536 wxColourPickerCtrl *result = 0 ;
43537 void *argp1 = 0 ;
43538 int res1 = 0 ;
43539 int val2 ;
43540 int ecode2 = 0 ;
43541 wxColour temp3 ;
43542 wxPoint temp4 ;
43543 wxSize temp5 ;
43544 long val6 ;
43545 int ecode6 = 0 ;
43546 void *argp7 = 0 ;
43547 int res7 = 0 ;
43548 bool temp8 = false ;
43549 PyObject * obj0 = 0 ;
43550 PyObject * obj1 = 0 ;
43551 PyObject * obj2 = 0 ;
43552 PyObject * obj3 = 0 ;
43553 PyObject * obj4 = 0 ;
43554 PyObject * obj5 = 0 ;
43555 PyObject * obj6 = 0 ;
43556 PyObject * obj7 = 0 ;
43557 char * kwnames[] = {
43558 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43559 };
43560
43561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43563 if (!SWIG_IsOK(res1)) {
43564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43565 }
43566 arg1 = reinterpret_cast< wxWindow * >(argp1);
43567 if (obj1) {
43568 ecode2 = SWIG_AsVal_int(obj1, &val2);
43569 if (!SWIG_IsOK(ecode2)) {
43570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43571 }
43572 arg2 = static_cast< int >(val2);
43573 }
43574 if (obj2) {
43575 {
43576 arg3 = &temp3;
43577 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43578 }
43579 }
43580 if (obj3) {
43581 {
43582 arg4 = &temp4;
43583 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43584 }
43585 }
43586 if (obj4) {
43587 {
43588 arg5 = &temp5;
43589 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43590 }
43591 }
43592 if (obj5) {
43593 ecode6 = SWIG_AsVal_long(obj5, &val6);
43594 if (!SWIG_IsOK(ecode6)) {
43595 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43596 }
43597 arg6 = static_cast< long >(val6);
43598 }
43599 if (obj6) {
43600 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43601 if (!SWIG_IsOK(res7)) {
43602 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43603 }
43604 if (!argp7) {
43605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43606 }
43607 arg7 = reinterpret_cast< wxValidator * >(argp7);
43608 }
43609 if (obj7) {
43610 {
43611 arg8 = wxString_in_helper(obj7);
43612 if (arg8 == NULL) SWIG_fail;
43613 temp8 = true;
43614 }
43615 }
43616 {
43617 if (!wxPyCheckForApp()) SWIG_fail;
43618 PyThreadState* __tstate = wxPyBeginAllowThreads();
43619 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43620 wxPyEndAllowThreads(__tstate);
43621 if (PyErr_Occurred()) SWIG_fail;
43622 }
43623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43624 {
43625 if (temp8)
43626 delete arg8;
43627 }
43628 return resultobj;
43629 fail:
43630 {
43631 if (temp8)
43632 delete arg8;
43633 }
43634 return NULL;
43635 }
43636
43637
43638 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43639 PyObject *resultobj = 0;
43640 wxColourPickerCtrl *result = 0 ;
43641
43642 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43643 {
43644 if (!wxPyCheckForApp()) SWIG_fail;
43645 PyThreadState* __tstate = wxPyBeginAllowThreads();
43646 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43647 wxPyEndAllowThreads(__tstate);
43648 if (PyErr_Occurred()) SWIG_fail;
43649 }
43650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43651 return resultobj;
43652 fail:
43653 return NULL;
43654 }
43655
43656
43657 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43658 PyObject *resultobj = 0;
43659 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43660 wxWindow *arg2 = (wxWindow *) 0 ;
43661 int arg3 ;
43662 wxColour const &arg4_defvalue = *wxBLACK ;
43663 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43664 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43665 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43666 wxSize const &arg6_defvalue = wxDefaultSize ;
43667 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43668 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43669 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43670 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43671 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43672 wxString *arg9 = (wxString *) &arg9_defvalue ;
43673 bool result;
43674 void *argp1 = 0 ;
43675 int res1 = 0 ;
43676 void *argp2 = 0 ;
43677 int res2 = 0 ;
43678 int val3 ;
43679 int ecode3 = 0 ;
43680 wxColour temp4 ;
43681 wxPoint temp5 ;
43682 wxSize temp6 ;
43683 long val7 ;
43684 int ecode7 = 0 ;
43685 void *argp8 = 0 ;
43686 int res8 = 0 ;
43687 bool temp9 = false ;
43688 PyObject * obj0 = 0 ;
43689 PyObject * obj1 = 0 ;
43690 PyObject * obj2 = 0 ;
43691 PyObject * obj3 = 0 ;
43692 PyObject * obj4 = 0 ;
43693 PyObject * obj5 = 0 ;
43694 PyObject * obj6 = 0 ;
43695 PyObject * obj7 = 0 ;
43696 PyObject * obj8 = 0 ;
43697 char * kwnames[] = {
43698 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43699 };
43700
43701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43703 if (!SWIG_IsOK(res1)) {
43704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43705 }
43706 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43707 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43708 if (!SWIG_IsOK(res2)) {
43709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43710 }
43711 arg2 = reinterpret_cast< wxWindow * >(argp2);
43712 ecode3 = SWIG_AsVal_int(obj2, &val3);
43713 if (!SWIG_IsOK(ecode3)) {
43714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43715 }
43716 arg3 = static_cast< int >(val3);
43717 if (obj3) {
43718 {
43719 arg4 = &temp4;
43720 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43721 }
43722 }
43723 if (obj4) {
43724 {
43725 arg5 = &temp5;
43726 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43727 }
43728 }
43729 if (obj5) {
43730 {
43731 arg6 = &temp6;
43732 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43733 }
43734 }
43735 if (obj6) {
43736 ecode7 = SWIG_AsVal_long(obj6, &val7);
43737 if (!SWIG_IsOK(ecode7)) {
43738 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43739 }
43740 arg7 = static_cast< long >(val7);
43741 }
43742 if (obj7) {
43743 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43744 if (!SWIG_IsOK(res8)) {
43745 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43746 }
43747 if (!argp8) {
43748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43749 }
43750 arg8 = reinterpret_cast< wxValidator * >(argp8);
43751 }
43752 if (obj8) {
43753 {
43754 arg9 = wxString_in_helper(obj8);
43755 if (arg9 == NULL) SWIG_fail;
43756 temp9 = true;
43757 }
43758 }
43759 {
43760 PyThreadState* __tstate = wxPyBeginAllowThreads();
43761 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43762 wxPyEndAllowThreads(__tstate);
43763 if (PyErr_Occurred()) SWIG_fail;
43764 }
43765 {
43766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43767 }
43768 {
43769 if (temp9)
43770 delete arg9;
43771 }
43772 return resultobj;
43773 fail:
43774 {
43775 if (temp9)
43776 delete arg9;
43777 }
43778 return NULL;
43779 }
43780
43781
43782 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43783 PyObject *resultobj = 0;
43784 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43785 wxColour result;
43786 void *argp1 = 0 ;
43787 int res1 = 0 ;
43788 PyObject *swig_obj[1] ;
43789
43790 if (!args) SWIG_fail;
43791 swig_obj[0] = args;
43792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43793 if (!SWIG_IsOK(res1)) {
43794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43795 }
43796 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43797 {
43798 PyThreadState* __tstate = wxPyBeginAllowThreads();
43799 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43800 wxPyEndAllowThreads(__tstate);
43801 if (PyErr_Occurred()) SWIG_fail;
43802 }
43803 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43804 return resultobj;
43805 fail:
43806 return NULL;
43807 }
43808
43809
43810 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43811 PyObject *resultobj = 0;
43812 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43813 wxColour *arg2 = 0 ;
43814 void *argp1 = 0 ;
43815 int res1 = 0 ;
43816 wxColour temp2 ;
43817 PyObject * obj0 = 0 ;
43818 PyObject * obj1 = 0 ;
43819 char * kwnames[] = {
43820 (char *) "self",(char *) "col", NULL
43821 };
43822
43823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43825 if (!SWIG_IsOK(res1)) {
43826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43827 }
43828 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43829 {
43830 arg2 = &temp2;
43831 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43832 }
43833 {
43834 PyThreadState* __tstate = wxPyBeginAllowThreads();
43835 (arg1)->SetColour((wxColour const &)*arg2);
43836 wxPyEndAllowThreads(__tstate);
43837 if (PyErr_Occurred()) SWIG_fail;
43838 }
43839 resultobj = SWIG_Py_Void();
43840 return resultobj;
43841 fail:
43842 return NULL;
43843 }
43844
43845
43846 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43847 PyObject *obj;
43848 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43849 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43850 return SWIG_Py_Void();
43851 }
43852
43853 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43854 return SWIG_Python_InitShadowInstance(args);
43855 }
43856
43857 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43858 PyObject *resultobj = 0;
43859 wxObject *arg1 = (wxObject *) 0 ;
43860 int arg2 ;
43861 wxColour *arg3 = 0 ;
43862 wxColourPickerEvent *result = 0 ;
43863 void *argp1 = 0 ;
43864 int res1 = 0 ;
43865 int val2 ;
43866 int ecode2 = 0 ;
43867 wxColour temp3 ;
43868 PyObject * obj0 = 0 ;
43869 PyObject * obj1 = 0 ;
43870 PyObject * obj2 = 0 ;
43871 char * kwnames[] = {
43872 (char *) "generator",(char *) "id",(char *) "col", NULL
43873 };
43874
43875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43877 if (!SWIG_IsOK(res1)) {
43878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43879 }
43880 arg1 = reinterpret_cast< wxObject * >(argp1);
43881 ecode2 = SWIG_AsVal_int(obj1, &val2);
43882 if (!SWIG_IsOK(ecode2)) {
43883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43884 }
43885 arg2 = static_cast< int >(val2);
43886 {
43887 arg3 = &temp3;
43888 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43889 }
43890 {
43891 PyThreadState* __tstate = wxPyBeginAllowThreads();
43892 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43893 wxPyEndAllowThreads(__tstate);
43894 if (PyErr_Occurred()) SWIG_fail;
43895 }
43896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43897 return resultobj;
43898 fail:
43899 return NULL;
43900 }
43901
43902
43903 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43904 PyObject *resultobj = 0;
43905 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43906 wxColour result;
43907 void *argp1 = 0 ;
43908 int res1 = 0 ;
43909 PyObject *swig_obj[1] ;
43910
43911 if (!args) SWIG_fail;
43912 swig_obj[0] = args;
43913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43914 if (!SWIG_IsOK(res1)) {
43915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43916 }
43917 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43918 {
43919 PyThreadState* __tstate = wxPyBeginAllowThreads();
43920 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43921 wxPyEndAllowThreads(__tstate);
43922 if (PyErr_Occurred()) SWIG_fail;
43923 }
43924 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43925 return resultobj;
43926 fail:
43927 return NULL;
43928 }
43929
43930
43931 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43932 PyObject *resultobj = 0;
43933 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43934 wxColour *arg2 = 0 ;
43935 void *argp1 = 0 ;
43936 int res1 = 0 ;
43937 wxColour temp2 ;
43938 PyObject * obj0 = 0 ;
43939 PyObject * obj1 = 0 ;
43940 char * kwnames[] = {
43941 (char *) "self",(char *) "c", NULL
43942 };
43943
43944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43946 if (!SWIG_IsOK(res1)) {
43947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43948 }
43949 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43950 {
43951 arg2 = &temp2;
43952 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43953 }
43954 {
43955 PyThreadState* __tstate = wxPyBeginAllowThreads();
43956 (arg1)->SetColour((wxColour const &)*arg2);
43957 wxPyEndAllowThreads(__tstate);
43958 if (PyErr_Occurred()) SWIG_fail;
43959 }
43960 resultobj = SWIG_Py_Void();
43961 return resultobj;
43962 fail:
43963 return NULL;
43964 }
43965
43966
43967 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43968 PyObject *obj;
43969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43970 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43971 return SWIG_Py_Void();
43972 }
43973
43974 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43975 return SWIG_Python_InitShadowInstance(args);
43976 }
43977
43978 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43979 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43980 return 1;
43981 }
43982
43983
43984 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43985 PyObject *pyobj = 0;
43986
43987 {
43988 #if wxUSE_UNICODE
43989 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43990 #else
43991 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43992 #endif
43993 }
43994 return pyobj;
43995 }
43996
43997
43998 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43999 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
44000 return 1;
44001 }
44002
44003
44004 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
44005 PyObject *pyobj = 0;
44006
44007 {
44008 #if wxUSE_UNICODE
44009 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
44010 #else
44011 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
44012 #endif
44013 }
44014 return pyobj;
44015 }
44016
44017
44018 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
44019 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
44020 return 1;
44021 }
44022
44023
44024 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
44025 PyObject *pyobj = 0;
44026
44027 {
44028 #if wxUSE_UNICODE
44029 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
44030 #else
44031 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
44032 #endif
44033 }
44034 return pyobj;
44035 }
44036
44037
44038 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
44039 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
44040 return 1;
44041 }
44042
44043
44044 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
44045 PyObject *pyobj = 0;
44046
44047 {
44048 #if wxUSE_UNICODE
44049 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
44050 #else
44051 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
44052 #endif
44053 }
44054 return pyobj;
44055 }
44056
44057
44058 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
44059 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
44060 return 1;
44061 }
44062
44063
44064 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
44065 PyObject *pyobj = 0;
44066
44067 {
44068 #if wxUSE_UNICODE
44069 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
44070 #else
44071 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
44072 #endif
44073 }
44074 return pyobj;
44075 }
44076
44077
44078 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44079 PyObject *resultobj = 0;
44080 wxWindow *arg1 = (wxWindow *) 0 ;
44081 int arg2 = (int) -1 ;
44082 wxString const &arg3_defvalue = wxPyEmptyString ;
44083 wxString *arg3 = (wxString *) &arg3_defvalue ;
44084 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
44085 wxString *arg4 = (wxString *) &arg4_defvalue ;
44086 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44087 wxString *arg5 = (wxString *) &arg5_defvalue ;
44088 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44089 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44090 wxSize const &arg7_defvalue = wxDefaultSize ;
44091 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44092 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
44093 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44094 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44095 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
44096 wxString *arg10 = (wxString *) &arg10_defvalue ;
44097 wxFilePickerCtrl *result = 0 ;
44098 void *argp1 = 0 ;
44099 int res1 = 0 ;
44100 int val2 ;
44101 int ecode2 = 0 ;
44102 bool temp3 = false ;
44103 bool temp4 = false ;
44104 bool temp5 = false ;
44105 wxPoint temp6 ;
44106 wxSize temp7 ;
44107 long val8 ;
44108 int ecode8 = 0 ;
44109 void *argp9 = 0 ;
44110 int res9 = 0 ;
44111 bool temp10 = false ;
44112 PyObject * obj0 = 0 ;
44113 PyObject * obj1 = 0 ;
44114 PyObject * obj2 = 0 ;
44115 PyObject * obj3 = 0 ;
44116 PyObject * obj4 = 0 ;
44117 PyObject * obj5 = 0 ;
44118 PyObject * obj6 = 0 ;
44119 PyObject * obj7 = 0 ;
44120 PyObject * obj8 = 0 ;
44121 PyObject * obj9 = 0 ;
44122 char * kwnames[] = {
44123 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44124 };
44125
44126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44128 if (!SWIG_IsOK(res1)) {
44129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44130 }
44131 arg1 = reinterpret_cast< wxWindow * >(argp1);
44132 if (obj1) {
44133 ecode2 = SWIG_AsVal_int(obj1, &val2);
44134 if (!SWIG_IsOK(ecode2)) {
44135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
44136 }
44137 arg2 = static_cast< int >(val2);
44138 }
44139 if (obj2) {
44140 {
44141 arg3 = wxString_in_helper(obj2);
44142 if (arg3 == NULL) SWIG_fail;
44143 temp3 = true;
44144 }
44145 }
44146 if (obj3) {
44147 {
44148 arg4 = wxString_in_helper(obj3);
44149 if (arg4 == NULL) SWIG_fail;
44150 temp4 = true;
44151 }
44152 }
44153 if (obj4) {
44154 {
44155 arg5 = wxString_in_helper(obj4);
44156 if (arg5 == NULL) SWIG_fail;
44157 temp5 = true;
44158 }
44159 }
44160 if (obj5) {
44161 {
44162 arg6 = &temp6;
44163 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44164 }
44165 }
44166 if (obj6) {
44167 {
44168 arg7 = &temp7;
44169 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44170 }
44171 }
44172 if (obj7) {
44173 ecode8 = SWIG_AsVal_long(obj7, &val8);
44174 if (!SWIG_IsOK(ecode8)) {
44175 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
44176 }
44177 arg8 = static_cast< long >(val8);
44178 }
44179 if (obj8) {
44180 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44181 if (!SWIG_IsOK(res9)) {
44182 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44183 }
44184 if (!argp9) {
44185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44186 }
44187 arg9 = reinterpret_cast< wxValidator * >(argp9);
44188 }
44189 if (obj9) {
44190 {
44191 arg10 = wxString_in_helper(obj9);
44192 if (arg10 == NULL) SWIG_fail;
44193 temp10 = true;
44194 }
44195 }
44196 {
44197 if (!wxPyCheckForApp()) SWIG_fail;
44198 PyThreadState* __tstate = wxPyBeginAllowThreads();
44199 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);
44200 wxPyEndAllowThreads(__tstate);
44201 if (PyErr_Occurred()) SWIG_fail;
44202 }
44203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
44204 {
44205 if (temp3)
44206 delete arg3;
44207 }
44208 {
44209 if (temp4)
44210 delete arg4;
44211 }
44212 {
44213 if (temp5)
44214 delete arg5;
44215 }
44216 {
44217 if (temp10)
44218 delete arg10;
44219 }
44220 return resultobj;
44221 fail:
44222 {
44223 if (temp3)
44224 delete arg3;
44225 }
44226 {
44227 if (temp4)
44228 delete arg4;
44229 }
44230 {
44231 if (temp5)
44232 delete arg5;
44233 }
44234 {
44235 if (temp10)
44236 delete arg10;
44237 }
44238 return NULL;
44239 }
44240
44241
44242 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44243 PyObject *resultobj = 0;
44244 wxFilePickerCtrl *result = 0 ;
44245
44246 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
44247 {
44248 if (!wxPyCheckForApp()) SWIG_fail;
44249 PyThreadState* __tstate = wxPyBeginAllowThreads();
44250 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
44251 wxPyEndAllowThreads(__tstate);
44252 if (PyErr_Occurred()) SWIG_fail;
44253 }
44254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
44255 return resultobj;
44256 fail:
44257 return NULL;
44258 }
44259
44260
44261 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44262 PyObject *resultobj = 0;
44263 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44264 wxWindow *arg2 = (wxWindow *) 0 ;
44265 int arg3 = (int) -1 ;
44266 wxString const &arg4_defvalue = wxPyEmptyString ;
44267 wxString *arg4 = (wxString *) &arg4_defvalue ;
44268 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
44269 wxString *arg5 = (wxString *) &arg5_defvalue ;
44270 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44271 wxString *arg6 = (wxString *) &arg6_defvalue ;
44272 wxPoint const &arg7_defvalue = wxDefaultPosition ;
44273 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
44274 wxSize const &arg8_defvalue = wxDefaultSize ;
44275 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
44276 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
44277 wxValidator const &arg10_defvalue = wxDefaultValidator ;
44278 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
44279 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
44280 wxString *arg11 = (wxString *) &arg11_defvalue ;
44281 bool result;
44282 void *argp1 = 0 ;
44283 int res1 = 0 ;
44284 void *argp2 = 0 ;
44285 int res2 = 0 ;
44286 int val3 ;
44287 int ecode3 = 0 ;
44288 bool temp4 = false ;
44289 bool temp5 = false ;
44290 bool temp6 = false ;
44291 wxPoint temp7 ;
44292 wxSize temp8 ;
44293 long val9 ;
44294 int ecode9 = 0 ;
44295 void *argp10 = 0 ;
44296 int res10 = 0 ;
44297 bool temp11 = false ;
44298 PyObject * obj0 = 0 ;
44299 PyObject * obj1 = 0 ;
44300 PyObject * obj2 = 0 ;
44301 PyObject * obj3 = 0 ;
44302 PyObject * obj4 = 0 ;
44303 PyObject * obj5 = 0 ;
44304 PyObject * obj6 = 0 ;
44305 PyObject * obj7 = 0 ;
44306 PyObject * obj8 = 0 ;
44307 PyObject * obj9 = 0 ;
44308 PyObject * obj10 = 0 ;
44309 char * kwnames[] = {
44310 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44311 };
44312
44313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
44314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44315 if (!SWIG_IsOK(res1)) {
44316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44317 }
44318 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44319 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44320 if (!SWIG_IsOK(res2)) {
44321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44322 }
44323 arg2 = reinterpret_cast< wxWindow * >(argp2);
44324 if (obj2) {
44325 ecode3 = SWIG_AsVal_int(obj2, &val3);
44326 if (!SWIG_IsOK(ecode3)) {
44327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44328 }
44329 arg3 = static_cast< int >(val3);
44330 }
44331 if (obj3) {
44332 {
44333 arg4 = wxString_in_helper(obj3);
44334 if (arg4 == NULL) SWIG_fail;
44335 temp4 = true;
44336 }
44337 }
44338 if (obj4) {
44339 {
44340 arg5 = wxString_in_helper(obj4);
44341 if (arg5 == NULL) SWIG_fail;
44342 temp5 = true;
44343 }
44344 }
44345 if (obj5) {
44346 {
44347 arg6 = wxString_in_helper(obj5);
44348 if (arg6 == NULL) SWIG_fail;
44349 temp6 = true;
44350 }
44351 }
44352 if (obj6) {
44353 {
44354 arg7 = &temp7;
44355 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
44356 }
44357 }
44358 if (obj7) {
44359 {
44360 arg8 = &temp8;
44361 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
44362 }
44363 }
44364 if (obj8) {
44365 ecode9 = SWIG_AsVal_long(obj8, &val9);
44366 if (!SWIG_IsOK(ecode9)) {
44367 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
44368 }
44369 arg9 = static_cast< long >(val9);
44370 }
44371 if (obj9) {
44372 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
44373 if (!SWIG_IsOK(res10)) {
44374 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44375 }
44376 if (!argp10) {
44377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44378 }
44379 arg10 = reinterpret_cast< wxValidator * >(argp10);
44380 }
44381 if (obj10) {
44382 {
44383 arg11 = wxString_in_helper(obj10);
44384 if (arg11 == NULL) SWIG_fail;
44385 temp11 = true;
44386 }
44387 }
44388 {
44389 PyThreadState* __tstate = wxPyBeginAllowThreads();
44390 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);
44391 wxPyEndAllowThreads(__tstate);
44392 if (PyErr_Occurred()) SWIG_fail;
44393 }
44394 {
44395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44396 }
44397 {
44398 if (temp4)
44399 delete arg4;
44400 }
44401 {
44402 if (temp5)
44403 delete arg5;
44404 }
44405 {
44406 if (temp6)
44407 delete arg6;
44408 }
44409 {
44410 if (temp11)
44411 delete arg11;
44412 }
44413 return resultobj;
44414 fail:
44415 {
44416 if (temp4)
44417 delete arg4;
44418 }
44419 {
44420 if (temp5)
44421 delete arg5;
44422 }
44423 {
44424 if (temp6)
44425 delete arg6;
44426 }
44427 {
44428 if (temp11)
44429 delete arg11;
44430 }
44431 return NULL;
44432 }
44433
44434
44435 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44436 PyObject *resultobj = 0;
44437 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44438 wxString result;
44439 void *argp1 = 0 ;
44440 int res1 = 0 ;
44441 PyObject *swig_obj[1] ;
44442
44443 if (!args) SWIG_fail;
44444 swig_obj[0] = args;
44445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44446 if (!SWIG_IsOK(res1)) {
44447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44448 }
44449 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44450 {
44451 PyThreadState* __tstate = wxPyBeginAllowThreads();
44452 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44453 wxPyEndAllowThreads(__tstate);
44454 if (PyErr_Occurred()) SWIG_fail;
44455 }
44456 {
44457 #if wxUSE_UNICODE
44458 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44459 #else
44460 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44461 #endif
44462 }
44463 return resultobj;
44464 fail:
44465 return NULL;
44466 }
44467
44468
44469 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44470 PyObject *resultobj = 0;
44471 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44472 wxString *arg2 = 0 ;
44473 void *argp1 = 0 ;
44474 int res1 = 0 ;
44475 bool temp2 = false ;
44476 PyObject * obj0 = 0 ;
44477 PyObject * obj1 = 0 ;
44478 char * kwnames[] = {
44479 (char *) "self",(char *) "str", NULL
44480 };
44481
44482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44484 if (!SWIG_IsOK(res1)) {
44485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44486 }
44487 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44488 {
44489 arg2 = wxString_in_helper(obj1);
44490 if (arg2 == NULL) SWIG_fail;
44491 temp2 = true;
44492 }
44493 {
44494 PyThreadState* __tstate = wxPyBeginAllowThreads();
44495 (arg1)->SetPath((wxString const &)*arg2);
44496 wxPyEndAllowThreads(__tstate);
44497 if (PyErr_Occurred()) SWIG_fail;
44498 }
44499 resultobj = SWIG_Py_Void();
44500 {
44501 if (temp2)
44502 delete arg2;
44503 }
44504 return resultobj;
44505 fail:
44506 {
44507 if (temp2)
44508 delete arg2;
44509 }
44510 return NULL;
44511 }
44512
44513
44514 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44515 PyObject *resultobj = 0;
44516 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44517 wxString *arg2 = 0 ;
44518 bool result;
44519 void *argp1 = 0 ;
44520 int res1 = 0 ;
44521 bool temp2 = false ;
44522 PyObject * obj0 = 0 ;
44523 PyObject * obj1 = 0 ;
44524 char * kwnames[] = {
44525 (char *) "self",(char *) "path", NULL
44526 };
44527
44528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44530 if (!SWIG_IsOK(res1)) {
44531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44532 }
44533 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44534 {
44535 arg2 = wxString_in_helper(obj1);
44536 if (arg2 == NULL) SWIG_fail;
44537 temp2 = true;
44538 }
44539 {
44540 PyThreadState* __tstate = wxPyBeginAllowThreads();
44541 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44542 wxPyEndAllowThreads(__tstate);
44543 if (PyErr_Occurred()) SWIG_fail;
44544 }
44545 {
44546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44547 }
44548 {
44549 if (temp2)
44550 delete arg2;
44551 }
44552 return resultobj;
44553 fail:
44554 {
44555 if (temp2)
44556 delete arg2;
44557 }
44558 return NULL;
44559 }
44560
44561
44562 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44563 PyObject *resultobj = 0;
44564 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44565 wxString result;
44566 void *argp1 = 0 ;
44567 int res1 = 0 ;
44568 PyObject *swig_obj[1] ;
44569
44570 if (!args) SWIG_fail;
44571 swig_obj[0] = args;
44572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44573 if (!SWIG_IsOK(res1)) {
44574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44575 }
44576 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44577 {
44578 PyThreadState* __tstate = wxPyBeginAllowThreads();
44579 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44580 wxPyEndAllowThreads(__tstate);
44581 if (PyErr_Occurred()) SWIG_fail;
44582 }
44583 {
44584 #if wxUSE_UNICODE
44585 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44586 #else
44587 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44588 #endif
44589 }
44590 return resultobj;
44591 fail:
44592 return NULL;
44593 }
44594
44595
44596 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44597 PyObject *obj;
44598 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44599 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44600 return SWIG_Py_Void();
44601 }
44602
44603 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44604 return SWIG_Python_InitShadowInstance(args);
44605 }
44606
44607 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44608 PyObject *resultobj = 0;
44609 wxWindow *arg1 = (wxWindow *) 0 ;
44610 int arg2 = (int) -1 ;
44611 wxString const &arg3_defvalue = wxPyEmptyString ;
44612 wxString *arg3 = (wxString *) &arg3_defvalue ;
44613 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44614 wxString *arg4 = (wxString *) &arg4_defvalue ;
44615 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44616 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44617 wxSize const &arg6_defvalue = wxDefaultSize ;
44618 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44619 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44620 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44621 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44622 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44623 wxString *arg9 = (wxString *) &arg9_defvalue ;
44624 wxDirPickerCtrl *result = 0 ;
44625 void *argp1 = 0 ;
44626 int res1 = 0 ;
44627 int val2 ;
44628 int ecode2 = 0 ;
44629 bool temp3 = false ;
44630 bool temp4 = false ;
44631 wxPoint temp5 ;
44632 wxSize temp6 ;
44633 long val7 ;
44634 int ecode7 = 0 ;
44635 void *argp8 = 0 ;
44636 int res8 = 0 ;
44637 bool temp9 = false ;
44638 PyObject * obj0 = 0 ;
44639 PyObject * obj1 = 0 ;
44640 PyObject * obj2 = 0 ;
44641 PyObject * obj3 = 0 ;
44642 PyObject * obj4 = 0 ;
44643 PyObject * obj5 = 0 ;
44644 PyObject * obj6 = 0 ;
44645 PyObject * obj7 = 0 ;
44646 PyObject * obj8 = 0 ;
44647 char * kwnames[] = {
44648 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44649 };
44650
44651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44653 if (!SWIG_IsOK(res1)) {
44654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44655 }
44656 arg1 = reinterpret_cast< wxWindow * >(argp1);
44657 if (obj1) {
44658 ecode2 = SWIG_AsVal_int(obj1, &val2);
44659 if (!SWIG_IsOK(ecode2)) {
44660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44661 }
44662 arg2 = static_cast< int >(val2);
44663 }
44664 if (obj2) {
44665 {
44666 arg3 = wxString_in_helper(obj2);
44667 if (arg3 == NULL) SWIG_fail;
44668 temp3 = true;
44669 }
44670 }
44671 if (obj3) {
44672 {
44673 arg4 = wxString_in_helper(obj3);
44674 if (arg4 == NULL) SWIG_fail;
44675 temp4 = true;
44676 }
44677 }
44678 if (obj4) {
44679 {
44680 arg5 = &temp5;
44681 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44682 }
44683 }
44684 if (obj5) {
44685 {
44686 arg6 = &temp6;
44687 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44688 }
44689 }
44690 if (obj6) {
44691 ecode7 = SWIG_AsVal_long(obj6, &val7);
44692 if (!SWIG_IsOK(ecode7)) {
44693 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44694 }
44695 arg7 = static_cast< long >(val7);
44696 }
44697 if (obj7) {
44698 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44699 if (!SWIG_IsOK(res8)) {
44700 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44701 }
44702 if (!argp8) {
44703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44704 }
44705 arg8 = reinterpret_cast< wxValidator * >(argp8);
44706 }
44707 if (obj8) {
44708 {
44709 arg9 = wxString_in_helper(obj8);
44710 if (arg9 == NULL) SWIG_fail;
44711 temp9 = true;
44712 }
44713 }
44714 {
44715 if (!wxPyCheckForApp()) SWIG_fail;
44716 PyThreadState* __tstate = wxPyBeginAllowThreads();
44717 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);
44718 wxPyEndAllowThreads(__tstate);
44719 if (PyErr_Occurred()) SWIG_fail;
44720 }
44721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44722 {
44723 if (temp3)
44724 delete arg3;
44725 }
44726 {
44727 if (temp4)
44728 delete arg4;
44729 }
44730 {
44731 if (temp9)
44732 delete arg9;
44733 }
44734 return resultobj;
44735 fail:
44736 {
44737 if (temp3)
44738 delete arg3;
44739 }
44740 {
44741 if (temp4)
44742 delete arg4;
44743 }
44744 {
44745 if (temp9)
44746 delete arg9;
44747 }
44748 return NULL;
44749 }
44750
44751
44752 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44753 PyObject *resultobj = 0;
44754 wxDirPickerCtrl *result = 0 ;
44755
44756 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44757 {
44758 if (!wxPyCheckForApp()) SWIG_fail;
44759 PyThreadState* __tstate = wxPyBeginAllowThreads();
44760 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44761 wxPyEndAllowThreads(__tstate);
44762 if (PyErr_Occurred()) SWIG_fail;
44763 }
44764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44765 return resultobj;
44766 fail:
44767 return NULL;
44768 }
44769
44770
44771 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44772 PyObject *resultobj = 0;
44773 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44774 wxWindow *arg2 = (wxWindow *) 0 ;
44775 int arg3 = (int) -1 ;
44776 wxString const &arg4_defvalue = wxPyEmptyString ;
44777 wxString *arg4 = (wxString *) &arg4_defvalue ;
44778 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44779 wxString *arg5 = (wxString *) &arg5_defvalue ;
44780 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44781 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44782 wxSize const &arg7_defvalue = wxDefaultSize ;
44783 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44784 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44785 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44786 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44787 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44788 wxString *arg10 = (wxString *) &arg10_defvalue ;
44789 bool result;
44790 void *argp1 = 0 ;
44791 int res1 = 0 ;
44792 void *argp2 = 0 ;
44793 int res2 = 0 ;
44794 int val3 ;
44795 int ecode3 = 0 ;
44796 bool temp4 = false ;
44797 bool temp5 = false ;
44798 wxPoint temp6 ;
44799 wxSize temp7 ;
44800 long val8 ;
44801 int ecode8 = 0 ;
44802 void *argp9 = 0 ;
44803 int res9 = 0 ;
44804 bool temp10 = false ;
44805 PyObject * obj0 = 0 ;
44806 PyObject * obj1 = 0 ;
44807 PyObject * obj2 = 0 ;
44808 PyObject * obj3 = 0 ;
44809 PyObject * obj4 = 0 ;
44810 PyObject * obj5 = 0 ;
44811 PyObject * obj6 = 0 ;
44812 PyObject * obj7 = 0 ;
44813 PyObject * obj8 = 0 ;
44814 PyObject * obj9 = 0 ;
44815 char * kwnames[] = {
44816 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44817 };
44818
44819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44821 if (!SWIG_IsOK(res1)) {
44822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44823 }
44824 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44825 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44826 if (!SWIG_IsOK(res2)) {
44827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44828 }
44829 arg2 = reinterpret_cast< wxWindow * >(argp2);
44830 if (obj2) {
44831 ecode3 = SWIG_AsVal_int(obj2, &val3);
44832 if (!SWIG_IsOK(ecode3)) {
44833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44834 }
44835 arg3 = static_cast< int >(val3);
44836 }
44837 if (obj3) {
44838 {
44839 arg4 = wxString_in_helper(obj3);
44840 if (arg4 == NULL) SWIG_fail;
44841 temp4 = true;
44842 }
44843 }
44844 if (obj4) {
44845 {
44846 arg5 = wxString_in_helper(obj4);
44847 if (arg5 == NULL) SWIG_fail;
44848 temp5 = true;
44849 }
44850 }
44851 if (obj5) {
44852 {
44853 arg6 = &temp6;
44854 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44855 }
44856 }
44857 if (obj6) {
44858 {
44859 arg7 = &temp7;
44860 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44861 }
44862 }
44863 if (obj7) {
44864 ecode8 = SWIG_AsVal_long(obj7, &val8);
44865 if (!SWIG_IsOK(ecode8)) {
44866 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44867 }
44868 arg8 = static_cast< long >(val8);
44869 }
44870 if (obj8) {
44871 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44872 if (!SWIG_IsOK(res9)) {
44873 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44874 }
44875 if (!argp9) {
44876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44877 }
44878 arg9 = reinterpret_cast< wxValidator * >(argp9);
44879 }
44880 if (obj9) {
44881 {
44882 arg10 = wxString_in_helper(obj9);
44883 if (arg10 == NULL) SWIG_fail;
44884 temp10 = true;
44885 }
44886 }
44887 {
44888 PyThreadState* __tstate = wxPyBeginAllowThreads();
44889 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);
44890 wxPyEndAllowThreads(__tstate);
44891 if (PyErr_Occurred()) SWIG_fail;
44892 }
44893 {
44894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44895 }
44896 {
44897 if (temp4)
44898 delete arg4;
44899 }
44900 {
44901 if (temp5)
44902 delete arg5;
44903 }
44904 {
44905 if (temp10)
44906 delete arg10;
44907 }
44908 return resultobj;
44909 fail:
44910 {
44911 if (temp4)
44912 delete arg4;
44913 }
44914 {
44915 if (temp5)
44916 delete arg5;
44917 }
44918 {
44919 if (temp10)
44920 delete arg10;
44921 }
44922 return NULL;
44923 }
44924
44925
44926 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44927 PyObject *resultobj = 0;
44928 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44929 wxString result;
44930 void *argp1 = 0 ;
44931 int res1 = 0 ;
44932 PyObject *swig_obj[1] ;
44933
44934 if (!args) SWIG_fail;
44935 swig_obj[0] = args;
44936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44937 if (!SWIG_IsOK(res1)) {
44938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44939 }
44940 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44941 {
44942 PyThreadState* __tstate = wxPyBeginAllowThreads();
44943 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44944 wxPyEndAllowThreads(__tstate);
44945 if (PyErr_Occurred()) SWIG_fail;
44946 }
44947 {
44948 #if wxUSE_UNICODE
44949 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44950 #else
44951 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44952 #endif
44953 }
44954 return resultobj;
44955 fail:
44956 return NULL;
44957 }
44958
44959
44960 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44961 PyObject *resultobj = 0;
44962 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44963 wxString *arg2 = 0 ;
44964 void *argp1 = 0 ;
44965 int res1 = 0 ;
44966 bool temp2 = false ;
44967 PyObject * obj0 = 0 ;
44968 PyObject * obj1 = 0 ;
44969 char * kwnames[] = {
44970 (char *) "self",(char *) "str", NULL
44971 };
44972
44973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44975 if (!SWIG_IsOK(res1)) {
44976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44977 }
44978 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44979 {
44980 arg2 = wxString_in_helper(obj1);
44981 if (arg2 == NULL) SWIG_fail;
44982 temp2 = true;
44983 }
44984 {
44985 PyThreadState* __tstate = wxPyBeginAllowThreads();
44986 (arg1)->SetPath((wxString const &)*arg2);
44987 wxPyEndAllowThreads(__tstate);
44988 if (PyErr_Occurred()) SWIG_fail;
44989 }
44990 resultobj = SWIG_Py_Void();
44991 {
44992 if (temp2)
44993 delete arg2;
44994 }
44995 return resultobj;
44996 fail:
44997 {
44998 if (temp2)
44999 delete arg2;
45000 }
45001 return NULL;
45002 }
45003
45004
45005 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45006 PyObject *resultobj = 0;
45007 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
45008 wxString *arg2 = 0 ;
45009 bool result;
45010 void *argp1 = 0 ;
45011 int res1 = 0 ;
45012 bool temp2 = false ;
45013 PyObject * obj0 = 0 ;
45014 PyObject * obj1 = 0 ;
45015 char * kwnames[] = {
45016 (char *) "self",(char *) "path", NULL
45017 };
45018
45019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
45020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45021 if (!SWIG_IsOK(res1)) {
45022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
45023 }
45024 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45025 {
45026 arg2 = wxString_in_helper(obj1);
45027 if (arg2 == NULL) SWIG_fail;
45028 temp2 = true;
45029 }
45030 {
45031 PyThreadState* __tstate = wxPyBeginAllowThreads();
45032 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
45033 wxPyEndAllowThreads(__tstate);
45034 if (PyErr_Occurred()) SWIG_fail;
45035 }
45036 {
45037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45038 }
45039 {
45040 if (temp2)
45041 delete arg2;
45042 }
45043 return resultobj;
45044 fail:
45045 {
45046 if (temp2)
45047 delete arg2;
45048 }
45049 return NULL;
45050 }
45051
45052
45053 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45054 PyObject *resultobj = 0;
45055 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
45056 wxString result;
45057 void *argp1 = 0 ;
45058 int res1 = 0 ;
45059 PyObject *swig_obj[1] ;
45060
45061 if (!args) SWIG_fail;
45062 swig_obj[0] = args;
45063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45064 if (!SWIG_IsOK(res1)) {
45065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
45066 }
45067 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45068 {
45069 PyThreadState* __tstate = wxPyBeginAllowThreads();
45070 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
45071 wxPyEndAllowThreads(__tstate);
45072 if (PyErr_Occurred()) SWIG_fail;
45073 }
45074 {
45075 #if wxUSE_UNICODE
45076 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45077 #else
45078 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45079 #endif
45080 }
45081 return resultobj;
45082 fail:
45083 return NULL;
45084 }
45085
45086
45087 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45088 PyObject *obj;
45089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45090 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
45091 return SWIG_Py_Void();
45092 }
45093
45094 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45095 return SWIG_Python_InitShadowInstance(args);
45096 }
45097
45098 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45099 PyObject *resultobj = 0;
45100 wxEventType arg1 ;
45101 wxObject *arg2 = (wxObject *) 0 ;
45102 int arg3 ;
45103 wxString *arg4 = 0 ;
45104 wxFileDirPickerEvent *result = 0 ;
45105 int val1 ;
45106 int ecode1 = 0 ;
45107 void *argp2 = 0 ;
45108 int res2 = 0 ;
45109 int val3 ;
45110 int ecode3 = 0 ;
45111 bool temp4 = false ;
45112 PyObject * obj0 = 0 ;
45113 PyObject * obj1 = 0 ;
45114 PyObject * obj2 = 0 ;
45115 PyObject * obj3 = 0 ;
45116 char * kwnames[] = {
45117 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
45118 };
45119
45120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
45121 ecode1 = SWIG_AsVal_int(obj0, &val1);
45122 if (!SWIG_IsOK(ecode1)) {
45123 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
45124 }
45125 arg1 = static_cast< wxEventType >(val1);
45126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
45127 if (!SWIG_IsOK(res2)) {
45128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
45129 }
45130 arg2 = reinterpret_cast< wxObject * >(argp2);
45131 ecode3 = SWIG_AsVal_int(obj2, &val3);
45132 if (!SWIG_IsOK(ecode3)) {
45133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
45134 }
45135 arg3 = static_cast< int >(val3);
45136 {
45137 arg4 = wxString_in_helper(obj3);
45138 if (arg4 == NULL) SWIG_fail;
45139 temp4 = true;
45140 }
45141 {
45142 PyThreadState* __tstate = wxPyBeginAllowThreads();
45143 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
45144 wxPyEndAllowThreads(__tstate);
45145 if (PyErr_Occurred()) SWIG_fail;
45146 }
45147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
45148 {
45149 if (temp4)
45150 delete arg4;
45151 }
45152 return resultobj;
45153 fail:
45154 {
45155 if (temp4)
45156 delete arg4;
45157 }
45158 return NULL;
45159 }
45160
45161
45162 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45163 PyObject *resultobj = 0;
45164 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45165 wxString result;
45166 void *argp1 = 0 ;
45167 int res1 = 0 ;
45168 PyObject *swig_obj[1] ;
45169
45170 if (!args) SWIG_fail;
45171 swig_obj[0] = args;
45172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45173 if (!SWIG_IsOK(res1)) {
45174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
45175 }
45176 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45177 {
45178 PyThreadState* __tstate = wxPyBeginAllowThreads();
45179 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
45180 wxPyEndAllowThreads(__tstate);
45181 if (PyErr_Occurred()) SWIG_fail;
45182 }
45183 {
45184 #if wxUSE_UNICODE
45185 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45186 #else
45187 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45188 #endif
45189 }
45190 return resultobj;
45191 fail:
45192 return NULL;
45193 }
45194
45195
45196 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45197 PyObject *resultobj = 0;
45198 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45199 wxString *arg2 = 0 ;
45200 void *argp1 = 0 ;
45201 int res1 = 0 ;
45202 bool temp2 = false ;
45203 PyObject * obj0 = 0 ;
45204 PyObject * obj1 = 0 ;
45205 char * kwnames[] = {
45206 (char *) "self",(char *) "p", NULL
45207 };
45208
45209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
45210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45211 if (!SWIG_IsOK(res1)) {
45212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
45213 }
45214 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45215 {
45216 arg2 = wxString_in_helper(obj1);
45217 if (arg2 == NULL) SWIG_fail;
45218 temp2 = true;
45219 }
45220 {
45221 PyThreadState* __tstate = wxPyBeginAllowThreads();
45222 (arg1)->SetPath((wxString const &)*arg2);
45223 wxPyEndAllowThreads(__tstate);
45224 if (PyErr_Occurred()) SWIG_fail;
45225 }
45226 resultobj = SWIG_Py_Void();
45227 {
45228 if (temp2)
45229 delete arg2;
45230 }
45231 return resultobj;
45232 fail:
45233 {
45234 if (temp2)
45235 delete arg2;
45236 }
45237 return NULL;
45238 }
45239
45240
45241 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45242 PyObject *obj;
45243 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45244 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
45245 return SWIG_Py_Void();
45246 }
45247
45248 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45249 return SWIG_Python_InitShadowInstance(args);
45250 }
45251
45252 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
45253 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
45254 return 1;
45255 }
45256
45257
45258 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
45259 PyObject *pyobj = 0;
45260
45261 {
45262 #if wxUSE_UNICODE
45263 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45264 #else
45265 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45266 #endif
45267 }
45268 return pyobj;
45269 }
45270
45271
45272 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45273 PyObject *resultobj = 0;
45274 wxWindow *arg1 = (wxWindow *) 0 ;
45275 int arg2 = (int) -1 ;
45276 wxFont const &arg3_defvalue = wxNullFont ;
45277 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
45278 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45279 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45280 wxSize const &arg5_defvalue = wxDefaultSize ;
45281 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45282 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
45283 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45284 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45285 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
45286 wxString *arg8 = (wxString *) &arg8_defvalue ;
45287 wxFontPickerCtrl *result = 0 ;
45288 void *argp1 = 0 ;
45289 int res1 = 0 ;
45290 int val2 ;
45291 int ecode2 = 0 ;
45292 void *argp3 = 0 ;
45293 int res3 = 0 ;
45294 wxPoint temp4 ;
45295 wxSize temp5 ;
45296 long val6 ;
45297 int ecode6 = 0 ;
45298 void *argp7 = 0 ;
45299 int res7 = 0 ;
45300 bool temp8 = false ;
45301 PyObject * obj0 = 0 ;
45302 PyObject * obj1 = 0 ;
45303 PyObject * obj2 = 0 ;
45304 PyObject * obj3 = 0 ;
45305 PyObject * obj4 = 0 ;
45306 PyObject * obj5 = 0 ;
45307 PyObject * obj6 = 0 ;
45308 PyObject * obj7 = 0 ;
45309 char * kwnames[] = {
45310 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45311 };
45312
45313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45315 if (!SWIG_IsOK(res1)) {
45316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
45317 }
45318 arg1 = reinterpret_cast< wxWindow * >(argp1);
45319 if (obj1) {
45320 ecode2 = SWIG_AsVal_int(obj1, &val2);
45321 if (!SWIG_IsOK(ecode2)) {
45322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
45323 }
45324 arg2 = static_cast< int >(val2);
45325 }
45326 if (obj2) {
45327 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45328 if (!SWIG_IsOK(res3)) {
45329 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45330 }
45331 if (!argp3) {
45332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45333 }
45334 arg3 = reinterpret_cast< wxFont * >(argp3);
45335 }
45336 if (obj3) {
45337 {
45338 arg4 = &temp4;
45339 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45340 }
45341 }
45342 if (obj4) {
45343 {
45344 arg5 = &temp5;
45345 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45346 }
45347 }
45348 if (obj5) {
45349 ecode6 = SWIG_AsVal_long(obj5, &val6);
45350 if (!SWIG_IsOK(ecode6)) {
45351 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
45352 }
45353 arg6 = static_cast< long >(val6);
45354 }
45355 if (obj6) {
45356 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45357 if (!SWIG_IsOK(res7)) {
45358 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45359 }
45360 if (!argp7) {
45361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45362 }
45363 arg7 = reinterpret_cast< wxValidator * >(argp7);
45364 }
45365 if (obj7) {
45366 {
45367 arg8 = wxString_in_helper(obj7);
45368 if (arg8 == NULL) SWIG_fail;
45369 temp8 = true;
45370 }
45371 }
45372 {
45373 if (!wxPyCheckForApp()) SWIG_fail;
45374 PyThreadState* __tstate = wxPyBeginAllowThreads();
45375 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45376 wxPyEndAllowThreads(__tstate);
45377 if (PyErr_Occurred()) SWIG_fail;
45378 }
45379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
45380 {
45381 if (temp8)
45382 delete arg8;
45383 }
45384 return resultobj;
45385 fail:
45386 {
45387 if (temp8)
45388 delete arg8;
45389 }
45390 return NULL;
45391 }
45392
45393
45394 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45395 PyObject *resultobj = 0;
45396 wxFontPickerCtrl *result = 0 ;
45397
45398 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
45399 {
45400 if (!wxPyCheckForApp()) SWIG_fail;
45401 PyThreadState* __tstate = wxPyBeginAllowThreads();
45402 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
45403 wxPyEndAllowThreads(__tstate);
45404 if (PyErr_Occurred()) SWIG_fail;
45405 }
45406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
45407 return resultobj;
45408 fail:
45409 return NULL;
45410 }
45411
45412
45413 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45414 PyObject *resultobj = 0;
45415 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45416 wxWindow *arg2 = (wxWindow *) 0 ;
45417 int arg3 = (int) -1 ;
45418 wxFont const &arg4_defvalue = wxNullFont ;
45419 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45420 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45421 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45422 wxSize const &arg6_defvalue = wxDefaultSize ;
45423 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45424 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45425 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45426 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45427 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45428 wxString *arg9 = (wxString *) &arg9_defvalue ;
45429 bool result;
45430 void *argp1 = 0 ;
45431 int res1 = 0 ;
45432 void *argp2 = 0 ;
45433 int res2 = 0 ;
45434 int val3 ;
45435 int ecode3 = 0 ;
45436 void *argp4 = 0 ;
45437 int res4 = 0 ;
45438 wxPoint temp5 ;
45439 wxSize temp6 ;
45440 long val7 ;
45441 int ecode7 = 0 ;
45442 void *argp8 = 0 ;
45443 int res8 = 0 ;
45444 bool temp9 = false ;
45445 PyObject * obj0 = 0 ;
45446 PyObject * obj1 = 0 ;
45447 PyObject * obj2 = 0 ;
45448 PyObject * obj3 = 0 ;
45449 PyObject * obj4 = 0 ;
45450 PyObject * obj5 = 0 ;
45451 PyObject * obj6 = 0 ;
45452 PyObject * obj7 = 0 ;
45453 PyObject * obj8 = 0 ;
45454 char * kwnames[] = {
45455 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45456 };
45457
45458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45460 if (!SWIG_IsOK(res1)) {
45461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45462 }
45463 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45464 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45465 if (!SWIG_IsOK(res2)) {
45466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45467 }
45468 arg2 = reinterpret_cast< wxWindow * >(argp2);
45469 if (obj2) {
45470 ecode3 = SWIG_AsVal_int(obj2, &val3);
45471 if (!SWIG_IsOK(ecode3)) {
45472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45473 }
45474 arg3 = static_cast< int >(val3);
45475 }
45476 if (obj3) {
45477 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45478 if (!SWIG_IsOK(res4)) {
45479 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45480 }
45481 if (!argp4) {
45482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45483 }
45484 arg4 = reinterpret_cast< wxFont * >(argp4);
45485 }
45486 if (obj4) {
45487 {
45488 arg5 = &temp5;
45489 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45490 }
45491 }
45492 if (obj5) {
45493 {
45494 arg6 = &temp6;
45495 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45496 }
45497 }
45498 if (obj6) {
45499 ecode7 = SWIG_AsVal_long(obj6, &val7);
45500 if (!SWIG_IsOK(ecode7)) {
45501 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45502 }
45503 arg7 = static_cast< long >(val7);
45504 }
45505 if (obj7) {
45506 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45507 if (!SWIG_IsOK(res8)) {
45508 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45509 }
45510 if (!argp8) {
45511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45512 }
45513 arg8 = reinterpret_cast< wxValidator * >(argp8);
45514 }
45515 if (obj8) {
45516 {
45517 arg9 = wxString_in_helper(obj8);
45518 if (arg9 == NULL) SWIG_fail;
45519 temp9 = true;
45520 }
45521 }
45522 {
45523 PyThreadState* __tstate = wxPyBeginAllowThreads();
45524 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45525 wxPyEndAllowThreads(__tstate);
45526 if (PyErr_Occurred()) SWIG_fail;
45527 }
45528 {
45529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45530 }
45531 {
45532 if (temp9)
45533 delete arg9;
45534 }
45535 return resultobj;
45536 fail:
45537 {
45538 if (temp9)
45539 delete arg9;
45540 }
45541 return NULL;
45542 }
45543
45544
45545 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45546 PyObject *resultobj = 0;
45547 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45548 wxFont result;
45549 void *argp1 = 0 ;
45550 int res1 = 0 ;
45551 PyObject *swig_obj[1] ;
45552
45553 if (!args) SWIG_fail;
45554 swig_obj[0] = args;
45555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45556 if (!SWIG_IsOK(res1)) {
45557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45558 }
45559 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45560 {
45561 PyThreadState* __tstate = wxPyBeginAllowThreads();
45562 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45563 wxPyEndAllowThreads(__tstate);
45564 if (PyErr_Occurred()) SWIG_fail;
45565 }
45566 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45567 return resultobj;
45568 fail:
45569 return NULL;
45570 }
45571
45572
45573 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45574 PyObject *resultobj = 0;
45575 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45576 wxFont *arg2 = 0 ;
45577 void *argp1 = 0 ;
45578 int res1 = 0 ;
45579 void *argp2 = 0 ;
45580 int res2 = 0 ;
45581 PyObject * obj0 = 0 ;
45582 PyObject * obj1 = 0 ;
45583 char * kwnames[] = {
45584 (char *) "self",(char *) "f", NULL
45585 };
45586
45587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45589 if (!SWIG_IsOK(res1)) {
45590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45591 }
45592 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45594 if (!SWIG_IsOK(res2)) {
45595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45596 }
45597 if (!argp2) {
45598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45599 }
45600 arg2 = reinterpret_cast< wxFont * >(argp2);
45601 {
45602 PyThreadState* __tstate = wxPyBeginAllowThreads();
45603 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45604 wxPyEndAllowThreads(__tstate);
45605 if (PyErr_Occurred()) SWIG_fail;
45606 }
45607 resultobj = SWIG_Py_Void();
45608 return resultobj;
45609 fail:
45610 return NULL;
45611 }
45612
45613
45614 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45615 PyObject *resultobj = 0;
45616 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45617 unsigned int arg2 ;
45618 void *argp1 = 0 ;
45619 int res1 = 0 ;
45620 unsigned int val2 ;
45621 int ecode2 = 0 ;
45622 PyObject * obj0 = 0 ;
45623 PyObject * obj1 = 0 ;
45624 char * kwnames[] = {
45625 (char *) "self",(char *) "max", NULL
45626 };
45627
45628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45630 if (!SWIG_IsOK(res1)) {
45631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45632 }
45633 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45634 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45635 if (!SWIG_IsOK(ecode2)) {
45636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45637 }
45638 arg2 = static_cast< unsigned int >(val2);
45639 {
45640 PyThreadState* __tstate = wxPyBeginAllowThreads();
45641 (arg1)->SetMaxPointSize(arg2);
45642 wxPyEndAllowThreads(__tstate);
45643 if (PyErr_Occurred()) SWIG_fail;
45644 }
45645 resultobj = SWIG_Py_Void();
45646 return resultobj;
45647 fail:
45648 return NULL;
45649 }
45650
45651
45652 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45653 PyObject *resultobj = 0;
45654 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45655 unsigned int result;
45656 void *argp1 = 0 ;
45657 int res1 = 0 ;
45658 PyObject *swig_obj[1] ;
45659
45660 if (!args) SWIG_fail;
45661 swig_obj[0] = args;
45662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45663 if (!SWIG_IsOK(res1)) {
45664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45665 }
45666 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45667 {
45668 PyThreadState* __tstate = wxPyBeginAllowThreads();
45669 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45670 wxPyEndAllowThreads(__tstate);
45671 if (PyErr_Occurred()) SWIG_fail;
45672 }
45673 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45674 return resultobj;
45675 fail:
45676 return NULL;
45677 }
45678
45679
45680 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45681 PyObject *obj;
45682 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45683 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45684 return SWIG_Py_Void();
45685 }
45686
45687 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45688 return SWIG_Python_InitShadowInstance(args);
45689 }
45690
45691 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45692 PyObject *resultobj = 0;
45693 wxObject *arg1 = (wxObject *) 0 ;
45694 int arg2 ;
45695 wxFont *arg3 = 0 ;
45696 wxFontPickerEvent *result = 0 ;
45697 void *argp1 = 0 ;
45698 int res1 = 0 ;
45699 int val2 ;
45700 int ecode2 = 0 ;
45701 void *argp3 = 0 ;
45702 int res3 = 0 ;
45703 PyObject * obj0 = 0 ;
45704 PyObject * obj1 = 0 ;
45705 PyObject * obj2 = 0 ;
45706 char * kwnames[] = {
45707 (char *) "generator",(char *) "id",(char *) "f", NULL
45708 };
45709
45710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45712 if (!SWIG_IsOK(res1)) {
45713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45714 }
45715 arg1 = reinterpret_cast< wxObject * >(argp1);
45716 ecode2 = SWIG_AsVal_int(obj1, &val2);
45717 if (!SWIG_IsOK(ecode2)) {
45718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45719 }
45720 arg2 = static_cast< int >(val2);
45721 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45722 if (!SWIG_IsOK(res3)) {
45723 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45724 }
45725 if (!argp3) {
45726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45727 }
45728 arg3 = reinterpret_cast< wxFont * >(argp3);
45729 {
45730 PyThreadState* __tstate = wxPyBeginAllowThreads();
45731 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45732 wxPyEndAllowThreads(__tstate);
45733 if (PyErr_Occurred()) SWIG_fail;
45734 }
45735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45736 return resultobj;
45737 fail:
45738 return NULL;
45739 }
45740
45741
45742 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45743 PyObject *resultobj = 0;
45744 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45745 wxFont result;
45746 void *argp1 = 0 ;
45747 int res1 = 0 ;
45748 PyObject *swig_obj[1] ;
45749
45750 if (!args) SWIG_fail;
45751 swig_obj[0] = args;
45752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45753 if (!SWIG_IsOK(res1)) {
45754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45755 }
45756 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45757 {
45758 PyThreadState* __tstate = wxPyBeginAllowThreads();
45759 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45760 wxPyEndAllowThreads(__tstate);
45761 if (PyErr_Occurred()) SWIG_fail;
45762 }
45763 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45764 return resultobj;
45765 fail:
45766 return NULL;
45767 }
45768
45769
45770 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45771 PyObject *resultobj = 0;
45772 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45773 wxFont *arg2 = 0 ;
45774 void *argp1 = 0 ;
45775 int res1 = 0 ;
45776 void *argp2 = 0 ;
45777 int res2 = 0 ;
45778 PyObject * obj0 = 0 ;
45779 PyObject * obj1 = 0 ;
45780 char * kwnames[] = {
45781 (char *) "self",(char *) "c", NULL
45782 };
45783
45784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45786 if (!SWIG_IsOK(res1)) {
45787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45788 }
45789 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45790 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45791 if (!SWIG_IsOK(res2)) {
45792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45793 }
45794 if (!argp2) {
45795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45796 }
45797 arg2 = reinterpret_cast< wxFont * >(argp2);
45798 {
45799 PyThreadState* __tstate = wxPyBeginAllowThreads();
45800 (arg1)->SetFont((wxFont const &)*arg2);
45801 wxPyEndAllowThreads(__tstate);
45802 if (PyErr_Occurred()) SWIG_fail;
45803 }
45804 resultobj = SWIG_Py_Void();
45805 return resultobj;
45806 fail:
45807 return NULL;
45808 }
45809
45810
45811 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45812 PyObject *obj;
45813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45814 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45815 return SWIG_Py_Void();
45816 }
45817
45818 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45819 return SWIG_Python_InitShadowInstance(args);
45820 }
45821
45822 SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45823 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45824 return 1;
45825 }
45826
45827
45828 SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45829 PyObject *pyobj = 0;
45830
45831 {
45832 #if wxUSE_UNICODE
45833 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45834 #else
45835 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45836 #endif
45837 }
45838 return pyobj;
45839 }
45840
45841
45842 SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45843 PyObject *resultobj = 0;
45844 wxWindow *arg1 = (wxWindow *) 0 ;
45845 int arg2 = (int) -1 ;
45846 wxString const &arg3_defvalue = wxPyEmptyString ;
45847 wxString *arg3 = (wxString *) &arg3_defvalue ;
45848 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45849 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45850 wxSize const &arg5_defvalue = wxDefaultSize ;
45851 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45852 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45853 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45854 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45855 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45856 wxString *arg8 = (wxString *) &arg8_defvalue ;
45857 wxCollapsiblePane *result = 0 ;
45858 void *argp1 = 0 ;
45859 int res1 = 0 ;
45860 int val2 ;
45861 int ecode2 = 0 ;
45862 bool temp3 = false ;
45863 wxPoint temp4 ;
45864 wxSize temp5 ;
45865 long val6 ;
45866 int ecode6 = 0 ;
45867 void *argp7 = 0 ;
45868 int res7 = 0 ;
45869 bool temp8 = false ;
45870 PyObject * obj0 = 0 ;
45871 PyObject * obj1 = 0 ;
45872 PyObject * obj2 = 0 ;
45873 PyObject * obj3 = 0 ;
45874 PyObject * obj4 = 0 ;
45875 PyObject * obj5 = 0 ;
45876 PyObject * obj6 = 0 ;
45877 PyObject * obj7 = 0 ;
45878 char * kwnames[] = {
45879 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45880 };
45881
45882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45884 if (!SWIG_IsOK(res1)) {
45885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45886 }
45887 arg1 = reinterpret_cast< wxWindow * >(argp1);
45888 if (obj1) {
45889 ecode2 = SWIG_AsVal_int(obj1, &val2);
45890 if (!SWIG_IsOK(ecode2)) {
45891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45892 }
45893 arg2 = static_cast< int >(val2);
45894 }
45895 if (obj2) {
45896 {
45897 arg3 = wxString_in_helper(obj2);
45898 if (arg3 == NULL) SWIG_fail;
45899 temp3 = true;
45900 }
45901 }
45902 if (obj3) {
45903 {
45904 arg4 = &temp4;
45905 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45906 }
45907 }
45908 if (obj4) {
45909 {
45910 arg5 = &temp5;
45911 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45912 }
45913 }
45914 if (obj5) {
45915 ecode6 = SWIG_AsVal_long(obj5, &val6);
45916 if (!SWIG_IsOK(ecode6)) {
45917 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45918 }
45919 arg6 = static_cast< long >(val6);
45920 }
45921 if (obj6) {
45922 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45923 if (!SWIG_IsOK(res7)) {
45924 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45925 }
45926 if (!argp7) {
45927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45928 }
45929 arg7 = reinterpret_cast< wxValidator * >(argp7);
45930 }
45931 if (obj7) {
45932 {
45933 arg8 = wxString_in_helper(obj7);
45934 if (arg8 == NULL) SWIG_fail;
45935 temp8 = true;
45936 }
45937 }
45938 {
45939 if (!wxPyCheckForApp()) SWIG_fail;
45940 PyThreadState* __tstate = wxPyBeginAllowThreads();
45941 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45942 wxPyEndAllowThreads(__tstate);
45943 if (PyErr_Occurred()) SWIG_fail;
45944 }
45945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45946 {
45947 if (temp3)
45948 delete arg3;
45949 }
45950 {
45951 if (temp8)
45952 delete arg8;
45953 }
45954 return resultobj;
45955 fail:
45956 {
45957 if (temp3)
45958 delete arg3;
45959 }
45960 {
45961 if (temp8)
45962 delete arg8;
45963 }
45964 return NULL;
45965 }
45966
45967
45968 SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45969 PyObject *resultobj = 0;
45970 wxCollapsiblePane *result = 0 ;
45971
45972 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45973 {
45974 if (!wxPyCheckForApp()) SWIG_fail;
45975 PyThreadState* __tstate = wxPyBeginAllowThreads();
45976 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45977 wxPyEndAllowThreads(__tstate);
45978 if (PyErr_Occurred()) SWIG_fail;
45979 }
45980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45981 return resultobj;
45982 fail:
45983 return NULL;
45984 }
45985
45986
45987 SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45988 PyObject *resultobj = 0;
45989 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45990 wxWindow *arg2 = (wxWindow *) 0 ;
45991 int arg3 = (int) -1 ;
45992 wxString const &arg4_defvalue = wxPyEmptyString ;
45993 wxString *arg4 = (wxString *) &arg4_defvalue ;
45994 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45995 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45996 wxSize const &arg6_defvalue = wxDefaultSize ;
45997 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45998 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45999 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46000 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46001 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
46002 wxString *arg9 = (wxString *) &arg9_defvalue ;
46003 bool result;
46004 void *argp1 = 0 ;
46005 int res1 = 0 ;
46006 void *argp2 = 0 ;
46007 int res2 = 0 ;
46008 int val3 ;
46009 int ecode3 = 0 ;
46010 bool temp4 = false ;
46011 wxPoint temp5 ;
46012 wxSize temp6 ;
46013 long val7 ;
46014 int ecode7 = 0 ;
46015 void *argp8 = 0 ;
46016 int res8 = 0 ;
46017 bool temp9 = false ;
46018 PyObject * obj0 = 0 ;
46019 PyObject * obj1 = 0 ;
46020 PyObject * obj2 = 0 ;
46021 PyObject * obj3 = 0 ;
46022 PyObject * obj4 = 0 ;
46023 PyObject * obj5 = 0 ;
46024 PyObject * obj6 = 0 ;
46025 PyObject * obj7 = 0 ;
46026 PyObject * obj8 = 0 ;
46027 char * kwnames[] = {
46028 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
46029 };
46030
46031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46033 if (!SWIG_IsOK(res1)) {
46034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46035 }
46036 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46037 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46038 if (!SWIG_IsOK(res2)) {
46039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46040 }
46041 arg2 = reinterpret_cast< wxWindow * >(argp2);
46042 if (obj2) {
46043 ecode3 = SWIG_AsVal_int(obj2, &val3);
46044 if (!SWIG_IsOK(ecode3)) {
46045 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
46046 }
46047 arg3 = static_cast< int >(val3);
46048 }
46049 if (obj3) {
46050 {
46051 arg4 = wxString_in_helper(obj3);
46052 if (arg4 == NULL) SWIG_fail;
46053 temp4 = true;
46054 }
46055 }
46056 if (obj4) {
46057 {
46058 arg5 = &temp5;
46059 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46060 }
46061 }
46062 if (obj5) {
46063 {
46064 arg6 = &temp6;
46065 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46066 }
46067 }
46068 if (obj6) {
46069 ecode7 = SWIG_AsVal_long(obj6, &val7);
46070 if (!SWIG_IsOK(ecode7)) {
46071 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
46072 }
46073 arg7 = static_cast< long >(val7);
46074 }
46075 if (obj7) {
46076 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46077 if (!SWIG_IsOK(res8)) {
46078 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46079 }
46080 if (!argp8) {
46081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46082 }
46083 arg8 = reinterpret_cast< wxValidator * >(argp8);
46084 }
46085 if (obj8) {
46086 {
46087 arg9 = wxString_in_helper(obj8);
46088 if (arg9 == NULL) SWIG_fail;
46089 temp9 = true;
46090 }
46091 }
46092 {
46093 PyThreadState* __tstate = wxPyBeginAllowThreads();
46094 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46095 wxPyEndAllowThreads(__tstate);
46096 if (PyErr_Occurred()) SWIG_fail;
46097 }
46098 {
46099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46100 }
46101 {
46102 if (temp4)
46103 delete arg4;
46104 }
46105 {
46106 if (temp9)
46107 delete arg9;
46108 }
46109 return resultobj;
46110 fail:
46111 {
46112 if (temp4)
46113 delete arg4;
46114 }
46115 {
46116 if (temp9)
46117 delete arg9;
46118 }
46119 return NULL;
46120 }
46121
46122
46123 SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46124 PyObject *resultobj = 0;
46125 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46126 bool arg2 = (bool) true ;
46127 void *argp1 = 0 ;
46128 int res1 = 0 ;
46129 bool val2 ;
46130 int ecode2 = 0 ;
46131 PyObject * obj0 = 0 ;
46132 PyObject * obj1 = 0 ;
46133 char * kwnames[] = {
46134 (char *) "self",(char *) "collapse", NULL
46135 };
46136
46137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
46138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46139 if (!SWIG_IsOK(res1)) {
46140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46141 }
46142 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46143 if (obj1) {
46144 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46145 if (!SWIG_IsOK(ecode2)) {
46146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
46147 }
46148 arg2 = static_cast< bool >(val2);
46149 }
46150 {
46151 PyThreadState* __tstate = wxPyBeginAllowThreads();
46152 (arg1)->Collapse(arg2);
46153 wxPyEndAllowThreads(__tstate);
46154 if (PyErr_Occurred()) SWIG_fail;
46155 }
46156 resultobj = SWIG_Py_Void();
46157 return resultobj;
46158 fail:
46159 return NULL;
46160 }
46161
46162
46163 SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46164 PyObject *resultobj = 0;
46165 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46166 void *argp1 = 0 ;
46167 int res1 = 0 ;
46168 PyObject *swig_obj[1] ;
46169
46170 if (!args) SWIG_fail;
46171 swig_obj[0] = args;
46172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46173 if (!SWIG_IsOK(res1)) {
46174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46175 }
46176 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46177 {
46178 PyThreadState* __tstate = wxPyBeginAllowThreads();
46179 (arg1)->Expand();
46180 wxPyEndAllowThreads(__tstate);
46181 if (PyErr_Occurred()) SWIG_fail;
46182 }
46183 resultobj = SWIG_Py_Void();
46184 return resultobj;
46185 fail:
46186 return NULL;
46187 }
46188
46189
46190 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46191 PyObject *resultobj = 0;
46192 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46193 bool result;
46194 void *argp1 = 0 ;
46195 int res1 = 0 ;
46196 PyObject *swig_obj[1] ;
46197
46198 if (!args) SWIG_fail;
46199 swig_obj[0] = args;
46200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46201 if (!SWIG_IsOK(res1)) {
46202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46203 }
46204 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46205 {
46206 PyThreadState* __tstate = wxPyBeginAllowThreads();
46207 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
46208 wxPyEndAllowThreads(__tstate);
46209 if (PyErr_Occurred()) SWIG_fail;
46210 }
46211 {
46212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46213 }
46214 return resultobj;
46215 fail:
46216 return NULL;
46217 }
46218
46219
46220 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46221 PyObject *resultobj = 0;
46222 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46223 bool result;
46224 void *argp1 = 0 ;
46225 int res1 = 0 ;
46226 PyObject *swig_obj[1] ;
46227
46228 if (!args) SWIG_fail;
46229 swig_obj[0] = args;
46230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46231 if (!SWIG_IsOK(res1)) {
46232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46233 }
46234 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46235 {
46236 PyThreadState* __tstate = wxPyBeginAllowThreads();
46237 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
46238 wxPyEndAllowThreads(__tstate);
46239 if (PyErr_Occurred()) SWIG_fail;
46240 }
46241 {
46242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46243 }
46244 return resultobj;
46245 fail:
46246 return NULL;
46247 }
46248
46249
46250 SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46251 PyObject *resultobj = 0;
46252 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46253 wxWindow *result = 0 ;
46254 void *argp1 = 0 ;
46255 int res1 = 0 ;
46256 PyObject *swig_obj[1] ;
46257
46258 if (!args) SWIG_fail;
46259 swig_obj[0] = args;
46260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46261 if (!SWIG_IsOK(res1)) {
46262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46263 }
46264 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46265 {
46266 PyThreadState* __tstate = wxPyBeginAllowThreads();
46267 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
46268 wxPyEndAllowThreads(__tstate);
46269 if (PyErr_Occurred()) SWIG_fail;
46270 }
46271 {
46272 resultobj = wxPyMake_wxObject(result, 0);
46273 }
46274 return resultobj;
46275 fail:
46276 return NULL;
46277 }
46278
46279
46280 SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46281 PyObject *obj;
46282 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46283 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
46284 return SWIG_Py_Void();
46285 }
46286
46287 SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46288 return SWIG_Python_InitShadowInstance(args);
46289 }
46290
46291 SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46292 PyObject *resultobj = 0;
46293 wxObject *arg1 = (wxObject *) 0 ;
46294 int arg2 ;
46295 bool arg3 ;
46296 wxCollapsiblePaneEvent *result = 0 ;
46297 void *argp1 = 0 ;
46298 int res1 = 0 ;
46299 int val2 ;
46300 int ecode2 = 0 ;
46301 bool val3 ;
46302 int ecode3 = 0 ;
46303 PyObject * obj0 = 0 ;
46304 PyObject * obj1 = 0 ;
46305 PyObject * obj2 = 0 ;
46306 char * kwnames[] = {
46307 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
46308 };
46309
46310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
46311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
46312 if (!SWIG_IsOK(res1)) {
46313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
46314 }
46315 arg1 = reinterpret_cast< wxObject * >(argp1);
46316 ecode2 = SWIG_AsVal_int(obj1, &val2);
46317 if (!SWIG_IsOK(ecode2)) {
46318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
46319 }
46320 arg2 = static_cast< int >(val2);
46321 ecode3 = SWIG_AsVal_bool(obj2, &val3);
46322 if (!SWIG_IsOK(ecode3)) {
46323 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
46324 }
46325 arg3 = static_cast< bool >(val3);
46326 {
46327 PyThreadState* __tstate = wxPyBeginAllowThreads();
46328 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
46329 wxPyEndAllowThreads(__tstate);
46330 if (PyErr_Occurred()) SWIG_fail;
46331 }
46332 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
46333 return resultobj;
46334 fail:
46335 return NULL;
46336 }
46337
46338
46339 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46340 PyObject *resultobj = 0;
46341 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46342 bool result;
46343 void *argp1 = 0 ;
46344 int res1 = 0 ;
46345 PyObject *swig_obj[1] ;
46346
46347 if (!args) SWIG_fail;
46348 swig_obj[0] = args;
46349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46350 if (!SWIG_IsOK(res1)) {
46351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
46352 }
46353 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46354 {
46355 PyThreadState* __tstate = wxPyBeginAllowThreads();
46356 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
46357 wxPyEndAllowThreads(__tstate);
46358 if (PyErr_Occurred()) SWIG_fail;
46359 }
46360 {
46361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46362 }
46363 return resultobj;
46364 fail:
46365 return NULL;
46366 }
46367
46368
46369 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46370 PyObject *resultobj = 0;
46371 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46372 bool arg2 ;
46373 void *argp1 = 0 ;
46374 int res1 = 0 ;
46375 bool val2 ;
46376 int ecode2 = 0 ;
46377 PyObject * obj0 = 0 ;
46378 PyObject * obj1 = 0 ;
46379 char * kwnames[] = {
46380 (char *) "self",(char *) "c", NULL
46381 };
46382
46383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
46384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46385 if (!SWIG_IsOK(res1)) {
46386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
46387 }
46388 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46389 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46390 if (!SWIG_IsOK(ecode2)) {
46391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
46392 }
46393 arg2 = static_cast< bool >(val2);
46394 {
46395 PyThreadState* __tstate = wxPyBeginAllowThreads();
46396 (arg1)->SetCollapsed(arg2);
46397 wxPyEndAllowThreads(__tstate);
46398 if (PyErr_Occurred()) SWIG_fail;
46399 }
46400 resultobj = SWIG_Py_Void();
46401 return resultobj;
46402 fail:
46403 return NULL;
46404 }
46405
46406
46407 SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46408 PyObject *obj;
46409 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46410 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
46411 return SWIG_Py_Void();
46412 }
46413
46414 SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46415 return SWIG_Python_InitShadowInstance(args);
46416 }
46417
46418 SWIGINTERN int SearchCtrlNameStr_set(PyObject *) {
46419 SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only.");
46420 return 1;
46421 }
46422
46423
46424 SWIGINTERN PyObject *SearchCtrlNameStr_get(void) {
46425 PyObject *pyobj = 0;
46426
46427 {
46428 #if wxUSE_UNICODE
46429 pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46430 #else
46431 pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46432 #endif
46433 }
46434 return pyobj;
46435 }
46436
46437
46438 SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46439 PyObject *resultobj = 0;
46440 wxWindow *arg1 = (wxWindow *) 0 ;
46441 int arg2 = (int) -1 ;
46442 wxString const &arg3_defvalue = wxEmptyString ;
46443 wxString *arg3 = (wxString *) &arg3_defvalue ;
46444 wxPoint const &arg4_defvalue = wxDefaultPosition ;
46445 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
46446 wxSize const &arg5_defvalue = wxDefaultSize ;
46447 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
46448 long arg6 = (long) 0 ;
46449 wxValidator const &arg7_defvalue = wxDefaultValidator ;
46450 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
46451 wxString const &arg8_defvalue = wxPySearchCtrlNameStr ;
46452 wxString *arg8 = (wxString *) &arg8_defvalue ;
46453 wxSearchCtrl *result = 0 ;
46454 void *argp1 = 0 ;
46455 int res1 = 0 ;
46456 int val2 ;
46457 int ecode2 = 0 ;
46458 bool temp3 = false ;
46459 wxPoint temp4 ;
46460 wxSize temp5 ;
46461 long val6 ;
46462 int ecode6 = 0 ;
46463 void *argp7 = 0 ;
46464 int res7 = 0 ;
46465 bool temp8 = false ;
46466 PyObject * obj0 = 0 ;
46467 PyObject * obj1 = 0 ;
46468 PyObject * obj2 = 0 ;
46469 PyObject * obj3 = 0 ;
46470 PyObject * obj4 = 0 ;
46471 PyObject * obj5 = 0 ;
46472 PyObject * obj6 = 0 ;
46473 PyObject * obj7 = 0 ;
46474 char * kwnames[] = {
46475 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46476 };
46477
46478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46480 if (!SWIG_IsOK(res1)) {
46481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
46482 }
46483 arg1 = reinterpret_cast< wxWindow * >(argp1);
46484 if (obj1) {
46485 ecode2 = SWIG_AsVal_int(obj1, &val2);
46486 if (!SWIG_IsOK(ecode2)) {
46487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'");
46488 }
46489 arg2 = static_cast< int >(val2);
46490 }
46491 if (obj2) {
46492 {
46493 arg3 = wxString_in_helper(obj2);
46494 if (arg3 == NULL) SWIG_fail;
46495 temp3 = true;
46496 }
46497 }
46498 if (obj3) {
46499 {
46500 arg4 = &temp4;
46501 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46502 }
46503 }
46504 if (obj4) {
46505 {
46506 arg5 = &temp5;
46507 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46508 }
46509 }
46510 if (obj5) {
46511 ecode6 = SWIG_AsVal_long(obj5, &val6);
46512 if (!SWIG_IsOK(ecode6)) {
46513 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'");
46514 }
46515 arg6 = static_cast< long >(val6);
46516 }
46517 if (obj6) {
46518 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46519 if (!SWIG_IsOK(res7)) {
46520 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46521 }
46522 if (!argp7) {
46523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46524 }
46525 arg7 = reinterpret_cast< wxValidator * >(argp7);
46526 }
46527 if (obj7) {
46528 {
46529 arg8 = wxString_in_helper(obj7);
46530 if (arg8 == NULL) SWIG_fail;
46531 temp8 = true;
46532 }
46533 }
46534 {
46535 if (!wxPyCheckForApp()) SWIG_fail;
46536 PyThreadState* __tstate = wxPyBeginAllowThreads();
46537 result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46538 wxPyEndAllowThreads(__tstate);
46539 if (PyErr_Occurred()) SWIG_fail;
46540 }
46541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 );
46542 {
46543 if (temp3)
46544 delete arg3;
46545 }
46546 {
46547 if (temp8)
46548 delete arg8;
46549 }
46550 return resultobj;
46551 fail:
46552 {
46553 if (temp3)
46554 delete arg3;
46555 }
46556 {
46557 if (temp8)
46558 delete arg8;
46559 }
46560 return NULL;
46561 }
46562
46563
46564 SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46565 PyObject *resultobj = 0;
46566 wxSearchCtrl *result = 0 ;
46567
46568 if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail;
46569 {
46570 if (!wxPyCheckForApp()) SWIG_fail;
46571 PyThreadState* __tstate = wxPyBeginAllowThreads();
46572 result = (wxSearchCtrl *)new wxSearchCtrl();
46573 wxPyEndAllowThreads(__tstate);
46574 if (PyErr_Occurred()) SWIG_fail;
46575 }
46576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 );
46577 return resultobj;
46578 fail:
46579 return NULL;
46580 }
46581
46582
46583 SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46584 PyObject *resultobj = 0;
46585 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46586 wxWindow *arg2 = (wxWindow *) 0 ;
46587 int arg3 = (int) -1 ;
46588 wxString const &arg4_defvalue = wxEmptyString ;
46589 wxString *arg4 = (wxString *) &arg4_defvalue ;
46590 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46591 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46592 wxSize const &arg6_defvalue = wxDefaultSize ;
46593 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46594 long arg7 = (long) 0 ;
46595 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46596 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46597 wxString const &arg9_defvalue = wxPySearchCtrlNameStr ;
46598 wxString *arg9 = (wxString *) &arg9_defvalue ;
46599 bool result;
46600 void *argp1 = 0 ;
46601 int res1 = 0 ;
46602 void *argp2 = 0 ;
46603 int res2 = 0 ;
46604 int val3 ;
46605 int ecode3 = 0 ;
46606 bool temp4 = false ;
46607 wxPoint temp5 ;
46608 wxSize temp6 ;
46609 long val7 ;
46610 int ecode7 = 0 ;
46611 void *argp8 = 0 ;
46612 int res8 = 0 ;
46613 bool temp9 = false ;
46614 PyObject * obj0 = 0 ;
46615 PyObject * obj1 = 0 ;
46616 PyObject * obj2 = 0 ;
46617 PyObject * obj3 = 0 ;
46618 PyObject * obj4 = 0 ;
46619 PyObject * obj5 = 0 ;
46620 PyObject * obj6 = 0 ;
46621 PyObject * obj7 = 0 ;
46622 PyObject * obj8 = 0 ;
46623 char * kwnames[] = {
46624 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46625 };
46626
46627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46629 if (!SWIG_IsOK(res1)) {
46630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46631 }
46632 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46634 if (!SWIG_IsOK(res2)) {
46635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46636 }
46637 arg2 = reinterpret_cast< wxWindow * >(argp2);
46638 if (obj2) {
46639 ecode3 = SWIG_AsVal_int(obj2, &val3);
46640 if (!SWIG_IsOK(ecode3)) {
46641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'");
46642 }
46643 arg3 = static_cast< int >(val3);
46644 }
46645 if (obj3) {
46646 {
46647 arg4 = wxString_in_helper(obj3);
46648 if (arg4 == NULL) SWIG_fail;
46649 temp4 = true;
46650 }
46651 }
46652 if (obj4) {
46653 {
46654 arg5 = &temp5;
46655 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46656 }
46657 }
46658 if (obj5) {
46659 {
46660 arg6 = &temp6;
46661 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46662 }
46663 }
46664 if (obj6) {
46665 ecode7 = SWIG_AsVal_long(obj6, &val7);
46666 if (!SWIG_IsOK(ecode7)) {
46667 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'");
46668 }
46669 arg7 = static_cast< long >(val7);
46670 }
46671 if (obj7) {
46672 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46673 if (!SWIG_IsOK(res8)) {
46674 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46675 }
46676 if (!argp8) {
46677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46678 }
46679 arg8 = reinterpret_cast< wxValidator * >(argp8);
46680 }
46681 if (obj8) {
46682 {
46683 arg9 = wxString_in_helper(obj8);
46684 if (arg9 == NULL) SWIG_fail;
46685 temp9 = true;
46686 }
46687 }
46688 {
46689 PyThreadState* __tstate = wxPyBeginAllowThreads();
46690 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46691 wxPyEndAllowThreads(__tstate);
46692 if (PyErr_Occurred()) SWIG_fail;
46693 }
46694 {
46695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46696 }
46697 {
46698 if (temp4)
46699 delete arg4;
46700 }
46701 {
46702 if (temp9)
46703 delete arg9;
46704 }
46705 return resultobj;
46706 fail:
46707 {
46708 if (temp4)
46709 delete arg4;
46710 }
46711 {
46712 if (temp9)
46713 delete arg9;
46714 }
46715 return NULL;
46716 }
46717
46718
46719 SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46720 PyObject *resultobj = 0;
46721 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46722 wxMenu *arg2 = (wxMenu *) 0 ;
46723 void *argp1 = 0 ;
46724 int res1 = 0 ;
46725 void *argp2 = 0 ;
46726 int res2 = 0 ;
46727 PyObject * obj0 = 0 ;
46728 PyObject * obj1 = 0 ;
46729 char * kwnames[] = {
46730 (char *) "self",(char *) "menu", NULL
46731 };
46732
46733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46735 if (!SWIG_IsOK(res1)) {
46736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46737 }
46738 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46739 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46740 if (!SWIG_IsOK(res2)) {
46741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46742 }
46743 arg2 = reinterpret_cast< wxMenu * >(argp2);
46744 {
46745 PyThreadState* __tstate = wxPyBeginAllowThreads();
46746 (arg1)->SetMenu(arg2);
46747 wxPyEndAllowThreads(__tstate);
46748 if (PyErr_Occurred()) SWIG_fail;
46749 }
46750 resultobj = SWIG_Py_Void();
46751 return resultobj;
46752 fail:
46753 return NULL;
46754 }
46755
46756
46757 SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46758 PyObject *resultobj = 0;
46759 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46760 wxMenu *result = 0 ;
46761 void *argp1 = 0 ;
46762 int res1 = 0 ;
46763 PyObject *swig_obj[1] ;
46764
46765 if (!args) SWIG_fail;
46766 swig_obj[0] = args;
46767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46768 if (!SWIG_IsOK(res1)) {
46769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46770 }
46771 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46772 {
46773 PyThreadState* __tstate = wxPyBeginAllowThreads();
46774 result = (wxMenu *)(arg1)->GetMenu();
46775 wxPyEndAllowThreads(__tstate);
46776 if (PyErr_Occurred()) SWIG_fail;
46777 }
46778 {
46779 resultobj = wxPyMake_wxObject(result, 0);
46780 }
46781 return resultobj;
46782 fail:
46783 return NULL;
46784 }
46785
46786
46787 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowSearchButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46788 PyObject *resultobj = 0;
46789 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46790 bool arg2 ;
46791 void *argp1 = 0 ;
46792 int res1 = 0 ;
46793 bool val2 ;
46794 int ecode2 = 0 ;
46795 PyObject * obj0 = 0 ;
46796 PyObject * obj1 = 0 ;
46797 char * kwnames[] = {
46798 (char *) "self",(char *) "show", NULL
46799 };
46800
46801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowSearchButton",kwnames,&obj0,&obj1)) SWIG_fail;
46802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46803 if (!SWIG_IsOK(res1)) {
46804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46805 }
46806 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46807 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46808 if (!SWIG_IsOK(ecode2)) {
46809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "2"" of type '" "bool""'");
46810 }
46811 arg2 = static_cast< bool >(val2);
46812 {
46813 PyThreadState* __tstate = wxPyBeginAllowThreads();
46814 (arg1)->ShowSearchButton(arg2);
46815 wxPyEndAllowThreads(__tstate);
46816 if (PyErr_Occurred()) SWIG_fail;
46817 }
46818 resultobj = SWIG_Py_Void();
46819 return resultobj;
46820 fail:
46821 return NULL;
46822 }
46823
46824
46825 SWIGINTERN PyObject *_wrap_SearchCtrl_IsSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46826 PyObject *resultobj = 0;
46827 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46828 bool result;
46829 void *argp1 = 0 ;
46830 int res1 = 0 ;
46831 PyObject *swig_obj[1] ;
46832
46833 if (!args) SWIG_fail;
46834 swig_obj[0] = args;
46835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46836 if (!SWIG_IsOK(res1)) {
46837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46838 }
46839 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46840 {
46841 PyThreadState* __tstate = wxPyBeginAllowThreads();
46842 result = (bool)((wxSearchCtrl const *)arg1)->IsSearchButtonVisible();
46843 wxPyEndAllowThreads(__tstate);
46844 if (PyErr_Occurred()) SWIG_fail;
46845 }
46846 {
46847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46848 }
46849 return resultobj;
46850 fail:
46851 return NULL;
46852 }
46853
46854
46855 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46856 PyObject *resultobj = 0;
46857 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46858 bool arg2 ;
46859 void *argp1 = 0 ;
46860 int res1 = 0 ;
46861 bool val2 ;
46862 int ecode2 = 0 ;
46863 PyObject * obj0 = 0 ;
46864 PyObject * obj1 = 0 ;
46865 char * kwnames[] = {
46866 (char *) "self",(char *) "show", NULL
46867 };
46868
46869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowCancelButton",kwnames,&obj0,&obj1)) SWIG_fail;
46870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46871 if (!SWIG_IsOK(res1)) {
46872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46873 }
46874 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46875 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46876 if (!SWIG_IsOK(ecode2)) {
46877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "2"" of type '" "bool""'");
46878 }
46879 arg2 = static_cast< bool >(val2);
46880 {
46881 PyThreadState* __tstate = wxPyBeginAllowThreads();
46882 (arg1)->ShowCancelButton(arg2);
46883 wxPyEndAllowThreads(__tstate);
46884 if (PyErr_Occurred()) SWIG_fail;
46885 }
46886 resultobj = SWIG_Py_Void();
46887 return resultobj;
46888 fail:
46889 return NULL;
46890 }
46891
46892
46893 SWIGINTERN PyObject *_wrap_SearchCtrl_IsCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46894 PyObject *resultobj = 0;
46895 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46896 bool result;
46897 void *argp1 = 0 ;
46898 int res1 = 0 ;
46899 PyObject *swig_obj[1] ;
46900
46901 if (!args) SWIG_fail;
46902 swig_obj[0] = args;
46903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46904 if (!SWIG_IsOK(res1)) {
46905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46906 }
46907 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46908 {
46909 PyThreadState* __tstate = wxPyBeginAllowThreads();
46910 result = (bool)((wxSearchCtrl const *)arg1)->IsCancelButtonVisible();
46911 wxPyEndAllowThreads(__tstate);
46912 if (PyErr_Occurred()) SWIG_fail;
46913 }
46914 {
46915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46916 }
46917 return resultobj;
46918 fail:
46919 return NULL;
46920 }
46921
46922
46923 SWIGINTERN PyObject *_wrap_SearchCtrl_SetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46924 PyObject *resultobj = 0;
46925 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46926 wxString *arg2 = 0 ;
46927 void *argp1 = 0 ;
46928 int res1 = 0 ;
46929 bool temp2 = false ;
46930 PyObject * obj0 = 0 ;
46931 PyObject * obj1 = 0 ;
46932 char * kwnames[] = {
46933 (char *) "self",(char *) "text", NULL
46934 };
46935
46936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetDescriptiveText",kwnames,&obj0,&obj1)) SWIG_fail;
46937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46938 if (!SWIG_IsOK(res1)) {
46939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46940 }
46941 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46942 {
46943 arg2 = wxString_in_helper(obj1);
46944 if (arg2 == NULL) SWIG_fail;
46945 temp2 = true;
46946 }
46947 {
46948 PyThreadState* __tstate = wxPyBeginAllowThreads();
46949 (arg1)->SetDescriptiveText((wxString const &)*arg2);
46950 wxPyEndAllowThreads(__tstate);
46951 if (PyErr_Occurred()) SWIG_fail;
46952 }
46953 resultobj = SWIG_Py_Void();
46954 {
46955 if (temp2)
46956 delete arg2;
46957 }
46958 return resultobj;
46959 fail:
46960 {
46961 if (temp2)
46962 delete arg2;
46963 }
46964 return NULL;
46965 }
46966
46967
46968 SWIGINTERN PyObject *_wrap_SearchCtrl_GetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46969 PyObject *resultobj = 0;
46970 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46971 wxString result;
46972 void *argp1 = 0 ;
46973 int res1 = 0 ;
46974 PyObject *swig_obj[1] ;
46975
46976 if (!args) SWIG_fail;
46977 swig_obj[0] = args;
46978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46979 if (!SWIG_IsOK(res1)) {
46980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46981 }
46982 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46983 {
46984 PyThreadState* __tstate = wxPyBeginAllowThreads();
46985 result = ((wxSearchCtrl const *)arg1)->GetDescriptiveText();
46986 wxPyEndAllowThreads(__tstate);
46987 if (PyErr_Occurred()) SWIG_fail;
46988 }
46989 {
46990 #if wxUSE_UNICODE
46991 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
46992 #else
46993 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
46994 #endif
46995 }
46996 return resultobj;
46997 fail:
46998 return NULL;
46999 }
47000
47001
47002 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47003 PyObject *resultobj = 0;
47004 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47005 wxBitmap *arg2 = 0 ;
47006 void *argp1 = 0 ;
47007 int res1 = 0 ;
47008 void *argp2 = 0 ;
47009 int res2 = 0 ;
47010 PyObject * obj0 = 0 ;
47011 PyObject * obj1 = 0 ;
47012 char * kwnames[] = {
47013 (char *) "self",(char *) "bitmap", NULL
47014 };
47015
47016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47018 if (!SWIG_IsOK(res1)) {
47019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47020 }
47021 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47023 if (!SWIG_IsOK(res2)) {
47024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47025 }
47026 if (!argp2) {
47027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47028 }
47029 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47030 {
47031 PyThreadState* __tstate = wxPyBeginAllowThreads();
47032 (arg1)->SetSearchBitmap((wxBitmap const &)*arg2);
47033 wxPyEndAllowThreads(__tstate);
47034 if (PyErr_Occurred()) SWIG_fail;
47035 }
47036 resultobj = SWIG_Py_Void();
47037 return resultobj;
47038 fail:
47039 return NULL;
47040 }
47041
47042
47043 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47044 PyObject *resultobj = 0;
47045 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47046 wxBitmap *arg2 = 0 ;
47047 void *argp1 = 0 ;
47048 int res1 = 0 ;
47049 void *argp2 = 0 ;
47050 int res2 = 0 ;
47051 PyObject * obj0 = 0 ;
47052 PyObject * obj1 = 0 ;
47053 char * kwnames[] = {
47054 (char *) "self",(char *) "bitmap", NULL
47055 };
47056
47057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47059 if (!SWIG_IsOK(res1)) {
47060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47061 }
47062 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47064 if (!SWIG_IsOK(res2)) {
47065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47066 }
47067 if (!argp2) {
47068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47069 }
47070 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47071 {
47072 PyThreadState* __tstate = wxPyBeginAllowThreads();
47073 (arg1)->SetSearchMenuBitmap((wxBitmap const &)*arg2);
47074 wxPyEndAllowThreads(__tstate);
47075 if (PyErr_Occurred()) SWIG_fail;
47076 }
47077 resultobj = SWIG_Py_Void();
47078 return resultobj;
47079 fail:
47080 return NULL;
47081 }
47082
47083
47084 SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47085 PyObject *resultobj = 0;
47086 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47087 wxBitmap *arg2 = 0 ;
47088 void *argp1 = 0 ;
47089 int res1 = 0 ;
47090 void *argp2 = 0 ;
47091 int res2 = 0 ;
47092 PyObject * obj0 = 0 ;
47093 PyObject * obj1 = 0 ;
47094 char * kwnames[] = {
47095 (char *) "self",(char *) "bitmap", NULL
47096 };
47097
47098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47100 if (!SWIG_IsOK(res1)) {
47101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47102 }
47103 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47104 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47105 if (!SWIG_IsOK(res2)) {
47106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47107 }
47108 if (!argp2) {
47109 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47110 }
47111 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47112 {
47113 PyThreadState* __tstate = wxPyBeginAllowThreads();
47114 (arg1)->SetCancelBitmap((wxBitmap const &)*arg2);
47115 wxPyEndAllowThreads(__tstate);
47116 if (PyErr_Occurred()) SWIG_fail;
47117 }
47118 resultobj = SWIG_Py_Void();
47119 return resultobj;
47120 fail:
47121 return NULL;
47122 }
47123
47124
47125 SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47126 PyObject *obj;
47127 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
47128 SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj));
47129 return SWIG_Py_Void();
47130 }
47131
47132 SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47133 return SWIG_Python_InitShadowInstance(args);
47134 }
47135
47136 static PyMethodDef SwigMethods[] = {
47137 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
47138 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
47139 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47140 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
47141 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
47142 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47143 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
47144 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
47145 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
47146 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
47147 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47148 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
47149 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
47150 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
47151 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
47152 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
47153 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
47154 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
47155 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47156 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47157 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
47158 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47159 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
47160 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
47161 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
47162 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
47163 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
47164 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
47165 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47166 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
47167 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
47168 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47169 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
47170 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
47171 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
47172 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
47173 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47174 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
47175 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
47176 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
47177 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
47178 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47179 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
47180 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47181 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
47182 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
47183 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
47184 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
47185 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47186 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
47187 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47188 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
47189 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
47190 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
47191 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47192 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
47193 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
47194 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47195 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
47196 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
47197 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
47198 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47199 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
47200 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
47201 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47202 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
47203 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
47204 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
47205 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
47206 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
47207 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
47208 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
47209 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
47210 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
47211 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47212 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
47213 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
47214 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
47215 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
47216 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47217 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47218 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
47219 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47220 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
47221 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
47222 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
47223 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47224 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
47225 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
47226 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
47227 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47228 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
47229 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
47230 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
47231 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
47232 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47233 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47234 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
47235 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
47236 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
47237 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
47238 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47239 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
47240 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
47241 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47242 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
47243 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
47244 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
47245 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
47246 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47247 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
47248 { (char *)"StaticText_IsEllipsized", (PyCFunction)_wrap_StaticText_IsEllipsized, METH_O, NULL},
47249 { (char *)"StaticText_RemoveMarkup", (PyCFunction) _wrap_StaticText_RemoveMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
47250 { (char *)"StaticText_EscapeMarkup", (PyCFunction) _wrap_StaticText_EscapeMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
47251 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47252 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
47253 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
47254 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47255 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
47256 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47257 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
47258 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47259 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47260 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47261 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
47262 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
47263 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47264 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
47265 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47266 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
47267 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
47268 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47269 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47270 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47271 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47272 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
47273 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
47274 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47275 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
47276 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
47277 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
47278 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47279 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47280 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
47281 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47282 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47283 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47284 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47285 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47286 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
47287 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
47288 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47289 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
47290 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47291 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
47292 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
47293 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
47294 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
47295 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
47296 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47297 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
47298 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
47299 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
47300 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47301 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47302 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47303 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
47304 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
47305 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47306 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47307 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
47308 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
47309 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
47310 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
47311 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
47312 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
47313 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
47314 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
47315 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
47316 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
47317 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
47318 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
47319 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
47320 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
47321 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
47322 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
47323 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
47324 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
47325 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
47326 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
47327 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
47328 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
47329 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47330 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
47331 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47332 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
47333 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47334 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
47335 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
47336 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47337 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
47338 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
47339 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
47340 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
47341 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
47342 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
47343 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
47344 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
47345 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
47346 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
47347 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47348 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47349 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
47350 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
47351 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
47352 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
47353 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
47354 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
47355 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
47356 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
47357 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
47358 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47359 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47360 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47361 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
47362 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47363 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
47364 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47365 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47366 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
47367 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
47368 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
47369 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
47370 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
47371 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
47372 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
47373 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
47374 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
47375 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
47376 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
47377 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47378 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
47379 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
47380 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
47381 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47382 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
47383 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
47384 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
47385 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
47386 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
47387 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47388 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47389 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
47390 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
47391 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47392 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
47393 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
47394 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
47395 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
47396 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
47397 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
47398 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
47399 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47400 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
47401 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
47402 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
47403 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
47404 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
47405 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47406 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47407 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
47408 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
47409 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
47410 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
47411 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47412 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
47413 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
47414 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
47415 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47416 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47417 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47418 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47419 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
47420 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47421 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
47422 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
47423 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47424 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
47425 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47426 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
47427 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47428 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
47429 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47430 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
47431 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
47432 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47433 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47434 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
47435 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
47436 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47437 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
47438 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47439 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
47440 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
47441 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
47442 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
47443 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47444 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47445 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
47446 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
47447 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47448 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
47449 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
47450 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47451 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
47452 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
47453 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
47454 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47455 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
47456 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
47457 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
47458 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47459 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47460 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47461 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47462 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47463 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47464 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
47465 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
47466 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
47467 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
47468 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47469 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
47470 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47471 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47472 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
47473 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
47474 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
47475 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
47476 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47477 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
47478 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47479 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47480 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
47481 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
47482 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47483 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47484 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
47485 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47486 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
47487 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
47488 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
47489 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
47490 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
47491 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
47492 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
47493 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
47494 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
47495 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
47496 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
47497 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47498 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47499 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
47500 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
47501 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
47502 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
47503 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47504 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47505 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
47506 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47507 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
47508 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
47509 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
47510 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
47511 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
47512 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
47513 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47514 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47515 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47516 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47517 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
47518 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47519 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47520 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47521 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
47522 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
47523 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
47524 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
47525 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47526 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
47527 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
47528 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
47529 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
47530 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
47531 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
47532 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
47533 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
47534 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
47535 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47536 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47537 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47538 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47539 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47540 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
47541 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47542 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
47543 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47544 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
47545 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47546 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
47547 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
47548 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
47549 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
47550 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47551 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
47552 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
47553 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
47554 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
47555 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47556 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47557 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47558 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
47559 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
47560 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47561 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
47562 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
47563 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
47564 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
47565 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47566 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
47567 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
47568 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
47569 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47570 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
47571 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
47572 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
47573 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
47574 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47575 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
47576 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
47577 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
47578 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47579 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
47580 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
47581 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
47582 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
47583 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47584 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47585 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47586 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47587 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
47588 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
47589 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
47590 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
47591 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
47592 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
47593 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47594 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
47595 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
47596 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
47597 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
47598 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47599 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
47600 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
47601 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
47602 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
47603 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47604 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
47605 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
47606 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
47607 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
47608 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
47609 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
47610 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
47611 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
47612 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
47613 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
47614 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
47615 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
47616 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
47617 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
47618 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
47619 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
47620 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
47621 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
47622 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
47623 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
47624 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
47625 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47626 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47627 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47628 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47629 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47630 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47631 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
47632 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
47633 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
47634 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47635 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
47636 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
47637 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
47638 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47639 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47640 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
47641 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
47642 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
47643 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
47644 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
47645 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
47646 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
47647 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
47648 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
47649 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
47650 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
47651 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
47652 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47653 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47654 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47655 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
47656 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
47657 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47658 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47659 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47660 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47661 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47662 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
47663 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47664 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
47665 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
47666 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
47667 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
47668 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
47669 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
47670 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
47671 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
47672 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
47673 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
47674 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
47675 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
47676 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
47677 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47678 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
47679 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
47680 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
47681 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
47682 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
47683 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
47684 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47685 { (char *)"ToolBar_SetToolNormalBitmap", (PyCFunction) _wrap_ToolBar_SetToolNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47686 { (char *)"ToolBar_SetToolDisabledBitmap", (PyCFunction) _wrap_ToolBar_SetToolDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47687 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47688 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
47689 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
47690 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47691 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
47692 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47693 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47694 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47695 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
47696 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
47697 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
47698 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
47699 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
47700 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
47701 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
47702 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
47703 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
47704 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
47705 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
47706 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
47707 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
47708 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
47709 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
47710 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47711 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47712 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47713 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
47714 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
47715 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
47716 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47717 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47718 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
47719 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47720 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47721 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47722 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
47723 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
47724 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
47725 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
47726 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
47727 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
47728 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
47729 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
47730 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
47731 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
47732 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
47733 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
47734 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
47735 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
47736 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
47737 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
47738 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
47739 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
47740 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
47741 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
47742 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
47743 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
47744 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
47745 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
47746 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
47747 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
47748 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
47749 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
47750 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
47751 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
47752 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
47753 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
47754 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
47755 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
47756 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
47757 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
47758 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47759 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
47760 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
47761 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
47762 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
47763 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
47764 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
47765 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
47766 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
47767 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
47768 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
47769 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
47770 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
47771 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
47772 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
47773 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
47774 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
47775 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
47776 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
47777 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
47778 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
47779 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
47780 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
47781 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
47782 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
47783 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47784 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
47785 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
47786 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47787 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
47788 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47789 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47790 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47791 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47792 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47793 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47794 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
47795 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
47796 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
47797 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47798 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47799 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47800 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47801 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47802 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47803 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47804 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47805 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47806 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47807 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47808 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47809 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
47810 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47811 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
47812 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
47813 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
47814 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47815 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
47816 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
47817 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47818 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
47819 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47820 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47821 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47822 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47823 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47824 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
47825 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
47826 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
47827 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
47828 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
47829 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
47830 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
47831 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47832 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
47833 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
47834 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47835 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47836 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
47837 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47838 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
47839 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47840 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
47841 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47842 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47843 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
47844 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47845 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
47846 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47847 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
47848 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
47849 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47850 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47851 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47852 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47853 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47854 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47855 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
47856 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
47857 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47858 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
47859 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
47860 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
47861 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
47862 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47863 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47864 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
47865 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
47866 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47867 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
47868 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47869 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47870 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47871 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
47872 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
47873 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
47874 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
47875 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
47876 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
47877 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
47878 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
47879 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
47880 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
47881 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
47882 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47883 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
47884 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
47885 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47886 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
47887 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47888 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
47889 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
47890 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
47891 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
47892 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
47893 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47894 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
47895 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
47896 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
47897 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47898 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
47899 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
47900 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47901 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
47902 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47903 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
47904 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47905 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47906 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
47907 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
47908 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
47909 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47910 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
47911 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47912 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47913 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
47914 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
47915 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47916 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
47917 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47918 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47919 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47920 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47921 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47922 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47923 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47924 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47925 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47926 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47927 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47928 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47929 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47930 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47931 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47932 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47933 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47934 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47935 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47936 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47937 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47938 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47939 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47940 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47941 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47942 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47943 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47944 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47945 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
47946 { (char *)"TreeCtrl_IsEmpty", (PyCFunction)_wrap_TreeCtrl_IsEmpty, METH_O, NULL},
47947 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
47948 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
47949 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
47950 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
47951 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
47952 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
47953 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
47954 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
47955 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47956 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47957 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
47958 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47959 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47960 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
47961 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
47962 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47963 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
47964 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
47965 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
47966 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47967 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
47968 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
47969 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47970 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
47971 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47972 { (char *)"TreeCtrl_CollapseAllChildren", (PyCFunction) _wrap_TreeCtrl_CollapseAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47973 { (char *)"TreeCtrl_CollapseAll", (PyCFunction)_wrap_TreeCtrl_CollapseAll, METH_O, NULL},
47974 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
47975 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
47976 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
47977 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47978 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
47979 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47980 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47981 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47982 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
47983 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47984 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
47985 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47986 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47987 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
47988 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47989 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
47990 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
47991 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
47992 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
47993 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47994 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
47995 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47996 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
47997 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
47998 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
47999 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
48000 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
48001 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
48002 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48003 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
48004 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
48005 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
48006 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
48007 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
48008 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
48009 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
48010 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
48011 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
48012 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
48013 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
48014 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
48015 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
48016 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
48017 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48018 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
48019 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48020 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
48021 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
48022 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
48023 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
48024 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
48025 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
48026 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
48027 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
48028 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
48029 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
48030 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
48031 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
48032 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
48033 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
48034 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
48035 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
48036 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
48037 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
48038 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
48039 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
48040 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48041 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
48042 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
48043 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
48044 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
48045 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
48046 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
48047 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
48048 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
48049 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
48050 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
48051 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48052 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
48053 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48054 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
48055 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
48056 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
48057 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
48058 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
48059 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
48060 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
48061 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
48062 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
48063 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48064 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48065 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
48066 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48067 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
48068 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48069 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
48070 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
48071 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
48072 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
48073 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
48074 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
48075 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
48076 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
48077 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
48078 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
48079 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
48080 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48081 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
48082 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
48083 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
48084 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
48085 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
48086 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
48087 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
48088 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
48089 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
48090 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
48091 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
48092 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
48093 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48094 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
48095 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48096 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
48097 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
48098 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
48099 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
48100 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
48101 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
48102 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
48103 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48104 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
48105 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48106 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
48107 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
48108 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
48109 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
48110 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
48111 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
48112 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
48113 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
48114 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
48115 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
48116 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
48117 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
48118 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48119 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
48120 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
48121 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
48122 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
48123 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
48124 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
48125 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
48126 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
48127 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
48128 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
48129 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
48130 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
48131 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
48132 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
48133 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
48134 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
48135 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
48136 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
48137 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
48138 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48139 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
48140 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48141 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
48142 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48143 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
48144 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
48145 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48146 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
48147 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48148 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
48149 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
48150 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48151 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
48152 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48153 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
48154 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48155 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48156 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
48157 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
48158 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
48159 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48160 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
48161 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48162 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
48163 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48164 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48165 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
48166 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
48167 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
48168 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48169 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
48170 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48171 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
48172 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
48173 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48174 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
48175 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48176 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
48177 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
48178 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
48179 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
48180 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
48181 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
48182 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48183 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
48184 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
48185 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
48186 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
48187 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
48188 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
48189 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48190 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
48191 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
48192 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
48193 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
48194 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
48195 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
48196 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
48197 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48198 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
48199 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
48200 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
48201 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
48202 { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48203 { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL},
48204 { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48205 { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
48206 { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL},
48207 { (char *)"SearchCtrl_ShowSearchButton", (PyCFunction) _wrap_SearchCtrl_ShowSearchButton, METH_VARARGS | METH_KEYWORDS, NULL},
48208 { (char *)"SearchCtrl_IsSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsSearchButtonVisible, METH_O, NULL},
48209 { (char *)"SearchCtrl_ShowCancelButton", (PyCFunction) _wrap_SearchCtrl_ShowCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
48210 { (char *)"SearchCtrl_IsCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsCancelButtonVisible, METH_O, NULL},
48211 { (char *)"SearchCtrl_SetDescriptiveText", (PyCFunction) _wrap_SearchCtrl_SetDescriptiveText, METH_VARARGS | METH_KEYWORDS, NULL},
48212 { (char *)"SearchCtrl_GetDescriptiveText", (PyCFunction)_wrap_SearchCtrl_GetDescriptiveText, METH_O, NULL},
48213 { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48214 { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48215 { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48216 { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL},
48217 { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL},
48218 { NULL, NULL, 0, NULL }
48219 };
48220
48221
48222 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
48223
48224 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
48225 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
48226 }
48227 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
48228 return (void *)((wxEvent *) ((wxMenuEvent *) x));
48229 }
48230 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
48231 return (void *)((wxEvent *) ((wxCloseEvent *) x));
48232 }
48233 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
48234 return (void *)((wxEvent *) ((wxMouseEvent *) x));
48235 }
48236 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
48237 return (void *)((wxEvent *) ((wxEraseEvent *) x));
48238 }
48239 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
48240 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48241 }
48242 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
48243 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48244 }
48245 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
48246 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
48247 }
48248 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
48249 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
48250 }
48251 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
48252 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48253 }
48254 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
48255 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
48256 }
48257 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
48258 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
48259 }
48260 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
48261 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
48262 }
48263 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
48264 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
48265 }
48266 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
48267 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
48268 }
48269 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
48270 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
48271 }
48272 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
48273 return (void *)((wxEvent *) ((wxPyEvent *) x));
48274 }
48275 static void *_p_wxListEventTo_p_wxEvent(void *x) {
48276 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48277 }
48278 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
48279 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48280 }
48281 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
48282 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48283 }
48284 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
48285 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48286 }
48287 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
48288 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48289 }
48290 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
48291 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48292 }
48293 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
48294 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
48295 }
48296 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
48297 return (void *)((wxEvent *) ((wxIdleEvent *) x));
48298 }
48299 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
48300 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
48301 }
48302 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
48303 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
48304 }
48305 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
48306 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
48307 }
48308 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
48309 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
48310 }
48311 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
48312 return (void *)((wxEvent *) ((wxActivateEvent *) x));
48313 }
48314 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
48315 return (void *)((wxEvent *) ((wxSizeEvent *) x));
48316 }
48317 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
48318 return (void *)((wxEvent *) ((wxMoveEvent *) x));
48319 }
48320 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
48321 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
48322 }
48323 static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
48324 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48325 }
48326 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
48327 return (void *)((wxEvent *) ((wxPaintEvent *) x));
48328 }
48329 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
48330 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
48331 }
48332 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
48333 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
48334 }
48335 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
48336 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
48337 }
48338 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
48339 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
48340 }
48341 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
48342 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
48343 }
48344 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
48345 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48346 }
48347 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
48348 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
48349 }
48350 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
48351 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
48352 }
48353 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
48354 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
48355 }
48356 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
48357 return (void *)((wxEvent *) ((wxFocusEvent *) x));
48358 }
48359 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
48360 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
48361 }
48362 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
48363 return (void *)((wxEvent *) ((wxShowEvent *) x));
48364 }
48365 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
48366 return (void *)((wxEvent *) ((wxCommandEvent *) x));
48367 }
48368 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
48369 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
48370 }
48371 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
48372 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48373 }
48374 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
48375 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
48376 }
48377 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
48378 return (void *)((wxEvent *) ((wxKeyEvent *) x));
48379 }
48380 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
48381 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
48382 }
48383 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
48384 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48385 }
48386 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
48387 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
48388 }
48389 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
48390 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
48391 }
48392 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
48393 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
48394 }
48395 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
48396 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
48397 }
48398 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
48399 return (void *)((wxItemContainer *) ((wxComboBox *) x));
48400 }
48401 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
48402 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48403 }
48404 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
48405 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
48406 }
48407 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
48408 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
48409 }
48410 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
48411 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
48412 }
48413 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
48414 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48415 }
48416 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
48417 return (void *)((wxPyListCtrl *) ((wxListView *) x));
48418 }
48419 static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
48420 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
48421 }
48422 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
48423 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
48424 }
48425 static void *_p_wxToolBarTo_p_wxControl(void *x) {
48426 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
48427 }
48428 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
48429 return (void *)((wxControl *) ((wxPickerBase *) x));
48430 }
48431 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
48432 return (void *)((wxControl *) ((wxToggleButton *) x));
48433 }
48434 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
48435 return (void *)((wxControl *) ((wxRadioButton *) x));
48436 }
48437 static void *_p_wxSearchCtrlTo_p_wxControl(void *x) {
48438 return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x));
48439 }
48440 static void *_p_wxToolbookTo_p_wxControl(void *x) {
48441 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
48442 }
48443 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
48444 return (void *)((wxControl *) ((wxToolBarBase *) x));
48445 }
48446 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
48447 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48448 }
48449 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
48450 return (void *)((wxControl *) ((wxPyListCtrl *) x));
48451 }
48452 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
48453 return (void *)((wxControl *) ((wxComboBox *) x));
48454 }
48455 static void *_p_wxPyControlTo_p_wxControl(void *x) {
48456 return (void *)((wxControl *) ((wxPyControl *) x));
48457 }
48458 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
48459 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
48460 }
48461 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
48462 return (void *)((wxControl *) ((wxScrollBar *) x));
48463 }
48464 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
48465 return (void *)((wxControl *) ((wxControlWithItems *) x));
48466 }
48467 static void *_p_wxGaugeTo_p_wxControl(void *x) {
48468 return (void *)((wxControl *) ((wxGauge *) x));
48469 }
48470 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
48471 return (void *)((wxControl *) ((wxStaticLine *) x));
48472 }
48473 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
48474 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
48475 }
48476 static void *_p_wxListbookTo_p_wxControl(void *x) {
48477 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
48478 }
48479 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
48480 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
48481 }
48482 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
48483 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
48484 }
48485 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
48486 return (void *)((wxControl *) ((wxCheckBox *) x));
48487 }
48488 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
48489 return (void *)((wxControl *) ((wxRadioBox *) x));
48490 }
48491 static void *_p_wxChoiceTo_p_wxControl(void *x) {
48492 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
48493 }
48494 static void *_p_wxListBoxTo_p_wxControl(void *x) {
48495 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
48496 }
48497 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
48498 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48499 }
48500 static void *_p_wxListViewTo_p_wxControl(void *x) {
48501 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
48502 }
48503 static void *_p_wxNotebookTo_p_wxControl(void *x) {
48504 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
48505 }
48506 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
48507 return (void *)((wxControl *) ((wxStaticBitmap *) x));
48508 }
48509 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
48510 return (void *)((wxControl *) ((wxSpinCtrl *) x));
48511 }
48512 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
48513 return (void *)((wxControl *) ((wxStaticText *) x));
48514 }
48515 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
48516 return (void *)((wxControl *) ((wxStaticBox *) x));
48517 }
48518 static void *_p_wxSliderTo_p_wxControl(void *x) {
48519 return (void *)((wxControl *) ((wxSlider *) x));
48520 }
48521 static void *_p_wxTreebookTo_p_wxControl(void *x) {
48522 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
48523 }
48524 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
48525 return (void *)((wxControl *) ((wxSpinButton *) x));
48526 }
48527 static void *_p_wxButtonTo_p_wxControl(void *x) {
48528 return (void *)((wxControl *) ((wxButton *) x));
48529 }
48530 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
48531 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
48532 }
48533 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
48534 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48535 }
48536 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
48537 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
48538 }
48539 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
48540 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
48541 }
48542 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
48543 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
48544 }
48545 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
48546 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
48547 }
48548 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
48549 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
48550 }
48551 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
48552 return (void *)((wxControl *) ((wxTextCtrl *) x));
48553 }
48554 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
48555 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
48556 }
48557 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
48558 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
48559 }
48560 static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) {
48561 return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x));
48562 }
48563 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
48564 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48565 }
48566 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
48567 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
48568 }
48569 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
48570 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
48571 }
48572 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
48573 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
48574 }
48575 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
48576 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48577 }
48578 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
48579 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48580 }
48581 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
48582 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48583 }
48584 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
48585 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48586 }
48587 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
48588 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48589 }
48590 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
48591 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
48592 }
48593 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
48594 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
48595 }
48596 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
48597 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
48598 }
48599 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
48600 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
48601 }
48602 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
48603 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
48604 }
48605 static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
48606 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48607 }
48608 static void *_p_wxEventBlockerTo_p_wxEvtHandler(void *x) {
48609 return (void *)((wxEvtHandler *) ((wxEventBlocker *) x));
48610 }
48611 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
48612 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
48613 }
48614 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
48615 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48616 }
48617 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
48618 return (void *)((wxEvtHandler *) ((wxValidator *) x));
48619 }
48620 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
48621 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
48622 }
48623 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
48624 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48625 }
48626 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
48627 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
48628 }
48629 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
48630 return (void *)((wxEvtHandler *) ((wxMenu *) x));
48631 }
48632 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
48633 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
48634 }
48635 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
48636 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
48637 }
48638 static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) {
48639 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48640 }
48641 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
48642 return (void *)((wxEvtHandler *) ((wxWindow *) x));
48643 }
48644 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
48645 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48646 }
48647 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
48648 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
48649 }
48650 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
48651 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
48652 }
48653 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
48654 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48655 }
48656 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
48657 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48658 }
48659 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
48660 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48661 }
48662 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
48663 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
48664 }
48665 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
48666 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
48667 }
48668 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
48669 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48670 }
48671 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
48672 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
48673 }
48674 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
48675 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48676 }
48677 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
48678 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
48679 }
48680 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
48681 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
48682 }
48683 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
48684 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48685 }
48686 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
48687 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48688 }
48689 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
48690 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48691 }
48692 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
48693 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48694 }
48695 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
48696 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
48697 }
48698 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
48699 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
48700 }
48701 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
48702 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48703 }
48704 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
48705 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48706 }
48707 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
48708 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48709 }
48710 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
48711 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48712 }
48713 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
48714 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48715 }
48716 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
48717 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48718 }
48719 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
48720 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48721 }
48722 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
48723 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
48724 }
48725 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
48726 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
48727 }
48728 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
48729 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
48730 }
48731 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
48732 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48733 }
48734 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
48735 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
48736 }
48737 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
48738 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
48739 }
48740 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
48741 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48742 }
48743 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
48744 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48745 }
48746 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
48747 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48748 }
48749 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
48750 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48751 }
48752 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
48753 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48754 }
48755 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
48756 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48757 }
48758 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
48759 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48760 }
48761 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
48762 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48763 }
48764 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
48765 return (void *)((wxListBox *) ((wxCheckListBox *) x));
48766 }
48767 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
48768 return (void *)((wxButton *) ((wxBitmapButton *) x));
48769 }
48770 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
48771 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
48772 }
48773 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
48774 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
48775 }
48776 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
48777 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
48778 }
48779 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
48780 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
48781 }
48782 static void *_p_wxToolbookTo_p_wxObject(void *x) {
48783 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48784 }
48785 static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
48786 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
48787 }
48788 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
48789 return (void *)((wxObject *) ((wxSizerItem *) x));
48790 }
48791 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
48792 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
48793 }
48794 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
48795 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
48796 }
48797 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
48798 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
48799 }
48800 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
48801 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
48802 }
48803 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
48804 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
48805 }
48806 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
48807 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
48808 }
48809 static void *_p_wxSizerTo_p_wxObject(void *x) {
48810 return (void *)((wxObject *) ((wxSizer *) x));
48811 }
48812 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
48813 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
48814 }
48815 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
48816 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
48817 }
48818 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
48819 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48820 }
48821 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
48822 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
48823 }
48824 static void *_p_wxEventTo_p_wxObject(void *x) {
48825 return (void *)((wxObject *) ((wxEvent *) x));
48826 }
48827 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
48828 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
48829 }
48830 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
48831 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
48832 }
48833 static void *_p_wxSearchCtrlTo_p_wxObject(void *x) {
48834 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48835 }
48836 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
48837 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
48838 }
48839 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
48840 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48841 }
48842 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
48843 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
48844 }
48845 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
48846 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48847 }
48848 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
48849 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48850 }
48851 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
48852 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
48853 }
48854 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
48855 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
48856 }
48857 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
48858 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
48859 }
48860 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
48861 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
48862 }
48863 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
48864 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
48865 }
48866 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
48867 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48868 }
48869 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
48870 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
48871 }
48872 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
48873 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
48874 }
48875 static void *_p_wxControlTo_p_wxObject(void *x) {
48876 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
48877 }
48878 static void *_p_wxPyControlTo_p_wxObject(void *x) {
48879 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
48880 }
48881 static void *_p_wxGaugeTo_p_wxObject(void *x) {
48882 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
48883 }
48884 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
48885 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
48886 }
48887 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
48888 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
48889 }
48890 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
48891 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48892 }
48893 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
48894 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
48895 }
48896 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
48897 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
48898 }
48899 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
48900 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48901 }
48902 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
48903 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
48904 }
48905 static void *_p_wxChoiceTo_p_wxObject(void *x) {
48906 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48907 }
48908 static void *_p_wxFSFileTo_p_wxObject(void *x) {
48909 return (void *)((wxObject *) ((wxFSFile *) x));
48910 }
48911 static void *_p_wxPySizerTo_p_wxObject(void *x) {
48912 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
48913 }
48914 static void *_p_wxTreebookTo_p_wxObject(void *x) {
48915 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48916 }
48917 static void *_p_wxListViewTo_p_wxObject(void *x) {
48918 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48919 }
48920 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
48921 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
48922 }
48923 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
48924 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48925 }
48926 static void *_p_wxNotebookTo_p_wxObject(void *x) {
48927 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48928 }
48929 static void *_p_wxPyEventTo_p_wxObject(void *x) {
48930 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
48931 }
48932 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
48933 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
48934 }
48935 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
48936 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48937 }
48938 static void *_p_wxListbookTo_p_wxObject(void *x) {
48939 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48940 }
48941 static void *_p_wxShowEventTo_p_wxObject(void *x) {
48942 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
48943 }
48944 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
48945 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48946 }
48947 static void *_p_wxSliderTo_p_wxObject(void *x) {
48948 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
48949 }
48950 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
48951 return (void *)((wxObject *) ((wxMenuItem *) x));
48952 }
48953 static void *_p_wxDateEventTo_p_wxObject(void *x) {
48954 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
48955 }
48956 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
48957 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
48958 }
48959 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
48960 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
48961 }
48962 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
48963 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
48964 }
48965 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
48966 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
48967 }
48968 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
48969 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
48970 }
48971 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
48972 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
48973 }
48974 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
48975 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
48976 }
48977 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
48978 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
48979 }
48980 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
48981 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
48982 }
48983 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
48984 return (void *)((wxObject *) ((wxContextHelp *) x));
48985 }
48986 static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
48987 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48988 }
48989 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
48990 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48991 }
48992 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
48993 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
48994 }
48995 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
48996 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
48997 }
48998 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
48999 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
49000 }
49001 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
49002 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
49003 }
49004 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
49005 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
49006 }
49007 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
49008 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
49009 }
49010 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
49011 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
49012 }
49013 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
49014 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
49015 }
49016 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
49017 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
49018 }
49019 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
49020 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
49021 }
49022 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
49023 return (void *)((wxObject *) ((wxImageHandler *) x));
49024 }
49025 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
49026 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
49027 }
49028 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
49029 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
49030 }
49031 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
49032 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
49033 }
49034 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
49035 return (void *)((wxObject *) ((wxEvtHandler *) x));
49036 }
49037 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
49038 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
49039 }
49040 static void *_p_wxListEventTo_p_wxObject(void *x) {
49041 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
49042 }
49043 static void *_p_wxListBoxTo_p_wxObject(void *x) {
49044 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
49045 }
49046 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
49047 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
49048 }
49049 static void *_p_wxButtonTo_p_wxObject(void *x) {
49050 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
49051 }
49052 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
49053 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
49054 }
49055 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
49056 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
49057 }
49058 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
49059 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
49060 }
49061 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
49062 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
49063 }
49064 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
49065 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
49066 }
49067 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
49068 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
49069 }
49070 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
49071 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
49072 }
49073 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
49074 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
49075 }
49076 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
49077 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
49078 }
49079 static void *_p_wxListItemTo_p_wxObject(void *x) {
49080 return (void *)((wxObject *) ((wxListItem *) x));
49081 }
49082 static void *_p_wxImageTo_p_wxObject(void *x) {
49083 return (void *)((wxObject *) ((wxImage *) x));
49084 }
49085 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
49086 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
49087 }
49088 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
49089 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
49090 }
49091 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
49092 return (void *)((wxObject *) ((wxGenericDragImage *) x));
49093 }
49094 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
49095 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
49096 }
49097 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
49098 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49099 }
49100 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
49101 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49102 }
49103 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
49104 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49105 }
49106 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
49107 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49108 }
49109 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
49110 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49111 }
49112 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
49113 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49114 }
49115 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
49116 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
49117 }
49118 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
49119 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
49120 }
49121 static void *_p_wxWindowTo_p_wxObject(void *x) {
49122 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
49123 }
49124 static void *_p_wxMenuTo_p_wxObject(void *x) {
49125 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
49126 }
49127 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
49128 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
49129 }
49130 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
49131 return (void *)((wxObject *) ((wxFileSystem *) x));
49132 }
49133 static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
49134 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
49135 }
49136 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
49137 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
49138 }
49139 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
49140 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
49141 }
49142 static void *_p_wxPyAppTo_p_wxObject(void *x) {
49143 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
49144 }
49145 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
49146 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
49147 }
49148 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
49149 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
49150 }
49151 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
49152 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
49153 }
49154 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
49155 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49156 }
49157 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
49158 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
49159 }
49160 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
49161 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
49162 }
49163 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
49164 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
49165 }
49166 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
49167 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
49168 }
49169 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
49170 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
49171 }
49172 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
49173 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
49174 }
49175 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
49176 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
49177 }
49178 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
49179 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
49180 }
49181 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
49182 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49183 }
49184 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
49185 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49186 }
49187 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
49188 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49189 }
49190 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
49191 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49192 }
49193 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
49194 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
49195 }
49196 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
49197 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
49198 }
49199 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
49200 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
49201 }
49202 static void *_p_wxToolBarTo_p_wxObject(void *x) {
49203 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49204 }
49205 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
49206 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
49207 }
49208 static void *_p_wxValidatorTo_p_wxObject(void *x) {
49209 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
49210 }
49211 static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
49212 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
49213 }
49214 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
49215 return (void *)((wxWindow *) ((wxMenuBar *) x));
49216 }
49217 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
49218 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
49219 }
49220 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
49221 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49222 }
49223 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
49224 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
49225 }
49226 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
49227 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
49228 }
49229 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
49230 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
49231 }
49232 static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) {
49233 return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
49234 }
49235 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
49236 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
49237 }
49238 static void *_p_wxControlTo_p_wxWindow(void *x) {
49239 return (void *)((wxWindow *) ((wxControl *) x));
49240 }
49241 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
49242 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
49243 }
49244 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
49245 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
49246 }
49247 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
49248 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
49249 }
49250 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
49251 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
49252 }
49253 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
49254 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
49255 }
49256 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
49257 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
49258 }
49259 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
49260 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
49261 }
49262 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
49263 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
49264 }
49265 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
49266 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
49267 }
49268 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
49269 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
49270 }
49271 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
49272 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
49273 }
49274 static void *_p_wxListbookTo_p_wxWindow(void *x) {
49275 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
49276 }
49277 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
49278 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
49279 }
49280 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
49281 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
49282 }
49283 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
49284 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
49285 }
49286 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
49287 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
49288 }
49289 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
49290 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
49291 }
49292 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
49293 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
49294 }
49295 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
49296 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
49297 }
49298 static void *_p_wxListViewTo_p_wxWindow(void *x) {
49299 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
49300 }
49301 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
49302 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
49303 }
49304 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
49305 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
49306 }
49307 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
49308 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
49309 }
49310 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
49311 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
49312 }
49313 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
49314 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
49315 }
49316 static void *_p_wxSliderTo_p_wxWindow(void *x) {
49317 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
49318 }
49319 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
49320 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
49321 }
49322 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
49323 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
49324 }
49325 static void *_p_wxButtonTo_p_wxWindow(void *x) {
49326 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
49327 }
49328 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
49329 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
49330 }
49331 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
49332 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
49333 }
49334 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
49335 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
49336 }
49337 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
49338 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49339 }
49340 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
49341 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49342 }
49343 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
49344 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49345 }
49346 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
49347 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49348 }
49349 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
49350 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
49351 }
49352 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49353 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49354 }
49355 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49356 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49357 }
49358 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49359 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49360 }
49361 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49362 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49363 }
49364 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49365 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49366 }
49367 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
49368 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49369 }
49370 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
49371 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
49372 }
49373 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
49374 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
49375 }
49376 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
49377 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
49378 }
49379 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
49380 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
49381 }
49382 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
49383 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
49384 }
49385 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
49386 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
49387 }
49388 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
49389 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
49390 }
49391 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
49392 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
49393 }
49394 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
49395 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
49396 }
49397 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
49398 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
49399 }
49400 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
49401 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49402 }
49403 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
49404 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49405 }
49406 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
49407 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49408 }
49409 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
49410 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49411 }
49412 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
49413 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49414 }
49415 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
49416 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
49417 }
49418 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
49419 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
49420 }
49421 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
49422 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
49423 }
49424 static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
49425 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
49426 }
49427 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
49428 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49429 }
49430 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
49431 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
49432 }
49433 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
49434 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
49435 }
49436 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
49437 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
49438 }
49439 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
49440 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
49441 }
49442 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
49443 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
49444 }
49445 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
49446 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
49447 }
49448 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
49449 return (void *)((wxControlWithItems *) ((wxChoice *) x));
49450 }
49451 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
49452 return (void *)((wxControlWithItems *) ((wxListBox *) x));
49453 }
49454 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
49455 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
49456 }
49457 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
49458 return (void *)((wxValidator *) ((wxPyValidator *) x));
49459 }
49460 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
49461 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
49462 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};
49463 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
49464 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
49465 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
49466 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
49467 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
49468 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
49469 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
49470 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
49471 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
49472 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
49473 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
49474 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
49475 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
49476 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
49477 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
49478 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
49479 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
49480 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
49481 static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
49482 static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
49483 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
49484 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
49485 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
49486 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
49487 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
49488 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
49489 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
49490 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
49491 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
49492 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
49493 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
49494 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
49495 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
49496 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
49497 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
49498 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
49499 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
49500 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
49501 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
49502 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
49503 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
49504 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
49505 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
49506 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
49507 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
49508 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
49509 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
49510 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
49511 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
49512 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
49513 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
49514 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
49515 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
49516 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
49517 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
49518 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
49519 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
49520 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
49521 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
49522 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
49523 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
49524 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
49525 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
49526 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
49527 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
49528 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
49529 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
49530 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
49531 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
49532 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
49533 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
49534 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
49535 static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
49536 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
49537 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
49538 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
49539 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
49540 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
49541 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
49542 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
49543 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
49544 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
49545 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
49546 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
49547 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
49548 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
49549 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
49550 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
49551 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
49552 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
49553 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
49554 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
49555 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
49556 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
49557 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
49558 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
49559 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
49560 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
49561 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
49562 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
49563 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
49564 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
49565 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
49566 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
49567 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
49568 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
49569 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
49570 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
49571 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
49572 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
49573 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
49574 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
49575 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
49576 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
49577 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
49578 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
49579 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
49580 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
49581 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
49582 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
49583 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
49584 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
49585 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
49586 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
49587 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
49588 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
49589 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
49590 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
49591 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
49592 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
49593 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
49594 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
49595 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
49596 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
49597 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
49598 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
49599 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
49600 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
49601 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
49602 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
49603 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
49604 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
49605 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
49606 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
49607 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
49608 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
49609 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
49610 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
49611 static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0};
49612 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
49613 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
49614 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
49615 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
49616 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
49617 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
49618 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
49619 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
49620 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
49621 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
49622 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
49623 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
49624 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
49625 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
49626 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
49627 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
49628 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
49629 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
49630 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
49631 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
49632 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
49633 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
49634 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
49635 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
49636 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
49637 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
49638 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
49639 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
49640
49641 static swig_type_info *swig_type_initial[] = {
49642 &_swigt__p_bool,
49643 &_swigt__p_char,
49644 &_swigt__p_form_ops_t,
49645 &_swigt__p_int,
49646 &_swigt__p_long,
49647 &_swigt__p_unsigned_char,
49648 &_swigt__p_unsigned_int,
49649 &_swigt__p_unsigned_long,
49650 &_swigt__p_void,
49651 &_swigt__p_wxANIHandler,
49652 &_swigt__p_wxAcceleratorTable,
49653 &_swigt__p_wxActivateEvent,
49654 &_swigt__p_wxArrayInt,
49655 &_swigt__p_wxArrayString,
49656 &_swigt__p_wxBMPHandler,
49657 &_swigt__p_wxBitmap,
49658 &_swigt__p_wxBitmapButton,
49659 &_swigt__p_wxBookCtrlBase,
49660 &_swigt__p_wxBookCtrlBaseEvent,
49661 &_swigt__p_wxBoxSizer,
49662 &_swigt__p_wxButton,
49663 &_swigt__p_wxCURHandler,
49664 &_swigt__p_wxCheckBox,
49665 &_swigt__p_wxCheckListBox,
49666 &_swigt__p_wxChildFocusEvent,
49667 &_swigt__p_wxChoice,
49668 &_swigt__p_wxChoicebook,
49669 &_swigt__p_wxChoicebookEvent,
49670 &_swigt__p_wxClipboardTextEvent,
49671 &_swigt__p_wxCloseEvent,
49672 &_swigt__p_wxCollapsiblePane,
49673 &_swigt__p_wxCollapsiblePaneEvent,
49674 &_swigt__p_wxColour,
49675 &_swigt__p_wxColourPickerCtrl,
49676 &_swigt__p_wxColourPickerEvent,
49677 &_swigt__p_wxComboBox,
49678 &_swigt__p_wxCommandEvent,
49679 &_swigt__p_wxContextHelp,
49680 &_swigt__p_wxContextHelpButton,
49681 &_swigt__p_wxContextMenuEvent,
49682 &_swigt__p_wxControl,
49683 &_swigt__p_wxControlWithItems,
49684 &_swigt__p_wxCursor,
49685 &_swigt__p_wxDC,
49686 &_swigt__p_wxDateEvent,
49687 &_swigt__p_wxDatePickerCtrl,
49688 &_swigt__p_wxDateTime,
49689 &_swigt__p_wxDirFilterListCtrl,
49690 &_swigt__p_wxDirPickerCtrl,
49691 &_swigt__p_wxDisplayChangedEvent,
49692 &_swigt__p_wxDropFilesEvent,
49693 &_swigt__p_wxDuplexMode,
49694 &_swigt__p_wxEraseEvent,
49695 &_swigt__p_wxEvent,
49696 &_swigt__p_wxEventBlocker,
49697 &_swigt__p_wxEvtHandler,
49698 &_swigt__p_wxFSFile,
49699 &_swigt__p_wxFileDirPickerEvent,
49700 &_swigt__p_wxFilePickerCtrl,
49701 &_swigt__p_wxFileSystem,
49702 &_swigt__p_wxFlexGridSizer,
49703 &_swigt__p_wxFocusEvent,
49704 &_swigt__p_wxFont,
49705 &_swigt__p_wxFontPickerCtrl,
49706 &_swigt__p_wxFontPickerEvent,
49707 &_swigt__p_wxGBSizerItem,
49708 &_swigt__p_wxGIFHandler,
49709 &_swigt__p_wxGauge,
49710 &_swigt__p_wxGenericDirCtrl,
49711 &_swigt__p_wxGenericDragImage,
49712 &_swigt__p_wxGridBagSizer,
49713 &_swigt__p_wxGridSizer,
49714 &_swigt__p_wxHelpEvent,
49715 &_swigt__p_wxHelpProvider,
49716 &_swigt__p_wxHyperlinkCtrl,
49717 &_swigt__p_wxHyperlinkEvent,
49718 &_swigt__p_wxICOHandler,
49719 &_swigt__p_wxIcon,
49720 &_swigt__p_wxIconizeEvent,
49721 &_swigt__p_wxIdleEvent,
49722 &_swigt__p_wxImage,
49723 &_swigt__p_wxImageHandler,
49724 &_swigt__p_wxImageList,
49725 &_swigt__p_wxIndividualLayoutConstraint,
49726 &_swigt__p_wxInitDialogEvent,
49727 &_swigt__p_wxItemContainer,
49728 &_swigt__p_wxJPEGHandler,
49729 &_swigt__p_wxKeyEvent,
49730 &_swigt__p_wxLayoutConstraints,
49731 &_swigt__p_wxListBox,
49732 &_swigt__p_wxListEvent,
49733 &_swigt__p_wxListItem,
49734 &_swigt__p_wxListItemAttr,
49735 &_swigt__p_wxListView,
49736 &_swigt__p_wxListbook,
49737 &_swigt__p_wxListbookEvent,
49738 &_swigt__p_wxMaximizeEvent,
49739 &_swigt__p_wxMemoryDC,
49740 &_swigt__p_wxMenu,
49741 &_swigt__p_wxMenuBar,
49742 &_swigt__p_wxMenuEvent,
49743 &_swigt__p_wxMenuItem,
49744 &_swigt__p_wxMouseCaptureChangedEvent,
49745 &_swigt__p_wxMouseCaptureLostEvent,
49746 &_swigt__p_wxMouseEvent,
49747 &_swigt__p_wxMoveEvent,
49748 &_swigt__p_wxNavigationKeyEvent,
49749 &_swigt__p_wxNcPaintEvent,
49750 &_swigt__p_wxNotebook,
49751 &_swigt__p_wxNotebookEvent,
49752 &_swigt__p_wxNotifyEvent,
49753 &_swigt__p_wxObject,
49754 &_swigt__p_wxPCXHandler,
49755 &_swigt__p_wxPNGHandler,
49756 &_swigt__p_wxPNMHandler,
49757 &_swigt__p_wxPaintEvent,
49758 &_swigt__p_wxPaletteChangedEvent,
49759 &_swigt__p_wxPaperSize,
49760 &_swigt__p_wxPickerBase,
49761 &_swigt__p_wxPoint,
49762 &_swigt__p_wxPyApp,
49763 &_swigt__p_wxPyCommandEvent,
49764 &_swigt__p_wxPyControl,
49765 &_swigt__p_wxPyEvent,
49766 &_swigt__p_wxPyImageHandler,
49767 &_swigt__p_wxPyListCtrl,
49768 &_swigt__p_wxPySizer,
49769 &_swigt__p_wxPyTreeCtrl,
49770 &_swigt__p_wxPyTreeItemData,
49771 &_swigt__p_wxPyValidator,
49772 &_swigt__p_wxQueryNewPaletteEvent,
49773 &_swigt__p_wxRadioBox,
49774 &_swigt__p_wxRadioButton,
49775 &_swigt__p_wxRect,
49776 &_swigt__p_wxScrollBar,
49777 &_swigt__p_wxScrollEvent,
49778 &_swigt__p_wxScrollWinEvent,
49779 &_swigt__p_wxSearchCtrl,
49780 &_swigt__p_wxSetCursorEvent,
49781 &_swigt__p_wxShowEvent,
49782 &_swigt__p_wxSimpleHelpProvider,
49783 &_swigt__p_wxSize,
49784 &_swigt__p_wxSizeEvent,
49785 &_swigt__p_wxSizer,
49786 &_swigt__p_wxSizerItem,
49787 &_swigt__p_wxSlider,
49788 &_swigt__p_wxSpinButton,
49789 &_swigt__p_wxSpinCtrl,
49790 &_swigt__p_wxSpinEvent,
49791 &_swigt__p_wxStaticBitmap,
49792 &_swigt__p_wxStaticBox,
49793 &_swigt__p_wxStaticBoxSizer,
49794 &_swigt__p_wxStaticLine,
49795 &_swigt__p_wxStaticText,
49796 &_swigt__p_wxStdDialogButtonSizer,
49797 &_swigt__p_wxString,
49798 &_swigt__p_wxSysColourChangedEvent,
49799 &_swigt__p_wxTGAHandler,
49800 &_swigt__p_wxTIFFHandler,
49801 &_swigt__p_wxTextAttr,
49802 &_swigt__p_wxTextCtrl,
49803 &_swigt__p_wxTextUrlEvent,
49804 &_swigt__p_wxToggleButton,
49805 &_swigt__p_wxToolBar,
49806 &_swigt__p_wxToolBarBase,
49807 &_swigt__p_wxToolBarToolBase,
49808 &_swigt__p_wxToolbook,
49809 &_swigt__p_wxToolbookEvent,
49810 &_swigt__p_wxTreeEvent,
49811 &_swigt__p_wxTreeItemId,
49812 &_swigt__p_wxTreebook,
49813 &_swigt__p_wxTreebookEvent,
49814 &_swigt__p_wxUpdateUIEvent,
49815 &_swigt__p_wxValidator,
49816 &_swigt__p_wxVisualAttributes,
49817 &_swigt__p_wxWindow,
49818 &_swigt__p_wxWindowBase,
49819 &_swigt__p_wxWindowCreateEvent,
49820 &_swigt__p_wxWindowDestroyEvent,
49821 &_swigt__p_wxXPMHandler,
49822 };
49823
49824 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
49825 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
49826 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
49827 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
49828 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
49829 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
49830 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
49831 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
49832 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
49833 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
49834 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
49835 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
49836 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}};
49837 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}};
49838 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}};
49839 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}};
49840 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
49841 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
49842 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
49843 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
49844 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49845 static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
49846 static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
49847 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
49848 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49849 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49850 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
49851 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
49852 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
49853 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
49854 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
49855 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49856 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49857 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
49858 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
49859 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
49860 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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_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}};
49861 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
49862 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
49863 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_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_wxSearchCtrl, _p_wxSearchCtrlTo_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}};
49864 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_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}};
49865 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
49866 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
49867 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49868 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
49869 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
49870 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49871 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
49872 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49873 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
49874 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
49875 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
49876 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
49877 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
49878 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
49879 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
49880 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49881 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49882 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
49883 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49884 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
49885 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
49886 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49887 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49888 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49889 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49890 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49891 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49892 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
49893 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49894 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
49895 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49896 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
49897 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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_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}};
49898 static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
49899 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
49900 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
49901 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
49902 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_p_wxEvtHandler, 0, 0}, {&_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_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_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_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 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_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_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_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_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}};
49903 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49904 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49905 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
49906 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49907 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49908 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
49909 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
49910 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
49911 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
49912 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}};
49913 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
49914 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
49915 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
49916 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
49917 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}};
49918 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49919 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}};
49920 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
49921 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
49922 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
49923 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
49924 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
49925 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49926 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
49927 static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
49928 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
49929 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
49930 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49931 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}};
49932 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
49933 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49934 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49935 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
49936 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49937 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49938 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
49939 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
49940 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49941 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49942 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
49943 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
49944 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
49945 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
49946 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
49947 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
49948 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
49949 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
49950 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
49951 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
49952 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
49953 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
49954 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49955 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49956 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
49957 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
49958 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
49959 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
49960 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
49961 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
49962 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
49963 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_wxEventBlocker, _p_wxEventBlockerTo_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_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_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_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_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_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_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_wxTGAHandler, _p_wxTGAHandlerTo_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_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_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_wxCollapsiblePane, _p_wxCollapsiblePaneTo_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_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_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}};
49964 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
49965 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}};
49966 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
49967 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
49968 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}};
49969 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
49970 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
49971 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
49972 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
49973 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
49974 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
49975 static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}};
49976 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
49977 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
49978 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
49979 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
49980 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
49981 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
49982 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
49983 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
49984 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
49985 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
49986 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
49987 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
49988 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxTextCtrl, 0, 0},{0, 0, 0, 0}};
49989 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
49990 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
49991 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
49992 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}};
49993 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
49994 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
49995 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49996 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
49997 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
49998 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
49999 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
50000 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}};
50001 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
50002 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_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_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_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_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_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_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
50003 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
50004
50005 static swig_cast_info *swig_cast_initial[] = {
50006 _swigc__p_bool,
50007 _swigc__p_char,
50008 _swigc__p_form_ops_t,
50009 _swigc__p_int,
50010 _swigc__p_long,
50011 _swigc__p_unsigned_char,
50012 _swigc__p_unsigned_int,
50013 _swigc__p_unsigned_long,
50014 _swigc__p_void,
50015 _swigc__p_wxANIHandler,
50016 _swigc__p_wxAcceleratorTable,
50017 _swigc__p_wxActivateEvent,
50018 _swigc__p_wxArrayInt,
50019 _swigc__p_wxArrayString,
50020 _swigc__p_wxBMPHandler,
50021 _swigc__p_wxBitmap,
50022 _swigc__p_wxBitmapButton,
50023 _swigc__p_wxBookCtrlBase,
50024 _swigc__p_wxBookCtrlBaseEvent,
50025 _swigc__p_wxBoxSizer,
50026 _swigc__p_wxButton,
50027 _swigc__p_wxCURHandler,
50028 _swigc__p_wxCheckBox,
50029 _swigc__p_wxCheckListBox,
50030 _swigc__p_wxChildFocusEvent,
50031 _swigc__p_wxChoice,
50032 _swigc__p_wxChoicebook,
50033 _swigc__p_wxChoicebookEvent,
50034 _swigc__p_wxClipboardTextEvent,
50035 _swigc__p_wxCloseEvent,
50036 _swigc__p_wxCollapsiblePane,
50037 _swigc__p_wxCollapsiblePaneEvent,
50038 _swigc__p_wxColour,
50039 _swigc__p_wxColourPickerCtrl,
50040 _swigc__p_wxColourPickerEvent,
50041 _swigc__p_wxComboBox,
50042 _swigc__p_wxCommandEvent,
50043 _swigc__p_wxContextHelp,
50044 _swigc__p_wxContextHelpButton,
50045 _swigc__p_wxContextMenuEvent,
50046 _swigc__p_wxControl,
50047 _swigc__p_wxControlWithItems,
50048 _swigc__p_wxCursor,
50049 _swigc__p_wxDC,
50050 _swigc__p_wxDateEvent,
50051 _swigc__p_wxDatePickerCtrl,
50052 _swigc__p_wxDateTime,
50053 _swigc__p_wxDirFilterListCtrl,
50054 _swigc__p_wxDirPickerCtrl,
50055 _swigc__p_wxDisplayChangedEvent,
50056 _swigc__p_wxDropFilesEvent,
50057 _swigc__p_wxDuplexMode,
50058 _swigc__p_wxEraseEvent,
50059 _swigc__p_wxEvent,
50060 _swigc__p_wxEventBlocker,
50061 _swigc__p_wxEvtHandler,
50062 _swigc__p_wxFSFile,
50063 _swigc__p_wxFileDirPickerEvent,
50064 _swigc__p_wxFilePickerCtrl,
50065 _swigc__p_wxFileSystem,
50066 _swigc__p_wxFlexGridSizer,
50067 _swigc__p_wxFocusEvent,
50068 _swigc__p_wxFont,
50069 _swigc__p_wxFontPickerCtrl,
50070 _swigc__p_wxFontPickerEvent,
50071 _swigc__p_wxGBSizerItem,
50072 _swigc__p_wxGIFHandler,
50073 _swigc__p_wxGauge,
50074 _swigc__p_wxGenericDirCtrl,
50075 _swigc__p_wxGenericDragImage,
50076 _swigc__p_wxGridBagSizer,
50077 _swigc__p_wxGridSizer,
50078 _swigc__p_wxHelpEvent,
50079 _swigc__p_wxHelpProvider,
50080 _swigc__p_wxHyperlinkCtrl,
50081 _swigc__p_wxHyperlinkEvent,
50082 _swigc__p_wxICOHandler,
50083 _swigc__p_wxIcon,
50084 _swigc__p_wxIconizeEvent,
50085 _swigc__p_wxIdleEvent,
50086 _swigc__p_wxImage,
50087 _swigc__p_wxImageHandler,
50088 _swigc__p_wxImageList,
50089 _swigc__p_wxIndividualLayoutConstraint,
50090 _swigc__p_wxInitDialogEvent,
50091 _swigc__p_wxItemContainer,
50092 _swigc__p_wxJPEGHandler,
50093 _swigc__p_wxKeyEvent,
50094 _swigc__p_wxLayoutConstraints,
50095 _swigc__p_wxListBox,
50096 _swigc__p_wxListEvent,
50097 _swigc__p_wxListItem,
50098 _swigc__p_wxListItemAttr,
50099 _swigc__p_wxListView,
50100 _swigc__p_wxListbook,
50101 _swigc__p_wxListbookEvent,
50102 _swigc__p_wxMaximizeEvent,
50103 _swigc__p_wxMemoryDC,
50104 _swigc__p_wxMenu,
50105 _swigc__p_wxMenuBar,
50106 _swigc__p_wxMenuEvent,
50107 _swigc__p_wxMenuItem,
50108 _swigc__p_wxMouseCaptureChangedEvent,
50109 _swigc__p_wxMouseCaptureLostEvent,
50110 _swigc__p_wxMouseEvent,
50111 _swigc__p_wxMoveEvent,
50112 _swigc__p_wxNavigationKeyEvent,
50113 _swigc__p_wxNcPaintEvent,
50114 _swigc__p_wxNotebook,
50115 _swigc__p_wxNotebookEvent,
50116 _swigc__p_wxNotifyEvent,
50117 _swigc__p_wxObject,
50118 _swigc__p_wxPCXHandler,
50119 _swigc__p_wxPNGHandler,
50120 _swigc__p_wxPNMHandler,
50121 _swigc__p_wxPaintEvent,
50122 _swigc__p_wxPaletteChangedEvent,
50123 _swigc__p_wxPaperSize,
50124 _swigc__p_wxPickerBase,
50125 _swigc__p_wxPoint,
50126 _swigc__p_wxPyApp,
50127 _swigc__p_wxPyCommandEvent,
50128 _swigc__p_wxPyControl,
50129 _swigc__p_wxPyEvent,
50130 _swigc__p_wxPyImageHandler,
50131 _swigc__p_wxPyListCtrl,
50132 _swigc__p_wxPySizer,
50133 _swigc__p_wxPyTreeCtrl,
50134 _swigc__p_wxPyTreeItemData,
50135 _swigc__p_wxPyValidator,
50136 _swigc__p_wxQueryNewPaletteEvent,
50137 _swigc__p_wxRadioBox,
50138 _swigc__p_wxRadioButton,
50139 _swigc__p_wxRect,
50140 _swigc__p_wxScrollBar,
50141 _swigc__p_wxScrollEvent,
50142 _swigc__p_wxScrollWinEvent,
50143 _swigc__p_wxSearchCtrl,
50144 _swigc__p_wxSetCursorEvent,
50145 _swigc__p_wxShowEvent,
50146 _swigc__p_wxSimpleHelpProvider,
50147 _swigc__p_wxSize,
50148 _swigc__p_wxSizeEvent,
50149 _swigc__p_wxSizer,
50150 _swigc__p_wxSizerItem,
50151 _swigc__p_wxSlider,
50152 _swigc__p_wxSpinButton,
50153 _swigc__p_wxSpinCtrl,
50154 _swigc__p_wxSpinEvent,
50155 _swigc__p_wxStaticBitmap,
50156 _swigc__p_wxStaticBox,
50157 _swigc__p_wxStaticBoxSizer,
50158 _swigc__p_wxStaticLine,
50159 _swigc__p_wxStaticText,
50160 _swigc__p_wxStdDialogButtonSizer,
50161 _swigc__p_wxString,
50162 _swigc__p_wxSysColourChangedEvent,
50163 _swigc__p_wxTGAHandler,
50164 _swigc__p_wxTIFFHandler,
50165 _swigc__p_wxTextAttr,
50166 _swigc__p_wxTextCtrl,
50167 _swigc__p_wxTextUrlEvent,
50168 _swigc__p_wxToggleButton,
50169 _swigc__p_wxToolBar,
50170 _swigc__p_wxToolBarBase,
50171 _swigc__p_wxToolBarToolBase,
50172 _swigc__p_wxToolbook,
50173 _swigc__p_wxToolbookEvent,
50174 _swigc__p_wxTreeEvent,
50175 _swigc__p_wxTreeItemId,
50176 _swigc__p_wxTreebook,
50177 _swigc__p_wxTreebookEvent,
50178 _swigc__p_wxUpdateUIEvent,
50179 _swigc__p_wxValidator,
50180 _swigc__p_wxVisualAttributes,
50181 _swigc__p_wxWindow,
50182 _swigc__p_wxWindowBase,
50183 _swigc__p_wxWindowCreateEvent,
50184 _swigc__p_wxWindowDestroyEvent,
50185 _swigc__p_wxXPMHandler,
50186 };
50187
50188
50189 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
50190
50191 static swig_const_info swig_const_table[] = {
50192 {0, 0, 0, 0.0, 0, 0}};
50193
50194 #ifdef __cplusplus
50195 }
50196 #endif
50197 /* -----------------------------------------------------------------------------
50198 * Type initialization:
50199 * This problem is tough by the requirement that no dynamic
50200 * memory is used. Also, since swig_type_info structures store pointers to
50201 * swig_cast_info structures and swig_cast_info structures store pointers back
50202 * to swig_type_info structures, we need some lookup code at initialization.
50203 * The idea is that swig generates all the structures that are needed.
50204 * The runtime then collects these partially filled structures.
50205 * The SWIG_InitializeModule function takes these initial arrays out of
50206 * swig_module, and does all the lookup, filling in the swig_module.types
50207 * array with the correct data and linking the correct swig_cast_info
50208 * structures together.
50209 *
50210 * The generated swig_type_info structures are assigned staticly to an initial
50211 * array. We just loop though that array, and handle each type individually.
50212 * First we lookup if this type has been already loaded, and if so, use the
50213 * loaded structure instead of the generated one. Then we have to fill in the
50214 * cast linked list. The cast data is initially stored in something like a
50215 * two-dimensional array. Each row corresponds to a type (there are the same
50216 * number of rows as there are in the swig_type_initial array). Each entry in
50217 * a column is one of the swig_cast_info structures for that type.
50218 * The cast_initial array is actually an array of arrays, because each row has
50219 * a variable number of columns. So to actually build the cast linked list,
50220 * we find the array of casts associated with the type, and loop through it
50221 * adding the casts to the list. The one last trick we need to do is making
50222 * sure the type pointer in the swig_cast_info struct is correct.
50223 *
50224 * First off, we lookup the cast->type name to see if it is already loaded.
50225 * There are three cases to handle:
50226 * 1) If the cast->type has already been loaded AND the type we are adding
50227 * casting info to has not been loaded (it is in this module), THEN we
50228 * replace the cast->type pointer with the type pointer that has already
50229 * been loaded.
50230 * 2) If BOTH types (the one we are adding casting info to, and the
50231 * cast->type) are loaded, THEN the cast info has already been loaded by
50232 * the previous module so we just ignore it.
50233 * 3) Finally, if cast->type has not already been loaded, then we add that
50234 * swig_cast_info to the linked list (because the cast->type) pointer will
50235 * be correct.
50236 * ----------------------------------------------------------------------------- */
50237
50238 #ifdef __cplusplus
50239 extern "C" {
50240 #if 0
50241 } /* c-mode */
50242 #endif
50243 #endif
50244
50245 #if 0
50246 #define SWIGRUNTIME_DEBUG
50247 #endif
50248
50249 SWIGRUNTIME void
50250 SWIG_InitializeModule(void *clientdata) {
50251 size_t i;
50252 swig_module_info *module_head;
50253 static int init_run = 0;
50254
50255 clientdata = clientdata;
50256
50257 if (init_run) return;
50258 init_run = 1;
50259
50260 /* Initialize the swig_module */
50261 swig_module.type_initial = swig_type_initial;
50262 swig_module.cast_initial = swig_cast_initial;
50263
50264 /* Try and load any already created modules */
50265 module_head = SWIG_GetModule(clientdata);
50266 if (module_head) {
50267 swig_module.next = module_head->next;
50268 module_head->next = &swig_module;
50269 } else {
50270 /* This is the first module loaded */
50271 swig_module.next = &swig_module;
50272 SWIG_SetModule(clientdata, &swig_module);
50273 }
50274
50275 /* Now work on filling in swig_module.types */
50276 #ifdef SWIGRUNTIME_DEBUG
50277 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
50278 #endif
50279 for (i = 0; i < swig_module.size; ++i) {
50280 swig_type_info *type = 0;
50281 swig_type_info *ret;
50282 swig_cast_info *cast;
50283
50284 #ifdef SWIGRUNTIME_DEBUG
50285 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50286 #endif
50287
50288 /* if there is another module already loaded */
50289 if (swig_module.next != &swig_module) {
50290 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
50291 }
50292 if (type) {
50293 /* Overwrite clientdata field */
50294 #ifdef SWIGRUNTIME_DEBUG
50295 printf("SWIG_InitializeModule: found type %s\n", type->name);
50296 #endif
50297 if (swig_module.type_initial[i]->clientdata) {
50298 type->clientdata = swig_module.type_initial[i]->clientdata;
50299 #ifdef SWIGRUNTIME_DEBUG
50300 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
50301 #endif
50302 }
50303 } else {
50304 type = swig_module.type_initial[i];
50305 }
50306
50307 /* Insert casting types */
50308 cast = swig_module.cast_initial[i];
50309 while (cast->type) {
50310 /* Don't need to add information already in the list */
50311 ret = 0;
50312 #ifdef SWIGRUNTIME_DEBUG
50313 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
50314 #endif
50315 if (swig_module.next != &swig_module) {
50316 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
50317 #ifdef SWIGRUNTIME_DEBUG
50318 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
50319 #endif
50320 }
50321 if (ret) {
50322 if (type == swig_module.type_initial[i]) {
50323 #ifdef SWIGRUNTIME_DEBUG
50324 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
50325 #endif
50326 cast->type = ret;
50327 ret = 0;
50328 } else {
50329 /* Check for casting already in the list */
50330 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
50331 #ifdef SWIGRUNTIME_DEBUG
50332 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
50333 #endif
50334 if (!ocast) ret = 0;
50335 }
50336 }
50337
50338 if (!ret) {
50339 #ifdef SWIGRUNTIME_DEBUG
50340 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
50341 #endif
50342 if (type->cast) {
50343 type->cast->prev = cast;
50344 cast->next = type->cast;
50345 }
50346 type->cast = cast;
50347 }
50348 cast++;
50349 }
50350 /* Set entry in modules->types array equal to the type */
50351 swig_module.types[i] = type;
50352 }
50353 swig_module.types[i] = 0;
50354
50355 #ifdef SWIGRUNTIME_DEBUG
50356 printf("**** SWIG_InitializeModule: Cast List ******\n");
50357 for (i = 0; i < swig_module.size; ++i) {
50358 int j = 0;
50359 swig_cast_info *cast = swig_module.cast_initial[i];
50360 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50361 while (cast->type) {
50362 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
50363 cast++;
50364 ++j;
50365 }
50366 printf("---- Total casts: %d\n",j);
50367 }
50368 printf("**** SWIG_InitializeModule: Cast List ******\n");
50369 #endif
50370 }
50371
50372 /* This function will propagate the clientdata field of type to
50373 * any new swig_type_info structures that have been added into the list
50374 * of equivalent types. It is like calling
50375 * SWIG_TypeClientData(type, clientdata) a second time.
50376 */
50377 SWIGRUNTIME void
50378 SWIG_PropagateClientData(void) {
50379 size_t i;
50380 swig_cast_info *equiv;
50381 static int init_run = 0;
50382
50383 if (init_run) return;
50384 init_run = 1;
50385
50386 for (i = 0; i < swig_module.size; i++) {
50387 if (swig_module.types[i]->clientdata) {
50388 equiv = swig_module.types[i]->cast;
50389 while (equiv) {
50390 if (!equiv->converter) {
50391 if (equiv->type && !equiv->type->clientdata)
50392 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
50393 }
50394 equiv = equiv->next;
50395 }
50396 }
50397 }
50398 }
50399
50400 #ifdef __cplusplus
50401 #if 0
50402 {
50403 /* c-mode */
50404 #endif
50405 }
50406 #endif
50407
50408
50409
50410 #ifdef __cplusplus
50411 extern "C" {
50412 #endif
50413
50414 /* Python-specific SWIG API */
50415 #define SWIG_newvarlink() SWIG_Python_newvarlink()
50416 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
50417 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
50418
50419 /* -----------------------------------------------------------------------------
50420 * global variable support code.
50421 * ----------------------------------------------------------------------------- */
50422
50423 typedef struct swig_globalvar {
50424 char *name; /* Name of global variable */
50425 PyObject *(*get_attr)(void); /* Return the current value */
50426 int (*set_attr)(PyObject *); /* Set the value */
50427 struct swig_globalvar *next;
50428 } swig_globalvar;
50429
50430 typedef struct swig_varlinkobject {
50431 PyObject_HEAD
50432 swig_globalvar *vars;
50433 } swig_varlinkobject;
50434
50435 SWIGINTERN PyObject *
50436 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
50437 return PyString_FromString("<Swig global variables>");
50438 }
50439
50440 SWIGINTERN PyObject *
50441 swig_varlink_str(swig_varlinkobject *v) {
50442 PyObject *str = PyString_FromString("(");
50443 swig_globalvar *var;
50444 for (var = v->vars; var; var=var->next) {
50445 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
50446 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
50447 }
50448 PyString_ConcatAndDel(&str,PyString_FromString(")"));
50449 return str;
50450 }
50451
50452 SWIGINTERN int
50453 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
50454 PyObject *str = swig_varlink_str(v);
50455 fprintf(fp,"Swig global variables ");
50456 fprintf(fp,"%s\n", PyString_AsString(str));
50457 Py_DECREF(str);
50458 return 0;
50459 }
50460
50461 SWIGINTERN void
50462 swig_varlink_dealloc(swig_varlinkobject *v) {
50463 swig_globalvar *var = v->vars;
50464 while (var) {
50465 swig_globalvar *n = var->next;
50466 free(var->name);
50467 free(var);
50468 var = n;
50469 }
50470 }
50471
50472 SWIGINTERN PyObject *
50473 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
50474 PyObject *res = NULL;
50475 swig_globalvar *var = v->vars;
50476 while (var) {
50477 if (strcmp(var->name,n) == 0) {
50478 res = (*var->get_attr)();
50479 break;
50480 }
50481 var = var->next;
50482 }
50483 if (res == NULL && !PyErr_Occurred()) {
50484 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50485 }
50486 return res;
50487 }
50488
50489 SWIGINTERN int
50490 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
50491 int res = 1;
50492 swig_globalvar *var = v->vars;
50493 while (var) {
50494 if (strcmp(var->name,n) == 0) {
50495 res = (*var->set_attr)(p);
50496 break;
50497 }
50498 var = var->next;
50499 }
50500 if (res == 1 && !PyErr_Occurred()) {
50501 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50502 }
50503 return res;
50504 }
50505
50506 SWIGINTERN PyTypeObject*
50507 swig_varlink_type(void) {
50508 static char varlink__doc__[] = "Swig var link object";
50509 static PyTypeObject varlink_type;
50510 static int type_init = 0;
50511 if (!type_init) {
50512 const PyTypeObject tmp
50513 = {
50514 PyObject_HEAD_INIT(NULL)
50515 0, /* Number of items in variable part (ob_size) */
50516 (char *)"swigvarlink", /* Type name (tp_name) */
50517 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
50518 0, /* Itemsize (tp_itemsize) */
50519 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
50520 (printfunc) swig_varlink_print, /* Print (tp_print) */
50521 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
50522 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
50523 0, /* tp_compare */
50524 (reprfunc) swig_varlink_repr, /* tp_repr */
50525 0, /* tp_as_number */
50526 0, /* tp_as_sequence */
50527 0, /* tp_as_mapping */
50528 0, /* tp_hash */
50529 0, /* tp_call */
50530 (reprfunc)swig_varlink_str, /* tp_str */
50531 0, /* tp_getattro */
50532 0, /* tp_setattro */
50533 0, /* tp_as_buffer */
50534 0, /* tp_flags */
50535 varlink__doc__, /* tp_doc */
50536 0, /* tp_traverse */
50537 0, /* tp_clear */
50538 0, /* tp_richcompare */
50539 0, /* tp_weaklistoffset */
50540 #if PY_VERSION_HEX >= 0x02020000
50541 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
50542 #endif
50543 #if PY_VERSION_HEX >= 0x02030000
50544 0, /* tp_del */
50545 #endif
50546 #ifdef COUNT_ALLOCS
50547 0,0,0,0 /* tp_alloc -> tp_next */
50548 #endif
50549 };
50550 varlink_type = tmp;
50551 varlink_type.ob_type = &PyType_Type;
50552 type_init = 1;
50553 }
50554 return &varlink_type;
50555 }
50556
50557 /* Create a variable linking object for use later */
50558 SWIGINTERN PyObject *
50559 SWIG_Python_newvarlink(void) {
50560 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
50561 if (result) {
50562 result->vars = 0;
50563 }
50564 return ((PyObject*) result);
50565 }
50566
50567 SWIGINTERN void
50568 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
50569 swig_varlinkobject *v = (swig_varlinkobject *) p;
50570 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
50571 if (gv) {
50572 size_t size = strlen(name)+1;
50573 gv->name = (char *)malloc(size);
50574 if (gv->name) {
50575 strncpy(gv->name,name,size);
50576 gv->get_attr = get_attr;
50577 gv->set_attr = set_attr;
50578 gv->next = v->vars;
50579 }
50580 }
50581 v->vars = gv;
50582 }
50583
50584 SWIGINTERN PyObject *
50585 SWIG_globals() {
50586 static PyObject *_SWIG_globals = 0;
50587 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
50588 return _SWIG_globals;
50589 }
50590
50591 /* -----------------------------------------------------------------------------
50592 * constants/methods manipulation
50593 * ----------------------------------------------------------------------------- */
50594
50595 /* Install Constants */
50596 SWIGINTERN void
50597 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
50598 PyObject *obj = 0;
50599 size_t i;
50600 for (i = 0; constants[i].type; ++i) {
50601 switch(constants[i].type) {
50602 case SWIG_PY_POINTER:
50603 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
50604 break;
50605 case SWIG_PY_BINARY:
50606 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
50607 break;
50608 default:
50609 obj = 0;
50610 break;
50611 }
50612 if (obj) {
50613 PyDict_SetItemString(d, constants[i].name, obj);
50614 Py_DECREF(obj);
50615 }
50616 }
50617 }
50618
50619 /* -----------------------------------------------------------------------------*/
50620 /* Fix SwigMethods to carry the callback ptrs when needed */
50621 /* -----------------------------------------------------------------------------*/
50622
50623 SWIGINTERN void
50624 SWIG_Python_FixMethods(PyMethodDef *methods,
50625 swig_const_info *const_table,
50626 swig_type_info **types,
50627 swig_type_info **types_initial) {
50628 size_t i;
50629 for (i = 0; methods[i].ml_name; ++i) {
50630 const char *c = methods[i].ml_doc;
50631 if (c && (c = strstr(c, "swig_ptr: "))) {
50632 int j;
50633 swig_const_info *ci = 0;
50634 const char *name = c + 10;
50635 for (j = 0; const_table[j].type; ++j) {
50636 if (strncmp(const_table[j].name, name,
50637 strlen(const_table[j].name)) == 0) {
50638 ci = &(const_table[j]);
50639 break;
50640 }
50641 }
50642 if (ci) {
50643 size_t shift = (ci->ptype) - types;
50644 swig_type_info *ty = types_initial[shift];
50645 size_t ldoc = (c - methods[i].ml_doc);
50646 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
50647 char *ndoc = (char*)malloc(ldoc + lptr + 10);
50648 if (ndoc) {
50649 char *buff = ndoc;
50650 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
50651 if (ptr) {
50652 strncpy(buff, methods[i].ml_doc, ldoc);
50653 buff += ldoc;
50654 strncpy(buff, "swig_ptr: ", 10);
50655 buff += 10;
50656 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
50657 methods[i].ml_doc = ndoc;
50658 }
50659 }
50660 }
50661 }
50662 }
50663 }
50664
50665 #ifdef __cplusplus
50666 }
50667 #endif
50668
50669 /* -----------------------------------------------------------------------------*
50670 * Partial Init method
50671 * -----------------------------------------------------------------------------*/
50672
50673 #ifdef __cplusplus
50674 extern "C"
50675 #endif
50676 SWIGEXPORT void SWIG_init(void) {
50677 PyObject *m, *d;
50678
50679 /* Fix SwigMethods to carry the callback ptrs when needed */
50680 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
50681
50682 m = Py_InitModule((char *) SWIG_name, SwigMethods);
50683 d = PyModule_GetDict(m);
50684
50685 SWIG_InitializeModule(0);
50686 SWIG_InstallConstants(d,swig_const_table);
50687
50688
50689 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
50690 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
50691 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
50692 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
50693 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
50694 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
50695 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
50696 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
50697 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
50698 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
50699 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
50700 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
50701 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
50702 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
50703 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
50704 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
50705 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
50706 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
50707 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
50708 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
50709 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
50710 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
50711 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
50712 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
50713 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
50714 SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
50715 SWIG_Python_SetConstant(d, "ST_NO_AUTORESIZE",SWIG_From_int(static_cast< int >(wxST_NO_AUTORESIZE)));
50716 SWIG_Python_SetConstant(d, "ST_MARKUP",SWIG_From_int(static_cast< int >(wxST_MARKUP)));
50717 SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_START",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_START)));
50718 SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_MIDDLE",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_MIDDLE)));
50719 SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_END",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_END)));
50720 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
50721 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
50722 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
50723 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
50724 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
50725 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
50726 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
50727 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
50728 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
50729 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
50730 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
50731 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
50732 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
50733 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
50734 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
50735 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
50736 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
50737 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
50738 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
50739 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
50740 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
50741 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
50742 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
50743 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
50744 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
50745 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
50746 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
50747 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
50748 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
50749 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
50750 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
50751 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
50752 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
50753 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
50754 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
50755 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
50756 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
50757 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
50758 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
50759 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
50760 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
50761 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
50762 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
50763 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
50764 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
50765 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
50766 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
50767 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
50768 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
50769 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
50770 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
50771 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
50772 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
50773 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
50774 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
50775 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
50776 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
50777 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
50778 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
50779 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
50780 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
50781 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
50782 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
50783 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
50784 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
50785 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
50786 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
50787 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
50788 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
50789 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
50790 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
50791 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
50792 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
50793 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
50794 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
50795 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
50796 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
50797 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
50798 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
50799 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
50800 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
50801 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
50802 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
50803 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
50804 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
50805 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
50806 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
50807 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
50808 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
50809 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
50810 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
50811 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
50812 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
50813 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
50814 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
50815 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
50816 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
50817 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
50818 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
50819 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
50820 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
50821 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
50822 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
50823 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
50824 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
50825 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
50826 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
50827 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
50828 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
50829 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
50830 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
50831 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
50832 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
50833 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
50834 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
50835 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
50836 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
50837 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
50838 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
50839 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
50840 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
50841 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
50842 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
50843 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
50844 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
50845 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
50846 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
50847 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
50848 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
50849 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
50850 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
50851 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
50852 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
50853 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
50854 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
50855 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
50856 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
50857 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
50858 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
50859 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
50860 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
50861 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
50862 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
50863 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
50864 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
50865 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
50866 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
50867 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
50868 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
50869 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
50870 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
50871 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
50872 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
50873 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
50874 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
50875 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
50876 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
50877 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
50878 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
50879 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
50880 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
50881 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
50882 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
50883 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
50884 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
50885 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
50886 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
50887 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
50888 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
50889 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
50890 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
50891 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
50892 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
50893 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
50894 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
50895 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
50896 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
50897 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
50898 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
50899 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
50900 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
50901 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
50902 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
50903 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
50904 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
50905 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
50906 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
50907 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
50908 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
50909 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
50910 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
50911 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
50912 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
50913 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
50914 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
50915 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
50916 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
50917 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
50918 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
50919 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
50920 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
50921 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
50922 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
50923 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
50924 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
50925 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
50926 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
50927 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
50928 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
50929 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
50930 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
50931 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
50932 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
50933 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
50934 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
50935 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
50936 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
50937 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
50938 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
50939 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
50940 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
50941 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
50942 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
50943 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
50944 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
50945 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
50946 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
50947 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
50948 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
50949 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
50950 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
50951 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
50952 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
50953 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
50954 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
50955
50956 // Map renamed classes back to their common name for OOR
50957 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
50958
50959 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
50960 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
50961 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
50962 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
50963 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
50964 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
50965 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
50966 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
50967 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
50968 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
50969 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
50970 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
50971 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
50972 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
50973 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
50974 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
50975 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
50976 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
50977 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
50978 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
50979 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
50980 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
50981 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
50982 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
50983 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
50984 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
50985 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
50986 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
50987 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
50988 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
50989 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
50990 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
50991 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
50992 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
50993 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
50994 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
50995 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
50996 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
50997 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
50998 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
50999 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
51000 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
51001 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
51002 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
51003 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
51004 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
51005 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
51006 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
51007 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
51008 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
51009 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
51010 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
51011 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
51012 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
51013 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
51014 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
51015
51016 // Map renamed classes back to their common name for OOR
51017 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
51018 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
51019
51020 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
51021 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
51022 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
51023 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
51024 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
51025 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
51026 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
51027 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
51028 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
51029 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
51030 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
51031
51032 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
51033
51034 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
51035 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
51036 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
51037 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
51038 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
51039 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
51040 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
51041 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
51042 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
51043 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
51044 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
51045 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
51046 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
51047 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
51048 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
51049 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
51050 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
51051 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
51052 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
51053 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
51054 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
51055 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
51056 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
51057 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
51058 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
51059 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
51060 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
51061 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
51062 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
51063 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
51064 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
51065 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
51066 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
51067 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
51068 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
51069 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
51070 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
51071 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
51072 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
51073 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
51074 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
51075 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
51076 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
51077 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
51078 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
51079 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
51080 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
51081 SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set);
51082 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN));
51083 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN));
51084 }
51085