]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_bool swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_long swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2479 #define SWIGTYPE_p_wxArrayString swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486 #define SWIGTYPE_p_wxButton swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2489 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxChoice swig_types[25]
2492 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2493 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2494 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496 #define SWIGTYPE_p_wxColour swig_types[30]
2497 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2498 #define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2499 #define SWIGTYPE_p_wxComboBox swig_types[33]
2500 #define SWIGTYPE_p_wxCommandEvent swig_types[34]
2501 #define SWIGTYPE_p_wxContextHelp swig_types[35]
2502 #define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2503 #define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2504 #define SWIGTYPE_p_wxControl swig_types[38]
2505 #define SWIGTYPE_p_wxControlWithItems swig_types[39]
2506 #define SWIGTYPE_p_wxCursor swig_types[40]
2507 #define SWIGTYPE_p_wxDC swig_types[41]
2508 #define SWIGTYPE_p_wxDateEvent swig_types[42]
2509 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2510 #define SWIGTYPE_p_wxDateTime swig_types[44]
2511 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2513 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2514 #define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2515 #define SWIGTYPE_p_wxDuplexMode swig_types[49]
2516 #define SWIGTYPE_p_wxEraseEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvent swig_types[51]
2518 #define SWIGTYPE_p_wxEvtHandler swig_types[52]
2519 #define SWIGTYPE_p_wxFSFile swig_types[53]
2520 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2521 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2522 #define SWIGTYPE_p_wxFileSystem swig_types[56]
2523 #define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2524 #define SWIGTYPE_p_wxFocusEvent swig_types[58]
2525 #define SWIGTYPE_p_wxFont swig_types[59]
2526 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2527 #define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2528 #define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGauge swig_types[64]
2531 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2532 #define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2533 #define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2534 #define SWIGTYPE_p_wxGridSizer swig_types[68]
2535 #define SWIGTYPE_p_wxHelpEvent swig_types[69]
2536 #define SWIGTYPE_p_wxHelpProvider swig_types[70]
2537 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2538 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2539 #define SWIGTYPE_p_wxICOHandler swig_types[73]
2540 #define SWIGTYPE_p_wxIcon swig_types[74]
2541 #define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2542 #define SWIGTYPE_p_wxIdleEvent swig_types[76]
2543 #define SWIGTYPE_p_wxImage swig_types[77]
2544 #define SWIGTYPE_p_wxImageHandler swig_types[78]
2545 #define SWIGTYPE_p_wxImageList swig_types[79]
2546 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2547 #define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2548 #define SWIGTYPE_p_wxItemContainer swig_types[82]
2549 #define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2550 #define SWIGTYPE_p_wxKeyEvent swig_types[84]
2551 #define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2552 #define SWIGTYPE_p_wxListBox swig_types[86]
2553 #define SWIGTYPE_p_wxListEvent swig_types[87]
2554 #define SWIGTYPE_p_wxListItem swig_types[88]
2555 #define SWIGTYPE_p_wxListItemAttr swig_types[89]
2556 #define SWIGTYPE_p_wxListView swig_types[90]
2557 #define SWIGTYPE_p_wxListbook swig_types[91]
2558 #define SWIGTYPE_p_wxListbookEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2560 #define SWIGTYPE_p_wxMemoryDC swig_types[94]
2561 #define SWIGTYPE_p_wxMenu swig_types[95]
2562 #define SWIGTYPE_p_wxMenuBar swig_types[96]
2563 #define SWIGTYPE_p_wxMenuEvent swig_types[97]
2564 #define SWIGTYPE_p_wxMenuItem swig_types[98]
2565 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
2566 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMouseEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMoveEvent swig_types[102]
2569 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[103]
2570 #define SWIGTYPE_p_wxNcPaintEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNotebook swig_types[105]
2572 #define SWIGTYPE_p_wxNotebookEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNotifyEvent swig_types[107]
2574 #define SWIGTYPE_p_wxObject swig_types[108]
2575 #define SWIGTYPE_p_wxPCXHandler swig_types[109]
2576 #define SWIGTYPE_p_wxPNGHandler swig_types[110]
2577 #define SWIGTYPE_p_wxPNMHandler swig_types[111]
2578 #define SWIGTYPE_p_wxPaintEvent swig_types[112]
2579 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[113]
2580 #define SWIGTYPE_p_wxPaperSize swig_types[114]
2581 #define SWIGTYPE_p_wxPickerBase swig_types[115]
2582 #define SWIGTYPE_p_wxPoint swig_types[116]
2583 #define SWIGTYPE_p_wxPyApp swig_types[117]
2584 #define SWIGTYPE_p_wxPyCommandEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPyControl swig_types[119]
2586 #define SWIGTYPE_p_wxPyEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyImageHandler swig_types[121]
2588 #define SWIGTYPE_p_wxPyListCtrl swig_types[122]
2589 #define SWIGTYPE_p_wxPySizer swig_types[123]
2590 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[124]
2591 #define SWIGTYPE_p_wxPyTreeItemData swig_types[125]
2592 #define SWIGTYPE_p_wxPyValidator swig_types[126]
2593 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594 #define SWIGTYPE_p_wxRadioBox swig_types[128]
2595 #define SWIGTYPE_p_wxRadioButton swig_types[129]
2596 #define SWIGTYPE_p_wxRect swig_types[130]
2597 #define SWIGTYPE_p_wxScrollBar swig_types[131]
2598 #define SWIGTYPE_p_wxScrollEvent swig_types[132]
2599 #define SWIGTYPE_p_wxScrollWinEvent swig_types[133]
2600 #define SWIGTYPE_p_wxSetCursorEvent swig_types[134]
2601 #define SWIGTYPE_p_wxShowEvent swig_types[135]
2602 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[136]
2603 #define SWIGTYPE_p_wxSize swig_types[137]
2604 #define SWIGTYPE_p_wxSizeEvent swig_types[138]
2605 #define SWIGTYPE_p_wxSizer swig_types[139]
2606 #define SWIGTYPE_p_wxSizerItem swig_types[140]
2607 #define SWIGTYPE_p_wxSlider swig_types[141]
2608 #define SWIGTYPE_p_wxSpinButton swig_types[142]
2609 #define SWIGTYPE_p_wxSpinCtrl swig_types[143]
2610 #define SWIGTYPE_p_wxSpinEvent swig_types[144]
2611 #define SWIGTYPE_p_wxStaticBitmap swig_types[145]
2612 #define SWIGTYPE_p_wxStaticBox swig_types[146]
2613 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[147]
2614 #define SWIGTYPE_p_wxStaticLine swig_types[148]
2615 #define SWIGTYPE_p_wxStaticText swig_types[149]
2616 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[150]
2617 #define SWIGTYPE_p_wxString swig_types[151]
2618 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[152]
2619 #define SWIGTYPE_p_wxTIFFHandler swig_types[153]
2620 #define SWIGTYPE_p_wxTextAttr swig_types[154]
2621 #define SWIGTYPE_p_wxTextCtrl swig_types[155]
2622 #define SWIGTYPE_p_wxTextUrlEvent swig_types[156]
2623 #define SWIGTYPE_p_wxToggleButton swig_types[157]
2624 #define SWIGTYPE_p_wxToolBar swig_types[158]
2625 #define SWIGTYPE_p_wxToolBarBase swig_types[159]
2626 #define SWIGTYPE_p_wxToolBarToolBase swig_types[160]
2627 #define SWIGTYPE_p_wxToolbook swig_types[161]
2628 #define SWIGTYPE_p_wxToolbookEvent swig_types[162]
2629 #define SWIGTYPE_p_wxTreeEvent swig_types[163]
2630 #define SWIGTYPE_p_wxTreeItemId swig_types[164]
2631 #define SWIGTYPE_p_wxTreebook swig_types[165]
2632 #define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2633 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2634 #define SWIGTYPE_p_wxValidator swig_types[168]
2635 #define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2636 #define SWIGTYPE_p_wxWindow swig_types[170]
2637 #define SWIGTYPE_p_wxWindowBase swig_types[171]
2638 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2639 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2640 #define SWIGTYPE_p_wxXPMHandler swig_types[174]
2641 static swig_type_info *swig_types[176];
2642 static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
2643 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2644 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2645
2646 /* -------- TYPES TABLE (END) -------- */
2647
2648 #if (PY_VERSION_HEX <= 0x02000000)
2649 # if !defined(SWIG_PYTHON_CLASSIC)
2650 # error "This python version requires to use swig with the '-classic' option"
2651 # endif
2652 #endif
2653 #if (PY_VERSION_HEX <= 0x02020000)
2654 # error "This python version requires to use swig with the '-nomodern' option"
2655 #endif
2656 #if (PY_VERSION_HEX <= 0x02020000)
2657 # error "This python version requires to use swig with the '-nomodernargs' option"
2658 #endif
2659 #ifndef METH_O
2660 # error "This python version requires to use swig with the '-nofastunpack' option"
2661 #endif
2662
2663 /*-----------------------------------------------
2664 @(target):= _controls_.so
2665 ------------------------------------------------*/
2666 #define SWIG_init init_controls_
2667
2668 #define SWIG_name "_controls_"
2669
2670 #define SWIGVERSION 0x010329
2671
2672
2673 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2674 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2675
2676
2677 #include <stdexcept>
2678
2679
2680 namespace swig {
2681 class PyObject_ptr {
2682 protected:
2683 PyObject *_obj;
2684
2685 public:
2686 PyObject_ptr() :_obj(0)
2687 {
2688 }
2689
2690 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2691 {
2692 Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2696 {
2697 if (initial_ref) Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr & operator=(const PyObject_ptr& item)
2701 {
2702 Py_XINCREF(item._obj);
2703 Py_XDECREF(_obj);
2704 _obj = item._obj;
2705 return *this;
2706 }
2707
2708 ~PyObject_ptr()
2709 {
2710 Py_XDECREF(_obj);
2711 }
2712
2713 operator PyObject *() const
2714 {
2715 return _obj;
2716 }
2717
2718 PyObject *operator->() const
2719 {
2720 return _obj;
2721 }
2722 };
2723 }
2724
2725
2726 namespace swig {
2727 struct PyObject_var : PyObject_ptr {
2728 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2729
2730 PyObject_var & operator = (PyObject* obj)
2731 {
2732 Py_XDECREF(_obj);
2733 _obj = obj;
2734 return *this;
2735 }
2736 };
2737 }
2738
2739
2740 #include "wx/wxPython/wxPython.h"
2741 #include "wx/wxPython/pyclasses.h"
2742
2743 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2744 static const wxString wxPyEmptyString(wxEmptyString);
2745 static const wxString wxPyControlNameStr(wxControlNameStr);
2746
2747 const wxArrayString wxPyEmptyStringArray;
2748
2749 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2750
2751 #define SWIG_From_long PyInt_FromLong
2752
2753
2754 SWIGINTERNINLINE PyObject *
2755 SWIG_From_int (int value)
2756 {
2757 return SWIG_From_long (value);
2758 }
2759
2760
2761 #include <limits.h>
2762 #ifndef LLONG_MIN
2763 # define LLONG_MIN LONG_LONG_MIN
2764 #endif
2765 #ifndef LLONG_MAX
2766 # define LLONG_MAX LONG_LONG_MAX
2767 #endif
2768 #ifndef ULLONG_MAX
2769 # define ULLONG_MAX ULONG_LONG_MAX
2770 #endif
2771
2772
2773 SWIGINTERN int
2774 SWIG_AsVal_long (PyObject* obj, long* val)
2775 {
2776 if (PyNumber_Check(obj)) {
2777 if (val) *val = PyInt_AsLong(obj);
2778 return SWIG_OK;
2779 }
2780 return SWIG_TypeError;
2781 }
2782
2783
2784 SWIGINTERN int
2785 SWIG_AsVal_int (PyObject * obj, int *val)
2786 {
2787 long v;
2788 int res = SWIG_AsVal_long (obj, &v);
2789 if (SWIG_IsOK(res)) {
2790 if ((v < INT_MIN || v > INT_MAX)) {
2791 return SWIG_OverflowError;
2792 } else {
2793 if (val) *val = static_cast< int >(v);
2794 }
2795 }
2796 return res;
2797 }
2798
2799 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2800
2801 SWIGINTERN int
2802 SWIG_AsVal_bool (PyObject *obj, bool *val)
2803 {
2804 if (obj == Py_True) {
2805 if (val) *val = true;
2806 return SWIG_OK;
2807 } else if (obj == Py_False) {
2808 if (val) *val = false;
2809 return SWIG_OK;
2810 } else {
2811 long v = 0;
2812 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2813 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2814 return res;
2815 }
2816 }
2817
2818 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2819 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2820 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2821 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2822 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2823 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2824
2825 #include <wx/checklst.h>
2826
2827 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2828 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2829 if (clientData)
2830 {
2831 wxPyClientData* data = new wxPyClientData(clientData);
2832 self->Insert(item, pos, data);
2833 }
2834 else
2835 self->Insert(item, pos);
2836 }
2837
2838 SWIGINTERN int
2839 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2840 {
2841 long v = 0;
2842 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2843 return SWIG_TypeError;
2844 }
2845 else if (val)
2846 *val = (unsigned long)v;
2847 return SWIG_OK;
2848 }
2849
2850
2851 SWIGINTERN int
2852 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2853 {
2854 unsigned long v;
2855 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2856 if (SWIG_IsOK(res)) {
2857 if ((v > UINT_MAX)) {
2858 return SWIG_OverflowError;
2859 } else {
2860 if (val) *val = static_cast< unsigned int >(v);
2861 }
2862 }
2863 return res;
2864 }
2865
2866 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2867 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2868 wxArrayInt lst;
2869 self->GetSelections(lst);
2870 PyObject *tup = PyTuple_New(lst.GetCount());
2871 for (size_t i=0; i<lst.GetCount(); i++)
2872 {
2873 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2874 }
2875 wxPyEndBlockThreads(blocked);
2876 return tup;
2877 }
2878 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2879 #ifdef __WXMSW__
2880 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2881 self->GetItem(item)->SetTextColour(c);
2882 #endif
2883 }
2884 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetBackgroundColour(c);
2888 #endif
2889 }
2890 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetFont(f);
2894 #endif
2895 }
2896 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2897 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2898 self->AppendText(text);
2899 }
2900 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2901 return self->GetValue().Mid(from, to - from);
2902 }
2903 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2904 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2905 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2906 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2907 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2908
2909 SWIGINTERNINLINE PyObject*
2910 SWIG_From_unsigned_SS_long (unsigned long value)
2911 {
2912 return (value > LONG_MAX) ?
2913 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2914 }
2915
2916
2917 SWIGINTERNINLINE PyObject *
2918 SWIG_From_size_t (size_t value)
2919 {
2920 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2921 }
2922
2923
2924 SWIGINTERNINLINE PyObject *
2925 SWIG_From_unsigned_SS_int (unsigned int value)
2926 {
2927 return SWIG_From_unsigned_SS_long (value);
2928 }
2929
2930
2931 #include <wx/slider.h>
2932
2933
2934 static const wxString wxPySliderNameStr(wxSliderNameStr);
2935 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2936
2937 #if !wxUSE_TOGGLEBTN
2938 // implement dummy items for platforms that don't have this class
2939
2940 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2941
2942 class wxToggleButton : public wxControl
2943 {
2944 public:
2945 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2946 const wxPoint&, const wxSize&, long,
2947 const wxValidator&, const wxString&)
2948 { wxPyRaiseNotImplemented(); }
2949
2950 wxToggleButton()
2951 { wxPyRaiseNotImplemented(); }
2952 };
2953 #endif
2954
2955 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2956
2957 SWIGINTERNINLINE int
2958 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2959 {
2960 unsigned long v;
2961 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2962 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2963 return res;
2964 }
2965
2966 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2967 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2968 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2969 if (udata) {
2970 Py_INCREF(udata->m_obj);
2971 return udata->m_obj;
2972 } else {
2973 Py_INCREF(Py_None);
2974 return Py_None;
2975 }
2976 }
2977 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2978 self->SetClientData(new wxPyUserData(clientData));
2979 }
2980 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2981 wxPyUserData* udata = NULL;
2982 if (clientData && clientData != Py_None)
2983 udata = new wxPyUserData(clientData);
2984 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2985 shortHelp, longHelp, udata);
2986 }
2987 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2988 wxPyUserData* udata = NULL;
2989 if (clientData && clientData != Py_None)
2990 udata = new wxPyUserData(clientData);
2991 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2992 shortHelp, longHelp, udata);
2993 }
2994 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2995 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2996 if (udata) {
2997 Py_INCREF(udata->m_obj);
2998 return udata->m_obj;
2999 } else {
3000 Py_INCREF(Py_None);
3001 return Py_None;
3002 }
3003 }
3004 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3005 self->SetToolClientData(id, new wxPyUserData(clientData));
3006 }
3007
3008 #include <wx/listctrl.h>
3009
3010 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3011 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3012 // Python aware sorting function for wxPyListCtrl
3013 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3014 int retval = 0;
3015 PyObject* func = (PyObject*)funcPtr;
3016 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3017
3018 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3019 PyObject* result = PyEval_CallObject(func, args);
3020 Py_DECREF(args);
3021 if (result) {
3022 retval = PyInt_AsLong(result);
3023 Py_DECREF(result);
3024 }
3025
3026 wxPyEndBlockThreads(blocked);
3027 return retval;
3028 }
3029
3030 // C++ Version of a Python aware class
3031 class wxPyListCtrl : public wxListCtrl {
3032 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3033 public:
3034 wxPyListCtrl() : wxListCtrl() {}
3035 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3036 const wxPoint& pos,
3037 const wxSize& size,
3038 long style,
3039 const wxValidator& validator,
3040 const wxString& name) :
3041 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3042
3043 bool Create(wxWindow* parent, wxWindowID id,
3044 const wxPoint& pos,
3045 const wxSize& size,
3046 long style,
3047 const wxValidator& validator,
3048 const wxString& name) {
3049 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3050 }
3051
3052 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3053 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3054
3055 // use the virtual version to avoid a confusing assert in the base class
3056 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3057 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3058
3059 PYPRIVATE;
3060 };
3061
3062 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3063
3064 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3065 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3066 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3067 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3068
3069
3070 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3071 wxListItem item;
3072 item.SetMask( wxLIST_MASK_STATE |
3073 wxLIST_MASK_TEXT |
3074 wxLIST_MASK_IMAGE |
3075 wxLIST_MASK_DATA |
3076 wxLIST_SET_ITEM |
3077 wxLIST_MASK_WIDTH |
3078 wxLIST_MASK_FORMAT
3079 );
3080 if (self->GetColumn(col, item))
3081 return new wxListItem(item);
3082 else
3083 return NULL;
3084 }
3085 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3086 wxListItem* info = new wxListItem;
3087 info->m_itemId = itemId;
3088 info->m_col = col;
3089 info->m_mask = 0xFFFF;
3090 self->GetItem(*info);
3091 return info;
3092 }
3093 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3094 wxPoint pos;
3095 self->GetItemPosition(item, pos);
3096 return pos;
3097 }
3098 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3099 wxRect rect;
3100 self->GetItemRect(item, rect, code);
3101 return rect;
3102 }
3103 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3104 if (!PyCallable_Check(func))
3105 return false;
3106 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3107 }
3108 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3109
3110 return self;
3111
3112
3113
3114 }
3115
3116 #include <wx/treectrl.h>
3117 #include "wx/wxPython/pytree.h"
3118
3119 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3120 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3121 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3122 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3123
3124 static wxTreeItemId wxNullTreeItemId;
3125
3126 // C++ version of Python aware wxTreeCtrl
3127 class wxPyTreeCtrl : public wxTreeCtrl {
3128 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3129 public:
3130 wxPyTreeCtrl() : wxTreeCtrl() {}
3131 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3132 const wxPoint& pos,
3133 const wxSize& size,
3134 long style,
3135 const wxValidator& validator,
3136 const wxString& name) :
3137 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3138
3139 bool Create(wxWindow *parent, wxWindowID id,
3140 const wxPoint& pos,
3141 const wxSize& size,
3142 long style,
3143 const wxValidator& validator,
3144 const wxString& name) {
3145 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3146 }
3147
3148
3149 int OnCompareItems(const wxTreeItemId& item1,
3150 const wxTreeItemId& item2) {
3151 int rval = 0;
3152 bool found;
3153 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3154 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3155 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3156 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3157 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3158 Py_DECREF(o1);
3159 Py_DECREF(o2);
3160 }
3161 wxPyEndBlockThreads(blocked);
3162 if (! found)
3163 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3164 return rval;
3165 }
3166 PYPRIVATE;
3167 };
3168
3169 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3170
3171
3172 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3173 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3174 if (data == NULL) {
3175 data = new wxPyTreeItemData();
3176 data->SetId(item); // set the id
3177 self->SetItemData(item, data);
3178 }
3179 return data;
3180 }
3181 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3182 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3183 if (data == NULL) {
3184 data = new wxPyTreeItemData();
3185 data->SetId(item); // set the id
3186 self->SetItemData(item, data);
3187 }
3188 return data->GetData();
3189 }
3190 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
3194 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3195 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3196 if (data == NULL) {
3197 data = new wxPyTreeItemData(obj);
3198 data->SetId(item); // set the id
3199 self->SetItemData(item, data);
3200 } else
3201 data->SetData(obj);
3202 }
3203 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3204 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3205 PyObject* rval = PyList_New(0);
3206 wxArrayTreeItemIds array;
3207 size_t num, x;
3208 num = self->GetSelections(array);
3209 for (x=0; x < num; x++) {
3210 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3211 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3212 PyList_Append(rval, item);
3213 Py_DECREF(item);
3214 }
3215 wxPyEndBlockThreads(blocked);
3216 return rval;
3217 }
3218 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3219 void* cookie = 0;
3220 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3221 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3222 PyObject* tup = PyTuple_New(2);
3223 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3224 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3225 wxPyEndBlockThreads(blocked);
3226 return tup;
3227 }
3228 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3229 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3230 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3231 PyObject* tup = PyTuple_New(2);
3232 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3233 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3234 wxPyEndBlockThreads(blocked);
3235 return tup;
3236 }
3237 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3238 wxRect rect;
3239 if (self->GetBoundingRect(item, rect, textOnly)) {
3240 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3241 wxRect* r = new wxRect(rect);
3242 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3243 wxPyEndBlockThreads(blocked);
3244 return val;
3245 }
3246 else
3247 RETURN_NONE();
3248 }
3249 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3250
3251 SWIGINTERNINLINE PyObject*
3252 SWIG_From_bool (bool value)
3253 {
3254 return PyBool_FromLong(value ? 1 : 0);
3255 }
3256
3257 // C++ version of Python aware wxControl
3258 class wxPyControl : public wxControl
3259 {
3260 DECLARE_DYNAMIC_CLASS(wxPyControl)
3261 public:
3262 wxPyControl() : wxControl() {}
3263 wxPyControl(wxWindow* parent, const wxWindowID id,
3264 const wxPoint& pos = wxDefaultPosition,
3265 const wxSize& size = wxDefaultSize,
3266 long style = 0,
3267 const wxValidator& validator=wxDefaultValidator,
3268 const wxString& name = wxPyControlNameStr)
3269 : wxControl(parent, id, pos, size, style, validator, name) {}
3270
3271 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3272
3273 bool DoEraseBackground(wxDC* dc) {
3274 #ifdef __WXMSW__
3275 return wxWindow::DoEraseBackground(dc->GetHDC());
3276 #else
3277 dc->SetBackground(wxBrush(GetBackgroundColour()));
3278 dc->Clear();
3279 return true;
3280 #endif
3281 }
3282
3283 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3284 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3285 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3286 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3287
3288 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3289 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3291
3292 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3293 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3294
3295 DEC_PYCALLBACK__(InitDialog);
3296 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3297 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3298 DEC_PYCALLBACK_BOOL_(Validate);
3299
3300 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3301 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3302 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3303
3304 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3305 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3306
3307 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3308 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3309
3310 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3311
3312 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3313
3314 PYPRIVATE;
3315 };
3316
3317 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3318
3319 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3320 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3321 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3322 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3323
3324 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3325 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3326 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3327
3328 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3329 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3330
3331 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3332 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3333 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3334 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3335
3336 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3337 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3338 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3339
3340 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3341 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3342
3343 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3344 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3345
3346 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3347
3348 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3349
3350
3351
3352 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3353
3354 #include <wx/generic/dragimgg.h>
3355
3356 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3357 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3358 wxDateTime rv;
3359 self->GetRange(&rv, NULL);
3360 return rv;
3361 }
3362 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3363 wxDateTime rv;
3364 self->GetRange(NULL, &rv);
3365 return rv;
3366 }
3367 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3368 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3369 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3370 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3371 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3372 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3373 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3374 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3375 #ifdef __cplusplus
3376 extern "C" {
3377 #endif
3378 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3379 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3380 return 1;
3381 }
3382
3383
3384 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3385 PyObject *pyobj = 0;
3386
3387 {
3388 #if wxUSE_UNICODE
3389 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3390 #else
3391 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3392 #endif
3393 }
3394 return pyobj;
3395 }
3396
3397
3398 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3399 PyObject *resultobj = 0;
3400 wxWindow *arg1 = (wxWindow *) 0 ;
3401 int arg2 = (int) -1 ;
3402 wxString const &arg3_defvalue = wxPyEmptyString ;
3403 wxString *arg3 = (wxString *) &arg3_defvalue ;
3404 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3405 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3406 wxSize const &arg5_defvalue = wxDefaultSize ;
3407 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3408 long arg6 = (long) 0 ;
3409 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3410 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3411 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3412 wxString *arg8 = (wxString *) &arg8_defvalue ;
3413 wxButton *result = 0 ;
3414 void *argp1 = 0 ;
3415 int res1 = 0 ;
3416 int val2 ;
3417 int ecode2 = 0 ;
3418 bool temp3 = false ;
3419 wxPoint temp4 ;
3420 wxSize temp5 ;
3421 long val6 ;
3422 int ecode6 = 0 ;
3423 void *argp7 = 0 ;
3424 int res7 = 0 ;
3425 bool temp8 = false ;
3426 PyObject * obj0 = 0 ;
3427 PyObject * obj1 = 0 ;
3428 PyObject * obj2 = 0 ;
3429 PyObject * obj3 = 0 ;
3430 PyObject * obj4 = 0 ;
3431 PyObject * obj5 = 0 ;
3432 PyObject * obj6 = 0 ;
3433 PyObject * obj7 = 0 ;
3434 char * kwnames[] = {
3435 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3436 };
3437
3438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3440 if (!SWIG_IsOK(res1)) {
3441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3442 }
3443 arg1 = reinterpret_cast< wxWindow * >(argp1);
3444 if (obj1) {
3445 ecode2 = SWIG_AsVal_int(obj1, &val2);
3446 if (!SWIG_IsOK(ecode2)) {
3447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3448 }
3449 arg2 = static_cast< int >(val2);
3450 }
3451 if (obj2) {
3452 {
3453 arg3 = wxString_in_helper(obj2);
3454 if (arg3 == NULL) SWIG_fail;
3455 temp3 = true;
3456 }
3457 }
3458 if (obj3) {
3459 {
3460 arg4 = &temp4;
3461 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3462 }
3463 }
3464 if (obj4) {
3465 {
3466 arg5 = &temp5;
3467 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3468 }
3469 }
3470 if (obj5) {
3471 ecode6 = SWIG_AsVal_long(obj5, &val6);
3472 if (!SWIG_IsOK(ecode6)) {
3473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3474 }
3475 arg6 = static_cast< long >(val6);
3476 }
3477 if (obj6) {
3478 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3479 if (!SWIG_IsOK(res7)) {
3480 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3481 }
3482 if (!argp7) {
3483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3484 }
3485 arg7 = reinterpret_cast< wxValidator * >(argp7);
3486 }
3487 if (obj7) {
3488 {
3489 arg8 = wxString_in_helper(obj7);
3490 if (arg8 == NULL) SWIG_fail;
3491 temp8 = true;
3492 }
3493 }
3494 {
3495 if (!wxPyCheckForApp()) SWIG_fail;
3496 PyThreadState* __tstate = wxPyBeginAllowThreads();
3497 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 }
3501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3502 {
3503 if (temp3)
3504 delete arg3;
3505 }
3506 {
3507 if (temp8)
3508 delete arg8;
3509 }
3510 return resultobj;
3511 fail:
3512 {
3513 if (temp3)
3514 delete arg3;
3515 }
3516 {
3517 if (temp8)
3518 delete arg8;
3519 }
3520 return NULL;
3521 }
3522
3523
3524 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3525 PyObject *resultobj = 0;
3526 wxButton *result = 0 ;
3527
3528 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3529 {
3530 if (!wxPyCheckForApp()) SWIG_fail;
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (wxButton *)new wxButton();
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3537 return resultobj;
3538 fail:
3539 return NULL;
3540 }
3541
3542
3543 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3544 PyObject *resultobj = 0;
3545 wxButton *arg1 = (wxButton *) 0 ;
3546 wxWindow *arg2 = (wxWindow *) 0 ;
3547 int arg3 = (int) -1 ;
3548 wxString const &arg4_defvalue = wxPyEmptyString ;
3549 wxString *arg4 = (wxString *) &arg4_defvalue ;
3550 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3551 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3552 wxSize const &arg6_defvalue = wxDefaultSize ;
3553 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3554 long arg7 = (long) 0 ;
3555 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3556 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3557 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3558 wxString *arg9 = (wxString *) &arg9_defvalue ;
3559 bool result;
3560 void *argp1 = 0 ;
3561 int res1 = 0 ;
3562 void *argp2 = 0 ;
3563 int res2 = 0 ;
3564 int val3 ;
3565 int ecode3 = 0 ;
3566 bool temp4 = false ;
3567 wxPoint temp5 ;
3568 wxSize temp6 ;
3569 long val7 ;
3570 int ecode7 = 0 ;
3571 void *argp8 = 0 ;
3572 int res8 = 0 ;
3573 bool temp9 = false ;
3574 PyObject * obj0 = 0 ;
3575 PyObject * obj1 = 0 ;
3576 PyObject * obj2 = 0 ;
3577 PyObject * obj3 = 0 ;
3578 PyObject * obj4 = 0 ;
3579 PyObject * obj5 = 0 ;
3580 PyObject * obj6 = 0 ;
3581 PyObject * obj7 = 0 ;
3582 PyObject * obj8 = 0 ;
3583 char * kwnames[] = {
3584 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3585 };
3586
3587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3589 if (!SWIG_IsOK(res1)) {
3590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3591 }
3592 arg1 = reinterpret_cast< wxButton * >(argp1);
3593 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3594 if (!SWIG_IsOK(res2)) {
3595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3596 }
3597 arg2 = reinterpret_cast< wxWindow * >(argp2);
3598 if (obj2) {
3599 ecode3 = SWIG_AsVal_int(obj2, &val3);
3600 if (!SWIG_IsOK(ecode3)) {
3601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3602 }
3603 arg3 = static_cast< int >(val3);
3604 }
3605 if (obj3) {
3606 {
3607 arg4 = wxString_in_helper(obj3);
3608 if (arg4 == NULL) SWIG_fail;
3609 temp4 = true;
3610 }
3611 }
3612 if (obj4) {
3613 {
3614 arg5 = &temp5;
3615 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3616 }
3617 }
3618 if (obj5) {
3619 {
3620 arg6 = &temp6;
3621 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3622 }
3623 }
3624 if (obj6) {
3625 ecode7 = SWIG_AsVal_long(obj6, &val7);
3626 if (!SWIG_IsOK(ecode7)) {
3627 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3628 }
3629 arg7 = static_cast< long >(val7);
3630 }
3631 if (obj7) {
3632 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3633 if (!SWIG_IsOK(res8)) {
3634 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3635 }
3636 if (!argp8) {
3637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3638 }
3639 arg8 = reinterpret_cast< wxValidator * >(argp8);
3640 }
3641 if (obj8) {
3642 {
3643 arg9 = wxString_in_helper(obj8);
3644 if (arg9 == NULL) SWIG_fail;
3645 temp9 = true;
3646 }
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 {
3655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3656 }
3657 {
3658 if (temp4)
3659 delete arg4;
3660 }
3661 {
3662 if (temp9)
3663 delete arg9;
3664 }
3665 return resultobj;
3666 fail:
3667 {
3668 if (temp4)
3669 delete arg4;
3670 }
3671 {
3672 if (temp9)
3673 delete arg9;
3674 }
3675 return NULL;
3676 }
3677
3678
3679 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3680 PyObject *resultobj = 0;
3681 wxButton *arg1 = (wxButton *) 0 ;
3682 void *argp1 = 0 ;
3683 int res1 = 0 ;
3684 PyObject *swig_obj[1] ;
3685
3686 if (!args) SWIG_fail;
3687 swig_obj[0] = args;
3688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3689 if (!SWIG_IsOK(res1)) {
3690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3691 }
3692 arg1 = reinterpret_cast< wxButton * >(argp1);
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 (arg1)->SetDefault();
3696 wxPyEndAllowThreads(__tstate);
3697 if (PyErr_Occurred()) SWIG_fail;
3698 }
3699 resultobj = SWIG_Py_Void();
3700 return resultobj;
3701 fail:
3702 return NULL;
3703 }
3704
3705
3706 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3707 PyObject *resultobj = 0;
3708 wxSize result;
3709
3710 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 result = wxButton::GetDefaultSize();
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3718 return resultobj;
3719 fail:
3720 return NULL;
3721 }
3722
3723
3724 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj = 0;
3726 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3727 SwigValueWrapper<wxVisualAttributes > result;
3728 int val1 ;
3729 int ecode1 = 0 ;
3730 PyObject * obj0 = 0 ;
3731 char * kwnames[] = {
3732 (char *) "variant", NULL
3733 };
3734
3735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3736 if (obj0) {
3737 ecode1 = SWIG_AsVal_int(obj0, &val1);
3738 if (!SWIG_IsOK(ecode1)) {
3739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3740 }
3741 arg1 = static_cast< wxWindowVariant >(val1);
3742 }
3743 {
3744 if (!wxPyCheckForApp()) SWIG_fail;
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 result = wxButton::GetClassDefaultAttributes(arg1);
3747 wxPyEndAllowThreads(__tstate);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3751 return resultobj;
3752 fail:
3753 return NULL;
3754 }
3755
3756
3757 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3758 PyObject *obj;
3759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3760 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3761 return SWIG_Py_Void();
3762 }
3763
3764 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3765 return SWIG_Python_InitShadowInstance(args);
3766 }
3767
3768 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3769 PyObject *resultobj = 0;
3770 wxWindow *arg1 = (wxWindow *) 0 ;
3771 int arg2 = (int) -1 ;
3772 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3773 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3774 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3775 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3776 wxSize const &arg5_defvalue = wxDefaultSize ;
3777 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3778 long arg6 = (long) wxBU_AUTODRAW ;
3779 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3780 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3781 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3782 wxString *arg8 = (wxString *) &arg8_defvalue ;
3783 wxBitmapButton *result = 0 ;
3784 void *argp1 = 0 ;
3785 int res1 = 0 ;
3786 int val2 ;
3787 int ecode2 = 0 ;
3788 void *argp3 = 0 ;
3789 int res3 = 0 ;
3790 wxPoint temp4 ;
3791 wxSize temp5 ;
3792 long val6 ;
3793 int ecode6 = 0 ;
3794 void *argp7 = 0 ;
3795 int res7 = 0 ;
3796 bool temp8 = false ;
3797 PyObject * obj0 = 0 ;
3798 PyObject * obj1 = 0 ;
3799 PyObject * obj2 = 0 ;
3800 PyObject * obj3 = 0 ;
3801 PyObject * obj4 = 0 ;
3802 PyObject * obj5 = 0 ;
3803 PyObject * obj6 = 0 ;
3804 PyObject * obj7 = 0 ;
3805 char * kwnames[] = {
3806 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3807 };
3808
3809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3811 if (!SWIG_IsOK(res1)) {
3812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3813 }
3814 arg1 = reinterpret_cast< wxWindow * >(argp1);
3815 if (obj1) {
3816 ecode2 = SWIG_AsVal_int(obj1, &val2);
3817 if (!SWIG_IsOK(ecode2)) {
3818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3819 }
3820 arg2 = static_cast< int >(val2);
3821 }
3822 if (obj2) {
3823 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3824 if (!SWIG_IsOK(res3)) {
3825 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3826 }
3827 if (!argp3) {
3828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3829 }
3830 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3831 }
3832 if (obj3) {
3833 {
3834 arg4 = &temp4;
3835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3836 }
3837 }
3838 if (obj4) {
3839 {
3840 arg5 = &temp5;
3841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3842 }
3843 }
3844 if (obj5) {
3845 ecode6 = SWIG_AsVal_long(obj5, &val6);
3846 if (!SWIG_IsOK(ecode6)) {
3847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3848 }
3849 arg6 = static_cast< long >(val6);
3850 }
3851 if (obj6) {
3852 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3853 if (!SWIG_IsOK(res7)) {
3854 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3855 }
3856 if (!argp7) {
3857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3858 }
3859 arg7 = reinterpret_cast< wxValidator * >(argp7);
3860 }
3861 if (obj7) {
3862 {
3863 arg8 = wxString_in_helper(obj7);
3864 if (arg8 == NULL) SWIG_fail;
3865 temp8 = true;
3866 }
3867 }
3868 {
3869 if (!wxPyCheckForApp()) SWIG_fail;
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3876 {
3877 if (temp8)
3878 delete arg8;
3879 }
3880 return resultobj;
3881 fail:
3882 {
3883 if (temp8)
3884 delete arg8;
3885 }
3886 return NULL;
3887 }
3888
3889
3890 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3891 PyObject *resultobj = 0;
3892 wxBitmapButton *result = 0 ;
3893
3894 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3895 {
3896 if (!wxPyCheckForApp()) SWIG_fail;
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 result = (wxBitmapButton *)new wxBitmapButton();
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3903 return resultobj;
3904 fail:
3905 return NULL;
3906 }
3907
3908
3909 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj = 0;
3911 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3912 wxWindow *arg2 = (wxWindow *) 0 ;
3913 int arg3 = (int) -1 ;
3914 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3915 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3916 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3917 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3918 wxSize const &arg6_defvalue = wxDefaultSize ;
3919 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3920 long arg7 = (long) wxBU_AUTODRAW ;
3921 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3922 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3923 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3924 wxString *arg9 = (wxString *) &arg9_defvalue ;
3925 bool result;
3926 void *argp1 = 0 ;
3927 int res1 = 0 ;
3928 void *argp2 = 0 ;
3929 int res2 = 0 ;
3930 int val3 ;
3931 int ecode3 = 0 ;
3932 void *argp4 = 0 ;
3933 int res4 = 0 ;
3934 wxPoint temp5 ;
3935 wxSize temp6 ;
3936 long val7 ;
3937 int ecode7 = 0 ;
3938 void *argp8 = 0 ;
3939 int res8 = 0 ;
3940 bool temp9 = false ;
3941 PyObject * obj0 = 0 ;
3942 PyObject * obj1 = 0 ;
3943 PyObject * obj2 = 0 ;
3944 PyObject * obj3 = 0 ;
3945 PyObject * obj4 = 0 ;
3946 PyObject * obj5 = 0 ;
3947 PyObject * obj6 = 0 ;
3948 PyObject * obj7 = 0 ;
3949 PyObject * obj8 = 0 ;
3950 char * kwnames[] = {
3951 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3952 };
3953
3954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3956 if (!SWIG_IsOK(res1)) {
3957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3958 }
3959 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3960 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3961 if (!SWIG_IsOK(res2)) {
3962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3963 }
3964 arg2 = reinterpret_cast< wxWindow * >(argp2);
3965 if (obj2) {
3966 ecode3 = SWIG_AsVal_int(obj2, &val3);
3967 if (!SWIG_IsOK(ecode3)) {
3968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3969 }
3970 arg3 = static_cast< int >(val3);
3971 }
3972 if (obj3) {
3973 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3974 if (!SWIG_IsOK(res4)) {
3975 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3976 }
3977 if (!argp4) {
3978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3979 }
3980 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3981 }
3982 if (obj4) {
3983 {
3984 arg5 = &temp5;
3985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3986 }
3987 }
3988 if (obj5) {
3989 {
3990 arg6 = &temp6;
3991 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3992 }
3993 }
3994 if (obj6) {
3995 ecode7 = SWIG_AsVal_long(obj6, &val7);
3996 if (!SWIG_IsOK(ecode7)) {
3997 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3998 }
3999 arg7 = static_cast< long >(val7);
4000 }
4001 if (obj7) {
4002 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4003 if (!SWIG_IsOK(res8)) {
4004 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4005 }
4006 if (!argp8) {
4007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4008 }
4009 arg8 = reinterpret_cast< wxValidator * >(argp8);
4010 }
4011 if (obj8) {
4012 {
4013 arg9 = wxString_in_helper(obj8);
4014 if (arg9 == NULL) SWIG_fail;
4015 temp9 = true;
4016 }
4017 }
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4021 wxPyEndAllowThreads(__tstate);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 {
4025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4026 }
4027 {
4028 if (temp9)
4029 delete arg9;
4030 }
4031 return resultobj;
4032 fail:
4033 {
4034 if (temp9)
4035 delete arg9;
4036 }
4037 return NULL;
4038 }
4039
4040
4041 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4042 PyObject *resultobj = 0;
4043 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4044 wxBitmap result;
4045 void *argp1 = 0 ;
4046 int res1 = 0 ;
4047 PyObject *swig_obj[1] ;
4048
4049 if (!args) SWIG_fail;
4050 swig_obj[0] = args;
4051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4052 if (!SWIG_IsOK(res1)) {
4053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4054 }
4055 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 result = (arg1)->GetBitmapLabel();
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4063 return resultobj;
4064 fail:
4065 return NULL;
4066 }
4067
4068
4069 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4070 PyObject *resultobj = 0;
4071 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4072 wxBitmap result;
4073 void *argp1 = 0 ;
4074 int res1 = 0 ;
4075 PyObject *swig_obj[1] ;
4076
4077 if (!args) SWIG_fail;
4078 swig_obj[0] = args;
4079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4080 if (!SWIG_IsOK(res1)) {
4081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4082 }
4083 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 result = (arg1)->GetBitmapDisabled();
4087 wxPyEndAllowThreads(__tstate);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 }
4090 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4091 return resultobj;
4092 fail:
4093 return NULL;
4094 }
4095
4096
4097 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 PyObject *resultobj = 0;
4099 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4100 wxBitmap result;
4101 void *argp1 = 0 ;
4102 int res1 = 0 ;
4103 PyObject *swig_obj[1] ;
4104
4105 if (!args) SWIG_fail;
4106 swig_obj[0] = args;
4107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4108 if (!SWIG_IsOK(res1)) {
4109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4110 }
4111 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (arg1)->GetBitmapFocus();
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4119 return resultobj;
4120 fail:
4121 return NULL;
4122 }
4123
4124
4125 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4126 PyObject *resultobj = 0;
4127 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4128 wxBitmap result;
4129 void *argp1 = 0 ;
4130 int res1 = 0 ;
4131 PyObject *swig_obj[1] ;
4132
4133 if (!args) SWIG_fail;
4134 swig_obj[0] = args;
4135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4136 if (!SWIG_IsOK(res1)) {
4137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4138 }
4139 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 result = (arg1)->GetBitmapSelected();
4143 wxPyEndAllowThreads(__tstate);
4144 if (PyErr_Occurred()) SWIG_fail;
4145 }
4146 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4147 return resultobj;
4148 fail:
4149 return NULL;
4150 }
4151
4152
4153 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4154 PyObject *resultobj = 0;
4155 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4156 wxBitmap result;
4157 void *argp1 = 0 ;
4158 int res1 = 0 ;
4159 PyObject *swig_obj[1] ;
4160
4161 if (!args) SWIG_fail;
4162 swig_obj[0] = args;
4163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4164 if (!SWIG_IsOK(res1)) {
4165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4166 }
4167 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = (arg1)->GetBitmapHover();
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4175 return resultobj;
4176 fail:
4177 return NULL;
4178 }
4179
4180
4181 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4182 PyObject *resultobj = 0;
4183 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4184 wxBitmap *arg2 = 0 ;
4185 void *argp1 = 0 ;
4186 int res1 = 0 ;
4187 void *argp2 = 0 ;
4188 int res2 = 0 ;
4189 PyObject * obj0 = 0 ;
4190 PyObject * obj1 = 0 ;
4191 char * kwnames[] = {
4192 (char *) "self",(char *) "bitmap", NULL
4193 };
4194
4195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4197 if (!SWIG_IsOK(res1)) {
4198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4199 }
4200 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4202 if (!SWIG_IsOK(res2)) {
4203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4204 }
4205 if (!argp2) {
4206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4207 }
4208 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 resultobj = SWIG_Py_Void();
4216 return resultobj;
4217 fail:
4218 return NULL;
4219 }
4220
4221
4222 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj = 0;
4224 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4225 wxBitmap *arg2 = 0 ;
4226 void *argp1 = 0 ;
4227 int res1 = 0 ;
4228 void *argp2 = 0 ;
4229 int res2 = 0 ;
4230 PyObject * obj0 = 0 ;
4231 PyObject * obj1 = 0 ;
4232 char * kwnames[] = {
4233 (char *) "self",(char *) "bitmap", NULL
4234 };
4235
4236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4238 if (!SWIG_IsOK(res1)) {
4239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4240 }
4241 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4243 if (!SWIG_IsOK(res2)) {
4244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4245 }
4246 if (!argp2) {
4247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4248 }
4249 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4250 {
4251 PyThreadState* __tstate = wxPyBeginAllowThreads();
4252 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 resultobj = SWIG_Py_Void();
4257 return resultobj;
4258 fail:
4259 return NULL;
4260 }
4261
4262
4263 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4264 PyObject *resultobj = 0;
4265 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4266 wxBitmap *arg2 = 0 ;
4267 void *argp1 = 0 ;
4268 int res1 = 0 ;
4269 void *argp2 = 0 ;
4270 int res2 = 0 ;
4271 PyObject * obj0 = 0 ;
4272 PyObject * obj1 = 0 ;
4273 char * kwnames[] = {
4274 (char *) "self",(char *) "bitmap", NULL
4275 };
4276
4277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4279 if (!SWIG_IsOK(res1)) {
4280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4281 }
4282 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4284 if (!SWIG_IsOK(res2)) {
4285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4286 }
4287 if (!argp2) {
4288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4289 }
4290 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = SWIG_Py_Void();
4298 return resultobj;
4299 fail:
4300 return NULL;
4301 }
4302
4303
4304 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4305 PyObject *resultobj = 0;
4306 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4307 wxBitmap *arg2 = 0 ;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 void *argp2 = 0 ;
4311 int res2 = 0 ;
4312 PyObject * obj0 = 0 ;
4313 PyObject * obj1 = 0 ;
4314 char * kwnames[] = {
4315 (char *) "self",(char *) "bitmap", NULL
4316 };
4317
4318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4322 }
4323 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4325 if (!SWIG_IsOK(res2)) {
4326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4327 }
4328 if (!argp2) {
4329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4330 }
4331 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 resultobj = SWIG_Py_Void();
4339 return resultobj;
4340 fail:
4341 return NULL;
4342 }
4343
4344
4345 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = 0;
4347 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4348 wxBitmap *arg2 = 0 ;
4349 void *argp1 = 0 ;
4350 int res1 = 0 ;
4351 void *argp2 = 0 ;
4352 int res2 = 0 ;
4353 PyObject * obj0 = 0 ;
4354 PyObject * obj1 = 0 ;
4355 char * kwnames[] = {
4356 (char *) "self",(char *) "hover", NULL
4357 };
4358
4359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4363 }
4364 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4366 if (!SWIG_IsOK(res2)) {
4367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4368 }
4369 if (!argp2) {
4370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4371 }
4372 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 resultobj = SWIG_Py_Void();
4380 return resultobj;
4381 fail:
4382 return NULL;
4383 }
4384
4385
4386 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4387 PyObject *resultobj = 0;
4388 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4389 int arg2 ;
4390 int arg3 ;
4391 void *argp1 = 0 ;
4392 int res1 = 0 ;
4393 int val2 ;
4394 int ecode2 = 0 ;
4395 int val3 ;
4396 int ecode3 = 0 ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 PyObject * obj2 = 0 ;
4400 char * kwnames[] = {
4401 (char *) "self",(char *) "x",(char *) "y", NULL
4402 };
4403
4404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4406 if (!SWIG_IsOK(res1)) {
4407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4408 }
4409 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4410 ecode2 = SWIG_AsVal_int(obj1, &val2);
4411 if (!SWIG_IsOK(ecode2)) {
4412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4413 }
4414 arg2 = static_cast< int >(val2);
4415 ecode3 = SWIG_AsVal_int(obj2, &val3);
4416 if (!SWIG_IsOK(ecode3)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4418 }
4419 arg3 = static_cast< int >(val3);
4420 {
4421 PyThreadState* __tstate = wxPyBeginAllowThreads();
4422 (arg1)->SetMargins(arg2,arg3);
4423 wxPyEndAllowThreads(__tstate);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 resultobj = SWIG_Py_Void();
4427 return resultobj;
4428 fail:
4429 return NULL;
4430 }
4431
4432
4433 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4434 PyObject *resultobj = 0;
4435 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4436 int result;
4437 void *argp1 = 0 ;
4438 int res1 = 0 ;
4439 PyObject *swig_obj[1] ;
4440
4441 if (!args) SWIG_fail;
4442 swig_obj[0] = args;
4443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4444 if (!SWIG_IsOK(res1)) {
4445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4446 }
4447 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4448 {
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 resultobj = SWIG_From_int(static_cast< int >(result));
4455 return resultobj;
4456 fail:
4457 return NULL;
4458 }
4459
4460
4461 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4462 PyObject *resultobj = 0;
4463 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4464 int result;
4465 void *argp1 = 0 ;
4466 int res1 = 0 ;
4467 PyObject *swig_obj[1] ;
4468
4469 if (!args) SWIG_fail;
4470 swig_obj[0] = args;
4471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4472 if (!SWIG_IsOK(res1)) {
4473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4474 }
4475 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4479 wxPyEndAllowThreads(__tstate);
4480 if (PyErr_Occurred()) SWIG_fail;
4481 }
4482 resultobj = SWIG_From_int(static_cast< int >(result));
4483 return resultobj;
4484 fail:
4485 return NULL;
4486 }
4487
4488
4489 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4490 PyObject *obj;
4491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4492 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4493 return SWIG_Py_Void();
4494 }
4495
4496 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4497 return SWIG_Python_InitShadowInstance(args);
4498 }
4499
4500 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4501 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4502 return 1;
4503 }
4504
4505
4506 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4507 PyObject *pyobj = 0;
4508
4509 {
4510 #if wxUSE_UNICODE
4511 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4512 #else
4513 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4514 #endif
4515 }
4516 return pyobj;
4517 }
4518
4519
4520 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj = 0;
4522 wxWindow *arg1 = (wxWindow *) 0 ;
4523 int arg2 = (int) -1 ;
4524 wxString const &arg3_defvalue = wxPyEmptyString ;
4525 wxString *arg3 = (wxString *) &arg3_defvalue ;
4526 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4527 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4528 wxSize const &arg5_defvalue = wxDefaultSize ;
4529 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4530 long arg6 = (long) 0 ;
4531 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4532 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4533 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4534 wxString *arg8 = (wxString *) &arg8_defvalue ;
4535 wxCheckBox *result = 0 ;
4536 void *argp1 = 0 ;
4537 int res1 = 0 ;
4538 int val2 ;
4539 int ecode2 = 0 ;
4540 bool temp3 = false ;
4541 wxPoint temp4 ;
4542 wxSize temp5 ;
4543 long val6 ;
4544 int ecode6 = 0 ;
4545 void *argp7 = 0 ;
4546 int res7 = 0 ;
4547 bool temp8 = false ;
4548 PyObject * obj0 = 0 ;
4549 PyObject * obj1 = 0 ;
4550 PyObject * obj2 = 0 ;
4551 PyObject * obj3 = 0 ;
4552 PyObject * obj4 = 0 ;
4553 PyObject * obj5 = 0 ;
4554 PyObject * obj6 = 0 ;
4555 PyObject * obj7 = 0 ;
4556 char * kwnames[] = {
4557 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4558 };
4559
4560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4562 if (!SWIG_IsOK(res1)) {
4563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4564 }
4565 arg1 = reinterpret_cast< wxWindow * >(argp1);
4566 if (obj1) {
4567 ecode2 = SWIG_AsVal_int(obj1, &val2);
4568 if (!SWIG_IsOK(ecode2)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4570 }
4571 arg2 = static_cast< int >(val2);
4572 }
4573 if (obj2) {
4574 {
4575 arg3 = wxString_in_helper(obj2);
4576 if (arg3 == NULL) SWIG_fail;
4577 temp3 = true;
4578 }
4579 }
4580 if (obj3) {
4581 {
4582 arg4 = &temp4;
4583 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4584 }
4585 }
4586 if (obj4) {
4587 {
4588 arg5 = &temp5;
4589 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4590 }
4591 }
4592 if (obj5) {
4593 ecode6 = SWIG_AsVal_long(obj5, &val6);
4594 if (!SWIG_IsOK(ecode6)) {
4595 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4596 }
4597 arg6 = static_cast< long >(val6);
4598 }
4599 if (obj6) {
4600 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4601 if (!SWIG_IsOK(res7)) {
4602 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4603 }
4604 if (!argp7) {
4605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4606 }
4607 arg7 = reinterpret_cast< wxValidator * >(argp7);
4608 }
4609 if (obj7) {
4610 {
4611 arg8 = wxString_in_helper(obj7);
4612 if (arg8 == NULL) SWIG_fail;
4613 temp8 = true;
4614 }
4615 }
4616 {
4617 if (!wxPyCheckForApp()) SWIG_fail;
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4620 wxPyEndAllowThreads(__tstate);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 }
4623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4624 {
4625 if (temp3)
4626 delete arg3;
4627 }
4628 {
4629 if (temp8)
4630 delete arg8;
4631 }
4632 return resultobj;
4633 fail:
4634 {
4635 if (temp3)
4636 delete arg3;
4637 }
4638 {
4639 if (temp8)
4640 delete arg8;
4641 }
4642 return NULL;
4643 }
4644
4645
4646 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4647 PyObject *resultobj = 0;
4648 wxCheckBox *result = 0 ;
4649
4650 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4651 {
4652 if (!wxPyCheckForApp()) SWIG_fail;
4653 PyThreadState* __tstate = wxPyBeginAllowThreads();
4654 result = (wxCheckBox *)new wxCheckBox();
4655 wxPyEndAllowThreads(__tstate);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4659 return resultobj;
4660 fail:
4661 return NULL;
4662 }
4663
4664
4665 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj = 0;
4667 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4668 wxWindow *arg2 = (wxWindow *) 0 ;
4669 int arg3 = (int) -1 ;
4670 wxString const &arg4_defvalue = wxPyEmptyString ;
4671 wxString *arg4 = (wxString *) &arg4_defvalue ;
4672 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4673 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4674 wxSize const &arg6_defvalue = wxDefaultSize ;
4675 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4676 long arg7 = (long) 0 ;
4677 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4678 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4679 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4680 wxString *arg9 = (wxString *) &arg9_defvalue ;
4681 bool result;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 void *argp2 = 0 ;
4685 int res2 = 0 ;
4686 int val3 ;
4687 int ecode3 = 0 ;
4688 bool temp4 = false ;
4689 wxPoint temp5 ;
4690 wxSize temp6 ;
4691 long val7 ;
4692 int ecode7 = 0 ;
4693 void *argp8 = 0 ;
4694 int res8 = 0 ;
4695 bool temp9 = false ;
4696 PyObject * obj0 = 0 ;
4697 PyObject * obj1 = 0 ;
4698 PyObject * obj2 = 0 ;
4699 PyObject * obj3 = 0 ;
4700 PyObject * obj4 = 0 ;
4701 PyObject * obj5 = 0 ;
4702 PyObject * obj6 = 0 ;
4703 PyObject * obj7 = 0 ;
4704 PyObject * obj8 = 0 ;
4705 char * kwnames[] = {
4706 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4707 };
4708
4709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4711 if (!SWIG_IsOK(res1)) {
4712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4713 }
4714 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4715 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4716 if (!SWIG_IsOK(res2)) {
4717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4718 }
4719 arg2 = reinterpret_cast< wxWindow * >(argp2);
4720 if (obj2) {
4721 ecode3 = SWIG_AsVal_int(obj2, &val3);
4722 if (!SWIG_IsOK(ecode3)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4724 }
4725 arg3 = static_cast< int >(val3);
4726 }
4727 if (obj3) {
4728 {
4729 arg4 = wxString_in_helper(obj3);
4730 if (arg4 == NULL) SWIG_fail;
4731 temp4 = true;
4732 }
4733 }
4734 if (obj4) {
4735 {
4736 arg5 = &temp5;
4737 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4738 }
4739 }
4740 if (obj5) {
4741 {
4742 arg6 = &temp6;
4743 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4744 }
4745 }
4746 if (obj6) {
4747 ecode7 = SWIG_AsVal_long(obj6, &val7);
4748 if (!SWIG_IsOK(ecode7)) {
4749 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4750 }
4751 arg7 = static_cast< long >(val7);
4752 }
4753 if (obj7) {
4754 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4755 if (!SWIG_IsOK(res8)) {
4756 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4757 }
4758 if (!argp8) {
4759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4760 }
4761 arg8 = reinterpret_cast< wxValidator * >(argp8);
4762 }
4763 if (obj8) {
4764 {
4765 arg9 = wxString_in_helper(obj8);
4766 if (arg9 == NULL) SWIG_fail;
4767 temp9 = true;
4768 }
4769 }
4770 {
4771 PyThreadState* __tstate = wxPyBeginAllowThreads();
4772 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) SWIG_fail;
4775 }
4776 {
4777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4778 }
4779 {
4780 if (temp4)
4781 delete arg4;
4782 }
4783 {
4784 if (temp9)
4785 delete arg9;
4786 }
4787 return resultobj;
4788 fail:
4789 {
4790 if (temp4)
4791 delete arg4;
4792 }
4793 {
4794 if (temp9)
4795 delete arg9;
4796 }
4797 return NULL;
4798 }
4799
4800
4801 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4802 PyObject *resultobj = 0;
4803 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4804 bool result;
4805 void *argp1 = 0 ;
4806 int res1 = 0 ;
4807 PyObject *swig_obj[1] ;
4808
4809 if (!args) SWIG_fail;
4810 swig_obj[0] = args;
4811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4812 if (!SWIG_IsOK(res1)) {
4813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4814 }
4815 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (bool)(arg1)->GetValue();
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 {
4823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4824 }
4825 return resultobj;
4826 fail:
4827 return NULL;
4828 }
4829
4830
4831 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4832 PyObject *resultobj = 0;
4833 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4834 bool result;
4835 void *argp1 = 0 ;
4836 int res1 = 0 ;
4837 PyObject *swig_obj[1] ;
4838
4839 if (!args) SWIG_fail;
4840 swig_obj[0] = args;
4841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4842 if (!SWIG_IsOK(res1)) {
4843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4844 }
4845 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (bool)(arg1)->IsChecked();
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4854 }
4855 return resultobj;
4856 fail:
4857 return NULL;
4858 }
4859
4860
4861 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4864 bool arg2 ;
4865 void *argp1 = 0 ;
4866 int res1 = 0 ;
4867 bool val2 ;
4868 int ecode2 = 0 ;
4869 PyObject * obj0 = 0 ;
4870 PyObject * obj1 = 0 ;
4871 char * kwnames[] = {
4872 (char *) "self",(char *) "state", NULL
4873 };
4874
4875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4877 if (!SWIG_IsOK(res1)) {
4878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4879 }
4880 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4881 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4882 if (!SWIG_IsOK(ecode2)) {
4883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4884 }
4885 arg2 = static_cast< bool >(val2);
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 (arg1)->SetValue(arg2);
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) SWIG_fail;
4891 }
4892 resultobj = SWIG_Py_Void();
4893 return resultobj;
4894 fail:
4895 return NULL;
4896 }
4897
4898
4899 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4900 PyObject *resultobj = 0;
4901 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4902 wxCheckBoxState result;
4903 void *argp1 = 0 ;
4904 int res1 = 0 ;
4905 PyObject *swig_obj[1] ;
4906
4907 if (!args) SWIG_fail;
4908 swig_obj[0] = args;
4909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4910 if (!SWIG_IsOK(res1)) {
4911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4912 }
4913 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4914 {
4915 PyThreadState* __tstate = wxPyBeginAllowThreads();
4916 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = SWIG_From_int(static_cast< int >(result));
4921 return resultobj;
4922 fail:
4923 return NULL;
4924 }
4925
4926
4927 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj = 0;
4929 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4930 wxCheckBoxState arg2 ;
4931 void *argp1 = 0 ;
4932 int res1 = 0 ;
4933 int val2 ;
4934 int ecode2 = 0 ;
4935 PyObject * obj0 = 0 ;
4936 PyObject * obj1 = 0 ;
4937 char * kwnames[] = {
4938 (char *) "self",(char *) "state", NULL
4939 };
4940
4941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4943 if (!SWIG_IsOK(res1)) {
4944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4945 }
4946 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4947 ecode2 = SWIG_AsVal_int(obj1, &val2);
4948 if (!SWIG_IsOK(ecode2)) {
4949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4950 }
4951 arg2 = static_cast< wxCheckBoxState >(val2);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 (arg1)->Set3StateValue(arg2);
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 resultobj = SWIG_Py_Void();
4959 return resultobj;
4960 fail:
4961 return NULL;
4962 }
4963
4964
4965 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4966 PyObject *resultobj = 0;
4967 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4968 bool result;
4969 void *argp1 = 0 ;
4970 int res1 = 0 ;
4971 PyObject *swig_obj[1] ;
4972
4973 if (!args) SWIG_fail;
4974 swig_obj[0] = args;
4975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4976 if (!SWIG_IsOK(res1)) {
4977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4978 }
4979 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 {
4987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4988 }
4989 return resultobj;
4990 fail:
4991 return NULL;
4992 }
4993
4994
4995 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4996 PyObject *resultobj = 0;
4997 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4998 bool result;
4999 void *argp1 = 0 ;
5000 int res1 = 0 ;
5001 PyObject *swig_obj[1] ;
5002
5003 if (!args) SWIG_fail;
5004 swig_obj[0] = args;
5005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5006 if (!SWIG_IsOK(res1)) {
5007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5008 }
5009 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5010 {
5011 PyThreadState* __tstate = wxPyBeginAllowThreads();
5012 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 {
5017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5018 }
5019 return resultobj;
5020 fail:
5021 return NULL;
5022 }
5023
5024
5025 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj = 0;
5027 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5028 SwigValueWrapper<wxVisualAttributes > result;
5029 int val1 ;
5030 int ecode1 = 0 ;
5031 PyObject * obj0 = 0 ;
5032 char * kwnames[] = {
5033 (char *) "variant", NULL
5034 };
5035
5036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5037 if (obj0) {
5038 ecode1 = SWIG_AsVal_int(obj0, &val1);
5039 if (!SWIG_IsOK(ecode1)) {
5040 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5041 }
5042 arg1 = static_cast< wxWindowVariant >(val1);
5043 }
5044 {
5045 if (!wxPyCheckForApp()) SWIG_fail;
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5048 wxPyEndAllowThreads(__tstate);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 }
5051 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5052 return resultobj;
5053 fail:
5054 return NULL;
5055 }
5056
5057
5058 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5059 PyObject *obj;
5060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5061 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5062 return SWIG_Py_Void();
5063 }
5064
5065 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5066 return SWIG_Python_InitShadowInstance(args);
5067 }
5068
5069 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5070 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5071 return 1;
5072 }
5073
5074
5075 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5076 PyObject *pyobj = 0;
5077
5078 {
5079 #if wxUSE_UNICODE
5080 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5081 #else
5082 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5083 #endif
5084 }
5085 return pyobj;
5086 }
5087
5088
5089 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj = 0;
5091 wxWindow *arg1 = (wxWindow *) 0 ;
5092 int arg2 = (int) -1 ;
5093 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5094 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5095 wxSize const &arg4_defvalue = wxDefaultSize ;
5096 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5097 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5098 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5099 long arg6 = (long) 0 ;
5100 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5101 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5102 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5103 wxString *arg8 = (wxString *) &arg8_defvalue ;
5104 wxChoice *result = 0 ;
5105 void *argp1 = 0 ;
5106 int res1 = 0 ;
5107 int val2 ;
5108 int ecode2 = 0 ;
5109 wxPoint temp3 ;
5110 wxSize temp4 ;
5111 bool temp5 = false ;
5112 long val6 ;
5113 int ecode6 = 0 ;
5114 void *argp7 = 0 ;
5115 int res7 = 0 ;
5116 bool temp8 = false ;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 PyObject * obj2 = 0 ;
5120 PyObject * obj3 = 0 ;
5121 PyObject * obj4 = 0 ;
5122 PyObject * obj5 = 0 ;
5123 PyObject * obj6 = 0 ;
5124 PyObject * obj7 = 0 ;
5125 char * kwnames[] = {
5126 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5127 };
5128
5129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5131 if (!SWIG_IsOK(res1)) {
5132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5133 }
5134 arg1 = reinterpret_cast< wxWindow * >(argp1);
5135 if (obj1) {
5136 ecode2 = SWIG_AsVal_int(obj1, &val2);
5137 if (!SWIG_IsOK(ecode2)) {
5138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5139 }
5140 arg2 = static_cast< int >(val2);
5141 }
5142 if (obj2) {
5143 {
5144 arg3 = &temp3;
5145 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5146 }
5147 }
5148 if (obj3) {
5149 {
5150 arg4 = &temp4;
5151 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5152 }
5153 }
5154 if (obj4) {
5155 {
5156 if (! PySequence_Check(obj4)) {
5157 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5158 SWIG_fail;
5159 }
5160 arg5 = new wxArrayString;
5161 temp5 = true;
5162 int i, len=PySequence_Length(obj4);
5163 for (i=0; i<len; i++) {
5164 PyObject* item = PySequence_GetItem(obj4, i);
5165 wxString* s = wxString_in_helper(item);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 arg5->Add(*s);
5168 delete s;
5169 Py_DECREF(item);
5170 }
5171 }
5172 }
5173 if (obj5) {
5174 ecode6 = SWIG_AsVal_long(obj5, &val6);
5175 if (!SWIG_IsOK(ecode6)) {
5176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5177 }
5178 arg6 = static_cast< long >(val6);
5179 }
5180 if (obj6) {
5181 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5182 if (!SWIG_IsOK(res7)) {
5183 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5184 }
5185 if (!argp7) {
5186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5187 }
5188 arg7 = reinterpret_cast< wxValidator * >(argp7);
5189 }
5190 if (obj7) {
5191 {
5192 arg8 = wxString_in_helper(obj7);
5193 if (arg8 == NULL) SWIG_fail;
5194 temp8 = true;
5195 }
5196 }
5197 {
5198 if (!wxPyCheckForApp()) SWIG_fail;
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 }
5204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5205 {
5206 if (temp5) delete arg5;
5207 }
5208 {
5209 if (temp8)
5210 delete arg8;
5211 }
5212 return resultobj;
5213 fail:
5214 {
5215 if (temp5) delete arg5;
5216 }
5217 {
5218 if (temp8)
5219 delete arg8;
5220 }
5221 return NULL;
5222 }
5223
5224
5225 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5226 PyObject *resultobj = 0;
5227 wxChoice *result = 0 ;
5228
5229 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5230 {
5231 if (!wxPyCheckForApp()) SWIG_fail;
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (wxChoice *)new wxChoice();
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5238 return resultobj;
5239 fail:
5240 return NULL;
5241 }
5242
5243
5244 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5245 PyObject *resultobj = 0;
5246 wxChoice *arg1 = (wxChoice *) 0 ;
5247 wxWindow *arg2 = (wxWindow *) 0 ;
5248 int arg3 = (int) -1 ;
5249 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5250 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5251 wxSize const &arg5_defvalue = wxDefaultSize ;
5252 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5253 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5254 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5255 long arg7 = (long) 0 ;
5256 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5257 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5258 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5259 wxString *arg9 = (wxString *) &arg9_defvalue ;
5260 bool result;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 void *argp2 = 0 ;
5264 int res2 = 0 ;
5265 int val3 ;
5266 int ecode3 = 0 ;
5267 wxPoint temp4 ;
5268 wxSize temp5 ;
5269 bool temp6 = false ;
5270 long val7 ;
5271 int ecode7 = 0 ;
5272 void *argp8 = 0 ;
5273 int res8 = 0 ;
5274 bool temp9 = false ;
5275 PyObject * obj0 = 0 ;
5276 PyObject * obj1 = 0 ;
5277 PyObject * obj2 = 0 ;
5278 PyObject * obj3 = 0 ;
5279 PyObject * obj4 = 0 ;
5280 PyObject * obj5 = 0 ;
5281 PyObject * obj6 = 0 ;
5282 PyObject * obj7 = 0 ;
5283 PyObject * obj8 = 0 ;
5284 char * kwnames[] = {
5285 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5286 };
5287
5288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5290 if (!SWIG_IsOK(res1)) {
5291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5292 }
5293 arg1 = reinterpret_cast< wxChoice * >(argp1);
5294 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5295 if (!SWIG_IsOK(res2)) {
5296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5297 }
5298 arg2 = reinterpret_cast< wxWindow * >(argp2);
5299 if (obj2) {
5300 ecode3 = SWIG_AsVal_int(obj2, &val3);
5301 if (!SWIG_IsOK(ecode3)) {
5302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5303 }
5304 arg3 = static_cast< int >(val3);
5305 }
5306 if (obj3) {
5307 {
5308 arg4 = &temp4;
5309 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5310 }
5311 }
5312 if (obj4) {
5313 {
5314 arg5 = &temp5;
5315 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5316 }
5317 }
5318 if (obj5) {
5319 {
5320 if (! PySequence_Check(obj5)) {
5321 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5322 SWIG_fail;
5323 }
5324 arg6 = new wxArrayString;
5325 temp6 = true;
5326 int i, len=PySequence_Length(obj5);
5327 for (i=0; i<len; i++) {
5328 PyObject* item = PySequence_GetItem(obj5, i);
5329 wxString* s = wxString_in_helper(item);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 arg6->Add(*s);
5332 delete s;
5333 Py_DECREF(item);
5334 }
5335 }
5336 }
5337 if (obj6) {
5338 ecode7 = SWIG_AsVal_long(obj6, &val7);
5339 if (!SWIG_IsOK(ecode7)) {
5340 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5341 }
5342 arg7 = static_cast< long >(val7);
5343 }
5344 if (obj7) {
5345 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5346 if (!SWIG_IsOK(res8)) {
5347 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5348 }
5349 if (!argp8) {
5350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5351 }
5352 arg8 = reinterpret_cast< wxValidator * >(argp8);
5353 }
5354 if (obj8) {
5355 {
5356 arg9 = wxString_in_helper(obj8);
5357 if (arg9 == NULL) SWIG_fail;
5358 temp9 = true;
5359 }
5360 }
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5364 wxPyEndAllowThreads(__tstate);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 }
5367 {
5368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5369 }
5370 {
5371 if (temp6) delete arg6;
5372 }
5373 {
5374 if (temp9)
5375 delete arg9;
5376 }
5377 return resultobj;
5378 fail:
5379 {
5380 if (temp6) delete arg6;
5381 }
5382 {
5383 if (temp9)
5384 delete arg9;
5385 }
5386 return NULL;
5387 }
5388
5389
5390 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5391 PyObject *resultobj = 0;
5392 wxChoice *arg1 = (wxChoice *) 0 ;
5393 int result;
5394 void *argp1 = 0 ;
5395 int res1 = 0 ;
5396 PyObject *swig_obj[1] ;
5397
5398 if (!args) SWIG_fail;
5399 swig_obj[0] = args;
5400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5401 if (!SWIG_IsOK(res1)) {
5402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5403 }
5404 arg1 = reinterpret_cast< wxChoice * >(argp1);
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 resultobj = SWIG_From_int(static_cast< int >(result));
5412 return resultobj;
5413 fail:
5414 return NULL;
5415 }
5416
5417
5418 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj = 0;
5420 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5421 SwigValueWrapper<wxVisualAttributes > result;
5422 int val1 ;
5423 int ecode1 = 0 ;
5424 PyObject * obj0 = 0 ;
5425 char * kwnames[] = {
5426 (char *) "variant", NULL
5427 };
5428
5429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5430 if (obj0) {
5431 ecode1 = SWIG_AsVal_int(obj0, &val1);
5432 if (!SWIG_IsOK(ecode1)) {
5433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5434 }
5435 arg1 = static_cast< wxWindowVariant >(val1);
5436 }
5437 {
5438 if (!wxPyCheckForApp()) SWIG_fail;
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = wxChoice::GetClassDefaultAttributes(arg1);
5441 wxPyEndAllowThreads(__tstate);
5442 if (PyErr_Occurred()) SWIG_fail;
5443 }
5444 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5445 return resultobj;
5446 fail:
5447 return NULL;
5448 }
5449
5450
5451 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5452 PyObject *obj;
5453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5454 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5455 return SWIG_Py_Void();
5456 }
5457
5458 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5459 return SWIG_Python_InitShadowInstance(args);
5460 }
5461
5462 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5463 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5464 return 1;
5465 }
5466
5467
5468 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5469 PyObject *pyobj = 0;
5470
5471 {
5472 #if wxUSE_UNICODE
5473 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5474 #else
5475 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5476 #endif
5477 }
5478 return pyobj;
5479 }
5480
5481
5482 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5483 PyObject *resultobj = 0;
5484 wxWindow *arg1 = (wxWindow *) 0 ;
5485 int arg2 = (int) -1 ;
5486 wxString const &arg3_defvalue = wxPyEmptyString ;
5487 wxString *arg3 = (wxString *) &arg3_defvalue ;
5488 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5489 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5490 wxSize const &arg5_defvalue = wxDefaultSize ;
5491 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5492 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5493 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5494 long arg7 = (long) 0 ;
5495 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5496 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5497 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5498 wxString *arg9 = (wxString *) &arg9_defvalue ;
5499 wxComboBox *result = 0 ;
5500 void *argp1 = 0 ;
5501 int res1 = 0 ;
5502 int val2 ;
5503 int ecode2 = 0 ;
5504 bool temp3 = false ;
5505 wxPoint temp4 ;
5506 wxSize temp5 ;
5507 bool temp6 = false ;
5508 long val7 ;
5509 int ecode7 = 0 ;
5510 void *argp8 = 0 ;
5511 int res8 = 0 ;
5512 bool temp9 = false ;
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 PyObject * obj2 = 0 ;
5516 PyObject * obj3 = 0 ;
5517 PyObject * obj4 = 0 ;
5518 PyObject * obj5 = 0 ;
5519 PyObject * obj6 = 0 ;
5520 PyObject * obj7 = 0 ;
5521 PyObject * obj8 = 0 ;
5522 char * kwnames[] = {
5523 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5524 };
5525
5526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5528 if (!SWIG_IsOK(res1)) {
5529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5530 }
5531 arg1 = reinterpret_cast< wxWindow * >(argp1);
5532 if (obj1) {
5533 ecode2 = SWIG_AsVal_int(obj1, &val2);
5534 if (!SWIG_IsOK(ecode2)) {
5535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5536 }
5537 arg2 = static_cast< int >(val2);
5538 }
5539 if (obj2) {
5540 {
5541 arg3 = wxString_in_helper(obj2);
5542 if (arg3 == NULL) SWIG_fail;
5543 temp3 = true;
5544 }
5545 }
5546 if (obj3) {
5547 {
5548 arg4 = &temp4;
5549 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5550 }
5551 }
5552 if (obj4) {
5553 {
5554 arg5 = &temp5;
5555 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5556 }
5557 }
5558 if (obj5) {
5559 {
5560 if (! PySequence_Check(obj5)) {
5561 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5562 SWIG_fail;
5563 }
5564 arg6 = new wxArrayString;
5565 temp6 = true;
5566 int i, len=PySequence_Length(obj5);
5567 for (i=0; i<len; i++) {
5568 PyObject* item = PySequence_GetItem(obj5, i);
5569 wxString* s = wxString_in_helper(item);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 arg6->Add(*s);
5572 delete s;
5573 Py_DECREF(item);
5574 }
5575 }
5576 }
5577 if (obj6) {
5578 ecode7 = SWIG_AsVal_long(obj6, &val7);
5579 if (!SWIG_IsOK(ecode7)) {
5580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5581 }
5582 arg7 = static_cast< long >(val7);
5583 }
5584 if (obj7) {
5585 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5586 if (!SWIG_IsOK(res8)) {
5587 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5588 }
5589 if (!argp8) {
5590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5591 }
5592 arg8 = reinterpret_cast< wxValidator * >(argp8);
5593 }
5594 if (obj8) {
5595 {
5596 arg9 = wxString_in_helper(obj8);
5597 if (arg9 == NULL) SWIG_fail;
5598 temp9 = true;
5599 }
5600 }
5601 {
5602 if (!wxPyCheckForApp()) SWIG_fail;
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5609 {
5610 if (temp3)
5611 delete arg3;
5612 }
5613 {
5614 if (temp6) delete arg6;
5615 }
5616 {
5617 if (temp9)
5618 delete arg9;
5619 }
5620 return resultobj;
5621 fail:
5622 {
5623 if (temp3)
5624 delete arg3;
5625 }
5626 {
5627 if (temp6) delete arg6;
5628 }
5629 {
5630 if (temp9)
5631 delete arg9;
5632 }
5633 return NULL;
5634 }
5635
5636
5637 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5638 PyObject *resultobj = 0;
5639 wxComboBox *result = 0 ;
5640
5641 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5642 {
5643 if (!wxPyCheckForApp()) SWIG_fail;
5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
5645 result = (wxComboBox *)new wxComboBox();
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5650 return resultobj;
5651 fail:
5652 return NULL;
5653 }
5654
5655
5656 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj = 0;
5658 wxComboBox *arg1 = (wxComboBox *) 0 ;
5659 wxWindow *arg2 = (wxWindow *) 0 ;
5660 int arg3 = (int) -1 ;
5661 wxString const &arg4_defvalue = wxPyEmptyString ;
5662 wxString *arg4 = (wxString *) &arg4_defvalue ;
5663 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5664 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5665 wxSize const &arg6_defvalue = wxDefaultSize ;
5666 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5667 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5668 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5669 long arg8 = (long) 0 ;
5670 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5671 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5672 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5673 wxString *arg10 = (wxString *) &arg10_defvalue ;
5674 bool result;
5675 void *argp1 = 0 ;
5676 int res1 = 0 ;
5677 void *argp2 = 0 ;
5678 int res2 = 0 ;
5679 int val3 ;
5680 int ecode3 = 0 ;
5681 bool temp4 = false ;
5682 wxPoint temp5 ;
5683 wxSize temp6 ;
5684 bool temp7 = false ;
5685 long val8 ;
5686 int ecode8 = 0 ;
5687 void *argp9 = 0 ;
5688 int res9 = 0 ;
5689 bool temp10 = false ;
5690 PyObject * obj0 = 0 ;
5691 PyObject * obj1 = 0 ;
5692 PyObject * obj2 = 0 ;
5693 PyObject * obj3 = 0 ;
5694 PyObject * obj4 = 0 ;
5695 PyObject * obj5 = 0 ;
5696 PyObject * obj6 = 0 ;
5697 PyObject * obj7 = 0 ;
5698 PyObject * obj8 = 0 ;
5699 PyObject * obj9 = 0 ;
5700 char * kwnames[] = {
5701 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5702 };
5703
5704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5706 if (!SWIG_IsOK(res1)) {
5707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5708 }
5709 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5711 if (!SWIG_IsOK(res2)) {
5712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5713 }
5714 arg2 = reinterpret_cast< wxWindow * >(argp2);
5715 if (obj2) {
5716 ecode3 = SWIG_AsVal_int(obj2, &val3);
5717 if (!SWIG_IsOK(ecode3)) {
5718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5719 }
5720 arg3 = static_cast< int >(val3);
5721 }
5722 if (obj3) {
5723 {
5724 arg4 = wxString_in_helper(obj3);
5725 if (arg4 == NULL) SWIG_fail;
5726 temp4 = true;
5727 }
5728 }
5729 if (obj4) {
5730 {
5731 arg5 = &temp5;
5732 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5733 }
5734 }
5735 if (obj5) {
5736 {
5737 arg6 = &temp6;
5738 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5739 }
5740 }
5741 if (obj6) {
5742 {
5743 if (! PySequence_Check(obj6)) {
5744 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5745 SWIG_fail;
5746 }
5747 arg7 = new wxArrayString;
5748 temp7 = true;
5749 int i, len=PySequence_Length(obj6);
5750 for (i=0; i<len; i++) {
5751 PyObject* item = PySequence_GetItem(obj6, i);
5752 wxString* s = wxString_in_helper(item);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 arg7->Add(*s);
5755 delete s;
5756 Py_DECREF(item);
5757 }
5758 }
5759 }
5760 if (obj7) {
5761 ecode8 = SWIG_AsVal_long(obj7, &val8);
5762 if (!SWIG_IsOK(ecode8)) {
5763 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5764 }
5765 arg8 = static_cast< long >(val8);
5766 }
5767 if (obj8) {
5768 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5769 if (!SWIG_IsOK(res9)) {
5770 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5771 }
5772 if (!argp9) {
5773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5774 }
5775 arg9 = reinterpret_cast< wxValidator * >(argp9);
5776 }
5777 if (obj9) {
5778 {
5779 arg10 = wxString_in_helper(obj9);
5780 if (arg10 == NULL) SWIG_fail;
5781 temp10 = true;
5782 }
5783 }
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 {
5791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5792 }
5793 {
5794 if (temp4)
5795 delete arg4;
5796 }
5797 {
5798 if (temp7) delete arg7;
5799 }
5800 {
5801 if (temp10)
5802 delete arg10;
5803 }
5804 return resultobj;
5805 fail:
5806 {
5807 if (temp4)
5808 delete arg4;
5809 }
5810 {
5811 if (temp7) delete arg7;
5812 }
5813 {
5814 if (temp10)
5815 delete arg10;
5816 }
5817 return NULL;
5818 }
5819
5820
5821 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5822 PyObject *resultobj = 0;
5823 wxComboBox *arg1 = (wxComboBox *) 0 ;
5824 wxString result;
5825 void *argp1 = 0 ;
5826 int res1 = 0 ;
5827 PyObject *swig_obj[1] ;
5828
5829 if (!args) SWIG_fail;
5830 swig_obj[0] = args;
5831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5832 if (!SWIG_IsOK(res1)) {
5833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5834 }
5835 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 result = ((wxComboBox const *)arg1)->GetValue();
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 {
5843 #if wxUSE_UNICODE
5844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5845 #else
5846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5847 #endif
5848 }
5849 return resultobj;
5850 fail:
5851 return NULL;
5852 }
5853
5854
5855 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj = 0;
5857 wxComboBox *arg1 = (wxComboBox *) 0 ;
5858 wxString *arg2 = 0 ;
5859 void *argp1 = 0 ;
5860 int res1 = 0 ;
5861 bool temp2 = false ;
5862 PyObject * obj0 = 0 ;
5863 PyObject * obj1 = 0 ;
5864 char * kwnames[] = {
5865 (char *) "self",(char *) "value", NULL
5866 };
5867
5868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5870 if (!SWIG_IsOK(res1)) {
5871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5872 }
5873 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5874 {
5875 arg2 = wxString_in_helper(obj1);
5876 if (arg2 == NULL) SWIG_fail;
5877 temp2 = true;
5878 }
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 (arg1)->SetValue((wxString const &)*arg2);
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 resultobj = SWIG_Py_Void();
5886 {
5887 if (temp2)
5888 delete arg2;
5889 }
5890 return resultobj;
5891 fail:
5892 {
5893 if (temp2)
5894 delete arg2;
5895 }
5896 return NULL;
5897 }
5898
5899
5900 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5901 PyObject *resultobj = 0;
5902 wxComboBox *arg1 = (wxComboBox *) 0 ;
5903 void *argp1 = 0 ;
5904 int res1 = 0 ;
5905 PyObject *swig_obj[1] ;
5906
5907 if (!args) SWIG_fail;
5908 swig_obj[0] = args;
5909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5912 }
5913 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->Copy();
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_Py_Void();
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5928 PyObject *resultobj = 0;
5929 wxComboBox *arg1 = (wxComboBox *) 0 ;
5930 void *argp1 = 0 ;
5931 int res1 = 0 ;
5932 PyObject *swig_obj[1] ;
5933
5934 if (!args) SWIG_fail;
5935 swig_obj[0] = args;
5936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5937 if (!SWIG_IsOK(res1)) {
5938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5939 }
5940 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 (arg1)->Cut();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_Py_Void();
5948 return resultobj;
5949 fail:
5950 return NULL;
5951 }
5952
5953
5954 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 PyObject *swig_obj[1] ;
5960
5961 if (!args) SWIG_fail;
5962 swig_obj[0] = args;
5963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5966 }
5967 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 (arg1)->Paste();
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_Py_Void();
5975 return resultobj;
5976 fail:
5977 return NULL;
5978 }
5979
5980
5981 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5982 PyObject *resultobj = 0;
5983 wxComboBox *arg1 = (wxComboBox *) 0 ;
5984 long arg2 ;
5985 void *argp1 = 0 ;
5986 int res1 = 0 ;
5987 long val2 ;
5988 int ecode2 = 0 ;
5989 PyObject * obj0 = 0 ;
5990 PyObject * obj1 = 0 ;
5991 char * kwnames[] = {
5992 (char *) "self",(char *) "pos", NULL
5993 };
5994
5995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5997 if (!SWIG_IsOK(res1)) {
5998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5999 }
6000 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6001 ecode2 = SWIG_AsVal_long(obj1, &val2);
6002 if (!SWIG_IsOK(ecode2)) {
6003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6004 }
6005 arg2 = static_cast< long >(val2);
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 (arg1)->SetInsertionPoint(arg2);
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 resultobj = SWIG_Py_Void();
6013 return resultobj;
6014 fail:
6015 return NULL;
6016 }
6017
6018
6019 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 wxComboBox *arg1 = (wxComboBox *) 0 ;
6022 long result;
6023 void *argp1 = 0 ;
6024 int res1 = 0 ;
6025 PyObject *swig_obj[1] ;
6026
6027 if (!args) SWIG_fail;
6028 swig_obj[0] = args;
6029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6030 if (!SWIG_IsOK(res1)) {
6031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6032 }
6033 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 resultobj = SWIG_From_long(static_cast< long >(result));
6041 return resultobj;
6042 fail:
6043 return NULL;
6044 }
6045
6046
6047 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6048 PyObject *resultobj = 0;
6049 wxComboBox *arg1 = (wxComboBox *) 0 ;
6050 long result;
6051 void *argp1 = 0 ;
6052 int res1 = 0 ;
6053 PyObject *swig_obj[1] ;
6054
6055 if (!args) SWIG_fail;
6056 swig_obj[0] = args;
6057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6058 if (!SWIG_IsOK(res1)) {
6059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6060 }
6061 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_From_long(static_cast< long >(result));
6069 return resultobj;
6070 fail:
6071 return NULL;
6072 }
6073
6074
6075 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj = 0;
6077 wxComboBox *arg1 = (wxComboBox *) 0 ;
6078 long arg2 ;
6079 long arg3 ;
6080 wxString *arg4 = 0 ;
6081 void *argp1 = 0 ;
6082 int res1 = 0 ;
6083 long val2 ;
6084 int ecode2 = 0 ;
6085 long val3 ;
6086 int ecode3 = 0 ;
6087 bool temp4 = false ;
6088 PyObject * obj0 = 0 ;
6089 PyObject * obj1 = 0 ;
6090 PyObject * obj2 = 0 ;
6091 PyObject * obj3 = 0 ;
6092 char * kwnames[] = {
6093 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6094 };
6095
6096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6098 if (!SWIG_IsOK(res1)) {
6099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6100 }
6101 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6102 ecode2 = SWIG_AsVal_long(obj1, &val2);
6103 if (!SWIG_IsOK(ecode2)) {
6104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6105 }
6106 arg2 = static_cast< long >(val2);
6107 ecode3 = SWIG_AsVal_long(obj2, &val3);
6108 if (!SWIG_IsOK(ecode3)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6110 }
6111 arg3 = static_cast< long >(val3);
6112 {
6113 arg4 = wxString_in_helper(obj3);
6114 if (arg4 == NULL) SWIG_fail;
6115 temp4 = true;
6116 }
6117 {
6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
6119 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 resultobj = SWIG_Py_Void();
6124 {
6125 if (temp4)
6126 delete arg4;
6127 }
6128 return resultobj;
6129 fail:
6130 {
6131 if (temp4)
6132 delete arg4;
6133 }
6134 return NULL;
6135 }
6136
6137
6138 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6139 PyObject *resultobj = 0;
6140 wxComboBox *arg1 = (wxComboBox *) 0 ;
6141 long arg2 ;
6142 long arg3 ;
6143 void *argp1 = 0 ;
6144 int res1 = 0 ;
6145 long val2 ;
6146 int ecode2 = 0 ;
6147 long val3 ;
6148 int ecode3 = 0 ;
6149 PyObject * obj0 = 0 ;
6150 PyObject * obj1 = 0 ;
6151 PyObject * obj2 = 0 ;
6152 char * kwnames[] = {
6153 (char *) "self",(char *) "from",(char *) "to", NULL
6154 };
6155
6156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6158 if (!SWIG_IsOK(res1)) {
6159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6160 }
6161 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6162 ecode2 = SWIG_AsVal_long(obj1, &val2);
6163 if (!SWIG_IsOK(ecode2)) {
6164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6165 }
6166 arg2 = static_cast< long >(val2);
6167 ecode3 = SWIG_AsVal_long(obj2, &val3);
6168 if (!SWIG_IsOK(ecode3)) {
6169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6170 }
6171 arg3 = static_cast< long >(val3);
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 (arg1)->SetSelection(arg2,arg3);
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 resultobj = SWIG_Py_Void();
6179 return resultobj;
6180 fail:
6181 return NULL;
6182 }
6183
6184
6185 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxComboBox *arg1 = (wxComboBox *) 0 ;
6188 long *arg2 = (long *) 0 ;
6189 long *arg3 = (long *) 0 ;
6190 void *argp1 = 0 ;
6191 int res1 = 0 ;
6192 long temp2 ;
6193 int res2 = SWIG_TMPOBJ ;
6194 long temp3 ;
6195 int res3 = SWIG_TMPOBJ ;
6196 PyObject *swig_obj[1] ;
6197
6198 arg2 = &temp2;
6199 arg3 = &temp3;
6200 if (!args) SWIG_fail;
6201 swig_obj[0] = args;
6202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6203 if (!SWIG_IsOK(res1)) {
6204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6205 }
6206 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6207 {
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 (arg1)->GetSelection(arg2,arg3);
6210 wxPyEndAllowThreads(__tstate);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 resultobj = SWIG_Py_Void();
6214 if (SWIG_IsTmpObj(res2)) {
6215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6216 } else {
6217 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6219 }
6220 if (SWIG_IsTmpObj(res3)) {
6221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6222 } else {
6223 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6225 }
6226 return resultobj;
6227 fail:
6228 return NULL;
6229 }
6230
6231
6232 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6233 PyObject *resultobj = 0;
6234 wxComboBox *arg1 = (wxComboBox *) 0 ;
6235 int result;
6236 void *argp1 = 0 ;
6237 int res1 = 0 ;
6238 PyObject *swig_obj[1] ;
6239
6240 if (!args) SWIG_fail;
6241 swig_obj[0] = args;
6242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6243 if (!SWIG_IsOK(res1)) {
6244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6245 }
6246 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6247 {
6248 PyThreadState* __tstate = wxPyBeginAllowThreads();
6249 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6250 wxPyEndAllowThreads(__tstate);
6251 if (PyErr_Occurred()) SWIG_fail;
6252 }
6253 resultobj = SWIG_From_int(static_cast< int >(result));
6254 return resultobj;
6255 fail:
6256 return NULL;
6257 }
6258
6259
6260 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6261 PyObject *resultobj = 0;
6262 wxComboBox *arg1 = (wxComboBox *) 0 ;
6263 wxString *arg2 = 0 ;
6264 bool result;
6265 void *argp1 = 0 ;
6266 int res1 = 0 ;
6267 bool temp2 = false ;
6268 PyObject * obj0 = 0 ;
6269 PyObject * obj1 = 0 ;
6270 char * kwnames[] = {
6271 (char *) "self",(char *) "string", NULL
6272 };
6273
6274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6276 if (!SWIG_IsOK(res1)) {
6277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6278 }
6279 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6280 {
6281 arg2 = wxString_in_helper(obj1);
6282 if (arg2 == NULL) SWIG_fail;
6283 temp2 = true;
6284 }
6285 {
6286 PyThreadState* __tstate = wxPyBeginAllowThreads();
6287 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6288 wxPyEndAllowThreads(__tstate);
6289 if (PyErr_Occurred()) SWIG_fail;
6290 }
6291 {
6292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6293 }
6294 {
6295 if (temp2)
6296 delete arg2;
6297 }
6298 return resultobj;
6299 fail:
6300 {
6301 if (temp2)
6302 delete arg2;
6303 }
6304 return NULL;
6305 }
6306
6307
6308 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj = 0;
6310 wxComboBox *arg1 = (wxComboBox *) 0 ;
6311 int arg2 ;
6312 wxString *arg3 = 0 ;
6313 void *argp1 = 0 ;
6314 int res1 = 0 ;
6315 int val2 ;
6316 int ecode2 = 0 ;
6317 bool temp3 = false ;
6318 PyObject * obj0 = 0 ;
6319 PyObject * obj1 = 0 ;
6320 PyObject * obj2 = 0 ;
6321 char * kwnames[] = {
6322 (char *) "self",(char *) "n",(char *) "string", NULL
6323 };
6324
6325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6327 if (!SWIG_IsOK(res1)) {
6328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6329 }
6330 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6331 ecode2 = SWIG_AsVal_int(obj1, &val2);
6332 if (!SWIG_IsOK(ecode2)) {
6333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6334 }
6335 arg2 = static_cast< int >(val2);
6336 {
6337 arg3 = wxString_in_helper(obj2);
6338 if (arg3 == NULL) SWIG_fail;
6339 temp3 = true;
6340 }
6341 {
6342 PyThreadState* __tstate = wxPyBeginAllowThreads();
6343 (arg1)->SetString(arg2,(wxString const &)*arg3);
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 resultobj = SWIG_Py_Void();
6348 {
6349 if (temp3)
6350 delete arg3;
6351 }
6352 return resultobj;
6353 fail:
6354 {
6355 if (temp3)
6356 delete arg3;
6357 }
6358 return NULL;
6359 }
6360
6361
6362 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6363 PyObject *resultobj = 0;
6364 wxComboBox *arg1 = (wxComboBox *) 0 ;
6365 bool arg2 ;
6366 void *argp1 = 0 ;
6367 int res1 = 0 ;
6368 bool val2 ;
6369 int ecode2 = 0 ;
6370 PyObject * obj0 = 0 ;
6371 PyObject * obj1 = 0 ;
6372 char * kwnames[] = {
6373 (char *) "self",(char *) "editable", NULL
6374 };
6375
6376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6378 if (!SWIG_IsOK(res1)) {
6379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6380 }
6381 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6382 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6383 if (!SWIG_IsOK(ecode2)) {
6384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6385 }
6386 arg2 = static_cast< bool >(val2);
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 (arg1)->SetEditable(arg2);
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_Py_Void();
6394 return resultobj;
6395 fail:
6396 return NULL;
6397 }
6398
6399
6400 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6401 PyObject *resultobj = 0;
6402 wxComboBox *arg1 = (wxComboBox *) 0 ;
6403 void *argp1 = 0 ;
6404 int res1 = 0 ;
6405 PyObject *swig_obj[1] ;
6406
6407 if (!args) SWIG_fail;
6408 swig_obj[0] = args;
6409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6410 if (!SWIG_IsOK(res1)) {
6411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6412 }
6413 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->SetInsertionPointEnd();
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 resultobj = SWIG_Py_Void();
6421 return resultobj;
6422 fail:
6423 return NULL;
6424 }
6425
6426
6427 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6428 PyObject *resultobj = 0;
6429 wxComboBox *arg1 = (wxComboBox *) 0 ;
6430 long arg2 ;
6431 long arg3 ;
6432 void *argp1 = 0 ;
6433 int res1 = 0 ;
6434 long val2 ;
6435 int ecode2 = 0 ;
6436 long val3 ;
6437 int ecode3 = 0 ;
6438 PyObject * obj0 = 0 ;
6439 PyObject * obj1 = 0 ;
6440 PyObject * obj2 = 0 ;
6441 char * kwnames[] = {
6442 (char *) "self",(char *) "from",(char *) "to", NULL
6443 };
6444
6445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6447 if (!SWIG_IsOK(res1)) {
6448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6449 }
6450 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6451 ecode2 = SWIG_AsVal_long(obj1, &val2);
6452 if (!SWIG_IsOK(ecode2)) {
6453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6454 }
6455 arg2 = static_cast< long >(val2);
6456 ecode3 = SWIG_AsVal_long(obj2, &val3);
6457 if (!SWIG_IsOK(ecode3)) {
6458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6459 }
6460 arg3 = static_cast< long >(val3);
6461 {
6462 PyThreadState* __tstate = wxPyBeginAllowThreads();
6463 (arg1)->Remove(arg2,arg3);
6464 wxPyEndAllowThreads(__tstate);
6465 if (PyErr_Occurred()) SWIG_fail;
6466 }
6467 resultobj = SWIG_Py_Void();
6468 return resultobj;
6469 fail:
6470 return NULL;
6471 }
6472
6473
6474 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6475 PyObject *resultobj = 0;
6476 wxComboBox *arg1 = (wxComboBox *) 0 ;
6477 bool result;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 PyObject *swig_obj[1] ;
6481
6482 if (!args) SWIG_fail;
6483 swig_obj[0] = args;
6484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6487 }
6488 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6489 {
6490 PyThreadState* __tstate = wxPyBeginAllowThreads();
6491 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6492 wxPyEndAllowThreads(__tstate);
6493 if (PyErr_Occurred()) SWIG_fail;
6494 }
6495 {
6496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6497 }
6498 return resultobj;
6499 fail:
6500 return NULL;
6501 }
6502
6503
6504 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxComboBox *arg1 = (wxComboBox *) 0 ;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 PyObject *swig_obj[1] ;
6510
6511 if (!args) SWIG_fail;
6512 swig_obj[0] = args;
6513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6516 }
6517 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6518 {
6519 PyThreadState* __tstate = wxPyBeginAllowThreads();
6520 (arg1)->Undo();
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 resultobj = SWIG_Py_Void();
6525 return resultobj;
6526 fail:
6527 return NULL;
6528 }
6529
6530
6531 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6532 PyObject *resultobj = 0;
6533 wxComboBox *arg1 = (wxComboBox *) 0 ;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 PyObject *swig_obj[1] ;
6537
6538 if (!args) SWIG_fail;
6539 swig_obj[0] = args;
6540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6541 if (!SWIG_IsOK(res1)) {
6542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6543 }
6544 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 (arg1)->Redo();
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_Py_Void();
6552 return resultobj;
6553 fail:
6554 return NULL;
6555 }
6556
6557
6558 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6559 PyObject *resultobj = 0;
6560 wxComboBox *arg1 = (wxComboBox *) 0 ;
6561 void *argp1 = 0 ;
6562 int res1 = 0 ;
6563 PyObject *swig_obj[1] ;
6564
6565 if (!args) SWIG_fail;
6566 swig_obj[0] = args;
6567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6568 if (!SWIG_IsOK(res1)) {
6569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6570 }
6571 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 (arg1)->SelectAll();
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 resultobj = SWIG_Py_Void();
6579 return resultobj;
6580 fail:
6581 return NULL;
6582 }
6583
6584
6585 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6586 PyObject *resultobj = 0;
6587 wxComboBox *arg1 = (wxComboBox *) 0 ;
6588 bool result;
6589 void *argp1 = 0 ;
6590 int res1 = 0 ;
6591 PyObject *swig_obj[1] ;
6592
6593 if (!args) SWIG_fail;
6594 swig_obj[0] = args;
6595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6596 if (!SWIG_IsOK(res1)) {
6597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6598 }
6599 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6600 {
6601 PyThreadState* __tstate = wxPyBeginAllowThreads();
6602 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6603 wxPyEndAllowThreads(__tstate);
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 {
6607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6608 }
6609 return resultobj;
6610 fail:
6611 return NULL;
6612 }
6613
6614
6615 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6616 PyObject *resultobj = 0;
6617 wxComboBox *arg1 = (wxComboBox *) 0 ;
6618 bool result;
6619 void *argp1 = 0 ;
6620 int res1 = 0 ;
6621 PyObject *swig_obj[1] ;
6622
6623 if (!args) SWIG_fail;
6624 swig_obj[0] = args;
6625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6626 if (!SWIG_IsOK(res1)) {
6627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6628 }
6629 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 result = (bool)((wxComboBox const *)arg1)->CanCut();
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 {
6637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6638 }
6639 return resultobj;
6640 fail:
6641 return NULL;
6642 }
6643
6644
6645 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6646 PyObject *resultobj = 0;
6647 wxComboBox *arg1 = (wxComboBox *) 0 ;
6648 bool result;
6649 void *argp1 = 0 ;
6650 int res1 = 0 ;
6651 PyObject *swig_obj[1] ;
6652
6653 if (!args) SWIG_fail;
6654 swig_obj[0] = args;
6655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6656 if (!SWIG_IsOK(res1)) {
6657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6658 }
6659 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6660 {
6661 PyThreadState* __tstate = wxPyBeginAllowThreads();
6662 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6663 wxPyEndAllowThreads(__tstate);
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 {
6667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6668 }
6669 return resultobj;
6670 fail:
6671 return NULL;
6672 }
6673
6674
6675 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6676 PyObject *resultobj = 0;
6677 wxComboBox *arg1 = (wxComboBox *) 0 ;
6678 bool result;
6679 void *argp1 = 0 ;
6680 int res1 = 0 ;
6681 PyObject *swig_obj[1] ;
6682
6683 if (!args) SWIG_fail;
6684 swig_obj[0] = args;
6685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6686 if (!SWIG_IsOK(res1)) {
6687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6688 }
6689 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6690 {
6691 PyThreadState* __tstate = wxPyBeginAllowThreads();
6692 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 {
6697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6698 }
6699 return resultobj;
6700 fail:
6701 return NULL;
6702 }
6703
6704
6705 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6706 PyObject *resultobj = 0;
6707 wxComboBox *arg1 = (wxComboBox *) 0 ;
6708 bool result;
6709 void *argp1 = 0 ;
6710 int res1 = 0 ;
6711 PyObject *swig_obj[1] ;
6712
6713 if (!args) SWIG_fail;
6714 swig_obj[0] = args;
6715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6716 if (!SWIG_IsOK(res1)) {
6717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6718 }
6719 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6720 {
6721 PyThreadState* __tstate = wxPyBeginAllowThreads();
6722 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6723 wxPyEndAllowThreads(__tstate);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 {
6727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6728 }
6729 return resultobj;
6730 fail:
6731 return NULL;
6732 }
6733
6734
6735 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6736 PyObject *resultobj = 0;
6737 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6738 SwigValueWrapper<wxVisualAttributes > result;
6739 int val1 ;
6740 int ecode1 = 0 ;
6741 PyObject * obj0 = 0 ;
6742 char * kwnames[] = {
6743 (char *) "variant", NULL
6744 };
6745
6746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6747 if (obj0) {
6748 ecode1 = SWIG_AsVal_int(obj0, &val1);
6749 if (!SWIG_IsOK(ecode1)) {
6750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6751 }
6752 arg1 = static_cast< wxWindowVariant >(val1);
6753 }
6754 {
6755 if (!wxPyCheckForApp()) SWIG_fail;
6756 PyThreadState* __tstate = wxPyBeginAllowThreads();
6757 result = wxComboBox::GetClassDefaultAttributes(arg1);
6758 wxPyEndAllowThreads(__tstate);
6759 if (PyErr_Occurred()) SWIG_fail;
6760 }
6761 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6762 return resultobj;
6763 fail:
6764 return NULL;
6765 }
6766
6767
6768 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6769 PyObject *obj;
6770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6771 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6772 return SWIG_Py_Void();
6773 }
6774
6775 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6776 return SWIG_Python_InitShadowInstance(args);
6777 }
6778
6779 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6780 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6781 return 1;
6782 }
6783
6784
6785 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6786 PyObject *pyobj = 0;
6787
6788 {
6789 #if wxUSE_UNICODE
6790 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6791 #else
6792 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6793 #endif
6794 }
6795 return pyobj;
6796 }
6797
6798
6799 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6800 PyObject *resultobj = 0;
6801 wxWindow *arg1 = (wxWindow *) 0 ;
6802 int arg2 = (int) -1 ;
6803 int arg3 = (int) 100 ;
6804 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6805 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6806 wxSize const &arg5_defvalue = wxDefaultSize ;
6807 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6808 long arg6 = (long) wxGA_HORIZONTAL ;
6809 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6810 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6811 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6812 wxString *arg8 = (wxString *) &arg8_defvalue ;
6813 wxGauge *result = 0 ;
6814 void *argp1 = 0 ;
6815 int res1 = 0 ;
6816 int val2 ;
6817 int ecode2 = 0 ;
6818 int val3 ;
6819 int ecode3 = 0 ;
6820 wxPoint temp4 ;
6821 wxSize temp5 ;
6822 long val6 ;
6823 int ecode6 = 0 ;
6824 void *argp7 = 0 ;
6825 int res7 = 0 ;
6826 bool temp8 = false ;
6827 PyObject * obj0 = 0 ;
6828 PyObject * obj1 = 0 ;
6829 PyObject * obj2 = 0 ;
6830 PyObject * obj3 = 0 ;
6831 PyObject * obj4 = 0 ;
6832 PyObject * obj5 = 0 ;
6833 PyObject * obj6 = 0 ;
6834 PyObject * obj7 = 0 ;
6835 char * kwnames[] = {
6836 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6837 };
6838
6839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6841 if (!SWIG_IsOK(res1)) {
6842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6843 }
6844 arg1 = reinterpret_cast< wxWindow * >(argp1);
6845 if (obj1) {
6846 ecode2 = SWIG_AsVal_int(obj1, &val2);
6847 if (!SWIG_IsOK(ecode2)) {
6848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6849 }
6850 arg2 = static_cast< int >(val2);
6851 }
6852 if (obj2) {
6853 ecode3 = SWIG_AsVal_int(obj2, &val3);
6854 if (!SWIG_IsOK(ecode3)) {
6855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6856 }
6857 arg3 = static_cast< int >(val3);
6858 }
6859 if (obj3) {
6860 {
6861 arg4 = &temp4;
6862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6863 }
6864 }
6865 if (obj4) {
6866 {
6867 arg5 = &temp5;
6868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6869 }
6870 }
6871 if (obj5) {
6872 ecode6 = SWIG_AsVal_long(obj5, &val6);
6873 if (!SWIG_IsOK(ecode6)) {
6874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6875 }
6876 arg6 = static_cast< long >(val6);
6877 }
6878 if (obj6) {
6879 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6880 if (!SWIG_IsOK(res7)) {
6881 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6882 }
6883 if (!argp7) {
6884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6885 }
6886 arg7 = reinterpret_cast< wxValidator * >(argp7);
6887 }
6888 if (obj7) {
6889 {
6890 arg8 = wxString_in_helper(obj7);
6891 if (arg8 == NULL) SWIG_fail;
6892 temp8 = true;
6893 }
6894 }
6895 {
6896 if (!wxPyCheckForApp()) SWIG_fail;
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6899 wxPyEndAllowThreads(__tstate);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6903 {
6904 if (temp8)
6905 delete arg8;
6906 }
6907 return resultobj;
6908 fail:
6909 {
6910 if (temp8)
6911 delete arg8;
6912 }
6913 return NULL;
6914 }
6915
6916
6917 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6918 PyObject *resultobj = 0;
6919 wxGauge *result = 0 ;
6920
6921 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6922 {
6923 if (!wxPyCheckForApp()) SWIG_fail;
6924 PyThreadState* __tstate = wxPyBeginAllowThreads();
6925 result = (wxGauge *)new wxGauge();
6926 wxPyEndAllowThreads(__tstate);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6930 return resultobj;
6931 fail:
6932 return NULL;
6933 }
6934
6935
6936 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj = 0;
6938 wxGauge *arg1 = (wxGauge *) 0 ;
6939 wxWindow *arg2 = (wxWindow *) 0 ;
6940 int arg3 = (int) -1 ;
6941 int arg4 = (int) 100 ;
6942 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6943 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6944 wxSize const &arg6_defvalue = wxDefaultSize ;
6945 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6946 long arg7 = (long) wxGA_HORIZONTAL ;
6947 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6948 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6949 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6950 wxString *arg9 = (wxString *) &arg9_defvalue ;
6951 bool result;
6952 void *argp1 = 0 ;
6953 int res1 = 0 ;
6954 void *argp2 = 0 ;
6955 int res2 = 0 ;
6956 int val3 ;
6957 int ecode3 = 0 ;
6958 int val4 ;
6959 int ecode4 = 0 ;
6960 wxPoint temp5 ;
6961 wxSize temp6 ;
6962 long val7 ;
6963 int ecode7 = 0 ;
6964 void *argp8 = 0 ;
6965 int res8 = 0 ;
6966 bool temp9 = false ;
6967 PyObject * obj0 = 0 ;
6968 PyObject * obj1 = 0 ;
6969 PyObject * obj2 = 0 ;
6970 PyObject * obj3 = 0 ;
6971 PyObject * obj4 = 0 ;
6972 PyObject * obj5 = 0 ;
6973 PyObject * obj6 = 0 ;
6974 PyObject * obj7 = 0 ;
6975 PyObject * obj8 = 0 ;
6976 char * kwnames[] = {
6977 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6978 };
6979
6980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6982 if (!SWIG_IsOK(res1)) {
6983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6984 }
6985 arg1 = reinterpret_cast< wxGauge * >(argp1);
6986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6987 if (!SWIG_IsOK(res2)) {
6988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6989 }
6990 arg2 = reinterpret_cast< wxWindow * >(argp2);
6991 if (obj2) {
6992 ecode3 = SWIG_AsVal_int(obj2, &val3);
6993 if (!SWIG_IsOK(ecode3)) {
6994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6995 }
6996 arg3 = static_cast< int >(val3);
6997 }
6998 if (obj3) {
6999 ecode4 = SWIG_AsVal_int(obj3, &val4);
7000 if (!SWIG_IsOK(ecode4)) {
7001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
7002 }
7003 arg4 = static_cast< int >(val4);
7004 }
7005 if (obj4) {
7006 {
7007 arg5 = &temp5;
7008 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7009 }
7010 }
7011 if (obj5) {
7012 {
7013 arg6 = &temp6;
7014 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7015 }
7016 }
7017 if (obj6) {
7018 ecode7 = SWIG_AsVal_long(obj6, &val7);
7019 if (!SWIG_IsOK(ecode7)) {
7020 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7021 }
7022 arg7 = static_cast< long >(val7);
7023 }
7024 if (obj7) {
7025 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7026 if (!SWIG_IsOK(res8)) {
7027 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7028 }
7029 if (!argp8) {
7030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7031 }
7032 arg8 = reinterpret_cast< wxValidator * >(argp8);
7033 }
7034 if (obj8) {
7035 {
7036 arg9 = wxString_in_helper(obj8);
7037 if (arg9 == NULL) SWIG_fail;
7038 temp9 = true;
7039 }
7040 }
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7044 wxPyEndAllowThreads(__tstate);
7045 if (PyErr_Occurred()) SWIG_fail;
7046 }
7047 {
7048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7049 }
7050 {
7051 if (temp9)
7052 delete arg9;
7053 }
7054 return resultobj;
7055 fail:
7056 {
7057 if (temp9)
7058 delete arg9;
7059 }
7060 return NULL;
7061 }
7062
7063
7064 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7065 PyObject *resultobj = 0;
7066 wxGauge *arg1 = (wxGauge *) 0 ;
7067 int arg2 ;
7068 void *argp1 = 0 ;
7069 int res1 = 0 ;
7070 int val2 ;
7071 int ecode2 = 0 ;
7072 PyObject * obj0 = 0 ;
7073 PyObject * obj1 = 0 ;
7074 char * kwnames[] = {
7075 (char *) "self",(char *) "range", NULL
7076 };
7077
7078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7080 if (!SWIG_IsOK(res1)) {
7081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7082 }
7083 arg1 = reinterpret_cast< wxGauge * >(argp1);
7084 ecode2 = SWIG_AsVal_int(obj1, &val2);
7085 if (!SWIG_IsOK(ecode2)) {
7086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7087 }
7088 arg2 = static_cast< int >(val2);
7089 {
7090 PyThreadState* __tstate = wxPyBeginAllowThreads();
7091 (arg1)->SetRange(arg2);
7092 wxPyEndAllowThreads(__tstate);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 resultobj = SWIG_Py_Void();
7096 return resultobj;
7097 fail:
7098 return NULL;
7099 }
7100
7101
7102 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7103 PyObject *resultobj = 0;
7104 wxGauge *arg1 = (wxGauge *) 0 ;
7105 int result;
7106 void *argp1 = 0 ;
7107 int res1 = 0 ;
7108 PyObject *swig_obj[1] ;
7109
7110 if (!args) SWIG_fail;
7111 swig_obj[0] = args;
7112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7113 if (!SWIG_IsOK(res1)) {
7114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7115 }
7116 arg1 = reinterpret_cast< wxGauge * >(argp1);
7117 {
7118 PyThreadState* __tstate = wxPyBeginAllowThreads();
7119 result = (int)((wxGauge const *)arg1)->GetRange();
7120 wxPyEndAllowThreads(__tstate);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 resultobj = SWIG_From_int(static_cast< int >(result));
7124 return resultobj;
7125 fail:
7126 return NULL;
7127 }
7128
7129
7130 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7131 PyObject *resultobj = 0;
7132 wxGauge *arg1 = (wxGauge *) 0 ;
7133 int arg2 ;
7134 void *argp1 = 0 ;
7135 int res1 = 0 ;
7136 int val2 ;
7137 int ecode2 = 0 ;
7138 PyObject * obj0 = 0 ;
7139 PyObject * obj1 = 0 ;
7140 char * kwnames[] = {
7141 (char *) "self",(char *) "pos", NULL
7142 };
7143
7144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7146 if (!SWIG_IsOK(res1)) {
7147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7148 }
7149 arg1 = reinterpret_cast< wxGauge * >(argp1);
7150 ecode2 = SWIG_AsVal_int(obj1, &val2);
7151 if (!SWIG_IsOK(ecode2)) {
7152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7153 }
7154 arg2 = static_cast< int >(val2);
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 (arg1)->SetValue(arg2);
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 }
7161 resultobj = SWIG_Py_Void();
7162 return resultobj;
7163 fail:
7164 return NULL;
7165 }
7166
7167
7168 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7169 PyObject *resultobj = 0;
7170 wxGauge *arg1 = (wxGauge *) 0 ;
7171 int result;
7172 void *argp1 = 0 ;
7173 int res1 = 0 ;
7174 PyObject *swig_obj[1] ;
7175
7176 if (!args) SWIG_fail;
7177 swig_obj[0] = args;
7178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7179 if (!SWIG_IsOK(res1)) {
7180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7181 }
7182 arg1 = reinterpret_cast< wxGauge * >(argp1);
7183 {
7184 PyThreadState* __tstate = wxPyBeginAllowThreads();
7185 result = (int)((wxGauge const *)arg1)->GetValue();
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_From_int(static_cast< int >(result));
7190 return resultobj;
7191 fail:
7192 return NULL;
7193 }
7194
7195
7196 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7197 PyObject *resultobj = 0;
7198 wxGauge *arg1 = (wxGauge *) 0 ;
7199 void *argp1 = 0 ;
7200 int res1 = 0 ;
7201 PyObject *swig_obj[1] ;
7202
7203 if (!args) SWIG_fail;
7204 swig_obj[0] = args;
7205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7206 if (!SWIG_IsOK(res1)) {
7207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7208 }
7209 arg1 = reinterpret_cast< wxGauge * >(argp1);
7210 {
7211 PyThreadState* __tstate = wxPyBeginAllowThreads();
7212 (arg1)->Pulse();
7213 wxPyEndAllowThreads(__tstate);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 resultobj = SWIG_Py_Void();
7217 return resultobj;
7218 fail:
7219 return NULL;
7220 }
7221
7222
7223 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7224 PyObject *resultobj = 0;
7225 wxGauge *arg1 = (wxGauge *) 0 ;
7226 bool result;
7227 void *argp1 = 0 ;
7228 int res1 = 0 ;
7229 PyObject *swig_obj[1] ;
7230
7231 if (!args) SWIG_fail;
7232 swig_obj[0] = args;
7233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7234 if (!SWIG_IsOK(res1)) {
7235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7236 }
7237 arg1 = reinterpret_cast< wxGauge * >(argp1);
7238 {
7239 PyThreadState* __tstate = wxPyBeginAllowThreads();
7240 result = (bool)((wxGauge const *)arg1)->IsVertical();
7241 wxPyEndAllowThreads(__tstate);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 {
7245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7246 }
7247 return resultobj;
7248 fail:
7249 return NULL;
7250 }
7251
7252
7253 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7254 PyObject *resultobj = 0;
7255 wxGauge *arg1 = (wxGauge *) 0 ;
7256 int arg2 ;
7257 void *argp1 = 0 ;
7258 int res1 = 0 ;
7259 int val2 ;
7260 int ecode2 = 0 ;
7261 PyObject * obj0 = 0 ;
7262 PyObject * obj1 = 0 ;
7263 char * kwnames[] = {
7264 (char *) "self",(char *) "w", NULL
7265 };
7266
7267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7269 if (!SWIG_IsOK(res1)) {
7270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7271 }
7272 arg1 = reinterpret_cast< wxGauge * >(argp1);
7273 ecode2 = SWIG_AsVal_int(obj1, &val2);
7274 if (!SWIG_IsOK(ecode2)) {
7275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7276 }
7277 arg2 = static_cast< int >(val2);
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 (arg1)->SetShadowWidth(arg2);
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 resultobj = SWIG_Py_Void();
7285 return resultobj;
7286 fail:
7287 return NULL;
7288 }
7289
7290
7291 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7292 PyObject *resultobj = 0;
7293 wxGauge *arg1 = (wxGauge *) 0 ;
7294 int result;
7295 void *argp1 = 0 ;
7296 int res1 = 0 ;
7297 PyObject *swig_obj[1] ;
7298
7299 if (!args) SWIG_fail;
7300 swig_obj[0] = args;
7301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7302 if (!SWIG_IsOK(res1)) {
7303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7304 }
7305 arg1 = reinterpret_cast< wxGauge * >(argp1);
7306 {
7307 PyThreadState* __tstate = wxPyBeginAllowThreads();
7308 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 resultobj = SWIG_From_int(static_cast< int >(result));
7313 return resultobj;
7314 fail:
7315 return NULL;
7316 }
7317
7318
7319 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7320 PyObject *resultobj = 0;
7321 wxGauge *arg1 = (wxGauge *) 0 ;
7322 int arg2 ;
7323 void *argp1 = 0 ;
7324 int res1 = 0 ;
7325 int val2 ;
7326 int ecode2 = 0 ;
7327 PyObject * obj0 = 0 ;
7328 PyObject * obj1 = 0 ;
7329 char * kwnames[] = {
7330 (char *) "self",(char *) "w", NULL
7331 };
7332
7333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7335 if (!SWIG_IsOK(res1)) {
7336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7337 }
7338 arg1 = reinterpret_cast< wxGauge * >(argp1);
7339 ecode2 = SWIG_AsVal_int(obj1, &val2);
7340 if (!SWIG_IsOK(ecode2)) {
7341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7342 }
7343 arg2 = static_cast< int >(val2);
7344 {
7345 PyThreadState* __tstate = wxPyBeginAllowThreads();
7346 (arg1)->SetBezelFace(arg2);
7347 wxPyEndAllowThreads(__tstate);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
7350 resultobj = SWIG_Py_Void();
7351 return resultobj;
7352 fail:
7353 return NULL;
7354 }
7355
7356
7357 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7358 PyObject *resultobj = 0;
7359 wxGauge *arg1 = (wxGauge *) 0 ;
7360 int result;
7361 void *argp1 = 0 ;
7362 int res1 = 0 ;
7363 PyObject *swig_obj[1] ;
7364
7365 if (!args) SWIG_fail;
7366 swig_obj[0] = args;
7367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7368 if (!SWIG_IsOK(res1)) {
7369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7370 }
7371 arg1 = reinterpret_cast< wxGauge * >(argp1);
7372 {
7373 PyThreadState* __tstate = wxPyBeginAllowThreads();
7374 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7375 wxPyEndAllowThreads(__tstate);
7376 if (PyErr_Occurred()) SWIG_fail;
7377 }
7378 resultobj = SWIG_From_int(static_cast< int >(result));
7379 return resultobj;
7380 fail:
7381 return NULL;
7382 }
7383
7384
7385 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7386 PyObject *resultobj = 0;
7387 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7388 SwigValueWrapper<wxVisualAttributes > result;
7389 int val1 ;
7390 int ecode1 = 0 ;
7391 PyObject * obj0 = 0 ;
7392 char * kwnames[] = {
7393 (char *) "variant", NULL
7394 };
7395
7396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7397 if (obj0) {
7398 ecode1 = SWIG_AsVal_int(obj0, &val1);
7399 if (!SWIG_IsOK(ecode1)) {
7400 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7401 }
7402 arg1 = static_cast< wxWindowVariant >(val1);
7403 }
7404 {
7405 if (!wxPyCheckForApp()) SWIG_fail;
7406 PyThreadState* __tstate = wxPyBeginAllowThreads();
7407 result = wxGauge::GetClassDefaultAttributes(arg1);
7408 wxPyEndAllowThreads(__tstate);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 }
7411 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7412 return resultobj;
7413 fail:
7414 return NULL;
7415 }
7416
7417
7418 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7419 PyObject *obj;
7420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7421 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7422 return SWIG_Py_Void();
7423 }
7424
7425 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7426 return SWIG_Python_InitShadowInstance(args);
7427 }
7428
7429 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7430 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7431 return 1;
7432 }
7433
7434
7435 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7436 PyObject *pyobj = 0;
7437
7438 {
7439 #if wxUSE_UNICODE
7440 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7441 #else
7442 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7443 #endif
7444 }
7445 return pyobj;
7446 }
7447
7448
7449 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7450 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7451 return 1;
7452 }
7453
7454
7455 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7456 PyObject *pyobj = 0;
7457
7458 {
7459 #if wxUSE_UNICODE
7460 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7461 #else
7462 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7463 #endif
7464 }
7465 return pyobj;
7466 }
7467
7468
7469 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7470 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7471 return 1;
7472 }
7473
7474
7475 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7476 PyObject *pyobj = 0;
7477
7478 {
7479 #if wxUSE_UNICODE
7480 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7481 #else
7482 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7483 #endif
7484 }
7485 return pyobj;
7486 }
7487
7488
7489 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7490 PyObject *resultobj = 0;
7491 wxWindow *arg1 = (wxWindow *) 0 ;
7492 int arg2 = (int) -1 ;
7493 wxString const &arg3_defvalue = wxPyEmptyString ;
7494 wxString *arg3 = (wxString *) &arg3_defvalue ;
7495 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7496 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7497 wxSize const &arg5_defvalue = wxDefaultSize ;
7498 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7499 long arg6 = (long) 0 ;
7500 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7501 wxString *arg7 = (wxString *) &arg7_defvalue ;
7502 wxStaticBox *result = 0 ;
7503 void *argp1 = 0 ;
7504 int res1 = 0 ;
7505 int val2 ;
7506 int ecode2 = 0 ;
7507 bool temp3 = false ;
7508 wxPoint temp4 ;
7509 wxSize temp5 ;
7510 long val6 ;
7511 int ecode6 = 0 ;
7512 bool temp7 = false ;
7513 PyObject * obj0 = 0 ;
7514 PyObject * obj1 = 0 ;
7515 PyObject * obj2 = 0 ;
7516 PyObject * obj3 = 0 ;
7517 PyObject * obj4 = 0 ;
7518 PyObject * obj5 = 0 ;
7519 PyObject * obj6 = 0 ;
7520 char * kwnames[] = {
7521 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7522 };
7523
7524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7526 if (!SWIG_IsOK(res1)) {
7527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7528 }
7529 arg1 = reinterpret_cast< wxWindow * >(argp1);
7530 if (obj1) {
7531 ecode2 = SWIG_AsVal_int(obj1, &val2);
7532 if (!SWIG_IsOK(ecode2)) {
7533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7534 }
7535 arg2 = static_cast< int >(val2);
7536 }
7537 if (obj2) {
7538 {
7539 arg3 = wxString_in_helper(obj2);
7540 if (arg3 == NULL) SWIG_fail;
7541 temp3 = true;
7542 }
7543 }
7544 if (obj3) {
7545 {
7546 arg4 = &temp4;
7547 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7548 }
7549 }
7550 if (obj4) {
7551 {
7552 arg5 = &temp5;
7553 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7554 }
7555 }
7556 if (obj5) {
7557 ecode6 = SWIG_AsVal_long(obj5, &val6);
7558 if (!SWIG_IsOK(ecode6)) {
7559 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7560 }
7561 arg6 = static_cast< long >(val6);
7562 }
7563 if (obj6) {
7564 {
7565 arg7 = wxString_in_helper(obj6);
7566 if (arg7 == NULL) SWIG_fail;
7567 temp7 = true;
7568 }
7569 }
7570 {
7571 if (!wxPyCheckForApp()) SWIG_fail;
7572 PyThreadState* __tstate = wxPyBeginAllowThreads();
7573 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7574 wxPyEndAllowThreads(__tstate);
7575 if (PyErr_Occurred()) SWIG_fail;
7576 }
7577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7578 {
7579 if (temp3)
7580 delete arg3;
7581 }
7582 {
7583 if (temp7)
7584 delete arg7;
7585 }
7586 return resultobj;
7587 fail:
7588 {
7589 if (temp3)
7590 delete arg3;
7591 }
7592 {
7593 if (temp7)
7594 delete arg7;
7595 }
7596 return NULL;
7597 }
7598
7599
7600 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7601 PyObject *resultobj = 0;
7602 wxStaticBox *result = 0 ;
7603
7604 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7605 {
7606 if (!wxPyCheckForApp()) SWIG_fail;
7607 PyThreadState* __tstate = wxPyBeginAllowThreads();
7608 result = (wxStaticBox *)new wxStaticBox();
7609 wxPyEndAllowThreads(__tstate);
7610 if (PyErr_Occurred()) SWIG_fail;
7611 }
7612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7613 return resultobj;
7614 fail:
7615 return NULL;
7616 }
7617
7618
7619 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7620 PyObject *resultobj = 0;
7621 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7622 wxWindow *arg2 = (wxWindow *) 0 ;
7623 int arg3 = (int) -1 ;
7624 wxString const &arg4_defvalue = wxPyEmptyString ;
7625 wxString *arg4 = (wxString *) &arg4_defvalue ;
7626 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7627 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7628 wxSize const &arg6_defvalue = wxDefaultSize ;
7629 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7630 long arg7 = (long) 0 ;
7631 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7632 wxString *arg8 = (wxString *) &arg8_defvalue ;
7633 bool result;
7634 void *argp1 = 0 ;
7635 int res1 = 0 ;
7636 void *argp2 = 0 ;
7637 int res2 = 0 ;
7638 int val3 ;
7639 int ecode3 = 0 ;
7640 bool temp4 = false ;
7641 wxPoint temp5 ;
7642 wxSize temp6 ;
7643 long val7 ;
7644 int ecode7 = 0 ;
7645 bool temp8 = false ;
7646 PyObject * obj0 = 0 ;
7647 PyObject * obj1 = 0 ;
7648 PyObject * obj2 = 0 ;
7649 PyObject * obj3 = 0 ;
7650 PyObject * obj4 = 0 ;
7651 PyObject * obj5 = 0 ;
7652 PyObject * obj6 = 0 ;
7653 PyObject * obj7 = 0 ;
7654 char * kwnames[] = {
7655 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7656 };
7657
7658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7660 if (!SWIG_IsOK(res1)) {
7661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7662 }
7663 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7665 if (!SWIG_IsOK(res2)) {
7666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7667 }
7668 arg2 = reinterpret_cast< wxWindow * >(argp2);
7669 if (obj2) {
7670 ecode3 = SWIG_AsVal_int(obj2, &val3);
7671 if (!SWIG_IsOK(ecode3)) {
7672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7673 }
7674 arg3 = static_cast< int >(val3);
7675 }
7676 if (obj3) {
7677 {
7678 arg4 = wxString_in_helper(obj3);
7679 if (arg4 == NULL) SWIG_fail;
7680 temp4 = true;
7681 }
7682 }
7683 if (obj4) {
7684 {
7685 arg5 = &temp5;
7686 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7687 }
7688 }
7689 if (obj5) {
7690 {
7691 arg6 = &temp6;
7692 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7693 }
7694 }
7695 if (obj6) {
7696 ecode7 = SWIG_AsVal_long(obj6, &val7);
7697 if (!SWIG_IsOK(ecode7)) {
7698 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7699 }
7700 arg7 = static_cast< long >(val7);
7701 }
7702 if (obj7) {
7703 {
7704 arg8 = wxString_in_helper(obj7);
7705 if (arg8 == NULL) SWIG_fail;
7706 temp8 = true;
7707 }
7708 }
7709 {
7710 PyThreadState* __tstate = wxPyBeginAllowThreads();
7711 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7712 wxPyEndAllowThreads(__tstate);
7713 if (PyErr_Occurred()) SWIG_fail;
7714 }
7715 {
7716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7717 }
7718 {
7719 if (temp4)
7720 delete arg4;
7721 }
7722 {
7723 if (temp8)
7724 delete arg8;
7725 }
7726 return resultobj;
7727 fail:
7728 {
7729 if (temp4)
7730 delete arg4;
7731 }
7732 {
7733 if (temp8)
7734 delete arg8;
7735 }
7736 return NULL;
7737 }
7738
7739
7740 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7741 PyObject *resultobj = 0;
7742 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7743 SwigValueWrapper<wxVisualAttributes > result;
7744 int val1 ;
7745 int ecode1 = 0 ;
7746 PyObject * obj0 = 0 ;
7747 char * kwnames[] = {
7748 (char *) "variant", NULL
7749 };
7750
7751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7752 if (obj0) {
7753 ecode1 = SWIG_AsVal_int(obj0, &val1);
7754 if (!SWIG_IsOK(ecode1)) {
7755 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7756 }
7757 arg1 = static_cast< wxWindowVariant >(val1);
7758 }
7759 {
7760 if (!wxPyCheckForApp()) SWIG_fail;
7761 PyThreadState* __tstate = wxPyBeginAllowThreads();
7762 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7763 wxPyEndAllowThreads(__tstate);
7764 if (PyErr_Occurred()) SWIG_fail;
7765 }
7766 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7767 return resultobj;
7768 fail:
7769 return NULL;
7770 }
7771
7772
7773 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7774 PyObject *obj;
7775 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7776 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7777 return SWIG_Py_Void();
7778 }
7779
7780 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7781 return SWIG_Python_InitShadowInstance(args);
7782 }
7783
7784 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7785 PyObject *resultobj = 0;
7786 wxWindow *arg1 = (wxWindow *) 0 ;
7787 int arg2 = (int) -1 ;
7788 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7789 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7790 wxSize const &arg4_defvalue = wxDefaultSize ;
7791 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7792 long arg5 = (long) wxLI_HORIZONTAL ;
7793 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7794 wxString *arg6 = (wxString *) &arg6_defvalue ;
7795 wxStaticLine *result = 0 ;
7796 void *argp1 = 0 ;
7797 int res1 = 0 ;
7798 int val2 ;
7799 int ecode2 = 0 ;
7800 wxPoint temp3 ;
7801 wxSize temp4 ;
7802 long val5 ;
7803 int ecode5 = 0 ;
7804 bool temp6 = false ;
7805 PyObject * obj0 = 0 ;
7806 PyObject * obj1 = 0 ;
7807 PyObject * obj2 = 0 ;
7808 PyObject * obj3 = 0 ;
7809 PyObject * obj4 = 0 ;
7810 PyObject * obj5 = 0 ;
7811 char * kwnames[] = {
7812 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7813 };
7814
7815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7817 if (!SWIG_IsOK(res1)) {
7818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7819 }
7820 arg1 = reinterpret_cast< wxWindow * >(argp1);
7821 if (obj1) {
7822 ecode2 = SWIG_AsVal_int(obj1, &val2);
7823 if (!SWIG_IsOK(ecode2)) {
7824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7825 }
7826 arg2 = static_cast< int >(val2);
7827 }
7828 if (obj2) {
7829 {
7830 arg3 = &temp3;
7831 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7832 }
7833 }
7834 if (obj3) {
7835 {
7836 arg4 = &temp4;
7837 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7838 }
7839 }
7840 if (obj4) {
7841 ecode5 = SWIG_AsVal_long(obj4, &val5);
7842 if (!SWIG_IsOK(ecode5)) {
7843 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7844 }
7845 arg5 = static_cast< long >(val5);
7846 }
7847 if (obj5) {
7848 {
7849 arg6 = wxString_in_helper(obj5);
7850 if (arg6 == NULL) SWIG_fail;
7851 temp6 = true;
7852 }
7853 }
7854 {
7855 if (!wxPyCheckForApp()) SWIG_fail;
7856 PyThreadState* __tstate = wxPyBeginAllowThreads();
7857 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7858 wxPyEndAllowThreads(__tstate);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7862 {
7863 if (temp6)
7864 delete arg6;
7865 }
7866 return resultobj;
7867 fail:
7868 {
7869 if (temp6)
7870 delete arg6;
7871 }
7872 return NULL;
7873 }
7874
7875
7876 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7877 PyObject *resultobj = 0;
7878 wxStaticLine *result = 0 ;
7879
7880 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7881 {
7882 if (!wxPyCheckForApp()) SWIG_fail;
7883 PyThreadState* __tstate = wxPyBeginAllowThreads();
7884 result = (wxStaticLine *)new wxStaticLine();
7885 wxPyEndAllowThreads(__tstate);
7886 if (PyErr_Occurred()) SWIG_fail;
7887 }
7888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7889 return resultobj;
7890 fail:
7891 return NULL;
7892 }
7893
7894
7895 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7896 PyObject *resultobj = 0;
7897 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7898 wxWindow *arg2 = (wxWindow *) 0 ;
7899 int arg3 = (int) -1 ;
7900 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7901 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7902 wxSize const &arg5_defvalue = wxDefaultSize ;
7903 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7904 long arg6 = (long) wxLI_HORIZONTAL ;
7905 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7906 wxString *arg7 = (wxString *) &arg7_defvalue ;
7907 bool result;
7908 void *argp1 = 0 ;
7909 int res1 = 0 ;
7910 void *argp2 = 0 ;
7911 int res2 = 0 ;
7912 int val3 ;
7913 int ecode3 = 0 ;
7914 wxPoint temp4 ;
7915 wxSize temp5 ;
7916 long val6 ;
7917 int ecode6 = 0 ;
7918 bool temp7 = false ;
7919 PyObject * obj0 = 0 ;
7920 PyObject * obj1 = 0 ;
7921 PyObject * obj2 = 0 ;
7922 PyObject * obj3 = 0 ;
7923 PyObject * obj4 = 0 ;
7924 PyObject * obj5 = 0 ;
7925 PyObject * obj6 = 0 ;
7926 char * kwnames[] = {
7927 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7928 };
7929
7930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7932 if (!SWIG_IsOK(res1)) {
7933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7934 }
7935 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7936 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7937 if (!SWIG_IsOK(res2)) {
7938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7939 }
7940 arg2 = reinterpret_cast< wxWindow * >(argp2);
7941 if (obj2) {
7942 ecode3 = SWIG_AsVal_int(obj2, &val3);
7943 if (!SWIG_IsOK(ecode3)) {
7944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7945 }
7946 arg3 = static_cast< int >(val3);
7947 }
7948 if (obj3) {
7949 {
7950 arg4 = &temp4;
7951 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7952 }
7953 }
7954 if (obj4) {
7955 {
7956 arg5 = &temp5;
7957 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7958 }
7959 }
7960 if (obj5) {
7961 ecode6 = SWIG_AsVal_long(obj5, &val6);
7962 if (!SWIG_IsOK(ecode6)) {
7963 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7964 }
7965 arg6 = static_cast< long >(val6);
7966 }
7967 if (obj6) {
7968 {
7969 arg7 = wxString_in_helper(obj6);
7970 if (arg7 == NULL) SWIG_fail;
7971 temp7 = true;
7972 }
7973 }
7974 {
7975 PyThreadState* __tstate = wxPyBeginAllowThreads();
7976 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7977 wxPyEndAllowThreads(__tstate);
7978 if (PyErr_Occurred()) SWIG_fail;
7979 }
7980 {
7981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7982 }
7983 {
7984 if (temp7)
7985 delete arg7;
7986 }
7987 return resultobj;
7988 fail:
7989 {
7990 if (temp7)
7991 delete arg7;
7992 }
7993 return NULL;
7994 }
7995
7996
7997 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7998 PyObject *resultobj = 0;
7999 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
8000 bool result;
8001 void *argp1 = 0 ;
8002 int res1 = 0 ;
8003 PyObject *swig_obj[1] ;
8004
8005 if (!args) SWIG_fail;
8006 swig_obj[0] = args;
8007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
8008 if (!SWIG_IsOK(res1)) {
8009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
8010 }
8011 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
8012 {
8013 PyThreadState* __tstate = wxPyBeginAllowThreads();
8014 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
8015 wxPyEndAllowThreads(__tstate);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 }
8018 {
8019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8020 }
8021 return resultobj;
8022 fail:
8023 return NULL;
8024 }
8025
8026
8027 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8028 PyObject *resultobj = 0;
8029 int result;
8030
8031 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8032 {
8033 PyThreadState* __tstate = wxPyBeginAllowThreads();
8034 result = (int)wxStaticLine::GetDefaultSize();
8035 wxPyEndAllowThreads(__tstate);
8036 if (PyErr_Occurred()) SWIG_fail;
8037 }
8038 resultobj = SWIG_From_int(static_cast< int >(result));
8039 return resultobj;
8040 fail:
8041 return NULL;
8042 }
8043
8044
8045 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8046 PyObject *resultobj = 0;
8047 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8048 SwigValueWrapper<wxVisualAttributes > result;
8049 int val1 ;
8050 int ecode1 = 0 ;
8051 PyObject * obj0 = 0 ;
8052 char * kwnames[] = {
8053 (char *) "variant", NULL
8054 };
8055
8056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8057 if (obj0) {
8058 ecode1 = SWIG_AsVal_int(obj0, &val1);
8059 if (!SWIG_IsOK(ecode1)) {
8060 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8061 }
8062 arg1 = static_cast< wxWindowVariant >(val1);
8063 }
8064 {
8065 if (!wxPyCheckForApp()) SWIG_fail;
8066 PyThreadState* __tstate = wxPyBeginAllowThreads();
8067 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8068 wxPyEndAllowThreads(__tstate);
8069 if (PyErr_Occurred()) SWIG_fail;
8070 }
8071 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8072 return resultobj;
8073 fail:
8074 return NULL;
8075 }
8076
8077
8078 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8079 PyObject *obj;
8080 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8081 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8082 return SWIG_Py_Void();
8083 }
8084
8085 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8086 return SWIG_Python_InitShadowInstance(args);
8087 }
8088
8089 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8090 PyObject *resultobj = 0;
8091 wxWindow *arg1 = (wxWindow *) 0 ;
8092 int arg2 = (int) -1 ;
8093 wxString const &arg3_defvalue = wxPyEmptyString ;
8094 wxString *arg3 = (wxString *) &arg3_defvalue ;
8095 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8096 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8097 wxSize const &arg5_defvalue = wxDefaultSize ;
8098 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8099 long arg6 = (long) 0 ;
8100 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8101 wxString *arg7 = (wxString *) &arg7_defvalue ;
8102 wxStaticText *result = 0 ;
8103 void *argp1 = 0 ;
8104 int res1 = 0 ;
8105 int val2 ;
8106 int ecode2 = 0 ;
8107 bool temp3 = false ;
8108 wxPoint temp4 ;
8109 wxSize temp5 ;
8110 long val6 ;
8111 int ecode6 = 0 ;
8112 bool temp7 = false ;
8113 PyObject * obj0 = 0 ;
8114 PyObject * obj1 = 0 ;
8115 PyObject * obj2 = 0 ;
8116 PyObject * obj3 = 0 ;
8117 PyObject * obj4 = 0 ;
8118 PyObject * obj5 = 0 ;
8119 PyObject * obj6 = 0 ;
8120 char * kwnames[] = {
8121 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8122 };
8123
8124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8126 if (!SWIG_IsOK(res1)) {
8127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8128 }
8129 arg1 = reinterpret_cast< wxWindow * >(argp1);
8130 if (obj1) {
8131 ecode2 = SWIG_AsVal_int(obj1, &val2);
8132 if (!SWIG_IsOK(ecode2)) {
8133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8134 }
8135 arg2 = static_cast< int >(val2);
8136 }
8137 if (obj2) {
8138 {
8139 arg3 = wxString_in_helper(obj2);
8140 if (arg3 == NULL) SWIG_fail;
8141 temp3 = true;
8142 }
8143 }
8144 if (obj3) {
8145 {
8146 arg4 = &temp4;
8147 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8148 }
8149 }
8150 if (obj4) {
8151 {
8152 arg5 = &temp5;
8153 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8154 }
8155 }
8156 if (obj5) {
8157 ecode6 = SWIG_AsVal_long(obj5, &val6);
8158 if (!SWIG_IsOK(ecode6)) {
8159 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8160 }
8161 arg6 = static_cast< long >(val6);
8162 }
8163 if (obj6) {
8164 {
8165 arg7 = wxString_in_helper(obj6);
8166 if (arg7 == NULL) SWIG_fail;
8167 temp7 = true;
8168 }
8169 }
8170 {
8171 if (!wxPyCheckForApp()) SWIG_fail;
8172 PyThreadState* __tstate = wxPyBeginAllowThreads();
8173 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8174 wxPyEndAllowThreads(__tstate);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8178 {
8179 if (temp3)
8180 delete arg3;
8181 }
8182 {
8183 if (temp7)
8184 delete arg7;
8185 }
8186 return resultobj;
8187 fail:
8188 {
8189 if (temp3)
8190 delete arg3;
8191 }
8192 {
8193 if (temp7)
8194 delete arg7;
8195 }
8196 return NULL;
8197 }
8198
8199
8200 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8201 PyObject *resultobj = 0;
8202 wxStaticText *result = 0 ;
8203
8204 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8205 {
8206 if (!wxPyCheckForApp()) SWIG_fail;
8207 PyThreadState* __tstate = wxPyBeginAllowThreads();
8208 result = (wxStaticText *)new wxStaticText();
8209 wxPyEndAllowThreads(__tstate);
8210 if (PyErr_Occurred()) SWIG_fail;
8211 }
8212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8213 return resultobj;
8214 fail:
8215 return NULL;
8216 }
8217
8218
8219 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8220 PyObject *resultobj = 0;
8221 wxStaticText *arg1 = (wxStaticText *) 0 ;
8222 wxWindow *arg2 = (wxWindow *) 0 ;
8223 int arg3 = (int) -1 ;
8224 wxString const &arg4_defvalue = wxPyEmptyString ;
8225 wxString *arg4 = (wxString *) &arg4_defvalue ;
8226 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8227 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8228 wxSize const &arg6_defvalue = wxDefaultSize ;
8229 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8230 long arg7 = (long) 0 ;
8231 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8232 wxString *arg8 = (wxString *) &arg8_defvalue ;
8233 bool result;
8234 void *argp1 = 0 ;
8235 int res1 = 0 ;
8236 void *argp2 = 0 ;
8237 int res2 = 0 ;
8238 int val3 ;
8239 int ecode3 = 0 ;
8240 bool temp4 = false ;
8241 wxPoint temp5 ;
8242 wxSize temp6 ;
8243 long val7 ;
8244 int ecode7 = 0 ;
8245 bool temp8 = false ;
8246 PyObject * obj0 = 0 ;
8247 PyObject * obj1 = 0 ;
8248 PyObject * obj2 = 0 ;
8249 PyObject * obj3 = 0 ;
8250 PyObject * obj4 = 0 ;
8251 PyObject * obj5 = 0 ;
8252 PyObject * obj6 = 0 ;
8253 PyObject * obj7 = 0 ;
8254 char * kwnames[] = {
8255 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8256 };
8257
8258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8260 if (!SWIG_IsOK(res1)) {
8261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8262 }
8263 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8265 if (!SWIG_IsOK(res2)) {
8266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8267 }
8268 arg2 = reinterpret_cast< wxWindow * >(argp2);
8269 if (obj2) {
8270 ecode3 = SWIG_AsVal_int(obj2, &val3);
8271 if (!SWIG_IsOK(ecode3)) {
8272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8273 }
8274 arg3 = static_cast< int >(val3);
8275 }
8276 if (obj3) {
8277 {
8278 arg4 = wxString_in_helper(obj3);
8279 if (arg4 == NULL) SWIG_fail;
8280 temp4 = true;
8281 }
8282 }
8283 if (obj4) {
8284 {
8285 arg5 = &temp5;
8286 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8287 }
8288 }
8289 if (obj5) {
8290 {
8291 arg6 = &temp6;
8292 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8293 }
8294 }
8295 if (obj6) {
8296 ecode7 = SWIG_AsVal_long(obj6, &val7);
8297 if (!SWIG_IsOK(ecode7)) {
8298 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8299 }
8300 arg7 = static_cast< long >(val7);
8301 }
8302 if (obj7) {
8303 {
8304 arg8 = wxString_in_helper(obj7);
8305 if (arg8 == NULL) SWIG_fail;
8306 temp8 = true;
8307 }
8308 }
8309 {
8310 PyThreadState* __tstate = wxPyBeginAllowThreads();
8311 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8312 wxPyEndAllowThreads(__tstate);
8313 if (PyErr_Occurred()) SWIG_fail;
8314 }
8315 {
8316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8317 }
8318 {
8319 if (temp4)
8320 delete arg4;
8321 }
8322 {
8323 if (temp8)
8324 delete arg8;
8325 }
8326 return resultobj;
8327 fail:
8328 {
8329 if (temp4)
8330 delete arg4;
8331 }
8332 {
8333 if (temp8)
8334 delete arg8;
8335 }
8336 return NULL;
8337 }
8338
8339
8340 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8341 PyObject *resultobj = 0;
8342 wxStaticText *arg1 = (wxStaticText *) 0 ;
8343 int arg2 ;
8344 void *argp1 = 0 ;
8345 int res1 = 0 ;
8346 int val2 ;
8347 int ecode2 = 0 ;
8348 PyObject * obj0 = 0 ;
8349 PyObject * obj1 = 0 ;
8350 char * kwnames[] = {
8351 (char *) "self",(char *) "width", NULL
8352 };
8353
8354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8356 if (!SWIG_IsOK(res1)) {
8357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8358 }
8359 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8360 ecode2 = SWIG_AsVal_int(obj1, &val2);
8361 if (!SWIG_IsOK(ecode2)) {
8362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8363 }
8364 arg2 = static_cast< int >(val2);
8365 {
8366 PyThreadState* __tstate = wxPyBeginAllowThreads();
8367 (arg1)->Wrap(arg2);
8368 wxPyEndAllowThreads(__tstate);
8369 if (PyErr_Occurred()) SWIG_fail;
8370 }
8371 resultobj = SWIG_Py_Void();
8372 return resultobj;
8373 fail:
8374 return NULL;
8375 }
8376
8377
8378 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8379 PyObject *resultobj = 0;
8380 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8381 SwigValueWrapper<wxVisualAttributes > result;
8382 int val1 ;
8383 int ecode1 = 0 ;
8384 PyObject * obj0 = 0 ;
8385 char * kwnames[] = {
8386 (char *) "variant", NULL
8387 };
8388
8389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8390 if (obj0) {
8391 ecode1 = SWIG_AsVal_int(obj0, &val1);
8392 if (!SWIG_IsOK(ecode1)) {
8393 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8394 }
8395 arg1 = static_cast< wxWindowVariant >(val1);
8396 }
8397 {
8398 if (!wxPyCheckForApp()) SWIG_fail;
8399 PyThreadState* __tstate = wxPyBeginAllowThreads();
8400 result = wxStaticText::GetClassDefaultAttributes(arg1);
8401 wxPyEndAllowThreads(__tstate);
8402 if (PyErr_Occurred()) SWIG_fail;
8403 }
8404 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8405 return resultobj;
8406 fail:
8407 return NULL;
8408 }
8409
8410
8411 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8412 PyObject *obj;
8413 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8414 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8415 return SWIG_Py_Void();
8416 }
8417
8418 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8419 return SWIG_Python_InitShadowInstance(args);
8420 }
8421
8422 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8423 PyObject *resultobj = 0;
8424 wxWindow *arg1 = (wxWindow *) 0 ;
8425 int arg2 = (int) -1 ;
8426 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8427 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8428 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8429 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8430 wxSize const &arg5_defvalue = wxDefaultSize ;
8431 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8432 long arg6 = (long) 0 ;
8433 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8434 wxString *arg7 = (wxString *) &arg7_defvalue ;
8435 wxStaticBitmap *result = 0 ;
8436 void *argp1 = 0 ;
8437 int res1 = 0 ;
8438 int val2 ;
8439 int ecode2 = 0 ;
8440 void *argp3 = 0 ;
8441 int res3 = 0 ;
8442 wxPoint temp4 ;
8443 wxSize temp5 ;
8444 long val6 ;
8445 int ecode6 = 0 ;
8446 bool temp7 = false ;
8447 PyObject * obj0 = 0 ;
8448 PyObject * obj1 = 0 ;
8449 PyObject * obj2 = 0 ;
8450 PyObject * obj3 = 0 ;
8451 PyObject * obj4 = 0 ;
8452 PyObject * obj5 = 0 ;
8453 PyObject * obj6 = 0 ;
8454 char * kwnames[] = {
8455 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8456 };
8457
8458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8460 if (!SWIG_IsOK(res1)) {
8461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8462 }
8463 arg1 = reinterpret_cast< wxWindow * >(argp1);
8464 if (obj1) {
8465 ecode2 = SWIG_AsVal_int(obj1, &val2);
8466 if (!SWIG_IsOK(ecode2)) {
8467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8468 }
8469 arg2 = static_cast< int >(val2);
8470 }
8471 if (obj2) {
8472 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8473 if (!SWIG_IsOK(res3)) {
8474 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8475 }
8476 if (!argp3) {
8477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8478 }
8479 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8480 }
8481 if (obj3) {
8482 {
8483 arg4 = &temp4;
8484 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8485 }
8486 }
8487 if (obj4) {
8488 {
8489 arg5 = &temp5;
8490 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8491 }
8492 }
8493 if (obj5) {
8494 ecode6 = SWIG_AsVal_long(obj5, &val6);
8495 if (!SWIG_IsOK(ecode6)) {
8496 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8497 }
8498 arg6 = static_cast< long >(val6);
8499 }
8500 if (obj6) {
8501 {
8502 arg7 = wxString_in_helper(obj6);
8503 if (arg7 == NULL) SWIG_fail;
8504 temp7 = true;
8505 }
8506 }
8507 {
8508 if (!wxPyCheckForApp()) SWIG_fail;
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8511 wxPyEndAllowThreads(__tstate);
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8515 {
8516 if (temp7)
8517 delete arg7;
8518 }
8519 return resultobj;
8520 fail:
8521 {
8522 if (temp7)
8523 delete arg7;
8524 }
8525 return NULL;
8526 }
8527
8528
8529 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8530 PyObject *resultobj = 0;
8531 wxStaticBitmap *result = 0 ;
8532
8533 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8534 {
8535 if (!wxPyCheckForApp()) SWIG_fail;
8536 PyThreadState* __tstate = wxPyBeginAllowThreads();
8537 result = (wxStaticBitmap *)new wxStaticBitmap();
8538 wxPyEndAllowThreads(__tstate);
8539 if (PyErr_Occurred()) SWIG_fail;
8540 }
8541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8542 return resultobj;
8543 fail:
8544 return NULL;
8545 }
8546
8547
8548 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8549 PyObject *resultobj = 0;
8550 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8551 wxWindow *arg2 = (wxWindow *) 0 ;
8552 int arg3 = (int) -1 ;
8553 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8554 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8555 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8556 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8557 wxSize const &arg6_defvalue = wxDefaultSize ;
8558 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8559 long arg7 = (long) 0 ;
8560 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8561 wxString *arg8 = (wxString *) &arg8_defvalue ;
8562 bool result;
8563 void *argp1 = 0 ;
8564 int res1 = 0 ;
8565 void *argp2 = 0 ;
8566 int res2 = 0 ;
8567 int val3 ;
8568 int ecode3 = 0 ;
8569 void *argp4 = 0 ;
8570 int res4 = 0 ;
8571 wxPoint temp5 ;
8572 wxSize temp6 ;
8573 long val7 ;
8574 int ecode7 = 0 ;
8575 bool temp8 = false ;
8576 PyObject * obj0 = 0 ;
8577 PyObject * obj1 = 0 ;
8578 PyObject * obj2 = 0 ;
8579 PyObject * obj3 = 0 ;
8580 PyObject * obj4 = 0 ;
8581 PyObject * obj5 = 0 ;
8582 PyObject * obj6 = 0 ;
8583 PyObject * obj7 = 0 ;
8584 char * kwnames[] = {
8585 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8586 };
8587
8588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8590 if (!SWIG_IsOK(res1)) {
8591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8592 }
8593 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8594 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8595 if (!SWIG_IsOK(res2)) {
8596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8597 }
8598 arg2 = reinterpret_cast< wxWindow * >(argp2);
8599 if (obj2) {
8600 ecode3 = SWIG_AsVal_int(obj2, &val3);
8601 if (!SWIG_IsOK(ecode3)) {
8602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8603 }
8604 arg3 = static_cast< int >(val3);
8605 }
8606 if (obj3) {
8607 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8608 if (!SWIG_IsOK(res4)) {
8609 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8610 }
8611 if (!argp4) {
8612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8613 }
8614 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8615 }
8616 if (obj4) {
8617 {
8618 arg5 = &temp5;
8619 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8620 }
8621 }
8622 if (obj5) {
8623 {
8624 arg6 = &temp6;
8625 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8626 }
8627 }
8628 if (obj6) {
8629 ecode7 = SWIG_AsVal_long(obj6, &val7);
8630 if (!SWIG_IsOK(ecode7)) {
8631 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8632 }
8633 arg7 = static_cast< long >(val7);
8634 }
8635 if (obj7) {
8636 {
8637 arg8 = wxString_in_helper(obj7);
8638 if (arg8 == NULL) SWIG_fail;
8639 temp8 = true;
8640 }
8641 }
8642 {
8643 PyThreadState* __tstate = wxPyBeginAllowThreads();
8644 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8645 wxPyEndAllowThreads(__tstate);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 {
8649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8650 }
8651 {
8652 if (temp8)
8653 delete arg8;
8654 }
8655 return resultobj;
8656 fail:
8657 {
8658 if (temp8)
8659 delete arg8;
8660 }
8661 return NULL;
8662 }
8663
8664
8665 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8666 PyObject *resultobj = 0;
8667 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8668 wxBitmap result;
8669 void *argp1 = 0 ;
8670 int res1 = 0 ;
8671 PyObject *swig_obj[1] ;
8672
8673 if (!args) SWIG_fail;
8674 swig_obj[0] = args;
8675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8676 if (!SWIG_IsOK(res1)) {
8677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8678 }
8679 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8680 {
8681 PyThreadState* __tstate = wxPyBeginAllowThreads();
8682 result = (arg1)->GetBitmap();
8683 wxPyEndAllowThreads(__tstate);
8684 if (PyErr_Occurred()) SWIG_fail;
8685 }
8686 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8687 return resultobj;
8688 fail:
8689 return NULL;
8690 }
8691
8692
8693 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8694 PyObject *resultobj = 0;
8695 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8696 wxBitmap *arg2 = 0 ;
8697 void *argp1 = 0 ;
8698 int res1 = 0 ;
8699 void *argp2 = 0 ;
8700 int res2 = 0 ;
8701 PyObject * obj0 = 0 ;
8702 PyObject * obj1 = 0 ;
8703 char * kwnames[] = {
8704 (char *) "self",(char *) "bitmap", NULL
8705 };
8706
8707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8709 if (!SWIG_IsOK(res1)) {
8710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8711 }
8712 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8713 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8714 if (!SWIG_IsOK(res2)) {
8715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8716 }
8717 if (!argp2) {
8718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8719 }
8720 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8721 {
8722 PyThreadState* __tstate = wxPyBeginAllowThreads();
8723 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8724 wxPyEndAllowThreads(__tstate);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 }
8727 resultobj = SWIG_Py_Void();
8728 return resultobj;
8729 fail:
8730 return NULL;
8731 }
8732
8733
8734 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8735 PyObject *resultobj = 0;
8736 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8737 wxIcon *arg2 = 0 ;
8738 void *argp1 = 0 ;
8739 int res1 = 0 ;
8740 void *argp2 = 0 ;
8741 int res2 = 0 ;
8742 PyObject * obj0 = 0 ;
8743 PyObject * obj1 = 0 ;
8744 char * kwnames[] = {
8745 (char *) "self",(char *) "icon", NULL
8746 };
8747
8748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8750 if (!SWIG_IsOK(res1)) {
8751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8752 }
8753 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8754 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8755 if (!SWIG_IsOK(res2)) {
8756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8757 }
8758 if (!argp2) {
8759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8760 }
8761 arg2 = reinterpret_cast< wxIcon * >(argp2);
8762 {
8763 PyThreadState* __tstate = wxPyBeginAllowThreads();
8764 (arg1)->SetIcon((wxIcon const &)*arg2);
8765 wxPyEndAllowThreads(__tstate);
8766 if (PyErr_Occurred()) SWIG_fail;
8767 }
8768 resultobj = SWIG_Py_Void();
8769 return resultobj;
8770 fail:
8771 return NULL;
8772 }
8773
8774
8775 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8776 PyObject *resultobj = 0;
8777 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8778 SwigValueWrapper<wxVisualAttributes > result;
8779 int val1 ;
8780 int ecode1 = 0 ;
8781 PyObject * obj0 = 0 ;
8782 char * kwnames[] = {
8783 (char *) "variant", NULL
8784 };
8785
8786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8787 if (obj0) {
8788 ecode1 = SWIG_AsVal_int(obj0, &val1);
8789 if (!SWIG_IsOK(ecode1)) {
8790 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8791 }
8792 arg1 = static_cast< wxWindowVariant >(val1);
8793 }
8794 {
8795 if (!wxPyCheckForApp()) SWIG_fail;
8796 PyThreadState* __tstate = wxPyBeginAllowThreads();
8797 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8798 wxPyEndAllowThreads(__tstate);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8802 return resultobj;
8803 fail:
8804 return NULL;
8805 }
8806
8807
8808 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8809 PyObject *obj;
8810 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8811 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8812 return SWIG_Py_Void();
8813 }
8814
8815 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8816 return SWIG_Python_InitShadowInstance(args);
8817 }
8818
8819 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8820 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8821 return 1;
8822 }
8823
8824
8825 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8826 PyObject *pyobj = 0;
8827
8828 {
8829 #if wxUSE_UNICODE
8830 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8831 #else
8832 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8833 #endif
8834 }
8835 return pyobj;
8836 }
8837
8838
8839 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8840 PyObject *resultobj = 0;
8841 wxWindow *arg1 = (wxWindow *) 0 ;
8842 int arg2 = (int) -1 ;
8843 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8844 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8845 wxSize const &arg4_defvalue = wxDefaultSize ;
8846 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8847 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8848 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8849 long arg6 = (long) 0 ;
8850 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8851 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8852 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8853 wxString *arg8 = (wxString *) &arg8_defvalue ;
8854 wxListBox *result = 0 ;
8855 void *argp1 = 0 ;
8856 int res1 = 0 ;
8857 int val2 ;
8858 int ecode2 = 0 ;
8859 wxPoint temp3 ;
8860 wxSize temp4 ;
8861 bool temp5 = false ;
8862 long val6 ;
8863 int ecode6 = 0 ;
8864 void *argp7 = 0 ;
8865 int res7 = 0 ;
8866 bool temp8 = false ;
8867 PyObject * obj0 = 0 ;
8868 PyObject * obj1 = 0 ;
8869 PyObject * obj2 = 0 ;
8870 PyObject * obj3 = 0 ;
8871 PyObject * obj4 = 0 ;
8872 PyObject * obj5 = 0 ;
8873 PyObject * obj6 = 0 ;
8874 PyObject * obj7 = 0 ;
8875 char * kwnames[] = {
8876 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8877 };
8878
8879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8881 if (!SWIG_IsOK(res1)) {
8882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8883 }
8884 arg1 = reinterpret_cast< wxWindow * >(argp1);
8885 if (obj1) {
8886 ecode2 = SWIG_AsVal_int(obj1, &val2);
8887 if (!SWIG_IsOK(ecode2)) {
8888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8889 }
8890 arg2 = static_cast< int >(val2);
8891 }
8892 if (obj2) {
8893 {
8894 arg3 = &temp3;
8895 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8896 }
8897 }
8898 if (obj3) {
8899 {
8900 arg4 = &temp4;
8901 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8902 }
8903 }
8904 if (obj4) {
8905 {
8906 if (! PySequence_Check(obj4)) {
8907 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8908 SWIG_fail;
8909 }
8910 arg5 = new wxArrayString;
8911 temp5 = true;
8912 int i, len=PySequence_Length(obj4);
8913 for (i=0; i<len; i++) {
8914 PyObject* item = PySequence_GetItem(obj4, i);
8915 wxString* s = wxString_in_helper(item);
8916 if (PyErr_Occurred()) SWIG_fail;
8917 arg5->Add(*s);
8918 delete s;
8919 Py_DECREF(item);
8920 }
8921 }
8922 }
8923 if (obj5) {
8924 ecode6 = SWIG_AsVal_long(obj5, &val6);
8925 if (!SWIG_IsOK(ecode6)) {
8926 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8927 }
8928 arg6 = static_cast< long >(val6);
8929 }
8930 if (obj6) {
8931 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8932 if (!SWIG_IsOK(res7)) {
8933 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8934 }
8935 if (!argp7) {
8936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8937 }
8938 arg7 = reinterpret_cast< wxValidator * >(argp7);
8939 }
8940 if (obj7) {
8941 {
8942 arg8 = wxString_in_helper(obj7);
8943 if (arg8 == NULL) SWIG_fail;
8944 temp8 = true;
8945 }
8946 }
8947 {
8948 if (!wxPyCheckForApp()) SWIG_fail;
8949 PyThreadState* __tstate = wxPyBeginAllowThreads();
8950 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8951 wxPyEndAllowThreads(__tstate);
8952 if (PyErr_Occurred()) SWIG_fail;
8953 }
8954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8955 {
8956 if (temp5) delete arg5;
8957 }
8958 {
8959 if (temp8)
8960 delete arg8;
8961 }
8962 return resultobj;
8963 fail:
8964 {
8965 if (temp5) delete arg5;
8966 }
8967 {
8968 if (temp8)
8969 delete arg8;
8970 }
8971 return NULL;
8972 }
8973
8974
8975 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8976 PyObject *resultobj = 0;
8977 wxListBox *result = 0 ;
8978
8979 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8980 {
8981 if (!wxPyCheckForApp()) SWIG_fail;
8982 PyThreadState* __tstate = wxPyBeginAllowThreads();
8983 result = (wxListBox *)new wxListBox();
8984 wxPyEndAllowThreads(__tstate);
8985 if (PyErr_Occurred()) SWIG_fail;
8986 }
8987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8988 return resultobj;
8989 fail:
8990 return NULL;
8991 }
8992
8993
8994 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8995 PyObject *resultobj = 0;
8996 wxListBox *arg1 = (wxListBox *) 0 ;
8997 wxWindow *arg2 = (wxWindow *) 0 ;
8998 int arg3 = (int) -1 ;
8999 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9000 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9001 wxSize const &arg5_defvalue = wxDefaultSize ;
9002 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9003 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9004 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9005 long arg7 = (long) 0 ;
9006 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9007 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9008 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9009 wxString *arg9 = (wxString *) &arg9_defvalue ;
9010 bool result;
9011 void *argp1 = 0 ;
9012 int res1 = 0 ;
9013 void *argp2 = 0 ;
9014 int res2 = 0 ;
9015 int val3 ;
9016 int ecode3 = 0 ;
9017 wxPoint temp4 ;
9018 wxSize temp5 ;
9019 bool temp6 = false ;
9020 long val7 ;
9021 int ecode7 = 0 ;
9022 void *argp8 = 0 ;
9023 int res8 = 0 ;
9024 bool temp9 = false ;
9025 PyObject * obj0 = 0 ;
9026 PyObject * obj1 = 0 ;
9027 PyObject * obj2 = 0 ;
9028 PyObject * obj3 = 0 ;
9029 PyObject * obj4 = 0 ;
9030 PyObject * obj5 = 0 ;
9031 PyObject * obj6 = 0 ;
9032 PyObject * obj7 = 0 ;
9033 PyObject * obj8 = 0 ;
9034 char * kwnames[] = {
9035 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9036 };
9037
9038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9040 if (!SWIG_IsOK(res1)) {
9041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9042 }
9043 arg1 = reinterpret_cast< wxListBox * >(argp1);
9044 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9045 if (!SWIG_IsOK(res2)) {
9046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9047 }
9048 arg2 = reinterpret_cast< wxWindow * >(argp2);
9049 if (obj2) {
9050 ecode3 = SWIG_AsVal_int(obj2, &val3);
9051 if (!SWIG_IsOK(ecode3)) {
9052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9053 }
9054 arg3 = static_cast< int >(val3);
9055 }
9056 if (obj3) {
9057 {
9058 arg4 = &temp4;
9059 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9060 }
9061 }
9062 if (obj4) {
9063 {
9064 arg5 = &temp5;
9065 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9066 }
9067 }
9068 if (obj5) {
9069 {
9070 if (! PySequence_Check(obj5)) {
9071 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9072 SWIG_fail;
9073 }
9074 arg6 = new wxArrayString;
9075 temp6 = true;
9076 int i, len=PySequence_Length(obj5);
9077 for (i=0; i<len; i++) {
9078 PyObject* item = PySequence_GetItem(obj5, i);
9079 wxString* s = wxString_in_helper(item);
9080 if (PyErr_Occurred()) SWIG_fail;
9081 arg6->Add(*s);
9082 delete s;
9083 Py_DECREF(item);
9084 }
9085 }
9086 }
9087 if (obj6) {
9088 ecode7 = SWIG_AsVal_long(obj6, &val7);
9089 if (!SWIG_IsOK(ecode7)) {
9090 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9091 }
9092 arg7 = static_cast< long >(val7);
9093 }
9094 if (obj7) {
9095 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9096 if (!SWIG_IsOK(res8)) {
9097 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9098 }
9099 if (!argp8) {
9100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9101 }
9102 arg8 = reinterpret_cast< wxValidator * >(argp8);
9103 }
9104 if (obj8) {
9105 {
9106 arg9 = wxString_in_helper(obj8);
9107 if (arg9 == NULL) SWIG_fail;
9108 temp9 = true;
9109 }
9110 }
9111 {
9112 PyThreadState* __tstate = wxPyBeginAllowThreads();
9113 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9114 wxPyEndAllowThreads(__tstate);
9115 if (PyErr_Occurred()) SWIG_fail;
9116 }
9117 {
9118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9119 }
9120 {
9121 if (temp6) delete arg6;
9122 }
9123 {
9124 if (temp9)
9125 delete arg9;
9126 }
9127 return resultobj;
9128 fail:
9129 {
9130 if (temp6) delete arg6;
9131 }
9132 {
9133 if (temp9)
9134 delete arg9;
9135 }
9136 return NULL;
9137 }
9138
9139
9140 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9141 PyObject *resultobj = 0;
9142 wxListBox *arg1 = (wxListBox *) 0 ;
9143 wxString *arg2 = 0 ;
9144 int arg3 ;
9145 PyObject *arg4 = (PyObject *) NULL ;
9146 void *argp1 = 0 ;
9147 int res1 = 0 ;
9148 bool temp2 = false ;
9149 int val3 ;
9150 int ecode3 = 0 ;
9151 PyObject * obj0 = 0 ;
9152 PyObject * obj1 = 0 ;
9153 PyObject * obj2 = 0 ;
9154 PyObject * obj3 = 0 ;
9155 char * kwnames[] = {
9156 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9157 };
9158
9159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9161 if (!SWIG_IsOK(res1)) {
9162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9163 }
9164 arg1 = reinterpret_cast< wxListBox * >(argp1);
9165 {
9166 arg2 = wxString_in_helper(obj1);
9167 if (arg2 == NULL) SWIG_fail;
9168 temp2 = true;
9169 }
9170 ecode3 = SWIG_AsVal_int(obj2, &val3);
9171 if (!SWIG_IsOK(ecode3)) {
9172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9173 }
9174 arg3 = static_cast< int >(val3);
9175 if (obj3) {
9176 arg4 = obj3;
9177 }
9178 {
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9181 wxPyEndAllowThreads(__tstate);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 }
9184 resultobj = SWIG_Py_Void();
9185 {
9186 if (temp2)
9187 delete arg2;
9188 }
9189 return resultobj;
9190 fail:
9191 {
9192 if (temp2)
9193 delete arg2;
9194 }
9195 return NULL;
9196 }
9197
9198
9199 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9200 PyObject *resultobj = 0;
9201 wxListBox *arg1 = (wxListBox *) 0 ;
9202 wxArrayString *arg2 = 0 ;
9203 unsigned int arg3 ;
9204 void *argp1 = 0 ;
9205 int res1 = 0 ;
9206 bool temp2 = false ;
9207 unsigned int val3 ;
9208 int ecode3 = 0 ;
9209 PyObject * obj0 = 0 ;
9210 PyObject * obj1 = 0 ;
9211 PyObject * obj2 = 0 ;
9212 char * kwnames[] = {
9213 (char *) "self",(char *) "items",(char *) "pos", NULL
9214 };
9215
9216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9218 if (!SWIG_IsOK(res1)) {
9219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9220 }
9221 arg1 = reinterpret_cast< wxListBox * >(argp1);
9222 {
9223 if (! PySequence_Check(obj1)) {
9224 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9225 SWIG_fail;
9226 }
9227 arg2 = new wxArrayString;
9228 temp2 = true;
9229 int i, len=PySequence_Length(obj1);
9230 for (i=0; i<len; i++) {
9231 PyObject* item = PySequence_GetItem(obj1, i);
9232 wxString* s = wxString_in_helper(item);
9233 if (PyErr_Occurred()) SWIG_fail;
9234 arg2->Add(*s);
9235 delete s;
9236 Py_DECREF(item);
9237 }
9238 }
9239 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9240 if (!SWIG_IsOK(ecode3)) {
9241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9242 }
9243 arg3 = static_cast< unsigned int >(val3);
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9247 wxPyEndAllowThreads(__tstate);
9248 if (PyErr_Occurred()) SWIG_fail;
9249 }
9250 resultobj = SWIG_Py_Void();
9251 {
9252 if (temp2) delete arg2;
9253 }
9254 return resultobj;
9255 fail:
9256 {
9257 if (temp2) delete arg2;
9258 }
9259 return NULL;
9260 }
9261
9262
9263 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9264 PyObject *resultobj = 0;
9265 wxListBox *arg1 = (wxListBox *) 0 ;
9266 wxArrayString *arg2 = 0 ;
9267 void *argp1 = 0 ;
9268 int res1 = 0 ;
9269 bool temp2 = false ;
9270 PyObject * obj0 = 0 ;
9271 PyObject * obj1 = 0 ;
9272 char * kwnames[] = {
9273 (char *) "self",(char *) "items", NULL
9274 };
9275
9276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9278 if (!SWIG_IsOK(res1)) {
9279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9280 }
9281 arg1 = reinterpret_cast< wxListBox * >(argp1);
9282 {
9283 if (! PySequence_Check(obj1)) {
9284 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9285 SWIG_fail;
9286 }
9287 arg2 = new wxArrayString;
9288 temp2 = true;
9289 int i, len=PySequence_Length(obj1);
9290 for (i=0; i<len; i++) {
9291 PyObject* item = PySequence_GetItem(obj1, i);
9292 wxString* s = wxString_in_helper(item);
9293 if (PyErr_Occurred()) SWIG_fail;
9294 arg2->Add(*s);
9295 delete s;
9296 Py_DECREF(item);
9297 }
9298 }
9299 {
9300 PyThreadState* __tstate = wxPyBeginAllowThreads();
9301 (arg1)->Set((wxArrayString const &)*arg2);
9302 wxPyEndAllowThreads(__tstate);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 }
9305 resultobj = SWIG_Py_Void();
9306 {
9307 if (temp2) delete arg2;
9308 }
9309 return resultobj;
9310 fail:
9311 {
9312 if (temp2) delete arg2;
9313 }
9314 return NULL;
9315 }
9316
9317
9318 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9319 PyObject *resultobj = 0;
9320 wxListBox *arg1 = (wxListBox *) 0 ;
9321 int arg2 ;
9322 bool result;
9323 void *argp1 = 0 ;
9324 int res1 = 0 ;
9325 int val2 ;
9326 int ecode2 = 0 ;
9327 PyObject * obj0 = 0 ;
9328 PyObject * obj1 = 0 ;
9329 char * kwnames[] = {
9330 (char *) "self",(char *) "n", NULL
9331 };
9332
9333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9335 if (!SWIG_IsOK(res1)) {
9336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9337 }
9338 arg1 = reinterpret_cast< wxListBox * >(argp1);
9339 ecode2 = SWIG_AsVal_int(obj1, &val2);
9340 if (!SWIG_IsOK(ecode2)) {
9341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9342 }
9343 arg2 = static_cast< int >(val2);
9344 {
9345 PyThreadState* __tstate = wxPyBeginAllowThreads();
9346 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9347 wxPyEndAllowThreads(__tstate);
9348 if (PyErr_Occurred()) SWIG_fail;
9349 }
9350 {
9351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9352 }
9353 return resultobj;
9354 fail:
9355 return NULL;
9356 }
9357
9358
9359 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9360 PyObject *resultobj = 0;
9361 wxListBox *arg1 = (wxListBox *) 0 ;
9362 int arg2 ;
9363 bool arg3 = (bool) true ;
9364 void *argp1 = 0 ;
9365 int res1 = 0 ;
9366 int val2 ;
9367 int ecode2 = 0 ;
9368 bool val3 ;
9369 int ecode3 = 0 ;
9370 PyObject * obj0 = 0 ;
9371 PyObject * obj1 = 0 ;
9372 PyObject * obj2 = 0 ;
9373 char * kwnames[] = {
9374 (char *) "self",(char *) "n",(char *) "select", NULL
9375 };
9376
9377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9379 if (!SWIG_IsOK(res1)) {
9380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9381 }
9382 arg1 = reinterpret_cast< wxListBox * >(argp1);
9383 ecode2 = SWIG_AsVal_int(obj1, &val2);
9384 if (!SWIG_IsOK(ecode2)) {
9385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9386 }
9387 arg2 = static_cast< int >(val2);
9388 if (obj2) {
9389 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9390 if (!SWIG_IsOK(ecode3)) {
9391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9392 }
9393 arg3 = static_cast< bool >(val3);
9394 }
9395 {
9396 PyThreadState* __tstate = wxPyBeginAllowThreads();
9397 (arg1)->SetSelection(arg2,arg3);
9398 wxPyEndAllowThreads(__tstate);
9399 if (PyErr_Occurred()) SWIG_fail;
9400 }
9401 resultobj = SWIG_Py_Void();
9402 return resultobj;
9403 fail:
9404 return NULL;
9405 }
9406
9407
9408 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9409 PyObject *resultobj = 0;
9410 wxListBox *arg1 = (wxListBox *) 0 ;
9411 int arg2 ;
9412 void *argp1 = 0 ;
9413 int res1 = 0 ;
9414 int val2 ;
9415 int ecode2 = 0 ;
9416 PyObject * obj0 = 0 ;
9417 PyObject * obj1 = 0 ;
9418 char * kwnames[] = {
9419 (char *) "self",(char *) "n", NULL
9420 };
9421
9422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9424 if (!SWIG_IsOK(res1)) {
9425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9426 }
9427 arg1 = reinterpret_cast< wxListBox * >(argp1);
9428 ecode2 = SWIG_AsVal_int(obj1, &val2);
9429 if (!SWIG_IsOK(ecode2)) {
9430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9431 }
9432 arg2 = static_cast< int >(val2);
9433 {
9434 PyThreadState* __tstate = wxPyBeginAllowThreads();
9435 (arg1)->Select(arg2);
9436 wxPyEndAllowThreads(__tstate);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 }
9439 resultobj = SWIG_Py_Void();
9440 return resultobj;
9441 fail:
9442 return NULL;
9443 }
9444
9445
9446 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9447 PyObject *resultobj = 0;
9448 wxListBox *arg1 = (wxListBox *) 0 ;
9449 int arg2 ;
9450 void *argp1 = 0 ;
9451 int res1 = 0 ;
9452 int val2 ;
9453 int ecode2 = 0 ;
9454 PyObject * obj0 = 0 ;
9455 PyObject * obj1 = 0 ;
9456 char * kwnames[] = {
9457 (char *) "self",(char *) "n", NULL
9458 };
9459
9460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9462 if (!SWIG_IsOK(res1)) {
9463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9464 }
9465 arg1 = reinterpret_cast< wxListBox * >(argp1);
9466 ecode2 = SWIG_AsVal_int(obj1, &val2);
9467 if (!SWIG_IsOK(ecode2)) {
9468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9469 }
9470 arg2 = static_cast< int >(val2);
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 (arg1)->Deselect(arg2);
9474 wxPyEndAllowThreads(__tstate);
9475 if (PyErr_Occurred()) SWIG_fail;
9476 }
9477 resultobj = SWIG_Py_Void();
9478 return resultobj;
9479 fail:
9480 return NULL;
9481 }
9482
9483
9484 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9485 PyObject *resultobj = 0;
9486 wxListBox *arg1 = (wxListBox *) 0 ;
9487 int arg2 = (int) -1 ;
9488 void *argp1 = 0 ;
9489 int res1 = 0 ;
9490 int val2 ;
9491 int ecode2 = 0 ;
9492 PyObject * obj0 = 0 ;
9493 PyObject * obj1 = 0 ;
9494 char * kwnames[] = {
9495 (char *) "self",(char *) "itemToLeaveSelected", NULL
9496 };
9497
9498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9500 if (!SWIG_IsOK(res1)) {
9501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9502 }
9503 arg1 = reinterpret_cast< wxListBox * >(argp1);
9504 if (obj1) {
9505 ecode2 = SWIG_AsVal_int(obj1, &val2);
9506 if (!SWIG_IsOK(ecode2)) {
9507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9508 }
9509 arg2 = static_cast< int >(val2);
9510 }
9511 {
9512 PyThreadState* __tstate = wxPyBeginAllowThreads();
9513 (arg1)->DeselectAll(arg2);
9514 wxPyEndAllowThreads(__tstate);
9515 if (PyErr_Occurred()) SWIG_fail;
9516 }
9517 resultobj = SWIG_Py_Void();
9518 return resultobj;
9519 fail:
9520 return NULL;
9521 }
9522
9523
9524 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9525 PyObject *resultobj = 0;
9526 wxListBox *arg1 = (wxListBox *) 0 ;
9527 wxString *arg2 = 0 ;
9528 bool arg3 = (bool) true ;
9529 bool result;
9530 void *argp1 = 0 ;
9531 int res1 = 0 ;
9532 bool temp2 = false ;
9533 bool val3 ;
9534 int ecode3 = 0 ;
9535 PyObject * obj0 = 0 ;
9536 PyObject * obj1 = 0 ;
9537 PyObject * obj2 = 0 ;
9538 char * kwnames[] = {
9539 (char *) "self",(char *) "s",(char *) "select", NULL
9540 };
9541
9542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9544 if (!SWIG_IsOK(res1)) {
9545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9546 }
9547 arg1 = reinterpret_cast< wxListBox * >(argp1);
9548 {
9549 arg2 = wxString_in_helper(obj1);
9550 if (arg2 == NULL) SWIG_fail;
9551 temp2 = true;
9552 }
9553 if (obj2) {
9554 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9555 if (!SWIG_IsOK(ecode3)) {
9556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9557 }
9558 arg3 = static_cast< bool >(val3);
9559 }
9560 {
9561 PyThreadState* __tstate = wxPyBeginAllowThreads();
9562 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9563 wxPyEndAllowThreads(__tstate);
9564 if (PyErr_Occurred()) SWIG_fail;
9565 }
9566 {
9567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9568 }
9569 {
9570 if (temp2)
9571 delete arg2;
9572 }
9573 return resultobj;
9574 fail:
9575 {
9576 if (temp2)
9577 delete arg2;
9578 }
9579 return NULL;
9580 }
9581
9582
9583 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9584 PyObject *resultobj = 0;
9585 wxListBox *arg1 = (wxListBox *) 0 ;
9586 PyObject *result = 0 ;
9587 void *argp1 = 0 ;
9588 int res1 = 0 ;
9589 PyObject *swig_obj[1] ;
9590
9591 if (!args) SWIG_fail;
9592 swig_obj[0] = args;
9593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9594 if (!SWIG_IsOK(res1)) {
9595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9596 }
9597 arg1 = reinterpret_cast< wxListBox * >(argp1);
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 result = (PyObject *)wxListBox_GetSelections(arg1);
9601 wxPyEndAllowThreads(__tstate);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 resultobj = result;
9605 return resultobj;
9606 fail:
9607 return NULL;
9608 }
9609
9610
9611 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9612 PyObject *resultobj = 0;
9613 wxListBox *arg1 = (wxListBox *) 0 ;
9614 int arg2 ;
9615 void *argp1 = 0 ;
9616 int res1 = 0 ;
9617 int val2 ;
9618 int ecode2 = 0 ;
9619 PyObject * obj0 = 0 ;
9620 PyObject * obj1 = 0 ;
9621 char * kwnames[] = {
9622 (char *) "self",(char *) "n", NULL
9623 };
9624
9625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9627 if (!SWIG_IsOK(res1)) {
9628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9629 }
9630 arg1 = reinterpret_cast< wxListBox * >(argp1);
9631 ecode2 = SWIG_AsVal_int(obj1, &val2);
9632 if (!SWIG_IsOK(ecode2)) {
9633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9634 }
9635 arg2 = static_cast< int >(val2);
9636 {
9637 PyThreadState* __tstate = wxPyBeginAllowThreads();
9638 (arg1)->SetFirstItem(arg2);
9639 wxPyEndAllowThreads(__tstate);
9640 if (PyErr_Occurred()) SWIG_fail;
9641 }
9642 resultobj = SWIG_Py_Void();
9643 return resultobj;
9644 fail:
9645 return NULL;
9646 }
9647
9648
9649 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9650 PyObject *resultobj = 0;
9651 wxListBox *arg1 = (wxListBox *) 0 ;
9652 wxString *arg2 = 0 ;
9653 void *argp1 = 0 ;
9654 int res1 = 0 ;
9655 bool temp2 = false ;
9656 PyObject * obj0 = 0 ;
9657 PyObject * obj1 = 0 ;
9658 char * kwnames[] = {
9659 (char *) "self",(char *) "s", NULL
9660 };
9661
9662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9664 if (!SWIG_IsOK(res1)) {
9665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9666 }
9667 arg1 = reinterpret_cast< wxListBox * >(argp1);
9668 {
9669 arg2 = wxString_in_helper(obj1);
9670 if (arg2 == NULL) SWIG_fail;
9671 temp2 = true;
9672 }
9673 {
9674 PyThreadState* __tstate = wxPyBeginAllowThreads();
9675 (arg1)->SetFirstItem((wxString const &)*arg2);
9676 wxPyEndAllowThreads(__tstate);
9677 if (PyErr_Occurred()) SWIG_fail;
9678 }
9679 resultobj = SWIG_Py_Void();
9680 {
9681 if (temp2)
9682 delete arg2;
9683 }
9684 return resultobj;
9685 fail:
9686 {
9687 if (temp2)
9688 delete arg2;
9689 }
9690 return NULL;
9691 }
9692
9693
9694 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9695 PyObject *resultobj = 0;
9696 wxListBox *arg1 = (wxListBox *) 0 ;
9697 int arg2 ;
9698 void *argp1 = 0 ;
9699 int res1 = 0 ;
9700 int val2 ;
9701 int ecode2 = 0 ;
9702 PyObject * obj0 = 0 ;
9703 PyObject * obj1 = 0 ;
9704 char * kwnames[] = {
9705 (char *) "self",(char *) "n", NULL
9706 };
9707
9708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9710 if (!SWIG_IsOK(res1)) {
9711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9712 }
9713 arg1 = reinterpret_cast< wxListBox * >(argp1);
9714 ecode2 = SWIG_AsVal_int(obj1, &val2);
9715 if (!SWIG_IsOK(ecode2)) {
9716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9717 }
9718 arg2 = static_cast< int >(val2);
9719 {
9720 PyThreadState* __tstate = wxPyBeginAllowThreads();
9721 (arg1)->EnsureVisible(arg2);
9722 wxPyEndAllowThreads(__tstate);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 resultobj = SWIG_Py_Void();
9726 return resultobj;
9727 fail:
9728 return NULL;
9729 }
9730
9731
9732 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9733 PyObject *resultobj = 0;
9734 wxListBox *arg1 = (wxListBox *) 0 ;
9735 wxString *arg2 = 0 ;
9736 void *argp1 = 0 ;
9737 int res1 = 0 ;
9738 bool temp2 = false ;
9739 PyObject * obj0 = 0 ;
9740 PyObject * obj1 = 0 ;
9741 char * kwnames[] = {
9742 (char *) "self",(char *) "s", NULL
9743 };
9744
9745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9747 if (!SWIG_IsOK(res1)) {
9748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9749 }
9750 arg1 = reinterpret_cast< wxListBox * >(argp1);
9751 {
9752 arg2 = wxString_in_helper(obj1);
9753 if (arg2 == NULL) SWIG_fail;
9754 temp2 = true;
9755 }
9756 {
9757 PyThreadState* __tstate = wxPyBeginAllowThreads();
9758 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9759 wxPyEndAllowThreads(__tstate);
9760 if (PyErr_Occurred()) SWIG_fail;
9761 }
9762 resultobj = SWIG_Py_Void();
9763 {
9764 if (temp2)
9765 delete arg2;
9766 }
9767 return resultobj;
9768 fail:
9769 {
9770 if (temp2)
9771 delete arg2;
9772 }
9773 return NULL;
9774 }
9775
9776
9777 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9778 PyObject *resultobj = 0;
9779 wxListBox *arg1 = (wxListBox *) 0 ;
9780 bool result;
9781 void *argp1 = 0 ;
9782 int res1 = 0 ;
9783 PyObject *swig_obj[1] ;
9784
9785 if (!args) SWIG_fail;
9786 swig_obj[0] = args;
9787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9788 if (!SWIG_IsOK(res1)) {
9789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9790 }
9791 arg1 = reinterpret_cast< wxListBox * >(argp1);
9792 {
9793 PyThreadState* __tstate = wxPyBeginAllowThreads();
9794 result = (bool)((wxListBox const *)arg1)->IsSorted();
9795 wxPyEndAllowThreads(__tstate);
9796 if (PyErr_Occurred()) SWIG_fail;
9797 }
9798 {
9799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9800 }
9801 return resultobj;
9802 fail:
9803 return NULL;
9804 }
9805
9806
9807 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9808 PyObject *resultobj = 0;
9809 wxListBox *arg1 = (wxListBox *) 0 ;
9810 wxPoint *arg2 = 0 ;
9811 int result;
9812 void *argp1 = 0 ;
9813 int res1 = 0 ;
9814 wxPoint temp2 ;
9815 PyObject * obj0 = 0 ;
9816 PyObject * obj1 = 0 ;
9817 char * kwnames[] = {
9818 (char *) "self",(char *) "pt", NULL
9819 };
9820
9821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9823 if (!SWIG_IsOK(res1)) {
9824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9825 }
9826 arg1 = reinterpret_cast< wxListBox * >(argp1);
9827 {
9828 arg2 = &temp2;
9829 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9830 }
9831 {
9832 PyThreadState* __tstate = wxPyBeginAllowThreads();
9833 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9834 wxPyEndAllowThreads(__tstate);
9835 if (PyErr_Occurred()) SWIG_fail;
9836 }
9837 resultobj = SWIG_From_int(static_cast< int >(result));
9838 return resultobj;
9839 fail:
9840 return NULL;
9841 }
9842
9843
9844 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9845 PyObject *resultobj = 0;
9846 wxListBox *arg1 = (wxListBox *) 0 ;
9847 int arg2 ;
9848 wxColour *arg3 = 0 ;
9849 void *argp1 = 0 ;
9850 int res1 = 0 ;
9851 int val2 ;
9852 int ecode2 = 0 ;
9853 wxColour temp3 ;
9854 PyObject * obj0 = 0 ;
9855 PyObject * obj1 = 0 ;
9856 PyObject * obj2 = 0 ;
9857 char * kwnames[] = {
9858 (char *) "self",(char *) "item",(char *) "c", NULL
9859 };
9860
9861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9863 if (!SWIG_IsOK(res1)) {
9864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9865 }
9866 arg1 = reinterpret_cast< wxListBox * >(argp1);
9867 ecode2 = SWIG_AsVal_int(obj1, &val2);
9868 if (!SWIG_IsOK(ecode2)) {
9869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9870 }
9871 arg2 = static_cast< int >(val2);
9872 {
9873 arg3 = &temp3;
9874 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9875 }
9876 {
9877 PyThreadState* __tstate = wxPyBeginAllowThreads();
9878 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9879 wxPyEndAllowThreads(__tstate);
9880 if (PyErr_Occurred()) SWIG_fail;
9881 }
9882 resultobj = SWIG_Py_Void();
9883 return resultobj;
9884 fail:
9885 return NULL;
9886 }
9887
9888
9889 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9890 PyObject *resultobj = 0;
9891 wxListBox *arg1 = (wxListBox *) 0 ;
9892 int arg2 ;
9893 wxColour *arg3 = 0 ;
9894 void *argp1 = 0 ;
9895 int res1 = 0 ;
9896 int val2 ;
9897 int ecode2 = 0 ;
9898 wxColour temp3 ;
9899 PyObject * obj0 = 0 ;
9900 PyObject * obj1 = 0 ;
9901 PyObject * obj2 = 0 ;
9902 char * kwnames[] = {
9903 (char *) "self",(char *) "item",(char *) "c", NULL
9904 };
9905
9906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9908 if (!SWIG_IsOK(res1)) {
9909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9910 }
9911 arg1 = reinterpret_cast< wxListBox * >(argp1);
9912 ecode2 = SWIG_AsVal_int(obj1, &val2);
9913 if (!SWIG_IsOK(ecode2)) {
9914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9915 }
9916 arg2 = static_cast< int >(val2);
9917 {
9918 arg3 = &temp3;
9919 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9920 }
9921 {
9922 PyThreadState* __tstate = wxPyBeginAllowThreads();
9923 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 resultobj = SWIG_Py_Void();
9928 return resultobj;
9929 fail:
9930 return NULL;
9931 }
9932
9933
9934 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9935 PyObject *resultobj = 0;
9936 wxListBox *arg1 = (wxListBox *) 0 ;
9937 int arg2 ;
9938 wxFont *arg3 = 0 ;
9939 void *argp1 = 0 ;
9940 int res1 = 0 ;
9941 int val2 ;
9942 int ecode2 = 0 ;
9943 void *argp3 = 0 ;
9944 int res3 = 0 ;
9945 PyObject * obj0 = 0 ;
9946 PyObject * obj1 = 0 ;
9947 PyObject * obj2 = 0 ;
9948 char * kwnames[] = {
9949 (char *) "self",(char *) "item",(char *) "f", NULL
9950 };
9951
9952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9954 if (!SWIG_IsOK(res1)) {
9955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9956 }
9957 arg1 = reinterpret_cast< wxListBox * >(argp1);
9958 ecode2 = SWIG_AsVal_int(obj1, &val2);
9959 if (!SWIG_IsOK(ecode2)) {
9960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9961 }
9962 arg2 = static_cast< int >(val2);
9963 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9964 if (!SWIG_IsOK(res3)) {
9965 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9966 }
9967 if (!argp3) {
9968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9969 }
9970 arg3 = reinterpret_cast< wxFont * >(argp3);
9971 {
9972 PyThreadState* __tstate = wxPyBeginAllowThreads();
9973 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 resultobj = SWIG_Py_Void();
9978 return resultobj;
9979 fail:
9980 return NULL;
9981 }
9982
9983
9984 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9985 PyObject *resultobj = 0;
9986 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9987 SwigValueWrapper<wxVisualAttributes > result;
9988 int val1 ;
9989 int ecode1 = 0 ;
9990 PyObject * obj0 = 0 ;
9991 char * kwnames[] = {
9992 (char *) "variant", NULL
9993 };
9994
9995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9996 if (obj0) {
9997 ecode1 = SWIG_AsVal_int(obj0, &val1);
9998 if (!SWIG_IsOK(ecode1)) {
9999 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10000 }
10001 arg1 = static_cast< wxWindowVariant >(val1);
10002 }
10003 {
10004 if (!wxPyCheckForApp()) SWIG_fail;
10005 PyThreadState* __tstate = wxPyBeginAllowThreads();
10006 result = wxListBox::GetClassDefaultAttributes(arg1);
10007 wxPyEndAllowThreads(__tstate);
10008 if (PyErr_Occurred()) SWIG_fail;
10009 }
10010 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10011 return resultobj;
10012 fail:
10013 return NULL;
10014 }
10015
10016
10017 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10018 PyObject *obj;
10019 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10020 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10021 return SWIG_Py_Void();
10022 }
10023
10024 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10025 return SWIG_Python_InitShadowInstance(args);
10026 }
10027
10028 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10029 PyObject *resultobj = 0;
10030 wxWindow *arg1 = (wxWindow *) 0 ;
10031 int arg2 = (int) -1 ;
10032 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10033 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10034 wxSize const &arg4_defvalue = wxDefaultSize ;
10035 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10036 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10037 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10038 long arg6 = (long) 0 ;
10039 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10040 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10041 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10042 wxString *arg8 = (wxString *) &arg8_defvalue ;
10043 wxCheckListBox *result = 0 ;
10044 void *argp1 = 0 ;
10045 int res1 = 0 ;
10046 int val2 ;
10047 int ecode2 = 0 ;
10048 wxPoint temp3 ;
10049 wxSize temp4 ;
10050 bool temp5 = false ;
10051 long val6 ;
10052 int ecode6 = 0 ;
10053 void *argp7 = 0 ;
10054 int res7 = 0 ;
10055 bool temp8 = false ;
10056 PyObject * obj0 = 0 ;
10057 PyObject * obj1 = 0 ;
10058 PyObject * obj2 = 0 ;
10059 PyObject * obj3 = 0 ;
10060 PyObject * obj4 = 0 ;
10061 PyObject * obj5 = 0 ;
10062 PyObject * obj6 = 0 ;
10063 PyObject * obj7 = 0 ;
10064 char * kwnames[] = {
10065 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10066 };
10067
10068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10070 if (!SWIG_IsOK(res1)) {
10071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10072 }
10073 arg1 = reinterpret_cast< wxWindow * >(argp1);
10074 if (obj1) {
10075 ecode2 = SWIG_AsVal_int(obj1, &val2);
10076 if (!SWIG_IsOK(ecode2)) {
10077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10078 }
10079 arg2 = static_cast< int >(val2);
10080 }
10081 if (obj2) {
10082 {
10083 arg3 = &temp3;
10084 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10085 }
10086 }
10087 if (obj3) {
10088 {
10089 arg4 = &temp4;
10090 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10091 }
10092 }
10093 if (obj4) {
10094 {
10095 if (! PySequence_Check(obj4)) {
10096 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10097 SWIG_fail;
10098 }
10099 arg5 = new wxArrayString;
10100 temp5 = true;
10101 int i, len=PySequence_Length(obj4);
10102 for (i=0; i<len; i++) {
10103 PyObject* item = PySequence_GetItem(obj4, i);
10104 wxString* s = wxString_in_helper(item);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 arg5->Add(*s);
10107 delete s;
10108 Py_DECREF(item);
10109 }
10110 }
10111 }
10112 if (obj5) {
10113 ecode6 = SWIG_AsVal_long(obj5, &val6);
10114 if (!SWIG_IsOK(ecode6)) {
10115 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10116 }
10117 arg6 = static_cast< long >(val6);
10118 }
10119 if (obj6) {
10120 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10121 if (!SWIG_IsOK(res7)) {
10122 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10123 }
10124 if (!argp7) {
10125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10126 }
10127 arg7 = reinterpret_cast< wxValidator * >(argp7);
10128 }
10129 if (obj7) {
10130 {
10131 arg8 = wxString_in_helper(obj7);
10132 if (arg8 == NULL) SWIG_fail;
10133 temp8 = true;
10134 }
10135 }
10136 {
10137 if (!wxPyCheckForApp()) SWIG_fail;
10138 PyThreadState* __tstate = wxPyBeginAllowThreads();
10139 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10140 wxPyEndAllowThreads(__tstate);
10141 if (PyErr_Occurred()) SWIG_fail;
10142 }
10143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10144 {
10145 if (temp5) delete arg5;
10146 }
10147 {
10148 if (temp8)
10149 delete arg8;
10150 }
10151 return resultobj;
10152 fail:
10153 {
10154 if (temp5) delete arg5;
10155 }
10156 {
10157 if (temp8)
10158 delete arg8;
10159 }
10160 return NULL;
10161 }
10162
10163
10164 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10165 PyObject *resultobj = 0;
10166 wxCheckListBox *result = 0 ;
10167
10168 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10169 {
10170 if (!wxPyCheckForApp()) SWIG_fail;
10171 PyThreadState* __tstate = wxPyBeginAllowThreads();
10172 result = (wxCheckListBox *)new wxCheckListBox();
10173 wxPyEndAllowThreads(__tstate);
10174 if (PyErr_Occurred()) SWIG_fail;
10175 }
10176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10177 return resultobj;
10178 fail:
10179 return NULL;
10180 }
10181
10182
10183 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10184 PyObject *resultobj = 0;
10185 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10186 wxWindow *arg2 = (wxWindow *) 0 ;
10187 int arg3 = (int) -1 ;
10188 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10189 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10190 wxSize const &arg5_defvalue = wxDefaultSize ;
10191 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10192 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10193 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10194 long arg7 = (long) 0 ;
10195 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10196 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10197 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10198 wxString *arg9 = (wxString *) &arg9_defvalue ;
10199 bool result;
10200 void *argp1 = 0 ;
10201 int res1 = 0 ;
10202 void *argp2 = 0 ;
10203 int res2 = 0 ;
10204 int val3 ;
10205 int ecode3 = 0 ;
10206 wxPoint temp4 ;
10207 wxSize temp5 ;
10208 bool temp6 = false ;
10209 long val7 ;
10210 int ecode7 = 0 ;
10211 void *argp8 = 0 ;
10212 int res8 = 0 ;
10213 bool temp9 = false ;
10214 PyObject * obj0 = 0 ;
10215 PyObject * obj1 = 0 ;
10216 PyObject * obj2 = 0 ;
10217 PyObject * obj3 = 0 ;
10218 PyObject * obj4 = 0 ;
10219 PyObject * obj5 = 0 ;
10220 PyObject * obj6 = 0 ;
10221 PyObject * obj7 = 0 ;
10222 PyObject * obj8 = 0 ;
10223 char * kwnames[] = {
10224 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10225 };
10226
10227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10229 if (!SWIG_IsOK(res1)) {
10230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10231 }
10232 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10233 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10234 if (!SWIG_IsOK(res2)) {
10235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10236 }
10237 arg2 = reinterpret_cast< wxWindow * >(argp2);
10238 if (obj2) {
10239 ecode3 = SWIG_AsVal_int(obj2, &val3);
10240 if (!SWIG_IsOK(ecode3)) {
10241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10242 }
10243 arg3 = static_cast< int >(val3);
10244 }
10245 if (obj3) {
10246 {
10247 arg4 = &temp4;
10248 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10249 }
10250 }
10251 if (obj4) {
10252 {
10253 arg5 = &temp5;
10254 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10255 }
10256 }
10257 if (obj5) {
10258 {
10259 if (! PySequence_Check(obj5)) {
10260 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10261 SWIG_fail;
10262 }
10263 arg6 = new wxArrayString;
10264 temp6 = true;
10265 int i, len=PySequence_Length(obj5);
10266 for (i=0; i<len; i++) {
10267 PyObject* item = PySequence_GetItem(obj5, i);
10268 wxString* s = wxString_in_helper(item);
10269 if (PyErr_Occurred()) SWIG_fail;
10270 arg6->Add(*s);
10271 delete s;
10272 Py_DECREF(item);
10273 }
10274 }
10275 }
10276 if (obj6) {
10277 ecode7 = SWIG_AsVal_long(obj6, &val7);
10278 if (!SWIG_IsOK(ecode7)) {
10279 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10280 }
10281 arg7 = static_cast< long >(val7);
10282 }
10283 if (obj7) {
10284 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10285 if (!SWIG_IsOK(res8)) {
10286 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10287 }
10288 if (!argp8) {
10289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10290 }
10291 arg8 = reinterpret_cast< wxValidator * >(argp8);
10292 }
10293 if (obj8) {
10294 {
10295 arg9 = wxString_in_helper(obj8);
10296 if (arg9 == NULL) SWIG_fail;
10297 temp9 = true;
10298 }
10299 }
10300 {
10301 PyThreadState* __tstate = wxPyBeginAllowThreads();
10302 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10303 wxPyEndAllowThreads(__tstate);
10304 if (PyErr_Occurred()) SWIG_fail;
10305 }
10306 {
10307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10308 }
10309 {
10310 if (temp6) delete arg6;
10311 }
10312 {
10313 if (temp9)
10314 delete arg9;
10315 }
10316 return resultobj;
10317 fail:
10318 {
10319 if (temp6) delete arg6;
10320 }
10321 {
10322 if (temp9)
10323 delete arg9;
10324 }
10325 return NULL;
10326 }
10327
10328
10329 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10330 PyObject *resultobj = 0;
10331 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10332 unsigned int arg2 ;
10333 bool result;
10334 void *argp1 = 0 ;
10335 int res1 = 0 ;
10336 unsigned int val2 ;
10337 int ecode2 = 0 ;
10338 PyObject * obj0 = 0 ;
10339 PyObject * obj1 = 0 ;
10340 char * kwnames[] = {
10341 (char *) "self",(char *) "index", NULL
10342 };
10343
10344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10346 if (!SWIG_IsOK(res1)) {
10347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10348 }
10349 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10350 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10351 if (!SWIG_IsOK(ecode2)) {
10352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10353 }
10354 arg2 = static_cast< unsigned int >(val2);
10355 {
10356 PyThreadState* __tstate = wxPyBeginAllowThreads();
10357 result = (bool)(arg1)->IsChecked(arg2);
10358 wxPyEndAllowThreads(__tstate);
10359 if (PyErr_Occurred()) SWIG_fail;
10360 }
10361 {
10362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10363 }
10364 return resultobj;
10365 fail:
10366 return NULL;
10367 }
10368
10369
10370 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10371 PyObject *resultobj = 0;
10372 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10373 unsigned int arg2 ;
10374 int arg3 = (int) true ;
10375 void *argp1 = 0 ;
10376 int res1 = 0 ;
10377 unsigned int val2 ;
10378 int ecode2 = 0 ;
10379 int val3 ;
10380 int ecode3 = 0 ;
10381 PyObject * obj0 = 0 ;
10382 PyObject * obj1 = 0 ;
10383 PyObject * obj2 = 0 ;
10384 char * kwnames[] = {
10385 (char *) "self",(char *) "index",(char *) "check", NULL
10386 };
10387
10388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10390 if (!SWIG_IsOK(res1)) {
10391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10392 }
10393 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10394 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10395 if (!SWIG_IsOK(ecode2)) {
10396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10397 }
10398 arg2 = static_cast< unsigned int >(val2);
10399 if (obj2) {
10400 ecode3 = SWIG_AsVal_int(obj2, &val3);
10401 if (!SWIG_IsOK(ecode3)) {
10402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10403 }
10404 arg3 = static_cast< int >(val3);
10405 }
10406 {
10407 PyThreadState* __tstate = wxPyBeginAllowThreads();
10408 (arg1)->Check(arg2,arg3);
10409 wxPyEndAllowThreads(__tstate);
10410 if (PyErr_Occurred()) SWIG_fail;
10411 }
10412 resultobj = SWIG_Py_Void();
10413 return resultobj;
10414 fail:
10415 return NULL;
10416 }
10417
10418
10419 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10420 PyObject *resultobj = 0;
10421 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10422 int result;
10423 void *argp1 = 0 ;
10424 int res1 = 0 ;
10425 PyObject *swig_obj[1] ;
10426
10427 if (!args) SWIG_fail;
10428 swig_obj[0] = args;
10429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10430 if (!SWIG_IsOK(res1)) {
10431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10432 }
10433 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10434 {
10435 PyThreadState* __tstate = wxPyBeginAllowThreads();
10436 result = (int)(arg1)->GetItemHeight();
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 resultobj = SWIG_From_int(static_cast< int >(result));
10441 return resultobj;
10442 fail:
10443 return NULL;
10444 }
10445
10446
10447 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10448 PyObject *obj;
10449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10450 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10451 return SWIG_Py_Void();
10452 }
10453
10454 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10455 return SWIG_Python_InitShadowInstance(args);
10456 }
10457
10458 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10459 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10460 return 1;
10461 }
10462
10463
10464 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10465 PyObject *pyobj = 0;
10466
10467 {
10468 #if wxUSE_UNICODE
10469 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10470 #else
10471 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10472 #endif
10473 }
10474 return pyobj;
10475 }
10476
10477
10478 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10479 PyObject *resultobj = 0;
10480 wxColour const &arg1_defvalue = wxNullColour ;
10481 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10482 wxColour const &arg2_defvalue = wxNullColour ;
10483 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10484 wxFont const &arg3_defvalue = wxNullFont ;
10485 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10486 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10487 wxTextAttr *result = 0 ;
10488 wxColour temp1 ;
10489 wxColour temp2 ;
10490 void *argp3 = 0 ;
10491 int res3 = 0 ;
10492 int val4 ;
10493 int ecode4 = 0 ;
10494 PyObject * obj0 = 0 ;
10495 PyObject * obj1 = 0 ;
10496 PyObject * obj2 = 0 ;
10497 PyObject * obj3 = 0 ;
10498 char * kwnames[] = {
10499 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10500 };
10501
10502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10503 if (obj0) {
10504 {
10505 arg1 = &temp1;
10506 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10507 }
10508 }
10509 if (obj1) {
10510 {
10511 arg2 = &temp2;
10512 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10513 }
10514 }
10515 if (obj2) {
10516 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10517 if (!SWIG_IsOK(res3)) {
10518 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10519 }
10520 if (!argp3) {
10521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10522 }
10523 arg3 = reinterpret_cast< wxFont * >(argp3);
10524 }
10525 if (obj3) {
10526 ecode4 = SWIG_AsVal_int(obj3, &val4);
10527 if (!SWIG_IsOK(ecode4)) {
10528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10529 }
10530 arg4 = static_cast< wxTextAttrAlignment >(val4);
10531 }
10532 {
10533 PyThreadState* __tstate = wxPyBeginAllowThreads();
10534 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10535 wxPyEndAllowThreads(__tstate);
10536 if (PyErr_Occurred()) SWIG_fail;
10537 }
10538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10539 return resultobj;
10540 fail:
10541 return NULL;
10542 }
10543
10544
10545 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10546 PyObject *resultobj = 0;
10547 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10548 void *argp1 = 0 ;
10549 int res1 = 0 ;
10550 PyObject *swig_obj[1] ;
10551
10552 if (!args) SWIG_fail;
10553 swig_obj[0] = args;
10554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10555 if (!SWIG_IsOK(res1)) {
10556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10557 }
10558 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10559 {
10560 PyThreadState* __tstate = wxPyBeginAllowThreads();
10561 delete arg1;
10562
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 resultobj = SWIG_Py_Void();
10567 return resultobj;
10568 fail:
10569 return NULL;
10570 }
10571
10572
10573 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10574 PyObject *resultobj = 0;
10575 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10576 void *argp1 = 0 ;
10577 int res1 = 0 ;
10578 PyObject *swig_obj[1] ;
10579
10580 if (!args) SWIG_fail;
10581 swig_obj[0] = args;
10582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10583 if (!SWIG_IsOK(res1)) {
10584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10585 }
10586 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10587 {
10588 PyThreadState* __tstate = wxPyBeginAllowThreads();
10589 (arg1)->Init();
10590 wxPyEndAllowThreads(__tstate);
10591 if (PyErr_Occurred()) SWIG_fail;
10592 }
10593 resultobj = SWIG_Py_Void();
10594 return resultobj;
10595 fail:
10596 return NULL;
10597 }
10598
10599
10600 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10601 PyObject *resultobj = 0;
10602 wxTextAttr *arg1 = 0 ;
10603 wxTextAttr *arg2 = 0 ;
10604 wxTextAttr result;
10605 void *argp1 = 0 ;
10606 int res1 = 0 ;
10607 void *argp2 = 0 ;
10608 int res2 = 0 ;
10609 PyObject * obj0 = 0 ;
10610 PyObject * obj1 = 0 ;
10611 char * kwnames[] = {
10612 (char *) "base",(char *) "overlay", NULL
10613 };
10614
10615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10616 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10617 if (!SWIG_IsOK(res1)) {
10618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10619 }
10620 if (!argp1) {
10621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10622 }
10623 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10624 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10625 if (!SWIG_IsOK(res2)) {
10626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10627 }
10628 if (!argp2) {
10629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10630 }
10631 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10632 {
10633 PyThreadState* __tstate = wxPyBeginAllowThreads();
10634 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10639 return resultobj;
10640 fail:
10641 return NULL;
10642 }
10643
10644
10645 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10646 PyObject *resultobj = 0;
10647 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10648 wxColour *arg2 = 0 ;
10649 void *argp1 = 0 ;
10650 int res1 = 0 ;
10651 wxColour temp2 ;
10652 PyObject * obj0 = 0 ;
10653 PyObject * obj1 = 0 ;
10654 char * kwnames[] = {
10655 (char *) "self",(char *) "colText", NULL
10656 };
10657
10658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10660 if (!SWIG_IsOK(res1)) {
10661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10662 }
10663 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10664 {
10665 arg2 = &temp2;
10666 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10667 }
10668 {
10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
10670 (arg1)->SetTextColour((wxColour const &)*arg2);
10671 wxPyEndAllowThreads(__tstate);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
10674 resultobj = SWIG_Py_Void();
10675 return resultobj;
10676 fail:
10677 return NULL;
10678 }
10679
10680
10681 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10682 PyObject *resultobj = 0;
10683 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10684 wxColour *arg2 = 0 ;
10685 void *argp1 = 0 ;
10686 int res1 = 0 ;
10687 wxColour temp2 ;
10688 PyObject * obj0 = 0 ;
10689 PyObject * obj1 = 0 ;
10690 char * kwnames[] = {
10691 (char *) "self",(char *) "colBack", NULL
10692 };
10693
10694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10696 if (!SWIG_IsOK(res1)) {
10697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10698 }
10699 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10700 {
10701 arg2 = &temp2;
10702 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10703 }
10704 {
10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
10706 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10707 wxPyEndAllowThreads(__tstate);
10708 if (PyErr_Occurred()) SWIG_fail;
10709 }
10710 resultobj = SWIG_Py_Void();
10711 return resultobj;
10712 fail:
10713 return NULL;
10714 }
10715
10716
10717 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10718 PyObject *resultobj = 0;
10719 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10720 wxFont *arg2 = 0 ;
10721 long arg3 = (long) wxTEXT_ATTR_FONT ;
10722 void *argp1 = 0 ;
10723 int res1 = 0 ;
10724 void *argp2 = 0 ;
10725 int res2 = 0 ;
10726 long val3 ;
10727 int ecode3 = 0 ;
10728 PyObject * obj0 = 0 ;
10729 PyObject * obj1 = 0 ;
10730 PyObject * obj2 = 0 ;
10731 char * kwnames[] = {
10732 (char *) "self",(char *) "font",(char *) "flags", NULL
10733 };
10734
10735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10737 if (!SWIG_IsOK(res1)) {
10738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10739 }
10740 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10741 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10742 if (!SWIG_IsOK(res2)) {
10743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10744 }
10745 if (!argp2) {
10746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10747 }
10748 arg2 = reinterpret_cast< wxFont * >(argp2);
10749 if (obj2) {
10750 ecode3 = SWIG_AsVal_long(obj2, &val3);
10751 if (!SWIG_IsOK(ecode3)) {
10752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10753 }
10754 arg3 = static_cast< long >(val3);
10755 }
10756 {
10757 PyThreadState* __tstate = wxPyBeginAllowThreads();
10758 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10759 wxPyEndAllowThreads(__tstate);
10760 if (PyErr_Occurred()) SWIG_fail;
10761 }
10762 resultobj = SWIG_Py_Void();
10763 return resultobj;
10764 fail:
10765 return NULL;
10766 }
10767
10768
10769 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10770 PyObject *resultobj = 0;
10771 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10772 wxTextAttrAlignment arg2 ;
10773 void *argp1 = 0 ;
10774 int res1 = 0 ;
10775 int val2 ;
10776 int ecode2 = 0 ;
10777 PyObject * obj0 = 0 ;
10778 PyObject * obj1 = 0 ;
10779 char * kwnames[] = {
10780 (char *) "self",(char *) "alignment", NULL
10781 };
10782
10783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10785 if (!SWIG_IsOK(res1)) {
10786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10787 }
10788 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10789 ecode2 = SWIG_AsVal_int(obj1, &val2);
10790 if (!SWIG_IsOK(ecode2)) {
10791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10792 }
10793 arg2 = static_cast< wxTextAttrAlignment >(val2);
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 (arg1)->SetAlignment(arg2);
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 resultobj = SWIG_Py_Void();
10801 return resultobj;
10802 fail:
10803 return NULL;
10804 }
10805
10806
10807 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10808 PyObject *resultobj = 0;
10809 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10810 wxArrayInt *arg2 = 0 ;
10811 void *argp1 = 0 ;
10812 int res1 = 0 ;
10813 bool temp2 = false ;
10814 PyObject * obj0 = 0 ;
10815 PyObject * obj1 = 0 ;
10816 char * kwnames[] = {
10817 (char *) "self",(char *) "tabs", NULL
10818 };
10819
10820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10822 if (!SWIG_IsOK(res1)) {
10823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10824 }
10825 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10826 {
10827 if (! PySequence_Check(obj1)) {
10828 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10829 SWIG_fail;
10830 }
10831 arg2 = new wxArrayInt;
10832 temp2 = true;
10833 int i, len=PySequence_Length(obj1);
10834 for (i=0; i<len; i++) {
10835 PyObject* item = PySequence_GetItem(obj1, i);
10836 PyObject* number = PyNumber_Int(item);
10837 arg2->Add(PyInt_AS_LONG(number));
10838 Py_DECREF(item);
10839 Py_DECREF(number);
10840 }
10841 }
10842 {
10843 PyThreadState* __tstate = wxPyBeginAllowThreads();
10844 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10845 wxPyEndAllowThreads(__tstate);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 }
10848 resultobj = SWIG_Py_Void();
10849 {
10850 if (temp2) delete arg2;
10851 }
10852 return resultobj;
10853 fail:
10854 {
10855 if (temp2) delete arg2;
10856 }
10857 return NULL;
10858 }
10859
10860
10861 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10862 PyObject *resultobj = 0;
10863 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10864 int arg2 ;
10865 int arg3 = (int) 0 ;
10866 void *argp1 = 0 ;
10867 int res1 = 0 ;
10868 int val2 ;
10869 int ecode2 = 0 ;
10870 int val3 ;
10871 int ecode3 = 0 ;
10872 PyObject * obj0 = 0 ;
10873 PyObject * obj1 = 0 ;
10874 PyObject * obj2 = 0 ;
10875 char * kwnames[] = {
10876 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10877 };
10878
10879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10881 if (!SWIG_IsOK(res1)) {
10882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10883 }
10884 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10885 ecode2 = SWIG_AsVal_int(obj1, &val2);
10886 if (!SWIG_IsOK(ecode2)) {
10887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10888 }
10889 arg2 = static_cast< int >(val2);
10890 if (obj2) {
10891 ecode3 = SWIG_AsVal_int(obj2, &val3);
10892 if (!SWIG_IsOK(ecode3)) {
10893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10894 }
10895 arg3 = static_cast< int >(val3);
10896 }
10897 {
10898 PyThreadState* __tstate = wxPyBeginAllowThreads();
10899 (arg1)->SetLeftIndent(arg2,arg3);
10900 wxPyEndAllowThreads(__tstate);
10901 if (PyErr_Occurred()) SWIG_fail;
10902 }
10903 resultobj = SWIG_Py_Void();
10904 return resultobj;
10905 fail:
10906 return NULL;
10907 }
10908
10909
10910 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10911 PyObject *resultobj = 0;
10912 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10913 int arg2 ;
10914 void *argp1 = 0 ;
10915 int res1 = 0 ;
10916 int val2 ;
10917 int ecode2 = 0 ;
10918 PyObject * obj0 = 0 ;
10919 PyObject * obj1 = 0 ;
10920 char * kwnames[] = {
10921 (char *) "self",(char *) "indent", NULL
10922 };
10923
10924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10926 if (!SWIG_IsOK(res1)) {
10927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10928 }
10929 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10930 ecode2 = SWIG_AsVal_int(obj1, &val2);
10931 if (!SWIG_IsOK(ecode2)) {
10932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10933 }
10934 arg2 = static_cast< int >(val2);
10935 {
10936 PyThreadState* __tstate = wxPyBeginAllowThreads();
10937 (arg1)->SetRightIndent(arg2);
10938 wxPyEndAllowThreads(__tstate);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 resultobj = SWIG_Py_Void();
10942 return resultobj;
10943 fail:
10944 return NULL;
10945 }
10946
10947
10948 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10949 PyObject *resultobj = 0;
10950 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10951 long arg2 ;
10952 void *argp1 = 0 ;
10953 int res1 = 0 ;
10954 long val2 ;
10955 int ecode2 = 0 ;
10956 PyObject * obj0 = 0 ;
10957 PyObject * obj1 = 0 ;
10958 char * kwnames[] = {
10959 (char *) "self",(char *) "flags", NULL
10960 };
10961
10962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10964 if (!SWIG_IsOK(res1)) {
10965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10966 }
10967 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10968 ecode2 = SWIG_AsVal_long(obj1, &val2);
10969 if (!SWIG_IsOK(ecode2)) {
10970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10971 }
10972 arg2 = static_cast< long >(val2);
10973 {
10974 PyThreadState* __tstate = wxPyBeginAllowThreads();
10975 (arg1)->SetFlags(arg2);
10976 wxPyEndAllowThreads(__tstate);
10977 if (PyErr_Occurred()) SWIG_fail;
10978 }
10979 resultobj = SWIG_Py_Void();
10980 return resultobj;
10981 fail:
10982 return NULL;
10983 }
10984
10985
10986 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10987 PyObject *resultobj = 0;
10988 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10989 bool result;
10990 void *argp1 = 0 ;
10991 int res1 = 0 ;
10992 PyObject *swig_obj[1] ;
10993
10994 if (!args) SWIG_fail;
10995 swig_obj[0] = args;
10996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10997 if (!SWIG_IsOK(res1)) {
10998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10999 }
11000 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11001 {
11002 PyThreadState* __tstate = wxPyBeginAllowThreads();
11003 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
11004 wxPyEndAllowThreads(__tstate);
11005 if (PyErr_Occurred()) SWIG_fail;
11006 }
11007 {
11008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11009 }
11010 return resultobj;
11011 fail:
11012 return NULL;
11013 }
11014
11015
11016 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11017 PyObject *resultobj = 0;
11018 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11019 bool result;
11020 void *argp1 = 0 ;
11021 int res1 = 0 ;
11022 PyObject *swig_obj[1] ;
11023
11024 if (!args) SWIG_fail;
11025 swig_obj[0] = args;
11026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11027 if (!SWIG_IsOK(res1)) {
11028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11029 }
11030 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11031 {
11032 PyThreadState* __tstate = wxPyBeginAllowThreads();
11033 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11034 wxPyEndAllowThreads(__tstate);
11035 if (PyErr_Occurred()) SWIG_fail;
11036 }
11037 {
11038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11039 }
11040 return resultobj;
11041 fail:
11042 return NULL;
11043 }
11044
11045
11046 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11047 PyObject *resultobj = 0;
11048 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11049 bool result;
11050 void *argp1 = 0 ;
11051 int res1 = 0 ;
11052 PyObject *swig_obj[1] ;
11053
11054 if (!args) SWIG_fail;
11055 swig_obj[0] = args;
11056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11057 if (!SWIG_IsOK(res1)) {
11058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11059 }
11060 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11061 {
11062 PyThreadState* __tstate = wxPyBeginAllowThreads();
11063 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11064 wxPyEndAllowThreads(__tstate);
11065 if (PyErr_Occurred()) SWIG_fail;
11066 }
11067 {
11068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11069 }
11070 return resultobj;
11071 fail:
11072 return NULL;
11073 }
11074
11075
11076 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11077 PyObject *resultobj = 0;
11078 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11079 bool result;
11080 void *argp1 = 0 ;
11081 int res1 = 0 ;
11082 PyObject *swig_obj[1] ;
11083
11084 if (!args) SWIG_fail;
11085 swig_obj[0] = args;
11086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11087 if (!SWIG_IsOK(res1)) {
11088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11089 }
11090 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11091 {
11092 PyThreadState* __tstate = wxPyBeginAllowThreads();
11093 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11094 wxPyEndAllowThreads(__tstate);
11095 if (PyErr_Occurred()) SWIG_fail;
11096 }
11097 {
11098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11099 }
11100 return resultobj;
11101 fail:
11102 return NULL;
11103 }
11104
11105
11106 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11107 PyObject *resultobj = 0;
11108 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11109 bool result;
11110 void *argp1 = 0 ;
11111 int res1 = 0 ;
11112 PyObject *swig_obj[1] ;
11113
11114 if (!args) SWIG_fail;
11115 swig_obj[0] = args;
11116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11117 if (!SWIG_IsOK(res1)) {
11118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11119 }
11120 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11121 {
11122 PyThreadState* __tstate = wxPyBeginAllowThreads();
11123 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11124 wxPyEndAllowThreads(__tstate);
11125 if (PyErr_Occurred()) SWIG_fail;
11126 }
11127 {
11128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11129 }
11130 return resultobj;
11131 fail:
11132 return NULL;
11133 }
11134
11135
11136 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11137 PyObject *resultobj = 0;
11138 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11139 bool result;
11140 void *argp1 = 0 ;
11141 int res1 = 0 ;
11142 PyObject *swig_obj[1] ;
11143
11144 if (!args) SWIG_fail;
11145 swig_obj[0] = args;
11146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11147 if (!SWIG_IsOK(res1)) {
11148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11149 }
11150 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11151 {
11152 PyThreadState* __tstate = wxPyBeginAllowThreads();
11153 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11154 wxPyEndAllowThreads(__tstate);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 }
11157 {
11158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11159 }
11160 return resultobj;
11161 fail:
11162 return NULL;
11163 }
11164
11165
11166 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11167 PyObject *resultobj = 0;
11168 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11169 bool result;
11170 void *argp1 = 0 ;
11171 int res1 = 0 ;
11172 PyObject *swig_obj[1] ;
11173
11174 if (!args) SWIG_fail;
11175 swig_obj[0] = args;
11176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11177 if (!SWIG_IsOK(res1)) {
11178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11179 }
11180 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11181 {
11182 PyThreadState* __tstate = wxPyBeginAllowThreads();
11183 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11184 wxPyEndAllowThreads(__tstate);
11185 if (PyErr_Occurred()) SWIG_fail;
11186 }
11187 {
11188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11189 }
11190 return resultobj;
11191 fail:
11192 return NULL;
11193 }
11194
11195
11196 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11197 PyObject *resultobj = 0;
11198 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11199 long arg2 ;
11200 bool result;
11201 void *argp1 = 0 ;
11202 int res1 = 0 ;
11203 long val2 ;
11204 int ecode2 = 0 ;
11205 PyObject * obj0 = 0 ;
11206 PyObject * obj1 = 0 ;
11207 char * kwnames[] = {
11208 (char *) "self",(char *) "flag", NULL
11209 };
11210
11211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11213 if (!SWIG_IsOK(res1)) {
11214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11215 }
11216 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11217 ecode2 = SWIG_AsVal_long(obj1, &val2);
11218 if (!SWIG_IsOK(ecode2)) {
11219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11220 }
11221 arg2 = static_cast< long >(val2);
11222 {
11223 PyThreadState* __tstate = wxPyBeginAllowThreads();
11224 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11225 wxPyEndAllowThreads(__tstate);
11226 if (PyErr_Occurred()) SWIG_fail;
11227 }
11228 {
11229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11230 }
11231 return resultobj;
11232 fail:
11233 return NULL;
11234 }
11235
11236
11237 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11238 PyObject *resultobj = 0;
11239 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11240 wxColour *result = 0 ;
11241 void *argp1 = 0 ;
11242 int res1 = 0 ;
11243 PyObject *swig_obj[1] ;
11244
11245 if (!args) SWIG_fail;
11246 swig_obj[0] = args;
11247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11248 if (!SWIG_IsOK(res1)) {
11249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11250 }
11251 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11252 {
11253 PyThreadState* __tstate = wxPyBeginAllowThreads();
11254 {
11255 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11256 result = (wxColour *) &_result_ref;
11257 }
11258 wxPyEndAllowThreads(__tstate);
11259 if (PyErr_Occurred()) SWIG_fail;
11260 }
11261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11262 return resultobj;
11263 fail:
11264 return NULL;
11265 }
11266
11267
11268 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11269 PyObject *resultobj = 0;
11270 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11271 wxColour *result = 0 ;
11272 void *argp1 = 0 ;
11273 int res1 = 0 ;
11274 PyObject *swig_obj[1] ;
11275
11276 if (!args) SWIG_fail;
11277 swig_obj[0] = args;
11278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11279 if (!SWIG_IsOK(res1)) {
11280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11281 }
11282 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
11285 {
11286 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11287 result = (wxColour *) &_result_ref;
11288 }
11289 wxPyEndAllowThreads(__tstate);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 }
11292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11293 return resultobj;
11294 fail:
11295 return NULL;
11296 }
11297
11298
11299 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11300 PyObject *resultobj = 0;
11301 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11302 wxFont *result = 0 ;
11303 void *argp1 = 0 ;
11304 int res1 = 0 ;
11305 PyObject *swig_obj[1] ;
11306
11307 if (!args) SWIG_fail;
11308 swig_obj[0] = args;
11309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11310 if (!SWIG_IsOK(res1)) {
11311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11312 }
11313 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
11316 {
11317 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11318 result = (wxFont *) &_result_ref;
11319 }
11320 wxPyEndAllowThreads(__tstate);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 {
11324 wxFont* resultptr = new wxFont(*result);
11325 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11326 }
11327 return resultobj;
11328 fail:
11329 return NULL;
11330 }
11331
11332
11333 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11334 PyObject *resultobj = 0;
11335 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11336 wxTextAttrAlignment result;
11337 void *argp1 = 0 ;
11338 int res1 = 0 ;
11339 PyObject *swig_obj[1] ;
11340
11341 if (!args) SWIG_fail;
11342 swig_obj[0] = args;
11343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11344 if (!SWIG_IsOK(res1)) {
11345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11346 }
11347 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11348 {
11349 PyThreadState* __tstate = wxPyBeginAllowThreads();
11350 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11351 wxPyEndAllowThreads(__tstate);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 }
11354 resultobj = SWIG_From_int(static_cast< int >(result));
11355 return resultobj;
11356 fail:
11357 return NULL;
11358 }
11359
11360
11361 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11362 PyObject *resultobj = 0;
11363 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11364 wxArrayInt *result = 0 ;
11365 void *argp1 = 0 ;
11366 int res1 = 0 ;
11367 PyObject *swig_obj[1] ;
11368
11369 if (!args) SWIG_fail;
11370 swig_obj[0] = args;
11371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11372 if (!SWIG_IsOK(res1)) {
11373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11374 }
11375 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11376 {
11377 PyThreadState* __tstate = wxPyBeginAllowThreads();
11378 {
11379 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11380 result = (wxArrayInt *) &_result_ref;
11381 }
11382 wxPyEndAllowThreads(__tstate);
11383 if (PyErr_Occurred()) SWIG_fail;
11384 }
11385 {
11386 resultobj = PyList_New(0);
11387 size_t idx;
11388 for (idx = 0; idx < result->GetCount(); idx += 1) {
11389 PyObject* val = PyInt_FromLong( result->Item(idx) );
11390 PyList_Append(resultobj, val);
11391 Py_DECREF(val);
11392 }
11393 }
11394 return resultobj;
11395 fail:
11396 return NULL;
11397 }
11398
11399
11400 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11401 PyObject *resultobj = 0;
11402 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11403 long result;
11404 void *argp1 = 0 ;
11405 int res1 = 0 ;
11406 PyObject *swig_obj[1] ;
11407
11408 if (!args) SWIG_fail;
11409 swig_obj[0] = args;
11410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11411 if (!SWIG_IsOK(res1)) {
11412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11413 }
11414 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11415 {
11416 PyThreadState* __tstate = wxPyBeginAllowThreads();
11417 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11418 wxPyEndAllowThreads(__tstate);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 }
11421 resultobj = SWIG_From_long(static_cast< long >(result));
11422 return resultobj;
11423 fail:
11424 return NULL;
11425 }
11426
11427
11428 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11429 PyObject *resultobj = 0;
11430 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11431 long result;
11432 void *argp1 = 0 ;
11433 int res1 = 0 ;
11434 PyObject *swig_obj[1] ;
11435
11436 if (!args) SWIG_fail;
11437 swig_obj[0] = args;
11438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11439 if (!SWIG_IsOK(res1)) {
11440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11441 }
11442 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11443 {
11444 PyThreadState* __tstate = wxPyBeginAllowThreads();
11445 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11446 wxPyEndAllowThreads(__tstate);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 }
11449 resultobj = SWIG_From_long(static_cast< long >(result));
11450 return resultobj;
11451 fail:
11452 return NULL;
11453 }
11454
11455
11456 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11457 PyObject *resultobj = 0;
11458 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11459 long result;
11460 void *argp1 = 0 ;
11461 int res1 = 0 ;
11462 PyObject *swig_obj[1] ;
11463
11464 if (!args) SWIG_fail;
11465 swig_obj[0] = args;
11466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11467 if (!SWIG_IsOK(res1)) {
11468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11469 }
11470 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11471 {
11472 PyThreadState* __tstate = wxPyBeginAllowThreads();
11473 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11474 wxPyEndAllowThreads(__tstate);
11475 if (PyErr_Occurred()) SWIG_fail;
11476 }
11477 resultobj = SWIG_From_long(static_cast< long >(result));
11478 return resultobj;
11479 fail:
11480 return NULL;
11481 }
11482
11483
11484 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11485 PyObject *resultobj = 0;
11486 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11487 long result;
11488 void *argp1 = 0 ;
11489 int res1 = 0 ;
11490 PyObject *swig_obj[1] ;
11491
11492 if (!args) SWIG_fail;
11493 swig_obj[0] = args;
11494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11495 if (!SWIG_IsOK(res1)) {
11496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11497 }
11498 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11499 {
11500 PyThreadState* __tstate = wxPyBeginAllowThreads();
11501 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11502 wxPyEndAllowThreads(__tstate);
11503 if (PyErr_Occurred()) SWIG_fail;
11504 }
11505 resultobj = SWIG_From_long(static_cast< long >(result));
11506 return resultobj;
11507 fail:
11508 return NULL;
11509 }
11510
11511
11512 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11513 PyObject *resultobj = 0;
11514 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11515 bool result;
11516 void *argp1 = 0 ;
11517 int res1 = 0 ;
11518 PyObject *swig_obj[1] ;
11519
11520 if (!args) SWIG_fail;
11521 swig_obj[0] = args;
11522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11523 if (!SWIG_IsOK(res1)) {
11524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11525 }
11526 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11527 {
11528 PyThreadState* __tstate = wxPyBeginAllowThreads();
11529 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11530 wxPyEndAllowThreads(__tstate);
11531 if (PyErr_Occurred()) SWIG_fail;
11532 }
11533 {
11534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11535 }
11536 return resultobj;
11537 fail:
11538 return NULL;
11539 }
11540
11541
11542 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11543 PyObject *resultobj = 0;
11544 wxTextAttr *arg1 = 0 ;
11545 wxTextAttr *arg2 = 0 ;
11546 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11547 wxTextAttr result;
11548 void *argp1 = 0 ;
11549 int res1 = 0 ;
11550 void *argp2 = 0 ;
11551 int res2 = 0 ;
11552 void *argp3 = 0 ;
11553 int res3 = 0 ;
11554 PyObject * obj0 = 0 ;
11555 PyObject * obj1 = 0 ;
11556 PyObject * obj2 = 0 ;
11557 char * kwnames[] = {
11558 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11559 };
11560
11561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11562 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11563 if (!SWIG_IsOK(res1)) {
11564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11565 }
11566 if (!argp1) {
11567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11568 }
11569 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11571 if (!SWIG_IsOK(res2)) {
11572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11573 }
11574 if (!argp2) {
11575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11576 }
11577 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11578 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11579 if (!SWIG_IsOK(res3)) {
11580 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11581 }
11582 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11583 {
11584 PyThreadState* __tstate = wxPyBeginAllowThreads();
11585 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11586 wxPyEndAllowThreads(__tstate);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 }
11589 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11590 return resultobj;
11591 fail:
11592 return NULL;
11593 }
11594
11595
11596 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11597 PyObject *obj;
11598 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11599 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11600 return SWIG_Py_Void();
11601 }
11602
11603 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11604 return SWIG_Python_InitShadowInstance(args);
11605 }
11606
11607 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11608 PyObject *resultobj = 0;
11609 wxWindow *arg1 = (wxWindow *) 0 ;
11610 int arg2 = (int) -1 ;
11611 wxString const &arg3_defvalue = wxPyEmptyString ;
11612 wxString *arg3 = (wxString *) &arg3_defvalue ;
11613 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11614 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11615 wxSize const &arg5_defvalue = wxDefaultSize ;
11616 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11617 long arg6 = (long) 0 ;
11618 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11619 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11620 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11621 wxString *arg8 = (wxString *) &arg8_defvalue ;
11622 wxTextCtrl *result = 0 ;
11623 void *argp1 = 0 ;
11624 int res1 = 0 ;
11625 int val2 ;
11626 int ecode2 = 0 ;
11627 bool temp3 = false ;
11628 wxPoint temp4 ;
11629 wxSize temp5 ;
11630 long val6 ;
11631 int ecode6 = 0 ;
11632 void *argp7 = 0 ;
11633 int res7 = 0 ;
11634 bool temp8 = false ;
11635 PyObject * obj0 = 0 ;
11636 PyObject * obj1 = 0 ;
11637 PyObject * obj2 = 0 ;
11638 PyObject * obj3 = 0 ;
11639 PyObject * obj4 = 0 ;
11640 PyObject * obj5 = 0 ;
11641 PyObject * obj6 = 0 ;
11642 PyObject * obj7 = 0 ;
11643 char * kwnames[] = {
11644 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11645 };
11646
11647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11649 if (!SWIG_IsOK(res1)) {
11650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11651 }
11652 arg1 = reinterpret_cast< wxWindow * >(argp1);
11653 if (obj1) {
11654 ecode2 = SWIG_AsVal_int(obj1, &val2);
11655 if (!SWIG_IsOK(ecode2)) {
11656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11657 }
11658 arg2 = static_cast< int >(val2);
11659 }
11660 if (obj2) {
11661 {
11662 arg3 = wxString_in_helper(obj2);
11663 if (arg3 == NULL) SWIG_fail;
11664 temp3 = true;
11665 }
11666 }
11667 if (obj3) {
11668 {
11669 arg4 = &temp4;
11670 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11671 }
11672 }
11673 if (obj4) {
11674 {
11675 arg5 = &temp5;
11676 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11677 }
11678 }
11679 if (obj5) {
11680 ecode6 = SWIG_AsVal_long(obj5, &val6);
11681 if (!SWIG_IsOK(ecode6)) {
11682 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11683 }
11684 arg6 = static_cast< long >(val6);
11685 }
11686 if (obj6) {
11687 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11688 if (!SWIG_IsOK(res7)) {
11689 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11690 }
11691 if (!argp7) {
11692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11693 }
11694 arg7 = reinterpret_cast< wxValidator * >(argp7);
11695 }
11696 if (obj7) {
11697 {
11698 arg8 = wxString_in_helper(obj7);
11699 if (arg8 == NULL) SWIG_fail;
11700 temp8 = true;
11701 }
11702 }
11703 {
11704 if (!wxPyCheckForApp()) SWIG_fail;
11705 PyThreadState* __tstate = wxPyBeginAllowThreads();
11706 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11707 wxPyEndAllowThreads(__tstate);
11708 if (PyErr_Occurred()) SWIG_fail;
11709 }
11710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11711 {
11712 if (temp3)
11713 delete arg3;
11714 }
11715 {
11716 if (temp8)
11717 delete arg8;
11718 }
11719 return resultobj;
11720 fail:
11721 {
11722 if (temp3)
11723 delete arg3;
11724 }
11725 {
11726 if (temp8)
11727 delete arg8;
11728 }
11729 return NULL;
11730 }
11731
11732
11733 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11734 PyObject *resultobj = 0;
11735 wxTextCtrl *result = 0 ;
11736
11737 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11738 {
11739 if (!wxPyCheckForApp()) SWIG_fail;
11740 PyThreadState* __tstate = wxPyBeginAllowThreads();
11741 result = (wxTextCtrl *)new wxTextCtrl();
11742 wxPyEndAllowThreads(__tstate);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11746 return resultobj;
11747 fail:
11748 return NULL;
11749 }
11750
11751
11752 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11753 PyObject *resultobj = 0;
11754 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11755 wxWindow *arg2 = (wxWindow *) 0 ;
11756 int arg3 = (int) -1 ;
11757 wxString const &arg4_defvalue = wxPyEmptyString ;
11758 wxString *arg4 = (wxString *) &arg4_defvalue ;
11759 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11760 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11761 wxSize const &arg6_defvalue = wxDefaultSize ;
11762 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11763 long arg7 = (long) 0 ;
11764 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11765 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11766 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11767 wxString *arg9 = (wxString *) &arg9_defvalue ;
11768 bool result;
11769 void *argp1 = 0 ;
11770 int res1 = 0 ;
11771 void *argp2 = 0 ;
11772 int res2 = 0 ;
11773 int val3 ;
11774 int ecode3 = 0 ;
11775 bool temp4 = false ;
11776 wxPoint temp5 ;
11777 wxSize temp6 ;
11778 long val7 ;
11779 int ecode7 = 0 ;
11780 void *argp8 = 0 ;
11781 int res8 = 0 ;
11782 bool temp9 = false ;
11783 PyObject * obj0 = 0 ;
11784 PyObject * obj1 = 0 ;
11785 PyObject * obj2 = 0 ;
11786 PyObject * obj3 = 0 ;
11787 PyObject * obj4 = 0 ;
11788 PyObject * obj5 = 0 ;
11789 PyObject * obj6 = 0 ;
11790 PyObject * obj7 = 0 ;
11791 PyObject * obj8 = 0 ;
11792 char * kwnames[] = {
11793 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11794 };
11795
11796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11798 if (!SWIG_IsOK(res1)) {
11799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11800 }
11801 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11802 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11803 if (!SWIG_IsOK(res2)) {
11804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11805 }
11806 arg2 = reinterpret_cast< wxWindow * >(argp2);
11807 if (obj2) {
11808 ecode3 = SWIG_AsVal_int(obj2, &val3);
11809 if (!SWIG_IsOK(ecode3)) {
11810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11811 }
11812 arg3 = static_cast< int >(val3);
11813 }
11814 if (obj3) {
11815 {
11816 arg4 = wxString_in_helper(obj3);
11817 if (arg4 == NULL) SWIG_fail;
11818 temp4 = true;
11819 }
11820 }
11821 if (obj4) {
11822 {
11823 arg5 = &temp5;
11824 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11825 }
11826 }
11827 if (obj5) {
11828 {
11829 arg6 = &temp6;
11830 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11831 }
11832 }
11833 if (obj6) {
11834 ecode7 = SWIG_AsVal_long(obj6, &val7);
11835 if (!SWIG_IsOK(ecode7)) {
11836 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11837 }
11838 arg7 = static_cast< long >(val7);
11839 }
11840 if (obj7) {
11841 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11842 if (!SWIG_IsOK(res8)) {
11843 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11844 }
11845 if (!argp8) {
11846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11847 }
11848 arg8 = reinterpret_cast< wxValidator * >(argp8);
11849 }
11850 if (obj8) {
11851 {
11852 arg9 = wxString_in_helper(obj8);
11853 if (arg9 == NULL) SWIG_fail;
11854 temp9 = true;
11855 }
11856 }
11857 {
11858 PyThreadState* __tstate = wxPyBeginAllowThreads();
11859 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11860 wxPyEndAllowThreads(__tstate);
11861 if (PyErr_Occurred()) SWIG_fail;
11862 }
11863 {
11864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11865 }
11866 {
11867 if (temp4)
11868 delete arg4;
11869 }
11870 {
11871 if (temp9)
11872 delete arg9;
11873 }
11874 return resultobj;
11875 fail:
11876 {
11877 if (temp4)
11878 delete arg4;
11879 }
11880 {
11881 if (temp9)
11882 delete arg9;
11883 }
11884 return NULL;
11885 }
11886
11887
11888 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11889 PyObject *resultobj = 0;
11890 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11891 wxString result;
11892 void *argp1 = 0 ;
11893 int res1 = 0 ;
11894 PyObject *swig_obj[1] ;
11895
11896 if (!args) SWIG_fail;
11897 swig_obj[0] = args;
11898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11899 if (!SWIG_IsOK(res1)) {
11900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11901 }
11902 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11903 {
11904 PyThreadState* __tstate = wxPyBeginAllowThreads();
11905 result = ((wxTextCtrl const *)arg1)->GetValue();
11906 wxPyEndAllowThreads(__tstate);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 }
11909 {
11910 #if wxUSE_UNICODE
11911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11912 #else
11913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11914 #endif
11915 }
11916 return resultobj;
11917 fail:
11918 return NULL;
11919 }
11920
11921
11922 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11923 PyObject *resultobj = 0;
11924 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11925 wxString *arg2 = 0 ;
11926 void *argp1 = 0 ;
11927 int res1 = 0 ;
11928 bool temp2 = false ;
11929 PyObject * obj0 = 0 ;
11930 PyObject * obj1 = 0 ;
11931 char * kwnames[] = {
11932 (char *) "self",(char *) "value", NULL
11933 };
11934
11935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11937 if (!SWIG_IsOK(res1)) {
11938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11939 }
11940 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11941 {
11942 arg2 = wxString_in_helper(obj1);
11943 if (arg2 == NULL) SWIG_fail;
11944 temp2 = true;
11945 }
11946 {
11947 PyThreadState* __tstate = wxPyBeginAllowThreads();
11948 (arg1)->SetValue((wxString const &)*arg2);
11949 wxPyEndAllowThreads(__tstate);
11950 if (PyErr_Occurred()) SWIG_fail;
11951 }
11952 resultobj = SWIG_Py_Void();
11953 {
11954 if (temp2)
11955 delete arg2;
11956 }
11957 return resultobj;
11958 fail:
11959 {
11960 if (temp2)
11961 delete arg2;
11962 }
11963 return NULL;
11964 }
11965
11966
11967 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11968 PyObject *resultobj = 0;
11969 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11970 long arg2 ;
11971 long arg3 ;
11972 wxString result;
11973 void *argp1 = 0 ;
11974 int res1 = 0 ;
11975 long val2 ;
11976 int ecode2 = 0 ;
11977 long val3 ;
11978 int ecode3 = 0 ;
11979 PyObject * obj0 = 0 ;
11980 PyObject * obj1 = 0 ;
11981 PyObject * obj2 = 0 ;
11982 char * kwnames[] = {
11983 (char *) "self",(char *) "from",(char *) "to", NULL
11984 };
11985
11986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11988 if (!SWIG_IsOK(res1)) {
11989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11990 }
11991 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11992 ecode2 = SWIG_AsVal_long(obj1, &val2);
11993 if (!SWIG_IsOK(ecode2)) {
11994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11995 }
11996 arg2 = static_cast< long >(val2);
11997 ecode3 = SWIG_AsVal_long(obj2, &val3);
11998 if (!SWIG_IsOK(ecode3)) {
11999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12000 }
12001 arg3 = static_cast< long >(val3);
12002 {
12003 PyThreadState* __tstate = wxPyBeginAllowThreads();
12004 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 {
12009 #if wxUSE_UNICODE
12010 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12011 #else
12012 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12013 #endif
12014 }
12015 return resultobj;
12016 fail:
12017 return NULL;
12018 }
12019
12020
12021 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12022 PyObject *resultobj = 0;
12023 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12024 long arg2 ;
12025 int result;
12026 void *argp1 = 0 ;
12027 int res1 = 0 ;
12028 long val2 ;
12029 int ecode2 = 0 ;
12030 PyObject * obj0 = 0 ;
12031 PyObject * obj1 = 0 ;
12032 char * kwnames[] = {
12033 (char *) "self",(char *) "lineNo", NULL
12034 };
12035
12036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12038 if (!SWIG_IsOK(res1)) {
12039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12040 }
12041 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12042 ecode2 = SWIG_AsVal_long(obj1, &val2);
12043 if (!SWIG_IsOK(ecode2)) {
12044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12045 }
12046 arg2 = static_cast< long >(val2);
12047 {
12048 PyThreadState* __tstate = wxPyBeginAllowThreads();
12049 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12050 wxPyEndAllowThreads(__tstate);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 }
12053 resultobj = SWIG_From_int(static_cast< int >(result));
12054 return resultobj;
12055 fail:
12056 return NULL;
12057 }
12058
12059
12060 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12061 PyObject *resultobj = 0;
12062 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12063 long arg2 ;
12064 wxString result;
12065 void *argp1 = 0 ;
12066 int res1 = 0 ;
12067 long val2 ;
12068 int ecode2 = 0 ;
12069 PyObject * obj0 = 0 ;
12070 PyObject * obj1 = 0 ;
12071 char * kwnames[] = {
12072 (char *) "self",(char *) "lineNo", NULL
12073 };
12074
12075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12077 if (!SWIG_IsOK(res1)) {
12078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12079 }
12080 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12081 ecode2 = SWIG_AsVal_long(obj1, &val2);
12082 if (!SWIG_IsOK(ecode2)) {
12083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12084 }
12085 arg2 = static_cast< long >(val2);
12086 {
12087 PyThreadState* __tstate = wxPyBeginAllowThreads();
12088 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 {
12093 #if wxUSE_UNICODE
12094 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12095 #else
12096 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12097 #endif
12098 }
12099 return resultobj;
12100 fail:
12101 return NULL;
12102 }
12103
12104
12105 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12106 PyObject *resultobj = 0;
12107 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12108 int result;
12109 void *argp1 = 0 ;
12110 int res1 = 0 ;
12111 PyObject *swig_obj[1] ;
12112
12113 if (!args) SWIG_fail;
12114 swig_obj[0] = args;
12115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12116 if (!SWIG_IsOK(res1)) {
12117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12118 }
12119 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12120 {
12121 PyThreadState* __tstate = wxPyBeginAllowThreads();
12122 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 resultobj = SWIG_From_int(static_cast< int >(result));
12127 return resultobj;
12128 fail:
12129 return NULL;
12130 }
12131
12132
12133 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12134 PyObject *resultobj = 0;
12135 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12136 bool result;
12137 void *argp1 = 0 ;
12138 int res1 = 0 ;
12139 PyObject *swig_obj[1] ;
12140
12141 if (!args) SWIG_fail;
12142 swig_obj[0] = args;
12143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12144 if (!SWIG_IsOK(res1)) {
12145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12146 }
12147 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12148 {
12149 PyThreadState* __tstate = wxPyBeginAllowThreads();
12150 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12151 wxPyEndAllowThreads(__tstate);
12152 if (PyErr_Occurred()) SWIG_fail;
12153 }
12154 {
12155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12156 }
12157 return resultobj;
12158 fail:
12159 return NULL;
12160 }
12161
12162
12163 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12164 PyObject *resultobj = 0;
12165 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12166 bool result;
12167 void *argp1 = 0 ;
12168 int res1 = 0 ;
12169 PyObject *swig_obj[1] ;
12170
12171 if (!args) SWIG_fail;
12172 swig_obj[0] = args;
12173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12174 if (!SWIG_IsOK(res1)) {
12175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12176 }
12177 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12181 wxPyEndAllowThreads(__tstate);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 }
12184 {
12185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12186 }
12187 return resultobj;
12188 fail:
12189 return NULL;
12190 }
12191
12192
12193 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12194 PyObject *resultobj = 0;
12195 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12196 bool result;
12197 void *argp1 = 0 ;
12198 int res1 = 0 ;
12199 PyObject *swig_obj[1] ;
12200
12201 if (!args) SWIG_fail;
12202 swig_obj[0] = args;
12203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12204 if (!SWIG_IsOK(res1)) {
12205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12206 }
12207 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12208 {
12209 PyThreadState* __tstate = wxPyBeginAllowThreads();
12210 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12211 wxPyEndAllowThreads(__tstate);
12212 if (PyErr_Occurred()) SWIG_fail;
12213 }
12214 {
12215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12216 }
12217 return resultobj;
12218 fail:
12219 return NULL;
12220 }
12221
12222
12223 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12224 PyObject *resultobj = 0;
12225 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12226 bool result;
12227 void *argp1 = 0 ;
12228 int res1 = 0 ;
12229 PyObject *swig_obj[1] ;
12230
12231 if (!args) SWIG_fail;
12232 swig_obj[0] = args;
12233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12234 if (!SWIG_IsOK(res1)) {
12235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12236 }
12237 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12238 {
12239 PyThreadState* __tstate = wxPyBeginAllowThreads();
12240 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12241 wxPyEndAllowThreads(__tstate);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 }
12244 {
12245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12246 }
12247 return resultobj;
12248 fail:
12249 return NULL;
12250 }
12251
12252
12253 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12254 PyObject *resultobj = 0;
12255 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12256 long *arg2 = (long *) 0 ;
12257 long *arg3 = (long *) 0 ;
12258 void *argp1 = 0 ;
12259 int res1 = 0 ;
12260 long temp2 ;
12261 int res2 = SWIG_TMPOBJ ;
12262 long temp3 ;
12263 int res3 = SWIG_TMPOBJ ;
12264 PyObject *swig_obj[1] ;
12265
12266 arg2 = &temp2;
12267 arg3 = &temp3;
12268 if (!args) SWIG_fail;
12269 swig_obj[0] = args;
12270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12271 if (!SWIG_IsOK(res1)) {
12272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12273 }
12274 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12275 {
12276 PyThreadState* __tstate = wxPyBeginAllowThreads();
12277 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12278 wxPyEndAllowThreads(__tstate);
12279 if (PyErr_Occurred()) SWIG_fail;
12280 }
12281 resultobj = SWIG_Py_Void();
12282 if (SWIG_IsTmpObj(res2)) {
12283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12284 } else {
12285 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12287 }
12288 if (SWIG_IsTmpObj(res3)) {
12289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12290 } else {
12291 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12293 }
12294 return resultobj;
12295 fail:
12296 return NULL;
12297 }
12298
12299
12300 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12301 PyObject *resultobj = 0;
12302 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12303 wxString result;
12304 void *argp1 = 0 ;
12305 int res1 = 0 ;
12306 PyObject *swig_obj[1] ;
12307
12308 if (!args) SWIG_fail;
12309 swig_obj[0] = args;
12310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12311 if (!SWIG_IsOK(res1)) {
12312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12313 }
12314 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12315 {
12316 PyThreadState* __tstate = wxPyBeginAllowThreads();
12317 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12318 wxPyEndAllowThreads(__tstate);
12319 if (PyErr_Occurred()) SWIG_fail;
12320 }
12321 {
12322 #if wxUSE_UNICODE
12323 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12324 #else
12325 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12326 #endif
12327 }
12328 return resultobj;
12329 fail:
12330 return NULL;
12331 }
12332
12333
12334 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12335 PyObject *resultobj = 0;
12336 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12337 void *argp1 = 0 ;
12338 int res1 = 0 ;
12339 PyObject *swig_obj[1] ;
12340
12341 if (!args) SWIG_fail;
12342 swig_obj[0] = args;
12343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12344 if (!SWIG_IsOK(res1)) {
12345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12346 }
12347 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 (arg1)->Clear();
12351 wxPyEndAllowThreads(__tstate);
12352 if (PyErr_Occurred()) SWIG_fail;
12353 }
12354 resultobj = SWIG_Py_Void();
12355 return resultobj;
12356 fail:
12357 return NULL;
12358 }
12359
12360
12361 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12362 PyObject *resultobj = 0;
12363 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12364 long arg2 ;
12365 long arg3 ;
12366 wxString *arg4 = 0 ;
12367 void *argp1 = 0 ;
12368 int res1 = 0 ;
12369 long val2 ;
12370 int ecode2 = 0 ;
12371 long val3 ;
12372 int ecode3 = 0 ;
12373 bool temp4 = false ;
12374 PyObject * obj0 = 0 ;
12375 PyObject * obj1 = 0 ;
12376 PyObject * obj2 = 0 ;
12377 PyObject * obj3 = 0 ;
12378 char * kwnames[] = {
12379 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12380 };
12381
12382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12384 if (!SWIG_IsOK(res1)) {
12385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12386 }
12387 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12388 ecode2 = SWIG_AsVal_long(obj1, &val2);
12389 if (!SWIG_IsOK(ecode2)) {
12390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12391 }
12392 arg2 = static_cast< long >(val2);
12393 ecode3 = SWIG_AsVal_long(obj2, &val3);
12394 if (!SWIG_IsOK(ecode3)) {
12395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12396 }
12397 arg3 = static_cast< long >(val3);
12398 {
12399 arg4 = wxString_in_helper(obj3);
12400 if (arg4 == NULL) SWIG_fail;
12401 temp4 = true;
12402 }
12403 {
12404 PyThreadState* __tstate = wxPyBeginAllowThreads();
12405 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12406 wxPyEndAllowThreads(__tstate);
12407 if (PyErr_Occurred()) SWIG_fail;
12408 }
12409 resultobj = SWIG_Py_Void();
12410 {
12411 if (temp4)
12412 delete arg4;
12413 }
12414 return resultobj;
12415 fail:
12416 {
12417 if (temp4)
12418 delete arg4;
12419 }
12420 return NULL;
12421 }
12422
12423
12424 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12425 PyObject *resultobj = 0;
12426 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12427 long arg2 ;
12428 long arg3 ;
12429 void *argp1 = 0 ;
12430 int res1 = 0 ;
12431 long val2 ;
12432 int ecode2 = 0 ;
12433 long val3 ;
12434 int ecode3 = 0 ;
12435 PyObject * obj0 = 0 ;
12436 PyObject * obj1 = 0 ;
12437 PyObject * obj2 = 0 ;
12438 char * kwnames[] = {
12439 (char *) "self",(char *) "from",(char *) "to", NULL
12440 };
12441
12442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12444 if (!SWIG_IsOK(res1)) {
12445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12446 }
12447 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12448 ecode2 = SWIG_AsVal_long(obj1, &val2);
12449 if (!SWIG_IsOK(ecode2)) {
12450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12451 }
12452 arg2 = static_cast< long >(val2);
12453 ecode3 = SWIG_AsVal_long(obj2, &val3);
12454 if (!SWIG_IsOK(ecode3)) {
12455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12456 }
12457 arg3 = static_cast< long >(val3);
12458 {
12459 PyThreadState* __tstate = wxPyBeginAllowThreads();
12460 (arg1)->Remove(arg2,arg3);
12461 wxPyEndAllowThreads(__tstate);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 }
12464 resultobj = SWIG_Py_Void();
12465 return resultobj;
12466 fail:
12467 return NULL;
12468 }
12469
12470
12471 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12472 PyObject *resultobj = 0;
12473 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12474 wxString *arg2 = 0 ;
12475 bool result;
12476 void *argp1 = 0 ;
12477 int res1 = 0 ;
12478 bool temp2 = false ;
12479 PyObject * obj0 = 0 ;
12480 PyObject * obj1 = 0 ;
12481 char * kwnames[] = {
12482 (char *) "self",(char *) "file", NULL
12483 };
12484
12485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12487 if (!SWIG_IsOK(res1)) {
12488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12489 }
12490 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12491 {
12492 arg2 = wxString_in_helper(obj1);
12493 if (arg2 == NULL) SWIG_fail;
12494 temp2 = true;
12495 }
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12499 wxPyEndAllowThreads(__tstate);
12500 if (PyErr_Occurred()) SWIG_fail;
12501 }
12502 {
12503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12504 }
12505 {
12506 if (temp2)
12507 delete arg2;
12508 }
12509 return resultobj;
12510 fail:
12511 {
12512 if (temp2)
12513 delete arg2;
12514 }
12515 return NULL;
12516 }
12517
12518
12519 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12520 PyObject *resultobj = 0;
12521 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12522 wxString const &arg2_defvalue = wxPyEmptyString ;
12523 wxString *arg2 = (wxString *) &arg2_defvalue ;
12524 bool result;
12525 void *argp1 = 0 ;
12526 int res1 = 0 ;
12527 bool temp2 = false ;
12528 PyObject * obj0 = 0 ;
12529 PyObject * obj1 = 0 ;
12530 char * kwnames[] = {
12531 (char *) "self",(char *) "file", NULL
12532 };
12533
12534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12536 if (!SWIG_IsOK(res1)) {
12537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12538 }
12539 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12540 if (obj1) {
12541 {
12542 arg2 = wxString_in_helper(obj1);
12543 if (arg2 == NULL) SWIG_fail;
12544 temp2 = true;
12545 }
12546 }
12547 {
12548 PyThreadState* __tstate = wxPyBeginAllowThreads();
12549 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 {
12554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12555 }
12556 {
12557 if (temp2)
12558 delete arg2;
12559 }
12560 return resultobj;
12561 fail:
12562 {
12563 if (temp2)
12564 delete arg2;
12565 }
12566 return NULL;
12567 }
12568
12569
12570 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12571 PyObject *resultobj = 0;
12572 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12573 void *argp1 = 0 ;
12574 int res1 = 0 ;
12575 PyObject *swig_obj[1] ;
12576
12577 if (!args) SWIG_fail;
12578 swig_obj[0] = args;
12579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12580 if (!SWIG_IsOK(res1)) {
12581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12582 }
12583 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12584 {
12585 PyThreadState* __tstate = wxPyBeginAllowThreads();
12586 (arg1)->MarkDirty();
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 }
12590 resultobj = SWIG_Py_Void();
12591 return resultobj;
12592 fail:
12593 return NULL;
12594 }
12595
12596
12597 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12598 PyObject *resultobj = 0;
12599 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12600 void *argp1 = 0 ;
12601 int res1 = 0 ;
12602 PyObject *swig_obj[1] ;
12603
12604 if (!args) SWIG_fail;
12605 swig_obj[0] = args;
12606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12607 if (!SWIG_IsOK(res1)) {
12608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12609 }
12610 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12611 {
12612 PyThreadState* __tstate = wxPyBeginAllowThreads();
12613 (arg1)->DiscardEdits();
12614 wxPyEndAllowThreads(__tstate);
12615 if (PyErr_Occurred()) SWIG_fail;
12616 }
12617 resultobj = SWIG_Py_Void();
12618 return resultobj;
12619 fail:
12620 return NULL;
12621 }
12622
12623
12624 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12625 PyObject *resultobj = 0;
12626 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12627 bool arg2 ;
12628 void *argp1 = 0 ;
12629 int res1 = 0 ;
12630 bool val2 ;
12631 int ecode2 = 0 ;
12632 PyObject * obj0 = 0 ;
12633 PyObject * obj1 = 0 ;
12634 char * kwnames[] = {
12635 (char *) "self",(char *) "modified", NULL
12636 };
12637
12638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12640 if (!SWIG_IsOK(res1)) {
12641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12642 }
12643 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12644 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12645 if (!SWIG_IsOK(ecode2)) {
12646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12647 }
12648 arg2 = static_cast< bool >(val2);
12649 {
12650 PyThreadState* __tstate = wxPyBeginAllowThreads();
12651 (arg1)->SetModified(arg2);
12652 wxPyEndAllowThreads(__tstate);
12653 if (PyErr_Occurred()) SWIG_fail;
12654 }
12655 resultobj = SWIG_Py_Void();
12656 return resultobj;
12657 fail:
12658 return NULL;
12659 }
12660
12661
12662 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12663 PyObject *resultobj = 0;
12664 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12665 unsigned long arg2 ;
12666 void *argp1 = 0 ;
12667 int res1 = 0 ;
12668 unsigned long val2 ;
12669 int ecode2 = 0 ;
12670 PyObject * obj0 = 0 ;
12671 PyObject * obj1 = 0 ;
12672 char * kwnames[] = {
12673 (char *) "self",(char *) "len", NULL
12674 };
12675
12676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12678 if (!SWIG_IsOK(res1)) {
12679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12680 }
12681 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12682 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12683 if (!SWIG_IsOK(ecode2)) {
12684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12685 }
12686 arg2 = static_cast< unsigned long >(val2);
12687 {
12688 PyThreadState* __tstate = wxPyBeginAllowThreads();
12689 (arg1)->SetMaxLength(arg2);
12690 wxPyEndAllowThreads(__tstate);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 resultobj = SWIG_Py_Void();
12694 return resultobj;
12695 fail:
12696 return NULL;
12697 }
12698
12699
12700 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12701 PyObject *resultobj = 0;
12702 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12703 wxString *arg2 = 0 ;
12704 void *argp1 = 0 ;
12705 int res1 = 0 ;
12706 bool temp2 = false ;
12707 PyObject * obj0 = 0 ;
12708 PyObject * obj1 = 0 ;
12709 char * kwnames[] = {
12710 (char *) "self",(char *) "text", NULL
12711 };
12712
12713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12715 if (!SWIG_IsOK(res1)) {
12716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12717 }
12718 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12719 {
12720 arg2 = wxString_in_helper(obj1);
12721 if (arg2 == NULL) SWIG_fail;
12722 temp2 = true;
12723 }
12724 {
12725 PyThreadState* __tstate = wxPyBeginAllowThreads();
12726 (arg1)->WriteText((wxString const &)*arg2);
12727 wxPyEndAllowThreads(__tstate);
12728 if (PyErr_Occurred()) SWIG_fail;
12729 }
12730 resultobj = SWIG_Py_Void();
12731 {
12732 if (temp2)
12733 delete arg2;
12734 }
12735 return resultobj;
12736 fail:
12737 {
12738 if (temp2)
12739 delete arg2;
12740 }
12741 return NULL;
12742 }
12743
12744
12745 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12746 PyObject *resultobj = 0;
12747 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12748 wxString *arg2 = 0 ;
12749 void *argp1 = 0 ;
12750 int res1 = 0 ;
12751 bool temp2 = false ;
12752 PyObject * obj0 = 0 ;
12753 PyObject * obj1 = 0 ;
12754 char * kwnames[] = {
12755 (char *) "self",(char *) "text", NULL
12756 };
12757
12758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12760 if (!SWIG_IsOK(res1)) {
12761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12762 }
12763 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12764 {
12765 arg2 = wxString_in_helper(obj1);
12766 if (arg2 == NULL) SWIG_fail;
12767 temp2 = true;
12768 }
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 (arg1)->AppendText((wxString const &)*arg2);
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 resultobj = SWIG_Py_Void();
12776 {
12777 if (temp2)
12778 delete arg2;
12779 }
12780 return resultobj;
12781 fail:
12782 {
12783 if (temp2)
12784 delete arg2;
12785 }
12786 return NULL;
12787 }
12788
12789
12790 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12791 PyObject *resultobj = 0;
12792 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12793 wxKeyEvent *arg2 = 0 ;
12794 bool result;
12795 void *argp1 = 0 ;
12796 int res1 = 0 ;
12797 void *argp2 = 0 ;
12798 int res2 = 0 ;
12799 PyObject * obj0 = 0 ;
12800 PyObject * obj1 = 0 ;
12801 char * kwnames[] = {
12802 (char *) "self",(char *) "event", NULL
12803 };
12804
12805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12807 if (!SWIG_IsOK(res1)) {
12808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12809 }
12810 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12811 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12812 if (!SWIG_IsOK(res2)) {
12813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12814 }
12815 if (!argp2) {
12816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12817 }
12818 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12819 {
12820 PyThreadState* __tstate = wxPyBeginAllowThreads();
12821 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12822 wxPyEndAllowThreads(__tstate);
12823 if (PyErr_Occurred()) SWIG_fail;
12824 }
12825 {
12826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12827 }
12828 return resultobj;
12829 fail:
12830 return NULL;
12831 }
12832
12833
12834 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12835 PyObject *resultobj = 0;
12836 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12837 long arg2 ;
12838 long arg3 ;
12839 wxTextAttr *arg4 = 0 ;
12840 bool result;
12841 void *argp1 = 0 ;
12842 int res1 = 0 ;
12843 long val2 ;
12844 int ecode2 = 0 ;
12845 long val3 ;
12846 int ecode3 = 0 ;
12847 void *argp4 = 0 ;
12848 int res4 = 0 ;
12849 PyObject * obj0 = 0 ;
12850 PyObject * obj1 = 0 ;
12851 PyObject * obj2 = 0 ;
12852 PyObject * obj3 = 0 ;
12853 char * kwnames[] = {
12854 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12855 };
12856
12857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12859 if (!SWIG_IsOK(res1)) {
12860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12861 }
12862 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12863 ecode2 = SWIG_AsVal_long(obj1, &val2);
12864 if (!SWIG_IsOK(ecode2)) {
12865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12866 }
12867 arg2 = static_cast< long >(val2);
12868 ecode3 = SWIG_AsVal_long(obj2, &val3);
12869 if (!SWIG_IsOK(ecode3)) {
12870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12871 }
12872 arg3 = static_cast< long >(val3);
12873 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12874 if (!SWIG_IsOK(res4)) {
12875 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12876 }
12877 if (!argp4) {
12878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12879 }
12880 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12881 {
12882 PyThreadState* __tstate = wxPyBeginAllowThreads();
12883 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12884 wxPyEndAllowThreads(__tstate);
12885 if (PyErr_Occurred()) SWIG_fail;
12886 }
12887 {
12888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12889 }
12890 return resultobj;
12891 fail:
12892 return NULL;
12893 }
12894
12895
12896 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12897 PyObject *resultobj = 0;
12898 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12899 long arg2 ;
12900 wxTextAttr *arg3 = 0 ;
12901 bool result;
12902 void *argp1 = 0 ;
12903 int res1 = 0 ;
12904 long val2 ;
12905 int ecode2 = 0 ;
12906 void *argp3 = 0 ;
12907 int res3 = 0 ;
12908 PyObject * obj0 = 0 ;
12909 PyObject * obj1 = 0 ;
12910 PyObject * obj2 = 0 ;
12911 char * kwnames[] = {
12912 (char *) "self",(char *) "position",(char *) "style", NULL
12913 };
12914
12915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12917 if (!SWIG_IsOK(res1)) {
12918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12919 }
12920 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12921 ecode2 = SWIG_AsVal_long(obj1, &val2);
12922 if (!SWIG_IsOK(ecode2)) {
12923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12924 }
12925 arg2 = static_cast< long >(val2);
12926 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12927 if (!SWIG_IsOK(res3)) {
12928 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12929 }
12930 if (!argp3) {
12931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12932 }
12933 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12934 {
12935 PyThreadState* __tstate = wxPyBeginAllowThreads();
12936 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12937 wxPyEndAllowThreads(__tstate);
12938 if (PyErr_Occurred()) SWIG_fail;
12939 }
12940 {
12941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12942 }
12943 return resultobj;
12944 fail:
12945 return NULL;
12946 }
12947
12948
12949 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12950 PyObject *resultobj = 0;
12951 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12952 wxTextAttr *arg2 = 0 ;
12953 bool result;
12954 void *argp1 = 0 ;
12955 int res1 = 0 ;
12956 void *argp2 = 0 ;
12957 int res2 = 0 ;
12958 PyObject * obj0 = 0 ;
12959 PyObject * obj1 = 0 ;
12960 char * kwnames[] = {
12961 (char *) "self",(char *) "style", NULL
12962 };
12963
12964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12966 if (!SWIG_IsOK(res1)) {
12967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12968 }
12969 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12970 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12971 if (!SWIG_IsOK(res2)) {
12972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12973 }
12974 if (!argp2) {
12975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12976 }
12977 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12978 {
12979 PyThreadState* __tstate = wxPyBeginAllowThreads();
12980 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12981 wxPyEndAllowThreads(__tstate);
12982 if (PyErr_Occurred()) SWIG_fail;
12983 }
12984 {
12985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12986 }
12987 return resultobj;
12988 fail:
12989 return NULL;
12990 }
12991
12992
12993 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12994 PyObject *resultobj = 0;
12995 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12996 wxTextAttr *result = 0 ;
12997 void *argp1 = 0 ;
12998 int res1 = 0 ;
12999 PyObject *swig_obj[1] ;
13000
13001 if (!args) SWIG_fail;
13002 swig_obj[0] = args;
13003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13004 if (!SWIG_IsOK(res1)) {
13005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13006 }
13007 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13008 {
13009 PyThreadState* __tstate = wxPyBeginAllowThreads();
13010 {
13011 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13012 result = (wxTextAttr *) &_result_ref;
13013 }
13014 wxPyEndAllowThreads(__tstate);
13015 if (PyErr_Occurred()) SWIG_fail;
13016 }
13017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13018 return resultobj;
13019 fail:
13020 return NULL;
13021 }
13022
13023
13024 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13025 PyObject *resultobj = 0;
13026 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13027 long arg2 ;
13028 long arg3 ;
13029 long result;
13030 void *argp1 = 0 ;
13031 int res1 = 0 ;
13032 long val2 ;
13033 int ecode2 = 0 ;
13034 long val3 ;
13035 int ecode3 = 0 ;
13036 PyObject * obj0 = 0 ;
13037 PyObject * obj1 = 0 ;
13038 PyObject * obj2 = 0 ;
13039 char * kwnames[] = {
13040 (char *) "self",(char *) "x",(char *) "y", NULL
13041 };
13042
13043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13045 if (!SWIG_IsOK(res1)) {
13046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13047 }
13048 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13049 ecode2 = SWIG_AsVal_long(obj1, &val2);
13050 if (!SWIG_IsOK(ecode2)) {
13051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13052 }
13053 arg2 = static_cast< long >(val2);
13054 ecode3 = SWIG_AsVal_long(obj2, &val3);
13055 if (!SWIG_IsOK(ecode3)) {
13056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13057 }
13058 arg3 = static_cast< long >(val3);
13059 {
13060 PyThreadState* __tstate = wxPyBeginAllowThreads();
13061 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13062 wxPyEndAllowThreads(__tstate);
13063 if (PyErr_Occurred()) SWIG_fail;
13064 }
13065 resultobj = SWIG_From_long(static_cast< long >(result));
13066 return resultobj;
13067 fail:
13068 return NULL;
13069 }
13070
13071
13072 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13073 PyObject *resultobj = 0;
13074 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13075 long arg2 ;
13076 long *arg3 = (long *) 0 ;
13077 long *arg4 = (long *) 0 ;
13078 void *argp1 = 0 ;
13079 int res1 = 0 ;
13080 long val2 ;
13081 int ecode2 = 0 ;
13082 long temp3 ;
13083 int res3 = SWIG_TMPOBJ ;
13084 long temp4 ;
13085 int res4 = SWIG_TMPOBJ ;
13086 PyObject * obj0 = 0 ;
13087 PyObject * obj1 = 0 ;
13088 char * kwnames[] = {
13089 (char *) "self",(char *) "pos", NULL
13090 };
13091
13092 arg3 = &temp3;
13093 arg4 = &temp4;
13094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13096 if (!SWIG_IsOK(res1)) {
13097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13098 }
13099 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13100 ecode2 = SWIG_AsVal_long(obj1, &val2);
13101 if (!SWIG_IsOK(ecode2)) {
13102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13103 }
13104 arg2 = static_cast< long >(val2);
13105 {
13106 PyThreadState* __tstate = wxPyBeginAllowThreads();
13107 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13108 wxPyEndAllowThreads(__tstate);
13109 if (PyErr_Occurred()) SWIG_fail;
13110 }
13111 resultobj = SWIG_Py_Void();
13112 if (SWIG_IsTmpObj(res3)) {
13113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13114 } else {
13115 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13117 }
13118 if (SWIG_IsTmpObj(res4)) {
13119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13120 } else {
13121 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13123 }
13124 return resultobj;
13125 fail:
13126 return NULL;
13127 }
13128
13129
13130 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13131 PyObject *resultobj = 0;
13132 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13133 long arg2 ;
13134 void *argp1 = 0 ;
13135 int res1 = 0 ;
13136 long val2 ;
13137 int ecode2 = 0 ;
13138 PyObject * obj0 = 0 ;
13139 PyObject * obj1 = 0 ;
13140 char * kwnames[] = {
13141 (char *) "self",(char *) "pos", NULL
13142 };
13143
13144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13146 if (!SWIG_IsOK(res1)) {
13147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13148 }
13149 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13150 ecode2 = SWIG_AsVal_long(obj1, &val2);
13151 if (!SWIG_IsOK(ecode2)) {
13152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13153 }
13154 arg2 = static_cast< long >(val2);
13155 {
13156 PyThreadState* __tstate = wxPyBeginAllowThreads();
13157 (arg1)->ShowPosition(arg2);
13158 wxPyEndAllowThreads(__tstate);
13159 if (PyErr_Occurred()) SWIG_fail;
13160 }
13161 resultobj = SWIG_Py_Void();
13162 return resultobj;
13163 fail:
13164 return NULL;
13165 }
13166
13167
13168 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13169 PyObject *resultobj = 0;
13170 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13171 wxPoint *arg2 = 0 ;
13172 long *arg3 = (long *) 0 ;
13173 long *arg4 = (long *) 0 ;
13174 wxTextCtrlHitTestResult result;
13175 void *argp1 = 0 ;
13176 int res1 = 0 ;
13177 wxPoint temp2 ;
13178 long temp3 ;
13179 int res3 = SWIG_TMPOBJ ;
13180 long temp4 ;
13181 int res4 = SWIG_TMPOBJ ;
13182 PyObject * obj0 = 0 ;
13183 PyObject * obj1 = 0 ;
13184 char * kwnames[] = {
13185 (char *) "self",(char *) "pt", NULL
13186 };
13187
13188 arg3 = &temp3;
13189 arg4 = &temp4;
13190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13192 if (!SWIG_IsOK(res1)) {
13193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13194 }
13195 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13196 {
13197 arg2 = &temp2;
13198 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13199 }
13200 {
13201 PyThreadState* __tstate = wxPyBeginAllowThreads();
13202 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13203 wxPyEndAllowThreads(__tstate);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 resultobj = SWIG_From_int(static_cast< int >(result));
13207 if (SWIG_IsTmpObj(res3)) {
13208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13209 } else {
13210 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13212 }
13213 if (SWIG_IsTmpObj(res4)) {
13214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13215 } else {
13216 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13218 }
13219 return resultobj;
13220 fail:
13221 return NULL;
13222 }
13223
13224
13225 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13226 PyObject *resultobj = 0;
13227 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13228 wxPoint *arg2 = 0 ;
13229 long *arg3 = (long *) 0 ;
13230 wxTextCtrlHitTestResult result;
13231 void *argp1 = 0 ;
13232 int res1 = 0 ;
13233 wxPoint temp2 ;
13234 long temp3 ;
13235 int res3 = SWIG_TMPOBJ ;
13236 PyObject * obj0 = 0 ;
13237 PyObject * obj1 = 0 ;
13238 char * kwnames[] = {
13239 (char *) "self",(char *) "pt", NULL
13240 };
13241
13242 arg3 = &temp3;
13243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13245 if (!SWIG_IsOK(res1)) {
13246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13247 }
13248 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13249 {
13250 arg2 = &temp2;
13251 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13252 }
13253 {
13254 PyThreadState* __tstate = wxPyBeginAllowThreads();
13255 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13256 wxPyEndAllowThreads(__tstate);
13257 if (PyErr_Occurred()) SWIG_fail;
13258 }
13259 resultobj = SWIG_From_int(static_cast< int >(result));
13260 if (SWIG_IsTmpObj(res3)) {
13261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13262 } else {
13263 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13264 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13265 }
13266 return resultobj;
13267 fail:
13268 return NULL;
13269 }
13270
13271
13272 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13273 PyObject *resultobj = 0;
13274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13275 void *argp1 = 0 ;
13276 int res1 = 0 ;
13277 PyObject *swig_obj[1] ;
13278
13279 if (!args) SWIG_fail;
13280 swig_obj[0] = args;
13281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13282 if (!SWIG_IsOK(res1)) {
13283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13284 }
13285 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 (arg1)->Copy();
13289 wxPyEndAllowThreads(__tstate);
13290 if (PyErr_Occurred()) SWIG_fail;
13291 }
13292 resultobj = SWIG_Py_Void();
13293 return resultobj;
13294 fail:
13295 return NULL;
13296 }
13297
13298
13299 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13300 PyObject *resultobj = 0;
13301 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13302 void *argp1 = 0 ;
13303 int res1 = 0 ;
13304 PyObject *swig_obj[1] ;
13305
13306 if (!args) SWIG_fail;
13307 swig_obj[0] = args;
13308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13309 if (!SWIG_IsOK(res1)) {
13310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13311 }
13312 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 (arg1)->Cut();
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 resultobj = SWIG_Py_Void();
13320 return resultobj;
13321 fail:
13322 return NULL;
13323 }
13324
13325
13326 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13327 PyObject *resultobj = 0;
13328 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13329 void *argp1 = 0 ;
13330 int res1 = 0 ;
13331 PyObject *swig_obj[1] ;
13332
13333 if (!args) SWIG_fail;
13334 swig_obj[0] = args;
13335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13336 if (!SWIG_IsOK(res1)) {
13337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13338 }
13339 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13340 {
13341 PyThreadState* __tstate = wxPyBeginAllowThreads();
13342 (arg1)->Paste();
13343 wxPyEndAllowThreads(__tstate);
13344 if (PyErr_Occurred()) SWIG_fail;
13345 }
13346 resultobj = SWIG_Py_Void();
13347 return resultobj;
13348 fail:
13349 return NULL;
13350 }
13351
13352
13353 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13354 PyObject *resultobj = 0;
13355 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13356 bool result;
13357 void *argp1 = 0 ;
13358 int res1 = 0 ;
13359 PyObject *swig_obj[1] ;
13360
13361 if (!args) SWIG_fail;
13362 swig_obj[0] = args;
13363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13364 if (!SWIG_IsOK(res1)) {
13365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13366 }
13367 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13368 {
13369 PyThreadState* __tstate = wxPyBeginAllowThreads();
13370 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13371 wxPyEndAllowThreads(__tstate);
13372 if (PyErr_Occurred()) SWIG_fail;
13373 }
13374 {
13375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13376 }
13377 return resultobj;
13378 fail:
13379 return NULL;
13380 }
13381
13382
13383 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13384 PyObject *resultobj = 0;
13385 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13386 bool result;
13387 void *argp1 = 0 ;
13388 int res1 = 0 ;
13389 PyObject *swig_obj[1] ;
13390
13391 if (!args) SWIG_fail;
13392 swig_obj[0] = args;
13393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13394 if (!SWIG_IsOK(res1)) {
13395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13396 }
13397 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13398 {
13399 PyThreadState* __tstate = wxPyBeginAllowThreads();
13400 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13401 wxPyEndAllowThreads(__tstate);
13402 if (PyErr_Occurred()) SWIG_fail;
13403 }
13404 {
13405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13406 }
13407 return resultobj;
13408 fail:
13409 return NULL;
13410 }
13411
13412
13413 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13414 PyObject *resultobj = 0;
13415 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13416 bool result;
13417 void *argp1 = 0 ;
13418 int res1 = 0 ;
13419 PyObject *swig_obj[1] ;
13420
13421 if (!args) SWIG_fail;
13422 swig_obj[0] = args;
13423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13424 if (!SWIG_IsOK(res1)) {
13425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13426 }
13427 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13428 {
13429 PyThreadState* __tstate = wxPyBeginAllowThreads();
13430 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13431 wxPyEndAllowThreads(__tstate);
13432 if (PyErr_Occurred()) SWIG_fail;
13433 }
13434 {
13435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13436 }
13437 return resultobj;
13438 fail:
13439 return NULL;
13440 }
13441
13442
13443 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13444 PyObject *resultobj = 0;
13445 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13446 void *argp1 = 0 ;
13447 int res1 = 0 ;
13448 PyObject *swig_obj[1] ;
13449
13450 if (!args) SWIG_fail;
13451 swig_obj[0] = args;
13452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13453 if (!SWIG_IsOK(res1)) {
13454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13455 }
13456 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 (arg1)->Undo();
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 resultobj = SWIG_Py_Void();
13464 return resultobj;
13465 fail:
13466 return NULL;
13467 }
13468
13469
13470 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13471 PyObject *resultobj = 0;
13472 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13473 void *argp1 = 0 ;
13474 int res1 = 0 ;
13475 PyObject *swig_obj[1] ;
13476
13477 if (!args) SWIG_fail;
13478 swig_obj[0] = args;
13479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13480 if (!SWIG_IsOK(res1)) {
13481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13482 }
13483 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13484 {
13485 PyThreadState* __tstate = wxPyBeginAllowThreads();
13486 (arg1)->Redo();
13487 wxPyEndAllowThreads(__tstate);
13488 if (PyErr_Occurred()) SWIG_fail;
13489 }
13490 resultobj = SWIG_Py_Void();
13491 return resultobj;
13492 fail:
13493 return NULL;
13494 }
13495
13496
13497 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13498 PyObject *resultobj = 0;
13499 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13500 bool result;
13501 void *argp1 = 0 ;
13502 int res1 = 0 ;
13503 PyObject *swig_obj[1] ;
13504
13505 if (!args) SWIG_fail;
13506 swig_obj[0] = args;
13507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13508 if (!SWIG_IsOK(res1)) {
13509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13510 }
13511 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13512 {
13513 PyThreadState* __tstate = wxPyBeginAllowThreads();
13514 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13515 wxPyEndAllowThreads(__tstate);
13516 if (PyErr_Occurred()) SWIG_fail;
13517 }
13518 {
13519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13520 }
13521 return resultobj;
13522 fail:
13523 return NULL;
13524 }
13525
13526
13527 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13528 PyObject *resultobj = 0;
13529 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13530 bool result;
13531 void *argp1 = 0 ;
13532 int res1 = 0 ;
13533 PyObject *swig_obj[1] ;
13534
13535 if (!args) SWIG_fail;
13536 swig_obj[0] = args;
13537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13538 if (!SWIG_IsOK(res1)) {
13539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13540 }
13541 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13542 {
13543 PyThreadState* __tstate = wxPyBeginAllowThreads();
13544 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13545 wxPyEndAllowThreads(__tstate);
13546 if (PyErr_Occurred()) SWIG_fail;
13547 }
13548 {
13549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13550 }
13551 return resultobj;
13552 fail:
13553 return NULL;
13554 }
13555
13556
13557 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13558 PyObject *resultobj = 0;
13559 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13560 long arg2 ;
13561 void *argp1 = 0 ;
13562 int res1 = 0 ;
13563 long val2 ;
13564 int ecode2 = 0 ;
13565 PyObject * obj0 = 0 ;
13566 PyObject * obj1 = 0 ;
13567 char * kwnames[] = {
13568 (char *) "self",(char *) "pos", NULL
13569 };
13570
13571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13573 if (!SWIG_IsOK(res1)) {
13574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13575 }
13576 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13577 ecode2 = SWIG_AsVal_long(obj1, &val2);
13578 if (!SWIG_IsOK(ecode2)) {
13579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13580 }
13581 arg2 = static_cast< long >(val2);
13582 {
13583 PyThreadState* __tstate = wxPyBeginAllowThreads();
13584 (arg1)->SetInsertionPoint(arg2);
13585 wxPyEndAllowThreads(__tstate);
13586 if (PyErr_Occurred()) SWIG_fail;
13587 }
13588 resultobj = SWIG_Py_Void();
13589 return resultobj;
13590 fail:
13591 return NULL;
13592 }
13593
13594
13595 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13596 PyObject *resultobj = 0;
13597 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13598 void *argp1 = 0 ;
13599 int res1 = 0 ;
13600 PyObject *swig_obj[1] ;
13601
13602 if (!args) SWIG_fail;
13603 swig_obj[0] = args;
13604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13605 if (!SWIG_IsOK(res1)) {
13606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13607 }
13608 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13609 {
13610 PyThreadState* __tstate = wxPyBeginAllowThreads();
13611 (arg1)->SetInsertionPointEnd();
13612 wxPyEndAllowThreads(__tstate);
13613 if (PyErr_Occurred()) SWIG_fail;
13614 }
13615 resultobj = SWIG_Py_Void();
13616 return resultobj;
13617 fail:
13618 return NULL;
13619 }
13620
13621
13622 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13623 PyObject *resultobj = 0;
13624 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13625 long result;
13626 void *argp1 = 0 ;
13627 int res1 = 0 ;
13628 PyObject *swig_obj[1] ;
13629
13630 if (!args) SWIG_fail;
13631 swig_obj[0] = args;
13632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13633 if (!SWIG_IsOK(res1)) {
13634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13635 }
13636 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13637 {
13638 PyThreadState* __tstate = wxPyBeginAllowThreads();
13639 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
13643 resultobj = SWIG_From_long(static_cast< long >(result));
13644 return resultobj;
13645 fail:
13646 return NULL;
13647 }
13648
13649
13650 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13651 PyObject *resultobj = 0;
13652 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13653 long result;
13654 void *argp1 = 0 ;
13655 int res1 = 0 ;
13656 PyObject *swig_obj[1] ;
13657
13658 if (!args) SWIG_fail;
13659 swig_obj[0] = args;
13660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13661 if (!SWIG_IsOK(res1)) {
13662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13663 }
13664 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13665 {
13666 PyThreadState* __tstate = wxPyBeginAllowThreads();
13667 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 resultobj = SWIG_From_long(static_cast< long >(result));
13672 return resultobj;
13673 fail:
13674 return NULL;
13675 }
13676
13677
13678 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13679 PyObject *resultobj = 0;
13680 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13681 long arg2 ;
13682 long arg3 ;
13683 void *argp1 = 0 ;
13684 int res1 = 0 ;
13685 long val2 ;
13686 int ecode2 = 0 ;
13687 long val3 ;
13688 int ecode3 = 0 ;
13689 PyObject * obj0 = 0 ;
13690 PyObject * obj1 = 0 ;
13691 PyObject * obj2 = 0 ;
13692 char * kwnames[] = {
13693 (char *) "self",(char *) "from",(char *) "to", NULL
13694 };
13695
13696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13698 if (!SWIG_IsOK(res1)) {
13699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13700 }
13701 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13702 ecode2 = SWIG_AsVal_long(obj1, &val2);
13703 if (!SWIG_IsOK(ecode2)) {
13704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13705 }
13706 arg2 = static_cast< long >(val2);
13707 ecode3 = SWIG_AsVal_long(obj2, &val3);
13708 if (!SWIG_IsOK(ecode3)) {
13709 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13710 }
13711 arg3 = static_cast< long >(val3);
13712 {
13713 PyThreadState* __tstate = wxPyBeginAllowThreads();
13714 (arg1)->SetSelection(arg2,arg3);
13715 wxPyEndAllowThreads(__tstate);
13716 if (PyErr_Occurred()) SWIG_fail;
13717 }
13718 resultobj = SWIG_Py_Void();
13719 return resultobj;
13720 fail:
13721 return NULL;
13722 }
13723
13724
13725 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13726 PyObject *resultobj = 0;
13727 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13728 void *argp1 = 0 ;
13729 int res1 = 0 ;
13730 PyObject *swig_obj[1] ;
13731
13732 if (!args) SWIG_fail;
13733 swig_obj[0] = args;
13734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13735 if (!SWIG_IsOK(res1)) {
13736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13737 }
13738 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13739 {
13740 PyThreadState* __tstate = wxPyBeginAllowThreads();
13741 (arg1)->SelectAll();
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 resultobj = SWIG_Py_Void();
13746 return resultobj;
13747 fail:
13748 return NULL;
13749 }
13750
13751
13752 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13753 PyObject *resultobj = 0;
13754 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13755 bool arg2 ;
13756 void *argp1 = 0 ;
13757 int res1 = 0 ;
13758 bool val2 ;
13759 int ecode2 = 0 ;
13760 PyObject * obj0 = 0 ;
13761 PyObject * obj1 = 0 ;
13762 char * kwnames[] = {
13763 (char *) "self",(char *) "editable", NULL
13764 };
13765
13766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13768 if (!SWIG_IsOK(res1)) {
13769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13770 }
13771 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13772 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13773 if (!SWIG_IsOK(ecode2)) {
13774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13775 }
13776 arg2 = static_cast< bool >(val2);
13777 {
13778 PyThreadState* __tstate = wxPyBeginAllowThreads();
13779 (arg1)->SetEditable(arg2);
13780 wxPyEndAllowThreads(__tstate);
13781 if (PyErr_Occurred()) SWIG_fail;
13782 }
13783 resultobj = SWIG_Py_Void();
13784 return resultobj;
13785 fail:
13786 return NULL;
13787 }
13788
13789
13790 SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13791 PyObject *resultobj = 0;
13792 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13793 bool arg2 = (bool) true ;
13794 bool result;
13795 void *argp1 = 0 ;
13796 int res1 = 0 ;
13797 bool val2 ;
13798 int ecode2 = 0 ;
13799 PyObject * obj0 = 0 ;
13800 PyObject * obj1 = 0 ;
13801 char * kwnames[] = {
13802 (char *) "self",(char *) "show", NULL
13803 };
13804
13805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",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_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13809 }
13810 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13811 if (obj1) {
13812 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13813 if (!SWIG_IsOK(ecode2)) {
13814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13815 }
13816 arg2 = static_cast< bool >(val2);
13817 }
13818 {
13819 PyThreadState* __tstate = wxPyBeginAllowThreads();
13820 result = (bool)(arg1)->ShowNativeCaret(arg2);
13821 wxPyEndAllowThreads(__tstate);
13822 if (PyErr_Occurred()) SWIG_fail;
13823 }
13824 {
13825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13826 }
13827 return resultobj;
13828 fail:
13829 return NULL;
13830 }
13831
13832
13833 SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13834 PyObject *resultobj = 0;
13835 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13836 bool result;
13837 void *argp1 = 0 ;
13838 int res1 = 0 ;
13839 PyObject *swig_obj[1] ;
13840
13841 if (!args) SWIG_fail;
13842 swig_obj[0] = args;
13843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13844 if (!SWIG_IsOK(res1)) {
13845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13846 }
13847 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13848 {
13849 PyThreadState* __tstate = wxPyBeginAllowThreads();
13850 result = (bool)(arg1)->HideNativeCaret();
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 {
13855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13856 }
13857 return resultobj;
13858 fail:
13859 return NULL;
13860 }
13861
13862
13863 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13864 PyObject *resultobj = 0;
13865 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13866 wxString *arg2 = 0 ;
13867 void *argp1 = 0 ;
13868 int res1 = 0 ;
13869 bool temp2 = false ;
13870 PyObject * obj0 = 0 ;
13871 PyObject * obj1 = 0 ;
13872 char * kwnames[] = {
13873 (char *) "self",(char *) "text", NULL
13874 };
13875
13876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13878 if (!SWIG_IsOK(res1)) {
13879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13880 }
13881 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13882 {
13883 arg2 = wxString_in_helper(obj1);
13884 if (arg2 == NULL) SWIG_fail;
13885 temp2 = true;
13886 }
13887 {
13888 PyThreadState* __tstate = wxPyBeginAllowThreads();
13889 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13890 wxPyEndAllowThreads(__tstate);
13891 if (PyErr_Occurred()) SWIG_fail;
13892 }
13893 resultobj = SWIG_Py_Void();
13894 {
13895 if (temp2)
13896 delete arg2;
13897 }
13898 return resultobj;
13899 fail:
13900 {
13901 if (temp2)
13902 delete arg2;
13903 }
13904 return NULL;
13905 }
13906
13907
13908 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13909 PyObject *resultobj = 0;
13910 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13911 long arg2 ;
13912 long arg3 ;
13913 wxString result;
13914 void *argp1 = 0 ;
13915 int res1 = 0 ;
13916 long val2 ;
13917 int ecode2 = 0 ;
13918 long val3 ;
13919 int ecode3 = 0 ;
13920 PyObject * obj0 = 0 ;
13921 PyObject * obj1 = 0 ;
13922 PyObject * obj2 = 0 ;
13923 char * kwnames[] = {
13924 (char *) "self",(char *) "from",(char *) "to", NULL
13925 };
13926
13927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13929 if (!SWIG_IsOK(res1)) {
13930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13931 }
13932 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13933 ecode2 = SWIG_AsVal_long(obj1, &val2);
13934 if (!SWIG_IsOK(ecode2)) {
13935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13936 }
13937 arg2 = static_cast< long >(val2);
13938 ecode3 = SWIG_AsVal_long(obj2, &val3);
13939 if (!SWIG_IsOK(ecode3)) {
13940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13941 }
13942 arg3 = static_cast< long >(val3);
13943 {
13944 PyThreadState* __tstate = wxPyBeginAllowThreads();
13945 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13946 wxPyEndAllowThreads(__tstate);
13947 if (PyErr_Occurred()) SWIG_fail;
13948 }
13949 {
13950 #if wxUSE_UNICODE
13951 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13952 #else
13953 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13954 #endif
13955 }
13956 return resultobj;
13957 fail:
13958 return NULL;
13959 }
13960
13961
13962 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13963 PyObject *resultobj = 0;
13964 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13965 SwigValueWrapper<wxVisualAttributes > result;
13966 int val1 ;
13967 int ecode1 = 0 ;
13968 PyObject * obj0 = 0 ;
13969 char * kwnames[] = {
13970 (char *) "variant", NULL
13971 };
13972
13973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13974 if (obj0) {
13975 ecode1 = SWIG_AsVal_int(obj0, &val1);
13976 if (!SWIG_IsOK(ecode1)) {
13977 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13978 }
13979 arg1 = static_cast< wxWindowVariant >(val1);
13980 }
13981 {
13982 if (!wxPyCheckForApp()) SWIG_fail;
13983 PyThreadState* __tstate = wxPyBeginAllowThreads();
13984 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13985 wxPyEndAllowThreads(__tstate);
13986 if (PyErr_Occurred()) SWIG_fail;
13987 }
13988 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13989 return resultobj;
13990 fail:
13991 return NULL;
13992 }
13993
13994
13995 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13996 PyObject *obj;
13997 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13998 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13999 return SWIG_Py_Void();
14000 }
14001
14002 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14003 return SWIG_Python_InitShadowInstance(args);
14004 }
14005
14006 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14007 PyObject *resultobj = 0;
14008 int arg1 ;
14009 wxMouseEvent *arg2 = 0 ;
14010 long arg3 ;
14011 long arg4 ;
14012 wxTextUrlEvent *result = 0 ;
14013 int val1 ;
14014 int ecode1 = 0 ;
14015 void *argp2 = 0 ;
14016 int res2 = 0 ;
14017 long val3 ;
14018 int ecode3 = 0 ;
14019 long val4 ;
14020 int ecode4 = 0 ;
14021 PyObject * obj0 = 0 ;
14022 PyObject * obj1 = 0 ;
14023 PyObject * obj2 = 0 ;
14024 PyObject * obj3 = 0 ;
14025 char * kwnames[] = {
14026 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14027 };
14028
14029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14030 ecode1 = SWIG_AsVal_int(obj0, &val1);
14031 if (!SWIG_IsOK(ecode1)) {
14032 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14033 }
14034 arg1 = static_cast< int >(val1);
14035 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14036 if (!SWIG_IsOK(res2)) {
14037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14038 }
14039 if (!argp2) {
14040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14041 }
14042 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14043 ecode3 = SWIG_AsVal_long(obj2, &val3);
14044 if (!SWIG_IsOK(ecode3)) {
14045 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14046 }
14047 arg3 = static_cast< long >(val3);
14048 ecode4 = SWIG_AsVal_long(obj3, &val4);
14049 if (!SWIG_IsOK(ecode4)) {
14050 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14051 }
14052 arg4 = static_cast< long >(val4);
14053 {
14054 PyThreadState* __tstate = wxPyBeginAllowThreads();
14055 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14056 wxPyEndAllowThreads(__tstate);
14057 if (PyErr_Occurred()) SWIG_fail;
14058 }
14059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14060 return resultobj;
14061 fail:
14062 return NULL;
14063 }
14064
14065
14066 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14067 PyObject *resultobj = 0;
14068 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14069 wxMouseEvent *result = 0 ;
14070 void *argp1 = 0 ;
14071 int res1 = 0 ;
14072 PyObject *swig_obj[1] ;
14073
14074 if (!args) SWIG_fail;
14075 swig_obj[0] = args;
14076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14077 if (!SWIG_IsOK(res1)) {
14078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14079 }
14080 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14081 {
14082 PyThreadState* __tstate = wxPyBeginAllowThreads();
14083 {
14084 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14085 result = (wxMouseEvent *) &_result_ref;
14086 }
14087 wxPyEndAllowThreads(__tstate);
14088 if (PyErr_Occurred()) SWIG_fail;
14089 }
14090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14091 return resultobj;
14092 fail:
14093 return NULL;
14094 }
14095
14096
14097 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14098 PyObject *resultobj = 0;
14099 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14100 long result;
14101 void *argp1 = 0 ;
14102 int res1 = 0 ;
14103 PyObject *swig_obj[1] ;
14104
14105 if (!args) SWIG_fail;
14106 swig_obj[0] = args;
14107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14108 if (!SWIG_IsOK(res1)) {
14109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14110 }
14111 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14112 {
14113 PyThreadState* __tstate = wxPyBeginAllowThreads();
14114 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14115 wxPyEndAllowThreads(__tstate);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 }
14118 resultobj = SWIG_From_long(static_cast< long >(result));
14119 return resultobj;
14120 fail:
14121 return NULL;
14122 }
14123
14124
14125 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14126 PyObject *resultobj = 0;
14127 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14128 long result;
14129 void *argp1 = 0 ;
14130 int res1 = 0 ;
14131 PyObject *swig_obj[1] ;
14132
14133 if (!args) SWIG_fail;
14134 swig_obj[0] = args;
14135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14136 if (!SWIG_IsOK(res1)) {
14137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14138 }
14139 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14140 {
14141 PyThreadState* __tstate = wxPyBeginAllowThreads();
14142 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14143 wxPyEndAllowThreads(__tstate);
14144 if (PyErr_Occurred()) SWIG_fail;
14145 }
14146 resultobj = SWIG_From_long(static_cast< long >(result));
14147 return resultobj;
14148 fail:
14149 return NULL;
14150 }
14151
14152
14153 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14154 PyObject *obj;
14155 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14156 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14157 return SWIG_Py_Void();
14158 }
14159
14160 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14161 return SWIG_Python_InitShadowInstance(args);
14162 }
14163
14164 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14165 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14166 return 1;
14167 }
14168
14169
14170 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14171 PyObject *pyobj = 0;
14172
14173 {
14174 #if wxUSE_UNICODE
14175 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14176 #else
14177 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14178 #endif
14179 }
14180 return pyobj;
14181 }
14182
14183
14184 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14185 PyObject *resultobj = 0;
14186 wxWindow *arg1 = (wxWindow *) 0 ;
14187 int arg2 = (int) -1 ;
14188 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14189 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14190 wxSize const &arg4_defvalue = wxDefaultSize ;
14191 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14192 long arg5 = (long) wxSB_HORIZONTAL ;
14193 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14194 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14195 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14196 wxString *arg7 = (wxString *) &arg7_defvalue ;
14197 wxScrollBar *result = 0 ;
14198 void *argp1 = 0 ;
14199 int res1 = 0 ;
14200 int val2 ;
14201 int ecode2 = 0 ;
14202 wxPoint temp3 ;
14203 wxSize temp4 ;
14204 long val5 ;
14205 int ecode5 = 0 ;
14206 void *argp6 = 0 ;
14207 int res6 = 0 ;
14208 bool temp7 = false ;
14209 PyObject * obj0 = 0 ;
14210 PyObject * obj1 = 0 ;
14211 PyObject * obj2 = 0 ;
14212 PyObject * obj3 = 0 ;
14213 PyObject * obj4 = 0 ;
14214 PyObject * obj5 = 0 ;
14215 PyObject * obj6 = 0 ;
14216 char * kwnames[] = {
14217 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14218 };
14219
14220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14222 if (!SWIG_IsOK(res1)) {
14223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14224 }
14225 arg1 = reinterpret_cast< wxWindow * >(argp1);
14226 if (obj1) {
14227 ecode2 = SWIG_AsVal_int(obj1, &val2);
14228 if (!SWIG_IsOK(ecode2)) {
14229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14230 }
14231 arg2 = static_cast< int >(val2);
14232 }
14233 if (obj2) {
14234 {
14235 arg3 = &temp3;
14236 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14237 }
14238 }
14239 if (obj3) {
14240 {
14241 arg4 = &temp4;
14242 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14243 }
14244 }
14245 if (obj4) {
14246 ecode5 = SWIG_AsVal_long(obj4, &val5);
14247 if (!SWIG_IsOK(ecode5)) {
14248 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14249 }
14250 arg5 = static_cast< long >(val5);
14251 }
14252 if (obj5) {
14253 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14254 if (!SWIG_IsOK(res6)) {
14255 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14256 }
14257 if (!argp6) {
14258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14259 }
14260 arg6 = reinterpret_cast< wxValidator * >(argp6);
14261 }
14262 if (obj6) {
14263 {
14264 arg7 = wxString_in_helper(obj6);
14265 if (arg7 == NULL) SWIG_fail;
14266 temp7 = true;
14267 }
14268 }
14269 {
14270 if (!wxPyCheckForApp()) SWIG_fail;
14271 PyThreadState* __tstate = wxPyBeginAllowThreads();
14272 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14273 wxPyEndAllowThreads(__tstate);
14274 if (PyErr_Occurred()) SWIG_fail;
14275 }
14276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14277 {
14278 if (temp7)
14279 delete arg7;
14280 }
14281 return resultobj;
14282 fail:
14283 {
14284 if (temp7)
14285 delete arg7;
14286 }
14287 return NULL;
14288 }
14289
14290
14291 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14292 PyObject *resultobj = 0;
14293 wxScrollBar *result = 0 ;
14294
14295 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14296 {
14297 if (!wxPyCheckForApp()) SWIG_fail;
14298 PyThreadState* __tstate = wxPyBeginAllowThreads();
14299 result = (wxScrollBar *)new wxScrollBar();
14300 wxPyEndAllowThreads(__tstate);
14301 if (PyErr_Occurred()) SWIG_fail;
14302 }
14303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14304 return resultobj;
14305 fail:
14306 return NULL;
14307 }
14308
14309
14310 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14311 PyObject *resultobj = 0;
14312 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14313 wxWindow *arg2 = (wxWindow *) 0 ;
14314 int arg3 = (int) -1 ;
14315 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14316 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14317 wxSize const &arg5_defvalue = wxDefaultSize ;
14318 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14319 long arg6 = (long) wxSB_HORIZONTAL ;
14320 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14321 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14322 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14323 wxString *arg8 = (wxString *) &arg8_defvalue ;
14324 bool result;
14325 void *argp1 = 0 ;
14326 int res1 = 0 ;
14327 void *argp2 = 0 ;
14328 int res2 = 0 ;
14329 int val3 ;
14330 int ecode3 = 0 ;
14331 wxPoint temp4 ;
14332 wxSize temp5 ;
14333 long val6 ;
14334 int ecode6 = 0 ;
14335 void *argp7 = 0 ;
14336 int res7 = 0 ;
14337 bool temp8 = false ;
14338 PyObject * obj0 = 0 ;
14339 PyObject * obj1 = 0 ;
14340 PyObject * obj2 = 0 ;
14341 PyObject * obj3 = 0 ;
14342 PyObject * obj4 = 0 ;
14343 PyObject * obj5 = 0 ;
14344 PyObject * obj6 = 0 ;
14345 PyObject * obj7 = 0 ;
14346 char * kwnames[] = {
14347 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14348 };
14349
14350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14352 if (!SWIG_IsOK(res1)) {
14353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14354 }
14355 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14356 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14357 if (!SWIG_IsOK(res2)) {
14358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14359 }
14360 arg2 = reinterpret_cast< wxWindow * >(argp2);
14361 if (obj2) {
14362 ecode3 = SWIG_AsVal_int(obj2, &val3);
14363 if (!SWIG_IsOK(ecode3)) {
14364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14365 }
14366 arg3 = static_cast< int >(val3);
14367 }
14368 if (obj3) {
14369 {
14370 arg4 = &temp4;
14371 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14372 }
14373 }
14374 if (obj4) {
14375 {
14376 arg5 = &temp5;
14377 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14378 }
14379 }
14380 if (obj5) {
14381 ecode6 = SWIG_AsVal_long(obj5, &val6);
14382 if (!SWIG_IsOK(ecode6)) {
14383 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14384 }
14385 arg6 = static_cast< long >(val6);
14386 }
14387 if (obj6) {
14388 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14389 if (!SWIG_IsOK(res7)) {
14390 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14391 }
14392 if (!argp7) {
14393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14394 }
14395 arg7 = reinterpret_cast< wxValidator * >(argp7);
14396 }
14397 if (obj7) {
14398 {
14399 arg8 = wxString_in_helper(obj7);
14400 if (arg8 == NULL) SWIG_fail;
14401 temp8 = true;
14402 }
14403 }
14404 {
14405 PyThreadState* __tstate = wxPyBeginAllowThreads();
14406 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14407 wxPyEndAllowThreads(__tstate);
14408 if (PyErr_Occurred()) SWIG_fail;
14409 }
14410 {
14411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14412 }
14413 {
14414 if (temp8)
14415 delete arg8;
14416 }
14417 return resultobj;
14418 fail:
14419 {
14420 if (temp8)
14421 delete arg8;
14422 }
14423 return NULL;
14424 }
14425
14426
14427 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14428 PyObject *resultobj = 0;
14429 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14430 int result;
14431 void *argp1 = 0 ;
14432 int res1 = 0 ;
14433 PyObject *swig_obj[1] ;
14434
14435 if (!args) SWIG_fail;
14436 swig_obj[0] = args;
14437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14438 if (!SWIG_IsOK(res1)) {
14439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14440 }
14441 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14442 {
14443 PyThreadState* __tstate = wxPyBeginAllowThreads();
14444 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14445 wxPyEndAllowThreads(__tstate);
14446 if (PyErr_Occurred()) SWIG_fail;
14447 }
14448 resultobj = SWIG_From_int(static_cast< int >(result));
14449 return resultobj;
14450 fail:
14451 return NULL;
14452 }
14453
14454
14455 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14456 PyObject *resultobj = 0;
14457 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14458 int result;
14459 void *argp1 = 0 ;
14460 int res1 = 0 ;
14461 PyObject *swig_obj[1] ;
14462
14463 if (!args) SWIG_fail;
14464 swig_obj[0] = args;
14465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14466 if (!SWIG_IsOK(res1)) {
14467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14468 }
14469 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14470 {
14471 PyThreadState* __tstate = wxPyBeginAllowThreads();
14472 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14473 wxPyEndAllowThreads(__tstate);
14474 if (PyErr_Occurred()) SWIG_fail;
14475 }
14476 resultobj = SWIG_From_int(static_cast< int >(result));
14477 return resultobj;
14478 fail:
14479 return NULL;
14480 }
14481
14482
14483 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14484 PyObject *resultobj = 0;
14485 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14486 int result;
14487 void *argp1 = 0 ;
14488 int res1 = 0 ;
14489 PyObject *swig_obj[1] ;
14490
14491 if (!args) SWIG_fail;
14492 swig_obj[0] = args;
14493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14494 if (!SWIG_IsOK(res1)) {
14495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14496 }
14497 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14498 {
14499 PyThreadState* __tstate = wxPyBeginAllowThreads();
14500 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14501 wxPyEndAllowThreads(__tstate);
14502 if (PyErr_Occurred()) SWIG_fail;
14503 }
14504 resultobj = SWIG_From_int(static_cast< int >(result));
14505 return resultobj;
14506 fail:
14507 return NULL;
14508 }
14509
14510
14511 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14512 PyObject *resultobj = 0;
14513 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14514 int result;
14515 void *argp1 = 0 ;
14516 int res1 = 0 ;
14517 PyObject *swig_obj[1] ;
14518
14519 if (!args) SWIG_fail;
14520 swig_obj[0] = args;
14521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14522 if (!SWIG_IsOK(res1)) {
14523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14524 }
14525 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14526 {
14527 PyThreadState* __tstate = wxPyBeginAllowThreads();
14528 result = (int)((wxScrollBar const *)arg1)->GetRange();
14529 wxPyEndAllowThreads(__tstate);
14530 if (PyErr_Occurred()) SWIG_fail;
14531 }
14532 resultobj = SWIG_From_int(static_cast< int >(result));
14533 return resultobj;
14534 fail:
14535 return NULL;
14536 }
14537
14538
14539 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14540 PyObject *resultobj = 0;
14541 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14542 bool result;
14543 void *argp1 = 0 ;
14544 int res1 = 0 ;
14545 PyObject *swig_obj[1] ;
14546
14547 if (!args) SWIG_fail;
14548 swig_obj[0] = args;
14549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14550 if (!SWIG_IsOK(res1)) {
14551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14552 }
14553 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14554 {
14555 PyThreadState* __tstate = wxPyBeginAllowThreads();
14556 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14557 wxPyEndAllowThreads(__tstate);
14558 if (PyErr_Occurred()) SWIG_fail;
14559 }
14560 {
14561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14562 }
14563 return resultobj;
14564 fail:
14565 return NULL;
14566 }
14567
14568
14569 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14570 PyObject *resultobj = 0;
14571 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14572 int arg2 ;
14573 void *argp1 = 0 ;
14574 int res1 = 0 ;
14575 int val2 ;
14576 int ecode2 = 0 ;
14577 PyObject * obj0 = 0 ;
14578 PyObject * obj1 = 0 ;
14579 char * kwnames[] = {
14580 (char *) "self",(char *) "viewStart", NULL
14581 };
14582
14583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14585 if (!SWIG_IsOK(res1)) {
14586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14587 }
14588 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14589 ecode2 = SWIG_AsVal_int(obj1, &val2);
14590 if (!SWIG_IsOK(ecode2)) {
14591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14592 }
14593 arg2 = static_cast< int >(val2);
14594 {
14595 PyThreadState* __tstate = wxPyBeginAllowThreads();
14596 (arg1)->SetThumbPosition(arg2);
14597 wxPyEndAllowThreads(__tstate);
14598 if (PyErr_Occurred()) SWIG_fail;
14599 }
14600 resultobj = SWIG_Py_Void();
14601 return resultobj;
14602 fail:
14603 return NULL;
14604 }
14605
14606
14607 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14608 PyObject *resultobj = 0;
14609 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14610 SwigValueWrapper<wxVisualAttributes > result;
14611 int val1 ;
14612 int ecode1 = 0 ;
14613 PyObject * obj0 = 0 ;
14614 char * kwnames[] = {
14615 (char *) "variant", NULL
14616 };
14617
14618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14619 if (obj0) {
14620 ecode1 = SWIG_AsVal_int(obj0, &val1);
14621 if (!SWIG_IsOK(ecode1)) {
14622 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14623 }
14624 arg1 = static_cast< wxWindowVariant >(val1);
14625 }
14626 {
14627 if (!wxPyCheckForApp()) SWIG_fail;
14628 PyThreadState* __tstate = wxPyBeginAllowThreads();
14629 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14630 wxPyEndAllowThreads(__tstate);
14631 if (PyErr_Occurred()) SWIG_fail;
14632 }
14633 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14634 return resultobj;
14635 fail:
14636 return NULL;
14637 }
14638
14639
14640 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14641 PyObject *obj;
14642 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14643 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14644 return SWIG_Py_Void();
14645 }
14646
14647 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14648 return SWIG_Python_InitShadowInstance(args);
14649 }
14650
14651 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14652 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14653 return 1;
14654 }
14655
14656
14657 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14658 PyObject *pyobj = 0;
14659
14660 {
14661 #if wxUSE_UNICODE
14662 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14663 #else
14664 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14665 #endif
14666 }
14667 return pyobj;
14668 }
14669
14670
14671 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14672 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14673 return 1;
14674 }
14675
14676
14677 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14678 PyObject *pyobj = 0;
14679
14680 {
14681 #if wxUSE_UNICODE
14682 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14683 #else
14684 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14685 #endif
14686 }
14687 return pyobj;
14688 }
14689
14690
14691 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14692 PyObject *resultobj = 0;
14693 wxWindow *arg1 = (wxWindow *) 0 ;
14694 int arg2 = (int) -1 ;
14695 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14696 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14697 wxSize const &arg4_defvalue = wxDefaultSize ;
14698 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14699 long arg5 = (long) wxSP_HORIZONTAL ;
14700 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14701 wxString *arg6 = (wxString *) &arg6_defvalue ;
14702 wxSpinButton *result = 0 ;
14703 void *argp1 = 0 ;
14704 int res1 = 0 ;
14705 int val2 ;
14706 int ecode2 = 0 ;
14707 wxPoint temp3 ;
14708 wxSize temp4 ;
14709 long val5 ;
14710 int ecode5 = 0 ;
14711 bool temp6 = false ;
14712 PyObject * obj0 = 0 ;
14713 PyObject * obj1 = 0 ;
14714 PyObject * obj2 = 0 ;
14715 PyObject * obj3 = 0 ;
14716 PyObject * obj4 = 0 ;
14717 PyObject * obj5 = 0 ;
14718 char * kwnames[] = {
14719 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14720 };
14721
14722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14724 if (!SWIG_IsOK(res1)) {
14725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14726 }
14727 arg1 = reinterpret_cast< wxWindow * >(argp1);
14728 if (obj1) {
14729 ecode2 = SWIG_AsVal_int(obj1, &val2);
14730 if (!SWIG_IsOK(ecode2)) {
14731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14732 }
14733 arg2 = static_cast< int >(val2);
14734 }
14735 if (obj2) {
14736 {
14737 arg3 = &temp3;
14738 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14739 }
14740 }
14741 if (obj3) {
14742 {
14743 arg4 = &temp4;
14744 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14745 }
14746 }
14747 if (obj4) {
14748 ecode5 = SWIG_AsVal_long(obj4, &val5);
14749 if (!SWIG_IsOK(ecode5)) {
14750 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14751 }
14752 arg5 = static_cast< long >(val5);
14753 }
14754 if (obj5) {
14755 {
14756 arg6 = wxString_in_helper(obj5);
14757 if (arg6 == NULL) SWIG_fail;
14758 temp6 = true;
14759 }
14760 }
14761 {
14762 if (!wxPyCheckForApp()) SWIG_fail;
14763 PyThreadState* __tstate = wxPyBeginAllowThreads();
14764 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14765 wxPyEndAllowThreads(__tstate);
14766 if (PyErr_Occurred()) SWIG_fail;
14767 }
14768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14769 {
14770 if (temp6)
14771 delete arg6;
14772 }
14773 return resultobj;
14774 fail:
14775 {
14776 if (temp6)
14777 delete arg6;
14778 }
14779 return NULL;
14780 }
14781
14782
14783 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14784 PyObject *resultobj = 0;
14785 wxSpinButton *result = 0 ;
14786
14787 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14788 {
14789 if (!wxPyCheckForApp()) SWIG_fail;
14790 PyThreadState* __tstate = wxPyBeginAllowThreads();
14791 result = (wxSpinButton *)new wxSpinButton();
14792 wxPyEndAllowThreads(__tstate);
14793 if (PyErr_Occurred()) SWIG_fail;
14794 }
14795 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14796 return resultobj;
14797 fail:
14798 return NULL;
14799 }
14800
14801
14802 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14803 PyObject *resultobj = 0;
14804 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14805 wxWindow *arg2 = (wxWindow *) 0 ;
14806 int arg3 = (int) -1 ;
14807 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14808 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14809 wxSize const &arg5_defvalue = wxDefaultSize ;
14810 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14811 long arg6 = (long) wxSP_HORIZONTAL ;
14812 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14813 wxString *arg7 = (wxString *) &arg7_defvalue ;
14814 bool result;
14815 void *argp1 = 0 ;
14816 int res1 = 0 ;
14817 void *argp2 = 0 ;
14818 int res2 = 0 ;
14819 int val3 ;
14820 int ecode3 = 0 ;
14821 wxPoint temp4 ;
14822 wxSize temp5 ;
14823 long val6 ;
14824 int ecode6 = 0 ;
14825 bool temp7 = false ;
14826 PyObject * obj0 = 0 ;
14827 PyObject * obj1 = 0 ;
14828 PyObject * obj2 = 0 ;
14829 PyObject * obj3 = 0 ;
14830 PyObject * obj4 = 0 ;
14831 PyObject * obj5 = 0 ;
14832 PyObject * obj6 = 0 ;
14833 char * kwnames[] = {
14834 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14835 };
14836
14837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14839 if (!SWIG_IsOK(res1)) {
14840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14841 }
14842 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14843 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14844 if (!SWIG_IsOK(res2)) {
14845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14846 }
14847 arg2 = reinterpret_cast< wxWindow * >(argp2);
14848 if (obj2) {
14849 ecode3 = SWIG_AsVal_int(obj2, &val3);
14850 if (!SWIG_IsOK(ecode3)) {
14851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14852 }
14853 arg3 = static_cast< int >(val3);
14854 }
14855 if (obj3) {
14856 {
14857 arg4 = &temp4;
14858 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14859 }
14860 }
14861 if (obj4) {
14862 {
14863 arg5 = &temp5;
14864 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14865 }
14866 }
14867 if (obj5) {
14868 ecode6 = SWIG_AsVal_long(obj5, &val6);
14869 if (!SWIG_IsOK(ecode6)) {
14870 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14871 }
14872 arg6 = static_cast< long >(val6);
14873 }
14874 if (obj6) {
14875 {
14876 arg7 = wxString_in_helper(obj6);
14877 if (arg7 == NULL) SWIG_fail;
14878 temp7 = true;
14879 }
14880 }
14881 {
14882 PyThreadState* __tstate = wxPyBeginAllowThreads();
14883 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14884 wxPyEndAllowThreads(__tstate);
14885 if (PyErr_Occurred()) SWIG_fail;
14886 }
14887 {
14888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14889 }
14890 {
14891 if (temp7)
14892 delete arg7;
14893 }
14894 return resultobj;
14895 fail:
14896 {
14897 if (temp7)
14898 delete arg7;
14899 }
14900 return NULL;
14901 }
14902
14903
14904 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14905 PyObject *resultobj = 0;
14906 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14907 int result;
14908 void *argp1 = 0 ;
14909 int res1 = 0 ;
14910 PyObject *swig_obj[1] ;
14911
14912 if (!args) SWIG_fail;
14913 swig_obj[0] = args;
14914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14915 if (!SWIG_IsOK(res1)) {
14916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14917 }
14918 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14919 {
14920 PyThreadState* __tstate = wxPyBeginAllowThreads();
14921 result = (int)((wxSpinButton const *)arg1)->GetValue();
14922 wxPyEndAllowThreads(__tstate);
14923 if (PyErr_Occurred()) SWIG_fail;
14924 }
14925 resultobj = SWIG_From_int(static_cast< int >(result));
14926 return resultobj;
14927 fail:
14928 return NULL;
14929 }
14930
14931
14932 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14933 PyObject *resultobj = 0;
14934 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14935 int result;
14936 void *argp1 = 0 ;
14937 int res1 = 0 ;
14938 PyObject *swig_obj[1] ;
14939
14940 if (!args) SWIG_fail;
14941 swig_obj[0] = args;
14942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14943 if (!SWIG_IsOK(res1)) {
14944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14945 }
14946 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14947 {
14948 PyThreadState* __tstate = wxPyBeginAllowThreads();
14949 result = (int)((wxSpinButton const *)arg1)->GetMin();
14950 wxPyEndAllowThreads(__tstate);
14951 if (PyErr_Occurred()) SWIG_fail;
14952 }
14953 resultobj = SWIG_From_int(static_cast< int >(result));
14954 return resultobj;
14955 fail:
14956 return NULL;
14957 }
14958
14959
14960 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14961 PyObject *resultobj = 0;
14962 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14963 int result;
14964 void *argp1 = 0 ;
14965 int res1 = 0 ;
14966 PyObject *swig_obj[1] ;
14967
14968 if (!args) SWIG_fail;
14969 swig_obj[0] = args;
14970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14971 if (!SWIG_IsOK(res1)) {
14972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14973 }
14974 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14975 {
14976 PyThreadState* __tstate = wxPyBeginAllowThreads();
14977 result = (int)((wxSpinButton const *)arg1)->GetMax();
14978 wxPyEndAllowThreads(__tstate);
14979 if (PyErr_Occurred()) SWIG_fail;
14980 }
14981 resultobj = SWIG_From_int(static_cast< int >(result));
14982 return resultobj;
14983 fail:
14984 return NULL;
14985 }
14986
14987
14988 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14989 PyObject *resultobj = 0;
14990 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14991 int arg2 ;
14992 void *argp1 = 0 ;
14993 int res1 = 0 ;
14994 int val2 ;
14995 int ecode2 = 0 ;
14996 PyObject * obj0 = 0 ;
14997 PyObject * obj1 = 0 ;
14998 char * kwnames[] = {
14999 (char *) "self",(char *) "val", NULL
15000 };
15001
15002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15004 if (!SWIG_IsOK(res1)) {
15005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15006 }
15007 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15008 ecode2 = SWIG_AsVal_int(obj1, &val2);
15009 if (!SWIG_IsOK(ecode2)) {
15010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15011 }
15012 arg2 = static_cast< int >(val2);
15013 {
15014 PyThreadState* __tstate = wxPyBeginAllowThreads();
15015 (arg1)->SetValue(arg2);
15016 wxPyEndAllowThreads(__tstate);
15017 if (PyErr_Occurred()) SWIG_fail;
15018 }
15019 resultobj = SWIG_Py_Void();
15020 return resultobj;
15021 fail:
15022 return NULL;
15023 }
15024
15025
15026 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15027 PyObject *resultobj = 0;
15028 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15029 int arg2 ;
15030 void *argp1 = 0 ;
15031 int res1 = 0 ;
15032 int val2 ;
15033 int ecode2 = 0 ;
15034 PyObject * obj0 = 0 ;
15035 PyObject * obj1 = 0 ;
15036 char * kwnames[] = {
15037 (char *) "self",(char *) "minVal", NULL
15038 };
15039
15040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15042 if (!SWIG_IsOK(res1)) {
15043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15044 }
15045 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15046 ecode2 = SWIG_AsVal_int(obj1, &val2);
15047 if (!SWIG_IsOK(ecode2)) {
15048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15049 }
15050 arg2 = static_cast< int >(val2);
15051 {
15052 PyThreadState* __tstate = wxPyBeginAllowThreads();
15053 (arg1)->SetMin(arg2);
15054 wxPyEndAllowThreads(__tstate);
15055 if (PyErr_Occurred()) SWIG_fail;
15056 }
15057 resultobj = SWIG_Py_Void();
15058 return resultobj;
15059 fail:
15060 return NULL;
15061 }
15062
15063
15064 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15065 PyObject *resultobj = 0;
15066 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15067 int arg2 ;
15068 void *argp1 = 0 ;
15069 int res1 = 0 ;
15070 int val2 ;
15071 int ecode2 = 0 ;
15072 PyObject * obj0 = 0 ;
15073 PyObject * obj1 = 0 ;
15074 char * kwnames[] = {
15075 (char *) "self",(char *) "maxVal", NULL
15076 };
15077
15078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15080 if (!SWIG_IsOK(res1)) {
15081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15082 }
15083 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15084 ecode2 = SWIG_AsVal_int(obj1, &val2);
15085 if (!SWIG_IsOK(ecode2)) {
15086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15087 }
15088 arg2 = static_cast< int >(val2);
15089 {
15090 PyThreadState* __tstate = wxPyBeginAllowThreads();
15091 (arg1)->SetMax(arg2);
15092 wxPyEndAllowThreads(__tstate);
15093 if (PyErr_Occurred()) SWIG_fail;
15094 }
15095 resultobj = SWIG_Py_Void();
15096 return resultobj;
15097 fail:
15098 return NULL;
15099 }
15100
15101
15102 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15103 PyObject *resultobj = 0;
15104 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15105 int arg2 ;
15106 int arg3 ;
15107 void *argp1 = 0 ;
15108 int res1 = 0 ;
15109 int val2 ;
15110 int ecode2 = 0 ;
15111 int val3 ;
15112 int ecode3 = 0 ;
15113 PyObject * obj0 = 0 ;
15114 PyObject * obj1 = 0 ;
15115 PyObject * obj2 = 0 ;
15116 char * kwnames[] = {
15117 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15118 };
15119
15120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15122 if (!SWIG_IsOK(res1)) {
15123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15124 }
15125 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15126 ecode2 = SWIG_AsVal_int(obj1, &val2);
15127 if (!SWIG_IsOK(ecode2)) {
15128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15129 }
15130 arg2 = static_cast< int >(val2);
15131 ecode3 = SWIG_AsVal_int(obj2, &val3);
15132 if (!SWIG_IsOK(ecode3)) {
15133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15134 }
15135 arg3 = static_cast< int >(val3);
15136 {
15137 PyThreadState* __tstate = wxPyBeginAllowThreads();
15138 (arg1)->SetRange(arg2,arg3);
15139 wxPyEndAllowThreads(__tstate);
15140 if (PyErr_Occurred()) SWIG_fail;
15141 }
15142 resultobj = SWIG_Py_Void();
15143 return resultobj;
15144 fail:
15145 return NULL;
15146 }
15147
15148
15149 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15150 PyObject *resultobj = 0;
15151 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15152 bool result;
15153 void *argp1 = 0 ;
15154 int res1 = 0 ;
15155 PyObject *swig_obj[1] ;
15156
15157 if (!args) SWIG_fail;
15158 swig_obj[0] = args;
15159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15160 if (!SWIG_IsOK(res1)) {
15161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15162 }
15163 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15164 {
15165 PyThreadState* __tstate = wxPyBeginAllowThreads();
15166 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15167 wxPyEndAllowThreads(__tstate);
15168 if (PyErr_Occurred()) SWIG_fail;
15169 }
15170 {
15171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15172 }
15173 return resultobj;
15174 fail:
15175 return NULL;
15176 }
15177
15178
15179 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15180 PyObject *resultobj = 0;
15181 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15182 SwigValueWrapper<wxVisualAttributes > result;
15183 int val1 ;
15184 int ecode1 = 0 ;
15185 PyObject * obj0 = 0 ;
15186 char * kwnames[] = {
15187 (char *) "variant", NULL
15188 };
15189
15190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15191 if (obj0) {
15192 ecode1 = SWIG_AsVal_int(obj0, &val1);
15193 if (!SWIG_IsOK(ecode1)) {
15194 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15195 }
15196 arg1 = static_cast< wxWindowVariant >(val1);
15197 }
15198 {
15199 if (!wxPyCheckForApp()) SWIG_fail;
15200 PyThreadState* __tstate = wxPyBeginAllowThreads();
15201 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15202 wxPyEndAllowThreads(__tstate);
15203 if (PyErr_Occurred()) SWIG_fail;
15204 }
15205 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15206 return resultobj;
15207 fail:
15208 return NULL;
15209 }
15210
15211
15212 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15213 PyObject *obj;
15214 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15215 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15216 return SWIG_Py_Void();
15217 }
15218
15219 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15220 return SWIG_Python_InitShadowInstance(args);
15221 }
15222
15223 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15224 PyObject *resultobj = 0;
15225 wxWindow *arg1 = (wxWindow *) 0 ;
15226 int arg2 = (int) -1 ;
15227 wxString const &arg3_defvalue = wxPyEmptyString ;
15228 wxString *arg3 = (wxString *) &arg3_defvalue ;
15229 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15230 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15231 wxSize const &arg5_defvalue = wxDefaultSize ;
15232 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15233 long arg6 = (long) wxSP_ARROW_KEYS ;
15234 int arg7 = (int) 0 ;
15235 int arg8 = (int) 100 ;
15236 int arg9 = (int) 0 ;
15237 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15238 wxString *arg10 = (wxString *) &arg10_defvalue ;
15239 wxSpinCtrl *result = 0 ;
15240 void *argp1 = 0 ;
15241 int res1 = 0 ;
15242 int val2 ;
15243 int ecode2 = 0 ;
15244 bool temp3 = false ;
15245 wxPoint temp4 ;
15246 wxSize temp5 ;
15247 long val6 ;
15248 int ecode6 = 0 ;
15249 int val7 ;
15250 int ecode7 = 0 ;
15251 int val8 ;
15252 int ecode8 = 0 ;
15253 int val9 ;
15254 int ecode9 = 0 ;
15255 bool temp10 = false ;
15256 PyObject * obj0 = 0 ;
15257 PyObject * obj1 = 0 ;
15258 PyObject * obj2 = 0 ;
15259 PyObject * obj3 = 0 ;
15260 PyObject * obj4 = 0 ;
15261 PyObject * obj5 = 0 ;
15262 PyObject * obj6 = 0 ;
15263 PyObject * obj7 = 0 ;
15264 PyObject * obj8 = 0 ;
15265 PyObject * obj9 = 0 ;
15266 char * kwnames[] = {
15267 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15268 };
15269
15270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15272 if (!SWIG_IsOK(res1)) {
15273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15274 }
15275 arg1 = reinterpret_cast< wxWindow * >(argp1);
15276 if (obj1) {
15277 ecode2 = SWIG_AsVal_int(obj1, &val2);
15278 if (!SWIG_IsOK(ecode2)) {
15279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15280 }
15281 arg2 = static_cast< int >(val2);
15282 }
15283 if (obj2) {
15284 {
15285 arg3 = wxString_in_helper(obj2);
15286 if (arg3 == NULL) SWIG_fail;
15287 temp3 = true;
15288 }
15289 }
15290 if (obj3) {
15291 {
15292 arg4 = &temp4;
15293 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15294 }
15295 }
15296 if (obj4) {
15297 {
15298 arg5 = &temp5;
15299 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15300 }
15301 }
15302 if (obj5) {
15303 ecode6 = SWIG_AsVal_long(obj5, &val6);
15304 if (!SWIG_IsOK(ecode6)) {
15305 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15306 }
15307 arg6 = static_cast< long >(val6);
15308 }
15309 if (obj6) {
15310 ecode7 = SWIG_AsVal_int(obj6, &val7);
15311 if (!SWIG_IsOK(ecode7)) {
15312 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15313 }
15314 arg7 = static_cast< int >(val7);
15315 }
15316 if (obj7) {
15317 ecode8 = SWIG_AsVal_int(obj7, &val8);
15318 if (!SWIG_IsOK(ecode8)) {
15319 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15320 }
15321 arg8 = static_cast< int >(val8);
15322 }
15323 if (obj8) {
15324 ecode9 = SWIG_AsVal_int(obj8, &val9);
15325 if (!SWIG_IsOK(ecode9)) {
15326 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15327 }
15328 arg9 = static_cast< int >(val9);
15329 }
15330 if (obj9) {
15331 {
15332 arg10 = wxString_in_helper(obj9);
15333 if (arg10 == NULL) SWIG_fail;
15334 temp10 = true;
15335 }
15336 }
15337 {
15338 if (!wxPyCheckForApp()) SWIG_fail;
15339 PyThreadState* __tstate = wxPyBeginAllowThreads();
15340 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15341 wxPyEndAllowThreads(__tstate);
15342 if (PyErr_Occurred()) SWIG_fail;
15343 }
15344 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15345 {
15346 if (temp3)
15347 delete arg3;
15348 }
15349 {
15350 if (temp10)
15351 delete arg10;
15352 }
15353 return resultobj;
15354 fail:
15355 {
15356 if (temp3)
15357 delete arg3;
15358 }
15359 {
15360 if (temp10)
15361 delete arg10;
15362 }
15363 return NULL;
15364 }
15365
15366
15367 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15368 PyObject *resultobj = 0;
15369 wxSpinCtrl *result = 0 ;
15370
15371 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15372 {
15373 if (!wxPyCheckForApp()) SWIG_fail;
15374 PyThreadState* __tstate = wxPyBeginAllowThreads();
15375 result = (wxSpinCtrl *)new wxSpinCtrl();
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15380 return resultobj;
15381 fail:
15382 return NULL;
15383 }
15384
15385
15386 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15387 PyObject *resultobj = 0;
15388 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15389 wxWindow *arg2 = (wxWindow *) 0 ;
15390 int arg3 = (int) -1 ;
15391 wxString const &arg4_defvalue = wxPyEmptyString ;
15392 wxString *arg4 = (wxString *) &arg4_defvalue ;
15393 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15394 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15395 wxSize const &arg6_defvalue = wxDefaultSize ;
15396 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15397 long arg7 = (long) wxSP_ARROW_KEYS ;
15398 int arg8 = (int) 0 ;
15399 int arg9 = (int) 100 ;
15400 int arg10 = (int) 0 ;
15401 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15402 wxString *arg11 = (wxString *) &arg11_defvalue ;
15403 bool result;
15404 void *argp1 = 0 ;
15405 int res1 = 0 ;
15406 void *argp2 = 0 ;
15407 int res2 = 0 ;
15408 int val3 ;
15409 int ecode3 = 0 ;
15410 bool temp4 = false ;
15411 wxPoint temp5 ;
15412 wxSize temp6 ;
15413 long val7 ;
15414 int ecode7 = 0 ;
15415 int val8 ;
15416 int ecode8 = 0 ;
15417 int val9 ;
15418 int ecode9 = 0 ;
15419 int val10 ;
15420 int ecode10 = 0 ;
15421 bool temp11 = false ;
15422 PyObject * obj0 = 0 ;
15423 PyObject * obj1 = 0 ;
15424 PyObject * obj2 = 0 ;
15425 PyObject * obj3 = 0 ;
15426 PyObject * obj4 = 0 ;
15427 PyObject * obj5 = 0 ;
15428 PyObject * obj6 = 0 ;
15429 PyObject * obj7 = 0 ;
15430 PyObject * obj8 = 0 ;
15431 PyObject * obj9 = 0 ;
15432 PyObject * obj10 = 0 ;
15433 char * kwnames[] = {
15434 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15435 };
15436
15437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15439 if (!SWIG_IsOK(res1)) {
15440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15441 }
15442 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15443 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15444 if (!SWIG_IsOK(res2)) {
15445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15446 }
15447 arg2 = reinterpret_cast< wxWindow * >(argp2);
15448 if (obj2) {
15449 ecode3 = SWIG_AsVal_int(obj2, &val3);
15450 if (!SWIG_IsOK(ecode3)) {
15451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15452 }
15453 arg3 = static_cast< int >(val3);
15454 }
15455 if (obj3) {
15456 {
15457 arg4 = wxString_in_helper(obj3);
15458 if (arg4 == NULL) SWIG_fail;
15459 temp4 = true;
15460 }
15461 }
15462 if (obj4) {
15463 {
15464 arg5 = &temp5;
15465 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15466 }
15467 }
15468 if (obj5) {
15469 {
15470 arg6 = &temp6;
15471 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15472 }
15473 }
15474 if (obj6) {
15475 ecode7 = SWIG_AsVal_long(obj6, &val7);
15476 if (!SWIG_IsOK(ecode7)) {
15477 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15478 }
15479 arg7 = static_cast< long >(val7);
15480 }
15481 if (obj7) {
15482 ecode8 = SWIG_AsVal_int(obj7, &val8);
15483 if (!SWIG_IsOK(ecode8)) {
15484 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15485 }
15486 arg8 = static_cast< int >(val8);
15487 }
15488 if (obj8) {
15489 ecode9 = SWIG_AsVal_int(obj8, &val9);
15490 if (!SWIG_IsOK(ecode9)) {
15491 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15492 }
15493 arg9 = static_cast< int >(val9);
15494 }
15495 if (obj9) {
15496 ecode10 = SWIG_AsVal_int(obj9, &val10);
15497 if (!SWIG_IsOK(ecode10)) {
15498 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15499 }
15500 arg10 = static_cast< int >(val10);
15501 }
15502 if (obj10) {
15503 {
15504 arg11 = wxString_in_helper(obj10);
15505 if (arg11 == NULL) SWIG_fail;
15506 temp11 = true;
15507 }
15508 }
15509 {
15510 PyThreadState* __tstate = wxPyBeginAllowThreads();
15511 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15512 wxPyEndAllowThreads(__tstate);
15513 if (PyErr_Occurred()) SWIG_fail;
15514 }
15515 {
15516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15517 }
15518 {
15519 if (temp4)
15520 delete arg4;
15521 }
15522 {
15523 if (temp11)
15524 delete arg11;
15525 }
15526 return resultobj;
15527 fail:
15528 {
15529 if (temp4)
15530 delete arg4;
15531 }
15532 {
15533 if (temp11)
15534 delete arg11;
15535 }
15536 return NULL;
15537 }
15538
15539
15540 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15541 PyObject *resultobj = 0;
15542 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15543 int result;
15544 void *argp1 = 0 ;
15545 int res1 = 0 ;
15546 PyObject *swig_obj[1] ;
15547
15548 if (!args) SWIG_fail;
15549 swig_obj[0] = args;
15550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15551 if (!SWIG_IsOK(res1)) {
15552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15553 }
15554 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15555 {
15556 PyThreadState* __tstate = wxPyBeginAllowThreads();
15557 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
15561 resultobj = SWIG_From_int(static_cast< int >(result));
15562 return resultobj;
15563 fail:
15564 return NULL;
15565 }
15566
15567
15568 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15569 PyObject *resultobj = 0;
15570 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15571 int arg2 ;
15572 void *argp1 = 0 ;
15573 int res1 = 0 ;
15574 int val2 ;
15575 int ecode2 = 0 ;
15576 PyObject * obj0 = 0 ;
15577 PyObject * obj1 = 0 ;
15578 char * kwnames[] = {
15579 (char *) "self",(char *) "value", NULL
15580 };
15581
15582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15584 if (!SWIG_IsOK(res1)) {
15585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15586 }
15587 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15588 ecode2 = SWIG_AsVal_int(obj1, &val2);
15589 if (!SWIG_IsOK(ecode2)) {
15590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15591 }
15592 arg2 = static_cast< int >(val2);
15593 {
15594 PyThreadState* __tstate = wxPyBeginAllowThreads();
15595 (arg1)->SetValue(arg2);
15596 wxPyEndAllowThreads(__tstate);
15597 if (PyErr_Occurred()) SWIG_fail;
15598 }
15599 resultobj = SWIG_Py_Void();
15600 return resultobj;
15601 fail:
15602 return NULL;
15603 }
15604
15605
15606 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15607 PyObject *resultobj = 0;
15608 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15609 wxString *arg2 = 0 ;
15610 void *argp1 = 0 ;
15611 int res1 = 0 ;
15612 bool temp2 = false ;
15613 PyObject * obj0 = 0 ;
15614 PyObject * obj1 = 0 ;
15615 char * kwnames[] = {
15616 (char *) "self",(char *) "text", NULL
15617 };
15618
15619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15621 if (!SWIG_IsOK(res1)) {
15622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15623 }
15624 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15625 {
15626 arg2 = wxString_in_helper(obj1);
15627 if (arg2 == NULL) SWIG_fail;
15628 temp2 = true;
15629 }
15630 {
15631 PyThreadState* __tstate = wxPyBeginAllowThreads();
15632 (arg1)->SetValue((wxString const &)*arg2);
15633 wxPyEndAllowThreads(__tstate);
15634 if (PyErr_Occurred()) SWIG_fail;
15635 }
15636 resultobj = SWIG_Py_Void();
15637 {
15638 if (temp2)
15639 delete arg2;
15640 }
15641 return resultobj;
15642 fail:
15643 {
15644 if (temp2)
15645 delete arg2;
15646 }
15647 return NULL;
15648 }
15649
15650
15651 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15652 PyObject *resultobj = 0;
15653 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15654 int arg2 ;
15655 int arg3 ;
15656 void *argp1 = 0 ;
15657 int res1 = 0 ;
15658 int val2 ;
15659 int ecode2 = 0 ;
15660 int val3 ;
15661 int ecode3 = 0 ;
15662 PyObject * obj0 = 0 ;
15663 PyObject * obj1 = 0 ;
15664 PyObject * obj2 = 0 ;
15665 char * kwnames[] = {
15666 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15667 };
15668
15669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15671 if (!SWIG_IsOK(res1)) {
15672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15673 }
15674 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15675 ecode2 = SWIG_AsVal_int(obj1, &val2);
15676 if (!SWIG_IsOK(ecode2)) {
15677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15678 }
15679 arg2 = static_cast< int >(val2);
15680 ecode3 = SWIG_AsVal_int(obj2, &val3);
15681 if (!SWIG_IsOK(ecode3)) {
15682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15683 }
15684 arg3 = static_cast< int >(val3);
15685 {
15686 PyThreadState* __tstate = wxPyBeginAllowThreads();
15687 (arg1)->SetRange(arg2,arg3);
15688 wxPyEndAllowThreads(__tstate);
15689 if (PyErr_Occurred()) SWIG_fail;
15690 }
15691 resultobj = SWIG_Py_Void();
15692 return resultobj;
15693 fail:
15694 return NULL;
15695 }
15696
15697
15698 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15699 PyObject *resultobj = 0;
15700 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15701 int result;
15702 void *argp1 = 0 ;
15703 int res1 = 0 ;
15704 PyObject *swig_obj[1] ;
15705
15706 if (!args) SWIG_fail;
15707 swig_obj[0] = args;
15708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15709 if (!SWIG_IsOK(res1)) {
15710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15711 }
15712 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15713 {
15714 PyThreadState* __tstate = wxPyBeginAllowThreads();
15715 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15716 wxPyEndAllowThreads(__tstate);
15717 if (PyErr_Occurred()) SWIG_fail;
15718 }
15719 resultobj = SWIG_From_int(static_cast< int >(result));
15720 return resultobj;
15721 fail:
15722 return NULL;
15723 }
15724
15725
15726 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15727 PyObject *resultobj = 0;
15728 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15729 int result;
15730 void *argp1 = 0 ;
15731 int res1 = 0 ;
15732 PyObject *swig_obj[1] ;
15733
15734 if (!args) SWIG_fail;
15735 swig_obj[0] = args;
15736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15737 if (!SWIG_IsOK(res1)) {
15738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15739 }
15740 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15741 {
15742 PyThreadState* __tstate = wxPyBeginAllowThreads();
15743 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15744 wxPyEndAllowThreads(__tstate);
15745 if (PyErr_Occurred()) SWIG_fail;
15746 }
15747 resultobj = SWIG_From_int(static_cast< int >(result));
15748 return resultobj;
15749 fail:
15750 return NULL;
15751 }
15752
15753
15754 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15755 PyObject *resultobj = 0;
15756 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15757 long arg2 ;
15758 long arg3 ;
15759 void *argp1 = 0 ;
15760 int res1 = 0 ;
15761 long val2 ;
15762 int ecode2 = 0 ;
15763 long val3 ;
15764 int ecode3 = 0 ;
15765 PyObject * obj0 = 0 ;
15766 PyObject * obj1 = 0 ;
15767 PyObject * obj2 = 0 ;
15768 char * kwnames[] = {
15769 (char *) "self",(char *) "from",(char *) "to", NULL
15770 };
15771
15772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15774 if (!SWIG_IsOK(res1)) {
15775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15776 }
15777 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15778 ecode2 = SWIG_AsVal_long(obj1, &val2);
15779 if (!SWIG_IsOK(ecode2)) {
15780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15781 }
15782 arg2 = static_cast< long >(val2);
15783 ecode3 = SWIG_AsVal_long(obj2, &val3);
15784 if (!SWIG_IsOK(ecode3)) {
15785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15786 }
15787 arg3 = static_cast< long >(val3);
15788 {
15789 PyThreadState* __tstate = wxPyBeginAllowThreads();
15790 (arg1)->SetSelection(arg2,arg3);
15791 wxPyEndAllowThreads(__tstate);
15792 if (PyErr_Occurred()) SWIG_fail;
15793 }
15794 resultobj = SWIG_Py_Void();
15795 return resultobj;
15796 fail:
15797 return NULL;
15798 }
15799
15800
15801 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15802 PyObject *resultobj = 0;
15803 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15804 SwigValueWrapper<wxVisualAttributes > result;
15805 int val1 ;
15806 int ecode1 = 0 ;
15807 PyObject * obj0 = 0 ;
15808 char * kwnames[] = {
15809 (char *) "variant", NULL
15810 };
15811
15812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15813 if (obj0) {
15814 ecode1 = SWIG_AsVal_int(obj0, &val1);
15815 if (!SWIG_IsOK(ecode1)) {
15816 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15817 }
15818 arg1 = static_cast< wxWindowVariant >(val1);
15819 }
15820 {
15821 if (!wxPyCheckForApp()) SWIG_fail;
15822 PyThreadState* __tstate = wxPyBeginAllowThreads();
15823 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15824 wxPyEndAllowThreads(__tstate);
15825 if (PyErr_Occurred()) SWIG_fail;
15826 }
15827 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15828 return resultobj;
15829 fail:
15830 return NULL;
15831 }
15832
15833
15834 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15835 PyObject *obj;
15836 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15837 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15838 return SWIG_Py_Void();
15839 }
15840
15841 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15842 return SWIG_Python_InitShadowInstance(args);
15843 }
15844
15845 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15846 PyObject *resultobj = 0;
15847 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15848 int arg2 = (int) 0 ;
15849 wxSpinEvent *result = 0 ;
15850 int val1 ;
15851 int ecode1 = 0 ;
15852 int val2 ;
15853 int ecode2 = 0 ;
15854 PyObject * obj0 = 0 ;
15855 PyObject * obj1 = 0 ;
15856 char * kwnames[] = {
15857 (char *) "commandType",(char *) "winid", NULL
15858 };
15859
15860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15861 if (obj0) {
15862 ecode1 = SWIG_AsVal_int(obj0, &val1);
15863 if (!SWIG_IsOK(ecode1)) {
15864 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15865 }
15866 arg1 = static_cast< wxEventType >(val1);
15867 }
15868 if (obj1) {
15869 ecode2 = SWIG_AsVal_int(obj1, &val2);
15870 if (!SWIG_IsOK(ecode2)) {
15871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15872 }
15873 arg2 = static_cast< int >(val2);
15874 }
15875 {
15876 PyThreadState* __tstate = wxPyBeginAllowThreads();
15877 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15878 wxPyEndAllowThreads(__tstate);
15879 if (PyErr_Occurred()) SWIG_fail;
15880 }
15881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15882 return resultobj;
15883 fail:
15884 return NULL;
15885 }
15886
15887
15888 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15889 PyObject *resultobj = 0;
15890 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15891 int result;
15892 void *argp1 = 0 ;
15893 int res1 = 0 ;
15894 PyObject *swig_obj[1] ;
15895
15896 if (!args) SWIG_fail;
15897 swig_obj[0] = args;
15898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15899 if (!SWIG_IsOK(res1)) {
15900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15901 }
15902 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15903 {
15904 PyThreadState* __tstate = wxPyBeginAllowThreads();
15905 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15906 wxPyEndAllowThreads(__tstate);
15907 if (PyErr_Occurred()) SWIG_fail;
15908 }
15909 resultobj = SWIG_From_int(static_cast< int >(result));
15910 return resultobj;
15911 fail:
15912 return NULL;
15913 }
15914
15915
15916 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15917 PyObject *resultobj = 0;
15918 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15919 int arg2 ;
15920 void *argp1 = 0 ;
15921 int res1 = 0 ;
15922 int val2 ;
15923 int ecode2 = 0 ;
15924 PyObject * obj0 = 0 ;
15925 PyObject * obj1 = 0 ;
15926 char * kwnames[] = {
15927 (char *) "self",(char *) "pos", NULL
15928 };
15929
15930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15932 if (!SWIG_IsOK(res1)) {
15933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15934 }
15935 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15936 ecode2 = SWIG_AsVal_int(obj1, &val2);
15937 if (!SWIG_IsOK(ecode2)) {
15938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15939 }
15940 arg2 = static_cast< int >(val2);
15941 {
15942 PyThreadState* __tstate = wxPyBeginAllowThreads();
15943 (arg1)->SetPosition(arg2);
15944 wxPyEndAllowThreads(__tstate);
15945 if (PyErr_Occurred()) SWIG_fail;
15946 }
15947 resultobj = SWIG_Py_Void();
15948 return resultobj;
15949 fail:
15950 return NULL;
15951 }
15952
15953
15954 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15955 PyObject *obj;
15956 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15957 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15958 return SWIG_Py_Void();
15959 }
15960
15961 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15962 return SWIG_Python_InitShadowInstance(args);
15963 }
15964
15965 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15966 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15967 return 1;
15968 }
15969
15970
15971 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15972 PyObject *pyobj = 0;
15973
15974 {
15975 #if wxUSE_UNICODE
15976 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15977 #else
15978 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15979 #endif
15980 }
15981 return pyobj;
15982 }
15983
15984
15985 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15986 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15987 return 1;
15988 }
15989
15990
15991 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15992 PyObject *pyobj = 0;
15993
15994 {
15995 #if wxUSE_UNICODE
15996 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15997 #else
15998 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15999 #endif
16000 }
16001 return pyobj;
16002 }
16003
16004
16005 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16006 PyObject *resultobj = 0;
16007 wxWindow *arg1 = (wxWindow *) 0 ;
16008 int arg2 = (int) -1 ;
16009 wxString const &arg3_defvalue = wxPyEmptyString ;
16010 wxString *arg3 = (wxString *) &arg3_defvalue ;
16011 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16012 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16013 wxSize const &arg5_defvalue = wxDefaultSize ;
16014 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16015 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16016 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16017 int arg7 = (int) 0 ;
16018 long arg8 = (long) wxRA_HORIZONTAL ;
16019 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16020 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16021 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16022 wxString *arg10 = (wxString *) &arg10_defvalue ;
16023 wxRadioBox *result = 0 ;
16024 void *argp1 = 0 ;
16025 int res1 = 0 ;
16026 int val2 ;
16027 int ecode2 = 0 ;
16028 bool temp3 = false ;
16029 wxPoint temp4 ;
16030 wxSize temp5 ;
16031 bool temp6 = false ;
16032 int val7 ;
16033 int ecode7 = 0 ;
16034 long val8 ;
16035 int ecode8 = 0 ;
16036 void *argp9 = 0 ;
16037 int res9 = 0 ;
16038 bool temp10 = false ;
16039 PyObject * obj0 = 0 ;
16040 PyObject * obj1 = 0 ;
16041 PyObject * obj2 = 0 ;
16042 PyObject * obj3 = 0 ;
16043 PyObject * obj4 = 0 ;
16044 PyObject * obj5 = 0 ;
16045 PyObject * obj6 = 0 ;
16046 PyObject * obj7 = 0 ;
16047 PyObject * obj8 = 0 ;
16048 PyObject * obj9 = 0 ;
16049 char * kwnames[] = {
16050 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16051 };
16052
16053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16055 if (!SWIG_IsOK(res1)) {
16056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16057 }
16058 arg1 = reinterpret_cast< wxWindow * >(argp1);
16059 if (obj1) {
16060 ecode2 = SWIG_AsVal_int(obj1, &val2);
16061 if (!SWIG_IsOK(ecode2)) {
16062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16063 }
16064 arg2 = static_cast< int >(val2);
16065 }
16066 if (obj2) {
16067 {
16068 arg3 = wxString_in_helper(obj2);
16069 if (arg3 == NULL) SWIG_fail;
16070 temp3 = true;
16071 }
16072 }
16073 if (obj3) {
16074 {
16075 arg4 = &temp4;
16076 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16077 }
16078 }
16079 if (obj4) {
16080 {
16081 arg5 = &temp5;
16082 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16083 }
16084 }
16085 if (obj5) {
16086 {
16087 if (! PySequence_Check(obj5)) {
16088 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16089 SWIG_fail;
16090 }
16091 arg6 = new wxArrayString;
16092 temp6 = true;
16093 int i, len=PySequence_Length(obj5);
16094 for (i=0; i<len; i++) {
16095 PyObject* item = PySequence_GetItem(obj5, i);
16096 wxString* s = wxString_in_helper(item);
16097 if (PyErr_Occurred()) SWIG_fail;
16098 arg6->Add(*s);
16099 delete s;
16100 Py_DECREF(item);
16101 }
16102 }
16103 }
16104 if (obj6) {
16105 ecode7 = SWIG_AsVal_int(obj6, &val7);
16106 if (!SWIG_IsOK(ecode7)) {
16107 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16108 }
16109 arg7 = static_cast< int >(val7);
16110 }
16111 if (obj7) {
16112 ecode8 = SWIG_AsVal_long(obj7, &val8);
16113 if (!SWIG_IsOK(ecode8)) {
16114 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16115 }
16116 arg8 = static_cast< long >(val8);
16117 }
16118 if (obj8) {
16119 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16120 if (!SWIG_IsOK(res9)) {
16121 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16122 }
16123 if (!argp9) {
16124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16125 }
16126 arg9 = reinterpret_cast< wxValidator * >(argp9);
16127 }
16128 if (obj9) {
16129 {
16130 arg10 = wxString_in_helper(obj9);
16131 if (arg10 == NULL) SWIG_fail;
16132 temp10 = true;
16133 }
16134 }
16135 {
16136 if (!wxPyCheckForApp()) SWIG_fail;
16137 PyThreadState* __tstate = wxPyBeginAllowThreads();
16138 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);
16139 wxPyEndAllowThreads(__tstate);
16140 if (PyErr_Occurred()) SWIG_fail;
16141 }
16142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16143 {
16144 if (temp3)
16145 delete arg3;
16146 }
16147 {
16148 if (temp6) delete arg6;
16149 }
16150 {
16151 if (temp10)
16152 delete arg10;
16153 }
16154 return resultobj;
16155 fail:
16156 {
16157 if (temp3)
16158 delete arg3;
16159 }
16160 {
16161 if (temp6) delete arg6;
16162 }
16163 {
16164 if (temp10)
16165 delete arg10;
16166 }
16167 return NULL;
16168 }
16169
16170
16171 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16172 PyObject *resultobj = 0;
16173 wxRadioBox *result = 0 ;
16174
16175 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16176 {
16177 if (!wxPyCheckForApp()) SWIG_fail;
16178 PyThreadState* __tstate = wxPyBeginAllowThreads();
16179 result = (wxRadioBox *)new wxRadioBox();
16180 wxPyEndAllowThreads(__tstate);
16181 if (PyErr_Occurred()) SWIG_fail;
16182 }
16183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16184 return resultobj;
16185 fail:
16186 return NULL;
16187 }
16188
16189
16190 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16191 PyObject *resultobj = 0;
16192 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16193 wxWindow *arg2 = (wxWindow *) 0 ;
16194 int arg3 = (int) -1 ;
16195 wxString const &arg4_defvalue = wxPyEmptyString ;
16196 wxString *arg4 = (wxString *) &arg4_defvalue ;
16197 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16198 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16199 wxSize const &arg6_defvalue = wxDefaultSize ;
16200 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16201 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16202 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16203 int arg8 = (int) 0 ;
16204 long arg9 = (long) wxRA_HORIZONTAL ;
16205 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16206 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16207 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16208 wxString *arg11 = (wxString *) &arg11_defvalue ;
16209 bool result;
16210 void *argp1 = 0 ;
16211 int res1 = 0 ;
16212 void *argp2 = 0 ;
16213 int res2 = 0 ;
16214 int val3 ;
16215 int ecode3 = 0 ;
16216 bool temp4 = false ;
16217 wxPoint temp5 ;
16218 wxSize temp6 ;
16219 bool temp7 = false ;
16220 int val8 ;
16221 int ecode8 = 0 ;
16222 long val9 ;
16223 int ecode9 = 0 ;
16224 void *argp10 = 0 ;
16225 int res10 = 0 ;
16226 bool temp11 = false ;
16227 PyObject * obj0 = 0 ;
16228 PyObject * obj1 = 0 ;
16229 PyObject * obj2 = 0 ;
16230 PyObject * obj3 = 0 ;
16231 PyObject * obj4 = 0 ;
16232 PyObject * obj5 = 0 ;
16233 PyObject * obj6 = 0 ;
16234 PyObject * obj7 = 0 ;
16235 PyObject * obj8 = 0 ;
16236 PyObject * obj9 = 0 ;
16237 PyObject * obj10 = 0 ;
16238 char * kwnames[] = {
16239 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16240 };
16241
16242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16244 if (!SWIG_IsOK(res1)) {
16245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16246 }
16247 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16248 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16249 if (!SWIG_IsOK(res2)) {
16250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16251 }
16252 arg2 = reinterpret_cast< wxWindow * >(argp2);
16253 if (obj2) {
16254 ecode3 = SWIG_AsVal_int(obj2, &val3);
16255 if (!SWIG_IsOK(ecode3)) {
16256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16257 }
16258 arg3 = static_cast< int >(val3);
16259 }
16260 if (obj3) {
16261 {
16262 arg4 = wxString_in_helper(obj3);
16263 if (arg4 == NULL) SWIG_fail;
16264 temp4 = true;
16265 }
16266 }
16267 if (obj4) {
16268 {
16269 arg5 = &temp5;
16270 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16271 }
16272 }
16273 if (obj5) {
16274 {
16275 arg6 = &temp6;
16276 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16277 }
16278 }
16279 if (obj6) {
16280 {
16281 if (! PySequence_Check(obj6)) {
16282 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16283 SWIG_fail;
16284 }
16285 arg7 = new wxArrayString;
16286 temp7 = true;
16287 int i, len=PySequence_Length(obj6);
16288 for (i=0; i<len; i++) {
16289 PyObject* item = PySequence_GetItem(obj6, i);
16290 wxString* s = wxString_in_helper(item);
16291 if (PyErr_Occurred()) SWIG_fail;
16292 arg7->Add(*s);
16293 delete s;
16294 Py_DECREF(item);
16295 }
16296 }
16297 }
16298 if (obj7) {
16299 ecode8 = SWIG_AsVal_int(obj7, &val8);
16300 if (!SWIG_IsOK(ecode8)) {
16301 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16302 }
16303 arg8 = static_cast< int >(val8);
16304 }
16305 if (obj8) {
16306 ecode9 = SWIG_AsVal_long(obj8, &val9);
16307 if (!SWIG_IsOK(ecode9)) {
16308 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16309 }
16310 arg9 = static_cast< long >(val9);
16311 }
16312 if (obj9) {
16313 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16314 if (!SWIG_IsOK(res10)) {
16315 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16316 }
16317 if (!argp10) {
16318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16319 }
16320 arg10 = reinterpret_cast< wxValidator * >(argp10);
16321 }
16322 if (obj10) {
16323 {
16324 arg11 = wxString_in_helper(obj10);
16325 if (arg11 == NULL) SWIG_fail;
16326 temp11 = true;
16327 }
16328 }
16329 {
16330 PyThreadState* __tstate = wxPyBeginAllowThreads();
16331 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);
16332 wxPyEndAllowThreads(__tstate);
16333 if (PyErr_Occurred()) SWIG_fail;
16334 }
16335 {
16336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16337 }
16338 {
16339 if (temp4)
16340 delete arg4;
16341 }
16342 {
16343 if (temp7) delete arg7;
16344 }
16345 {
16346 if (temp11)
16347 delete arg11;
16348 }
16349 return resultobj;
16350 fail:
16351 {
16352 if (temp4)
16353 delete arg4;
16354 }
16355 {
16356 if (temp7) delete arg7;
16357 }
16358 {
16359 if (temp11)
16360 delete arg11;
16361 }
16362 return NULL;
16363 }
16364
16365
16366 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16367 PyObject *resultobj = 0;
16368 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16369 int arg2 ;
16370 void *argp1 = 0 ;
16371 int res1 = 0 ;
16372 int val2 ;
16373 int ecode2 = 0 ;
16374 PyObject * obj0 = 0 ;
16375 PyObject * obj1 = 0 ;
16376 char * kwnames[] = {
16377 (char *) "self",(char *) "n", NULL
16378 };
16379
16380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16382 if (!SWIG_IsOK(res1)) {
16383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16384 }
16385 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16386 ecode2 = SWIG_AsVal_int(obj1, &val2);
16387 if (!SWIG_IsOK(ecode2)) {
16388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16389 }
16390 arg2 = static_cast< int >(val2);
16391 {
16392 PyThreadState* __tstate = wxPyBeginAllowThreads();
16393 (arg1)->SetSelection(arg2);
16394 wxPyEndAllowThreads(__tstate);
16395 if (PyErr_Occurred()) SWIG_fail;
16396 }
16397 resultobj = SWIG_Py_Void();
16398 return resultobj;
16399 fail:
16400 return NULL;
16401 }
16402
16403
16404 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16405 PyObject *resultobj = 0;
16406 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16407 int result;
16408 void *argp1 = 0 ;
16409 int res1 = 0 ;
16410 PyObject *swig_obj[1] ;
16411
16412 if (!args) SWIG_fail;
16413 swig_obj[0] = args;
16414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16415 if (!SWIG_IsOK(res1)) {
16416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16417 }
16418 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16419 {
16420 PyThreadState* __tstate = wxPyBeginAllowThreads();
16421 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16422 wxPyEndAllowThreads(__tstate);
16423 if (PyErr_Occurred()) SWIG_fail;
16424 }
16425 resultobj = SWIG_From_int(static_cast< int >(result));
16426 return resultobj;
16427 fail:
16428 return NULL;
16429 }
16430
16431
16432 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16433 PyObject *resultobj = 0;
16434 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16435 wxString result;
16436 void *argp1 = 0 ;
16437 int res1 = 0 ;
16438 PyObject *swig_obj[1] ;
16439
16440 if (!args) SWIG_fail;
16441 swig_obj[0] = args;
16442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16443 if (!SWIG_IsOK(res1)) {
16444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16445 }
16446 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16447 {
16448 PyThreadState* __tstate = wxPyBeginAllowThreads();
16449 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16450 wxPyEndAllowThreads(__tstate);
16451 if (PyErr_Occurred()) SWIG_fail;
16452 }
16453 {
16454 #if wxUSE_UNICODE
16455 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16456 #else
16457 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16458 #endif
16459 }
16460 return resultobj;
16461 fail:
16462 return NULL;
16463 }
16464
16465
16466 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16467 PyObject *resultobj = 0;
16468 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16469 wxString *arg2 = 0 ;
16470 bool result;
16471 void *argp1 = 0 ;
16472 int res1 = 0 ;
16473 bool temp2 = false ;
16474 PyObject * obj0 = 0 ;
16475 PyObject * obj1 = 0 ;
16476 char * kwnames[] = {
16477 (char *) "self",(char *) "s", NULL
16478 };
16479
16480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16482 if (!SWIG_IsOK(res1)) {
16483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16484 }
16485 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16486 {
16487 arg2 = wxString_in_helper(obj1);
16488 if (arg2 == NULL) SWIG_fail;
16489 temp2 = true;
16490 }
16491 {
16492 PyThreadState* __tstate = wxPyBeginAllowThreads();
16493 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16494 wxPyEndAllowThreads(__tstate);
16495 if (PyErr_Occurred()) SWIG_fail;
16496 }
16497 {
16498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16499 }
16500 {
16501 if (temp2)
16502 delete arg2;
16503 }
16504 return resultobj;
16505 fail:
16506 {
16507 if (temp2)
16508 delete arg2;
16509 }
16510 return NULL;
16511 }
16512
16513
16514 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16515 PyObject *resultobj = 0;
16516 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16517 size_t result;
16518 void *argp1 = 0 ;
16519 int res1 = 0 ;
16520 PyObject *swig_obj[1] ;
16521
16522 if (!args) SWIG_fail;
16523 swig_obj[0] = args;
16524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16525 if (!SWIG_IsOK(res1)) {
16526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16527 }
16528 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16529 {
16530 PyThreadState* __tstate = wxPyBeginAllowThreads();
16531 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16532 wxPyEndAllowThreads(__tstate);
16533 if (PyErr_Occurred()) SWIG_fail;
16534 }
16535 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16536 return resultobj;
16537 fail:
16538 return NULL;
16539 }
16540
16541
16542 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16543 PyObject *resultobj = 0;
16544 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16545 wxString *arg2 = 0 ;
16546 int result;
16547 void *argp1 = 0 ;
16548 int res1 = 0 ;
16549 bool temp2 = false ;
16550 PyObject * obj0 = 0 ;
16551 PyObject * obj1 = 0 ;
16552 char * kwnames[] = {
16553 (char *) "self",(char *) "s", NULL
16554 };
16555
16556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16558 if (!SWIG_IsOK(res1)) {
16559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16560 }
16561 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16562 {
16563 arg2 = wxString_in_helper(obj1);
16564 if (arg2 == NULL) SWIG_fail;
16565 temp2 = true;
16566 }
16567 {
16568 PyThreadState* __tstate = wxPyBeginAllowThreads();
16569 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16570 wxPyEndAllowThreads(__tstate);
16571 if (PyErr_Occurred()) SWIG_fail;
16572 }
16573 resultobj = SWIG_From_int(static_cast< int >(result));
16574 {
16575 if (temp2)
16576 delete arg2;
16577 }
16578 return resultobj;
16579 fail:
16580 {
16581 if (temp2)
16582 delete arg2;
16583 }
16584 return NULL;
16585 }
16586
16587
16588 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16589 PyObject *resultobj = 0;
16590 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16591 int arg2 ;
16592 wxString result;
16593 void *argp1 = 0 ;
16594 int res1 = 0 ;
16595 int val2 ;
16596 int ecode2 = 0 ;
16597 PyObject * obj0 = 0 ;
16598 PyObject * obj1 = 0 ;
16599 char * kwnames[] = {
16600 (char *) "self",(char *) "n", NULL
16601 };
16602
16603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16605 if (!SWIG_IsOK(res1)) {
16606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16607 }
16608 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16609 ecode2 = SWIG_AsVal_int(obj1, &val2);
16610 if (!SWIG_IsOK(ecode2)) {
16611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16612 }
16613 arg2 = static_cast< int >(val2);
16614 {
16615 PyThreadState* __tstate = wxPyBeginAllowThreads();
16616 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16617 wxPyEndAllowThreads(__tstate);
16618 if (PyErr_Occurred()) SWIG_fail;
16619 }
16620 {
16621 #if wxUSE_UNICODE
16622 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16623 #else
16624 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16625 #endif
16626 }
16627 return resultobj;
16628 fail:
16629 return NULL;
16630 }
16631
16632
16633 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16634 PyObject *resultobj = 0;
16635 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16636 int arg2 ;
16637 wxString *arg3 = 0 ;
16638 void *argp1 = 0 ;
16639 int res1 = 0 ;
16640 int val2 ;
16641 int ecode2 = 0 ;
16642 bool temp3 = false ;
16643 PyObject * obj0 = 0 ;
16644 PyObject * obj1 = 0 ;
16645 PyObject * obj2 = 0 ;
16646 char * kwnames[] = {
16647 (char *) "self",(char *) "n",(char *) "label", NULL
16648 };
16649
16650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16652 if (!SWIG_IsOK(res1)) {
16653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16654 }
16655 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16656 ecode2 = SWIG_AsVal_int(obj1, &val2);
16657 if (!SWIG_IsOK(ecode2)) {
16658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16659 }
16660 arg2 = static_cast< int >(val2);
16661 {
16662 arg3 = wxString_in_helper(obj2);
16663 if (arg3 == NULL) SWIG_fail;
16664 temp3 = true;
16665 }
16666 {
16667 PyThreadState* __tstate = wxPyBeginAllowThreads();
16668 (arg1)->SetString(arg2,(wxString const &)*arg3);
16669 wxPyEndAllowThreads(__tstate);
16670 if (PyErr_Occurred()) SWIG_fail;
16671 }
16672 resultobj = SWIG_Py_Void();
16673 {
16674 if (temp3)
16675 delete arg3;
16676 }
16677 return resultobj;
16678 fail:
16679 {
16680 if (temp3)
16681 delete arg3;
16682 }
16683 return NULL;
16684 }
16685
16686
16687 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16688 PyObject *resultobj = 0;
16689 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16690 unsigned int arg2 ;
16691 bool arg3 = (bool) true ;
16692 void *argp1 = 0 ;
16693 int res1 = 0 ;
16694 unsigned int val2 ;
16695 int ecode2 = 0 ;
16696 bool val3 ;
16697 int ecode3 = 0 ;
16698 PyObject * obj0 = 0 ;
16699 PyObject * obj1 = 0 ;
16700 PyObject * obj2 = 0 ;
16701 char * kwnames[] = {
16702 (char *) "self",(char *) "n",(char *) "enable", NULL
16703 };
16704
16705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16707 if (!SWIG_IsOK(res1)) {
16708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16709 }
16710 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16711 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16712 if (!SWIG_IsOK(ecode2)) {
16713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16714 }
16715 arg2 = static_cast< unsigned int >(val2);
16716 if (obj2) {
16717 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16718 if (!SWIG_IsOK(ecode3)) {
16719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16720 }
16721 arg3 = static_cast< bool >(val3);
16722 }
16723 {
16724 PyThreadState* __tstate = wxPyBeginAllowThreads();
16725 (arg1)->Enable(arg2,arg3);
16726 wxPyEndAllowThreads(__tstate);
16727 if (PyErr_Occurred()) SWIG_fail;
16728 }
16729 resultobj = SWIG_Py_Void();
16730 return resultobj;
16731 fail:
16732 return NULL;
16733 }
16734
16735
16736 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16737 PyObject *resultobj = 0;
16738 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16739 unsigned int arg2 ;
16740 bool arg3 = (bool) true ;
16741 void *argp1 = 0 ;
16742 int res1 = 0 ;
16743 unsigned int val2 ;
16744 int ecode2 = 0 ;
16745 bool val3 ;
16746 int ecode3 = 0 ;
16747 PyObject * obj0 = 0 ;
16748 PyObject * obj1 = 0 ;
16749 PyObject * obj2 = 0 ;
16750 char * kwnames[] = {
16751 (char *) "self",(char *) "n",(char *) "show", NULL
16752 };
16753
16754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16756 if (!SWIG_IsOK(res1)) {
16757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16758 }
16759 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16760 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16761 if (!SWIG_IsOK(ecode2)) {
16762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16763 }
16764 arg2 = static_cast< unsigned int >(val2);
16765 if (obj2) {
16766 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16767 if (!SWIG_IsOK(ecode3)) {
16768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16769 }
16770 arg3 = static_cast< bool >(val3);
16771 }
16772 {
16773 PyThreadState* __tstate = wxPyBeginAllowThreads();
16774 (arg1)->Show(arg2,arg3);
16775 wxPyEndAllowThreads(__tstate);
16776 if (PyErr_Occurred()) SWIG_fail;
16777 }
16778 resultobj = SWIG_Py_Void();
16779 return resultobj;
16780 fail:
16781 return NULL;
16782 }
16783
16784
16785 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16786 PyObject *resultobj = 0;
16787 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16788 unsigned int arg2 ;
16789 bool result;
16790 void *argp1 = 0 ;
16791 int res1 = 0 ;
16792 unsigned int val2 ;
16793 int ecode2 = 0 ;
16794 PyObject * obj0 = 0 ;
16795 PyObject * obj1 = 0 ;
16796 char * kwnames[] = {
16797 (char *) "self",(char *) "n", NULL
16798 };
16799
16800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16802 if (!SWIG_IsOK(res1)) {
16803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16804 }
16805 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16806 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16807 if (!SWIG_IsOK(ecode2)) {
16808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16809 }
16810 arg2 = static_cast< unsigned int >(val2);
16811 {
16812 PyThreadState* __tstate = wxPyBeginAllowThreads();
16813 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16814 wxPyEndAllowThreads(__tstate);
16815 if (PyErr_Occurred()) SWIG_fail;
16816 }
16817 {
16818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16819 }
16820 return resultobj;
16821 fail:
16822 return NULL;
16823 }
16824
16825
16826 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16827 PyObject *resultobj = 0;
16828 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16829 unsigned int arg2 ;
16830 bool result;
16831 void *argp1 = 0 ;
16832 int res1 = 0 ;
16833 unsigned int val2 ;
16834 int ecode2 = 0 ;
16835 PyObject * obj0 = 0 ;
16836 PyObject * obj1 = 0 ;
16837 char * kwnames[] = {
16838 (char *) "self",(char *) "n", NULL
16839 };
16840
16841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16843 if (!SWIG_IsOK(res1)) {
16844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16845 }
16846 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16847 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16848 if (!SWIG_IsOK(ecode2)) {
16849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16850 }
16851 arg2 = static_cast< unsigned int >(val2);
16852 {
16853 PyThreadState* __tstate = wxPyBeginAllowThreads();
16854 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16855 wxPyEndAllowThreads(__tstate);
16856 if (PyErr_Occurred()) SWIG_fail;
16857 }
16858 {
16859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16860 }
16861 return resultobj;
16862 fail:
16863 return NULL;
16864 }
16865
16866
16867 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16868 PyObject *resultobj = 0;
16869 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16870 unsigned int result;
16871 void *argp1 = 0 ;
16872 int res1 = 0 ;
16873 PyObject *swig_obj[1] ;
16874
16875 if (!args) SWIG_fail;
16876 swig_obj[0] = args;
16877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16878 if (!SWIG_IsOK(res1)) {
16879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16880 }
16881 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16882 {
16883 PyThreadState* __tstate = wxPyBeginAllowThreads();
16884 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16885 wxPyEndAllowThreads(__tstate);
16886 if (PyErr_Occurred()) SWIG_fail;
16887 }
16888 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16889 return resultobj;
16890 fail:
16891 return NULL;
16892 }
16893
16894
16895 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16896 PyObject *resultobj = 0;
16897 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16898 unsigned int result;
16899 void *argp1 = 0 ;
16900 int res1 = 0 ;
16901 PyObject *swig_obj[1] ;
16902
16903 if (!args) SWIG_fail;
16904 swig_obj[0] = args;
16905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16906 if (!SWIG_IsOK(res1)) {
16907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16908 }
16909 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16910 {
16911 PyThreadState* __tstate = wxPyBeginAllowThreads();
16912 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16913 wxPyEndAllowThreads(__tstate);
16914 if (PyErr_Occurred()) SWIG_fail;
16915 }
16916 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16917 return resultobj;
16918 fail:
16919 return NULL;
16920 }
16921
16922
16923 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16924 PyObject *resultobj = 0;
16925 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16926 int arg2 ;
16927 wxDirection arg3 ;
16928 long arg4 ;
16929 int result;
16930 void *argp1 = 0 ;
16931 int res1 = 0 ;
16932 int val2 ;
16933 int ecode2 = 0 ;
16934 int val3 ;
16935 int ecode3 = 0 ;
16936 long val4 ;
16937 int ecode4 = 0 ;
16938 PyObject * obj0 = 0 ;
16939 PyObject * obj1 = 0 ;
16940 PyObject * obj2 = 0 ;
16941 PyObject * obj3 = 0 ;
16942 char * kwnames[] = {
16943 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16944 };
16945
16946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16948 if (!SWIG_IsOK(res1)) {
16949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16950 }
16951 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16952 ecode2 = SWIG_AsVal_int(obj1, &val2);
16953 if (!SWIG_IsOK(ecode2)) {
16954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16955 }
16956 arg2 = static_cast< int >(val2);
16957 ecode3 = SWIG_AsVal_int(obj2, &val3);
16958 if (!SWIG_IsOK(ecode3)) {
16959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16960 }
16961 arg3 = static_cast< wxDirection >(val3);
16962 ecode4 = SWIG_AsVal_long(obj3, &val4);
16963 if (!SWIG_IsOK(ecode4)) {
16964 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16965 }
16966 arg4 = static_cast< long >(val4);
16967 {
16968 PyThreadState* __tstate = wxPyBeginAllowThreads();
16969 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16970 wxPyEndAllowThreads(__tstate);
16971 if (PyErr_Occurred()) SWIG_fail;
16972 }
16973 resultobj = SWIG_From_int(static_cast< int >(result));
16974 return resultobj;
16975 fail:
16976 return NULL;
16977 }
16978
16979
16980 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16981 PyObject *resultobj = 0;
16982 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16983 unsigned int arg2 ;
16984 wxString *arg3 = 0 ;
16985 void *argp1 = 0 ;
16986 int res1 = 0 ;
16987 unsigned int val2 ;
16988 int ecode2 = 0 ;
16989 bool temp3 = false ;
16990 PyObject * obj0 = 0 ;
16991 PyObject * obj1 = 0 ;
16992 PyObject * obj2 = 0 ;
16993 char * kwnames[] = {
16994 (char *) "self",(char *) "item",(char *) "text", NULL
16995 };
16996
16997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16999 if (!SWIG_IsOK(res1)) {
17000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17001 }
17002 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17003 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17004 if (!SWIG_IsOK(ecode2)) {
17005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17006 }
17007 arg2 = static_cast< unsigned int >(val2);
17008 {
17009 arg3 = wxString_in_helper(obj2);
17010 if (arg3 == NULL) SWIG_fail;
17011 temp3 = true;
17012 }
17013 {
17014 PyThreadState* __tstate = wxPyBeginAllowThreads();
17015 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17016 wxPyEndAllowThreads(__tstate);
17017 if (PyErr_Occurred()) SWIG_fail;
17018 }
17019 resultobj = SWIG_Py_Void();
17020 {
17021 if (temp3)
17022 delete arg3;
17023 }
17024 return resultobj;
17025 fail:
17026 {
17027 if (temp3)
17028 delete arg3;
17029 }
17030 return NULL;
17031 }
17032
17033
17034 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17035 PyObject *resultobj = 0;
17036 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17037 unsigned int arg2 ;
17038 wxToolTip *result = 0 ;
17039 void *argp1 = 0 ;
17040 int res1 = 0 ;
17041 unsigned int val2 ;
17042 int ecode2 = 0 ;
17043 PyObject * obj0 = 0 ;
17044 PyObject * obj1 = 0 ;
17045 char * kwnames[] = {
17046 (char *) "self",(char *) "item", NULL
17047 };
17048
17049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17051 if (!SWIG_IsOK(res1)) {
17052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17053 }
17054 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17055 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17056 if (!SWIG_IsOK(ecode2)) {
17057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17058 }
17059 arg2 = static_cast< unsigned int >(val2);
17060 {
17061 PyThreadState* __tstate = wxPyBeginAllowThreads();
17062 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17063 wxPyEndAllowThreads(__tstate);
17064 if (PyErr_Occurred()) SWIG_fail;
17065 }
17066 {
17067 resultobj = wxPyMake_wxObject(result, (bool)0);
17068 }
17069 return resultobj;
17070 fail:
17071 return NULL;
17072 }
17073
17074
17075 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17076 PyObject *resultobj = 0;
17077 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17078 unsigned int arg2 ;
17079 wxString *arg3 = 0 ;
17080 void *argp1 = 0 ;
17081 int res1 = 0 ;
17082 unsigned int val2 ;
17083 int ecode2 = 0 ;
17084 bool temp3 = false ;
17085 PyObject * obj0 = 0 ;
17086 PyObject * obj1 = 0 ;
17087 PyObject * obj2 = 0 ;
17088 char * kwnames[] = {
17089 (char *) "self",(char *) "n",(char *) "helpText", NULL
17090 };
17091
17092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17094 if (!SWIG_IsOK(res1)) {
17095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17096 }
17097 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17098 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17099 if (!SWIG_IsOK(ecode2)) {
17100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17101 }
17102 arg2 = static_cast< unsigned int >(val2);
17103 {
17104 arg3 = wxString_in_helper(obj2);
17105 if (arg3 == NULL) SWIG_fail;
17106 temp3 = true;
17107 }
17108 {
17109 PyThreadState* __tstate = wxPyBeginAllowThreads();
17110 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17111 wxPyEndAllowThreads(__tstate);
17112 if (PyErr_Occurred()) SWIG_fail;
17113 }
17114 resultobj = SWIG_Py_Void();
17115 {
17116 if (temp3)
17117 delete arg3;
17118 }
17119 return resultobj;
17120 fail:
17121 {
17122 if (temp3)
17123 delete arg3;
17124 }
17125 return NULL;
17126 }
17127
17128
17129 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17130 PyObject *resultobj = 0;
17131 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17132 unsigned int arg2 ;
17133 wxString result;
17134 void *argp1 = 0 ;
17135 int res1 = 0 ;
17136 unsigned int val2 ;
17137 int ecode2 = 0 ;
17138 PyObject * obj0 = 0 ;
17139 PyObject * obj1 = 0 ;
17140 char * kwnames[] = {
17141 (char *) "self",(char *) "n", NULL
17142 };
17143
17144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17146 if (!SWIG_IsOK(res1)) {
17147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17148 }
17149 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17150 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17151 if (!SWIG_IsOK(ecode2)) {
17152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17153 }
17154 arg2 = static_cast< unsigned int >(val2);
17155 {
17156 PyThreadState* __tstate = wxPyBeginAllowThreads();
17157 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17158 wxPyEndAllowThreads(__tstate);
17159 if (PyErr_Occurred()) SWIG_fail;
17160 }
17161 {
17162 #if wxUSE_UNICODE
17163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17164 #else
17165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17166 #endif
17167 }
17168 return resultobj;
17169 fail:
17170 return NULL;
17171 }
17172
17173
17174 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17175 PyObject *resultobj = 0;
17176 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17177 SwigValueWrapper<wxVisualAttributes > result;
17178 int val1 ;
17179 int ecode1 = 0 ;
17180 PyObject * obj0 = 0 ;
17181 char * kwnames[] = {
17182 (char *) "variant", NULL
17183 };
17184
17185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17186 if (obj0) {
17187 ecode1 = SWIG_AsVal_int(obj0, &val1);
17188 if (!SWIG_IsOK(ecode1)) {
17189 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17190 }
17191 arg1 = static_cast< wxWindowVariant >(val1);
17192 }
17193 {
17194 if (!wxPyCheckForApp()) SWIG_fail;
17195 PyThreadState* __tstate = wxPyBeginAllowThreads();
17196 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17197 wxPyEndAllowThreads(__tstate);
17198 if (PyErr_Occurred()) SWIG_fail;
17199 }
17200 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17201 return resultobj;
17202 fail:
17203 return NULL;
17204 }
17205
17206
17207 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17208 PyObject *obj;
17209 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17210 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17211 return SWIG_Py_Void();
17212 }
17213
17214 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17215 return SWIG_Python_InitShadowInstance(args);
17216 }
17217
17218 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17219 PyObject *resultobj = 0;
17220 wxWindow *arg1 = (wxWindow *) 0 ;
17221 int arg2 = (int) -1 ;
17222 wxString const &arg3_defvalue = wxPyEmptyString ;
17223 wxString *arg3 = (wxString *) &arg3_defvalue ;
17224 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17225 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17226 wxSize const &arg5_defvalue = wxDefaultSize ;
17227 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17228 long arg6 = (long) 0 ;
17229 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17230 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17231 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17232 wxString *arg8 = (wxString *) &arg8_defvalue ;
17233 wxRadioButton *result = 0 ;
17234 void *argp1 = 0 ;
17235 int res1 = 0 ;
17236 int val2 ;
17237 int ecode2 = 0 ;
17238 bool temp3 = false ;
17239 wxPoint temp4 ;
17240 wxSize temp5 ;
17241 long val6 ;
17242 int ecode6 = 0 ;
17243 void *argp7 = 0 ;
17244 int res7 = 0 ;
17245 bool temp8 = false ;
17246 PyObject * obj0 = 0 ;
17247 PyObject * obj1 = 0 ;
17248 PyObject * obj2 = 0 ;
17249 PyObject * obj3 = 0 ;
17250 PyObject * obj4 = 0 ;
17251 PyObject * obj5 = 0 ;
17252 PyObject * obj6 = 0 ;
17253 PyObject * obj7 = 0 ;
17254 char * kwnames[] = {
17255 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17256 };
17257
17258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17260 if (!SWIG_IsOK(res1)) {
17261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17262 }
17263 arg1 = reinterpret_cast< wxWindow * >(argp1);
17264 if (obj1) {
17265 ecode2 = SWIG_AsVal_int(obj1, &val2);
17266 if (!SWIG_IsOK(ecode2)) {
17267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17268 }
17269 arg2 = static_cast< int >(val2);
17270 }
17271 if (obj2) {
17272 {
17273 arg3 = wxString_in_helper(obj2);
17274 if (arg3 == NULL) SWIG_fail;
17275 temp3 = true;
17276 }
17277 }
17278 if (obj3) {
17279 {
17280 arg4 = &temp4;
17281 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17282 }
17283 }
17284 if (obj4) {
17285 {
17286 arg5 = &temp5;
17287 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17288 }
17289 }
17290 if (obj5) {
17291 ecode6 = SWIG_AsVal_long(obj5, &val6);
17292 if (!SWIG_IsOK(ecode6)) {
17293 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17294 }
17295 arg6 = static_cast< long >(val6);
17296 }
17297 if (obj6) {
17298 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17299 if (!SWIG_IsOK(res7)) {
17300 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17301 }
17302 if (!argp7) {
17303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17304 }
17305 arg7 = reinterpret_cast< wxValidator * >(argp7);
17306 }
17307 if (obj7) {
17308 {
17309 arg8 = wxString_in_helper(obj7);
17310 if (arg8 == NULL) SWIG_fail;
17311 temp8 = true;
17312 }
17313 }
17314 {
17315 if (!wxPyCheckForApp()) SWIG_fail;
17316 PyThreadState* __tstate = wxPyBeginAllowThreads();
17317 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17318 wxPyEndAllowThreads(__tstate);
17319 if (PyErr_Occurred()) SWIG_fail;
17320 }
17321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17322 {
17323 if (temp3)
17324 delete arg3;
17325 }
17326 {
17327 if (temp8)
17328 delete arg8;
17329 }
17330 return resultobj;
17331 fail:
17332 {
17333 if (temp3)
17334 delete arg3;
17335 }
17336 {
17337 if (temp8)
17338 delete arg8;
17339 }
17340 return NULL;
17341 }
17342
17343
17344 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17345 PyObject *resultobj = 0;
17346 wxRadioButton *result = 0 ;
17347
17348 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17349 {
17350 if (!wxPyCheckForApp()) SWIG_fail;
17351 PyThreadState* __tstate = wxPyBeginAllowThreads();
17352 result = (wxRadioButton *)new wxRadioButton();
17353 wxPyEndAllowThreads(__tstate);
17354 if (PyErr_Occurred()) SWIG_fail;
17355 }
17356 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17357 return resultobj;
17358 fail:
17359 return NULL;
17360 }
17361
17362
17363 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17364 PyObject *resultobj = 0;
17365 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17366 wxWindow *arg2 = (wxWindow *) 0 ;
17367 int arg3 = (int) -1 ;
17368 wxString const &arg4_defvalue = wxPyEmptyString ;
17369 wxString *arg4 = (wxString *) &arg4_defvalue ;
17370 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17371 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17372 wxSize const &arg6_defvalue = wxDefaultSize ;
17373 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17374 long arg7 = (long) 0 ;
17375 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17376 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17377 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17378 wxString *arg9 = (wxString *) &arg9_defvalue ;
17379 bool result;
17380 void *argp1 = 0 ;
17381 int res1 = 0 ;
17382 void *argp2 = 0 ;
17383 int res2 = 0 ;
17384 int val3 ;
17385 int ecode3 = 0 ;
17386 bool temp4 = false ;
17387 wxPoint temp5 ;
17388 wxSize temp6 ;
17389 long val7 ;
17390 int ecode7 = 0 ;
17391 void *argp8 = 0 ;
17392 int res8 = 0 ;
17393 bool temp9 = false ;
17394 PyObject * obj0 = 0 ;
17395 PyObject * obj1 = 0 ;
17396 PyObject * obj2 = 0 ;
17397 PyObject * obj3 = 0 ;
17398 PyObject * obj4 = 0 ;
17399 PyObject * obj5 = 0 ;
17400 PyObject * obj6 = 0 ;
17401 PyObject * obj7 = 0 ;
17402 PyObject * obj8 = 0 ;
17403 char * kwnames[] = {
17404 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17405 };
17406
17407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17409 if (!SWIG_IsOK(res1)) {
17410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17411 }
17412 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17413 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17414 if (!SWIG_IsOK(res2)) {
17415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17416 }
17417 arg2 = reinterpret_cast< wxWindow * >(argp2);
17418 if (obj2) {
17419 ecode3 = SWIG_AsVal_int(obj2, &val3);
17420 if (!SWIG_IsOK(ecode3)) {
17421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17422 }
17423 arg3 = static_cast< int >(val3);
17424 }
17425 if (obj3) {
17426 {
17427 arg4 = wxString_in_helper(obj3);
17428 if (arg4 == NULL) SWIG_fail;
17429 temp4 = true;
17430 }
17431 }
17432 if (obj4) {
17433 {
17434 arg5 = &temp5;
17435 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17436 }
17437 }
17438 if (obj5) {
17439 {
17440 arg6 = &temp6;
17441 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17442 }
17443 }
17444 if (obj6) {
17445 ecode7 = SWIG_AsVal_long(obj6, &val7);
17446 if (!SWIG_IsOK(ecode7)) {
17447 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17448 }
17449 arg7 = static_cast< long >(val7);
17450 }
17451 if (obj7) {
17452 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17453 if (!SWIG_IsOK(res8)) {
17454 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17455 }
17456 if (!argp8) {
17457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17458 }
17459 arg8 = reinterpret_cast< wxValidator * >(argp8);
17460 }
17461 if (obj8) {
17462 {
17463 arg9 = wxString_in_helper(obj8);
17464 if (arg9 == NULL) SWIG_fail;
17465 temp9 = true;
17466 }
17467 }
17468 {
17469 PyThreadState* __tstate = wxPyBeginAllowThreads();
17470 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17471 wxPyEndAllowThreads(__tstate);
17472 if (PyErr_Occurred()) SWIG_fail;
17473 }
17474 {
17475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17476 }
17477 {
17478 if (temp4)
17479 delete arg4;
17480 }
17481 {
17482 if (temp9)
17483 delete arg9;
17484 }
17485 return resultobj;
17486 fail:
17487 {
17488 if (temp4)
17489 delete arg4;
17490 }
17491 {
17492 if (temp9)
17493 delete arg9;
17494 }
17495 return NULL;
17496 }
17497
17498
17499 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17500 PyObject *resultobj = 0;
17501 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17502 bool result;
17503 void *argp1 = 0 ;
17504 int res1 = 0 ;
17505 PyObject *swig_obj[1] ;
17506
17507 if (!args) SWIG_fail;
17508 swig_obj[0] = args;
17509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17510 if (!SWIG_IsOK(res1)) {
17511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17512 }
17513 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17514 {
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 result = (bool)(arg1)->GetValue();
17517 wxPyEndAllowThreads(__tstate);
17518 if (PyErr_Occurred()) SWIG_fail;
17519 }
17520 {
17521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17522 }
17523 return resultobj;
17524 fail:
17525 return NULL;
17526 }
17527
17528
17529 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17530 PyObject *resultobj = 0;
17531 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17532 bool arg2 ;
17533 void *argp1 = 0 ;
17534 int res1 = 0 ;
17535 bool val2 ;
17536 int ecode2 = 0 ;
17537 PyObject * obj0 = 0 ;
17538 PyObject * obj1 = 0 ;
17539 char * kwnames[] = {
17540 (char *) "self",(char *) "value", NULL
17541 };
17542
17543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17545 if (!SWIG_IsOK(res1)) {
17546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17547 }
17548 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17549 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17550 if (!SWIG_IsOK(ecode2)) {
17551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17552 }
17553 arg2 = static_cast< bool >(val2);
17554 {
17555 PyThreadState* __tstate = wxPyBeginAllowThreads();
17556 (arg1)->SetValue(arg2);
17557 wxPyEndAllowThreads(__tstate);
17558 if (PyErr_Occurred()) SWIG_fail;
17559 }
17560 resultobj = SWIG_Py_Void();
17561 return resultobj;
17562 fail:
17563 return NULL;
17564 }
17565
17566
17567 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17568 PyObject *resultobj = 0;
17569 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17570 SwigValueWrapper<wxVisualAttributes > result;
17571 int val1 ;
17572 int ecode1 = 0 ;
17573 PyObject * obj0 = 0 ;
17574 char * kwnames[] = {
17575 (char *) "variant", NULL
17576 };
17577
17578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17579 if (obj0) {
17580 ecode1 = SWIG_AsVal_int(obj0, &val1);
17581 if (!SWIG_IsOK(ecode1)) {
17582 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17583 }
17584 arg1 = static_cast< wxWindowVariant >(val1);
17585 }
17586 {
17587 if (!wxPyCheckForApp()) SWIG_fail;
17588 PyThreadState* __tstate = wxPyBeginAllowThreads();
17589 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17590 wxPyEndAllowThreads(__tstate);
17591 if (PyErr_Occurred()) SWIG_fail;
17592 }
17593 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17594 return resultobj;
17595 fail:
17596 return NULL;
17597 }
17598
17599
17600 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17601 PyObject *obj;
17602 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17603 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17604 return SWIG_Py_Void();
17605 }
17606
17607 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17608 return SWIG_Python_InitShadowInstance(args);
17609 }
17610
17611 SWIGINTERN int SliderNameStr_set(PyObject *) {
17612 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17613 return 1;
17614 }
17615
17616
17617 SWIGINTERN PyObject *SliderNameStr_get(void) {
17618 PyObject *pyobj = 0;
17619
17620 {
17621 #if wxUSE_UNICODE
17622 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17623 #else
17624 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17625 #endif
17626 }
17627 return pyobj;
17628 }
17629
17630
17631 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17632 PyObject *resultobj = 0;
17633 wxWindow *arg1 = (wxWindow *) 0 ;
17634 int arg2 = (int) -1 ;
17635 int arg3 = (int) 0 ;
17636 int arg4 = (int) 0 ;
17637 int arg5 = (int) 100 ;
17638 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17639 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17640 wxSize const &arg7_defvalue = wxDefaultSize ;
17641 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17642 long arg8 = (long) wxSL_HORIZONTAL ;
17643 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17644 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17645 wxString const &arg10_defvalue = wxPySliderNameStr ;
17646 wxString *arg10 = (wxString *) &arg10_defvalue ;
17647 wxSlider *result = 0 ;
17648 void *argp1 = 0 ;
17649 int res1 = 0 ;
17650 int val2 ;
17651 int ecode2 = 0 ;
17652 int val3 ;
17653 int ecode3 = 0 ;
17654 int val4 ;
17655 int ecode4 = 0 ;
17656 int val5 ;
17657 int ecode5 = 0 ;
17658 wxPoint temp6 ;
17659 wxSize temp7 ;
17660 long val8 ;
17661 int ecode8 = 0 ;
17662 void *argp9 = 0 ;
17663 int res9 = 0 ;
17664 bool temp10 = false ;
17665 PyObject * obj0 = 0 ;
17666 PyObject * obj1 = 0 ;
17667 PyObject * obj2 = 0 ;
17668 PyObject * obj3 = 0 ;
17669 PyObject * obj4 = 0 ;
17670 PyObject * obj5 = 0 ;
17671 PyObject * obj6 = 0 ;
17672 PyObject * obj7 = 0 ;
17673 PyObject * obj8 = 0 ;
17674 PyObject * obj9 = 0 ;
17675 char * kwnames[] = {
17676 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17677 };
17678
17679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17681 if (!SWIG_IsOK(res1)) {
17682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17683 }
17684 arg1 = reinterpret_cast< wxWindow * >(argp1);
17685 if (obj1) {
17686 ecode2 = SWIG_AsVal_int(obj1, &val2);
17687 if (!SWIG_IsOK(ecode2)) {
17688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17689 }
17690 arg2 = static_cast< int >(val2);
17691 }
17692 if (obj2) {
17693 ecode3 = SWIG_AsVal_int(obj2, &val3);
17694 if (!SWIG_IsOK(ecode3)) {
17695 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17696 }
17697 arg3 = static_cast< int >(val3);
17698 }
17699 if (obj3) {
17700 ecode4 = SWIG_AsVal_int(obj3, &val4);
17701 if (!SWIG_IsOK(ecode4)) {
17702 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17703 }
17704 arg4 = static_cast< int >(val4);
17705 }
17706 if (obj4) {
17707 ecode5 = SWIG_AsVal_int(obj4, &val5);
17708 if (!SWIG_IsOK(ecode5)) {
17709 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17710 }
17711 arg5 = static_cast< int >(val5);
17712 }
17713 if (obj5) {
17714 {
17715 arg6 = &temp6;
17716 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17717 }
17718 }
17719 if (obj6) {
17720 {
17721 arg7 = &temp7;
17722 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17723 }
17724 }
17725 if (obj7) {
17726 ecode8 = SWIG_AsVal_long(obj7, &val8);
17727 if (!SWIG_IsOK(ecode8)) {
17728 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17729 }
17730 arg8 = static_cast< long >(val8);
17731 }
17732 if (obj8) {
17733 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17734 if (!SWIG_IsOK(res9)) {
17735 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17736 }
17737 if (!argp9) {
17738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17739 }
17740 arg9 = reinterpret_cast< wxValidator * >(argp9);
17741 }
17742 if (obj9) {
17743 {
17744 arg10 = wxString_in_helper(obj9);
17745 if (arg10 == NULL) SWIG_fail;
17746 temp10 = true;
17747 }
17748 }
17749 {
17750 if (!wxPyCheckForApp()) SWIG_fail;
17751 PyThreadState* __tstate = wxPyBeginAllowThreads();
17752 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17753 wxPyEndAllowThreads(__tstate);
17754 if (PyErr_Occurred()) SWIG_fail;
17755 }
17756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17757 {
17758 if (temp10)
17759 delete arg10;
17760 }
17761 return resultobj;
17762 fail:
17763 {
17764 if (temp10)
17765 delete arg10;
17766 }
17767 return NULL;
17768 }
17769
17770
17771 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17772 PyObject *resultobj = 0;
17773 wxSlider *result = 0 ;
17774
17775 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17776 {
17777 if (!wxPyCheckForApp()) SWIG_fail;
17778 PyThreadState* __tstate = wxPyBeginAllowThreads();
17779 result = (wxSlider *)new wxSlider();
17780 wxPyEndAllowThreads(__tstate);
17781 if (PyErr_Occurred()) SWIG_fail;
17782 }
17783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17784 return resultobj;
17785 fail:
17786 return NULL;
17787 }
17788
17789
17790 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17791 PyObject *resultobj = 0;
17792 wxSlider *arg1 = (wxSlider *) 0 ;
17793 wxWindow *arg2 = (wxWindow *) 0 ;
17794 int arg3 = (int) -1 ;
17795 int arg4 = (int) 0 ;
17796 int arg5 = (int) 0 ;
17797 int arg6 = (int) 100 ;
17798 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17799 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17800 wxSize const &arg8_defvalue = wxDefaultSize ;
17801 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17802 long arg9 = (long) wxSL_HORIZONTAL ;
17803 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17804 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17805 wxString const &arg11_defvalue = wxPySliderNameStr ;
17806 wxString *arg11 = (wxString *) &arg11_defvalue ;
17807 bool result;
17808 void *argp1 = 0 ;
17809 int res1 = 0 ;
17810 void *argp2 = 0 ;
17811 int res2 = 0 ;
17812 int val3 ;
17813 int ecode3 = 0 ;
17814 int val4 ;
17815 int ecode4 = 0 ;
17816 int val5 ;
17817 int ecode5 = 0 ;
17818 int val6 ;
17819 int ecode6 = 0 ;
17820 wxPoint temp7 ;
17821 wxSize temp8 ;
17822 long val9 ;
17823 int ecode9 = 0 ;
17824 void *argp10 = 0 ;
17825 int res10 = 0 ;
17826 bool temp11 = false ;
17827 PyObject * obj0 = 0 ;
17828 PyObject * obj1 = 0 ;
17829 PyObject * obj2 = 0 ;
17830 PyObject * obj3 = 0 ;
17831 PyObject * obj4 = 0 ;
17832 PyObject * obj5 = 0 ;
17833 PyObject * obj6 = 0 ;
17834 PyObject * obj7 = 0 ;
17835 PyObject * obj8 = 0 ;
17836 PyObject * obj9 = 0 ;
17837 PyObject * obj10 = 0 ;
17838 char * kwnames[] = {
17839 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17840 };
17841
17842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17844 if (!SWIG_IsOK(res1)) {
17845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17846 }
17847 arg1 = reinterpret_cast< wxSlider * >(argp1);
17848 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17849 if (!SWIG_IsOK(res2)) {
17850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17851 }
17852 arg2 = reinterpret_cast< wxWindow * >(argp2);
17853 if (obj2) {
17854 ecode3 = SWIG_AsVal_int(obj2, &val3);
17855 if (!SWIG_IsOK(ecode3)) {
17856 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17857 }
17858 arg3 = static_cast< int >(val3);
17859 }
17860 if (obj3) {
17861 ecode4 = SWIG_AsVal_int(obj3, &val4);
17862 if (!SWIG_IsOK(ecode4)) {
17863 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17864 }
17865 arg4 = static_cast< int >(val4);
17866 }
17867 if (obj4) {
17868 ecode5 = SWIG_AsVal_int(obj4, &val5);
17869 if (!SWIG_IsOK(ecode5)) {
17870 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17871 }
17872 arg5 = static_cast< int >(val5);
17873 }
17874 if (obj5) {
17875 ecode6 = SWIG_AsVal_int(obj5, &val6);
17876 if (!SWIG_IsOK(ecode6)) {
17877 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17878 }
17879 arg6 = static_cast< int >(val6);
17880 }
17881 if (obj6) {
17882 {
17883 arg7 = &temp7;
17884 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17885 }
17886 }
17887 if (obj7) {
17888 {
17889 arg8 = &temp8;
17890 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17891 }
17892 }
17893 if (obj8) {
17894 ecode9 = SWIG_AsVal_long(obj8, &val9);
17895 if (!SWIG_IsOK(ecode9)) {
17896 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17897 }
17898 arg9 = static_cast< long >(val9);
17899 }
17900 if (obj9) {
17901 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17902 if (!SWIG_IsOK(res10)) {
17903 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17904 }
17905 if (!argp10) {
17906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17907 }
17908 arg10 = reinterpret_cast< wxValidator * >(argp10);
17909 }
17910 if (obj10) {
17911 {
17912 arg11 = wxString_in_helper(obj10);
17913 if (arg11 == NULL) SWIG_fail;
17914 temp11 = true;
17915 }
17916 }
17917 {
17918 PyThreadState* __tstate = wxPyBeginAllowThreads();
17919 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17920 wxPyEndAllowThreads(__tstate);
17921 if (PyErr_Occurred()) SWIG_fail;
17922 }
17923 {
17924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17925 }
17926 {
17927 if (temp11)
17928 delete arg11;
17929 }
17930 return resultobj;
17931 fail:
17932 {
17933 if (temp11)
17934 delete arg11;
17935 }
17936 return NULL;
17937 }
17938
17939
17940 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17941 PyObject *resultobj = 0;
17942 wxSlider *arg1 = (wxSlider *) 0 ;
17943 int result;
17944 void *argp1 = 0 ;
17945 int res1 = 0 ;
17946 PyObject *swig_obj[1] ;
17947
17948 if (!args) SWIG_fail;
17949 swig_obj[0] = args;
17950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17951 if (!SWIG_IsOK(res1)) {
17952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17953 }
17954 arg1 = reinterpret_cast< wxSlider * >(argp1);
17955 {
17956 PyThreadState* __tstate = wxPyBeginAllowThreads();
17957 result = (int)((wxSlider const *)arg1)->GetValue();
17958 wxPyEndAllowThreads(__tstate);
17959 if (PyErr_Occurred()) SWIG_fail;
17960 }
17961 resultobj = SWIG_From_int(static_cast< int >(result));
17962 return resultobj;
17963 fail:
17964 return NULL;
17965 }
17966
17967
17968 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17969 PyObject *resultobj = 0;
17970 wxSlider *arg1 = (wxSlider *) 0 ;
17971 int arg2 ;
17972 void *argp1 = 0 ;
17973 int res1 = 0 ;
17974 int val2 ;
17975 int ecode2 = 0 ;
17976 PyObject * obj0 = 0 ;
17977 PyObject * obj1 = 0 ;
17978 char * kwnames[] = {
17979 (char *) "self",(char *) "value", NULL
17980 };
17981
17982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17984 if (!SWIG_IsOK(res1)) {
17985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17986 }
17987 arg1 = reinterpret_cast< wxSlider * >(argp1);
17988 ecode2 = SWIG_AsVal_int(obj1, &val2);
17989 if (!SWIG_IsOK(ecode2)) {
17990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17991 }
17992 arg2 = static_cast< int >(val2);
17993 {
17994 PyThreadState* __tstate = wxPyBeginAllowThreads();
17995 (arg1)->SetValue(arg2);
17996 wxPyEndAllowThreads(__tstate);
17997 if (PyErr_Occurred()) SWIG_fail;
17998 }
17999 resultobj = SWIG_Py_Void();
18000 return resultobj;
18001 fail:
18002 return NULL;
18003 }
18004
18005
18006 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18007 PyObject *resultobj = 0;
18008 wxSlider *arg1 = (wxSlider *) 0 ;
18009 int arg2 ;
18010 int arg3 ;
18011 void *argp1 = 0 ;
18012 int res1 = 0 ;
18013 int val2 ;
18014 int ecode2 = 0 ;
18015 int val3 ;
18016 int ecode3 = 0 ;
18017 PyObject * obj0 = 0 ;
18018 PyObject * obj1 = 0 ;
18019 PyObject * obj2 = 0 ;
18020 char * kwnames[] = {
18021 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18022 };
18023
18024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18026 if (!SWIG_IsOK(res1)) {
18027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18028 }
18029 arg1 = reinterpret_cast< wxSlider * >(argp1);
18030 ecode2 = SWIG_AsVal_int(obj1, &val2);
18031 if (!SWIG_IsOK(ecode2)) {
18032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18033 }
18034 arg2 = static_cast< int >(val2);
18035 ecode3 = SWIG_AsVal_int(obj2, &val3);
18036 if (!SWIG_IsOK(ecode3)) {
18037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18038 }
18039 arg3 = static_cast< int >(val3);
18040 {
18041 PyThreadState* __tstate = wxPyBeginAllowThreads();
18042 (arg1)->SetRange(arg2,arg3);
18043 wxPyEndAllowThreads(__tstate);
18044 if (PyErr_Occurred()) SWIG_fail;
18045 }
18046 resultobj = SWIG_Py_Void();
18047 return resultobj;
18048 fail:
18049 return NULL;
18050 }
18051
18052
18053 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18054 PyObject *resultobj = 0;
18055 wxSlider *arg1 = (wxSlider *) 0 ;
18056 int result;
18057 void *argp1 = 0 ;
18058 int res1 = 0 ;
18059 PyObject *swig_obj[1] ;
18060
18061 if (!args) SWIG_fail;
18062 swig_obj[0] = args;
18063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18064 if (!SWIG_IsOK(res1)) {
18065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18066 }
18067 arg1 = reinterpret_cast< wxSlider * >(argp1);
18068 {
18069 PyThreadState* __tstate = wxPyBeginAllowThreads();
18070 result = (int)((wxSlider const *)arg1)->GetMin();
18071 wxPyEndAllowThreads(__tstate);
18072 if (PyErr_Occurred()) SWIG_fail;
18073 }
18074 resultobj = SWIG_From_int(static_cast< int >(result));
18075 return resultobj;
18076 fail:
18077 return NULL;
18078 }
18079
18080
18081 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18082 PyObject *resultobj = 0;
18083 wxSlider *arg1 = (wxSlider *) 0 ;
18084 int result;
18085 void *argp1 = 0 ;
18086 int res1 = 0 ;
18087 PyObject *swig_obj[1] ;
18088
18089 if (!args) SWIG_fail;
18090 swig_obj[0] = args;
18091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18092 if (!SWIG_IsOK(res1)) {
18093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18094 }
18095 arg1 = reinterpret_cast< wxSlider * >(argp1);
18096 {
18097 PyThreadState* __tstate = wxPyBeginAllowThreads();
18098 result = (int)((wxSlider const *)arg1)->GetMax();
18099 wxPyEndAllowThreads(__tstate);
18100 if (PyErr_Occurred()) SWIG_fail;
18101 }
18102 resultobj = SWIG_From_int(static_cast< int >(result));
18103 return resultobj;
18104 fail:
18105 return NULL;
18106 }
18107
18108
18109 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18110 PyObject *resultobj = 0;
18111 wxSlider *arg1 = (wxSlider *) 0 ;
18112 int arg2 ;
18113 void *argp1 = 0 ;
18114 int res1 = 0 ;
18115 int val2 ;
18116 int ecode2 = 0 ;
18117 PyObject * obj0 = 0 ;
18118 PyObject * obj1 = 0 ;
18119 char * kwnames[] = {
18120 (char *) "self",(char *) "minValue", NULL
18121 };
18122
18123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18125 if (!SWIG_IsOK(res1)) {
18126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18127 }
18128 arg1 = reinterpret_cast< wxSlider * >(argp1);
18129 ecode2 = SWIG_AsVal_int(obj1, &val2);
18130 if (!SWIG_IsOK(ecode2)) {
18131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18132 }
18133 arg2 = static_cast< int >(val2);
18134 {
18135 PyThreadState* __tstate = wxPyBeginAllowThreads();
18136 (arg1)->SetMin(arg2);
18137 wxPyEndAllowThreads(__tstate);
18138 if (PyErr_Occurred()) SWIG_fail;
18139 }
18140 resultobj = SWIG_Py_Void();
18141 return resultobj;
18142 fail:
18143 return NULL;
18144 }
18145
18146
18147 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18148 PyObject *resultobj = 0;
18149 wxSlider *arg1 = (wxSlider *) 0 ;
18150 int arg2 ;
18151 void *argp1 = 0 ;
18152 int res1 = 0 ;
18153 int val2 ;
18154 int ecode2 = 0 ;
18155 PyObject * obj0 = 0 ;
18156 PyObject * obj1 = 0 ;
18157 char * kwnames[] = {
18158 (char *) "self",(char *) "maxValue", NULL
18159 };
18160
18161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18163 if (!SWIG_IsOK(res1)) {
18164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18165 }
18166 arg1 = reinterpret_cast< wxSlider * >(argp1);
18167 ecode2 = SWIG_AsVal_int(obj1, &val2);
18168 if (!SWIG_IsOK(ecode2)) {
18169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18170 }
18171 arg2 = static_cast< int >(val2);
18172 {
18173 PyThreadState* __tstate = wxPyBeginAllowThreads();
18174 (arg1)->SetMax(arg2);
18175 wxPyEndAllowThreads(__tstate);
18176 if (PyErr_Occurred()) SWIG_fail;
18177 }
18178 resultobj = SWIG_Py_Void();
18179 return resultobj;
18180 fail:
18181 return NULL;
18182 }
18183
18184
18185 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18186 PyObject *resultobj = 0;
18187 wxSlider *arg1 = (wxSlider *) 0 ;
18188 int arg2 ;
18189 void *argp1 = 0 ;
18190 int res1 = 0 ;
18191 int val2 ;
18192 int ecode2 = 0 ;
18193 PyObject * obj0 = 0 ;
18194 PyObject * obj1 = 0 ;
18195 char * kwnames[] = {
18196 (char *) "self",(char *) "lineSize", NULL
18197 };
18198
18199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18201 if (!SWIG_IsOK(res1)) {
18202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18203 }
18204 arg1 = reinterpret_cast< wxSlider * >(argp1);
18205 ecode2 = SWIG_AsVal_int(obj1, &val2);
18206 if (!SWIG_IsOK(ecode2)) {
18207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18208 }
18209 arg2 = static_cast< int >(val2);
18210 {
18211 PyThreadState* __tstate = wxPyBeginAllowThreads();
18212 (arg1)->SetLineSize(arg2);
18213 wxPyEndAllowThreads(__tstate);
18214 if (PyErr_Occurred()) SWIG_fail;
18215 }
18216 resultobj = SWIG_Py_Void();
18217 return resultobj;
18218 fail:
18219 return NULL;
18220 }
18221
18222
18223 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18224 PyObject *resultobj = 0;
18225 wxSlider *arg1 = (wxSlider *) 0 ;
18226 int arg2 ;
18227 void *argp1 = 0 ;
18228 int res1 = 0 ;
18229 int val2 ;
18230 int ecode2 = 0 ;
18231 PyObject * obj0 = 0 ;
18232 PyObject * obj1 = 0 ;
18233 char * kwnames[] = {
18234 (char *) "self",(char *) "pageSize", NULL
18235 };
18236
18237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18239 if (!SWIG_IsOK(res1)) {
18240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18241 }
18242 arg1 = reinterpret_cast< wxSlider * >(argp1);
18243 ecode2 = SWIG_AsVal_int(obj1, &val2);
18244 if (!SWIG_IsOK(ecode2)) {
18245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18246 }
18247 arg2 = static_cast< int >(val2);
18248 {
18249 PyThreadState* __tstate = wxPyBeginAllowThreads();
18250 (arg1)->SetPageSize(arg2);
18251 wxPyEndAllowThreads(__tstate);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 }
18254 resultobj = SWIG_Py_Void();
18255 return resultobj;
18256 fail:
18257 return NULL;
18258 }
18259
18260
18261 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18262 PyObject *resultobj = 0;
18263 wxSlider *arg1 = (wxSlider *) 0 ;
18264 int result;
18265 void *argp1 = 0 ;
18266 int res1 = 0 ;
18267 PyObject *swig_obj[1] ;
18268
18269 if (!args) SWIG_fail;
18270 swig_obj[0] = args;
18271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18272 if (!SWIG_IsOK(res1)) {
18273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18274 }
18275 arg1 = reinterpret_cast< wxSlider * >(argp1);
18276 {
18277 PyThreadState* __tstate = wxPyBeginAllowThreads();
18278 result = (int)((wxSlider const *)arg1)->GetLineSize();
18279 wxPyEndAllowThreads(__tstate);
18280 if (PyErr_Occurred()) SWIG_fail;
18281 }
18282 resultobj = SWIG_From_int(static_cast< int >(result));
18283 return resultobj;
18284 fail:
18285 return NULL;
18286 }
18287
18288
18289 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18290 PyObject *resultobj = 0;
18291 wxSlider *arg1 = (wxSlider *) 0 ;
18292 int result;
18293 void *argp1 = 0 ;
18294 int res1 = 0 ;
18295 PyObject *swig_obj[1] ;
18296
18297 if (!args) SWIG_fail;
18298 swig_obj[0] = args;
18299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18300 if (!SWIG_IsOK(res1)) {
18301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18302 }
18303 arg1 = reinterpret_cast< wxSlider * >(argp1);
18304 {
18305 PyThreadState* __tstate = wxPyBeginAllowThreads();
18306 result = (int)((wxSlider const *)arg1)->GetPageSize();
18307 wxPyEndAllowThreads(__tstate);
18308 if (PyErr_Occurred()) SWIG_fail;
18309 }
18310 resultobj = SWIG_From_int(static_cast< int >(result));
18311 return resultobj;
18312 fail:
18313 return NULL;
18314 }
18315
18316
18317 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18318 PyObject *resultobj = 0;
18319 wxSlider *arg1 = (wxSlider *) 0 ;
18320 int arg2 ;
18321 void *argp1 = 0 ;
18322 int res1 = 0 ;
18323 int val2 ;
18324 int ecode2 = 0 ;
18325 PyObject * obj0 = 0 ;
18326 PyObject * obj1 = 0 ;
18327 char * kwnames[] = {
18328 (char *) "self",(char *) "lenPixels", NULL
18329 };
18330
18331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18333 if (!SWIG_IsOK(res1)) {
18334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18335 }
18336 arg1 = reinterpret_cast< wxSlider * >(argp1);
18337 ecode2 = SWIG_AsVal_int(obj1, &val2);
18338 if (!SWIG_IsOK(ecode2)) {
18339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18340 }
18341 arg2 = static_cast< int >(val2);
18342 {
18343 PyThreadState* __tstate = wxPyBeginAllowThreads();
18344 (arg1)->SetThumbLength(arg2);
18345 wxPyEndAllowThreads(__tstate);
18346 if (PyErr_Occurred()) SWIG_fail;
18347 }
18348 resultobj = SWIG_Py_Void();
18349 return resultobj;
18350 fail:
18351 return NULL;
18352 }
18353
18354
18355 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18356 PyObject *resultobj = 0;
18357 wxSlider *arg1 = (wxSlider *) 0 ;
18358 int result;
18359 void *argp1 = 0 ;
18360 int res1 = 0 ;
18361 PyObject *swig_obj[1] ;
18362
18363 if (!args) SWIG_fail;
18364 swig_obj[0] = args;
18365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18366 if (!SWIG_IsOK(res1)) {
18367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18368 }
18369 arg1 = reinterpret_cast< wxSlider * >(argp1);
18370 {
18371 PyThreadState* __tstate = wxPyBeginAllowThreads();
18372 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18373 wxPyEndAllowThreads(__tstate);
18374 if (PyErr_Occurred()) SWIG_fail;
18375 }
18376 resultobj = SWIG_From_int(static_cast< int >(result));
18377 return resultobj;
18378 fail:
18379 return NULL;
18380 }
18381
18382
18383 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18384 PyObject *resultobj = 0;
18385 wxSlider *arg1 = (wxSlider *) 0 ;
18386 int arg2 ;
18387 int arg3 = (int) 1 ;
18388 void *argp1 = 0 ;
18389 int res1 = 0 ;
18390 int val2 ;
18391 int ecode2 = 0 ;
18392 int val3 ;
18393 int ecode3 = 0 ;
18394 PyObject * obj0 = 0 ;
18395 PyObject * obj1 = 0 ;
18396 PyObject * obj2 = 0 ;
18397 char * kwnames[] = {
18398 (char *) "self",(char *) "n",(char *) "pos", NULL
18399 };
18400
18401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18403 if (!SWIG_IsOK(res1)) {
18404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18405 }
18406 arg1 = reinterpret_cast< wxSlider * >(argp1);
18407 ecode2 = SWIG_AsVal_int(obj1, &val2);
18408 if (!SWIG_IsOK(ecode2)) {
18409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18410 }
18411 arg2 = static_cast< int >(val2);
18412 if (obj2) {
18413 ecode3 = SWIG_AsVal_int(obj2, &val3);
18414 if (!SWIG_IsOK(ecode3)) {
18415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18416 }
18417 arg3 = static_cast< int >(val3);
18418 }
18419 {
18420 PyThreadState* __tstate = wxPyBeginAllowThreads();
18421 (arg1)->SetTickFreq(arg2,arg3);
18422 wxPyEndAllowThreads(__tstate);
18423 if (PyErr_Occurred()) SWIG_fail;
18424 }
18425 resultobj = SWIG_Py_Void();
18426 return resultobj;
18427 fail:
18428 return NULL;
18429 }
18430
18431
18432 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18433 PyObject *resultobj = 0;
18434 wxSlider *arg1 = (wxSlider *) 0 ;
18435 int result;
18436 void *argp1 = 0 ;
18437 int res1 = 0 ;
18438 PyObject *swig_obj[1] ;
18439
18440 if (!args) SWIG_fail;
18441 swig_obj[0] = args;
18442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18443 if (!SWIG_IsOK(res1)) {
18444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18445 }
18446 arg1 = reinterpret_cast< wxSlider * >(argp1);
18447 {
18448 PyThreadState* __tstate = wxPyBeginAllowThreads();
18449 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18450 wxPyEndAllowThreads(__tstate);
18451 if (PyErr_Occurred()) SWIG_fail;
18452 }
18453 resultobj = SWIG_From_int(static_cast< int >(result));
18454 return resultobj;
18455 fail:
18456 return NULL;
18457 }
18458
18459
18460 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18461 PyObject *resultobj = 0;
18462 wxSlider *arg1 = (wxSlider *) 0 ;
18463 void *argp1 = 0 ;
18464 int res1 = 0 ;
18465 PyObject *swig_obj[1] ;
18466
18467 if (!args) SWIG_fail;
18468 swig_obj[0] = args;
18469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18470 if (!SWIG_IsOK(res1)) {
18471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18472 }
18473 arg1 = reinterpret_cast< wxSlider * >(argp1);
18474 {
18475 PyThreadState* __tstate = wxPyBeginAllowThreads();
18476 (arg1)->ClearTicks();
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_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18488 PyObject *resultobj = 0;
18489 wxSlider *arg1 = (wxSlider *) 0 ;
18490 int arg2 ;
18491 void *argp1 = 0 ;
18492 int res1 = 0 ;
18493 int val2 ;
18494 int ecode2 = 0 ;
18495 PyObject * obj0 = 0 ;
18496 PyObject * obj1 = 0 ;
18497 char * kwnames[] = {
18498 (char *) "self",(char *) "tickPos", NULL
18499 };
18500
18501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18503 if (!SWIG_IsOK(res1)) {
18504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18505 }
18506 arg1 = reinterpret_cast< wxSlider * >(argp1);
18507 ecode2 = SWIG_AsVal_int(obj1, &val2);
18508 if (!SWIG_IsOK(ecode2)) {
18509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18510 }
18511 arg2 = static_cast< int >(val2);
18512 {
18513 PyThreadState* __tstate = wxPyBeginAllowThreads();
18514 (arg1)->SetTick(arg2);
18515 wxPyEndAllowThreads(__tstate);
18516 if (PyErr_Occurred()) SWIG_fail;
18517 }
18518 resultobj = SWIG_Py_Void();
18519 return resultobj;
18520 fail:
18521 return NULL;
18522 }
18523
18524
18525 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18526 PyObject *resultobj = 0;
18527 wxSlider *arg1 = (wxSlider *) 0 ;
18528 void *argp1 = 0 ;
18529 int res1 = 0 ;
18530 PyObject *swig_obj[1] ;
18531
18532 if (!args) SWIG_fail;
18533 swig_obj[0] = args;
18534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18535 if (!SWIG_IsOK(res1)) {
18536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18537 }
18538 arg1 = reinterpret_cast< wxSlider * >(argp1);
18539 {
18540 PyThreadState* __tstate = wxPyBeginAllowThreads();
18541 (arg1)->ClearSel();
18542 wxPyEndAllowThreads(__tstate);
18543 if (PyErr_Occurred()) SWIG_fail;
18544 }
18545 resultobj = SWIG_Py_Void();
18546 return resultobj;
18547 fail:
18548 return NULL;
18549 }
18550
18551
18552 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18553 PyObject *resultobj = 0;
18554 wxSlider *arg1 = (wxSlider *) 0 ;
18555 int result;
18556 void *argp1 = 0 ;
18557 int res1 = 0 ;
18558 PyObject *swig_obj[1] ;
18559
18560 if (!args) SWIG_fail;
18561 swig_obj[0] = args;
18562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18563 if (!SWIG_IsOK(res1)) {
18564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18565 }
18566 arg1 = reinterpret_cast< wxSlider * >(argp1);
18567 {
18568 PyThreadState* __tstate = wxPyBeginAllowThreads();
18569 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18570 wxPyEndAllowThreads(__tstate);
18571 if (PyErr_Occurred()) SWIG_fail;
18572 }
18573 resultobj = SWIG_From_int(static_cast< int >(result));
18574 return resultobj;
18575 fail:
18576 return NULL;
18577 }
18578
18579
18580 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18581 PyObject *resultobj = 0;
18582 wxSlider *arg1 = (wxSlider *) 0 ;
18583 int result;
18584 void *argp1 = 0 ;
18585 int res1 = 0 ;
18586 PyObject *swig_obj[1] ;
18587
18588 if (!args) SWIG_fail;
18589 swig_obj[0] = args;
18590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18591 if (!SWIG_IsOK(res1)) {
18592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18593 }
18594 arg1 = reinterpret_cast< wxSlider * >(argp1);
18595 {
18596 PyThreadState* __tstate = wxPyBeginAllowThreads();
18597 result = (int)((wxSlider const *)arg1)->GetSelStart();
18598 wxPyEndAllowThreads(__tstate);
18599 if (PyErr_Occurred()) SWIG_fail;
18600 }
18601 resultobj = SWIG_From_int(static_cast< int >(result));
18602 return resultobj;
18603 fail:
18604 return NULL;
18605 }
18606
18607
18608 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18609 PyObject *resultobj = 0;
18610 wxSlider *arg1 = (wxSlider *) 0 ;
18611 int arg2 ;
18612 int arg3 ;
18613 void *argp1 = 0 ;
18614 int res1 = 0 ;
18615 int val2 ;
18616 int ecode2 = 0 ;
18617 int val3 ;
18618 int ecode3 = 0 ;
18619 PyObject * obj0 = 0 ;
18620 PyObject * obj1 = 0 ;
18621 PyObject * obj2 = 0 ;
18622 char * kwnames[] = {
18623 (char *) "self",(char *) "min",(char *) "max", NULL
18624 };
18625
18626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18628 if (!SWIG_IsOK(res1)) {
18629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18630 }
18631 arg1 = reinterpret_cast< wxSlider * >(argp1);
18632 ecode2 = SWIG_AsVal_int(obj1, &val2);
18633 if (!SWIG_IsOK(ecode2)) {
18634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18635 }
18636 arg2 = static_cast< int >(val2);
18637 ecode3 = SWIG_AsVal_int(obj2, &val3);
18638 if (!SWIG_IsOK(ecode3)) {
18639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18640 }
18641 arg3 = static_cast< int >(val3);
18642 {
18643 PyThreadState* __tstate = wxPyBeginAllowThreads();
18644 (arg1)->SetSelection(arg2,arg3);
18645 wxPyEndAllowThreads(__tstate);
18646 if (PyErr_Occurred()) SWIG_fail;
18647 }
18648 resultobj = SWIG_Py_Void();
18649 return resultobj;
18650 fail:
18651 return NULL;
18652 }
18653
18654
18655 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18656 PyObject *resultobj = 0;
18657 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18658 SwigValueWrapper<wxVisualAttributes > result;
18659 int val1 ;
18660 int ecode1 = 0 ;
18661 PyObject * obj0 = 0 ;
18662 char * kwnames[] = {
18663 (char *) "variant", NULL
18664 };
18665
18666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18667 if (obj0) {
18668 ecode1 = SWIG_AsVal_int(obj0, &val1);
18669 if (!SWIG_IsOK(ecode1)) {
18670 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18671 }
18672 arg1 = static_cast< wxWindowVariant >(val1);
18673 }
18674 {
18675 if (!wxPyCheckForApp()) SWIG_fail;
18676 PyThreadState* __tstate = wxPyBeginAllowThreads();
18677 result = wxSlider::GetClassDefaultAttributes(arg1);
18678 wxPyEndAllowThreads(__tstate);
18679 if (PyErr_Occurred()) SWIG_fail;
18680 }
18681 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18682 return resultobj;
18683 fail:
18684 return NULL;
18685 }
18686
18687
18688 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18689 PyObject *obj;
18690 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18691 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18692 return SWIG_Py_Void();
18693 }
18694
18695 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18696 return SWIG_Python_InitShadowInstance(args);
18697 }
18698
18699 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18700 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18701 return 1;
18702 }
18703
18704
18705 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18706 PyObject *pyobj = 0;
18707
18708 {
18709 #if wxUSE_UNICODE
18710 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18711 #else
18712 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18713 #endif
18714 }
18715 return pyobj;
18716 }
18717
18718
18719 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18720 PyObject *resultobj = 0;
18721 wxWindow *arg1 = (wxWindow *) 0 ;
18722 int arg2 = (int) -1 ;
18723 wxString const &arg3_defvalue = wxPyEmptyString ;
18724 wxString *arg3 = (wxString *) &arg3_defvalue ;
18725 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18726 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18727 wxSize const &arg5_defvalue = wxDefaultSize ;
18728 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18729 long arg6 = (long) 0 ;
18730 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18731 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18732 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18733 wxString *arg8 = (wxString *) &arg8_defvalue ;
18734 wxToggleButton *result = 0 ;
18735 void *argp1 = 0 ;
18736 int res1 = 0 ;
18737 int val2 ;
18738 int ecode2 = 0 ;
18739 bool temp3 = false ;
18740 wxPoint temp4 ;
18741 wxSize temp5 ;
18742 long val6 ;
18743 int ecode6 = 0 ;
18744 void *argp7 = 0 ;
18745 int res7 = 0 ;
18746 bool temp8 = false ;
18747 PyObject * obj0 = 0 ;
18748 PyObject * obj1 = 0 ;
18749 PyObject * obj2 = 0 ;
18750 PyObject * obj3 = 0 ;
18751 PyObject * obj4 = 0 ;
18752 PyObject * obj5 = 0 ;
18753 PyObject * obj6 = 0 ;
18754 PyObject * obj7 = 0 ;
18755 char * kwnames[] = {
18756 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18757 };
18758
18759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18761 if (!SWIG_IsOK(res1)) {
18762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18763 }
18764 arg1 = reinterpret_cast< wxWindow * >(argp1);
18765 if (obj1) {
18766 ecode2 = SWIG_AsVal_int(obj1, &val2);
18767 if (!SWIG_IsOK(ecode2)) {
18768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18769 }
18770 arg2 = static_cast< int >(val2);
18771 }
18772 if (obj2) {
18773 {
18774 arg3 = wxString_in_helper(obj2);
18775 if (arg3 == NULL) SWIG_fail;
18776 temp3 = true;
18777 }
18778 }
18779 if (obj3) {
18780 {
18781 arg4 = &temp4;
18782 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18783 }
18784 }
18785 if (obj4) {
18786 {
18787 arg5 = &temp5;
18788 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18789 }
18790 }
18791 if (obj5) {
18792 ecode6 = SWIG_AsVal_long(obj5, &val6);
18793 if (!SWIG_IsOK(ecode6)) {
18794 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18795 }
18796 arg6 = static_cast< long >(val6);
18797 }
18798 if (obj6) {
18799 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18800 if (!SWIG_IsOK(res7)) {
18801 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18802 }
18803 if (!argp7) {
18804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18805 }
18806 arg7 = reinterpret_cast< wxValidator * >(argp7);
18807 }
18808 if (obj7) {
18809 {
18810 arg8 = wxString_in_helper(obj7);
18811 if (arg8 == NULL) SWIG_fail;
18812 temp8 = true;
18813 }
18814 }
18815 {
18816 if (!wxPyCheckForApp()) SWIG_fail;
18817 PyThreadState* __tstate = wxPyBeginAllowThreads();
18818 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18819 wxPyEndAllowThreads(__tstate);
18820 if (PyErr_Occurred()) SWIG_fail;
18821 }
18822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18823 {
18824 if (temp3)
18825 delete arg3;
18826 }
18827 {
18828 if (temp8)
18829 delete arg8;
18830 }
18831 return resultobj;
18832 fail:
18833 {
18834 if (temp3)
18835 delete arg3;
18836 }
18837 {
18838 if (temp8)
18839 delete arg8;
18840 }
18841 return NULL;
18842 }
18843
18844
18845 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18846 PyObject *resultobj = 0;
18847 wxToggleButton *result = 0 ;
18848
18849 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18850 {
18851 if (!wxPyCheckForApp()) SWIG_fail;
18852 PyThreadState* __tstate = wxPyBeginAllowThreads();
18853 result = (wxToggleButton *)new wxToggleButton();
18854 wxPyEndAllowThreads(__tstate);
18855 if (PyErr_Occurred()) SWIG_fail;
18856 }
18857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18858 return resultobj;
18859 fail:
18860 return NULL;
18861 }
18862
18863
18864 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18865 PyObject *resultobj = 0;
18866 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18867 wxWindow *arg2 = (wxWindow *) 0 ;
18868 int arg3 = (int) -1 ;
18869 wxString const &arg4_defvalue = wxPyEmptyString ;
18870 wxString *arg4 = (wxString *) &arg4_defvalue ;
18871 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18872 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18873 wxSize const &arg6_defvalue = wxDefaultSize ;
18874 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18875 long arg7 = (long) 0 ;
18876 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18877 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18878 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18879 wxString *arg9 = (wxString *) &arg9_defvalue ;
18880 bool result;
18881 void *argp1 = 0 ;
18882 int res1 = 0 ;
18883 void *argp2 = 0 ;
18884 int res2 = 0 ;
18885 int val3 ;
18886 int ecode3 = 0 ;
18887 bool temp4 = false ;
18888 wxPoint temp5 ;
18889 wxSize temp6 ;
18890 long val7 ;
18891 int ecode7 = 0 ;
18892 void *argp8 = 0 ;
18893 int res8 = 0 ;
18894 bool temp9 = false ;
18895 PyObject * obj0 = 0 ;
18896 PyObject * obj1 = 0 ;
18897 PyObject * obj2 = 0 ;
18898 PyObject * obj3 = 0 ;
18899 PyObject * obj4 = 0 ;
18900 PyObject * obj5 = 0 ;
18901 PyObject * obj6 = 0 ;
18902 PyObject * obj7 = 0 ;
18903 PyObject * obj8 = 0 ;
18904 char * kwnames[] = {
18905 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18906 };
18907
18908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18910 if (!SWIG_IsOK(res1)) {
18911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18912 }
18913 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18914 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18915 if (!SWIG_IsOK(res2)) {
18916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18917 }
18918 arg2 = reinterpret_cast< wxWindow * >(argp2);
18919 if (obj2) {
18920 ecode3 = SWIG_AsVal_int(obj2, &val3);
18921 if (!SWIG_IsOK(ecode3)) {
18922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18923 }
18924 arg3 = static_cast< int >(val3);
18925 }
18926 if (obj3) {
18927 {
18928 arg4 = wxString_in_helper(obj3);
18929 if (arg4 == NULL) SWIG_fail;
18930 temp4 = true;
18931 }
18932 }
18933 if (obj4) {
18934 {
18935 arg5 = &temp5;
18936 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18937 }
18938 }
18939 if (obj5) {
18940 {
18941 arg6 = &temp6;
18942 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18943 }
18944 }
18945 if (obj6) {
18946 ecode7 = SWIG_AsVal_long(obj6, &val7);
18947 if (!SWIG_IsOK(ecode7)) {
18948 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18949 }
18950 arg7 = static_cast< long >(val7);
18951 }
18952 if (obj7) {
18953 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18954 if (!SWIG_IsOK(res8)) {
18955 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18956 }
18957 if (!argp8) {
18958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18959 }
18960 arg8 = reinterpret_cast< wxValidator * >(argp8);
18961 }
18962 if (obj8) {
18963 {
18964 arg9 = wxString_in_helper(obj8);
18965 if (arg9 == NULL) SWIG_fail;
18966 temp9 = true;
18967 }
18968 }
18969 {
18970 PyThreadState* __tstate = wxPyBeginAllowThreads();
18971 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18972 wxPyEndAllowThreads(__tstate);
18973 if (PyErr_Occurred()) SWIG_fail;
18974 }
18975 {
18976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18977 }
18978 {
18979 if (temp4)
18980 delete arg4;
18981 }
18982 {
18983 if (temp9)
18984 delete arg9;
18985 }
18986 return resultobj;
18987 fail:
18988 {
18989 if (temp4)
18990 delete arg4;
18991 }
18992 {
18993 if (temp9)
18994 delete arg9;
18995 }
18996 return NULL;
18997 }
18998
18999
19000 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19001 PyObject *resultobj = 0;
19002 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19003 bool arg2 ;
19004 void *argp1 = 0 ;
19005 int res1 = 0 ;
19006 bool val2 ;
19007 int ecode2 = 0 ;
19008 PyObject * obj0 = 0 ;
19009 PyObject * obj1 = 0 ;
19010 char * kwnames[] = {
19011 (char *) "self",(char *) "value", NULL
19012 };
19013
19014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19016 if (!SWIG_IsOK(res1)) {
19017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19018 }
19019 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19020 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19021 if (!SWIG_IsOK(ecode2)) {
19022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19023 }
19024 arg2 = static_cast< bool >(val2);
19025 {
19026 PyThreadState* __tstate = wxPyBeginAllowThreads();
19027 (arg1)->SetValue(arg2);
19028 wxPyEndAllowThreads(__tstate);
19029 if (PyErr_Occurred()) SWIG_fail;
19030 }
19031 resultobj = SWIG_Py_Void();
19032 return resultobj;
19033 fail:
19034 return NULL;
19035 }
19036
19037
19038 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19039 PyObject *resultobj = 0;
19040 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19041 bool result;
19042 void *argp1 = 0 ;
19043 int res1 = 0 ;
19044 PyObject *swig_obj[1] ;
19045
19046 if (!args) SWIG_fail;
19047 swig_obj[0] = args;
19048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19049 if (!SWIG_IsOK(res1)) {
19050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19051 }
19052 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19053 {
19054 PyThreadState* __tstate = wxPyBeginAllowThreads();
19055 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19056 wxPyEndAllowThreads(__tstate);
19057 if (PyErr_Occurred()) SWIG_fail;
19058 }
19059 {
19060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19061 }
19062 return resultobj;
19063 fail:
19064 return NULL;
19065 }
19066
19067
19068 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19069 PyObject *resultobj = 0;
19070 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19071 SwigValueWrapper<wxVisualAttributes > result;
19072 int val1 ;
19073 int ecode1 = 0 ;
19074 PyObject * obj0 = 0 ;
19075 char * kwnames[] = {
19076 (char *) "variant", NULL
19077 };
19078
19079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19080 if (obj0) {
19081 ecode1 = SWIG_AsVal_int(obj0, &val1);
19082 if (!SWIG_IsOK(ecode1)) {
19083 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19084 }
19085 arg1 = static_cast< wxWindowVariant >(val1);
19086 }
19087 {
19088 if (!wxPyCheckForApp()) SWIG_fail;
19089 PyThreadState* __tstate = wxPyBeginAllowThreads();
19090 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19091 wxPyEndAllowThreads(__tstate);
19092 if (PyErr_Occurred()) SWIG_fail;
19093 }
19094 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19095 return resultobj;
19096 fail:
19097 return NULL;
19098 }
19099
19100
19101 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19102 PyObject *obj;
19103 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19104 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19105 return SWIG_Py_Void();
19106 }
19107
19108 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19109 return SWIG_Python_InitShadowInstance(args);
19110 }
19111
19112 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19113 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19114 return 1;
19115 }
19116
19117
19118 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19119 PyObject *pyobj = 0;
19120
19121 {
19122 #if wxUSE_UNICODE
19123 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19124 #else
19125 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19126 #endif
19127 }
19128 return pyobj;
19129 }
19130
19131
19132 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19133 PyObject *resultobj = 0;
19134 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19135 size_t result;
19136 void *argp1 = 0 ;
19137 int res1 = 0 ;
19138 PyObject *swig_obj[1] ;
19139
19140 if (!args) SWIG_fail;
19141 swig_obj[0] = args;
19142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19143 if (!SWIG_IsOK(res1)) {
19144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19145 }
19146 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19147 {
19148 PyThreadState* __tstate = wxPyBeginAllowThreads();
19149 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19150 wxPyEndAllowThreads(__tstate);
19151 if (PyErr_Occurred()) SWIG_fail;
19152 }
19153 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19154 return resultobj;
19155 fail:
19156 return NULL;
19157 }
19158
19159
19160 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19161 PyObject *resultobj = 0;
19162 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19163 size_t arg2 ;
19164 wxWindow *result = 0 ;
19165 void *argp1 = 0 ;
19166 int res1 = 0 ;
19167 size_t val2 ;
19168 int ecode2 = 0 ;
19169 PyObject * obj0 = 0 ;
19170 PyObject * obj1 = 0 ;
19171 char * kwnames[] = {
19172 (char *) "self",(char *) "n", NULL
19173 };
19174
19175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19177 if (!SWIG_IsOK(res1)) {
19178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19179 }
19180 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19181 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19182 if (!SWIG_IsOK(ecode2)) {
19183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19184 }
19185 arg2 = static_cast< size_t >(val2);
19186 {
19187 PyThreadState* __tstate = wxPyBeginAllowThreads();
19188 result = (wxWindow *)(arg1)->GetPage(arg2);
19189 wxPyEndAllowThreads(__tstate);
19190 if (PyErr_Occurred()) SWIG_fail;
19191 }
19192 {
19193 resultobj = wxPyMake_wxObject(result, 0);
19194 }
19195 return resultobj;
19196 fail:
19197 return NULL;
19198 }
19199
19200
19201 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19202 PyObject *resultobj = 0;
19203 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19204 wxWindow *result = 0 ;
19205 void *argp1 = 0 ;
19206 int res1 = 0 ;
19207 PyObject *swig_obj[1] ;
19208
19209 if (!args) SWIG_fail;
19210 swig_obj[0] = args;
19211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19212 if (!SWIG_IsOK(res1)) {
19213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19214 }
19215 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19216 {
19217 PyThreadState* __tstate = wxPyBeginAllowThreads();
19218 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19219 wxPyEndAllowThreads(__tstate);
19220 if (PyErr_Occurred()) SWIG_fail;
19221 }
19222 {
19223 resultobj = wxPyMake_wxObject(result, 0);
19224 }
19225 return resultobj;
19226 fail:
19227 return NULL;
19228 }
19229
19230
19231 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19232 PyObject *resultobj = 0;
19233 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19234 int result;
19235 void *argp1 = 0 ;
19236 int res1 = 0 ;
19237 PyObject *swig_obj[1] ;
19238
19239 if (!args) SWIG_fail;
19240 swig_obj[0] = args;
19241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19242 if (!SWIG_IsOK(res1)) {
19243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19244 }
19245 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19246 {
19247 PyThreadState* __tstate = wxPyBeginAllowThreads();
19248 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19249 wxPyEndAllowThreads(__tstate);
19250 if (PyErr_Occurred()) SWIG_fail;
19251 }
19252 resultobj = SWIG_From_int(static_cast< int >(result));
19253 return resultobj;
19254 fail:
19255 return NULL;
19256 }
19257
19258
19259 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19260 PyObject *resultobj = 0;
19261 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19262 size_t arg2 ;
19263 wxString *arg3 = 0 ;
19264 bool result;
19265 void *argp1 = 0 ;
19266 int res1 = 0 ;
19267 size_t val2 ;
19268 int ecode2 = 0 ;
19269 bool temp3 = false ;
19270 PyObject * obj0 = 0 ;
19271 PyObject * obj1 = 0 ;
19272 PyObject * obj2 = 0 ;
19273 char * kwnames[] = {
19274 (char *) "self",(char *) "n",(char *) "strText", NULL
19275 };
19276
19277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19279 if (!SWIG_IsOK(res1)) {
19280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19281 }
19282 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19283 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19284 if (!SWIG_IsOK(ecode2)) {
19285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19286 }
19287 arg2 = static_cast< size_t >(val2);
19288 {
19289 arg3 = wxString_in_helper(obj2);
19290 if (arg3 == NULL) SWIG_fail;
19291 temp3 = true;
19292 }
19293 {
19294 PyThreadState* __tstate = wxPyBeginAllowThreads();
19295 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19296 wxPyEndAllowThreads(__tstate);
19297 if (PyErr_Occurred()) SWIG_fail;
19298 }
19299 {
19300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19301 }
19302 {
19303 if (temp3)
19304 delete arg3;
19305 }
19306 return resultobj;
19307 fail:
19308 {
19309 if (temp3)
19310 delete arg3;
19311 }
19312 return NULL;
19313 }
19314
19315
19316 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19317 PyObject *resultobj = 0;
19318 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19319 size_t arg2 ;
19320 wxString result;
19321 void *argp1 = 0 ;
19322 int res1 = 0 ;
19323 size_t val2 ;
19324 int ecode2 = 0 ;
19325 PyObject * obj0 = 0 ;
19326 PyObject * obj1 = 0 ;
19327 char * kwnames[] = {
19328 (char *) "self",(char *) "n", NULL
19329 };
19330
19331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19333 if (!SWIG_IsOK(res1)) {
19334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19335 }
19336 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19337 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19338 if (!SWIG_IsOK(ecode2)) {
19339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19340 }
19341 arg2 = static_cast< size_t >(val2);
19342 {
19343 PyThreadState* __tstate = wxPyBeginAllowThreads();
19344 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19345 wxPyEndAllowThreads(__tstate);
19346 if (PyErr_Occurred()) SWIG_fail;
19347 }
19348 {
19349 #if wxUSE_UNICODE
19350 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19351 #else
19352 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19353 #endif
19354 }
19355 return resultobj;
19356 fail:
19357 return NULL;
19358 }
19359
19360
19361 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19362 PyObject *resultobj = 0;
19363 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19364 wxImageList *arg2 = (wxImageList *) 0 ;
19365 void *argp1 = 0 ;
19366 int res1 = 0 ;
19367 void *argp2 = 0 ;
19368 int res2 = 0 ;
19369 PyObject * obj0 = 0 ;
19370 PyObject * obj1 = 0 ;
19371 char * kwnames[] = {
19372 (char *) "self",(char *) "imageList", NULL
19373 };
19374
19375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19377 if (!SWIG_IsOK(res1)) {
19378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19379 }
19380 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19381 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19382 if (!SWIG_IsOK(res2)) {
19383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19384 }
19385 arg2 = reinterpret_cast< wxImageList * >(argp2);
19386 {
19387 PyThreadState* __tstate = wxPyBeginAllowThreads();
19388 (arg1)->SetImageList(arg2);
19389 wxPyEndAllowThreads(__tstate);
19390 if (PyErr_Occurred()) SWIG_fail;
19391 }
19392 resultobj = SWIG_Py_Void();
19393 return resultobj;
19394 fail:
19395 return NULL;
19396 }
19397
19398
19399 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19400 PyObject *resultobj = 0;
19401 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19402 wxImageList *arg2 = (wxImageList *) 0 ;
19403 void *argp1 = 0 ;
19404 int res1 = 0 ;
19405 int res2 = 0 ;
19406 PyObject * obj0 = 0 ;
19407 PyObject * obj1 = 0 ;
19408 char * kwnames[] = {
19409 (char *) "self",(char *) "imageList", NULL
19410 };
19411
19412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19414 if (!SWIG_IsOK(res1)) {
19415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19416 }
19417 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19418 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19419 if (!SWIG_IsOK(res2)) {
19420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19421 }
19422 {
19423 PyThreadState* __tstate = wxPyBeginAllowThreads();
19424 (arg1)->AssignImageList(arg2);
19425 wxPyEndAllowThreads(__tstate);
19426 if (PyErr_Occurred()) SWIG_fail;
19427 }
19428 resultobj = SWIG_Py_Void();
19429 return resultobj;
19430 fail:
19431 return NULL;
19432 }
19433
19434
19435 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19436 PyObject *resultobj = 0;
19437 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19438 wxImageList *result = 0 ;
19439 void *argp1 = 0 ;
19440 int res1 = 0 ;
19441 PyObject *swig_obj[1] ;
19442
19443 if (!args) SWIG_fail;
19444 swig_obj[0] = args;
19445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19446 if (!SWIG_IsOK(res1)) {
19447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19448 }
19449 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19450 {
19451 PyThreadState* __tstate = wxPyBeginAllowThreads();
19452 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19453 wxPyEndAllowThreads(__tstate);
19454 if (PyErr_Occurred()) SWIG_fail;
19455 }
19456 {
19457 resultobj = wxPyMake_wxObject(result, (bool)0);
19458 }
19459 return resultobj;
19460 fail:
19461 return NULL;
19462 }
19463
19464
19465 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19466 PyObject *resultobj = 0;
19467 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19468 size_t arg2 ;
19469 int result;
19470 void *argp1 = 0 ;
19471 int res1 = 0 ;
19472 size_t val2 ;
19473 int ecode2 = 0 ;
19474 PyObject * obj0 = 0 ;
19475 PyObject * obj1 = 0 ;
19476 char * kwnames[] = {
19477 (char *) "self",(char *) "n", NULL
19478 };
19479
19480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19482 if (!SWIG_IsOK(res1)) {
19483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19484 }
19485 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19486 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19487 if (!SWIG_IsOK(ecode2)) {
19488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19489 }
19490 arg2 = static_cast< size_t >(val2);
19491 {
19492 PyThreadState* __tstate = wxPyBeginAllowThreads();
19493 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19494 wxPyEndAllowThreads(__tstate);
19495 if (PyErr_Occurred()) SWIG_fail;
19496 }
19497 resultobj = SWIG_From_int(static_cast< int >(result));
19498 return resultobj;
19499 fail:
19500 return NULL;
19501 }
19502
19503
19504 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19505 PyObject *resultobj = 0;
19506 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19507 size_t arg2 ;
19508 int arg3 ;
19509 bool result;
19510 void *argp1 = 0 ;
19511 int res1 = 0 ;
19512 size_t val2 ;
19513 int ecode2 = 0 ;
19514 int val3 ;
19515 int ecode3 = 0 ;
19516 PyObject * obj0 = 0 ;
19517 PyObject * obj1 = 0 ;
19518 PyObject * obj2 = 0 ;
19519 char * kwnames[] = {
19520 (char *) "self",(char *) "n",(char *) "imageId", NULL
19521 };
19522
19523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19525 if (!SWIG_IsOK(res1)) {
19526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19527 }
19528 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19529 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19530 if (!SWIG_IsOK(ecode2)) {
19531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19532 }
19533 arg2 = static_cast< size_t >(val2);
19534 ecode3 = SWIG_AsVal_int(obj2, &val3);
19535 if (!SWIG_IsOK(ecode3)) {
19536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19537 }
19538 arg3 = static_cast< int >(val3);
19539 {
19540 PyThreadState* __tstate = wxPyBeginAllowThreads();
19541 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19542 wxPyEndAllowThreads(__tstate);
19543 if (PyErr_Occurred()) SWIG_fail;
19544 }
19545 {
19546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19547 }
19548 return resultobj;
19549 fail:
19550 return NULL;
19551 }
19552
19553
19554 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19555 PyObject *resultobj = 0;
19556 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19557 wxSize *arg2 = 0 ;
19558 void *argp1 = 0 ;
19559 int res1 = 0 ;
19560 wxSize temp2 ;
19561 PyObject * obj0 = 0 ;
19562 PyObject * obj1 = 0 ;
19563 char * kwnames[] = {
19564 (char *) "self",(char *) "size", NULL
19565 };
19566
19567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19569 if (!SWIG_IsOK(res1)) {
19570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19571 }
19572 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19573 {
19574 arg2 = &temp2;
19575 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19576 }
19577 {
19578 PyThreadState* __tstate = wxPyBeginAllowThreads();
19579 (arg1)->SetPageSize((wxSize const &)*arg2);
19580 wxPyEndAllowThreads(__tstate);
19581 if (PyErr_Occurred()) SWIG_fail;
19582 }
19583 resultobj = SWIG_Py_Void();
19584 return resultobj;
19585 fail:
19586 return NULL;
19587 }
19588
19589
19590 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19591 PyObject *resultobj = 0;
19592 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19593 wxSize *arg2 = 0 ;
19594 wxSize result;
19595 void *argp1 = 0 ;
19596 int res1 = 0 ;
19597 wxSize temp2 ;
19598 PyObject * obj0 = 0 ;
19599 PyObject * obj1 = 0 ;
19600 char * kwnames[] = {
19601 (char *) "self",(char *) "sizePage", NULL
19602 };
19603
19604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19606 if (!SWIG_IsOK(res1)) {
19607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19608 }
19609 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19610 {
19611 arg2 = &temp2;
19612 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19613 }
19614 {
19615 PyThreadState* __tstate = wxPyBeginAllowThreads();
19616 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19617 wxPyEndAllowThreads(__tstate);
19618 if (PyErr_Occurred()) SWIG_fail;
19619 }
19620 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19621 return resultobj;
19622 fail:
19623 return NULL;
19624 }
19625
19626
19627 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19628 PyObject *resultobj = 0;
19629 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19630 unsigned int result;
19631 void *argp1 = 0 ;
19632 int res1 = 0 ;
19633 PyObject *swig_obj[1] ;
19634
19635 if (!args) SWIG_fail;
19636 swig_obj[0] = args;
19637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19638 if (!SWIG_IsOK(res1)) {
19639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19640 }
19641 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19642 {
19643 PyThreadState* __tstate = wxPyBeginAllowThreads();
19644 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19645 wxPyEndAllowThreads(__tstate);
19646 if (PyErr_Occurred()) SWIG_fail;
19647 }
19648 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19649 return resultobj;
19650 fail:
19651 return NULL;
19652 }
19653
19654
19655 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19656 PyObject *resultobj = 0;
19657 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19658 unsigned int arg2 ;
19659 void *argp1 = 0 ;
19660 int res1 = 0 ;
19661 unsigned int val2 ;
19662 int ecode2 = 0 ;
19663 PyObject * obj0 = 0 ;
19664 PyObject * obj1 = 0 ;
19665 char * kwnames[] = {
19666 (char *) "self",(char *) "internalBorder", NULL
19667 };
19668
19669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19671 if (!SWIG_IsOK(res1)) {
19672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19673 }
19674 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19675 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19676 if (!SWIG_IsOK(ecode2)) {
19677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19678 }
19679 arg2 = static_cast< unsigned int >(val2);
19680 {
19681 PyThreadState* __tstate = wxPyBeginAllowThreads();
19682 (arg1)->SetInternalBorder(arg2);
19683 wxPyEndAllowThreads(__tstate);
19684 if (PyErr_Occurred()) SWIG_fail;
19685 }
19686 resultobj = SWIG_Py_Void();
19687 return resultobj;
19688 fail:
19689 return NULL;
19690 }
19691
19692
19693 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19694 PyObject *resultobj = 0;
19695 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19696 bool result;
19697 void *argp1 = 0 ;
19698 int res1 = 0 ;
19699 PyObject *swig_obj[1] ;
19700
19701 if (!args) SWIG_fail;
19702 swig_obj[0] = args;
19703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19704 if (!SWIG_IsOK(res1)) {
19705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19706 }
19707 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19708 {
19709 PyThreadState* __tstate = wxPyBeginAllowThreads();
19710 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19711 wxPyEndAllowThreads(__tstate);
19712 if (PyErr_Occurred()) SWIG_fail;
19713 }
19714 {
19715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19716 }
19717 return resultobj;
19718 fail:
19719 return NULL;
19720 }
19721
19722
19723 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19724 PyObject *resultobj = 0;
19725 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19726 int arg2 ;
19727 void *argp1 = 0 ;
19728 int res1 = 0 ;
19729 int val2 ;
19730 int ecode2 = 0 ;
19731 PyObject * obj0 = 0 ;
19732 PyObject * obj1 = 0 ;
19733 char * kwnames[] = {
19734 (char *) "self",(char *) "margin", NULL
19735 };
19736
19737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19739 if (!SWIG_IsOK(res1)) {
19740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19741 }
19742 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19743 ecode2 = SWIG_AsVal_int(obj1, &val2);
19744 if (!SWIG_IsOK(ecode2)) {
19745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19746 }
19747 arg2 = static_cast< int >(val2);
19748 {
19749 PyThreadState* __tstate = wxPyBeginAllowThreads();
19750 (arg1)->SetControlMargin(arg2);
19751 wxPyEndAllowThreads(__tstate);
19752 if (PyErr_Occurred()) SWIG_fail;
19753 }
19754 resultobj = SWIG_Py_Void();
19755 return resultobj;
19756 fail:
19757 return NULL;
19758 }
19759
19760
19761 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19762 PyObject *resultobj = 0;
19763 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19764 int result;
19765 void *argp1 = 0 ;
19766 int res1 = 0 ;
19767 PyObject *swig_obj[1] ;
19768
19769 if (!args) SWIG_fail;
19770 swig_obj[0] = args;
19771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19772 if (!SWIG_IsOK(res1)) {
19773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19774 }
19775 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19776 {
19777 PyThreadState* __tstate = wxPyBeginAllowThreads();
19778 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19779 wxPyEndAllowThreads(__tstate);
19780 if (PyErr_Occurred()) SWIG_fail;
19781 }
19782 resultobj = SWIG_From_int(static_cast< int >(result));
19783 return resultobj;
19784 fail:
19785 return NULL;
19786 }
19787
19788
19789 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19790 PyObject *resultobj = 0;
19791 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19792 bool arg2 ;
19793 void *argp1 = 0 ;
19794 int res1 = 0 ;
19795 bool val2 ;
19796 int ecode2 = 0 ;
19797 PyObject * obj0 = 0 ;
19798 PyObject * obj1 = 0 ;
19799 char * kwnames[] = {
19800 (char *) "self",(char *) "fit", NULL
19801 };
19802
19803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19805 if (!SWIG_IsOK(res1)) {
19806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19807 }
19808 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19809 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19810 if (!SWIG_IsOK(ecode2)) {
19811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19812 }
19813 arg2 = static_cast< bool >(val2);
19814 {
19815 PyThreadState* __tstate = wxPyBeginAllowThreads();
19816 (arg1)->SetFitToCurrentPage(arg2);
19817 wxPyEndAllowThreads(__tstate);
19818 if (PyErr_Occurred()) SWIG_fail;
19819 }
19820 resultobj = SWIG_Py_Void();
19821 return resultobj;
19822 fail:
19823 return NULL;
19824 }
19825
19826
19827 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19828 PyObject *resultobj = 0;
19829 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19830 bool result;
19831 void *argp1 = 0 ;
19832 int res1 = 0 ;
19833 PyObject *swig_obj[1] ;
19834
19835 if (!args) SWIG_fail;
19836 swig_obj[0] = args;
19837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19838 if (!SWIG_IsOK(res1)) {
19839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19840 }
19841 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19842 {
19843 PyThreadState* __tstate = wxPyBeginAllowThreads();
19844 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19845 wxPyEndAllowThreads(__tstate);
19846 if (PyErr_Occurred()) SWIG_fail;
19847 }
19848 {
19849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19850 }
19851 return resultobj;
19852 fail:
19853 return NULL;
19854 }
19855
19856
19857 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19858 PyObject *resultobj = 0;
19859 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19860 wxSizer *result = 0 ;
19861 void *argp1 = 0 ;
19862 int res1 = 0 ;
19863 PyObject *swig_obj[1] ;
19864
19865 if (!args) SWIG_fail;
19866 swig_obj[0] = args;
19867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19868 if (!SWIG_IsOK(res1)) {
19869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19870 }
19871 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19872 {
19873 PyThreadState* __tstate = wxPyBeginAllowThreads();
19874 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19875 wxPyEndAllowThreads(__tstate);
19876 if (PyErr_Occurred()) SWIG_fail;
19877 }
19878 {
19879 resultobj = wxPyMake_wxObject(result, (bool)0);
19880 }
19881 return resultobj;
19882 fail:
19883 return NULL;
19884 }
19885
19886
19887 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19888 PyObject *resultobj = 0;
19889 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19890 size_t arg2 ;
19891 bool result;
19892 void *argp1 = 0 ;
19893 int res1 = 0 ;
19894 size_t val2 ;
19895 int ecode2 = 0 ;
19896 PyObject * obj0 = 0 ;
19897 PyObject * obj1 = 0 ;
19898 char * kwnames[] = {
19899 (char *) "self",(char *) "n", NULL
19900 };
19901
19902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19904 if (!SWIG_IsOK(res1)) {
19905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19906 }
19907 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19908 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19909 if (!SWIG_IsOK(ecode2)) {
19910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19911 }
19912 arg2 = static_cast< size_t >(val2);
19913 {
19914 PyThreadState* __tstate = wxPyBeginAllowThreads();
19915 result = (bool)(arg1)->DeletePage(arg2);
19916 wxPyEndAllowThreads(__tstate);
19917 if (PyErr_Occurred()) SWIG_fail;
19918 }
19919 {
19920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19921 }
19922 return resultobj;
19923 fail:
19924 return NULL;
19925 }
19926
19927
19928 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19929 PyObject *resultobj = 0;
19930 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19931 size_t arg2 ;
19932 bool result;
19933 void *argp1 = 0 ;
19934 int res1 = 0 ;
19935 size_t val2 ;
19936 int ecode2 = 0 ;
19937 PyObject * obj0 = 0 ;
19938 PyObject * obj1 = 0 ;
19939 char * kwnames[] = {
19940 (char *) "self",(char *) "n", NULL
19941 };
19942
19943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19945 if (!SWIG_IsOK(res1)) {
19946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19947 }
19948 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19949 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19950 if (!SWIG_IsOK(ecode2)) {
19951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19952 }
19953 arg2 = static_cast< size_t >(val2);
19954 {
19955 PyThreadState* __tstate = wxPyBeginAllowThreads();
19956 result = (bool)(arg1)->RemovePage(arg2);
19957 wxPyEndAllowThreads(__tstate);
19958 if (PyErr_Occurred()) SWIG_fail;
19959 }
19960 {
19961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19962 }
19963 return resultobj;
19964 fail:
19965 return NULL;
19966 }
19967
19968
19969 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19970 PyObject *resultobj = 0;
19971 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19972 bool result;
19973 void *argp1 = 0 ;
19974 int res1 = 0 ;
19975 PyObject *swig_obj[1] ;
19976
19977 if (!args) SWIG_fail;
19978 swig_obj[0] = args;
19979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19980 if (!SWIG_IsOK(res1)) {
19981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19982 }
19983 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19984 {
19985 PyThreadState* __tstate = wxPyBeginAllowThreads();
19986 result = (bool)(arg1)->DeleteAllPages();
19987 wxPyEndAllowThreads(__tstate);
19988 if (PyErr_Occurred()) SWIG_fail;
19989 }
19990 {
19991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19992 }
19993 return resultobj;
19994 fail:
19995 return NULL;
19996 }
19997
19998
19999 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20000 PyObject *resultobj = 0;
20001 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20002 wxWindow *arg2 = (wxWindow *) 0 ;
20003 wxString *arg3 = 0 ;
20004 bool arg4 = (bool) false ;
20005 int arg5 = (int) -1 ;
20006 bool result;
20007 void *argp1 = 0 ;
20008 int res1 = 0 ;
20009 void *argp2 = 0 ;
20010 int res2 = 0 ;
20011 bool temp3 = false ;
20012 bool val4 ;
20013 int ecode4 = 0 ;
20014 int val5 ;
20015 int ecode5 = 0 ;
20016 PyObject * obj0 = 0 ;
20017 PyObject * obj1 = 0 ;
20018 PyObject * obj2 = 0 ;
20019 PyObject * obj3 = 0 ;
20020 PyObject * obj4 = 0 ;
20021 char * kwnames[] = {
20022 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20023 };
20024
20025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20027 if (!SWIG_IsOK(res1)) {
20028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20029 }
20030 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20031 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20032 if (!SWIG_IsOK(res2)) {
20033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20034 }
20035 arg2 = reinterpret_cast< wxWindow * >(argp2);
20036 {
20037 arg3 = wxString_in_helper(obj2);
20038 if (arg3 == NULL) SWIG_fail;
20039 temp3 = true;
20040 }
20041 if (obj3) {
20042 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20043 if (!SWIG_IsOK(ecode4)) {
20044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20045 }
20046 arg4 = static_cast< bool >(val4);
20047 }
20048 if (obj4) {
20049 ecode5 = SWIG_AsVal_int(obj4, &val5);
20050 if (!SWIG_IsOK(ecode5)) {
20051 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20052 }
20053 arg5 = static_cast< int >(val5);
20054 }
20055 {
20056 PyThreadState* __tstate = wxPyBeginAllowThreads();
20057 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20058 wxPyEndAllowThreads(__tstate);
20059 if (PyErr_Occurred()) SWIG_fail;
20060 }
20061 {
20062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20063 }
20064 {
20065 if (temp3)
20066 delete arg3;
20067 }
20068 return resultobj;
20069 fail:
20070 {
20071 if (temp3)
20072 delete arg3;
20073 }
20074 return NULL;
20075 }
20076
20077
20078 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20079 PyObject *resultobj = 0;
20080 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20081 size_t arg2 ;
20082 wxWindow *arg3 = (wxWindow *) 0 ;
20083 wxString *arg4 = 0 ;
20084 bool arg5 = (bool) false ;
20085 int arg6 = (int) -1 ;
20086 bool result;
20087 void *argp1 = 0 ;
20088 int res1 = 0 ;
20089 size_t val2 ;
20090 int ecode2 = 0 ;
20091 void *argp3 = 0 ;
20092 int res3 = 0 ;
20093 bool temp4 = false ;
20094 bool val5 ;
20095 int ecode5 = 0 ;
20096 int val6 ;
20097 int ecode6 = 0 ;
20098 PyObject * obj0 = 0 ;
20099 PyObject * obj1 = 0 ;
20100 PyObject * obj2 = 0 ;
20101 PyObject * obj3 = 0 ;
20102 PyObject * obj4 = 0 ;
20103 PyObject * obj5 = 0 ;
20104 char * kwnames[] = {
20105 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20106 };
20107
20108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20110 if (!SWIG_IsOK(res1)) {
20111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20112 }
20113 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20114 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20115 if (!SWIG_IsOK(ecode2)) {
20116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20117 }
20118 arg2 = static_cast< size_t >(val2);
20119 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20120 if (!SWIG_IsOK(res3)) {
20121 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20122 }
20123 arg3 = reinterpret_cast< wxWindow * >(argp3);
20124 {
20125 arg4 = wxString_in_helper(obj3);
20126 if (arg4 == NULL) SWIG_fail;
20127 temp4 = true;
20128 }
20129 if (obj4) {
20130 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20131 if (!SWIG_IsOK(ecode5)) {
20132 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20133 }
20134 arg5 = static_cast< bool >(val5);
20135 }
20136 if (obj5) {
20137 ecode6 = SWIG_AsVal_int(obj5, &val6);
20138 if (!SWIG_IsOK(ecode6)) {
20139 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20140 }
20141 arg6 = static_cast< int >(val6);
20142 }
20143 {
20144 PyThreadState* __tstate = wxPyBeginAllowThreads();
20145 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20146 wxPyEndAllowThreads(__tstate);
20147 if (PyErr_Occurred()) SWIG_fail;
20148 }
20149 {
20150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20151 }
20152 {
20153 if (temp4)
20154 delete arg4;
20155 }
20156 return resultobj;
20157 fail:
20158 {
20159 if (temp4)
20160 delete arg4;
20161 }
20162 return NULL;
20163 }
20164
20165
20166 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20167 PyObject *resultobj = 0;
20168 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20169 size_t arg2 ;
20170 int result;
20171 void *argp1 = 0 ;
20172 int res1 = 0 ;
20173 size_t val2 ;
20174 int ecode2 = 0 ;
20175 PyObject * obj0 = 0 ;
20176 PyObject * obj1 = 0 ;
20177 char * kwnames[] = {
20178 (char *) "self",(char *) "n", NULL
20179 };
20180
20181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20183 if (!SWIG_IsOK(res1)) {
20184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20185 }
20186 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20187 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20188 if (!SWIG_IsOK(ecode2)) {
20189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20190 }
20191 arg2 = static_cast< size_t >(val2);
20192 {
20193 PyThreadState* __tstate = wxPyBeginAllowThreads();
20194 result = (int)(arg1)->SetSelection(arg2);
20195 wxPyEndAllowThreads(__tstate);
20196 if (PyErr_Occurred()) SWIG_fail;
20197 }
20198 resultobj = SWIG_From_int(static_cast< int >(result));
20199 return resultobj;
20200 fail:
20201 return NULL;
20202 }
20203
20204
20205 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20206 PyObject *resultobj = 0;
20207 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20208 bool arg2 = (bool) true ;
20209 void *argp1 = 0 ;
20210 int res1 = 0 ;
20211 bool val2 ;
20212 int ecode2 = 0 ;
20213 PyObject * obj0 = 0 ;
20214 PyObject * obj1 = 0 ;
20215 char * kwnames[] = {
20216 (char *) "self",(char *) "forward", NULL
20217 };
20218
20219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20221 if (!SWIG_IsOK(res1)) {
20222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20223 }
20224 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20225 if (obj1) {
20226 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20227 if (!SWIG_IsOK(ecode2)) {
20228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20229 }
20230 arg2 = static_cast< bool >(val2);
20231 }
20232 {
20233 PyThreadState* __tstate = wxPyBeginAllowThreads();
20234 (arg1)->AdvanceSelection(arg2);
20235 wxPyEndAllowThreads(__tstate);
20236 if (PyErr_Occurred()) SWIG_fail;
20237 }
20238 resultobj = SWIG_Py_Void();
20239 return resultobj;
20240 fail:
20241 return NULL;
20242 }
20243
20244
20245 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20246 PyObject *resultobj = 0;
20247 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20248 wxPoint *arg2 = 0 ;
20249 long *arg3 = (long *) 0 ;
20250 int result;
20251 void *argp1 = 0 ;
20252 int res1 = 0 ;
20253 wxPoint temp2 ;
20254 long temp3 ;
20255 int res3 = SWIG_TMPOBJ ;
20256 PyObject * obj0 = 0 ;
20257 PyObject * obj1 = 0 ;
20258 char * kwnames[] = {
20259 (char *) "self",(char *) "pt", NULL
20260 };
20261
20262 arg3 = &temp3;
20263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20265 if (!SWIG_IsOK(res1)) {
20266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20267 }
20268 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20269 {
20270 arg2 = &temp2;
20271 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20272 }
20273 {
20274 PyThreadState* __tstate = wxPyBeginAllowThreads();
20275 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20276 wxPyEndAllowThreads(__tstate);
20277 if (PyErr_Occurred()) SWIG_fail;
20278 }
20279 resultobj = SWIG_From_int(static_cast< int >(result));
20280 if (SWIG_IsTmpObj(res3)) {
20281 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20282 } else {
20283 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20284 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20285 }
20286 return resultobj;
20287 fail:
20288 return NULL;
20289 }
20290
20291
20292 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20293 PyObject *resultobj = 0;
20294 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20295 SwigValueWrapper<wxVisualAttributes > result;
20296 int val1 ;
20297 int ecode1 = 0 ;
20298 PyObject * obj0 = 0 ;
20299 char * kwnames[] = {
20300 (char *) "variant", NULL
20301 };
20302
20303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20304 if (obj0) {
20305 ecode1 = SWIG_AsVal_int(obj0, &val1);
20306 if (!SWIG_IsOK(ecode1)) {
20307 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20308 }
20309 arg1 = static_cast< wxWindowVariant >(val1);
20310 }
20311 {
20312 if (!wxPyCheckForApp()) SWIG_fail;
20313 PyThreadState* __tstate = wxPyBeginAllowThreads();
20314 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20315 wxPyEndAllowThreads(__tstate);
20316 if (PyErr_Occurred()) SWIG_fail;
20317 }
20318 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20319 return resultobj;
20320 fail:
20321 return NULL;
20322 }
20323
20324
20325 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20326 PyObject *obj;
20327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20328 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20329 return SWIG_Py_Void();
20330 }
20331
20332 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20333 PyObject *resultobj = 0;
20334 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20335 int arg2 = (int) 0 ;
20336 int arg3 = (int) -1 ;
20337 int arg4 = (int) -1 ;
20338 wxBookCtrlBaseEvent *result = 0 ;
20339 int val1 ;
20340 int ecode1 = 0 ;
20341 int val2 ;
20342 int ecode2 = 0 ;
20343 int val3 ;
20344 int ecode3 = 0 ;
20345 int val4 ;
20346 int ecode4 = 0 ;
20347 PyObject * obj0 = 0 ;
20348 PyObject * obj1 = 0 ;
20349 PyObject * obj2 = 0 ;
20350 PyObject * obj3 = 0 ;
20351 char * kwnames[] = {
20352 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20353 };
20354
20355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20356 if (obj0) {
20357 ecode1 = SWIG_AsVal_int(obj0, &val1);
20358 if (!SWIG_IsOK(ecode1)) {
20359 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20360 }
20361 arg1 = static_cast< wxEventType >(val1);
20362 }
20363 if (obj1) {
20364 ecode2 = SWIG_AsVal_int(obj1, &val2);
20365 if (!SWIG_IsOK(ecode2)) {
20366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20367 }
20368 arg2 = static_cast< int >(val2);
20369 }
20370 if (obj2) {
20371 ecode3 = SWIG_AsVal_int(obj2, &val3);
20372 if (!SWIG_IsOK(ecode3)) {
20373 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20374 }
20375 arg3 = static_cast< int >(val3);
20376 }
20377 if (obj3) {
20378 ecode4 = SWIG_AsVal_int(obj3, &val4);
20379 if (!SWIG_IsOK(ecode4)) {
20380 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20381 }
20382 arg4 = static_cast< int >(val4);
20383 }
20384 {
20385 PyThreadState* __tstate = wxPyBeginAllowThreads();
20386 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20387 wxPyEndAllowThreads(__tstate);
20388 if (PyErr_Occurred()) SWIG_fail;
20389 }
20390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20391 return resultobj;
20392 fail:
20393 return NULL;
20394 }
20395
20396
20397 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20398 PyObject *resultobj = 0;
20399 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20400 int result;
20401 void *argp1 = 0 ;
20402 int res1 = 0 ;
20403 PyObject *swig_obj[1] ;
20404
20405 if (!args) SWIG_fail;
20406 swig_obj[0] = args;
20407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20408 if (!SWIG_IsOK(res1)) {
20409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20410 }
20411 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20412 {
20413 PyThreadState* __tstate = wxPyBeginAllowThreads();
20414 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20415 wxPyEndAllowThreads(__tstate);
20416 if (PyErr_Occurred()) SWIG_fail;
20417 }
20418 resultobj = SWIG_From_int(static_cast< int >(result));
20419 return resultobj;
20420 fail:
20421 return NULL;
20422 }
20423
20424
20425 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20426 PyObject *resultobj = 0;
20427 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20428 int arg2 ;
20429 void *argp1 = 0 ;
20430 int res1 = 0 ;
20431 int val2 ;
20432 int ecode2 = 0 ;
20433 PyObject * obj0 = 0 ;
20434 PyObject * obj1 = 0 ;
20435 char * kwnames[] = {
20436 (char *) "self",(char *) "nSel", NULL
20437 };
20438
20439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20441 if (!SWIG_IsOK(res1)) {
20442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20443 }
20444 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20445 ecode2 = SWIG_AsVal_int(obj1, &val2);
20446 if (!SWIG_IsOK(ecode2)) {
20447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20448 }
20449 arg2 = static_cast< int >(val2);
20450 {
20451 PyThreadState* __tstate = wxPyBeginAllowThreads();
20452 (arg1)->SetSelection(arg2);
20453 wxPyEndAllowThreads(__tstate);
20454 if (PyErr_Occurred()) SWIG_fail;
20455 }
20456 resultobj = SWIG_Py_Void();
20457 return resultobj;
20458 fail:
20459 return NULL;
20460 }
20461
20462
20463 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20464 PyObject *resultobj = 0;
20465 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20466 int result;
20467 void *argp1 = 0 ;
20468 int res1 = 0 ;
20469 PyObject *swig_obj[1] ;
20470
20471 if (!args) SWIG_fail;
20472 swig_obj[0] = args;
20473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20474 if (!SWIG_IsOK(res1)) {
20475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20476 }
20477 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20478 {
20479 PyThreadState* __tstate = wxPyBeginAllowThreads();
20480 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20481 wxPyEndAllowThreads(__tstate);
20482 if (PyErr_Occurred()) SWIG_fail;
20483 }
20484 resultobj = SWIG_From_int(static_cast< int >(result));
20485 return resultobj;
20486 fail:
20487 return NULL;
20488 }
20489
20490
20491 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20492 PyObject *resultobj = 0;
20493 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20494 int arg2 ;
20495 void *argp1 = 0 ;
20496 int res1 = 0 ;
20497 int val2 ;
20498 int ecode2 = 0 ;
20499 PyObject * obj0 = 0 ;
20500 PyObject * obj1 = 0 ;
20501 char * kwnames[] = {
20502 (char *) "self",(char *) "nOldSel", NULL
20503 };
20504
20505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20507 if (!SWIG_IsOK(res1)) {
20508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20509 }
20510 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20511 ecode2 = SWIG_AsVal_int(obj1, &val2);
20512 if (!SWIG_IsOK(ecode2)) {
20513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20514 }
20515 arg2 = static_cast< int >(val2);
20516 {
20517 PyThreadState* __tstate = wxPyBeginAllowThreads();
20518 (arg1)->SetOldSelection(arg2);
20519 wxPyEndAllowThreads(__tstate);
20520 if (PyErr_Occurred()) SWIG_fail;
20521 }
20522 resultobj = SWIG_Py_Void();
20523 return resultobj;
20524 fail:
20525 return NULL;
20526 }
20527
20528
20529 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20530 PyObject *obj;
20531 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20532 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20533 return SWIG_Py_Void();
20534 }
20535
20536 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20537 return SWIG_Python_InitShadowInstance(args);
20538 }
20539
20540 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20541 PyObject *resultobj = 0;
20542 wxWindow *arg1 = (wxWindow *) 0 ;
20543 int arg2 = (int) -1 ;
20544 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20545 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20546 wxSize const &arg4_defvalue = wxDefaultSize ;
20547 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20548 long arg5 = (long) 0 ;
20549 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20550 wxString *arg6 = (wxString *) &arg6_defvalue ;
20551 wxNotebook *result = 0 ;
20552 void *argp1 = 0 ;
20553 int res1 = 0 ;
20554 int val2 ;
20555 int ecode2 = 0 ;
20556 wxPoint temp3 ;
20557 wxSize temp4 ;
20558 long val5 ;
20559 int ecode5 = 0 ;
20560 bool temp6 = false ;
20561 PyObject * obj0 = 0 ;
20562 PyObject * obj1 = 0 ;
20563 PyObject * obj2 = 0 ;
20564 PyObject * obj3 = 0 ;
20565 PyObject * obj4 = 0 ;
20566 PyObject * obj5 = 0 ;
20567 char * kwnames[] = {
20568 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20569 };
20570
20571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20573 if (!SWIG_IsOK(res1)) {
20574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20575 }
20576 arg1 = reinterpret_cast< wxWindow * >(argp1);
20577 if (obj1) {
20578 ecode2 = SWIG_AsVal_int(obj1, &val2);
20579 if (!SWIG_IsOK(ecode2)) {
20580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20581 }
20582 arg2 = static_cast< int >(val2);
20583 }
20584 if (obj2) {
20585 {
20586 arg3 = &temp3;
20587 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20588 }
20589 }
20590 if (obj3) {
20591 {
20592 arg4 = &temp4;
20593 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20594 }
20595 }
20596 if (obj4) {
20597 ecode5 = SWIG_AsVal_long(obj4, &val5);
20598 if (!SWIG_IsOK(ecode5)) {
20599 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20600 }
20601 arg5 = static_cast< long >(val5);
20602 }
20603 if (obj5) {
20604 {
20605 arg6 = wxString_in_helper(obj5);
20606 if (arg6 == NULL) SWIG_fail;
20607 temp6 = true;
20608 }
20609 }
20610 {
20611 if (!wxPyCheckForApp()) SWIG_fail;
20612 PyThreadState* __tstate = wxPyBeginAllowThreads();
20613 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20614 wxPyEndAllowThreads(__tstate);
20615 if (PyErr_Occurred()) SWIG_fail;
20616 }
20617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20618 {
20619 if (temp6)
20620 delete arg6;
20621 }
20622 return resultobj;
20623 fail:
20624 {
20625 if (temp6)
20626 delete arg6;
20627 }
20628 return NULL;
20629 }
20630
20631
20632 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20633 PyObject *resultobj = 0;
20634 wxNotebook *result = 0 ;
20635
20636 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20637 {
20638 if (!wxPyCheckForApp()) SWIG_fail;
20639 PyThreadState* __tstate = wxPyBeginAllowThreads();
20640 result = (wxNotebook *)new wxNotebook();
20641 wxPyEndAllowThreads(__tstate);
20642 if (PyErr_Occurred()) SWIG_fail;
20643 }
20644 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20645 return resultobj;
20646 fail:
20647 return NULL;
20648 }
20649
20650
20651 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20652 PyObject *resultobj = 0;
20653 wxNotebook *arg1 = (wxNotebook *) 0 ;
20654 wxWindow *arg2 = (wxWindow *) 0 ;
20655 int arg3 = (int) -1 ;
20656 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20657 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20658 wxSize const &arg5_defvalue = wxDefaultSize ;
20659 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20660 long arg6 = (long) 0 ;
20661 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20662 wxString *arg7 = (wxString *) &arg7_defvalue ;
20663 bool result;
20664 void *argp1 = 0 ;
20665 int res1 = 0 ;
20666 void *argp2 = 0 ;
20667 int res2 = 0 ;
20668 int val3 ;
20669 int ecode3 = 0 ;
20670 wxPoint temp4 ;
20671 wxSize temp5 ;
20672 long val6 ;
20673 int ecode6 = 0 ;
20674 bool temp7 = false ;
20675 PyObject * obj0 = 0 ;
20676 PyObject * obj1 = 0 ;
20677 PyObject * obj2 = 0 ;
20678 PyObject * obj3 = 0 ;
20679 PyObject * obj4 = 0 ;
20680 PyObject * obj5 = 0 ;
20681 PyObject * obj6 = 0 ;
20682 char * kwnames[] = {
20683 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20684 };
20685
20686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20688 if (!SWIG_IsOK(res1)) {
20689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20690 }
20691 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20692 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20693 if (!SWIG_IsOK(res2)) {
20694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20695 }
20696 arg2 = reinterpret_cast< wxWindow * >(argp2);
20697 if (obj2) {
20698 ecode3 = SWIG_AsVal_int(obj2, &val3);
20699 if (!SWIG_IsOK(ecode3)) {
20700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20701 }
20702 arg3 = static_cast< int >(val3);
20703 }
20704 if (obj3) {
20705 {
20706 arg4 = &temp4;
20707 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20708 }
20709 }
20710 if (obj4) {
20711 {
20712 arg5 = &temp5;
20713 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20714 }
20715 }
20716 if (obj5) {
20717 ecode6 = SWIG_AsVal_long(obj5, &val6);
20718 if (!SWIG_IsOK(ecode6)) {
20719 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20720 }
20721 arg6 = static_cast< long >(val6);
20722 }
20723 if (obj6) {
20724 {
20725 arg7 = wxString_in_helper(obj6);
20726 if (arg7 == NULL) SWIG_fail;
20727 temp7 = true;
20728 }
20729 }
20730 {
20731 PyThreadState* __tstate = wxPyBeginAllowThreads();
20732 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20733 wxPyEndAllowThreads(__tstate);
20734 if (PyErr_Occurred()) SWIG_fail;
20735 }
20736 {
20737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20738 }
20739 {
20740 if (temp7)
20741 delete arg7;
20742 }
20743 return resultobj;
20744 fail:
20745 {
20746 if (temp7)
20747 delete arg7;
20748 }
20749 return NULL;
20750 }
20751
20752
20753 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20754 PyObject *resultobj = 0;
20755 wxNotebook *arg1 = (wxNotebook *) 0 ;
20756 int result;
20757 void *argp1 = 0 ;
20758 int res1 = 0 ;
20759 PyObject *swig_obj[1] ;
20760
20761 if (!args) SWIG_fail;
20762 swig_obj[0] = args;
20763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20764 if (!SWIG_IsOK(res1)) {
20765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20766 }
20767 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20768 {
20769 PyThreadState* __tstate = wxPyBeginAllowThreads();
20770 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20771 wxPyEndAllowThreads(__tstate);
20772 if (PyErr_Occurred()) SWIG_fail;
20773 }
20774 resultobj = SWIG_From_int(static_cast< int >(result));
20775 return resultobj;
20776 fail:
20777 return NULL;
20778 }
20779
20780
20781 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20782 PyObject *resultobj = 0;
20783 wxNotebook *arg1 = (wxNotebook *) 0 ;
20784 wxSize *arg2 = 0 ;
20785 void *argp1 = 0 ;
20786 int res1 = 0 ;
20787 wxSize temp2 ;
20788 PyObject * obj0 = 0 ;
20789 PyObject * obj1 = 0 ;
20790 char * kwnames[] = {
20791 (char *) "self",(char *) "padding", NULL
20792 };
20793
20794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20796 if (!SWIG_IsOK(res1)) {
20797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20798 }
20799 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20800 {
20801 arg2 = &temp2;
20802 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20803 }
20804 {
20805 PyThreadState* __tstate = wxPyBeginAllowThreads();
20806 (arg1)->SetPadding((wxSize const &)*arg2);
20807 wxPyEndAllowThreads(__tstate);
20808 if (PyErr_Occurred()) SWIG_fail;
20809 }
20810 resultobj = SWIG_Py_Void();
20811 return resultobj;
20812 fail:
20813 return NULL;
20814 }
20815
20816
20817 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20818 PyObject *resultobj = 0;
20819 wxNotebook *arg1 = (wxNotebook *) 0 ;
20820 wxSize *arg2 = 0 ;
20821 void *argp1 = 0 ;
20822 int res1 = 0 ;
20823 wxSize temp2 ;
20824 PyObject * obj0 = 0 ;
20825 PyObject * obj1 = 0 ;
20826 char * kwnames[] = {
20827 (char *) "self",(char *) "sz", NULL
20828 };
20829
20830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20832 if (!SWIG_IsOK(res1)) {
20833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20834 }
20835 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20836 {
20837 arg2 = &temp2;
20838 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20839 }
20840 {
20841 PyThreadState* __tstate = wxPyBeginAllowThreads();
20842 (arg1)->SetTabSize((wxSize const &)*arg2);
20843 wxPyEndAllowThreads(__tstate);
20844 if (PyErr_Occurred()) SWIG_fail;
20845 }
20846 resultobj = SWIG_Py_Void();
20847 return resultobj;
20848 fail:
20849 return NULL;
20850 }
20851
20852
20853 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20854 PyObject *resultobj = 0;
20855 wxNotebook *arg1 = (wxNotebook *) 0 ;
20856 wxColour result;
20857 void *argp1 = 0 ;
20858 int res1 = 0 ;
20859 PyObject *swig_obj[1] ;
20860
20861 if (!args) SWIG_fail;
20862 swig_obj[0] = args;
20863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20864 if (!SWIG_IsOK(res1)) {
20865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20866 }
20867 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20868 {
20869 PyThreadState* __tstate = wxPyBeginAllowThreads();
20870 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20871 wxPyEndAllowThreads(__tstate);
20872 if (PyErr_Occurred()) SWIG_fail;
20873 }
20874 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20875 return resultobj;
20876 fail:
20877 return NULL;
20878 }
20879
20880
20881 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20882 PyObject *resultobj = 0;
20883 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20884 SwigValueWrapper<wxVisualAttributes > result;
20885 int val1 ;
20886 int ecode1 = 0 ;
20887 PyObject * obj0 = 0 ;
20888 char * kwnames[] = {
20889 (char *) "variant", NULL
20890 };
20891
20892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20893 if (obj0) {
20894 ecode1 = SWIG_AsVal_int(obj0, &val1);
20895 if (!SWIG_IsOK(ecode1)) {
20896 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20897 }
20898 arg1 = static_cast< wxWindowVariant >(val1);
20899 }
20900 {
20901 if (!wxPyCheckForApp()) SWIG_fail;
20902 PyThreadState* __tstate = wxPyBeginAllowThreads();
20903 result = wxNotebook::GetClassDefaultAttributes(arg1);
20904 wxPyEndAllowThreads(__tstate);
20905 if (PyErr_Occurred()) SWIG_fail;
20906 }
20907 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20908 return resultobj;
20909 fail:
20910 return NULL;
20911 }
20912
20913
20914 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20915 PyObject *obj;
20916 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20917 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20918 return SWIG_Py_Void();
20919 }
20920
20921 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20922 return SWIG_Python_InitShadowInstance(args);
20923 }
20924
20925 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20926 PyObject *resultobj = 0;
20927 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20928 int arg2 = (int) 0 ;
20929 int arg3 = (int) -1 ;
20930 int arg4 = (int) -1 ;
20931 wxNotebookEvent *result = 0 ;
20932 int val1 ;
20933 int ecode1 = 0 ;
20934 int val2 ;
20935 int ecode2 = 0 ;
20936 int val3 ;
20937 int ecode3 = 0 ;
20938 int val4 ;
20939 int ecode4 = 0 ;
20940 PyObject * obj0 = 0 ;
20941 PyObject * obj1 = 0 ;
20942 PyObject * obj2 = 0 ;
20943 PyObject * obj3 = 0 ;
20944 char * kwnames[] = {
20945 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20946 };
20947
20948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20949 if (obj0) {
20950 ecode1 = SWIG_AsVal_int(obj0, &val1);
20951 if (!SWIG_IsOK(ecode1)) {
20952 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20953 }
20954 arg1 = static_cast< wxEventType >(val1);
20955 }
20956 if (obj1) {
20957 ecode2 = SWIG_AsVal_int(obj1, &val2);
20958 if (!SWIG_IsOK(ecode2)) {
20959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20960 }
20961 arg2 = static_cast< int >(val2);
20962 }
20963 if (obj2) {
20964 ecode3 = SWIG_AsVal_int(obj2, &val3);
20965 if (!SWIG_IsOK(ecode3)) {
20966 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20967 }
20968 arg3 = static_cast< int >(val3);
20969 }
20970 if (obj3) {
20971 ecode4 = SWIG_AsVal_int(obj3, &val4);
20972 if (!SWIG_IsOK(ecode4)) {
20973 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20974 }
20975 arg4 = static_cast< int >(val4);
20976 }
20977 {
20978 PyThreadState* __tstate = wxPyBeginAllowThreads();
20979 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20980 wxPyEndAllowThreads(__tstate);
20981 if (PyErr_Occurred()) SWIG_fail;
20982 }
20983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20984 return resultobj;
20985 fail:
20986 return NULL;
20987 }
20988
20989
20990 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20991 PyObject *obj;
20992 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20993 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20994 return SWIG_Py_Void();
20995 }
20996
20997 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20998 return SWIG_Python_InitShadowInstance(args);
20999 }
21000
21001 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21002 PyObject *resultobj = 0;
21003 wxWindow *arg1 = (wxWindow *) 0 ;
21004 int arg2 = (int) -1 ;
21005 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21006 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21007 wxSize const &arg4_defvalue = wxDefaultSize ;
21008 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21009 long arg5 = (long) 0 ;
21010 wxString const &arg6_defvalue = wxPyEmptyString ;
21011 wxString *arg6 = (wxString *) &arg6_defvalue ;
21012 wxListbook *result = 0 ;
21013 void *argp1 = 0 ;
21014 int res1 = 0 ;
21015 int val2 ;
21016 int ecode2 = 0 ;
21017 wxPoint temp3 ;
21018 wxSize temp4 ;
21019 long val5 ;
21020 int ecode5 = 0 ;
21021 bool temp6 = false ;
21022 PyObject * obj0 = 0 ;
21023 PyObject * obj1 = 0 ;
21024 PyObject * obj2 = 0 ;
21025 PyObject * obj3 = 0 ;
21026 PyObject * obj4 = 0 ;
21027 PyObject * obj5 = 0 ;
21028 char * kwnames[] = {
21029 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21030 };
21031
21032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21034 if (!SWIG_IsOK(res1)) {
21035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21036 }
21037 arg1 = reinterpret_cast< wxWindow * >(argp1);
21038 if (obj1) {
21039 ecode2 = SWIG_AsVal_int(obj1, &val2);
21040 if (!SWIG_IsOK(ecode2)) {
21041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21042 }
21043 arg2 = static_cast< int >(val2);
21044 }
21045 if (obj2) {
21046 {
21047 arg3 = &temp3;
21048 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21049 }
21050 }
21051 if (obj3) {
21052 {
21053 arg4 = &temp4;
21054 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21055 }
21056 }
21057 if (obj4) {
21058 ecode5 = SWIG_AsVal_long(obj4, &val5);
21059 if (!SWIG_IsOK(ecode5)) {
21060 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21061 }
21062 arg5 = static_cast< long >(val5);
21063 }
21064 if (obj5) {
21065 {
21066 arg6 = wxString_in_helper(obj5);
21067 if (arg6 == NULL) SWIG_fail;
21068 temp6 = true;
21069 }
21070 }
21071 {
21072 if (!wxPyCheckForApp()) SWIG_fail;
21073 PyThreadState* __tstate = wxPyBeginAllowThreads();
21074 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21075 wxPyEndAllowThreads(__tstate);
21076 if (PyErr_Occurred()) SWIG_fail;
21077 }
21078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21079 {
21080 if (temp6)
21081 delete arg6;
21082 }
21083 return resultobj;
21084 fail:
21085 {
21086 if (temp6)
21087 delete arg6;
21088 }
21089 return NULL;
21090 }
21091
21092
21093 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21094 PyObject *resultobj = 0;
21095 wxListbook *result = 0 ;
21096
21097 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21098 {
21099 if (!wxPyCheckForApp()) SWIG_fail;
21100 PyThreadState* __tstate = wxPyBeginAllowThreads();
21101 result = (wxListbook *)new wxListbook();
21102 wxPyEndAllowThreads(__tstate);
21103 if (PyErr_Occurred()) SWIG_fail;
21104 }
21105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21106 return resultobj;
21107 fail:
21108 return NULL;
21109 }
21110
21111
21112 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21113 PyObject *resultobj = 0;
21114 wxListbook *arg1 = (wxListbook *) 0 ;
21115 wxWindow *arg2 = (wxWindow *) 0 ;
21116 int arg3 = (int) -1 ;
21117 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21118 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21119 wxSize const &arg5_defvalue = wxDefaultSize ;
21120 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21121 long arg6 = (long) 0 ;
21122 wxString const &arg7_defvalue = wxPyEmptyString ;
21123 wxString *arg7 = (wxString *) &arg7_defvalue ;
21124 bool result;
21125 void *argp1 = 0 ;
21126 int res1 = 0 ;
21127 void *argp2 = 0 ;
21128 int res2 = 0 ;
21129 int val3 ;
21130 int ecode3 = 0 ;
21131 wxPoint temp4 ;
21132 wxSize temp5 ;
21133 long val6 ;
21134 int ecode6 = 0 ;
21135 bool temp7 = false ;
21136 PyObject * obj0 = 0 ;
21137 PyObject * obj1 = 0 ;
21138 PyObject * obj2 = 0 ;
21139 PyObject * obj3 = 0 ;
21140 PyObject * obj4 = 0 ;
21141 PyObject * obj5 = 0 ;
21142 PyObject * obj6 = 0 ;
21143 char * kwnames[] = {
21144 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21145 };
21146
21147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21149 if (!SWIG_IsOK(res1)) {
21150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21151 }
21152 arg1 = reinterpret_cast< wxListbook * >(argp1);
21153 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21154 if (!SWIG_IsOK(res2)) {
21155 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21156 }
21157 arg2 = reinterpret_cast< wxWindow * >(argp2);
21158 if (obj2) {
21159 ecode3 = SWIG_AsVal_int(obj2, &val3);
21160 if (!SWIG_IsOK(ecode3)) {
21161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21162 }
21163 arg3 = static_cast< int >(val3);
21164 }
21165 if (obj3) {
21166 {
21167 arg4 = &temp4;
21168 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21169 }
21170 }
21171 if (obj4) {
21172 {
21173 arg5 = &temp5;
21174 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21175 }
21176 }
21177 if (obj5) {
21178 ecode6 = SWIG_AsVal_long(obj5, &val6);
21179 if (!SWIG_IsOK(ecode6)) {
21180 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21181 }
21182 arg6 = static_cast< long >(val6);
21183 }
21184 if (obj6) {
21185 {
21186 arg7 = wxString_in_helper(obj6);
21187 if (arg7 == NULL) SWIG_fail;
21188 temp7 = true;
21189 }
21190 }
21191 {
21192 PyThreadState* __tstate = wxPyBeginAllowThreads();
21193 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21194 wxPyEndAllowThreads(__tstate);
21195 if (PyErr_Occurred()) SWIG_fail;
21196 }
21197 {
21198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21199 }
21200 {
21201 if (temp7)
21202 delete arg7;
21203 }
21204 return resultobj;
21205 fail:
21206 {
21207 if (temp7)
21208 delete arg7;
21209 }
21210 return NULL;
21211 }
21212
21213
21214 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21215 PyObject *resultobj = 0;
21216 wxListbook *arg1 = (wxListbook *) 0 ;
21217 wxListView *result = 0 ;
21218 void *argp1 = 0 ;
21219 int res1 = 0 ;
21220 PyObject *swig_obj[1] ;
21221
21222 if (!args) SWIG_fail;
21223 swig_obj[0] = args;
21224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21225 if (!SWIG_IsOK(res1)) {
21226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21227 }
21228 arg1 = reinterpret_cast< wxListbook * >(argp1);
21229 {
21230 PyThreadState* __tstate = wxPyBeginAllowThreads();
21231 result = (wxListView *)(arg1)->GetListView();
21232 wxPyEndAllowThreads(__tstate);
21233 if (PyErr_Occurred()) SWIG_fail;
21234 }
21235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21236 return resultobj;
21237 fail:
21238 return NULL;
21239 }
21240
21241
21242 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21243 PyObject *obj;
21244 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21245 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21246 return SWIG_Py_Void();
21247 }
21248
21249 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21250 return SWIG_Python_InitShadowInstance(args);
21251 }
21252
21253 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21254 PyObject *resultobj = 0;
21255 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21256 int arg2 = (int) 0 ;
21257 int arg3 = (int) -1 ;
21258 int arg4 = (int) -1 ;
21259 wxListbookEvent *result = 0 ;
21260 int val1 ;
21261 int ecode1 = 0 ;
21262 int val2 ;
21263 int ecode2 = 0 ;
21264 int val3 ;
21265 int ecode3 = 0 ;
21266 int val4 ;
21267 int ecode4 = 0 ;
21268 PyObject * obj0 = 0 ;
21269 PyObject * obj1 = 0 ;
21270 PyObject * obj2 = 0 ;
21271 PyObject * obj3 = 0 ;
21272 char * kwnames[] = {
21273 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21274 };
21275
21276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21277 if (obj0) {
21278 ecode1 = SWIG_AsVal_int(obj0, &val1);
21279 if (!SWIG_IsOK(ecode1)) {
21280 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21281 }
21282 arg1 = static_cast< wxEventType >(val1);
21283 }
21284 if (obj1) {
21285 ecode2 = SWIG_AsVal_int(obj1, &val2);
21286 if (!SWIG_IsOK(ecode2)) {
21287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21288 }
21289 arg2 = static_cast< int >(val2);
21290 }
21291 if (obj2) {
21292 ecode3 = SWIG_AsVal_int(obj2, &val3);
21293 if (!SWIG_IsOK(ecode3)) {
21294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21295 }
21296 arg3 = static_cast< int >(val3);
21297 }
21298 if (obj3) {
21299 ecode4 = SWIG_AsVal_int(obj3, &val4);
21300 if (!SWIG_IsOK(ecode4)) {
21301 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21302 }
21303 arg4 = static_cast< int >(val4);
21304 }
21305 {
21306 PyThreadState* __tstate = wxPyBeginAllowThreads();
21307 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21308 wxPyEndAllowThreads(__tstate);
21309 if (PyErr_Occurred()) SWIG_fail;
21310 }
21311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21312 return resultobj;
21313 fail:
21314 return NULL;
21315 }
21316
21317
21318 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21319 PyObject *obj;
21320 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21321 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21322 return SWIG_Py_Void();
21323 }
21324
21325 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21326 return SWIG_Python_InitShadowInstance(args);
21327 }
21328
21329 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21330 PyObject *resultobj = 0;
21331 wxWindow *arg1 = (wxWindow *) 0 ;
21332 int arg2 ;
21333 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21334 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21335 wxSize const &arg4_defvalue = wxDefaultSize ;
21336 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21337 long arg5 = (long) 0 ;
21338 wxString const &arg6_defvalue = wxPyEmptyString ;
21339 wxString *arg6 = (wxString *) &arg6_defvalue ;
21340 wxChoicebook *result = 0 ;
21341 void *argp1 = 0 ;
21342 int res1 = 0 ;
21343 int val2 ;
21344 int ecode2 = 0 ;
21345 wxPoint temp3 ;
21346 wxSize temp4 ;
21347 long val5 ;
21348 int ecode5 = 0 ;
21349 bool temp6 = false ;
21350 PyObject * obj0 = 0 ;
21351 PyObject * obj1 = 0 ;
21352 PyObject * obj2 = 0 ;
21353 PyObject * obj3 = 0 ;
21354 PyObject * obj4 = 0 ;
21355 PyObject * obj5 = 0 ;
21356 char * kwnames[] = {
21357 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21358 };
21359
21360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21362 if (!SWIG_IsOK(res1)) {
21363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21364 }
21365 arg1 = reinterpret_cast< wxWindow * >(argp1);
21366 ecode2 = SWIG_AsVal_int(obj1, &val2);
21367 if (!SWIG_IsOK(ecode2)) {
21368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21369 }
21370 arg2 = static_cast< int >(val2);
21371 if (obj2) {
21372 {
21373 arg3 = &temp3;
21374 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21375 }
21376 }
21377 if (obj3) {
21378 {
21379 arg4 = &temp4;
21380 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21381 }
21382 }
21383 if (obj4) {
21384 ecode5 = SWIG_AsVal_long(obj4, &val5);
21385 if (!SWIG_IsOK(ecode5)) {
21386 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21387 }
21388 arg5 = static_cast< long >(val5);
21389 }
21390 if (obj5) {
21391 {
21392 arg6 = wxString_in_helper(obj5);
21393 if (arg6 == NULL) SWIG_fail;
21394 temp6 = true;
21395 }
21396 }
21397 {
21398 if (!wxPyCheckForApp()) SWIG_fail;
21399 PyThreadState* __tstate = wxPyBeginAllowThreads();
21400 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21401 wxPyEndAllowThreads(__tstate);
21402 if (PyErr_Occurred()) SWIG_fail;
21403 }
21404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21405 {
21406 if (temp6)
21407 delete arg6;
21408 }
21409 return resultobj;
21410 fail:
21411 {
21412 if (temp6)
21413 delete arg6;
21414 }
21415 return NULL;
21416 }
21417
21418
21419 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21420 PyObject *resultobj = 0;
21421 wxChoicebook *result = 0 ;
21422
21423 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21424 {
21425 if (!wxPyCheckForApp()) SWIG_fail;
21426 PyThreadState* __tstate = wxPyBeginAllowThreads();
21427 result = (wxChoicebook *)new wxChoicebook();
21428 wxPyEndAllowThreads(__tstate);
21429 if (PyErr_Occurred()) SWIG_fail;
21430 }
21431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21432 return resultobj;
21433 fail:
21434 return NULL;
21435 }
21436
21437
21438 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21439 PyObject *resultobj = 0;
21440 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21441 wxWindow *arg2 = (wxWindow *) 0 ;
21442 int arg3 ;
21443 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21444 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21445 wxSize const &arg5_defvalue = wxDefaultSize ;
21446 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21447 long arg6 = (long) 0 ;
21448 wxString const &arg7_defvalue = wxPyEmptyString ;
21449 wxString *arg7 = (wxString *) &arg7_defvalue ;
21450 bool result;
21451 void *argp1 = 0 ;
21452 int res1 = 0 ;
21453 void *argp2 = 0 ;
21454 int res2 = 0 ;
21455 int val3 ;
21456 int ecode3 = 0 ;
21457 wxPoint temp4 ;
21458 wxSize temp5 ;
21459 long val6 ;
21460 int ecode6 = 0 ;
21461 bool temp7 = false ;
21462 PyObject * obj0 = 0 ;
21463 PyObject * obj1 = 0 ;
21464 PyObject * obj2 = 0 ;
21465 PyObject * obj3 = 0 ;
21466 PyObject * obj4 = 0 ;
21467 PyObject * obj5 = 0 ;
21468 PyObject * obj6 = 0 ;
21469 char * kwnames[] = {
21470 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21471 };
21472
21473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21475 if (!SWIG_IsOK(res1)) {
21476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21477 }
21478 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21479 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21480 if (!SWIG_IsOK(res2)) {
21481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21482 }
21483 arg2 = reinterpret_cast< wxWindow * >(argp2);
21484 ecode3 = SWIG_AsVal_int(obj2, &val3);
21485 if (!SWIG_IsOK(ecode3)) {
21486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21487 }
21488 arg3 = static_cast< int >(val3);
21489 if (obj3) {
21490 {
21491 arg4 = &temp4;
21492 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21493 }
21494 }
21495 if (obj4) {
21496 {
21497 arg5 = &temp5;
21498 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21499 }
21500 }
21501 if (obj5) {
21502 ecode6 = SWIG_AsVal_long(obj5, &val6);
21503 if (!SWIG_IsOK(ecode6)) {
21504 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21505 }
21506 arg6 = static_cast< long >(val6);
21507 }
21508 if (obj6) {
21509 {
21510 arg7 = wxString_in_helper(obj6);
21511 if (arg7 == NULL) SWIG_fail;
21512 temp7 = true;
21513 }
21514 }
21515 {
21516 PyThreadState* __tstate = wxPyBeginAllowThreads();
21517 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21518 wxPyEndAllowThreads(__tstate);
21519 if (PyErr_Occurred()) SWIG_fail;
21520 }
21521 {
21522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21523 }
21524 {
21525 if (temp7)
21526 delete arg7;
21527 }
21528 return resultobj;
21529 fail:
21530 {
21531 if (temp7)
21532 delete arg7;
21533 }
21534 return NULL;
21535 }
21536
21537
21538 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21539 PyObject *resultobj = 0;
21540 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21541 wxChoice *result = 0 ;
21542 void *argp1 = 0 ;
21543 int res1 = 0 ;
21544 PyObject *swig_obj[1] ;
21545
21546 if (!args) SWIG_fail;
21547 swig_obj[0] = args;
21548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21549 if (!SWIG_IsOK(res1)) {
21550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21551 }
21552 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21553 {
21554 PyThreadState* __tstate = wxPyBeginAllowThreads();
21555 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21556 wxPyEndAllowThreads(__tstate);
21557 if (PyErr_Occurred()) SWIG_fail;
21558 }
21559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21560 return resultobj;
21561 fail:
21562 return NULL;
21563 }
21564
21565
21566 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21567 PyObject *obj;
21568 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21569 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21570 return SWIG_Py_Void();
21571 }
21572
21573 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21574 return SWIG_Python_InitShadowInstance(args);
21575 }
21576
21577 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21578 PyObject *resultobj = 0;
21579 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21580 int arg2 = (int) 0 ;
21581 int arg3 = (int) -1 ;
21582 int arg4 = (int) -1 ;
21583 wxChoicebookEvent *result = 0 ;
21584 int val1 ;
21585 int ecode1 = 0 ;
21586 int val2 ;
21587 int ecode2 = 0 ;
21588 int val3 ;
21589 int ecode3 = 0 ;
21590 int val4 ;
21591 int ecode4 = 0 ;
21592 PyObject * obj0 = 0 ;
21593 PyObject * obj1 = 0 ;
21594 PyObject * obj2 = 0 ;
21595 PyObject * obj3 = 0 ;
21596 char * kwnames[] = {
21597 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21598 };
21599
21600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21601 if (obj0) {
21602 ecode1 = SWIG_AsVal_int(obj0, &val1);
21603 if (!SWIG_IsOK(ecode1)) {
21604 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21605 }
21606 arg1 = static_cast< wxEventType >(val1);
21607 }
21608 if (obj1) {
21609 ecode2 = SWIG_AsVal_int(obj1, &val2);
21610 if (!SWIG_IsOK(ecode2)) {
21611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21612 }
21613 arg2 = static_cast< int >(val2);
21614 }
21615 if (obj2) {
21616 ecode3 = SWIG_AsVal_int(obj2, &val3);
21617 if (!SWIG_IsOK(ecode3)) {
21618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21619 }
21620 arg3 = static_cast< int >(val3);
21621 }
21622 if (obj3) {
21623 ecode4 = SWIG_AsVal_int(obj3, &val4);
21624 if (!SWIG_IsOK(ecode4)) {
21625 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21626 }
21627 arg4 = static_cast< int >(val4);
21628 }
21629 {
21630 PyThreadState* __tstate = wxPyBeginAllowThreads();
21631 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21632 wxPyEndAllowThreads(__tstate);
21633 if (PyErr_Occurred()) SWIG_fail;
21634 }
21635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21636 return resultobj;
21637 fail:
21638 return NULL;
21639 }
21640
21641
21642 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21643 PyObject *obj;
21644 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21645 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21646 return SWIG_Py_Void();
21647 }
21648
21649 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21650 return SWIG_Python_InitShadowInstance(args);
21651 }
21652
21653 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21654 PyObject *resultobj = 0;
21655 wxWindow *arg1 = (wxWindow *) 0 ;
21656 int arg2 ;
21657 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21658 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21659 wxSize const &arg4_defvalue = wxDefaultSize ;
21660 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21661 long arg5 = (long) wxBK_DEFAULT ;
21662 wxString const &arg6_defvalue = wxPyEmptyString ;
21663 wxString *arg6 = (wxString *) &arg6_defvalue ;
21664 wxTreebook *result = 0 ;
21665 void *argp1 = 0 ;
21666 int res1 = 0 ;
21667 int val2 ;
21668 int ecode2 = 0 ;
21669 wxPoint temp3 ;
21670 wxSize temp4 ;
21671 long val5 ;
21672 int ecode5 = 0 ;
21673 bool temp6 = false ;
21674 PyObject * obj0 = 0 ;
21675 PyObject * obj1 = 0 ;
21676 PyObject * obj2 = 0 ;
21677 PyObject * obj3 = 0 ;
21678 PyObject * obj4 = 0 ;
21679 PyObject * obj5 = 0 ;
21680 char * kwnames[] = {
21681 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21682 };
21683
21684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21686 if (!SWIG_IsOK(res1)) {
21687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21688 }
21689 arg1 = reinterpret_cast< wxWindow * >(argp1);
21690 ecode2 = SWIG_AsVal_int(obj1, &val2);
21691 if (!SWIG_IsOK(ecode2)) {
21692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21693 }
21694 arg2 = static_cast< int >(val2);
21695 if (obj2) {
21696 {
21697 arg3 = &temp3;
21698 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21699 }
21700 }
21701 if (obj3) {
21702 {
21703 arg4 = &temp4;
21704 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21705 }
21706 }
21707 if (obj4) {
21708 ecode5 = SWIG_AsVal_long(obj4, &val5);
21709 if (!SWIG_IsOK(ecode5)) {
21710 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21711 }
21712 arg5 = static_cast< long >(val5);
21713 }
21714 if (obj5) {
21715 {
21716 arg6 = wxString_in_helper(obj5);
21717 if (arg6 == NULL) SWIG_fail;
21718 temp6 = true;
21719 }
21720 }
21721 {
21722 if (!wxPyCheckForApp()) SWIG_fail;
21723 PyThreadState* __tstate = wxPyBeginAllowThreads();
21724 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21725 wxPyEndAllowThreads(__tstate);
21726 if (PyErr_Occurred()) SWIG_fail;
21727 }
21728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21729 {
21730 if (temp6)
21731 delete arg6;
21732 }
21733 return resultobj;
21734 fail:
21735 {
21736 if (temp6)
21737 delete arg6;
21738 }
21739 return NULL;
21740 }
21741
21742
21743 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21744 PyObject *resultobj = 0;
21745 wxTreebook *result = 0 ;
21746
21747 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21748 {
21749 if (!wxPyCheckForApp()) SWIG_fail;
21750 PyThreadState* __tstate = wxPyBeginAllowThreads();
21751 result = (wxTreebook *)new wxTreebook();
21752 wxPyEndAllowThreads(__tstate);
21753 if (PyErr_Occurred()) SWIG_fail;
21754 }
21755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21756 return resultobj;
21757 fail:
21758 return NULL;
21759 }
21760
21761
21762 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21763 PyObject *resultobj = 0;
21764 wxTreebook *arg1 = (wxTreebook *) 0 ;
21765 wxWindow *arg2 = (wxWindow *) 0 ;
21766 int arg3 ;
21767 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21768 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21769 wxSize const &arg5_defvalue = wxDefaultSize ;
21770 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21771 long arg6 = (long) wxBK_DEFAULT ;
21772 wxString const &arg7_defvalue = wxPyEmptyString ;
21773 wxString *arg7 = (wxString *) &arg7_defvalue ;
21774 bool result;
21775 void *argp1 = 0 ;
21776 int res1 = 0 ;
21777 void *argp2 = 0 ;
21778 int res2 = 0 ;
21779 int val3 ;
21780 int ecode3 = 0 ;
21781 wxPoint temp4 ;
21782 wxSize temp5 ;
21783 long val6 ;
21784 int ecode6 = 0 ;
21785 bool temp7 = false ;
21786 PyObject * obj0 = 0 ;
21787 PyObject * obj1 = 0 ;
21788 PyObject * obj2 = 0 ;
21789 PyObject * obj3 = 0 ;
21790 PyObject * obj4 = 0 ;
21791 PyObject * obj5 = 0 ;
21792 PyObject * obj6 = 0 ;
21793 char * kwnames[] = {
21794 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21795 };
21796
21797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21799 if (!SWIG_IsOK(res1)) {
21800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21801 }
21802 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21803 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21804 if (!SWIG_IsOK(res2)) {
21805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21806 }
21807 arg2 = reinterpret_cast< wxWindow * >(argp2);
21808 ecode3 = SWIG_AsVal_int(obj2, &val3);
21809 if (!SWIG_IsOK(ecode3)) {
21810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21811 }
21812 arg3 = static_cast< int >(val3);
21813 if (obj3) {
21814 {
21815 arg4 = &temp4;
21816 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21817 }
21818 }
21819 if (obj4) {
21820 {
21821 arg5 = &temp5;
21822 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21823 }
21824 }
21825 if (obj5) {
21826 ecode6 = SWIG_AsVal_long(obj5, &val6);
21827 if (!SWIG_IsOK(ecode6)) {
21828 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21829 }
21830 arg6 = static_cast< long >(val6);
21831 }
21832 if (obj6) {
21833 {
21834 arg7 = wxString_in_helper(obj6);
21835 if (arg7 == NULL) SWIG_fail;
21836 temp7 = true;
21837 }
21838 }
21839 {
21840 PyThreadState* __tstate = wxPyBeginAllowThreads();
21841 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21842 wxPyEndAllowThreads(__tstate);
21843 if (PyErr_Occurred()) SWIG_fail;
21844 }
21845 {
21846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21847 }
21848 {
21849 if (temp7)
21850 delete arg7;
21851 }
21852 return resultobj;
21853 fail:
21854 {
21855 if (temp7)
21856 delete arg7;
21857 }
21858 return NULL;
21859 }
21860
21861
21862 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21863 PyObject *resultobj = 0;
21864 wxTreebook *arg1 = (wxTreebook *) 0 ;
21865 size_t arg2 ;
21866 wxWindow *arg3 = (wxWindow *) 0 ;
21867 wxString *arg4 = 0 ;
21868 bool arg5 = (bool) false ;
21869 int arg6 = (int) wxNOT_FOUND ;
21870 bool result;
21871 void *argp1 = 0 ;
21872 int res1 = 0 ;
21873 size_t val2 ;
21874 int ecode2 = 0 ;
21875 void *argp3 = 0 ;
21876 int res3 = 0 ;
21877 bool temp4 = false ;
21878 bool val5 ;
21879 int ecode5 = 0 ;
21880 int val6 ;
21881 int ecode6 = 0 ;
21882 PyObject * obj0 = 0 ;
21883 PyObject * obj1 = 0 ;
21884 PyObject * obj2 = 0 ;
21885 PyObject * obj3 = 0 ;
21886 PyObject * obj4 = 0 ;
21887 PyObject * obj5 = 0 ;
21888 char * kwnames[] = {
21889 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21890 };
21891
21892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21894 if (!SWIG_IsOK(res1)) {
21895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21896 }
21897 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21898 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21899 if (!SWIG_IsOK(ecode2)) {
21900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21901 }
21902 arg2 = static_cast< size_t >(val2);
21903 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21904 if (!SWIG_IsOK(res3)) {
21905 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21906 }
21907 arg3 = reinterpret_cast< wxWindow * >(argp3);
21908 {
21909 arg4 = wxString_in_helper(obj3);
21910 if (arg4 == NULL) SWIG_fail;
21911 temp4 = true;
21912 }
21913 if (obj4) {
21914 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21915 if (!SWIG_IsOK(ecode5)) {
21916 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21917 }
21918 arg5 = static_cast< bool >(val5);
21919 }
21920 if (obj5) {
21921 ecode6 = SWIG_AsVal_int(obj5, &val6);
21922 if (!SWIG_IsOK(ecode6)) {
21923 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21924 }
21925 arg6 = static_cast< int >(val6);
21926 }
21927 {
21928 PyThreadState* __tstate = wxPyBeginAllowThreads();
21929 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21930 wxPyEndAllowThreads(__tstate);
21931 if (PyErr_Occurred()) SWIG_fail;
21932 }
21933 {
21934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21935 }
21936 {
21937 if (temp4)
21938 delete arg4;
21939 }
21940 return resultobj;
21941 fail:
21942 {
21943 if (temp4)
21944 delete arg4;
21945 }
21946 return NULL;
21947 }
21948
21949
21950 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21951 PyObject *resultobj = 0;
21952 wxTreebook *arg1 = (wxTreebook *) 0 ;
21953 wxWindow *arg2 = (wxWindow *) 0 ;
21954 wxString *arg3 = 0 ;
21955 bool arg4 = (bool) false ;
21956 int arg5 = (int) wxNOT_FOUND ;
21957 bool result;
21958 void *argp1 = 0 ;
21959 int res1 = 0 ;
21960 void *argp2 = 0 ;
21961 int res2 = 0 ;
21962 bool temp3 = false ;
21963 bool val4 ;
21964 int ecode4 = 0 ;
21965 int val5 ;
21966 int ecode5 = 0 ;
21967 PyObject * obj0 = 0 ;
21968 PyObject * obj1 = 0 ;
21969 PyObject * obj2 = 0 ;
21970 PyObject * obj3 = 0 ;
21971 PyObject * obj4 = 0 ;
21972 char * kwnames[] = {
21973 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21974 };
21975
21976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21978 if (!SWIG_IsOK(res1)) {
21979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21980 }
21981 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21982 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21983 if (!SWIG_IsOK(res2)) {
21984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21985 }
21986 arg2 = reinterpret_cast< wxWindow * >(argp2);
21987 {
21988 arg3 = wxString_in_helper(obj2);
21989 if (arg3 == NULL) SWIG_fail;
21990 temp3 = true;
21991 }
21992 if (obj3) {
21993 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21994 if (!SWIG_IsOK(ecode4)) {
21995 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21996 }
21997 arg4 = static_cast< bool >(val4);
21998 }
21999 if (obj4) {
22000 ecode5 = SWIG_AsVal_int(obj4, &val5);
22001 if (!SWIG_IsOK(ecode5)) {
22002 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22003 }
22004 arg5 = static_cast< int >(val5);
22005 }
22006 {
22007 PyThreadState* __tstate = wxPyBeginAllowThreads();
22008 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22009 wxPyEndAllowThreads(__tstate);
22010 if (PyErr_Occurred()) SWIG_fail;
22011 }
22012 {
22013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22014 }
22015 {
22016 if (temp3)
22017 delete arg3;
22018 }
22019 return resultobj;
22020 fail:
22021 {
22022 if (temp3)
22023 delete arg3;
22024 }
22025 return NULL;
22026 }
22027
22028
22029 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22030 PyObject *resultobj = 0;
22031 wxTreebook *arg1 = (wxTreebook *) 0 ;
22032 size_t arg2 ;
22033 bool result;
22034 void *argp1 = 0 ;
22035 int res1 = 0 ;
22036 size_t val2 ;
22037 int ecode2 = 0 ;
22038 PyObject * obj0 = 0 ;
22039 PyObject * obj1 = 0 ;
22040 char * kwnames[] = {
22041 (char *) "self",(char *) "pos", NULL
22042 };
22043
22044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22046 if (!SWIG_IsOK(res1)) {
22047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22048 }
22049 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22050 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22051 if (!SWIG_IsOK(ecode2)) {
22052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22053 }
22054 arg2 = static_cast< size_t >(val2);
22055 {
22056 PyThreadState* __tstate = wxPyBeginAllowThreads();
22057 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22058 wxPyEndAllowThreads(__tstate);
22059 if (PyErr_Occurred()) SWIG_fail;
22060 }
22061 {
22062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22063 }
22064 return resultobj;
22065 fail:
22066 return NULL;
22067 }
22068
22069
22070 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22071 PyObject *resultobj = 0;
22072 wxTreebook *arg1 = (wxTreebook *) 0 ;
22073 size_t arg2 ;
22074 bool arg3 = (bool) true ;
22075 bool result;
22076 void *argp1 = 0 ;
22077 int res1 = 0 ;
22078 size_t val2 ;
22079 int ecode2 = 0 ;
22080 bool val3 ;
22081 int ecode3 = 0 ;
22082 PyObject * obj0 = 0 ;
22083 PyObject * obj1 = 0 ;
22084 PyObject * obj2 = 0 ;
22085 char * kwnames[] = {
22086 (char *) "self",(char *) "pos",(char *) "expand", NULL
22087 };
22088
22089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22091 if (!SWIG_IsOK(res1)) {
22092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22093 }
22094 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22095 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22096 if (!SWIG_IsOK(ecode2)) {
22097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22098 }
22099 arg2 = static_cast< size_t >(val2);
22100 if (obj2) {
22101 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22102 if (!SWIG_IsOK(ecode3)) {
22103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22104 }
22105 arg3 = static_cast< bool >(val3);
22106 }
22107 {
22108 PyThreadState* __tstate = wxPyBeginAllowThreads();
22109 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22110 wxPyEndAllowThreads(__tstate);
22111 if (PyErr_Occurred()) SWIG_fail;
22112 }
22113 {
22114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22115 }
22116 return resultobj;
22117 fail:
22118 return NULL;
22119 }
22120
22121
22122 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22123 PyObject *resultobj = 0;
22124 wxTreebook *arg1 = (wxTreebook *) 0 ;
22125 size_t arg2 ;
22126 bool result;
22127 void *argp1 = 0 ;
22128 int res1 = 0 ;
22129 size_t val2 ;
22130 int ecode2 = 0 ;
22131 PyObject * obj0 = 0 ;
22132 PyObject * obj1 = 0 ;
22133 char * kwnames[] = {
22134 (char *) "self",(char *) "pos", NULL
22135 };
22136
22137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22139 if (!SWIG_IsOK(res1)) {
22140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22141 }
22142 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22143 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22144 if (!SWIG_IsOK(ecode2)) {
22145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22146 }
22147 arg2 = static_cast< size_t >(val2);
22148 {
22149 PyThreadState* __tstate = wxPyBeginAllowThreads();
22150 result = (bool)(arg1)->CollapseNode(arg2);
22151 wxPyEndAllowThreads(__tstate);
22152 if (PyErr_Occurred()) SWIG_fail;
22153 }
22154 {
22155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22156 }
22157 return resultobj;
22158 fail:
22159 return NULL;
22160 }
22161
22162
22163 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22164 PyObject *resultobj = 0;
22165 wxTreebook *arg1 = (wxTreebook *) 0 ;
22166 size_t arg2 ;
22167 int result;
22168 void *argp1 = 0 ;
22169 int res1 = 0 ;
22170 size_t val2 ;
22171 int ecode2 = 0 ;
22172 PyObject * obj0 = 0 ;
22173 PyObject * obj1 = 0 ;
22174 char * kwnames[] = {
22175 (char *) "self",(char *) "pos", NULL
22176 };
22177
22178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22180 if (!SWIG_IsOK(res1)) {
22181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22182 }
22183 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22184 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22185 if (!SWIG_IsOK(ecode2)) {
22186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22187 }
22188 arg2 = static_cast< size_t >(val2);
22189 {
22190 PyThreadState* __tstate = wxPyBeginAllowThreads();
22191 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22192 wxPyEndAllowThreads(__tstate);
22193 if (PyErr_Occurred()) SWIG_fail;
22194 }
22195 resultobj = SWIG_From_int(static_cast< int >(result));
22196 return resultobj;
22197 fail:
22198 return NULL;
22199 }
22200
22201
22202 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22203 PyObject *resultobj = 0;
22204 wxTreebook *arg1 = (wxTreebook *) 0 ;
22205 wxPyTreeCtrl *result = 0 ;
22206 void *argp1 = 0 ;
22207 int res1 = 0 ;
22208 PyObject *swig_obj[1] ;
22209
22210 if (!args) SWIG_fail;
22211 swig_obj[0] = args;
22212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22213 if (!SWIG_IsOK(res1)) {
22214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22215 }
22216 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22217 {
22218 PyThreadState* __tstate = wxPyBeginAllowThreads();
22219 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22220 wxPyEndAllowThreads(__tstate);
22221 if (PyErr_Occurred()) SWIG_fail;
22222 }
22223 {
22224 resultobj = wxPyMake_wxObject(result, (bool)0);
22225 }
22226 return resultobj;
22227 fail:
22228 return NULL;
22229 }
22230
22231
22232 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22233 PyObject *obj;
22234 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22235 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22236 return SWIG_Py_Void();
22237 }
22238
22239 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22240 return SWIG_Python_InitShadowInstance(args);
22241 }
22242
22243 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22244 PyObject *resultobj = 0;
22245 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22246 int arg2 = (int) 0 ;
22247 int arg3 = (int) wxNOT_FOUND ;
22248 int arg4 = (int) wxNOT_FOUND ;
22249 wxTreebookEvent *result = 0 ;
22250 int val1 ;
22251 int ecode1 = 0 ;
22252 int val2 ;
22253 int ecode2 = 0 ;
22254 int val3 ;
22255 int ecode3 = 0 ;
22256 int val4 ;
22257 int ecode4 = 0 ;
22258 PyObject * obj0 = 0 ;
22259 PyObject * obj1 = 0 ;
22260 PyObject * obj2 = 0 ;
22261 PyObject * obj3 = 0 ;
22262 char * kwnames[] = {
22263 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22264 };
22265
22266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22267 if (obj0) {
22268 ecode1 = SWIG_AsVal_int(obj0, &val1);
22269 if (!SWIG_IsOK(ecode1)) {
22270 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22271 }
22272 arg1 = static_cast< wxEventType >(val1);
22273 }
22274 if (obj1) {
22275 ecode2 = SWIG_AsVal_int(obj1, &val2);
22276 if (!SWIG_IsOK(ecode2)) {
22277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22278 }
22279 arg2 = static_cast< int >(val2);
22280 }
22281 if (obj2) {
22282 ecode3 = SWIG_AsVal_int(obj2, &val3);
22283 if (!SWIG_IsOK(ecode3)) {
22284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22285 }
22286 arg3 = static_cast< int >(val3);
22287 }
22288 if (obj3) {
22289 ecode4 = SWIG_AsVal_int(obj3, &val4);
22290 if (!SWIG_IsOK(ecode4)) {
22291 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22292 }
22293 arg4 = static_cast< int >(val4);
22294 }
22295 {
22296 PyThreadState* __tstate = wxPyBeginAllowThreads();
22297 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22298 wxPyEndAllowThreads(__tstate);
22299 if (PyErr_Occurred()) SWIG_fail;
22300 }
22301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22302 return resultobj;
22303 fail:
22304 return NULL;
22305 }
22306
22307
22308 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22309 PyObject *obj;
22310 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22311 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22312 return SWIG_Py_Void();
22313 }
22314
22315 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22316 return SWIG_Python_InitShadowInstance(args);
22317 }
22318
22319 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22320 PyObject *resultobj = 0;
22321 wxWindow *arg1 = (wxWindow *) 0 ;
22322 int arg2 ;
22323 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22324 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22325 wxSize const &arg4_defvalue = wxDefaultSize ;
22326 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22327 long arg5 = (long) wxBK_DEFAULT ;
22328 wxString const &arg6_defvalue = wxPyEmptyString ;
22329 wxString *arg6 = (wxString *) &arg6_defvalue ;
22330 wxToolbook *result = 0 ;
22331 void *argp1 = 0 ;
22332 int res1 = 0 ;
22333 int val2 ;
22334 int ecode2 = 0 ;
22335 wxPoint temp3 ;
22336 wxSize temp4 ;
22337 long val5 ;
22338 int ecode5 = 0 ;
22339 bool temp6 = false ;
22340 PyObject * obj0 = 0 ;
22341 PyObject * obj1 = 0 ;
22342 PyObject * obj2 = 0 ;
22343 PyObject * obj3 = 0 ;
22344 PyObject * obj4 = 0 ;
22345 PyObject * obj5 = 0 ;
22346 char * kwnames[] = {
22347 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22348 };
22349
22350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22352 if (!SWIG_IsOK(res1)) {
22353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22354 }
22355 arg1 = reinterpret_cast< wxWindow * >(argp1);
22356 ecode2 = SWIG_AsVal_int(obj1, &val2);
22357 if (!SWIG_IsOK(ecode2)) {
22358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22359 }
22360 arg2 = static_cast< int >(val2);
22361 if (obj2) {
22362 {
22363 arg3 = &temp3;
22364 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22365 }
22366 }
22367 if (obj3) {
22368 {
22369 arg4 = &temp4;
22370 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22371 }
22372 }
22373 if (obj4) {
22374 ecode5 = SWIG_AsVal_long(obj4, &val5);
22375 if (!SWIG_IsOK(ecode5)) {
22376 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22377 }
22378 arg5 = static_cast< long >(val5);
22379 }
22380 if (obj5) {
22381 {
22382 arg6 = wxString_in_helper(obj5);
22383 if (arg6 == NULL) SWIG_fail;
22384 temp6 = true;
22385 }
22386 }
22387 {
22388 PyThreadState* __tstate = wxPyBeginAllowThreads();
22389 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22390 wxPyEndAllowThreads(__tstate);
22391 if (PyErr_Occurred()) SWIG_fail;
22392 }
22393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22394 {
22395 if (temp6)
22396 delete arg6;
22397 }
22398 return resultobj;
22399 fail:
22400 {
22401 if (temp6)
22402 delete arg6;
22403 }
22404 return NULL;
22405 }
22406
22407
22408 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22409 PyObject *resultobj = 0;
22410 wxToolbook *result = 0 ;
22411
22412 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22413 {
22414 PyThreadState* __tstate = wxPyBeginAllowThreads();
22415 result = (wxToolbook *)new wxToolbook();
22416 wxPyEndAllowThreads(__tstate);
22417 if (PyErr_Occurred()) SWIG_fail;
22418 }
22419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22420 return resultobj;
22421 fail:
22422 return NULL;
22423 }
22424
22425
22426 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22427 PyObject *resultobj = 0;
22428 wxToolbook *arg1 = (wxToolbook *) 0 ;
22429 wxWindow *arg2 = (wxWindow *) 0 ;
22430 int arg3 ;
22431 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22432 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22433 wxSize const &arg5_defvalue = wxDefaultSize ;
22434 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22435 long arg6 = (long) 0 ;
22436 wxString const &arg7_defvalue = wxEmptyString ;
22437 wxString *arg7 = (wxString *) &arg7_defvalue ;
22438 bool result;
22439 void *argp1 = 0 ;
22440 int res1 = 0 ;
22441 void *argp2 = 0 ;
22442 int res2 = 0 ;
22443 int val3 ;
22444 int ecode3 = 0 ;
22445 wxPoint temp4 ;
22446 wxSize temp5 ;
22447 long val6 ;
22448 int ecode6 = 0 ;
22449 bool temp7 = false ;
22450 PyObject * obj0 = 0 ;
22451 PyObject * obj1 = 0 ;
22452 PyObject * obj2 = 0 ;
22453 PyObject * obj3 = 0 ;
22454 PyObject * obj4 = 0 ;
22455 PyObject * obj5 = 0 ;
22456 PyObject * obj6 = 0 ;
22457 char * kwnames[] = {
22458 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22459 };
22460
22461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22463 if (!SWIG_IsOK(res1)) {
22464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22465 }
22466 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22467 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22468 if (!SWIG_IsOK(res2)) {
22469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22470 }
22471 arg2 = reinterpret_cast< wxWindow * >(argp2);
22472 ecode3 = SWIG_AsVal_int(obj2, &val3);
22473 if (!SWIG_IsOK(ecode3)) {
22474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22475 }
22476 arg3 = static_cast< int >(val3);
22477 if (obj3) {
22478 {
22479 arg4 = &temp4;
22480 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22481 }
22482 }
22483 if (obj4) {
22484 {
22485 arg5 = &temp5;
22486 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22487 }
22488 }
22489 if (obj5) {
22490 ecode6 = SWIG_AsVal_long(obj5, &val6);
22491 if (!SWIG_IsOK(ecode6)) {
22492 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22493 }
22494 arg6 = static_cast< long >(val6);
22495 }
22496 if (obj6) {
22497 {
22498 arg7 = wxString_in_helper(obj6);
22499 if (arg7 == NULL) SWIG_fail;
22500 temp7 = true;
22501 }
22502 }
22503 {
22504 PyThreadState* __tstate = wxPyBeginAllowThreads();
22505 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22506 wxPyEndAllowThreads(__tstate);
22507 if (PyErr_Occurred()) SWIG_fail;
22508 }
22509 {
22510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22511 }
22512 {
22513 if (temp7)
22514 delete arg7;
22515 }
22516 return resultobj;
22517 fail:
22518 {
22519 if (temp7)
22520 delete arg7;
22521 }
22522 return NULL;
22523 }
22524
22525
22526 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22527 PyObject *resultobj = 0;
22528 wxToolbook *arg1 = (wxToolbook *) 0 ;
22529 wxToolBarBase *result = 0 ;
22530 void *argp1 = 0 ;
22531 int res1 = 0 ;
22532 PyObject *swig_obj[1] ;
22533
22534 if (!args) SWIG_fail;
22535 swig_obj[0] = args;
22536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22537 if (!SWIG_IsOK(res1)) {
22538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22539 }
22540 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22541 {
22542 PyThreadState* __tstate = wxPyBeginAllowThreads();
22543 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22544 wxPyEndAllowThreads(__tstate);
22545 if (PyErr_Occurred()) SWIG_fail;
22546 }
22547 {
22548 resultobj = wxPyMake_wxObject(result, (bool)0);
22549 }
22550 return resultobj;
22551 fail:
22552 return NULL;
22553 }
22554
22555
22556 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22557 PyObject *resultobj = 0;
22558 wxToolbook *arg1 = (wxToolbook *) 0 ;
22559 void *argp1 = 0 ;
22560 int res1 = 0 ;
22561 PyObject *swig_obj[1] ;
22562
22563 if (!args) SWIG_fail;
22564 swig_obj[0] = args;
22565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22566 if (!SWIG_IsOK(res1)) {
22567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22568 }
22569 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22570 {
22571 PyThreadState* __tstate = wxPyBeginAllowThreads();
22572 (arg1)->Realize();
22573 wxPyEndAllowThreads(__tstate);
22574 if (PyErr_Occurred()) SWIG_fail;
22575 }
22576 resultobj = SWIG_Py_Void();
22577 return resultobj;
22578 fail:
22579 return NULL;
22580 }
22581
22582
22583 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22584 PyObject *obj;
22585 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22586 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22587 return SWIG_Py_Void();
22588 }
22589
22590 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22591 return SWIG_Python_InitShadowInstance(args);
22592 }
22593
22594 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22595 PyObject *resultobj = 0;
22596 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22597 int arg2 = (int) 0 ;
22598 int arg3 = (int) wxNOT_FOUND ;
22599 int arg4 = (int) wxNOT_FOUND ;
22600 wxToolbookEvent *result = 0 ;
22601 int val1 ;
22602 int ecode1 = 0 ;
22603 int val2 ;
22604 int ecode2 = 0 ;
22605 int val3 ;
22606 int ecode3 = 0 ;
22607 int val4 ;
22608 int ecode4 = 0 ;
22609 PyObject * obj0 = 0 ;
22610 PyObject * obj1 = 0 ;
22611 PyObject * obj2 = 0 ;
22612 PyObject * obj3 = 0 ;
22613 char * kwnames[] = {
22614 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22615 };
22616
22617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22618 if (obj0) {
22619 ecode1 = SWIG_AsVal_int(obj0, &val1);
22620 if (!SWIG_IsOK(ecode1)) {
22621 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22622 }
22623 arg1 = static_cast< wxEventType >(val1);
22624 }
22625 if (obj1) {
22626 ecode2 = SWIG_AsVal_int(obj1, &val2);
22627 if (!SWIG_IsOK(ecode2)) {
22628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22629 }
22630 arg2 = static_cast< int >(val2);
22631 }
22632 if (obj2) {
22633 ecode3 = SWIG_AsVal_int(obj2, &val3);
22634 if (!SWIG_IsOK(ecode3)) {
22635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22636 }
22637 arg3 = static_cast< int >(val3);
22638 }
22639 if (obj3) {
22640 ecode4 = SWIG_AsVal_int(obj3, &val4);
22641 if (!SWIG_IsOK(ecode4)) {
22642 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22643 }
22644 arg4 = static_cast< int >(val4);
22645 }
22646 {
22647 PyThreadState* __tstate = wxPyBeginAllowThreads();
22648 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22649 wxPyEndAllowThreads(__tstate);
22650 if (PyErr_Occurred()) SWIG_fail;
22651 }
22652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22653 return resultobj;
22654 fail:
22655 return NULL;
22656 }
22657
22658
22659 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22660 PyObject *obj;
22661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22662 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22663 return SWIG_Py_Void();
22664 }
22665
22666 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22667 return SWIG_Python_InitShadowInstance(args);
22668 }
22669
22670 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22671 PyObject *resultobj = 0;
22672 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22673 int result;
22674 void *argp1 = 0 ;
22675 int res1 = 0 ;
22676 PyObject *swig_obj[1] ;
22677
22678 if (!args) SWIG_fail;
22679 swig_obj[0] = args;
22680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22681 if (!SWIG_IsOK(res1)) {
22682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22683 }
22684 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22685 {
22686 PyThreadState* __tstate = wxPyBeginAllowThreads();
22687 result = (int)(arg1)->GetId();
22688 wxPyEndAllowThreads(__tstate);
22689 if (PyErr_Occurred()) SWIG_fail;
22690 }
22691 resultobj = SWIG_From_int(static_cast< int >(result));
22692 return resultobj;
22693 fail:
22694 return NULL;
22695 }
22696
22697
22698 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22699 PyObject *resultobj = 0;
22700 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22701 wxControl *result = 0 ;
22702 void *argp1 = 0 ;
22703 int res1 = 0 ;
22704 PyObject *swig_obj[1] ;
22705
22706 if (!args) SWIG_fail;
22707 swig_obj[0] = args;
22708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22709 if (!SWIG_IsOK(res1)) {
22710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22711 }
22712 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22713 {
22714 PyThreadState* __tstate = wxPyBeginAllowThreads();
22715 result = (wxControl *)(arg1)->GetControl();
22716 wxPyEndAllowThreads(__tstate);
22717 if (PyErr_Occurred()) SWIG_fail;
22718 }
22719 {
22720 resultobj = wxPyMake_wxObject(result, 0);
22721 }
22722 return resultobj;
22723 fail:
22724 return NULL;
22725 }
22726
22727
22728 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22729 PyObject *resultobj = 0;
22730 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22731 wxToolBarBase *result = 0 ;
22732 void *argp1 = 0 ;
22733 int res1 = 0 ;
22734 PyObject *swig_obj[1] ;
22735
22736 if (!args) SWIG_fail;
22737 swig_obj[0] = args;
22738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22739 if (!SWIG_IsOK(res1)) {
22740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22741 }
22742 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22743 {
22744 PyThreadState* __tstate = wxPyBeginAllowThreads();
22745 result = (wxToolBarBase *)(arg1)->GetToolBar();
22746 wxPyEndAllowThreads(__tstate);
22747 if (PyErr_Occurred()) SWIG_fail;
22748 }
22749 {
22750 resultobj = wxPyMake_wxObject(result, (bool)0);
22751 }
22752 return resultobj;
22753 fail:
22754 return NULL;
22755 }
22756
22757
22758 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22759 PyObject *resultobj = 0;
22760 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22761 int result;
22762 void *argp1 = 0 ;
22763 int res1 = 0 ;
22764 PyObject *swig_obj[1] ;
22765
22766 if (!args) SWIG_fail;
22767 swig_obj[0] = args;
22768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22769 if (!SWIG_IsOK(res1)) {
22770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22771 }
22772 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22773 {
22774 PyThreadState* __tstate = wxPyBeginAllowThreads();
22775 result = (int)(arg1)->IsButton();
22776 wxPyEndAllowThreads(__tstate);
22777 if (PyErr_Occurred()) SWIG_fail;
22778 }
22779 resultobj = SWIG_From_int(static_cast< int >(result));
22780 return resultobj;
22781 fail:
22782 return NULL;
22783 }
22784
22785
22786 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22787 PyObject *resultobj = 0;
22788 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22789 int result;
22790 void *argp1 = 0 ;
22791 int res1 = 0 ;
22792 PyObject *swig_obj[1] ;
22793
22794 if (!args) SWIG_fail;
22795 swig_obj[0] = args;
22796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22797 if (!SWIG_IsOK(res1)) {
22798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22799 }
22800 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22801 {
22802 PyThreadState* __tstate = wxPyBeginAllowThreads();
22803 result = (int)(arg1)->IsControl();
22804 wxPyEndAllowThreads(__tstate);
22805 if (PyErr_Occurred()) SWIG_fail;
22806 }
22807 resultobj = SWIG_From_int(static_cast< int >(result));
22808 return resultobj;
22809 fail:
22810 return NULL;
22811 }
22812
22813
22814 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22815 PyObject *resultobj = 0;
22816 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22817 int result;
22818 void *argp1 = 0 ;
22819 int res1 = 0 ;
22820 PyObject *swig_obj[1] ;
22821
22822 if (!args) SWIG_fail;
22823 swig_obj[0] = args;
22824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22825 if (!SWIG_IsOK(res1)) {
22826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22827 }
22828 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22829 {
22830 PyThreadState* __tstate = wxPyBeginAllowThreads();
22831 result = (int)(arg1)->IsSeparator();
22832 wxPyEndAllowThreads(__tstate);
22833 if (PyErr_Occurred()) SWIG_fail;
22834 }
22835 resultobj = SWIG_From_int(static_cast< int >(result));
22836 return resultobj;
22837 fail:
22838 return NULL;
22839 }
22840
22841
22842 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22843 PyObject *resultobj = 0;
22844 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22845 int result;
22846 void *argp1 = 0 ;
22847 int res1 = 0 ;
22848 PyObject *swig_obj[1] ;
22849
22850 if (!args) SWIG_fail;
22851 swig_obj[0] = args;
22852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22853 if (!SWIG_IsOK(res1)) {
22854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22855 }
22856 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22857 {
22858 PyThreadState* __tstate = wxPyBeginAllowThreads();
22859 result = (int)(arg1)->GetStyle();
22860 wxPyEndAllowThreads(__tstate);
22861 if (PyErr_Occurred()) SWIG_fail;
22862 }
22863 resultobj = SWIG_From_int(static_cast< int >(result));
22864 return resultobj;
22865 fail:
22866 return NULL;
22867 }
22868
22869
22870 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22871 PyObject *resultobj = 0;
22872 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22873 wxItemKind result;
22874 void *argp1 = 0 ;
22875 int res1 = 0 ;
22876 PyObject *swig_obj[1] ;
22877
22878 if (!args) SWIG_fail;
22879 swig_obj[0] = args;
22880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22881 if (!SWIG_IsOK(res1)) {
22882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22883 }
22884 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 result = (wxItemKind)(arg1)->GetKind();
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 resultobj = SWIG_From_int(static_cast< int >(result));
22892 return resultobj;
22893 fail:
22894 return NULL;
22895 }
22896
22897
22898 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22899 PyObject *resultobj = 0;
22900 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22901 bool result;
22902 void *argp1 = 0 ;
22903 int res1 = 0 ;
22904 PyObject *swig_obj[1] ;
22905
22906 if (!args) SWIG_fail;
22907 swig_obj[0] = args;
22908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22909 if (!SWIG_IsOK(res1)) {
22910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22911 }
22912 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22913 {
22914 PyThreadState* __tstate = wxPyBeginAllowThreads();
22915 result = (bool)(arg1)->IsEnabled();
22916 wxPyEndAllowThreads(__tstate);
22917 if (PyErr_Occurred()) SWIG_fail;
22918 }
22919 {
22920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22921 }
22922 return resultobj;
22923 fail:
22924 return NULL;
22925 }
22926
22927
22928 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22929 PyObject *resultobj = 0;
22930 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22931 bool result;
22932 void *argp1 = 0 ;
22933 int res1 = 0 ;
22934 PyObject *swig_obj[1] ;
22935
22936 if (!args) SWIG_fail;
22937 swig_obj[0] = args;
22938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22939 if (!SWIG_IsOK(res1)) {
22940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22941 }
22942 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22943 {
22944 PyThreadState* __tstate = wxPyBeginAllowThreads();
22945 result = (bool)(arg1)->IsToggled();
22946 wxPyEndAllowThreads(__tstate);
22947 if (PyErr_Occurred()) SWIG_fail;
22948 }
22949 {
22950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22951 }
22952 return resultobj;
22953 fail:
22954 return NULL;
22955 }
22956
22957
22958 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22959 PyObject *resultobj = 0;
22960 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22961 bool result;
22962 void *argp1 = 0 ;
22963 int res1 = 0 ;
22964 PyObject *swig_obj[1] ;
22965
22966 if (!args) SWIG_fail;
22967 swig_obj[0] = args;
22968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22969 if (!SWIG_IsOK(res1)) {
22970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22971 }
22972 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22973 {
22974 PyThreadState* __tstate = wxPyBeginAllowThreads();
22975 result = (bool)(arg1)->CanBeToggled();
22976 wxPyEndAllowThreads(__tstate);
22977 if (PyErr_Occurred()) SWIG_fail;
22978 }
22979 {
22980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22981 }
22982 return resultobj;
22983 fail:
22984 return NULL;
22985 }
22986
22987
22988 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22989 PyObject *resultobj = 0;
22990 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22991 wxBitmap *result = 0 ;
22992 void *argp1 = 0 ;
22993 int res1 = 0 ;
22994 PyObject *swig_obj[1] ;
22995
22996 if (!args) SWIG_fail;
22997 swig_obj[0] = args;
22998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22999 if (!SWIG_IsOK(res1)) {
23000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23001 }
23002 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23003 {
23004 PyThreadState* __tstate = wxPyBeginAllowThreads();
23005 {
23006 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23007 result = (wxBitmap *) &_result_ref;
23008 }
23009 wxPyEndAllowThreads(__tstate);
23010 if (PyErr_Occurred()) SWIG_fail;
23011 }
23012 {
23013 wxBitmap* resultptr = new wxBitmap(*result);
23014 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23015 }
23016 return resultobj;
23017 fail:
23018 return NULL;
23019 }
23020
23021
23022 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23023 PyObject *resultobj = 0;
23024 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23025 wxBitmap *result = 0 ;
23026 void *argp1 = 0 ;
23027 int res1 = 0 ;
23028 PyObject *swig_obj[1] ;
23029
23030 if (!args) SWIG_fail;
23031 swig_obj[0] = args;
23032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23033 if (!SWIG_IsOK(res1)) {
23034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23035 }
23036 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23037 {
23038 PyThreadState* __tstate = wxPyBeginAllowThreads();
23039 {
23040 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23041 result = (wxBitmap *) &_result_ref;
23042 }
23043 wxPyEndAllowThreads(__tstate);
23044 if (PyErr_Occurred()) SWIG_fail;
23045 }
23046 {
23047 wxBitmap* resultptr = new wxBitmap(*result);
23048 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23049 }
23050 return resultobj;
23051 fail:
23052 return NULL;
23053 }
23054
23055
23056 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23057 PyObject *resultobj = 0;
23058 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23059 wxBitmap result;
23060 void *argp1 = 0 ;
23061 int res1 = 0 ;
23062 PyObject *swig_obj[1] ;
23063
23064 if (!args) SWIG_fail;
23065 swig_obj[0] = args;
23066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23067 if (!SWIG_IsOK(res1)) {
23068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23069 }
23070 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23071 {
23072 PyThreadState* __tstate = wxPyBeginAllowThreads();
23073 result = (arg1)->GetBitmap();
23074 wxPyEndAllowThreads(__tstate);
23075 if (PyErr_Occurred()) SWIG_fail;
23076 }
23077 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23078 return resultobj;
23079 fail:
23080 return NULL;
23081 }
23082
23083
23084 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23085 PyObject *resultobj = 0;
23086 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23087 wxString result;
23088 void *argp1 = 0 ;
23089 int res1 = 0 ;
23090 PyObject *swig_obj[1] ;
23091
23092 if (!args) SWIG_fail;
23093 swig_obj[0] = args;
23094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23095 if (!SWIG_IsOK(res1)) {
23096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23097 }
23098 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23099 {
23100 PyThreadState* __tstate = wxPyBeginAllowThreads();
23101 result = (arg1)->GetLabel();
23102 wxPyEndAllowThreads(__tstate);
23103 if (PyErr_Occurred()) SWIG_fail;
23104 }
23105 {
23106 #if wxUSE_UNICODE
23107 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23108 #else
23109 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23110 #endif
23111 }
23112 return resultobj;
23113 fail:
23114 return NULL;
23115 }
23116
23117
23118 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23119 PyObject *resultobj = 0;
23120 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23121 wxString result;
23122 void *argp1 = 0 ;
23123 int res1 = 0 ;
23124 PyObject *swig_obj[1] ;
23125
23126 if (!args) SWIG_fail;
23127 swig_obj[0] = args;
23128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23129 if (!SWIG_IsOK(res1)) {
23130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23131 }
23132 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23133 {
23134 PyThreadState* __tstate = wxPyBeginAllowThreads();
23135 result = (arg1)->GetShortHelp();
23136 wxPyEndAllowThreads(__tstate);
23137 if (PyErr_Occurred()) SWIG_fail;
23138 }
23139 {
23140 #if wxUSE_UNICODE
23141 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23142 #else
23143 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23144 #endif
23145 }
23146 return resultobj;
23147 fail:
23148 return NULL;
23149 }
23150
23151
23152 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23153 PyObject *resultobj = 0;
23154 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23155 wxString result;
23156 void *argp1 = 0 ;
23157 int res1 = 0 ;
23158 PyObject *swig_obj[1] ;
23159
23160 if (!args) SWIG_fail;
23161 swig_obj[0] = args;
23162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23163 if (!SWIG_IsOK(res1)) {
23164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23165 }
23166 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23167 {
23168 PyThreadState* __tstate = wxPyBeginAllowThreads();
23169 result = (arg1)->GetLongHelp();
23170 wxPyEndAllowThreads(__tstate);
23171 if (PyErr_Occurred()) SWIG_fail;
23172 }
23173 {
23174 #if wxUSE_UNICODE
23175 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23176 #else
23177 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23178 #endif
23179 }
23180 return resultobj;
23181 fail:
23182 return NULL;
23183 }
23184
23185
23186 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23187 PyObject *resultobj = 0;
23188 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23189 bool arg2 ;
23190 bool result;
23191 void *argp1 = 0 ;
23192 int res1 = 0 ;
23193 bool val2 ;
23194 int ecode2 = 0 ;
23195 PyObject * obj0 = 0 ;
23196 PyObject * obj1 = 0 ;
23197 char * kwnames[] = {
23198 (char *) "self",(char *) "enable", NULL
23199 };
23200
23201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23203 if (!SWIG_IsOK(res1)) {
23204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23205 }
23206 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23207 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23208 if (!SWIG_IsOK(ecode2)) {
23209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23210 }
23211 arg2 = static_cast< bool >(val2);
23212 {
23213 PyThreadState* __tstate = wxPyBeginAllowThreads();
23214 result = (bool)(arg1)->Enable(arg2);
23215 wxPyEndAllowThreads(__tstate);
23216 if (PyErr_Occurred()) SWIG_fail;
23217 }
23218 {
23219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23220 }
23221 return resultobj;
23222 fail:
23223 return NULL;
23224 }
23225
23226
23227 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23228 PyObject *resultobj = 0;
23229 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23230 void *argp1 = 0 ;
23231 int res1 = 0 ;
23232 PyObject *swig_obj[1] ;
23233
23234 if (!args) SWIG_fail;
23235 swig_obj[0] = args;
23236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23237 if (!SWIG_IsOK(res1)) {
23238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23239 }
23240 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23241 {
23242 PyThreadState* __tstate = wxPyBeginAllowThreads();
23243 (arg1)->Toggle();
23244 wxPyEndAllowThreads(__tstate);
23245 if (PyErr_Occurred()) SWIG_fail;
23246 }
23247 resultobj = SWIG_Py_Void();
23248 return resultobj;
23249 fail:
23250 return NULL;
23251 }
23252
23253
23254 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23255 PyObject *resultobj = 0;
23256 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23257 bool arg2 ;
23258 bool result;
23259 void *argp1 = 0 ;
23260 int res1 = 0 ;
23261 bool val2 ;
23262 int ecode2 = 0 ;
23263 PyObject * obj0 = 0 ;
23264 PyObject * obj1 = 0 ;
23265 char * kwnames[] = {
23266 (char *) "self",(char *) "toggle", NULL
23267 };
23268
23269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23271 if (!SWIG_IsOK(res1)) {
23272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23273 }
23274 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23275 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23276 if (!SWIG_IsOK(ecode2)) {
23277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23278 }
23279 arg2 = static_cast< bool >(val2);
23280 {
23281 PyThreadState* __tstate = wxPyBeginAllowThreads();
23282 result = (bool)(arg1)->SetToggle(arg2);
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 {
23287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23288 }
23289 return resultobj;
23290 fail:
23291 return NULL;
23292 }
23293
23294
23295 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23296 PyObject *resultobj = 0;
23297 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23298 wxString *arg2 = 0 ;
23299 bool result;
23300 void *argp1 = 0 ;
23301 int res1 = 0 ;
23302 bool temp2 = false ;
23303 PyObject * obj0 = 0 ;
23304 PyObject * obj1 = 0 ;
23305 char * kwnames[] = {
23306 (char *) "self",(char *) "help", NULL
23307 };
23308
23309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23311 if (!SWIG_IsOK(res1)) {
23312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23313 }
23314 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23315 {
23316 arg2 = wxString_in_helper(obj1);
23317 if (arg2 == NULL) SWIG_fail;
23318 temp2 = true;
23319 }
23320 {
23321 PyThreadState* __tstate = wxPyBeginAllowThreads();
23322 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23323 wxPyEndAllowThreads(__tstate);
23324 if (PyErr_Occurred()) SWIG_fail;
23325 }
23326 {
23327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23328 }
23329 {
23330 if (temp2)
23331 delete arg2;
23332 }
23333 return resultobj;
23334 fail:
23335 {
23336 if (temp2)
23337 delete arg2;
23338 }
23339 return NULL;
23340 }
23341
23342
23343 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23344 PyObject *resultobj = 0;
23345 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23346 wxString *arg2 = 0 ;
23347 bool result;
23348 void *argp1 = 0 ;
23349 int res1 = 0 ;
23350 bool temp2 = false ;
23351 PyObject * obj0 = 0 ;
23352 PyObject * obj1 = 0 ;
23353 char * kwnames[] = {
23354 (char *) "self",(char *) "help", NULL
23355 };
23356
23357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23359 if (!SWIG_IsOK(res1)) {
23360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23361 }
23362 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23363 {
23364 arg2 = wxString_in_helper(obj1);
23365 if (arg2 == NULL) SWIG_fail;
23366 temp2 = true;
23367 }
23368 {
23369 PyThreadState* __tstate = wxPyBeginAllowThreads();
23370 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23371 wxPyEndAllowThreads(__tstate);
23372 if (PyErr_Occurred()) SWIG_fail;
23373 }
23374 {
23375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23376 }
23377 {
23378 if (temp2)
23379 delete arg2;
23380 }
23381 return resultobj;
23382 fail:
23383 {
23384 if (temp2)
23385 delete arg2;
23386 }
23387 return NULL;
23388 }
23389
23390
23391 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23392 PyObject *resultobj = 0;
23393 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23394 wxBitmap *arg2 = 0 ;
23395 void *argp1 = 0 ;
23396 int res1 = 0 ;
23397 void *argp2 = 0 ;
23398 int res2 = 0 ;
23399 PyObject * obj0 = 0 ;
23400 PyObject * obj1 = 0 ;
23401 char * kwnames[] = {
23402 (char *) "self",(char *) "bmp", NULL
23403 };
23404
23405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23407 if (!SWIG_IsOK(res1)) {
23408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23409 }
23410 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23411 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23412 if (!SWIG_IsOK(res2)) {
23413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23414 }
23415 if (!argp2) {
23416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23417 }
23418 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23419 {
23420 PyThreadState* __tstate = wxPyBeginAllowThreads();
23421 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23422 wxPyEndAllowThreads(__tstate);
23423 if (PyErr_Occurred()) SWIG_fail;
23424 }
23425 resultobj = SWIG_Py_Void();
23426 return resultobj;
23427 fail:
23428 return NULL;
23429 }
23430
23431
23432 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23433 PyObject *resultobj = 0;
23434 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23435 wxBitmap *arg2 = 0 ;
23436 void *argp1 = 0 ;
23437 int res1 = 0 ;
23438 void *argp2 = 0 ;
23439 int res2 = 0 ;
23440 PyObject * obj0 = 0 ;
23441 PyObject * obj1 = 0 ;
23442 char * kwnames[] = {
23443 (char *) "self",(char *) "bmp", NULL
23444 };
23445
23446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23448 if (!SWIG_IsOK(res1)) {
23449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23450 }
23451 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23452 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23453 if (!SWIG_IsOK(res2)) {
23454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23455 }
23456 if (!argp2) {
23457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23458 }
23459 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23460 {
23461 PyThreadState* __tstate = wxPyBeginAllowThreads();
23462 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23463 wxPyEndAllowThreads(__tstate);
23464 if (PyErr_Occurred()) SWIG_fail;
23465 }
23466 resultobj = SWIG_Py_Void();
23467 return resultobj;
23468 fail:
23469 return NULL;
23470 }
23471
23472
23473 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23474 PyObject *resultobj = 0;
23475 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23476 wxString *arg2 = 0 ;
23477 void *argp1 = 0 ;
23478 int res1 = 0 ;
23479 bool temp2 = false ;
23480 PyObject * obj0 = 0 ;
23481 PyObject * obj1 = 0 ;
23482 char * kwnames[] = {
23483 (char *) "self",(char *) "label", NULL
23484 };
23485
23486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23488 if (!SWIG_IsOK(res1)) {
23489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23490 }
23491 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23492 {
23493 arg2 = wxString_in_helper(obj1);
23494 if (arg2 == NULL) SWIG_fail;
23495 temp2 = true;
23496 }
23497 {
23498 PyThreadState* __tstate = wxPyBeginAllowThreads();
23499 (arg1)->SetLabel((wxString const &)*arg2);
23500 wxPyEndAllowThreads(__tstate);
23501 if (PyErr_Occurred()) SWIG_fail;
23502 }
23503 resultobj = SWIG_Py_Void();
23504 {
23505 if (temp2)
23506 delete arg2;
23507 }
23508 return resultobj;
23509 fail:
23510 {
23511 if (temp2)
23512 delete arg2;
23513 }
23514 return NULL;
23515 }
23516
23517
23518 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23519 PyObject *resultobj = 0;
23520 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23521 void *argp1 = 0 ;
23522 int res1 = 0 ;
23523 PyObject *swig_obj[1] ;
23524
23525 if (!args) SWIG_fail;
23526 swig_obj[0] = args;
23527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23528 if (!SWIG_IsOK(res1)) {
23529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23530 }
23531 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23532 {
23533 PyThreadState* __tstate = wxPyBeginAllowThreads();
23534 (arg1)->Detach();
23535 wxPyEndAllowThreads(__tstate);
23536 if (PyErr_Occurred()) SWIG_fail;
23537 }
23538 resultobj = SWIG_Py_Void();
23539 return resultobj;
23540 fail:
23541 return NULL;
23542 }
23543
23544
23545 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23546 PyObject *resultobj = 0;
23547 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23548 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23549 void *argp1 = 0 ;
23550 int res1 = 0 ;
23551 void *argp2 = 0 ;
23552 int res2 = 0 ;
23553 PyObject * obj0 = 0 ;
23554 PyObject * obj1 = 0 ;
23555 char * kwnames[] = {
23556 (char *) "self",(char *) "tbar", NULL
23557 };
23558
23559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23561 if (!SWIG_IsOK(res1)) {
23562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23563 }
23564 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23565 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23566 if (!SWIG_IsOK(res2)) {
23567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23568 }
23569 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23570 {
23571 PyThreadState* __tstate = wxPyBeginAllowThreads();
23572 (arg1)->Attach(arg2);
23573 wxPyEndAllowThreads(__tstate);
23574 if (PyErr_Occurred()) SWIG_fail;
23575 }
23576 resultobj = SWIG_Py_Void();
23577 return resultobj;
23578 fail:
23579 return NULL;
23580 }
23581
23582
23583 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23584 PyObject *resultobj = 0;
23585 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23586 PyObject *result = 0 ;
23587 void *argp1 = 0 ;
23588 int res1 = 0 ;
23589 PyObject *swig_obj[1] ;
23590
23591 if (!args) SWIG_fail;
23592 swig_obj[0] = args;
23593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23594 if (!SWIG_IsOK(res1)) {
23595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23596 }
23597 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23598 {
23599 PyThreadState* __tstate = wxPyBeginAllowThreads();
23600 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23601 wxPyEndAllowThreads(__tstate);
23602 if (PyErr_Occurred()) SWIG_fail;
23603 }
23604 resultobj = result;
23605 return resultobj;
23606 fail:
23607 return NULL;
23608 }
23609
23610
23611 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23612 PyObject *resultobj = 0;
23613 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23614 PyObject *arg2 = (PyObject *) 0 ;
23615 void *argp1 = 0 ;
23616 int res1 = 0 ;
23617 PyObject * obj0 = 0 ;
23618 PyObject * obj1 = 0 ;
23619 char * kwnames[] = {
23620 (char *) "self",(char *) "clientData", NULL
23621 };
23622
23623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23625 if (!SWIG_IsOK(res1)) {
23626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23627 }
23628 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23629 arg2 = obj1;
23630 {
23631 PyThreadState* __tstate = wxPyBeginAllowThreads();
23632 wxToolBarToolBase_SetClientData(arg1,arg2);
23633 wxPyEndAllowThreads(__tstate);
23634 if (PyErr_Occurred()) SWIG_fail;
23635 }
23636 resultobj = SWIG_Py_Void();
23637 return resultobj;
23638 fail:
23639 return NULL;
23640 }
23641
23642
23643 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23644 PyObject *obj;
23645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23646 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23647 return SWIG_Py_Void();
23648 }
23649
23650 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23651 PyObject *resultobj = 0;
23652 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23653 int arg2 ;
23654 wxString *arg3 = 0 ;
23655 wxBitmap *arg4 = 0 ;
23656 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23657 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23658 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23659 wxString const &arg7_defvalue = wxPyEmptyString ;
23660 wxString *arg7 = (wxString *) &arg7_defvalue ;
23661 wxString const &arg8_defvalue = wxPyEmptyString ;
23662 wxString *arg8 = (wxString *) &arg8_defvalue ;
23663 PyObject *arg9 = (PyObject *) NULL ;
23664 wxToolBarToolBase *result = 0 ;
23665 void *argp1 = 0 ;
23666 int res1 = 0 ;
23667 int val2 ;
23668 int ecode2 = 0 ;
23669 bool temp3 = false ;
23670 void *argp4 = 0 ;
23671 int res4 = 0 ;
23672 void *argp5 = 0 ;
23673 int res5 = 0 ;
23674 int val6 ;
23675 int ecode6 = 0 ;
23676 bool temp7 = false ;
23677 bool temp8 = false ;
23678 PyObject * obj0 = 0 ;
23679 PyObject * obj1 = 0 ;
23680 PyObject * obj2 = 0 ;
23681 PyObject * obj3 = 0 ;
23682 PyObject * obj4 = 0 ;
23683 PyObject * obj5 = 0 ;
23684 PyObject * obj6 = 0 ;
23685 PyObject * obj7 = 0 ;
23686 PyObject * obj8 = 0 ;
23687 char * kwnames[] = {
23688 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23689 };
23690
23691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23693 if (!SWIG_IsOK(res1)) {
23694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23695 }
23696 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23697 ecode2 = SWIG_AsVal_int(obj1, &val2);
23698 if (!SWIG_IsOK(ecode2)) {
23699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23700 }
23701 arg2 = static_cast< int >(val2);
23702 {
23703 arg3 = wxString_in_helper(obj2);
23704 if (arg3 == NULL) SWIG_fail;
23705 temp3 = true;
23706 }
23707 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23708 if (!SWIG_IsOK(res4)) {
23709 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23710 }
23711 if (!argp4) {
23712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23713 }
23714 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23715 if (obj4) {
23716 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23717 if (!SWIG_IsOK(res5)) {
23718 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23719 }
23720 if (!argp5) {
23721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23722 }
23723 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23724 }
23725 if (obj5) {
23726 ecode6 = SWIG_AsVal_int(obj5, &val6);
23727 if (!SWIG_IsOK(ecode6)) {
23728 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23729 }
23730 arg6 = static_cast< wxItemKind >(val6);
23731 }
23732 if (obj6) {
23733 {
23734 arg7 = wxString_in_helper(obj6);
23735 if (arg7 == NULL) SWIG_fail;
23736 temp7 = true;
23737 }
23738 }
23739 if (obj7) {
23740 {
23741 arg8 = wxString_in_helper(obj7);
23742 if (arg8 == NULL) SWIG_fail;
23743 temp8 = true;
23744 }
23745 }
23746 if (obj8) {
23747 arg9 = obj8;
23748 }
23749 {
23750 PyThreadState* __tstate = wxPyBeginAllowThreads();
23751 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23752 wxPyEndAllowThreads(__tstate);
23753 if (PyErr_Occurred()) SWIG_fail;
23754 }
23755 {
23756 resultobj = wxPyMake_wxObject(result, (bool)0);
23757 }
23758 {
23759 if (temp3)
23760 delete arg3;
23761 }
23762 {
23763 if (temp7)
23764 delete arg7;
23765 }
23766 {
23767 if (temp8)
23768 delete arg8;
23769 }
23770 return resultobj;
23771 fail:
23772 {
23773 if (temp3)
23774 delete arg3;
23775 }
23776 {
23777 if (temp7)
23778 delete arg7;
23779 }
23780 {
23781 if (temp8)
23782 delete arg8;
23783 }
23784 return NULL;
23785 }
23786
23787
23788 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23789 PyObject *resultobj = 0;
23790 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23791 size_t arg2 ;
23792 int arg3 ;
23793 wxString *arg4 = 0 ;
23794 wxBitmap *arg5 = 0 ;
23795 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23796 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23797 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23798 wxString const &arg8_defvalue = wxPyEmptyString ;
23799 wxString *arg8 = (wxString *) &arg8_defvalue ;
23800 wxString const &arg9_defvalue = wxPyEmptyString ;
23801 wxString *arg9 = (wxString *) &arg9_defvalue ;
23802 PyObject *arg10 = (PyObject *) NULL ;
23803 wxToolBarToolBase *result = 0 ;
23804 void *argp1 = 0 ;
23805 int res1 = 0 ;
23806 size_t val2 ;
23807 int ecode2 = 0 ;
23808 int val3 ;
23809 int ecode3 = 0 ;
23810 bool temp4 = false ;
23811 void *argp5 = 0 ;
23812 int res5 = 0 ;
23813 void *argp6 = 0 ;
23814 int res6 = 0 ;
23815 int val7 ;
23816 int ecode7 = 0 ;
23817 bool temp8 = false ;
23818 bool temp9 = false ;
23819 PyObject * obj0 = 0 ;
23820 PyObject * obj1 = 0 ;
23821 PyObject * obj2 = 0 ;
23822 PyObject * obj3 = 0 ;
23823 PyObject * obj4 = 0 ;
23824 PyObject * obj5 = 0 ;
23825 PyObject * obj6 = 0 ;
23826 PyObject * obj7 = 0 ;
23827 PyObject * obj8 = 0 ;
23828 PyObject * obj9 = 0 ;
23829 char * kwnames[] = {
23830 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23831 };
23832
23833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23835 if (!SWIG_IsOK(res1)) {
23836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23837 }
23838 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23839 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23840 if (!SWIG_IsOK(ecode2)) {
23841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23842 }
23843 arg2 = static_cast< size_t >(val2);
23844 ecode3 = SWIG_AsVal_int(obj2, &val3);
23845 if (!SWIG_IsOK(ecode3)) {
23846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23847 }
23848 arg3 = static_cast< int >(val3);
23849 {
23850 arg4 = wxString_in_helper(obj3);
23851 if (arg4 == NULL) SWIG_fail;
23852 temp4 = true;
23853 }
23854 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23855 if (!SWIG_IsOK(res5)) {
23856 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23857 }
23858 if (!argp5) {
23859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23860 }
23861 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23862 if (obj5) {
23863 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23864 if (!SWIG_IsOK(res6)) {
23865 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23866 }
23867 if (!argp6) {
23868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23869 }
23870 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23871 }
23872 if (obj6) {
23873 ecode7 = SWIG_AsVal_int(obj6, &val7);
23874 if (!SWIG_IsOK(ecode7)) {
23875 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23876 }
23877 arg7 = static_cast< wxItemKind >(val7);
23878 }
23879 if (obj7) {
23880 {
23881 arg8 = wxString_in_helper(obj7);
23882 if (arg8 == NULL) SWIG_fail;
23883 temp8 = true;
23884 }
23885 }
23886 if (obj8) {
23887 {
23888 arg9 = wxString_in_helper(obj8);
23889 if (arg9 == NULL) SWIG_fail;
23890 temp9 = true;
23891 }
23892 }
23893 if (obj9) {
23894 arg10 = obj9;
23895 }
23896 {
23897 PyThreadState* __tstate = wxPyBeginAllowThreads();
23898 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23899 wxPyEndAllowThreads(__tstate);
23900 if (PyErr_Occurred()) SWIG_fail;
23901 }
23902 {
23903 resultobj = wxPyMake_wxObject(result, (bool)0);
23904 }
23905 {
23906 if (temp4)
23907 delete arg4;
23908 }
23909 {
23910 if (temp8)
23911 delete arg8;
23912 }
23913 {
23914 if (temp9)
23915 delete arg9;
23916 }
23917 return resultobj;
23918 fail:
23919 {
23920 if (temp4)
23921 delete arg4;
23922 }
23923 {
23924 if (temp8)
23925 delete arg8;
23926 }
23927 {
23928 if (temp9)
23929 delete arg9;
23930 }
23931 return NULL;
23932 }
23933
23934
23935 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23936 PyObject *resultobj = 0;
23937 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23938 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23939 wxToolBarToolBase *result = 0 ;
23940 void *argp1 = 0 ;
23941 int res1 = 0 ;
23942 void *argp2 = 0 ;
23943 int res2 = 0 ;
23944 PyObject * obj0 = 0 ;
23945 PyObject * obj1 = 0 ;
23946 char * kwnames[] = {
23947 (char *) "self",(char *) "tool", NULL
23948 };
23949
23950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23952 if (!SWIG_IsOK(res1)) {
23953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23954 }
23955 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23956 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23957 if (!SWIG_IsOK(res2)) {
23958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23959 }
23960 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23961 {
23962 PyThreadState* __tstate = wxPyBeginAllowThreads();
23963 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23964 wxPyEndAllowThreads(__tstate);
23965 if (PyErr_Occurred()) SWIG_fail;
23966 }
23967 {
23968 resultobj = wxPyMake_wxObject(result, (bool)0);
23969 }
23970 return resultobj;
23971 fail:
23972 return NULL;
23973 }
23974
23975
23976 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23977 PyObject *resultobj = 0;
23978 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23979 size_t arg2 ;
23980 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23981 wxToolBarToolBase *result = 0 ;
23982 void *argp1 = 0 ;
23983 int res1 = 0 ;
23984 size_t val2 ;
23985 int ecode2 = 0 ;
23986 void *argp3 = 0 ;
23987 int res3 = 0 ;
23988 PyObject * obj0 = 0 ;
23989 PyObject * obj1 = 0 ;
23990 PyObject * obj2 = 0 ;
23991 char * kwnames[] = {
23992 (char *) "self",(char *) "pos",(char *) "tool", NULL
23993 };
23994
23995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23997 if (!SWIG_IsOK(res1)) {
23998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23999 }
24000 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24001 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24002 if (!SWIG_IsOK(ecode2)) {
24003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24004 }
24005 arg2 = static_cast< size_t >(val2);
24006 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24007 if (!SWIG_IsOK(res3)) {
24008 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24009 }
24010 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24011 {
24012 PyThreadState* __tstate = wxPyBeginAllowThreads();
24013 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24014 wxPyEndAllowThreads(__tstate);
24015 if (PyErr_Occurred()) SWIG_fail;
24016 }
24017 {
24018 resultobj = wxPyMake_wxObject(result, (bool)0);
24019 }
24020 return resultobj;
24021 fail:
24022 return NULL;
24023 }
24024
24025
24026 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24027 PyObject *resultobj = 0;
24028 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24029 wxControl *arg2 = (wxControl *) 0 ;
24030 wxToolBarToolBase *result = 0 ;
24031 void *argp1 = 0 ;
24032 int res1 = 0 ;
24033 void *argp2 = 0 ;
24034 int res2 = 0 ;
24035 PyObject * obj0 = 0 ;
24036 PyObject * obj1 = 0 ;
24037 char * kwnames[] = {
24038 (char *) "self",(char *) "control", NULL
24039 };
24040
24041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24043 if (!SWIG_IsOK(res1)) {
24044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24045 }
24046 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24047 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24048 if (!SWIG_IsOK(res2)) {
24049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24050 }
24051 arg2 = reinterpret_cast< wxControl * >(argp2);
24052 {
24053 PyThreadState* __tstate = wxPyBeginAllowThreads();
24054 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24055 wxPyEndAllowThreads(__tstate);
24056 if (PyErr_Occurred()) SWIG_fail;
24057 }
24058 {
24059 resultobj = wxPyMake_wxObject(result, (bool)0);
24060 }
24061 return resultobj;
24062 fail:
24063 return NULL;
24064 }
24065
24066
24067 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24068 PyObject *resultobj = 0;
24069 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24070 size_t arg2 ;
24071 wxControl *arg3 = (wxControl *) 0 ;
24072 wxToolBarToolBase *result = 0 ;
24073 void *argp1 = 0 ;
24074 int res1 = 0 ;
24075 size_t val2 ;
24076 int ecode2 = 0 ;
24077 void *argp3 = 0 ;
24078 int res3 = 0 ;
24079 PyObject * obj0 = 0 ;
24080 PyObject * obj1 = 0 ;
24081 PyObject * obj2 = 0 ;
24082 char * kwnames[] = {
24083 (char *) "self",(char *) "pos",(char *) "control", NULL
24084 };
24085
24086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24088 if (!SWIG_IsOK(res1)) {
24089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24090 }
24091 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24092 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24093 if (!SWIG_IsOK(ecode2)) {
24094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24095 }
24096 arg2 = static_cast< size_t >(val2);
24097 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24098 if (!SWIG_IsOK(res3)) {
24099 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24100 }
24101 arg3 = reinterpret_cast< wxControl * >(argp3);
24102 {
24103 PyThreadState* __tstate = wxPyBeginAllowThreads();
24104 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24105 wxPyEndAllowThreads(__tstate);
24106 if (PyErr_Occurred()) SWIG_fail;
24107 }
24108 {
24109 resultobj = wxPyMake_wxObject(result, (bool)0);
24110 }
24111 return resultobj;
24112 fail:
24113 return NULL;
24114 }
24115
24116
24117 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24118 PyObject *resultobj = 0;
24119 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24120 int arg2 ;
24121 wxControl *result = 0 ;
24122 void *argp1 = 0 ;
24123 int res1 = 0 ;
24124 int val2 ;
24125 int ecode2 = 0 ;
24126 PyObject * obj0 = 0 ;
24127 PyObject * obj1 = 0 ;
24128 char * kwnames[] = {
24129 (char *) "self",(char *) "id", NULL
24130 };
24131
24132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24134 if (!SWIG_IsOK(res1)) {
24135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24136 }
24137 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24138 ecode2 = SWIG_AsVal_int(obj1, &val2);
24139 if (!SWIG_IsOK(ecode2)) {
24140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24141 }
24142 arg2 = static_cast< int >(val2);
24143 {
24144 PyThreadState* __tstate = wxPyBeginAllowThreads();
24145 result = (wxControl *)(arg1)->FindControl(arg2);
24146 wxPyEndAllowThreads(__tstate);
24147 if (PyErr_Occurred()) SWIG_fail;
24148 }
24149 {
24150 resultobj = wxPyMake_wxObject(result, 0);
24151 }
24152 return resultobj;
24153 fail:
24154 return NULL;
24155 }
24156
24157
24158 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24159 PyObject *resultobj = 0;
24160 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24161 wxToolBarToolBase *result = 0 ;
24162 void *argp1 = 0 ;
24163 int res1 = 0 ;
24164 PyObject *swig_obj[1] ;
24165
24166 if (!args) SWIG_fail;
24167 swig_obj[0] = args;
24168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24169 if (!SWIG_IsOK(res1)) {
24170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24171 }
24172 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24173 {
24174 PyThreadState* __tstate = wxPyBeginAllowThreads();
24175 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24176 wxPyEndAllowThreads(__tstate);
24177 if (PyErr_Occurred()) SWIG_fail;
24178 }
24179 {
24180 resultobj = wxPyMake_wxObject(result, (bool)0);
24181 }
24182 return resultobj;
24183 fail:
24184 return NULL;
24185 }
24186
24187
24188 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24189 PyObject *resultobj = 0;
24190 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24191 size_t arg2 ;
24192 wxToolBarToolBase *result = 0 ;
24193 void *argp1 = 0 ;
24194 int res1 = 0 ;
24195 size_t val2 ;
24196 int ecode2 = 0 ;
24197 PyObject * obj0 = 0 ;
24198 PyObject * obj1 = 0 ;
24199 char * kwnames[] = {
24200 (char *) "self",(char *) "pos", NULL
24201 };
24202
24203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24205 if (!SWIG_IsOK(res1)) {
24206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24207 }
24208 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24209 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24210 if (!SWIG_IsOK(ecode2)) {
24211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24212 }
24213 arg2 = static_cast< size_t >(val2);
24214 {
24215 PyThreadState* __tstate = wxPyBeginAllowThreads();
24216 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24217 wxPyEndAllowThreads(__tstate);
24218 if (PyErr_Occurred()) SWIG_fail;
24219 }
24220 {
24221 resultobj = wxPyMake_wxObject(result, (bool)0);
24222 }
24223 return resultobj;
24224 fail:
24225 return NULL;
24226 }
24227
24228
24229 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24230 PyObject *resultobj = 0;
24231 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24232 int arg2 ;
24233 wxToolBarToolBase *result = 0 ;
24234 void *argp1 = 0 ;
24235 int res1 = 0 ;
24236 int val2 ;
24237 int ecode2 = 0 ;
24238 PyObject * obj0 = 0 ;
24239 PyObject * obj1 = 0 ;
24240 char * kwnames[] = {
24241 (char *) "self",(char *) "id", NULL
24242 };
24243
24244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24246 if (!SWIG_IsOK(res1)) {
24247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24248 }
24249 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24250 ecode2 = SWIG_AsVal_int(obj1, &val2);
24251 if (!SWIG_IsOK(ecode2)) {
24252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24253 }
24254 arg2 = static_cast< int >(val2);
24255 {
24256 PyThreadState* __tstate = wxPyBeginAllowThreads();
24257 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24258 wxPyEndAllowThreads(__tstate);
24259 if (PyErr_Occurred()) SWIG_fail;
24260 }
24261 {
24262 resultobj = wxPyMake_wxObject(result, (bool)0);
24263 }
24264 return resultobj;
24265 fail:
24266 return NULL;
24267 }
24268
24269
24270 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24271 PyObject *resultobj = 0;
24272 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24273 size_t arg2 ;
24274 bool result;
24275 void *argp1 = 0 ;
24276 int res1 = 0 ;
24277 size_t val2 ;
24278 int ecode2 = 0 ;
24279 PyObject * obj0 = 0 ;
24280 PyObject * obj1 = 0 ;
24281 char * kwnames[] = {
24282 (char *) "self",(char *) "pos", NULL
24283 };
24284
24285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24287 if (!SWIG_IsOK(res1)) {
24288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24289 }
24290 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24291 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24292 if (!SWIG_IsOK(ecode2)) {
24293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24294 }
24295 arg2 = static_cast< size_t >(val2);
24296 {
24297 PyThreadState* __tstate = wxPyBeginAllowThreads();
24298 result = (bool)(arg1)->DeleteToolByPos(arg2);
24299 wxPyEndAllowThreads(__tstate);
24300 if (PyErr_Occurred()) SWIG_fail;
24301 }
24302 {
24303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24304 }
24305 return resultobj;
24306 fail:
24307 return NULL;
24308 }
24309
24310
24311 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24312 PyObject *resultobj = 0;
24313 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24314 int arg2 ;
24315 bool result;
24316 void *argp1 = 0 ;
24317 int res1 = 0 ;
24318 int val2 ;
24319 int ecode2 = 0 ;
24320 PyObject * obj0 = 0 ;
24321 PyObject * obj1 = 0 ;
24322 char * kwnames[] = {
24323 (char *) "self",(char *) "id", NULL
24324 };
24325
24326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24328 if (!SWIG_IsOK(res1)) {
24329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24330 }
24331 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24332 ecode2 = SWIG_AsVal_int(obj1, &val2);
24333 if (!SWIG_IsOK(ecode2)) {
24334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24335 }
24336 arg2 = static_cast< int >(val2);
24337 {
24338 PyThreadState* __tstate = wxPyBeginAllowThreads();
24339 result = (bool)(arg1)->DeleteTool(arg2);
24340 wxPyEndAllowThreads(__tstate);
24341 if (PyErr_Occurred()) SWIG_fail;
24342 }
24343 {
24344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24345 }
24346 return resultobj;
24347 fail:
24348 return NULL;
24349 }
24350
24351
24352 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24353 PyObject *resultobj = 0;
24354 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24355 void *argp1 = 0 ;
24356 int res1 = 0 ;
24357 PyObject *swig_obj[1] ;
24358
24359 if (!args) SWIG_fail;
24360 swig_obj[0] = args;
24361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24362 if (!SWIG_IsOK(res1)) {
24363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24364 }
24365 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24366 {
24367 PyThreadState* __tstate = wxPyBeginAllowThreads();
24368 (arg1)->ClearTools();
24369 wxPyEndAllowThreads(__tstate);
24370 if (PyErr_Occurred()) SWIG_fail;
24371 }
24372 resultobj = SWIG_Py_Void();
24373 return resultobj;
24374 fail:
24375 return NULL;
24376 }
24377
24378
24379 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24380 PyObject *resultobj = 0;
24381 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24382 bool result;
24383 void *argp1 = 0 ;
24384 int res1 = 0 ;
24385 PyObject *swig_obj[1] ;
24386
24387 if (!args) SWIG_fail;
24388 swig_obj[0] = args;
24389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24390 if (!SWIG_IsOK(res1)) {
24391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24392 }
24393 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24394 {
24395 PyThreadState* __tstate = wxPyBeginAllowThreads();
24396 result = (bool)(arg1)->Realize();
24397 wxPyEndAllowThreads(__tstate);
24398 if (PyErr_Occurred()) SWIG_fail;
24399 }
24400 {
24401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24402 }
24403 return resultobj;
24404 fail:
24405 return NULL;
24406 }
24407
24408
24409 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24410 PyObject *resultobj = 0;
24411 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24412 int arg2 ;
24413 bool arg3 ;
24414 void *argp1 = 0 ;
24415 int res1 = 0 ;
24416 int val2 ;
24417 int ecode2 = 0 ;
24418 bool val3 ;
24419 int ecode3 = 0 ;
24420 PyObject * obj0 = 0 ;
24421 PyObject * obj1 = 0 ;
24422 PyObject * obj2 = 0 ;
24423 char * kwnames[] = {
24424 (char *) "self",(char *) "id",(char *) "enable", NULL
24425 };
24426
24427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24429 if (!SWIG_IsOK(res1)) {
24430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24431 }
24432 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24433 ecode2 = SWIG_AsVal_int(obj1, &val2);
24434 if (!SWIG_IsOK(ecode2)) {
24435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24436 }
24437 arg2 = static_cast< int >(val2);
24438 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24439 if (!SWIG_IsOK(ecode3)) {
24440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24441 }
24442 arg3 = static_cast< bool >(val3);
24443 {
24444 PyThreadState* __tstate = wxPyBeginAllowThreads();
24445 (arg1)->EnableTool(arg2,arg3);
24446 wxPyEndAllowThreads(__tstate);
24447 if (PyErr_Occurred()) SWIG_fail;
24448 }
24449 resultobj = SWIG_Py_Void();
24450 return resultobj;
24451 fail:
24452 return NULL;
24453 }
24454
24455
24456 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24457 PyObject *resultobj = 0;
24458 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24459 int arg2 ;
24460 bool arg3 ;
24461 void *argp1 = 0 ;
24462 int res1 = 0 ;
24463 int val2 ;
24464 int ecode2 = 0 ;
24465 bool val3 ;
24466 int ecode3 = 0 ;
24467 PyObject * obj0 = 0 ;
24468 PyObject * obj1 = 0 ;
24469 PyObject * obj2 = 0 ;
24470 char * kwnames[] = {
24471 (char *) "self",(char *) "id",(char *) "toggle", NULL
24472 };
24473
24474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24476 if (!SWIG_IsOK(res1)) {
24477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24478 }
24479 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24480 ecode2 = SWIG_AsVal_int(obj1, &val2);
24481 if (!SWIG_IsOK(ecode2)) {
24482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24483 }
24484 arg2 = static_cast< int >(val2);
24485 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24486 if (!SWIG_IsOK(ecode3)) {
24487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24488 }
24489 arg3 = static_cast< bool >(val3);
24490 {
24491 PyThreadState* __tstate = wxPyBeginAllowThreads();
24492 (arg1)->ToggleTool(arg2,arg3);
24493 wxPyEndAllowThreads(__tstate);
24494 if (PyErr_Occurred()) SWIG_fail;
24495 }
24496 resultobj = SWIG_Py_Void();
24497 return resultobj;
24498 fail:
24499 return NULL;
24500 }
24501
24502
24503 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24504 PyObject *resultobj = 0;
24505 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24506 int arg2 ;
24507 bool arg3 ;
24508 void *argp1 = 0 ;
24509 int res1 = 0 ;
24510 int val2 ;
24511 int ecode2 = 0 ;
24512 bool val3 ;
24513 int ecode3 = 0 ;
24514 PyObject * obj0 = 0 ;
24515 PyObject * obj1 = 0 ;
24516 PyObject * obj2 = 0 ;
24517 char * kwnames[] = {
24518 (char *) "self",(char *) "id",(char *) "toggle", NULL
24519 };
24520
24521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24523 if (!SWIG_IsOK(res1)) {
24524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24525 }
24526 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24527 ecode2 = SWIG_AsVal_int(obj1, &val2);
24528 if (!SWIG_IsOK(ecode2)) {
24529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24530 }
24531 arg2 = static_cast< int >(val2);
24532 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24533 if (!SWIG_IsOK(ecode3)) {
24534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24535 }
24536 arg3 = static_cast< bool >(val3);
24537 {
24538 PyThreadState* __tstate = wxPyBeginAllowThreads();
24539 (arg1)->SetToggle(arg2,arg3);
24540 wxPyEndAllowThreads(__tstate);
24541 if (PyErr_Occurred()) SWIG_fail;
24542 }
24543 resultobj = SWIG_Py_Void();
24544 return resultobj;
24545 fail:
24546 return NULL;
24547 }
24548
24549
24550 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24551 PyObject *resultobj = 0;
24552 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24553 int arg2 ;
24554 PyObject *result = 0 ;
24555 void *argp1 = 0 ;
24556 int res1 = 0 ;
24557 int val2 ;
24558 int ecode2 = 0 ;
24559 PyObject * obj0 = 0 ;
24560 PyObject * obj1 = 0 ;
24561 char * kwnames[] = {
24562 (char *) "self",(char *) "id", NULL
24563 };
24564
24565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24567 if (!SWIG_IsOK(res1)) {
24568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24569 }
24570 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24571 ecode2 = SWIG_AsVal_int(obj1, &val2);
24572 if (!SWIG_IsOK(ecode2)) {
24573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24574 }
24575 arg2 = static_cast< int >(val2);
24576 {
24577 PyThreadState* __tstate = wxPyBeginAllowThreads();
24578 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24579 wxPyEndAllowThreads(__tstate);
24580 if (PyErr_Occurred()) SWIG_fail;
24581 }
24582 resultobj = result;
24583 return resultobj;
24584 fail:
24585 return NULL;
24586 }
24587
24588
24589 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24590 PyObject *resultobj = 0;
24591 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24592 int arg2 ;
24593 PyObject *arg3 = (PyObject *) 0 ;
24594 void *argp1 = 0 ;
24595 int res1 = 0 ;
24596 int val2 ;
24597 int ecode2 = 0 ;
24598 PyObject * obj0 = 0 ;
24599 PyObject * obj1 = 0 ;
24600 PyObject * obj2 = 0 ;
24601 char * kwnames[] = {
24602 (char *) "self",(char *) "id",(char *) "clientData", NULL
24603 };
24604
24605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24607 if (!SWIG_IsOK(res1)) {
24608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24609 }
24610 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24611 ecode2 = SWIG_AsVal_int(obj1, &val2);
24612 if (!SWIG_IsOK(ecode2)) {
24613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24614 }
24615 arg2 = static_cast< int >(val2);
24616 arg3 = obj2;
24617 {
24618 PyThreadState* __tstate = wxPyBeginAllowThreads();
24619 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24620 wxPyEndAllowThreads(__tstate);
24621 if (PyErr_Occurred()) SWIG_fail;
24622 }
24623 resultobj = SWIG_Py_Void();
24624 return resultobj;
24625 fail:
24626 return NULL;
24627 }
24628
24629
24630 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24631 PyObject *resultobj = 0;
24632 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24633 int arg2 ;
24634 int result;
24635 void *argp1 = 0 ;
24636 int res1 = 0 ;
24637 int val2 ;
24638 int ecode2 = 0 ;
24639 PyObject * obj0 = 0 ;
24640 PyObject * obj1 = 0 ;
24641 char * kwnames[] = {
24642 (char *) "self",(char *) "id", NULL
24643 };
24644
24645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24647 if (!SWIG_IsOK(res1)) {
24648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24649 }
24650 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24651 ecode2 = SWIG_AsVal_int(obj1, &val2);
24652 if (!SWIG_IsOK(ecode2)) {
24653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24654 }
24655 arg2 = static_cast< int >(val2);
24656 {
24657 PyThreadState* __tstate = wxPyBeginAllowThreads();
24658 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24659 wxPyEndAllowThreads(__tstate);
24660 if (PyErr_Occurred()) SWIG_fail;
24661 }
24662 resultobj = SWIG_From_int(static_cast< int >(result));
24663 return resultobj;
24664 fail:
24665 return NULL;
24666 }
24667
24668
24669 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24670 PyObject *resultobj = 0;
24671 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24672 int arg2 ;
24673 bool result;
24674 void *argp1 = 0 ;
24675 int res1 = 0 ;
24676 int val2 ;
24677 int ecode2 = 0 ;
24678 PyObject * obj0 = 0 ;
24679 PyObject * obj1 = 0 ;
24680 char * kwnames[] = {
24681 (char *) "self",(char *) "id", NULL
24682 };
24683
24684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24686 if (!SWIG_IsOK(res1)) {
24687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24688 }
24689 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24690 ecode2 = SWIG_AsVal_int(obj1, &val2);
24691 if (!SWIG_IsOK(ecode2)) {
24692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24693 }
24694 arg2 = static_cast< int >(val2);
24695 {
24696 PyThreadState* __tstate = wxPyBeginAllowThreads();
24697 result = (bool)(arg1)->GetToolState(arg2);
24698 wxPyEndAllowThreads(__tstate);
24699 if (PyErr_Occurred()) SWIG_fail;
24700 }
24701 {
24702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24703 }
24704 return resultobj;
24705 fail:
24706 return NULL;
24707 }
24708
24709
24710 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24711 PyObject *resultobj = 0;
24712 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24713 int arg2 ;
24714 bool result;
24715 void *argp1 = 0 ;
24716 int res1 = 0 ;
24717 int val2 ;
24718 int ecode2 = 0 ;
24719 PyObject * obj0 = 0 ;
24720 PyObject * obj1 = 0 ;
24721 char * kwnames[] = {
24722 (char *) "self",(char *) "id", NULL
24723 };
24724
24725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24727 if (!SWIG_IsOK(res1)) {
24728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24729 }
24730 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24731 ecode2 = SWIG_AsVal_int(obj1, &val2);
24732 if (!SWIG_IsOK(ecode2)) {
24733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24734 }
24735 arg2 = static_cast< int >(val2);
24736 {
24737 PyThreadState* __tstate = wxPyBeginAllowThreads();
24738 result = (bool)(arg1)->GetToolEnabled(arg2);
24739 wxPyEndAllowThreads(__tstate);
24740 if (PyErr_Occurred()) SWIG_fail;
24741 }
24742 {
24743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24744 }
24745 return resultobj;
24746 fail:
24747 return NULL;
24748 }
24749
24750
24751 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24752 PyObject *resultobj = 0;
24753 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24754 int arg2 ;
24755 wxString *arg3 = 0 ;
24756 void *argp1 = 0 ;
24757 int res1 = 0 ;
24758 int val2 ;
24759 int ecode2 = 0 ;
24760 bool temp3 = false ;
24761 PyObject * obj0 = 0 ;
24762 PyObject * obj1 = 0 ;
24763 PyObject * obj2 = 0 ;
24764 char * kwnames[] = {
24765 (char *) "self",(char *) "id",(char *) "helpString", NULL
24766 };
24767
24768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24770 if (!SWIG_IsOK(res1)) {
24771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24772 }
24773 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24774 ecode2 = SWIG_AsVal_int(obj1, &val2);
24775 if (!SWIG_IsOK(ecode2)) {
24776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24777 }
24778 arg2 = static_cast< int >(val2);
24779 {
24780 arg3 = wxString_in_helper(obj2);
24781 if (arg3 == NULL) SWIG_fail;
24782 temp3 = true;
24783 }
24784 {
24785 PyThreadState* __tstate = wxPyBeginAllowThreads();
24786 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24787 wxPyEndAllowThreads(__tstate);
24788 if (PyErr_Occurred()) SWIG_fail;
24789 }
24790 resultobj = SWIG_Py_Void();
24791 {
24792 if (temp3)
24793 delete arg3;
24794 }
24795 return resultobj;
24796 fail:
24797 {
24798 if (temp3)
24799 delete arg3;
24800 }
24801 return NULL;
24802 }
24803
24804
24805 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24806 PyObject *resultobj = 0;
24807 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24808 int arg2 ;
24809 wxString result;
24810 void *argp1 = 0 ;
24811 int res1 = 0 ;
24812 int val2 ;
24813 int ecode2 = 0 ;
24814 PyObject * obj0 = 0 ;
24815 PyObject * obj1 = 0 ;
24816 char * kwnames[] = {
24817 (char *) "self",(char *) "id", NULL
24818 };
24819
24820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) 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_GetToolShortHelp" "', 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_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24829 }
24830 arg2 = static_cast< int >(val2);
24831 {
24832 PyThreadState* __tstate = wxPyBeginAllowThreads();
24833 result = (arg1)->GetToolShortHelp(arg2);
24834 wxPyEndAllowThreads(__tstate);
24835 if (PyErr_Occurred()) SWIG_fail;
24836 }
24837 {
24838 #if wxUSE_UNICODE
24839 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24840 #else
24841 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24842 #endif
24843 }
24844 return resultobj;
24845 fail:
24846 return NULL;
24847 }
24848
24849
24850 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24851 PyObject *resultobj = 0;
24852 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24853 int arg2 ;
24854 wxString *arg3 = 0 ;
24855 void *argp1 = 0 ;
24856 int res1 = 0 ;
24857 int val2 ;
24858 int ecode2 = 0 ;
24859 bool temp3 = false ;
24860 PyObject * obj0 = 0 ;
24861 PyObject * obj1 = 0 ;
24862 PyObject * obj2 = 0 ;
24863 char * kwnames[] = {
24864 (char *) "self",(char *) "id",(char *) "helpString", NULL
24865 };
24866
24867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",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_SetToolLongHelp" "', 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_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24876 }
24877 arg2 = static_cast< int >(val2);
24878 {
24879 arg3 = wxString_in_helper(obj2);
24880 if (arg3 == NULL) SWIG_fail;
24881 temp3 = true;
24882 }
24883 {
24884 PyThreadState* __tstate = wxPyBeginAllowThreads();
24885 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24886 wxPyEndAllowThreads(__tstate);
24887 if (PyErr_Occurred()) SWIG_fail;
24888 }
24889 resultobj = SWIG_Py_Void();
24890 {
24891 if (temp3)
24892 delete arg3;
24893 }
24894 return resultobj;
24895 fail:
24896 {
24897 if (temp3)
24898 delete arg3;
24899 }
24900 return NULL;
24901 }
24902
24903
24904 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24905 PyObject *resultobj = 0;
24906 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24907 int arg2 ;
24908 wxString result;
24909 void *argp1 = 0 ;
24910 int res1 = 0 ;
24911 int val2 ;
24912 int ecode2 = 0 ;
24913 PyObject * obj0 = 0 ;
24914 PyObject * obj1 = 0 ;
24915 char * kwnames[] = {
24916 (char *) "self",(char *) "id", NULL
24917 };
24918
24919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24921 if (!SWIG_IsOK(res1)) {
24922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24923 }
24924 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24925 ecode2 = SWIG_AsVal_int(obj1, &val2);
24926 if (!SWIG_IsOK(ecode2)) {
24927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24928 }
24929 arg2 = static_cast< int >(val2);
24930 {
24931 PyThreadState* __tstate = wxPyBeginAllowThreads();
24932 result = (arg1)->GetToolLongHelp(arg2);
24933 wxPyEndAllowThreads(__tstate);
24934 if (PyErr_Occurred()) SWIG_fail;
24935 }
24936 {
24937 #if wxUSE_UNICODE
24938 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24939 #else
24940 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24941 #endif
24942 }
24943 return resultobj;
24944 fail:
24945 return NULL;
24946 }
24947
24948
24949 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24950 PyObject *resultobj = 0;
24951 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24952 int arg2 ;
24953 int arg3 ;
24954 void *argp1 = 0 ;
24955 int res1 = 0 ;
24956 int val2 ;
24957 int ecode2 = 0 ;
24958 int val3 ;
24959 int ecode3 = 0 ;
24960 PyObject * obj0 = 0 ;
24961 PyObject * obj1 = 0 ;
24962 PyObject * obj2 = 0 ;
24963 char * kwnames[] = {
24964 (char *) "self",(char *) "x",(char *) "y", NULL
24965 };
24966
24967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24969 if (!SWIG_IsOK(res1)) {
24970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24971 }
24972 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24973 ecode2 = SWIG_AsVal_int(obj1, &val2);
24974 if (!SWIG_IsOK(ecode2)) {
24975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24976 }
24977 arg2 = static_cast< int >(val2);
24978 ecode3 = SWIG_AsVal_int(obj2, &val3);
24979 if (!SWIG_IsOK(ecode3)) {
24980 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24981 }
24982 arg3 = static_cast< int >(val3);
24983 {
24984 PyThreadState* __tstate = wxPyBeginAllowThreads();
24985 (arg1)->SetMargins(arg2,arg3);
24986 wxPyEndAllowThreads(__tstate);
24987 if (PyErr_Occurred()) SWIG_fail;
24988 }
24989 resultobj = SWIG_Py_Void();
24990 return resultobj;
24991 fail:
24992 return NULL;
24993 }
24994
24995
24996 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24997 PyObject *resultobj = 0;
24998 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24999 wxSize *arg2 = 0 ;
25000 void *argp1 = 0 ;
25001 int res1 = 0 ;
25002 wxSize temp2 ;
25003 PyObject * obj0 = 0 ;
25004 PyObject * obj1 = 0 ;
25005 char * kwnames[] = {
25006 (char *) "self",(char *) "size", NULL
25007 };
25008
25009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25011 if (!SWIG_IsOK(res1)) {
25012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25013 }
25014 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25015 {
25016 arg2 = &temp2;
25017 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25018 }
25019 {
25020 PyThreadState* __tstate = wxPyBeginAllowThreads();
25021 (arg1)->SetMargins((wxSize const &)*arg2);
25022 wxPyEndAllowThreads(__tstate);
25023 if (PyErr_Occurred()) SWIG_fail;
25024 }
25025 resultobj = SWIG_Py_Void();
25026 return resultobj;
25027 fail:
25028 return NULL;
25029 }
25030
25031
25032 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25033 PyObject *resultobj = 0;
25034 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25035 int arg2 ;
25036 void *argp1 = 0 ;
25037 int res1 = 0 ;
25038 int val2 ;
25039 int ecode2 = 0 ;
25040 PyObject * obj0 = 0 ;
25041 PyObject * obj1 = 0 ;
25042 char * kwnames[] = {
25043 (char *) "self",(char *) "packing", NULL
25044 };
25045
25046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25048 if (!SWIG_IsOK(res1)) {
25049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25050 }
25051 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25052 ecode2 = SWIG_AsVal_int(obj1, &val2);
25053 if (!SWIG_IsOK(ecode2)) {
25054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25055 }
25056 arg2 = static_cast< int >(val2);
25057 {
25058 PyThreadState* __tstate = wxPyBeginAllowThreads();
25059 (arg1)->SetToolPacking(arg2);
25060 wxPyEndAllowThreads(__tstate);
25061 if (PyErr_Occurred()) SWIG_fail;
25062 }
25063 resultobj = SWIG_Py_Void();
25064 return resultobj;
25065 fail:
25066 return NULL;
25067 }
25068
25069
25070 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25071 PyObject *resultobj = 0;
25072 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25073 int arg2 ;
25074 void *argp1 = 0 ;
25075 int res1 = 0 ;
25076 int val2 ;
25077 int ecode2 = 0 ;
25078 PyObject * obj0 = 0 ;
25079 PyObject * obj1 = 0 ;
25080 char * kwnames[] = {
25081 (char *) "self",(char *) "separation", NULL
25082 };
25083
25084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25086 if (!SWIG_IsOK(res1)) {
25087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25088 }
25089 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25090 ecode2 = SWIG_AsVal_int(obj1, &val2);
25091 if (!SWIG_IsOK(ecode2)) {
25092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25093 }
25094 arg2 = static_cast< int >(val2);
25095 {
25096 PyThreadState* __tstate = wxPyBeginAllowThreads();
25097 (arg1)->SetToolSeparation(arg2);
25098 wxPyEndAllowThreads(__tstate);
25099 if (PyErr_Occurred()) SWIG_fail;
25100 }
25101 resultobj = SWIG_Py_Void();
25102 return resultobj;
25103 fail:
25104 return NULL;
25105 }
25106
25107
25108 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25109 PyObject *resultobj = 0;
25110 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25111 wxSize result;
25112 void *argp1 = 0 ;
25113 int res1 = 0 ;
25114 PyObject *swig_obj[1] ;
25115
25116 if (!args) SWIG_fail;
25117 swig_obj[0] = args;
25118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25119 if (!SWIG_IsOK(res1)) {
25120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25121 }
25122 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25123 {
25124 PyThreadState* __tstate = wxPyBeginAllowThreads();
25125 result = (arg1)->GetToolMargins();
25126 wxPyEndAllowThreads(__tstate);
25127 if (PyErr_Occurred()) SWIG_fail;
25128 }
25129 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25130 return resultobj;
25131 fail:
25132 return NULL;
25133 }
25134
25135
25136 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25137 PyObject *resultobj = 0;
25138 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25139 wxSize result;
25140 void *argp1 = 0 ;
25141 int res1 = 0 ;
25142 PyObject *swig_obj[1] ;
25143
25144 if (!args) SWIG_fail;
25145 swig_obj[0] = args;
25146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25147 if (!SWIG_IsOK(res1)) {
25148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25149 }
25150 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25151 {
25152 PyThreadState* __tstate = wxPyBeginAllowThreads();
25153 result = (arg1)->GetMargins();
25154 wxPyEndAllowThreads(__tstate);
25155 if (PyErr_Occurred()) SWIG_fail;
25156 }
25157 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25158 return resultobj;
25159 fail:
25160 return NULL;
25161 }
25162
25163
25164 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25165 PyObject *resultobj = 0;
25166 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25167 int result;
25168 void *argp1 = 0 ;
25169 int res1 = 0 ;
25170 PyObject *swig_obj[1] ;
25171
25172 if (!args) SWIG_fail;
25173 swig_obj[0] = args;
25174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25175 if (!SWIG_IsOK(res1)) {
25176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25177 }
25178 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25179 {
25180 PyThreadState* __tstate = wxPyBeginAllowThreads();
25181 result = (int)(arg1)->GetToolPacking();
25182 wxPyEndAllowThreads(__tstate);
25183 if (PyErr_Occurred()) SWIG_fail;
25184 }
25185 resultobj = SWIG_From_int(static_cast< int >(result));
25186 return resultobj;
25187 fail:
25188 return NULL;
25189 }
25190
25191
25192 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25193 PyObject *resultobj = 0;
25194 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25195 int result;
25196 void *argp1 = 0 ;
25197 int res1 = 0 ;
25198 PyObject *swig_obj[1] ;
25199
25200 if (!args) SWIG_fail;
25201 swig_obj[0] = args;
25202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25203 if (!SWIG_IsOK(res1)) {
25204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25205 }
25206 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25207 {
25208 PyThreadState* __tstate = wxPyBeginAllowThreads();
25209 result = (int)(arg1)->GetToolSeparation();
25210 wxPyEndAllowThreads(__tstate);
25211 if (PyErr_Occurred()) SWIG_fail;
25212 }
25213 resultobj = SWIG_From_int(static_cast< int >(result));
25214 return resultobj;
25215 fail:
25216 return NULL;
25217 }
25218
25219
25220 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25221 PyObject *resultobj = 0;
25222 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25223 int arg2 ;
25224 void *argp1 = 0 ;
25225 int res1 = 0 ;
25226 int val2 ;
25227 int ecode2 = 0 ;
25228 PyObject * obj0 = 0 ;
25229 PyObject * obj1 = 0 ;
25230 char * kwnames[] = {
25231 (char *) "self",(char *) "nRows", NULL
25232 };
25233
25234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25236 if (!SWIG_IsOK(res1)) {
25237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25238 }
25239 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25240 ecode2 = SWIG_AsVal_int(obj1, &val2);
25241 if (!SWIG_IsOK(ecode2)) {
25242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25243 }
25244 arg2 = static_cast< int >(val2);
25245 {
25246 PyThreadState* __tstate = wxPyBeginAllowThreads();
25247 (arg1)->SetRows(arg2);
25248 wxPyEndAllowThreads(__tstate);
25249 if (PyErr_Occurred()) SWIG_fail;
25250 }
25251 resultobj = SWIG_Py_Void();
25252 return resultobj;
25253 fail:
25254 return NULL;
25255 }
25256
25257
25258 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25259 PyObject *resultobj = 0;
25260 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25261 int arg2 ;
25262 int arg3 ;
25263 void *argp1 = 0 ;
25264 int res1 = 0 ;
25265 int val2 ;
25266 int ecode2 = 0 ;
25267 int val3 ;
25268 int ecode3 = 0 ;
25269 PyObject * obj0 = 0 ;
25270 PyObject * obj1 = 0 ;
25271 PyObject * obj2 = 0 ;
25272 char * kwnames[] = {
25273 (char *) "self",(char *) "rows",(char *) "cols", NULL
25274 };
25275
25276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25278 if (!SWIG_IsOK(res1)) {
25279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25280 }
25281 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25282 ecode2 = SWIG_AsVal_int(obj1, &val2);
25283 if (!SWIG_IsOK(ecode2)) {
25284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25285 }
25286 arg2 = static_cast< int >(val2);
25287 ecode3 = SWIG_AsVal_int(obj2, &val3);
25288 if (!SWIG_IsOK(ecode3)) {
25289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25290 }
25291 arg3 = static_cast< int >(val3);
25292 {
25293 PyThreadState* __tstate = wxPyBeginAllowThreads();
25294 (arg1)->SetMaxRowsCols(arg2,arg3);
25295 wxPyEndAllowThreads(__tstate);
25296 if (PyErr_Occurred()) SWIG_fail;
25297 }
25298 resultobj = SWIG_Py_Void();
25299 return resultobj;
25300 fail:
25301 return NULL;
25302 }
25303
25304
25305 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25306 PyObject *resultobj = 0;
25307 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25308 int result;
25309 void *argp1 = 0 ;
25310 int res1 = 0 ;
25311 PyObject *swig_obj[1] ;
25312
25313 if (!args) SWIG_fail;
25314 swig_obj[0] = args;
25315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25316 if (!SWIG_IsOK(res1)) {
25317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25318 }
25319 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25320 {
25321 PyThreadState* __tstate = wxPyBeginAllowThreads();
25322 result = (int)(arg1)->GetMaxRows();
25323 wxPyEndAllowThreads(__tstate);
25324 if (PyErr_Occurred()) SWIG_fail;
25325 }
25326 resultobj = SWIG_From_int(static_cast< int >(result));
25327 return resultobj;
25328 fail:
25329 return NULL;
25330 }
25331
25332
25333 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25334 PyObject *resultobj = 0;
25335 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25336 int result;
25337 void *argp1 = 0 ;
25338 int res1 = 0 ;
25339 PyObject *swig_obj[1] ;
25340
25341 if (!args) SWIG_fail;
25342 swig_obj[0] = args;
25343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25344 if (!SWIG_IsOK(res1)) {
25345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25346 }
25347 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25348 {
25349 PyThreadState* __tstate = wxPyBeginAllowThreads();
25350 result = (int)(arg1)->GetMaxCols();
25351 wxPyEndAllowThreads(__tstate);
25352 if (PyErr_Occurred()) SWIG_fail;
25353 }
25354 resultobj = SWIG_From_int(static_cast< int >(result));
25355 return resultobj;
25356 fail:
25357 return NULL;
25358 }
25359
25360
25361 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25362 PyObject *resultobj = 0;
25363 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25364 wxSize *arg2 = 0 ;
25365 void *argp1 = 0 ;
25366 int res1 = 0 ;
25367 wxSize temp2 ;
25368 PyObject * obj0 = 0 ;
25369 PyObject * obj1 = 0 ;
25370 char * kwnames[] = {
25371 (char *) "self",(char *) "size", NULL
25372 };
25373
25374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25376 if (!SWIG_IsOK(res1)) {
25377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25378 }
25379 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25380 {
25381 arg2 = &temp2;
25382 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25383 }
25384 {
25385 PyThreadState* __tstate = wxPyBeginAllowThreads();
25386 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25387 wxPyEndAllowThreads(__tstate);
25388 if (PyErr_Occurred()) SWIG_fail;
25389 }
25390 resultobj = SWIG_Py_Void();
25391 return resultobj;
25392 fail:
25393 return NULL;
25394 }
25395
25396
25397 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25398 PyObject *resultobj = 0;
25399 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25400 wxSize result;
25401 void *argp1 = 0 ;
25402 int res1 = 0 ;
25403 PyObject *swig_obj[1] ;
25404
25405 if (!args) SWIG_fail;
25406 swig_obj[0] = args;
25407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25408 if (!SWIG_IsOK(res1)) {
25409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25410 }
25411 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25412 {
25413 PyThreadState* __tstate = wxPyBeginAllowThreads();
25414 result = (arg1)->GetToolBitmapSize();
25415 wxPyEndAllowThreads(__tstate);
25416 if (PyErr_Occurred()) SWIG_fail;
25417 }
25418 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25419 return resultobj;
25420 fail:
25421 return NULL;
25422 }
25423
25424
25425 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25426 PyObject *resultobj = 0;
25427 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25428 wxSize result;
25429 void *argp1 = 0 ;
25430 int res1 = 0 ;
25431 PyObject *swig_obj[1] ;
25432
25433 if (!args) SWIG_fail;
25434 swig_obj[0] = args;
25435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25436 if (!SWIG_IsOK(res1)) {
25437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25438 }
25439 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25440 {
25441 PyThreadState* __tstate = wxPyBeginAllowThreads();
25442 result = (arg1)->GetToolSize();
25443 wxPyEndAllowThreads(__tstate);
25444 if (PyErr_Occurred()) SWIG_fail;
25445 }
25446 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25447 return resultobj;
25448 fail:
25449 return NULL;
25450 }
25451
25452
25453 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25454 PyObject *resultobj = 0;
25455 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25456 int arg2 ;
25457 int arg3 ;
25458 wxToolBarToolBase *result = 0 ;
25459 void *argp1 = 0 ;
25460 int res1 = 0 ;
25461 int val2 ;
25462 int ecode2 = 0 ;
25463 int val3 ;
25464 int ecode3 = 0 ;
25465 PyObject * obj0 = 0 ;
25466 PyObject * obj1 = 0 ;
25467 PyObject * obj2 = 0 ;
25468 char * kwnames[] = {
25469 (char *) "self",(char *) "x",(char *) "y", NULL
25470 };
25471
25472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25474 if (!SWIG_IsOK(res1)) {
25475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25476 }
25477 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25478 ecode2 = SWIG_AsVal_int(obj1, &val2);
25479 if (!SWIG_IsOK(ecode2)) {
25480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25481 }
25482 arg2 = static_cast< int >(val2);
25483 ecode3 = SWIG_AsVal_int(obj2, &val3);
25484 if (!SWIG_IsOK(ecode3)) {
25485 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25486 }
25487 arg3 = static_cast< int >(val3);
25488 {
25489 PyThreadState* __tstate = wxPyBeginAllowThreads();
25490 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25491 wxPyEndAllowThreads(__tstate);
25492 if (PyErr_Occurred()) SWIG_fail;
25493 }
25494 {
25495 resultobj = wxPyMake_wxObject(result, (bool)0);
25496 }
25497 return resultobj;
25498 fail:
25499 return NULL;
25500 }
25501
25502
25503 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25504 PyObject *resultobj = 0;
25505 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25506 int arg2 ;
25507 wxToolBarToolBase *result = 0 ;
25508 void *argp1 = 0 ;
25509 int res1 = 0 ;
25510 int val2 ;
25511 int ecode2 = 0 ;
25512 PyObject * obj0 = 0 ;
25513 PyObject * obj1 = 0 ;
25514 char * kwnames[] = {
25515 (char *) "self",(char *) "toolid", NULL
25516 };
25517
25518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25520 if (!SWIG_IsOK(res1)) {
25521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25522 }
25523 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25524 ecode2 = SWIG_AsVal_int(obj1, &val2);
25525 if (!SWIG_IsOK(ecode2)) {
25526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25527 }
25528 arg2 = static_cast< int >(val2);
25529 {
25530 PyThreadState* __tstate = wxPyBeginAllowThreads();
25531 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25532 wxPyEndAllowThreads(__tstate);
25533 if (PyErr_Occurred()) SWIG_fail;
25534 }
25535 {
25536 resultobj = wxPyMake_wxObject(result, (bool)0);
25537 }
25538 return resultobj;
25539 fail:
25540 return NULL;
25541 }
25542
25543
25544 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25545 PyObject *resultobj = 0;
25546 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25547 bool result;
25548 void *argp1 = 0 ;
25549 int res1 = 0 ;
25550 PyObject *swig_obj[1] ;
25551
25552 if (!args) SWIG_fail;
25553 swig_obj[0] = args;
25554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25555 if (!SWIG_IsOK(res1)) {
25556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25557 }
25558 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25559 {
25560 PyThreadState* __tstate = wxPyBeginAllowThreads();
25561 result = (bool)(arg1)->IsVertical();
25562 wxPyEndAllowThreads(__tstate);
25563 if (PyErr_Occurred()) SWIG_fail;
25564 }
25565 {
25566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25567 }
25568 return resultobj;
25569 fail:
25570 return NULL;
25571 }
25572
25573
25574 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25575 PyObject *resultobj = 0;
25576 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25577 size_t result;
25578 void *argp1 = 0 ;
25579 int res1 = 0 ;
25580 PyObject *swig_obj[1] ;
25581
25582 if (!args) SWIG_fail;
25583 swig_obj[0] = args;
25584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25585 if (!SWIG_IsOK(res1)) {
25586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25587 }
25588 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25589 {
25590 PyThreadState* __tstate = wxPyBeginAllowThreads();
25591 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25592 wxPyEndAllowThreads(__tstate);
25593 if (PyErr_Occurred()) SWIG_fail;
25594 }
25595 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25596 return resultobj;
25597 fail:
25598 return NULL;
25599 }
25600
25601
25602 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25603 PyObject *obj;
25604 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25605 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25606 return SWIG_Py_Void();
25607 }
25608
25609 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25610 PyObject *resultobj = 0;
25611 wxWindow *arg1 = (wxWindow *) 0 ;
25612 int arg2 = (int) -1 ;
25613 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25614 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25615 wxSize const &arg4_defvalue = wxDefaultSize ;
25616 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25617 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25618 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25619 wxString *arg6 = (wxString *) &arg6_defvalue ;
25620 wxToolBar *result = 0 ;
25621 void *argp1 = 0 ;
25622 int res1 = 0 ;
25623 int val2 ;
25624 int ecode2 = 0 ;
25625 wxPoint temp3 ;
25626 wxSize temp4 ;
25627 long val5 ;
25628 int ecode5 = 0 ;
25629 bool temp6 = false ;
25630 PyObject * obj0 = 0 ;
25631 PyObject * obj1 = 0 ;
25632 PyObject * obj2 = 0 ;
25633 PyObject * obj3 = 0 ;
25634 PyObject * obj4 = 0 ;
25635 PyObject * obj5 = 0 ;
25636 char * kwnames[] = {
25637 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25638 };
25639
25640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25642 if (!SWIG_IsOK(res1)) {
25643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25644 }
25645 arg1 = reinterpret_cast< wxWindow * >(argp1);
25646 if (obj1) {
25647 ecode2 = SWIG_AsVal_int(obj1, &val2);
25648 if (!SWIG_IsOK(ecode2)) {
25649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25650 }
25651 arg2 = static_cast< int >(val2);
25652 }
25653 if (obj2) {
25654 {
25655 arg3 = &temp3;
25656 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25657 }
25658 }
25659 if (obj3) {
25660 {
25661 arg4 = &temp4;
25662 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25663 }
25664 }
25665 if (obj4) {
25666 ecode5 = SWIG_AsVal_long(obj4, &val5);
25667 if (!SWIG_IsOK(ecode5)) {
25668 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25669 }
25670 arg5 = static_cast< long >(val5);
25671 }
25672 if (obj5) {
25673 {
25674 arg6 = wxString_in_helper(obj5);
25675 if (arg6 == NULL) SWIG_fail;
25676 temp6 = true;
25677 }
25678 }
25679 {
25680 if (!wxPyCheckForApp()) SWIG_fail;
25681 PyThreadState* __tstate = wxPyBeginAllowThreads();
25682 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25683 wxPyEndAllowThreads(__tstate);
25684 if (PyErr_Occurred()) SWIG_fail;
25685 }
25686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25687 {
25688 if (temp6)
25689 delete arg6;
25690 }
25691 return resultobj;
25692 fail:
25693 {
25694 if (temp6)
25695 delete arg6;
25696 }
25697 return NULL;
25698 }
25699
25700
25701 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25702 PyObject *resultobj = 0;
25703 wxToolBar *result = 0 ;
25704
25705 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25706 {
25707 if (!wxPyCheckForApp()) SWIG_fail;
25708 PyThreadState* __tstate = wxPyBeginAllowThreads();
25709 result = (wxToolBar *)new wxToolBar();
25710 wxPyEndAllowThreads(__tstate);
25711 if (PyErr_Occurred()) SWIG_fail;
25712 }
25713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25714 return resultobj;
25715 fail:
25716 return NULL;
25717 }
25718
25719
25720 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25721 PyObject *resultobj = 0;
25722 wxToolBar *arg1 = (wxToolBar *) 0 ;
25723 wxWindow *arg2 = (wxWindow *) 0 ;
25724 int arg3 = (int) -1 ;
25725 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25726 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25727 wxSize const &arg5_defvalue = wxDefaultSize ;
25728 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25729 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25730 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25731 wxString *arg7 = (wxString *) &arg7_defvalue ;
25732 bool result;
25733 void *argp1 = 0 ;
25734 int res1 = 0 ;
25735 void *argp2 = 0 ;
25736 int res2 = 0 ;
25737 int val3 ;
25738 int ecode3 = 0 ;
25739 wxPoint temp4 ;
25740 wxSize temp5 ;
25741 long val6 ;
25742 int ecode6 = 0 ;
25743 bool temp7 = false ;
25744 PyObject * obj0 = 0 ;
25745 PyObject * obj1 = 0 ;
25746 PyObject * obj2 = 0 ;
25747 PyObject * obj3 = 0 ;
25748 PyObject * obj4 = 0 ;
25749 PyObject * obj5 = 0 ;
25750 PyObject * obj6 = 0 ;
25751 char * kwnames[] = {
25752 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25753 };
25754
25755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25757 if (!SWIG_IsOK(res1)) {
25758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25759 }
25760 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25761 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25762 if (!SWIG_IsOK(res2)) {
25763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25764 }
25765 arg2 = reinterpret_cast< wxWindow * >(argp2);
25766 if (obj2) {
25767 ecode3 = SWIG_AsVal_int(obj2, &val3);
25768 if (!SWIG_IsOK(ecode3)) {
25769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25770 }
25771 arg3 = static_cast< int >(val3);
25772 }
25773 if (obj3) {
25774 {
25775 arg4 = &temp4;
25776 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25777 }
25778 }
25779 if (obj4) {
25780 {
25781 arg5 = &temp5;
25782 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25783 }
25784 }
25785 if (obj5) {
25786 ecode6 = SWIG_AsVal_long(obj5, &val6);
25787 if (!SWIG_IsOK(ecode6)) {
25788 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25789 }
25790 arg6 = static_cast< long >(val6);
25791 }
25792 if (obj6) {
25793 {
25794 arg7 = wxString_in_helper(obj6);
25795 if (arg7 == NULL) SWIG_fail;
25796 temp7 = true;
25797 }
25798 }
25799 {
25800 PyThreadState* __tstate = wxPyBeginAllowThreads();
25801 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25802 wxPyEndAllowThreads(__tstate);
25803 if (PyErr_Occurred()) SWIG_fail;
25804 }
25805 {
25806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25807 }
25808 {
25809 if (temp7)
25810 delete arg7;
25811 }
25812 return resultobj;
25813 fail:
25814 {
25815 if (temp7)
25816 delete arg7;
25817 }
25818 return NULL;
25819 }
25820
25821
25822 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25823 PyObject *resultobj = 0;
25824 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25825 SwigValueWrapper<wxVisualAttributes > result;
25826 int val1 ;
25827 int ecode1 = 0 ;
25828 PyObject * obj0 = 0 ;
25829 char * kwnames[] = {
25830 (char *) "variant", NULL
25831 };
25832
25833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25834 if (obj0) {
25835 ecode1 = SWIG_AsVal_int(obj0, &val1);
25836 if (!SWIG_IsOK(ecode1)) {
25837 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25838 }
25839 arg1 = static_cast< wxWindowVariant >(val1);
25840 }
25841 {
25842 if (!wxPyCheckForApp()) SWIG_fail;
25843 PyThreadState* __tstate = wxPyBeginAllowThreads();
25844 result = wxToolBar::GetClassDefaultAttributes(arg1);
25845 wxPyEndAllowThreads(__tstate);
25846 if (PyErr_Occurred()) SWIG_fail;
25847 }
25848 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25849 return resultobj;
25850 fail:
25851 return NULL;
25852 }
25853
25854
25855 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25856 PyObject *obj;
25857 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25858 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25859 return SWIG_Py_Void();
25860 }
25861
25862 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25863 return SWIG_Python_InitShadowInstance(args);
25864 }
25865
25866 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25867 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25868 return 1;
25869 }
25870
25871
25872 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25873 PyObject *pyobj = 0;
25874
25875 {
25876 #if wxUSE_UNICODE
25877 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25878 #else
25879 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25880 #endif
25881 }
25882 return pyobj;
25883 }
25884
25885
25886 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25887 PyObject *resultobj = 0;
25888 wxColour const &arg1_defvalue = wxNullColour ;
25889 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25890 wxColour const &arg2_defvalue = wxNullColour ;
25891 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25892 wxFont const &arg3_defvalue = wxNullFont ;
25893 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25894 wxListItemAttr *result = 0 ;
25895 wxColour temp1 ;
25896 wxColour temp2 ;
25897 void *argp3 = 0 ;
25898 int res3 = 0 ;
25899 PyObject * obj0 = 0 ;
25900 PyObject * obj1 = 0 ;
25901 PyObject * obj2 = 0 ;
25902 char * kwnames[] = {
25903 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25904 };
25905
25906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25907 if (obj0) {
25908 {
25909 arg1 = &temp1;
25910 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25911 }
25912 }
25913 if (obj1) {
25914 {
25915 arg2 = &temp2;
25916 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25917 }
25918 }
25919 if (obj2) {
25920 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25921 if (!SWIG_IsOK(res3)) {
25922 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25923 }
25924 if (!argp3) {
25925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25926 }
25927 arg3 = reinterpret_cast< wxFont * >(argp3);
25928 }
25929 {
25930 PyThreadState* __tstate = wxPyBeginAllowThreads();
25931 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25932 wxPyEndAllowThreads(__tstate);
25933 if (PyErr_Occurred()) SWIG_fail;
25934 }
25935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25936 return resultobj;
25937 fail:
25938 return NULL;
25939 }
25940
25941
25942 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25943 PyObject *resultobj = 0;
25944 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25945 void *argp1 = 0 ;
25946 int res1 = 0 ;
25947 PyObject *swig_obj[1] ;
25948
25949 if (!args) SWIG_fail;
25950 swig_obj[0] = args;
25951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25952 if (!SWIG_IsOK(res1)) {
25953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25954 }
25955 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25956 {
25957 PyThreadState* __tstate = wxPyBeginAllowThreads();
25958 delete arg1;
25959
25960 wxPyEndAllowThreads(__tstate);
25961 if (PyErr_Occurred()) SWIG_fail;
25962 }
25963 resultobj = SWIG_Py_Void();
25964 return resultobj;
25965 fail:
25966 return NULL;
25967 }
25968
25969
25970 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25971 PyObject *resultobj = 0;
25972 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25973 wxColour *arg2 = 0 ;
25974 void *argp1 = 0 ;
25975 int res1 = 0 ;
25976 wxColour temp2 ;
25977 PyObject * obj0 = 0 ;
25978 PyObject * obj1 = 0 ;
25979 char * kwnames[] = {
25980 (char *) "self",(char *) "colText", NULL
25981 };
25982
25983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25985 if (!SWIG_IsOK(res1)) {
25986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25987 }
25988 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25989 {
25990 arg2 = &temp2;
25991 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25992 }
25993 {
25994 PyThreadState* __tstate = wxPyBeginAllowThreads();
25995 (arg1)->SetTextColour((wxColour const &)*arg2);
25996 wxPyEndAllowThreads(__tstate);
25997 if (PyErr_Occurred()) SWIG_fail;
25998 }
25999 resultobj = SWIG_Py_Void();
26000 return resultobj;
26001 fail:
26002 return NULL;
26003 }
26004
26005
26006 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26007 PyObject *resultobj = 0;
26008 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26009 wxColour *arg2 = 0 ;
26010 void *argp1 = 0 ;
26011 int res1 = 0 ;
26012 wxColour temp2 ;
26013 PyObject * obj0 = 0 ;
26014 PyObject * obj1 = 0 ;
26015 char * kwnames[] = {
26016 (char *) "self",(char *) "colBack", NULL
26017 };
26018
26019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26021 if (!SWIG_IsOK(res1)) {
26022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26023 }
26024 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26025 {
26026 arg2 = &temp2;
26027 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26028 }
26029 {
26030 PyThreadState* __tstate = wxPyBeginAllowThreads();
26031 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26032 wxPyEndAllowThreads(__tstate);
26033 if (PyErr_Occurred()) SWIG_fail;
26034 }
26035 resultobj = SWIG_Py_Void();
26036 return resultobj;
26037 fail:
26038 return NULL;
26039 }
26040
26041
26042 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26043 PyObject *resultobj = 0;
26044 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26045 wxFont *arg2 = 0 ;
26046 void *argp1 = 0 ;
26047 int res1 = 0 ;
26048 void *argp2 = 0 ;
26049 int res2 = 0 ;
26050 PyObject * obj0 = 0 ;
26051 PyObject * obj1 = 0 ;
26052 char * kwnames[] = {
26053 (char *) "self",(char *) "font", NULL
26054 };
26055
26056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26058 if (!SWIG_IsOK(res1)) {
26059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26060 }
26061 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26063 if (!SWIG_IsOK(res2)) {
26064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26065 }
26066 if (!argp2) {
26067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26068 }
26069 arg2 = reinterpret_cast< wxFont * >(argp2);
26070 {
26071 PyThreadState* __tstate = wxPyBeginAllowThreads();
26072 (arg1)->SetFont((wxFont const &)*arg2);
26073 wxPyEndAllowThreads(__tstate);
26074 if (PyErr_Occurred()) SWIG_fail;
26075 }
26076 resultobj = SWIG_Py_Void();
26077 return resultobj;
26078 fail:
26079 return NULL;
26080 }
26081
26082
26083 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26084 PyObject *resultobj = 0;
26085 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26086 bool result;
26087 void *argp1 = 0 ;
26088 int res1 = 0 ;
26089 PyObject *swig_obj[1] ;
26090
26091 if (!args) SWIG_fail;
26092 swig_obj[0] = args;
26093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26094 if (!SWIG_IsOK(res1)) {
26095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26096 }
26097 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26098 {
26099 PyThreadState* __tstate = wxPyBeginAllowThreads();
26100 result = (bool)(arg1)->HasTextColour();
26101 wxPyEndAllowThreads(__tstate);
26102 if (PyErr_Occurred()) SWIG_fail;
26103 }
26104 {
26105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26106 }
26107 return resultobj;
26108 fail:
26109 return NULL;
26110 }
26111
26112
26113 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26114 PyObject *resultobj = 0;
26115 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26116 bool result;
26117 void *argp1 = 0 ;
26118 int res1 = 0 ;
26119 PyObject *swig_obj[1] ;
26120
26121 if (!args) SWIG_fail;
26122 swig_obj[0] = args;
26123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26124 if (!SWIG_IsOK(res1)) {
26125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26126 }
26127 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26128 {
26129 PyThreadState* __tstate = wxPyBeginAllowThreads();
26130 result = (bool)(arg1)->HasBackgroundColour();
26131 wxPyEndAllowThreads(__tstate);
26132 if (PyErr_Occurred()) SWIG_fail;
26133 }
26134 {
26135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26136 }
26137 return resultobj;
26138 fail:
26139 return NULL;
26140 }
26141
26142
26143 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26144 PyObject *resultobj = 0;
26145 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26146 bool result;
26147 void *argp1 = 0 ;
26148 int res1 = 0 ;
26149 PyObject *swig_obj[1] ;
26150
26151 if (!args) SWIG_fail;
26152 swig_obj[0] = args;
26153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26154 if (!SWIG_IsOK(res1)) {
26155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26156 }
26157 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26158 {
26159 PyThreadState* __tstate = wxPyBeginAllowThreads();
26160 result = (bool)(arg1)->HasFont();
26161 wxPyEndAllowThreads(__tstate);
26162 if (PyErr_Occurred()) SWIG_fail;
26163 }
26164 {
26165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26166 }
26167 return resultobj;
26168 fail:
26169 return NULL;
26170 }
26171
26172
26173 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26174 PyObject *resultobj = 0;
26175 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26176 wxColour result;
26177 void *argp1 = 0 ;
26178 int res1 = 0 ;
26179 PyObject *swig_obj[1] ;
26180
26181 if (!args) SWIG_fail;
26182 swig_obj[0] = args;
26183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26184 if (!SWIG_IsOK(res1)) {
26185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26186 }
26187 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26188 {
26189 PyThreadState* __tstate = wxPyBeginAllowThreads();
26190 result = (arg1)->GetTextColour();
26191 wxPyEndAllowThreads(__tstate);
26192 if (PyErr_Occurred()) SWIG_fail;
26193 }
26194 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26195 return resultobj;
26196 fail:
26197 return NULL;
26198 }
26199
26200
26201 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26202 PyObject *resultobj = 0;
26203 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26204 wxColour result;
26205 void *argp1 = 0 ;
26206 int res1 = 0 ;
26207 PyObject *swig_obj[1] ;
26208
26209 if (!args) SWIG_fail;
26210 swig_obj[0] = args;
26211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26212 if (!SWIG_IsOK(res1)) {
26213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26214 }
26215 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26216 {
26217 PyThreadState* __tstate = wxPyBeginAllowThreads();
26218 result = (arg1)->GetBackgroundColour();
26219 wxPyEndAllowThreads(__tstate);
26220 if (PyErr_Occurred()) SWIG_fail;
26221 }
26222 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26223 return resultobj;
26224 fail:
26225 return NULL;
26226 }
26227
26228
26229 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26230 PyObject *resultobj = 0;
26231 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26232 wxFont result;
26233 void *argp1 = 0 ;
26234 int res1 = 0 ;
26235 PyObject *swig_obj[1] ;
26236
26237 if (!args) SWIG_fail;
26238 swig_obj[0] = args;
26239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26240 if (!SWIG_IsOK(res1)) {
26241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26242 }
26243 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26244 {
26245 PyThreadState* __tstate = wxPyBeginAllowThreads();
26246 result = (arg1)->GetFont();
26247 wxPyEndAllowThreads(__tstate);
26248 if (PyErr_Occurred()) SWIG_fail;
26249 }
26250 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26251 return resultobj;
26252 fail:
26253 return NULL;
26254 }
26255
26256
26257 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26258 PyObject *resultobj = 0;
26259 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26260 wxListItemAttr *arg2 = 0 ;
26261 void *argp1 = 0 ;
26262 int res1 = 0 ;
26263 void *argp2 = 0 ;
26264 int res2 = 0 ;
26265 PyObject * obj0 = 0 ;
26266 PyObject * obj1 = 0 ;
26267 char * kwnames[] = {
26268 (char *) "self",(char *) "source", NULL
26269 };
26270
26271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26273 if (!SWIG_IsOK(res1)) {
26274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26275 }
26276 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26277 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26278 if (!SWIG_IsOK(res2)) {
26279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26280 }
26281 if (!argp2) {
26282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26283 }
26284 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26285 {
26286 PyThreadState* __tstate = wxPyBeginAllowThreads();
26287 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26288 wxPyEndAllowThreads(__tstate);
26289 if (PyErr_Occurred()) SWIG_fail;
26290 }
26291 resultobj = SWIG_Py_Void();
26292 return resultobj;
26293 fail:
26294 return NULL;
26295 }
26296
26297
26298 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26299 PyObject *resultobj = 0;
26300 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26301 void *argp1 = 0 ;
26302 int res1 = 0 ;
26303 PyObject *swig_obj[1] ;
26304
26305 if (!args) SWIG_fail;
26306 swig_obj[0] = args;
26307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26308 if (!SWIG_IsOK(res1)) {
26309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26310 }
26311 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26312 {
26313 PyThreadState* __tstate = wxPyBeginAllowThreads();
26314 wxListItemAttr_Destroy(arg1);
26315 wxPyEndAllowThreads(__tstate);
26316 if (PyErr_Occurred()) SWIG_fail;
26317 }
26318 resultobj = SWIG_Py_Void();
26319 return resultobj;
26320 fail:
26321 return NULL;
26322 }
26323
26324
26325 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26326 PyObject *obj;
26327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26328 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26329 return SWIG_Py_Void();
26330 }
26331
26332 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26333 return SWIG_Python_InitShadowInstance(args);
26334 }
26335
26336 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26337 PyObject *resultobj = 0;
26338 wxListItem *result = 0 ;
26339
26340 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26341 {
26342 PyThreadState* __tstate = wxPyBeginAllowThreads();
26343 result = (wxListItem *)new wxListItem();
26344 wxPyEndAllowThreads(__tstate);
26345 if (PyErr_Occurred()) SWIG_fail;
26346 }
26347 {
26348 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26349 }
26350 return resultobj;
26351 fail:
26352 return NULL;
26353 }
26354
26355
26356 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26357 PyObject *resultobj = 0;
26358 wxListItem *arg1 = (wxListItem *) 0 ;
26359 void *argp1 = 0 ;
26360 int res1 = 0 ;
26361 PyObject *swig_obj[1] ;
26362
26363 if (!args) SWIG_fail;
26364 swig_obj[0] = args;
26365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26366 if (!SWIG_IsOK(res1)) {
26367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26368 }
26369 arg1 = reinterpret_cast< wxListItem * >(argp1);
26370 {
26371 PyThreadState* __tstate = wxPyBeginAllowThreads();
26372 delete arg1;
26373
26374 wxPyEndAllowThreads(__tstate);
26375 if (PyErr_Occurred()) SWIG_fail;
26376 }
26377 resultobj = SWIG_Py_Void();
26378 return resultobj;
26379 fail:
26380 return NULL;
26381 }
26382
26383
26384 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26385 PyObject *resultobj = 0;
26386 wxListItem *arg1 = (wxListItem *) 0 ;
26387 void *argp1 = 0 ;
26388 int res1 = 0 ;
26389 PyObject *swig_obj[1] ;
26390
26391 if (!args) SWIG_fail;
26392 swig_obj[0] = args;
26393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26394 if (!SWIG_IsOK(res1)) {
26395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26396 }
26397 arg1 = reinterpret_cast< wxListItem * >(argp1);
26398 {
26399 PyThreadState* __tstate = wxPyBeginAllowThreads();
26400 (arg1)->Clear();
26401 wxPyEndAllowThreads(__tstate);
26402 if (PyErr_Occurred()) SWIG_fail;
26403 }
26404 resultobj = SWIG_Py_Void();
26405 return resultobj;
26406 fail:
26407 return NULL;
26408 }
26409
26410
26411 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26412 PyObject *resultobj = 0;
26413 wxListItem *arg1 = (wxListItem *) 0 ;
26414 void *argp1 = 0 ;
26415 int res1 = 0 ;
26416 PyObject *swig_obj[1] ;
26417
26418 if (!args) SWIG_fail;
26419 swig_obj[0] = args;
26420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26421 if (!SWIG_IsOK(res1)) {
26422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26423 }
26424 arg1 = reinterpret_cast< wxListItem * >(argp1);
26425 {
26426 PyThreadState* __tstate = wxPyBeginAllowThreads();
26427 (arg1)->ClearAttributes();
26428 wxPyEndAllowThreads(__tstate);
26429 if (PyErr_Occurred()) SWIG_fail;
26430 }
26431 resultobj = SWIG_Py_Void();
26432 return resultobj;
26433 fail:
26434 return NULL;
26435 }
26436
26437
26438 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26439 PyObject *resultobj = 0;
26440 wxListItem *arg1 = (wxListItem *) 0 ;
26441 long arg2 ;
26442 void *argp1 = 0 ;
26443 int res1 = 0 ;
26444 long val2 ;
26445 int ecode2 = 0 ;
26446 PyObject * obj0 = 0 ;
26447 PyObject * obj1 = 0 ;
26448 char * kwnames[] = {
26449 (char *) "self",(char *) "mask", NULL
26450 };
26451
26452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26454 if (!SWIG_IsOK(res1)) {
26455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26456 }
26457 arg1 = reinterpret_cast< wxListItem * >(argp1);
26458 ecode2 = SWIG_AsVal_long(obj1, &val2);
26459 if (!SWIG_IsOK(ecode2)) {
26460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26461 }
26462 arg2 = static_cast< long >(val2);
26463 {
26464 PyThreadState* __tstate = wxPyBeginAllowThreads();
26465 (arg1)->SetMask(arg2);
26466 wxPyEndAllowThreads(__tstate);
26467 if (PyErr_Occurred()) SWIG_fail;
26468 }
26469 resultobj = SWIG_Py_Void();
26470 return resultobj;
26471 fail:
26472 return NULL;
26473 }
26474
26475
26476 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26477 PyObject *resultobj = 0;
26478 wxListItem *arg1 = (wxListItem *) 0 ;
26479 long arg2 ;
26480 void *argp1 = 0 ;
26481 int res1 = 0 ;
26482 long val2 ;
26483 int ecode2 = 0 ;
26484 PyObject * obj0 = 0 ;
26485 PyObject * obj1 = 0 ;
26486 char * kwnames[] = {
26487 (char *) "self",(char *) "id", NULL
26488 };
26489
26490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26492 if (!SWIG_IsOK(res1)) {
26493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26494 }
26495 arg1 = reinterpret_cast< wxListItem * >(argp1);
26496 ecode2 = SWIG_AsVal_long(obj1, &val2);
26497 if (!SWIG_IsOK(ecode2)) {
26498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26499 }
26500 arg2 = static_cast< long >(val2);
26501 {
26502 PyThreadState* __tstate = wxPyBeginAllowThreads();
26503 (arg1)->SetId(arg2);
26504 wxPyEndAllowThreads(__tstate);
26505 if (PyErr_Occurred()) SWIG_fail;
26506 }
26507 resultobj = SWIG_Py_Void();
26508 return resultobj;
26509 fail:
26510 return NULL;
26511 }
26512
26513
26514 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26515 PyObject *resultobj = 0;
26516 wxListItem *arg1 = (wxListItem *) 0 ;
26517 int arg2 ;
26518 void *argp1 = 0 ;
26519 int res1 = 0 ;
26520 int val2 ;
26521 int ecode2 = 0 ;
26522 PyObject * obj0 = 0 ;
26523 PyObject * obj1 = 0 ;
26524 char * kwnames[] = {
26525 (char *) "self",(char *) "col", NULL
26526 };
26527
26528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26530 if (!SWIG_IsOK(res1)) {
26531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26532 }
26533 arg1 = reinterpret_cast< wxListItem * >(argp1);
26534 ecode2 = SWIG_AsVal_int(obj1, &val2);
26535 if (!SWIG_IsOK(ecode2)) {
26536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26537 }
26538 arg2 = static_cast< int >(val2);
26539 {
26540 PyThreadState* __tstate = wxPyBeginAllowThreads();
26541 (arg1)->SetColumn(arg2);
26542 wxPyEndAllowThreads(__tstate);
26543 if (PyErr_Occurred()) SWIG_fail;
26544 }
26545 resultobj = SWIG_Py_Void();
26546 return resultobj;
26547 fail:
26548 return NULL;
26549 }
26550
26551
26552 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26553 PyObject *resultobj = 0;
26554 wxListItem *arg1 = (wxListItem *) 0 ;
26555 long arg2 ;
26556 void *argp1 = 0 ;
26557 int res1 = 0 ;
26558 long val2 ;
26559 int ecode2 = 0 ;
26560 PyObject * obj0 = 0 ;
26561 PyObject * obj1 = 0 ;
26562 char * kwnames[] = {
26563 (char *) "self",(char *) "state", NULL
26564 };
26565
26566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26568 if (!SWIG_IsOK(res1)) {
26569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26570 }
26571 arg1 = reinterpret_cast< wxListItem * >(argp1);
26572 ecode2 = SWIG_AsVal_long(obj1, &val2);
26573 if (!SWIG_IsOK(ecode2)) {
26574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26575 }
26576 arg2 = static_cast< long >(val2);
26577 {
26578 PyThreadState* __tstate = wxPyBeginAllowThreads();
26579 (arg1)->SetState(arg2);
26580 wxPyEndAllowThreads(__tstate);
26581 if (PyErr_Occurred()) SWIG_fail;
26582 }
26583 resultobj = SWIG_Py_Void();
26584 return resultobj;
26585 fail:
26586 return NULL;
26587 }
26588
26589
26590 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26591 PyObject *resultobj = 0;
26592 wxListItem *arg1 = (wxListItem *) 0 ;
26593 long arg2 ;
26594 void *argp1 = 0 ;
26595 int res1 = 0 ;
26596 long val2 ;
26597 int ecode2 = 0 ;
26598 PyObject * obj0 = 0 ;
26599 PyObject * obj1 = 0 ;
26600 char * kwnames[] = {
26601 (char *) "self",(char *) "stateMask", NULL
26602 };
26603
26604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26606 if (!SWIG_IsOK(res1)) {
26607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26608 }
26609 arg1 = reinterpret_cast< wxListItem * >(argp1);
26610 ecode2 = SWIG_AsVal_long(obj1, &val2);
26611 if (!SWIG_IsOK(ecode2)) {
26612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26613 }
26614 arg2 = static_cast< long >(val2);
26615 {
26616 PyThreadState* __tstate = wxPyBeginAllowThreads();
26617 (arg1)->SetStateMask(arg2);
26618 wxPyEndAllowThreads(__tstate);
26619 if (PyErr_Occurred()) SWIG_fail;
26620 }
26621 resultobj = SWIG_Py_Void();
26622 return resultobj;
26623 fail:
26624 return NULL;
26625 }
26626
26627
26628 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26629 PyObject *resultobj = 0;
26630 wxListItem *arg1 = (wxListItem *) 0 ;
26631 wxString *arg2 = 0 ;
26632 void *argp1 = 0 ;
26633 int res1 = 0 ;
26634 bool temp2 = false ;
26635 PyObject * obj0 = 0 ;
26636 PyObject * obj1 = 0 ;
26637 char * kwnames[] = {
26638 (char *) "self",(char *) "text", NULL
26639 };
26640
26641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26643 if (!SWIG_IsOK(res1)) {
26644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26645 }
26646 arg1 = reinterpret_cast< wxListItem * >(argp1);
26647 {
26648 arg2 = wxString_in_helper(obj1);
26649 if (arg2 == NULL) SWIG_fail;
26650 temp2 = true;
26651 }
26652 {
26653 PyThreadState* __tstate = wxPyBeginAllowThreads();
26654 (arg1)->SetText((wxString const &)*arg2);
26655 wxPyEndAllowThreads(__tstate);
26656 if (PyErr_Occurred()) SWIG_fail;
26657 }
26658 resultobj = SWIG_Py_Void();
26659 {
26660 if (temp2)
26661 delete arg2;
26662 }
26663 return resultobj;
26664 fail:
26665 {
26666 if (temp2)
26667 delete arg2;
26668 }
26669 return NULL;
26670 }
26671
26672
26673 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26674 PyObject *resultobj = 0;
26675 wxListItem *arg1 = (wxListItem *) 0 ;
26676 int arg2 ;
26677 void *argp1 = 0 ;
26678 int res1 = 0 ;
26679 int val2 ;
26680 int ecode2 = 0 ;
26681 PyObject * obj0 = 0 ;
26682 PyObject * obj1 = 0 ;
26683 char * kwnames[] = {
26684 (char *) "self",(char *) "image", NULL
26685 };
26686
26687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26689 if (!SWIG_IsOK(res1)) {
26690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26691 }
26692 arg1 = reinterpret_cast< wxListItem * >(argp1);
26693 ecode2 = SWIG_AsVal_int(obj1, &val2);
26694 if (!SWIG_IsOK(ecode2)) {
26695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26696 }
26697 arg2 = static_cast< int >(val2);
26698 {
26699 PyThreadState* __tstate = wxPyBeginAllowThreads();
26700 (arg1)->SetImage(arg2);
26701 wxPyEndAllowThreads(__tstate);
26702 if (PyErr_Occurred()) SWIG_fail;
26703 }
26704 resultobj = SWIG_Py_Void();
26705 return resultobj;
26706 fail:
26707 return NULL;
26708 }
26709
26710
26711 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26712 PyObject *resultobj = 0;
26713 wxListItem *arg1 = (wxListItem *) 0 ;
26714 long arg2 ;
26715 void *argp1 = 0 ;
26716 int res1 = 0 ;
26717 long val2 ;
26718 int ecode2 = 0 ;
26719 PyObject * obj0 = 0 ;
26720 PyObject * obj1 = 0 ;
26721 char * kwnames[] = {
26722 (char *) "self",(char *) "data", NULL
26723 };
26724
26725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26727 if (!SWIG_IsOK(res1)) {
26728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26729 }
26730 arg1 = reinterpret_cast< wxListItem * >(argp1);
26731 ecode2 = SWIG_AsVal_long(obj1, &val2);
26732 if (!SWIG_IsOK(ecode2)) {
26733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26734 }
26735 arg2 = static_cast< long >(val2);
26736 {
26737 PyThreadState* __tstate = wxPyBeginAllowThreads();
26738 (arg1)->SetData(arg2);
26739 wxPyEndAllowThreads(__tstate);
26740 if (PyErr_Occurred()) SWIG_fail;
26741 }
26742 resultobj = SWIG_Py_Void();
26743 return resultobj;
26744 fail:
26745 return NULL;
26746 }
26747
26748
26749 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26750 PyObject *resultobj = 0;
26751 wxListItem *arg1 = (wxListItem *) 0 ;
26752 int arg2 ;
26753 void *argp1 = 0 ;
26754 int res1 = 0 ;
26755 int val2 ;
26756 int ecode2 = 0 ;
26757 PyObject * obj0 = 0 ;
26758 PyObject * obj1 = 0 ;
26759 char * kwnames[] = {
26760 (char *) "self",(char *) "width", NULL
26761 };
26762
26763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26765 if (!SWIG_IsOK(res1)) {
26766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26767 }
26768 arg1 = reinterpret_cast< wxListItem * >(argp1);
26769 ecode2 = SWIG_AsVal_int(obj1, &val2);
26770 if (!SWIG_IsOK(ecode2)) {
26771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26772 }
26773 arg2 = static_cast< int >(val2);
26774 {
26775 PyThreadState* __tstate = wxPyBeginAllowThreads();
26776 (arg1)->SetWidth(arg2);
26777 wxPyEndAllowThreads(__tstate);
26778 if (PyErr_Occurred()) SWIG_fail;
26779 }
26780 resultobj = SWIG_Py_Void();
26781 return resultobj;
26782 fail:
26783 return NULL;
26784 }
26785
26786
26787 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26788 PyObject *resultobj = 0;
26789 wxListItem *arg1 = (wxListItem *) 0 ;
26790 wxListColumnFormat arg2 ;
26791 void *argp1 = 0 ;
26792 int res1 = 0 ;
26793 int val2 ;
26794 int ecode2 = 0 ;
26795 PyObject * obj0 = 0 ;
26796 PyObject * obj1 = 0 ;
26797 char * kwnames[] = {
26798 (char *) "self",(char *) "align", NULL
26799 };
26800
26801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26803 if (!SWIG_IsOK(res1)) {
26804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26805 }
26806 arg1 = reinterpret_cast< wxListItem * >(argp1);
26807 ecode2 = SWIG_AsVal_int(obj1, &val2);
26808 if (!SWIG_IsOK(ecode2)) {
26809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26810 }
26811 arg2 = static_cast< wxListColumnFormat >(val2);
26812 {
26813 PyThreadState* __tstate = wxPyBeginAllowThreads();
26814 (arg1)->SetAlign(arg2);
26815 wxPyEndAllowThreads(__tstate);
26816 if (PyErr_Occurred()) SWIG_fail;
26817 }
26818 resultobj = SWIG_Py_Void();
26819 return resultobj;
26820 fail:
26821 return NULL;
26822 }
26823
26824
26825 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26826 PyObject *resultobj = 0;
26827 wxListItem *arg1 = (wxListItem *) 0 ;
26828 wxColour *arg2 = 0 ;
26829 void *argp1 = 0 ;
26830 int res1 = 0 ;
26831 wxColour temp2 ;
26832 PyObject * obj0 = 0 ;
26833 PyObject * obj1 = 0 ;
26834 char * kwnames[] = {
26835 (char *) "self",(char *) "colText", NULL
26836 };
26837
26838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26840 if (!SWIG_IsOK(res1)) {
26841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26842 }
26843 arg1 = reinterpret_cast< wxListItem * >(argp1);
26844 {
26845 arg2 = &temp2;
26846 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26847 }
26848 {
26849 PyThreadState* __tstate = wxPyBeginAllowThreads();
26850 (arg1)->SetTextColour((wxColour const &)*arg2);
26851 wxPyEndAllowThreads(__tstate);
26852 if (PyErr_Occurred()) SWIG_fail;
26853 }
26854 resultobj = SWIG_Py_Void();
26855 return resultobj;
26856 fail:
26857 return NULL;
26858 }
26859
26860
26861 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26862 PyObject *resultobj = 0;
26863 wxListItem *arg1 = (wxListItem *) 0 ;
26864 wxColour *arg2 = 0 ;
26865 void *argp1 = 0 ;
26866 int res1 = 0 ;
26867 wxColour temp2 ;
26868 PyObject * obj0 = 0 ;
26869 PyObject * obj1 = 0 ;
26870 char * kwnames[] = {
26871 (char *) "self",(char *) "colBack", NULL
26872 };
26873
26874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26876 if (!SWIG_IsOK(res1)) {
26877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26878 }
26879 arg1 = reinterpret_cast< wxListItem * >(argp1);
26880 {
26881 arg2 = &temp2;
26882 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26883 }
26884 {
26885 PyThreadState* __tstate = wxPyBeginAllowThreads();
26886 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26887 wxPyEndAllowThreads(__tstate);
26888 if (PyErr_Occurred()) SWIG_fail;
26889 }
26890 resultobj = SWIG_Py_Void();
26891 return resultobj;
26892 fail:
26893 return NULL;
26894 }
26895
26896
26897 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26898 PyObject *resultobj = 0;
26899 wxListItem *arg1 = (wxListItem *) 0 ;
26900 wxFont *arg2 = 0 ;
26901 void *argp1 = 0 ;
26902 int res1 = 0 ;
26903 void *argp2 = 0 ;
26904 int res2 = 0 ;
26905 PyObject * obj0 = 0 ;
26906 PyObject * obj1 = 0 ;
26907 char * kwnames[] = {
26908 (char *) "self",(char *) "font", NULL
26909 };
26910
26911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26913 if (!SWIG_IsOK(res1)) {
26914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26915 }
26916 arg1 = reinterpret_cast< wxListItem * >(argp1);
26917 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26918 if (!SWIG_IsOK(res2)) {
26919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26920 }
26921 if (!argp2) {
26922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26923 }
26924 arg2 = reinterpret_cast< wxFont * >(argp2);
26925 {
26926 PyThreadState* __tstate = wxPyBeginAllowThreads();
26927 (arg1)->SetFont((wxFont const &)*arg2);
26928 wxPyEndAllowThreads(__tstate);
26929 if (PyErr_Occurred()) SWIG_fail;
26930 }
26931 resultobj = SWIG_Py_Void();
26932 return resultobj;
26933 fail:
26934 return NULL;
26935 }
26936
26937
26938 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26939 PyObject *resultobj = 0;
26940 wxListItem *arg1 = (wxListItem *) 0 ;
26941 long result;
26942 void *argp1 = 0 ;
26943 int res1 = 0 ;
26944 PyObject *swig_obj[1] ;
26945
26946 if (!args) SWIG_fail;
26947 swig_obj[0] = args;
26948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26949 if (!SWIG_IsOK(res1)) {
26950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26951 }
26952 arg1 = reinterpret_cast< wxListItem * >(argp1);
26953 {
26954 PyThreadState* __tstate = wxPyBeginAllowThreads();
26955 result = (long)(arg1)->GetMask();
26956 wxPyEndAllowThreads(__tstate);
26957 if (PyErr_Occurred()) SWIG_fail;
26958 }
26959 resultobj = SWIG_From_long(static_cast< long >(result));
26960 return resultobj;
26961 fail:
26962 return NULL;
26963 }
26964
26965
26966 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26967 PyObject *resultobj = 0;
26968 wxListItem *arg1 = (wxListItem *) 0 ;
26969 long result;
26970 void *argp1 = 0 ;
26971 int res1 = 0 ;
26972 PyObject *swig_obj[1] ;
26973
26974 if (!args) SWIG_fail;
26975 swig_obj[0] = args;
26976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26977 if (!SWIG_IsOK(res1)) {
26978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26979 }
26980 arg1 = reinterpret_cast< wxListItem * >(argp1);
26981 {
26982 PyThreadState* __tstate = wxPyBeginAllowThreads();
26983 result = (long)(arg1)->GetId();
26984 wxPyEndAllowThreads(__tstate);
26985 if (PyErr_Occurred()) SWIG_fail;
26986 }
26987 resultobj = SWIG_From_long(static_cast< long >(result));
26988 return resultobj;
26989 fail:
26990 return NULL;
26991 }
26992
26993
26994 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26995 PyObject *resultobj = 0;
26996 wxListItem *arg1 = (wxListItem *) 0 ;
26997 int result;
26998 void *argp1 = 0 ;
26999 int res1 = 0 ;
27000 PyObject *swig_obj[1] ;
27001
27002 if (!args) SWIG_fail;
27003 swig_obj[0] = args;
27004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27005 if (!SWIG_IsOK(res1)) {
27006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27007 }
27008 arg1 = reinterpret_cast< wxListItem * >(argp1);
27009 {
27010 PyThreadState* __tstate = wxPyBeginAllowThreads();
27011 result = (int)(arg1)->GetColumn();
27012 wxPyEndAllowThreads(__tstate);
27013 if (PyErr_Occurred()) SWIG_fail;
27014 }
27015 resultobj = SWIG_From_int(static_cast< int >(result));
27016 return resultobj;
27017 fail:
27018 return NULL;
27019 }
27020
27021
27022 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27023 PyObject *resultobj = 0;
27024 wxListItem *arg1 = (wxListItem *) 0 ;
27025 long result;
27026 void *argp1 = 0 ;
27027 int res1 = 0 ;
27028 PyObject *swig_obj[1] ;
27029
27030 if (!args) SWIG_fail;
27031 swig_obj[0] = args;
27032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27033 if (!SWIG_IsOK(res1)) {
27034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27035 }
27036 arg1 = reinterpret_cast< wxListItem * >(argp1);
27037 {
27038 PyThreadState* __tstate = wxPyBeginAllowThreads();
27039 result = (long)(arg1)->GetState();
27040 wxPyEndAllowThreads(__tstate);
27041 if (PyErr_Occurred()) SWIG_fail;
27042 }
27043 resultobj = SWIG_From_long(static_cast< long >(result));
27044 return resultobj;
27045 fail:
27046 return NULL;
27047 }
27048
27049
27050 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27051 PyObject *resultobj = 0;
27052 wxListItem *arg1 = (wxListItem *) 0 ;
27053 wxString *result = 0 ;
27054 void *argp1 = 0 ;
27055 int res1 = 0 ;
27056 PyObject *swig_obj[1] ;
27057
27058 if (!args) SWIG_fail;
27059 swig_obj[0] = args;
27060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27061 if (!SWIG_IsOK(res1)) {
27062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27063 }
27064 arg1 = reinterpret_cast< wxListItem * >(argp1);
27065 {
27066 PyThreadState* __tstate = wxPyBeginAllowThreads();
27067 {
27068 wxString const &_result_ref = (arg1)->GetText();
27069 result = (wxString *) &_result_ref;
27070 }
27071 wxPyEndAllowThreads(__tstate);
27072 if (PyErr_Occurred()) SWIG_fail;
27073 }
27074 {
27075 #if wxUSE_UNICODE
27076 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27077 #else
27078 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27079 #endif
27080 }
27081 return resultobj;
27082 fail:
27083 return NULL;
27084 }
27085
27086
27087 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27088 PyObject *resultobj = 0;
27089 wxListItem *arg1 = (wxListItem *) 0 ;
27090 int result;
27091 void *argp1 = 0 ;
27092 int res1 = 0 ;
27093 PyObject *swig_obj[1] ;
27094
27095 if (!args) SWIG_fail;
27096 swig_obj[0] = args;
27097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27098 if (!SWIG_IsOK(res1)) {
27099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27100 }
27101 arg1 = reinterpret_cast< wxListItem * >(argp1);
27102 {
27103 PyThreadState* __tstate = wxPyBeginAllowThreads();
27104 result = (int)(arg1)->GetImage();
27105 wxPyEndAllowThreads(__tstate);
27106 if (PyErr_Occurred()) SWIG_fail;
27107 }
27108 resultobj = SWIG_From_int(static_cast< int >(result));
27109 return resultobj;
27110 fail:
27111 return NULL;
27112 }
27113
27114
27115 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27116 PyObject *resultobj = 0;
27117 wxListItem *arg1 = (wxListItem *) 0 ;
27118 long result;
27119 void *argp1 = 0 ;
27120 int res1 = 0 ;
27121 PyObject *swig_obj[1] ;
27122
27123 if (!args) SWIG_fail;
27124 swig_obj[0] = args;
27125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27126 if (!SWIG_IsOK(res1)) {
27127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27128 }
27129 arg1 = reinterpret_cast< wxListItem * >(argp1);
27130 {
27131 PyThreadState* __tstate = wxPyBeginAllowThreads();
27132 result = (long)(arg1)->GetData();
27133 wxPyEndAllowThreads(__tstate);
27134 if (PyErr_Occurred()) SWIG_fail;
27135 }
27136 resultobj = SWIG_From_long(static_cast< long >(result));
27137 return resultobj;
27138 fail:
27139 return NULL;
27140 }
27141
27142
27143 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27144 PyObject *resultobj = 0;
27145 wxListItem *arg1 = (wxListItem *) 0 ;
27146 int result;
27147 void *argp1 = 0 ;
27148 int res1 = 0 ;
27149 PyObject *swig_obj[1] ;
27150
27151 if (!args) SWIG_fail;
27152 swig_obj[0] = args;
27153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27154 if (!SWIG_IsOK(res1)) {
27155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27156 }
27157 arg1 = reinterpret_cast< wxListItem * >(argp1);
27158 {
27159 PyThreadState* __tstate = wxPyBeginAllowThreads();
27160 result = (int)(arg1)->GetWidth();
27161 wxPyEndAllowThreads(__tstate);
27162 if (PyErr_Occurred()) SWIG_fail;
27163 }
27164 resultobj = SWIG_From_int(static_cast< int >(result));
27165 return resultobj;
27166 fail:
27167 return NULL;
27168 }
27169
27170
27171 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27172 PyObject *resultobj = 0;
27173 wxListItem *arg1 = (wxListItem *) 0 ;
27174 wxListColumnFormat result;
27175 void *argp1 = 0 ;
27176 int res1 = 0 ;
27177 PyObject *swig_obj[1] ;
27178
27179 if (!args) SWIG_fail;
27180 swig_obj[0] = args;
27181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27182 if (!SWIG_IsOK(res1)) {
27183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27184 }
27185 arg1 = reinterpret_cast< wxListItem * >(argp1);
27186 {
27187 PyThreadState* __tstate = wxPyBeginAllowThreads();
27188 result = (wxListColumnFormat)(arg1)->GetAlign();
27189 wxPyEndAllowThreads(__tstate);
27190 if (PyErr_Occurred()) SWIG_fail;
27191 }
27192 resultobj = SWIG_From_int(static_cast< int >(result));
27193 return resultobj;
27194 fail:
27195 return NULL;
27196 }
27197
27198
27199 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27200 PyObject *resultobj = 0;
27201 wxListItem *arg1 = (wxListItem *) 0 ;
27202 wxListItemAttr *result = 0 ;
27203 void *argp1 = 0 ;
27204 int res1 = 0 ;
27205 PyObject *swig_obj[1] ;
27206
27207 if (!args) SWIG_fail;
27208 swig_obj[0] = args;
27209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27210 if (!SWIG_IsOK(res1)) {
27211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27212 }
27213 arg1 = reinterpret_cast< wxListItem * >(argp1);
27214 {
27215 PyThreadState* __tstate = wxPyBeginAllowThreads();
27216 result = (wxListItemAttr *)(arg1)->GetAttributes();
27217 wxPyEndAllowThreads(__tstate);
27218 if (PyErr_Occurred()) SWIG_fail;
27219 }
27220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27221 return resultobj;
27222 fail:
27223 return NULL;
27224 }
27225
27226
27227 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27228 PyObject *resultobj = 0;
27229 wxListItem *arg1 = (wxListItem *) 0 ;
27230 bool result;
27231 void *argp1 = 0 ;
27232 int res1 = 0 ;
27233 PyObject *swig_obj[1] ;
27234
27235 if (!args) SWIG_fail;
27236 swig_obj[0] = args;
27237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27238 if (!SWIG_IsOK(res1)) {
27239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27240 }
27241 arg1 = reinterpret_cast< wxListItem * >(argp1);
27242 {
27243 PyThreadState* __tstate = wxPyBeginAllowThreads();
27244 result = (bool)(arg1)->HasAttributes();
27245 wxPyEndAllowThreads(__tstate);
27246 if (PyErr_Occurred()) SWIG_fail;
27247 }
27248 {
27249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27250 }
27251 return resultobj;
27252 fail:
27253 return NULL;
27254 }
27255
27256
27257 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27258 PyObject *resultobj = 0;
27259 wxListItem *arg1 = (wxListItem *) 0 ;
27260 wxColour result;
27261 void *argp1 = 0 ;
27262 int res1 = 0 ;
27263 PyObject *swig_obj[1] ;
27264
27265 if (!args) SWIG_fail;
27266 swig_obj[0] = args;
27267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27268 if (!SWIG_IsOK(res1)) {
27269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27270 }
27271 arg1 = reinterpret_cast< wxListItem * >(argp1);
27272 {
27273 PyThreadState* __tstate = wxPyBeginAllowThreads();
27274 result = ((wxListItem const *)arg1)->GetTextColour();
27275 wxPyEndAllowThreads(__tstate);
27276 if (PyErr_Occurred()) SWIG_fail;
27277 }
27278 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27279 return resultobj;
27280 fail:
27281 return NULL;
27282 }
27283
27284
27285 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27286 PyObject *resultobj = 0;
27287 wxListItem *arg1 = (wxListItem *) 0 ;
27288 wxColour result;
27289 void *argp1 = 0 ;
27290 int res1 = 0 ;
27291 PyObject *swig_obj[1] ;
27292
27293 if (!args) SWIG_fail;
27294 swig_obj[0] = args;
27295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27296 if (!SWIG_IsOK(res1)) {
27297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27298 }
27299 arg1 = reinterpret_cast< wxListItem * >(argp1);
27300 {
27301 PyThreadState* __tstate = wxPyBeginAllowThreads();
27302 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27303 wxPyEndAllowThreads(__tstate);
27304 if (PyErr_Occurred()) SWIG_fail;
27305 }
27306 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27307 return resultobj;
27308 fail:
27309 return NULL;
27310 }
27311
27312
27313 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27314 PyObject *resultobj = 0;
27315 wxListItem *arg1 = (wxListItem *) 0 ;
27316 wxFont result;
27317 void *argp1 = 0 ;
27318 int res1 = 0 ;
27319 PyObject *swig_obj[1] ;
27320
27321 if (!args) SWIG_fail;
27322 swig_obj[0] = args;
27323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27324 if (!SWIG_IsOK(res1)) {
27325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27326 }
27327 arg1 = reinterpret_cast< wxListItem * >(argp1);
27328 {
27329 PyThreadState* __tstate = wxPyBeginAllowThreads();
27330 result = ((wxListItem const *)arg1)->GetFont();
27331 wxPyEndAllowThreads(__tstate);
27332 if (PyErr_Occurred()) SWIG_fail;
27333 }
27334 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27335 return resultobj;
27336 fail:
27337 return NULL;
27338 }
27339
27340
27341 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27342 PyObject *resultobj = 0;
27343 wxListItem *arg1 = (wxListItem *) 0 ;
27344 long arg2 ;
27345 void *argp1 = 0 ;
27346 int res1 = 0 ;
27347 long val2 ;
27348 int ecode2 = 0 ;
27349 PyObject *swig_obj[2] ;
27350
27351 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27353 if (!SWIG_IsOK(res1)) {
27354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27355 }
27356 arg1 = reinterpret_cast< wxListItem * >(argp1);
27357 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27358 if (!SWIG_IsOK(ecode2)) {
27359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27360 }
27361 arg2 = static_cast< long >(val2);
27362 if (arg1) (arg1)->m_mask = arg2;
27363
27364 resultobj = SWIG_Py_Void();
27365 return resultobj;
27366 fail:
27367 return NULL;
27368 }
27369
27370
27371 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27372 PyObject *resultobj = 0;
27373 wxListItem *arg1 = (wxListItem *) 0 ;
27374 long result;
27375 void *argp1 = 0 ;
27376 int res1 = 0 ;
27377 PyObject *swig_obj[1] ;
27378
27379 if (!args) SWIG_fail;
27380 swig_obj[0] = args;
27381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27382 if (!SWIG_IsOK(res1)) {
27383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27384 }
27385 arg1 = reinterpret_cast< wxListItem * >(argp1);
27386 result = (long) ((arg1)->m_mask);
27387 resultobj = SWIG_From_long(static_cast< long >(result));
27388 return resultobj;
27389 fail:
27390 return NULL;
27391 }
27392
27393
27394 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27395 PyObject *resultobj = 0;
27396 wxListItem *arg1 = (wxListItem *) 0 ;
27397 long arg2 ;
27398 void *argp1 = 0 ;
27399 int res1 = 0 ;
27400 long val2 ;
27401 int ecode2 = 0 ;
27402 PyObject *swig_obj[2] ;
27403
27404 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27406 if (!SWIG_IsOK(res1)) {
27407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27408 }
27409 arg1 = reinterpret_cast< wxListItem * >(argp1);
27410 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27411 if (!SWIG_IsOK(ecode2)) {
27412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27413 }
27414 arg2 = static_cast< long >(val2);
27415 if (arg1) (arg1)->m_itemId = arg2;
27416
27417 resultobj = SWIG_Py_Void();
27418 return resultobj;
27419 fail:
27420 return NULL;
27421 }
27422
27423
27424 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27425 PyObject *resultobj = 0;
27426 wxListItem *arg1 = (wxListItem *) 0 ;
27427 long result;
27428 void *argp1 = 0 ;
27429 int res1 = 0 ;
27430 PyObject *swig_obj[1] ;
27431
27432 if (!args) SWIG_fail;
27433 swig_obj[0] = args;
27434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27435 if (!SWIG_IsOK(res1)) {
27436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27437 }
27438 arg1 = reinterpret_cast< wxListItem * >(argp1);
27439 result = (long) ((arg1)->m_itemId);
27440 resultobj = SWIG_From_long(static_cast< long >(result));
27441 return resultobj;
27442 fail:
27443 return NULL;
27444 }
27445
27446
27447 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27448 PyObject *resultobj = 0;
27449 wxListItem *arg1 = (wxListItem *) 0 ;
27450 int arg2 ;
27451 void *argp1 = 0 ;
27452 int res1 = 0 ;
27453 int val2 ;
27454 int ecode2 = 0 ;
27455 PyObject *swig_obj[2] ;
27456
27457 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27459 if (!SWIG_IsOK(res1)) {
27460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27461 }
27462 arg1 = reinterpret_cast< wxListItem * >(argp1);
27463 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27464 if (!SWIG_IsOK(ecode2)) {
27465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27466 }
27467 arg2 = static_cast< int >(val2);
27468 if (arg1) (arg1)->m_col = arg2;
27469
27470 resultobj = SWIG_Py_Void();
27471 return resultobj;
27472 fail:
27473 return NULL;
27474 }
27475
27476
27477 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27478 PyObject *resultobj = 0;
27479 wxListItem *arg1 = (wxListItem *) 0 ;
27480 int result;
27481 void *argp1 = 0 ;
27482 int res1 = 0 ;
27483 PyObject *swig_obj[1] ;
27484
27485 if (!args) SWIG_fail;
27486 swig_obj[0] = args;
27487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27488 if (!SWIG_IsOK(res1)) {
27489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27490 }
27491 arg1 = reinterpret_cast< wxListItem * >(argp1);
27492 result = (int) ((arg1)->m_col);
27493 resultobj = SWIG_From_int(static_cast< int >(result));
27494 return resultobj;
27495 fail:
27496 return NULL;
27497 }
27498
27499
27500 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27501 PyObject *resultobj = 0;
27502 wxListItem *arg1 = (wxListItem *) 0 ;
27503 long arg2 ;
27504 void *argp1 = 0 ;
27505 int res1 = 0 ;
27506 long val2 ;
27507 int ecode2 = 0 ;
27508 PyObject *swig_obj[2] ;
27509
27510 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27512 if (!SWIG_IsOK(res1)) {
27513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27514 }
27515 arg1 = reinterpret_cast< wxListItem * >(argp1);
27516 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27517 if (!SWIG_IsOK(ecode2)) {
27518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27519 }
27520 arg2 = static_cast< long >(val2);
27521 if (arg1) (arg1)->m_state = arg2;
27522
27523 resultobj = SWIG_Py_Void();
27524 return resultobj;
27525 fail:
27526 return NULL;
27527 }
27528
27529
27530 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27531 PyObject *resultobj = 0;
27532 wxListItem *arg1 = (wxListItem *) 0 ;
27533 long result;
27534 void *argp1 = 0 ;
27535 int res1 = 0 ;
27536 PyObject *swig_obj[1] ;
27537
27538 if (!args) SWIG_fail;
27539 swig_obj[0] = args;
27540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27541 if (!SWIG_IsOK(res1)) {
27542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27543 }
27544 arg1 = reinterpret_cast< wxListItem * >(argp1);
27545 result = (long) ((arg1)->m_state);
27546 resultobj = SWIG_From_long(static_cast< long >(result));
27547 return resultobj;
27548 fail:
27549 return NULL;
27550 }
27551
27552
27553 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27554 PyObject *resultobj = 0;
27555 wxListItem *arg1 = (wxListItem *) 0 ;
27556 long arg2 ;
27557 void *argp1 = 0 ;
27558 int res1 = 0 ;
27559 long val2 ;
27560 int ecode2 = 0 ;
27561 PyObject *swig_obj[2] ;
27562
27563 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27565 if (!SWIG_IsOK(res1)) {
27566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27567 }
27568 arg1 = reinterpret_cast< wxListItem * >(argp1);
27569 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27570 if (!SWIG_IsOK(ecode2)) {
27571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27572 }
27573 arg2 = static_cast< long >(val2);
27574 if (arg1) (arg1)->m_stateMask = arg2;
27575
27576 resultobj = SWIG_Py_Void();
27577 return resultobj;
27578 fail:
27579 return NULL;
27580 }
27581
27582
27583 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27584 PyObject *resultobj = 0;
27585 wxListItem *arg1 = (wxListItem *) 0 ;
27586 long result;
27587 void *argp1 = 0 ;
27588 int res1 = 0 ;
27589 PyObject *swig_obj[1] ;
27590
27591 if (!args) SWIG_fail;
27592 swig_obj[0] = args;
27593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27594 if (!SWIG_IsOK(res1)) {
27595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27596 }
27597 arg1 = reinterpret_cast< wxListItem * >(argp1);
27598 result = (long) ((arg1)->m_stateMask);
27599 resultobj = SWIG_From_long(static_cast< long >(result));
27600 return resultobj;
27601 fail:
27602 return NULL;
27603 }
27604
27605
27606 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27607 PyObject *resultobj = 0;
27608 wxListItem *arg1 = (wxListItem *) 0 ;
27609 wxString *arg2 = (wxString *) 0 ;
27610 void *argp1 = 0 ;
27611 int res1 = 0 ;
27612 bool temp2 = false ;
27613 PyObject *swig_obj[2] ;
27614
27615 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
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_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27619 }
27620 arg1 = reinterpret_cast< wxListItem * >(argp1);
27621 {
27622 arg2 = wxString_in_helper(swig_obj[1]);
27623 if (arg2 == NULL) SWIG_fail;
27624 temp2 = true;
27625 }
27626 if (arg1) (arg1)->m_text = *arg2;
27627
27628 resultobj = SWIG_Py_Void();
27629 {
27630 if (temp2)
27631 delete arg2;
27632 }
27633 return resultobj;
27634 fail:
27635 {
27636 if (temp2)
27637 delete arg2;
27638 }
27639 return NULL;
27640 }
27641
27642
27643 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27644 PyObject *resultobj = 0;
27645 wxListItem *arg1 = (wxListItem *) 0 ;
27646 wxString *result = 0 ;
27647 void *argp1 = 0 ;
27648 int res1 = 0 ;
27649 PyObject *swig_obj[1] ;
27650
27651 if (!args) SWIG_fail;
27652 swig_obj[0] = args;
27653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27654 if (!SWIG_IsOK(res1)) {
27655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27656 }
27657 arg1 = reinterpret_cast< wxListItem * >(argp1);
27658 result = (wxString *)& ((arg1)->m_text);
27659 {
27660 #if wxUSE_UNICODE
27661 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27662 #else
27663 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27664 #endif
27665 }
27666 return resultobj;
27667 fail:
27668 return NULL;
27669 }
27670
27671
27672 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27673 PyObject *resultobj = 0;
27674 wxListItem *arg1 = (wxListItem *) 0 ;
27675 int arg2 ;
27676 void *argp1 = 0 ;
27677 int res1 = 0 ;
27678 int val2 ;
27679 int ecode2 = 0 ;
27680 PyObject *swig_obj[2] ;
27681
27682 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27684 if (!SWIG_IsOK(res1)) {
27685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27686 }
27687 arg1 = reinterpret_cast< wxListItem * >(argp1);
27688 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27689 if (!SWIG_IsOK(ecode2)) {
27690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27691 }
27692 arg2 = static_cast< int >(val2);
27693 if (arg1) (arg1)->m_image = arg2;
27694
27695 resultobj = SWIG_Py_Void();
27696 return resultobj;
27697 fail:
27698 return NULL;
27699 }
27700
27701
27702 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27703 PyObject *resultobj = 0;
27704 wxListItem *arg1 = (wxListItem *) 0 ;
27705 int result;
27706 void *argp1 = 0 ;
27707 int res1 = 0 ;
27708 PyObject *swig_obj[1] ;
27709
27710 if (!args) SWIG_fail;
27711 swig_obj[0] = args;
27712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27713 if (!SWIG_IsOK(res1)) {
27714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27715 }
27716 arg1 = reinterpret_cast< wxListItem * >(argp1);
27717 result = (int) ((arg1)->m_image);
27718 resultobj = SWIG_From_int(static_cast< int >(result));
27719 return resultobj;
27720 fail:
27721 return NULL;
27722 }
27723
27724
27725 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27726 PyObject *resultobj = 0;
27727 wxListItem *arg1 = (wxListItem *) 0 ;
27728 long arg2 ;
27729 void *argp1 = 0 ;
27730 int res1 = 0 ;
27731 long val2 ;
27732 int ecode2 = 0 ;
27733 PyObject *swig_obj[2] ;
27734
27735 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27737 if (!SWIG_IsOK(res1)) {
27738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27739 }
27740 arg1 = reinterpret_cast< wxListItem * >(argp1);
27741 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27742 if (!SWIG_IsOK(ecode2)) {
27743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27744 }
27745 arg2 = static_cast< long >(val2);
27746 if (arg1) (arg1)->m_data = arg2;
27747
27748 resultobj = SWIG_Py_Void();
27749 return resultobj;
27750 fail:
27751 return NULL;
27752 }
27753
27754
27755 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27756 PyObject *resultobj = 0;
27757 wxListItem *arg1 = (wxListItem *) 0 ;
27758 long result;
27759 void *argp1 = 0 ;
27760 int res1 = 0 ;
27761 PyObject *swig_obj[1] ;
27762
27763 if (!args) SWIG_fail;
27764 swig_obj[0] = args;
27765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27766 if (!SWIG_IsOK(res1)) {
27767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27768 }
27769 arg1 = reinterpret_cast< wxListItem * >(argp1);
27770 result = (long) ((arg1)->m_data);
27771 resultobj = SWIG_From_long(static_cast< long >(result));
27772 return resultobj;
27773 fail:
27774 return NULL;
27775 }
27776
27777
27778 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27779 PyObject *resultobj = 0;
27780 wxListItem *arg1 = (wxListItem *) 0 ;
27781 int arg2 ;
27782 void *argp1 = 0 ;
27783 int res1 = 0 ;
27784 int val2 ;
27785 int ecode2 = 0 ;
27786 PyObject *swig_obj[2] ;
27787
27788 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27790 if (!SWIG_IsOK(res1)) {
27791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27792 }
27793 arg1 = reinterpret_cast< wxListItem * >(argp1);
27794 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27795 if (!SWIG_IsOK(ecode2)) {
27796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27797 }
27798 arg2 = static_cast< int >(val2);
27799 if (arg1) (arg1)->m_format = arg2;
27800
27801 resultobj = SWIG_Py_Void();
27802 return resultobj;
27803 fail:
27804 return NULL;
27805 }
27806
27807
27808 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27809 PyObject *resultobj = 0;
27810 wxListItem *arg1 = (wxListItem *) 0 ;
27811 int result;
27812 void *argp1 = 0 ;
27813 int res1 = 0 ;
27814 PyObject *swig_obj[1] ;
27815
27816 if (!args) SWIG_fail;
27817 swig_obj[0] = args;
27818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27819 if (!SWIG_IsOK(res1)) {
27820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27821 }
27822 arg1 = reinterpret_cast< wxListItem * >(argp1);
27823 result = (int) ((arg1)->m_format);
27824 resultobj = SWIG_From_int(static_cast< int >(result));
27825 return resultobj;
27826 fail:
27827 return NULL;
27828 }
27829
27830
27831 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27832 PyObject *resultobj = 0;
27833 wxListItem *arg1 = (wxListItem *) 0 ;
27834 int arg2 ;
27835 void *argp1 = 0 ;
27836 int res1 = 0 ;
27837 int val2 ;
27838 int ecode2 = 0 ;
27839 PyObject *swig_obj[2] ;
27840
27841 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27843 if (!SWIG_IsOK(res1)) {
27844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27845 }
27846 arg1 = reinterpret_cast< wxListItem * >(argp1);
27847 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27848 if (!SWIG_IsOK(ecode2)) {
27849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27850 }
27851 arg2 = static_cast< int >(val2);
27852 if (arg1) (arg1)->m_width = arg2;
27853
27854 resultobj = SWIG_Py_Void();
27855 return resultobj;
27856 fail:
27857 return NULL;
27858 }
27859
27860
27861 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27862 PyObject *resultobj = 0;
27863 wxListItem *arg1 = (wxListItem *) 0 ;
27864 int result;
27865 void *argp1 = 0 ;
27866 int res1 = 0 ;
27867 PyObject *swig_obj[1] ;
27868
27869 if (!args) SWIG_fail;
27870 swig_obj[0] = args;
27871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27872 if (!SWIG_IsOK(res1)) {
27873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27874 }
27875 arg1 = reinterpret_cast< wxListItem * >(argp1);
27876 result = (int) ((arg1)->m_width);
27877 resultobj = SWIG_From_int(static_cast< int >(result));
27878 return resultobj;
27879 fail:
27880 return NULL;
27881 }
27882
27883
27884 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27885 PyObject *obj;
27886 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27887 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27888 return SWIG_Py_Void();
27889 }
27890
27891 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27892 return SWIG_Python_InitShadowInstance(args);
27893 }
27894
27895 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27896 PyObject *resultobj = 0;
27897 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27898 int arg2 = (int) 0 ;
27899 wxListEvent *result = 0 ;
27900 int val1 ;
27901 int ecode1 = 0 ;
27902 int val2 ;
27903 int ecode2 = 0 ;
27904 PyObject * obj0 = 0 ;
27905 PyObject * obj1 = 0 ;
27906 char * kwnames[] = {
27907 (char *) "commandType",(char *) "id", NULL
27908 };
27909
27910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27911 if (obj0) {
27912 ecode1 = SWIG_AsVal_int(obj0, &val1);
27913 if (!SWIG_IsOK(ecode1)) {
27914 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27915 }
27916 arg1 = static_cast< wxEventType >(val1);
27917 }
27918 if (obj1) {
27919 ecode2 = SWIG_AsVal_int(obj1, &val2);
27920 if (!SWIG_IsOK(ecode2)) {
27921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27922 }
27923 arg2 = static_cast< int >(val2);
27924 }
27925 {
27926 PyThreadState* __tstate = wxPyBeginAllowThreads();
27927 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27928 wxPyEndAllowThreads(__tstate);
27929 if (PyErr_Occurred()) SWIG_fail;
27930 }
27931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27932 return resultobj;
27933 fail:
27934 return NULL;
27935 }
27936
27937
27938 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27939 PyObject *resultobj = 0;
27940 wxListEvent *arg1 = (wxListEvent *) 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,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27950 if (!SWIG_IsOK(res1)) {
27951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27952 }
27953 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27954 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27955 if (!SWIG_IsOK(ecode2)) {
27956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27957 }
27958 arg2 = static_cast< int >(val2);
27959 if (arg1) (arg1)->m_code = arg2;
27960
27961 resultobj = SWIG_Py_Void();
27962 return resultobj;
27963 fail:
27964 return NULL;
27965 }
27966
27967
27968 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27969 PyObject *resultobj = 0;
27970 wxListEvent *arg1 = (wxListEvent *) 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_wxListEvent, 0 | 0 );
27979 if (!SWIG_IsOK(res1)) {
27980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27981 }
27982 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27983 result = (int) ((arg1)->m_code);
27984 resultobj = SWIG_From_int(static_cast< int >(result));
27985 return resultobj;
27986 fail:
27987 return NULL;
27988 }
27989
27990
27991 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27992 PyObject *resultobj = 0;
27993 wxListEvent *arg1 = (wxListEvent *) 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,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28003 if (!SWIG_IsOK(res1)) {
28004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28005 }
28006 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28007 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28008 if (!SWIG_IsOK(ecode2)) {
28009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28010 }
28011 arg2 = static_cast< long >(val2);
28012 if (arg1) (arg1)->m_oldItemIndex = arg2;
28013
28014 resultobj = SWIG_Py_Void();
28015 return resultobj;
28016 fail:
28017 return NULL;
28018 }
28019
28020
28021 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28022 PyObject *resultobj = 0;
28023 wxListEvent *arg1 = (wxListEvent *) 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_wxListEvent, 0 | 0 );
28032 if (!SWIG_IsOK(res1)) {
28033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28034 }
28035 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28036 result = (long) ((arg1)->m_oldItemIndex);
28037 resultobj = SWIG_From_long(static_cast< long >(result));
28038 return resultobj;
28039 fail:
28040 return NULL;
28041 }
28042
28043
28044 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28045 PyObject *resultobj = 0;
28046 wxListEvent *arg1 = (wxListEvent *) 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,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28056 if (!SWIG_IsOK(res1)) {
28057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28058 }
28059 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28060 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28061 if (!SWIG_IsOK(ecode2)) {
28062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28063 }
28064 arg2 = static_cast< long >(val2);
28065 if (arg1) (arg1)->m_itemIndex = arg2;
28066
28067 resultobj = SWIG_Py_Void();
28068 return resultobj;
28069 fail:
28070 return NULL;
28071 }
28072
28073
28074 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28075 PyObject *resultobj = 0;
28076 wxListEvent *arg1 = (wxListEvent *) 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_wxListEvent, 0 | 0 );
28085 if (!SWIG_IsOK(res1)) {
28086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28087 }
28088 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28089 result = (long) ((arg1)->m_itemIndex);
28090 resultobj = SWIG_From_long(static_cast< long >(result));
28091 return resultobj;
28092 fail:
28093 return NULL;
28094 }
28095
28096
28097 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28098 PyObject *resultobj = 0;
28099 wxListEvent *arg1 = (wxListEvent *) 0 ;
28100 int arg2 ;
28101 void *argp1 = 0 ;
28102 int res1 = 0 ;
28103 int val2 ;
28104 int ecode2 = 0 ;
28105 PyObject *swig_obj[2] ;
28106
28107 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28109 if (!SWIG_IsOK(res1)) {
28110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28111 }
28112 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28113 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28114 if (!SWIG_IsOK(ecode2)) {
28115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28116 }
28117 arg2 = static_cast< int >(val2);
28118 if (arg1) (arg1)->m_col = arg2;
28119
28120 resultobj = SWIG_Py_Void();
28121 return resultobj;
28122 fail:
28123 return NULL;
28124 }
28125
28126
28127 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28128 PyObject *resultobj = 0;
28129 wxListEvent *arg1 = (wxListEvent *) 0 ;
28130 int result;
28131 void *argp1 = 0 ;
28132 int res1 = 0 ;
28133 PyObject *swig_obj[1] ;
28134
28135 if (!args) SWIG_fail;
28136 swig_obj[0] = args;
28137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28138 if (!SWIG_IsOK(res1)) {
28139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28140 }
28141 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28142 result = (int) ((arg1)->m_col);
28143 resultobj = SWIG_From_int(static_cast< int >(result));
28144 return resultobj;
28145 fail:
28146 return NULL;
28147 }
28148
28149
28150 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28151 PyObject *resultobj = 0;
28152 wxListEvent *arg1 = (wxListEvent *) 0 ;
28153 wxPoint *arg2 = (wxPoint *) 0 ;
28154 void *argp1 = 0 ;
28155 int res1 = 0 ;
28156 void *argp2 = 0 ;
28157 int res2 = 0 ;
28158 PyObject *swig_obj[2] ;
28159
28160 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28162 if (!SWIG_IsOK(res1)) {
28163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28164 }
28165 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28166 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28167 if (!SWIG_IsOK(res2)) {
28168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28169 }
28170 arg2 = reinterpret_cast< wxPoint * >(argp2);
28171 if (arg1) (arg1)->m_pointDrag = *arg2;
28172
28173 resultobj = SWIG_Py_Void();
28174 return resultobj;
28175 fail:
28176 return NULL;
28177 }
28178
28179
28180 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28181 PyObject *resultobj = 0;
28182 wxListEvent *arg1 = (wxListEvent *) 0 ;
28183 wxPoint *result = 0 ;
28184 void *argp1 = 0 ;
28185 int res1 = 0 ;
28186 PyObject *swig_obj[1] ;
28187
28188 if (!args) SWIG_fail;
28189 swig_obj[0] = args;
28190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28191 if (!SWIG_IsOK(res1)) {
28192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28193 }
28194 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28195 result = (wxPoint *)& ((arg1)->m_pointDrag);
28196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28197 return resultobj;
28198 fail:
28199 return NULL;
28200 }
28201
28202
28203 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28204 PyObject *resultobj = 0;
28205 wxListEvent *arg1 = (wxListEvent *) 0 ;
28206 wxListItem *result = 0 ;
28207 void *argp1 = 0 ;
28208 int res1 = 0 ;
28209 PyObject *swig_obj[1] ;
28210
28211 if (!args) SWIG_fail;
28212 swig_obj[0] = args;
28213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28214 if (!SWIG_IsOK(res1)) {
28215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28216 }
28217 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28218 result = (wxListItem *)& ((arg1)->m_item);
28219 {
28220 resultobj = wxPyMake_wxObject(result, (bool)0);
28221 }
28222 return resultobj;
28223 fail:
28224 return NULL;
28225 }
28226
28227
28228 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28229 PyObject *resultobj = 0;
28230 wxListEvent *arg1 = (wxListEvent *) 0 ;
28231 int result;
28232 void *argp1 = 0 ;
28233 int res1 = 0 ;
28234 PyObject *swig_obj[1] ;
28235
28236 if (!args) SWIG_fail;
28237 swig_obj[0] = args;
28238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28239 if (!SWIG_IsOK(res1)) {
28240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28241 }
28242 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28243 {
28244 PyThreadState* __tstate = wxPyBeginAllowThreads();
28245 result = (int)(arg1)->GetKeyCode();
28246 wxPyEndAllowThreads(__tstate);
28247 if (PyErr_Occurred()) SWIG_fail;
28248 }
28249 resultobj = SWIG_From_int(static_cast< int >(result));
28250 return resultobj;
28251 fail:
28252 return NULL;
28253 }
28254
28255
28256 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28257 PyObject *resultobj = 0;
28258 wxListEvent *arg1 = (wxListEvent *) 0 ;
28259 long result;
28260 void *argp1 = 0 ;
28261 int res1 = 0 ;
28262 PyObject *swig_obj[1] ;
28263
28264 if (!args) SWIG_fail;
28265 swig_obj[0] = args;
28266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28267 if (!SWIG_IsOK(res1)) {
28268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28269 }
28270 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28271 {
28272 PyThreadState* __tstate = wxPyBeginAllowThreads();
28273 result = (long)(arg1)->GetIndex();
28274 wxPyEndAllowThreads(__tstate);
28275 if (PyErr_Occurred()) SWIG_fail;
28276 }
28277 resultobj = SWIG_From_long(static_cast< long >(result));
28278 return resultobj;
28279 fail:
28280 return NULL;
28281 }
28282
28283
28284 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28285 PyObject *resultobj = 0;
28286 wxListEvent *arg1 = (wxListEvent *) 0 ;
28287 int result;
28288 void *argp1 = 0 ;
28289 int res1 = 0 ;
28290 PyObject *swig_obj[1] ;
28291
28292 if (!args) SWIG_fail;
28293 swig_obj[0] = args;
28294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28295 if (!SWIG_IsOK(res1)) {
28296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28297 }
28298 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28299 {
28300 PyThreadState* __tstate = wxPyBeginAllowThreads();
28301 result = (int)(arg1)->GetColumn();
28302 wxPyEndAllowThreads(__tstate);
28303 if (PyErr_Occurred()) SWIG_fail;
28304 }
28305 resultobj = SWIG_From_int(static_cast< int >(result));
28306 return resultobj;
28307 fail:
28308 return NULL;
28309 }
28310
28311
28312 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28313 PyObject *resultobj = 0;
28314 wxListEvent *arg1 = (wxListEvent *) 0 ;
28315 wxPoint result;
28316 void *argp1 = 0 ;
28317 int res1 = 0 ;
28318 PyObject *swig_obj[1] ;
28319
28320 if (!args) SWIG_fail;
28321 swig_obj[0] = args;
28322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28323 if (!SWIG_IsOK(res1)) {
28324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28325 }
28326 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28327 {
28328 PyThreadState* __tstate = wxPyBeginAllowThreads();
28329 result = (arg1)->GetPoint();
28330 wxPyEndAllowThreads(__tstate);
28331 if (PyErr_Occurred()) SWIG_fail;
28332 }
28333 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28334 return resultobj;
28335 fail:
28336 return NULL;
28337 }
28338
28339
28340 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28341 PyObject *resultobj = 0;
28342 wxListEvent *arg1 = (wxListEvent *) 0 ;
28343 wxString *result = 0 ;
28344 void *argp1 = 0 ;
28345 int res1 = 0 ;
28346 PyObject *swig_obj[1] ;
28347
28348 if (!args) SWIG_fail;
28349 swig_obj[0] = args;
28350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28351 if (!SWIG_IsOK(res1)) {
28352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28353 }
28354 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28355 {
28356 PyThreadState* __tstate = wxPyBeginAllowThreads();
28357 {
28358 wxString const &_result_ref = (arg1)->GetLabel();
28359 result = (wxString *) &_result_ref;
28360 }
28361 wxPyEndAllowThreads(__tstate);
28362 if (PyErr_Occurred()) SWIG_fail;
28363 }
28364 {
28365 #if wxUSE_UNICODE
28366 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28367 #else
28368 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28369 #endif
28370 }
28371 return resultobj;
28372 fail:
28373 return NULL;
28374 }
28375
28376
28377 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28378 PyObject *resultobj = 0;
28379 wxListEvent *arg1 = (wxListEvent *) 0 ;
28380 wxString *result = 0 ;
28381 void *argp1 = 0 ;
28382 int res1 = 0 ;
28383 PyObject *swig_obj[1] ;
28384
28385 if (!args) SWIG_fail;
28386 swig_obj[0] = args;
28387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28388 if (!SWIG_IsOK(res1)) {
28389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28390 }
28391 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28392 {
28393 PyThreadState* __tstate = wxPyBeginAllowThreads();
28394 {
28395 wxString const &_result_ref = (arg1)->GetText();
28396 result = (wxString *) &_result_ref;
28397 }
28398 wxPyEndAllowThreads(__tstate);
28399 if (PyErr_Occurred()) SWIG_fail;
28400 }
28401 {
28402 #if wxUSE_UNICODE
28403 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28404 #else
28405 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28406 #endif
28407 }
28408 return resultobj;
28409 fail:
28410 return NULL;
28411 }
28412
28413
28414 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28415 PyObject *resultobj = 0;
28416 wxListEvent *arg1 = (wxListEvent *) 0 ;
28417 int result;
28418 void *argp1 = 0 ;
28419 int res1 = 0 ;
28420 PyObject *swig_obj[1] ;
28421
28422 if (!args) SWIG_fail;
28423 swig_obj[0] = args;
28424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28425 if (!SWIG_IsOK(res1)) {
28426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28427 }
28428 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28429 {
28430 PyThreadState* __tstate = wxPyBeginAllowThreads();
28431 result = (int)(arg1)->GetImage();
28432 wxPyEndAllowThreads(__tstate);
28433 if (PyErr_Occurred()) SWIG_fail;
28434 }
28435 resultobj = SWIG_From_int(static_cast< int >(result));
28436 return resultobj;
28437 fail:
28438 return NULL;
28439 }
28440
28441
28442 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28443 PyObject *resultobj = 0;
28444 wxListEvent *arg1 = (wxListEvent *) 0 ;
28445 long result;
28446 void *argp1 = 0 ;
28447 int res1 = 0 ;
28448 PyObject *swig_obj[1] ;
28449
28450 if (!args) SWIG_fail;
28451 swig_obj[0] = args;
28452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28453 if (!SWIG_IsOK(res1)) {
28454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28455 }
28456 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28457 {
28458 PyThreadState* __tstate = wxPyBeginAllowThreads();
28459 result = (long)(arg1)->GetData();
28460 wxPyEndAllowThreads(__tstate);
28461 if (PyErr_Occurred()) SWIG_fail;
28462 }
28463 resultobj = SWIG_From_long(static_cast< long >(result));
28464 return resultobj;
28465 fail:
28466 return NULL;
28467 }
28468
28469
28470 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28471 PyObject *resultobj = 0;
28472 wxListEvent *arg1 = (wxListEvent *) 0 ;
28473 long result;
28474 void *argp1 = 0 ;
28475 int res1 = 0 ;
28476 PyObject *swig_obj[1] ;
28477
28478 if (!args) SWIG_fail;
28479 swig_obj[0] = args;
28480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28481 if (!SWIG_IsOK(res1)) {
28482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28483 }
28484 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28485 {
28486 PyThreadState* __tstate = wxPyBeginAllowThreads();
28487 result = (long)(arg1)->GetMask();
28488 wxPyEndAllowThreads(__tstate);
28489 if (PyErr_Occurred()) SWIG_fail;
28490 }
28491 resultobj = SWIG_From_long(static_cast< long >(result));
28492 return resultobj;
28493 fail:
28494 return NULL;
28495 }
28496
28497
28498 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28499 PyObject *resultobj = 0;
28500 wxListEvent *arg1 = (wxListEvent *) 0 ;
28501 wxListItem *result = 0 ;
28502 void *argp1 = 0 ;
28503 int res1 = 0 ;
28504 PyObject *swig_obj[1] ;
28505
28506 if (!args) SWIG_fail;
28507 swig_obj[0] = args;
28508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28509 if (!SWIG_IsOK(res1)) {
28510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28511 }
28512 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28513 {
28514 PyThreadState* __tstate = wxPyBeginAllowThreads();
28515 {
28516 wxListItem const &_result_ref = (arg1)->GetItem();
28517 result = (wxListItem *) &_result_ref;
28518 }
28519 wxPyEndAllowThreads(__tstate);
28520 if (PyErr_Occurred()) SWIG_fail;
28521 }
28522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28523 return resultobj;
28524 fail:
28525 return NULL;
28526 }
28527
28528
28529 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28530 PyObject *resultobj = 0;
28531 wxListEvent *arg1 = (wxListEvent *) 0 ;
28532 long result;
28533 void *argp1 = 0 ;
28534 int res1 = 0 ;
28535 PyObject *swig_obj[1] ;
28536
28537 if (!args) SWIG_fail;
28538 swig_obj[0] = args;
28539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28540 if (!SWIG_IsOK(res1)) {
28541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28542 }
28543 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28544 {
28545 PyThreadState* __tstate = wxPyBeginAllowThreads();
28546 result = (long)(arg1)->GetCacheFrom();
28547 wxPyEndAllowThreads(__tstate);
28548 if (PyErr_Occurred()) SWIG_fail;
28549 }
28550 resultobj = SWIG_From_long(static_cast< long >(result));
28551 return resultobj;
28552 fail:
28553 return NULL;
28554 }
28555
28556
28557 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28558 PyObject *resultobj = 0;
28559 wxListEvent *arg1 = (wxListEvent *) 0 ;
28560 long result;
28561 void *argp1 = 0 ;
28562 int res1 = 0 ;
28563 PyObject *swig_obj[1] ;
28564
28565 if (!args) SWIG_fail;
28566 swig_obj[0] = args;
28567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28568 if (!SWIG_IsOK(res1)) {
28569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28570 }
28571 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28572 {
28573 PyThreadState* __tstate = wxPyBeginAllowThreads();
28574 result = (long)(arg1)->GetCacheTo();
28575 wxPyEndAllowThreads(__tstate);
28576 if (PyErr_Occurred()) SWIG_fail;
28577 }
28578 resultobj = SWIG_From_long(static_cast< long >(result));
28579 return resultobj;
28580 fail:
28581 return NULL;
28582 }
28583
28584
28585 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28586 PyObject *resultobj = 0;
28587 wxListEvent *arg1 = (wxListEvent *) 0 ;
28588 bool result;
28589 void *argp1 = 0 ;
28590 int res1 = 0 ;
28591 PyObject *swig_obj[1] ;
28592
28593 if (!args) SWIG_fail;
28594 swig_obj[0] = args;
28595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28596 if (!SWIG_IsOK(res1)) {
28597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28598 }
28599 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28600 {
28601 PyThreadState* __tstate = wxPyBeginAllowThreads();
28602 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28603 wxPyEndAllowThreads(__tstate);
28604 if (PyErr_Occurred()) SWIG_fail;
28605 }
28606 {
28607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28608 }
28609 return resultobj;
28610 fail:
28611 return NULL;
28612 }
28613
28614
28615 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28616 PyObject *resultobj = 0;
28617 wxListEvent *arg1 = (wxListEvent *) 0 ;
28618 bool arg2 ;
28619 void *argp1 = 0 ;
28620 int res1 = 0 ;
28621 bool val2 ;
28622 int ecode2 = 0 ;
28623 PyObject * obj0 = 0 ;
28624 PyObject * obj1 = 0 ;
28625 char * kwnames[] = {
28626 (char *) "self",(char *) "editCancelled", NULL
28627 };
28628
28629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28631 if (!SWIG_IsOK(res1)) {
28632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28633 }
28634 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28635 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28636 if (!SWIG_IsOK(ecode2)) {
28637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28638 }
28639 arg2 = static_cast< bool >(val2);
28640 {
28641 PyThreadState* __tstate = wxPyBeginAllowThreads();
28642 (arg1)->SetEditCanceled(arg2);
28643 wxPyEndAllowThreads(__tstate);
28644 if (PyErr_Occurred()) SWIG_fail;
28645 }
28646 resultobj = SWIG_Py_Void();
28647 return resultobj;
28648 fail:
28649 return NULL;
28650 }
28651
28652
28653 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28654 PyObject *obj;
28655 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28656 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28657 return SWIG_Py_Void();
28658 }
28659
28660 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28661 return SWIG_Python_InitShadowInstance(args);
28662 }
28663
28664 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28665 PyObject *resultobj = 0;
28666 wxWindow *arg1 = (wxWindow *) 0 ;
28667 int arg2 = (int) -1 ;
28668 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28669 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28670 wxSize const &arg4_defvalue = wxDefaultSize ;
28671 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28672 long arg5 = (long) wxLC_ICON ;
28673 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28674 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28675 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28676 wxString *arg7 = (wxString *) &arg7_defvalue ;
28677 wxPyListCtrl *result = 0 ;
28678 void *argp1 = 0 ;
28679 int res1 = 0 ;
28680 int val2 ;
28681 int ecode2 = 0 ;
28682 wxPoint temp3 ;
28683 wxSize temp4 ;
28684 long val5 ;
28685 int ecode5 = 0 ;
28686 void *argp6 = 0 ;
28687 int res6 = 0 ;
28688 bool temp7 = false ;
28689 PyObject * obj0 = 0 ;
28690 PyObject * obj1 = 0 ;
28691 PyObject * obj2 = 0 ;
28692 PyObject * obj3 = 0 ;
28693 PyObject * obj4 = 0 ;
28694 PyObject * obj5 = 0 ;
28695 PyObject * obj6 = 0 ;
28696 char * kwnames[] = {
28697 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28698 };
28699
28700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28702 if (!SWIG_IsOK(res1)) {
28703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28704 }
28705 arg1 = reinterpret_cast< wxWindow * >(argp1);
28706 if (obj1) {
28707 ecode2 = SWIG_AsVal_int(obj1, &val2);
28708 if (!SWIG_IsOK(ecode2)) {
28709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28710 }
28711 arg2 = static_cast< int >(val2);
28712 }
28713 if (obj2) {
28714 {
28715 arg3 = &temp3;
28716 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28717 }
28718 }
28719 if (obj3) {
28720 {
28721 arg4 = &temp4;
28722 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28723 }
28724 }
28725 if (obj4) {
28726 ecode5 = SWIG_AsVal_long(obj4, &val5);
28727 if (!SWIG_IsOK(ecode5)) {
28728 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28729 }
28730 arg5 = static_cast< long >(val5);
28731 }
28732 if (obj5) {
28733 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28734 if (!SWIG_IsOK(res6)) {
28735 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28736 }
28737 if (!argp6) {
28738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28739 }
28740 arg6 = reinterpret_cast< wxValidator * >(argp6);
28741 }
28742 if (obj6) {
28743 {
28744 arg7 = wxString_in_helper(obj6);
28745 if (arg7 == NULL) SWIG_fail;
28746 temp7 = true;
28747 }
28748 }
28749 {
28750 if (!wxPyCheckForApp()) SWIG_fail;
28751 PyThreadState* __tstate = wxPyBeginAllowThreads();
28752 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28753 wxPyEndAllowThreads(__tstate);
28754 if (PyErr_Occurred()) SWIG_fail;
28755 }
28756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28757 {
28758 if (temp7)
28759 delete arg7;
28760 }
28761 return resultobj;
28762 fail:
28763 {
28764 if (temp7)
28765 delete arg7;
28766 }
28767 return NULL;
28768 }
28769
28770
28771 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28772 PyObject *resultobj = 0;
28773 wxPyListCtrl *result = 0 ;
28774
28775 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28776 {
28777 if (!wxPyCheckForApp()) SWIG_fail;
28778 PyThreadState* __tstate = wxPyBeginAllowThreads();
28779 result = (wxPyListCtrl *)new wxPyListCtrl();
28780 wxPyEndAllowThreads(__tstate);
28781 if (PyErr_Occurred()) SWIG_fail;
28782 }
28783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28784 return resultobj;
28785 fail:
28786 return NULL;
28787 }
28788
28789
28790 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28791 PyObject *resultobj = 0;
28792 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28793 wxWindow *arg2 = (wxWindow *) 0 ;
28794 int arg3 = (int) -1 ;
28795 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28796 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28797 wxSize const &arg5_defvalue = wxDefaultSize ;
28798 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28799 long arg6 = (long) wxLC_ICON ;
28800 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28801 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28802 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28803 wxString *arg8 = (wxString *) &arg8_defvalue ;
28804 bool result;
28805 void *argp1 = 0 ;
28806 int res1 = 0 ;
28807 void *argp2 = 0 ;
28808 int res2 = 0 ;
28809 int val3 ;
28810 int ecode3 = 0 ;
28811 wxPoint temp4 ;
28812 wxSize temp5 ;
28813 long val6 ;
28814 int ecode6 = 0 ;
28815 void *argp7 = 0 ;
28816 int res7 = 0 ;
28817 bool temp8 = false ;
28818 PyObject * obj0 = 0 ;
28819 PyObject * obj1 = 0 ;
28820 PyObject * obj2 = 0 ;
28821 PyObject * obj3 = 0 ;
28822 PyObject * obj4 = 0 ;
28823 PyObject * obj5 = 0 ;
28824 PyObject * obj6 = 0 ;
28825 PyObject * obj7 = 0 ;
28826 char * kwnames[] = {
28827 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28828 };
28829
28830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28832 if (!SWIG_IsOK(res1)) {
28833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28834 }
28835 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28836 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28837 if (!SWIG_IsOK(res2)) {
28838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28839 }
28840 arg2 = reinterpret_cast< wxWindow * >(argp2);
28841 if (obj2) {
28842 ecode3 = SWIG_AsVal_int(obj2, &val3);
28843 if (!SWIG_IsOK(ecode3)) {
28844 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28845 }
28846 arg3 = static_cast< int >(val3);
28847 }
28848 if (obj3) {
28849 {
28850 arg4 = &temp4;
28851 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28852 }
28853 }
28854 if (obj4) {
28855 {
28856 arg5 = &temp5;
28857 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28858 }
28859 }
28860 if (obj5) {
28861 ecode6 = SWIG_AsVal_long(obj5, &val6);
28862 if (!SWIG_IsOK(ecode6)) {
28863 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28864 }
28865 arg6 = static_cast< long >(val6);
28866 }
28867 if (obj6) {
28868 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28869 if (!SWIG_IsOK(res7)) {
28870 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28871 }
28872 if (!argp7) {
28873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28874 }
28875 arg7 = reinterpret_cast< wxValidator * >(argp7);
28876 }
28877 if (obj7) {
28878 {
28879 arg8 = wxString_in_helper(obj7);
28880 if (arg8 == NULL) SWIG_fail;
28881 temp8 = true;
28882 }
28883 }
28884 {
28885 PyThreadState* __tstate = wxPyBeginAllowThreads();
28886 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28887 wxPyEndAllowThreads(__tstate);
28888 if (PyErr_Occurred()) SWIG_fail;
28889 }
28890 {
28891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28892 }
28893 {
28894 if (temp8)
28895 delete arg8;
28896 }
28897 return resultobj;
28898 fail:
28899 {
28900 if (temp8)
28901 delete arg8;
28902 }
28903 return NULL;
28904 }
28905
28906
28907 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28908 PyObject *resultobj = 0;
28909 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28910 PyObject *arg2 = (PyObject *) 0 ;
28911 PyObject *arg3 = (PyObject *) 0 ;
28912 void *argp1 = 0 ;
28913 int res1 = 0 ;
28914 PyObject * obj0 = 0 ;
28915 PyObject * obj1 = 0 ;
28916 PyObject * obj2 = 0 ;
28917 char * kwnames[] = {
28918 (char *) "self",(char *) "self",(char *) "_class", NULL
28919 };
28920
28921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28923 if (!SWIG_IsOK(res1)) {
28924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28925 }
28926 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28927 arg2 = obj1;
28928 arg3 = obj2;
28929 {
28930 PyThreadState* __tstate = wxPyBeginAllowThreads();
28931 (arg1)->_setCallbackInfo(arg2,arg3);
28932 wxPyEndAllowThreads(__tstate);
28933 if (PyErr_Occurred()) SWIG_fail;
28934 }
28935 resultobj = SWIG_Py_Void();
28936 return resultobj;
28937 fail:
28938 return NULL;
28939 }
28940
28941
28942 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28943 PyObject *resultobj = 0;
28944 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28945 int arg2 ;
28946 wxListItem *result = 0 ;
28947 void *argp1 = 0 ;
28948 int res1 = 0 ;
28949 int val2 ;
28950 int ecode2 = 0 ;
28951 PyObject * obj0 = 0 ;
28952 PyObject * obj1 = 0 ;
28953 char * kwnames[] = {
28954 (char *) "self",(char *) "col", NULL
28955 };
28956
28957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28959 if (!SWIG_IsOK(res1)) {
28960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28961 }
28962 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28963 ecode2 = SWIG_AsVal_int(obj1, &val2);
28964 if (!SWIG_IsOK(ecode2)) {
28965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28966 }
28967 arg2 = static_cast< int >(val2);
28968 {
28969 PyThreadState* __tstate = wxPyBeginAllowThreads();
28970 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28971 wxPyEndAllowThreads(__tstate);
28972 if (PyErr_Occurred()) SWIG_fail;
28973 }
28974 {
28975 resultobj = wxPyMake_wxObject(result, (bool)0);
28976 }
28977 return resultobj;
28978 fail:
28979 return NULL;
28980 }
28981
28982
28983 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28984 PyObject *resultobj = 0;
28985 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28986 int arg2 ;
28987 wxListItem *arg3 = 0 ;
28988 bool result;
28989 void *argp1 = 0 ;
28990 int res1 = 0 ;
28991 int val2 ;
28992 int ecode2 = 0 ;
28993 void *argp3 = 0 ;
28994 int res3 = 0 ;
28995 PyObject * obj0 = 0 ;
28996 PyObject * obj1 = 0 ;
28997 PyObject * obj2 = 0 ;
28998 char * kwnames[] = {
28999 (char *) "self",(char *) "col",(char *) "item", NULL
29000 };
29001
29002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29004 if (!SWIG_IsOK(res1)) {
29005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29006 }
29007 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29008 ecode2 = SWIG_AsVal_int(obj1, &val2);
29009 if (!SWIG_IsOK(ecode2)) {
29010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29011 }
29012 arg2 = static_cast< int >(val2);
29013 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29014 if (!SWIG_IsOK(res3)) {
29015 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29016 }
29017 if (!argp3) {
29018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29019 }
29020 arg3 = reinterpret_cast< wxListItem * >(argp3);
29021 {
29022 PyThreadState* __tstate = wxPyBeginAllowThreads();
29023 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29024 wxPyEndAllowThreads(__tstate);
29025 if (PyErr_Occurred()) SWIG_fail;
29026 }
29027 {
29028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29029 }
29030 return resultobj;
29031 fail:
29032 return NULL;
29033 }
29034
29035
29036 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29037 PyObject *resultobj = 0;
29038 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29039 int arg2 ;
29040 int result;
29041 void *argp1 = 0 ;
29042 int res1 = 0 ;
29043 int val2 ;
29044 int ecode2 = 0 ;
29045 PyObject * obj0 = 0 ;
29046 PyObject * obj1 = 0 ;
29047 char * kwnames[] = {
29048 (char *) "self",(char *) "col", NULL
29049 };
29050
29051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29053 if (!SWIG_IsOK(res1)) {
29054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29055 }
29056 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29057 ecode2 = SWIG_AsVal_int(obj1, &val2);
29058 if (!SWIG_IsOK(ecode2)) {
29059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29060 }
29061 arg2 = static_cast< int >(val2);
29062 {
29063 PyThreadState* __tstate = wxPyBeginAllowThreads();
29064 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29065 wxPyEndAllowThreads(__tstate);
29066 if (PyErr_Occurred()) SWIG_fail;
29067 }
29068 resultobj = SWIG_From_int(static_cast< int >(result));
29069 return resultobj;
29070 fail:
29071 return NULL;
29072 }
29073
29074
29075 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29076 PyObject *resultobj = 0;
29077 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29078 int arg2 ;
29079 int arg3 ;
29080 bool result;
29081 void *argp1 = 0 ;
29082 int res1 = 0 ;
29083 int val2 ;
29084 int ecode2 = 0 ;
29085 int val3 ;
29086 int ecode3 = 0 ;
29087 PyObject * obj0 = 0 ;
29088 PyObject * obj1 = 0 ;
29089 PyObject * obj2 = 0 ;
29090 char * kwnames[] = {
29091 (char *) "self",(char *) "col",(char *) "width", NULL
29092 };
29093
29094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29096 if (!SWIG_IsOK(res1)) {
29097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29098 }
29099 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29100 ecode2 = SWIG_AsVal_int(obj1, &val2);
29101 if (!SWIG_IsOK(ecode2)) {
29102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29103 }
29104 arg2 = static_cast< int >(val2);
29105 ecode3 = SWIG_AsVal_int(obj2, &val3);
29106 if (!SWIG_IsOK(ecode3)) {
29107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29108 }
29109 arg3 = static_cast< int >(val3);
29110 {
29111 PyThreadState* __tstate = wxPyBeginAllowThreads();
29112 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29113 wxPyEndAllowThreads(__tstate);
29114 if (PyErr_Occurred()) SWIG_fail;
29115 }
29116 {
29117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29118 }
29119 return resultobj;
29120 fail:
29121 return NULL;
29122 }
29123
29124
29125 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29126 PyObject *resultobj = 0;
29127 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29128 int result;
29129 void *argp1 = 0 ;
29130 int res1 = 0 ;
29131 PyObject *swig_obj[1] ;
29132
29133 if (!args) SWIG_fail;
29134 swig_obj[0] = args;
29135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29136 if (!SWIG_IsOK(res1)) {
29137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29138 }
29139 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29140 {
29141 PyThreadState* __tstate = wxPyBeginAllowThreads();
29142 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29143 wxPyEndAllowThreads(__tstate);
29144 if (PyErr_Occurred()) SWIG_fail;
29145 }
29146 resultobj = SWIG_From_int(static_cast< int >(result));
29147 return resultobj;
29148 fail:
29149 return NULL;
29150 }
29151
29152
29153 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29154 PyObject *resultobj = 0;
29155 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29156 wxRect result;
29157 void *argp1 = 0 ;
29158 int res1 = 0 ;
29159 PyObject *swig_obj[1] ;
29160
29161 if (!args) SWIG_fail;
29162 swig_obj[0] = args;
29163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29164 if (!SWIG_IsOK(res1)) {
29165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29166 }
29167 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29168 {
29169 PyThreadState* __tstate = wxPyBeginAllowThreads();
29170 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29171 wxPyEndAllowThreads(__tstate);
29172 if (PyErr_Occurred()) SWIG_fail;
29173 }
29174 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29175 return resultobj;
29176 fail:
29177 return NULL;
29178 }
29179
29180
29181 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29182 PyObject *resultobj = 0;
29183 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29184 wxTextCtrl *result = 0 ;
29185 void *argp1 = 0 ;
29186 int res1 = 0 ;
29187 PyObject *swig_obj[1] ;
29188
29189 if (!args) SWIG_fail;
29190 swig_obj[0] = args;
29191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29192 if (!SWIG_IsOK(res1)) {
29193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29194 }
29195 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29196 {
29197 PyThreadState* __tstate = wxPyBeginAllowThreads();
29198 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29199 wxPyEndAllowThreads(__tstate);
29200 if (PyErr_Occurred()) SWIG_fail;
29201 }
29202 {
29203 resultobj = wxPyMake_wxObject(result, 0);
29204 }
29205 return resultobj;
29206 fail:
29207 return NULL;
29208 }
29209
29210
29211 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29212 PyObject *resultobj = 0;
29213 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29214 long arg2 ;
29215 int arg3 = (int) 0 ;
29216 wxListItem *result = 0 ;
29217 void *argp1 = 0 ;
29218 int res1 = 0 ;
29219 long val2 ;
29220 int ecode2 = 0 ;
29221 int val3 ;
29222 int ecode3 = 0 ;
29223 PyObject * obj0 = 0 ;
29224 PyObject * obj1 = 0 ;
29225 PyObject * obj2 = 0 ;
29226 char * kwnames[] = {
29227 (char *) "self",(char *) "itemId",(char *) "col", NULL
29228 };
29229
29230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29232 if (!SWIG_IsOK(res1)) {
29233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29234 }
29235 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29236 ecode2 = SWIG_AsVal_long(obj1, &val2);
29237 if (!SWIG_IsOK(ecode2)) {
29238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29239 }
29240 arg2 = static_cast< long >(val2);
29241 if (obj2) {
29242 ecode3 = SWIG_AsVal_int(obj2, &val3);
29243 if (!SWIG_IsOK(ecode3)) {
29244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29245 }
29246 arg3 = static_cast< int >(val3);
29247 }
29248 {
29249 PyThreadState* __tstate = wxPyBeginAllowThreads();
29250 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29251 wxPyEndAllowThreads(__tstate);
29252 if (PyErr_Occurred()) SWIG_fail;
29253 }
29254 {
29255 resultobj = wxPyMake_wxObject(result, (bool)0);
29256 }
29257 return resultobj;
29258 fail:
29259 return NULL;
29260 }
29261
29262
29263 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29264 PyObject *resultobj = 0;
29265 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29266 wxListItem *arg2 = 0 ;
29267 bool result;
29268 void *argp1 = 0 ;
29269 int res1 = 0 ;
29270 void *argp2 = 0 ;
29271 int res2 = 0 ;
29272 PyObject * obj0 = 0 ;
29273 PyObject * obj1 = 0 ;
29274 char * kwnames[] = {
29275 (char *) "self",(char *) "info", NULL
29276 };
29277
29278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29280 if (!SWIG_IsOK(res1)) {
29281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29282 }
29283 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29284 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29285 if (!SWIG_IsOK(res2)) {
29286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29287 }
29288 if (!argp2) {
29289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29290 }
29291 arg2 = reinterpret_cast< wxListItem * >(argp2);
29292 {
29293 PyThreadState* __tstate = wxPyBeginAllowThreads();
29294 result = (bool)(arg1)->SetItem(*arg2);
29295 wxPyEndAllowThreads(__tstate);
29296 if (PyErr_Occurred()) SWIG_fail;
29297 }
29298 {
29299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29300 }
29301 return resultobj;
29302 fail:
29303 return NULL;
29304 }
29305
29306
29307 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29308 PyObject *resultobj = 0;
29309 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29310 long arg2 ;
29311 int arg3 ;
29312 wxString *arg4 = 0 ;
29313 int arg5 = (int) -1 ;
29314 long result;
29315 void *argp1 = 0 ;
29316 int res1 = 0 ;
29317 long val2 ;
29318 int ecode2 = 0 ;
29319 int val3 ;
29320 int ecode3 = 0 ;
29321 bool temp4 = false ;
29322 int val5 ;
29323 int ecode5 = 0 ;
29324 PyObject * obj0 = 0 ;
29325 PyObject * obj1 = 0 ;
29326 PyObject * obj2 = 0 ;
29327 PyObject * obj3 = 0 ;
29328 PyObject * obj4 = 0 ;
29329 char * kwnames[] = {
29330 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29331 };
29332
29333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29335 if (!SWIG_IsOK(res1)) {
29336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29337 }
29338 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29339 ecode2 = SWIG_AsVal_long(obj1, &val2);
29340 if (!SWIG_IsOK(ecode2)) {
29341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29342 }
29343 arg2 = static_cast< long >(val2);
29344 ecode3 = SWIG_AsVal_int(obj2, &val3);
29345 if (!SWIG_IsOK(ecode3)) {
29346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29347 }
29348 arg3 = static_cast< int >(val3);
29349 {
29350 arg4 = wxString_in_helper(obj3);
29351 if (arg4 == NULL) SWIG_fail;
29352 temp4 = true;
29353 }
29354 if (obj4) {
29355 ecode5 = SWIG_AsVal_int(obj4, &val5);
29356 if (!SWIG_IsOK(ecode5)) {
29357 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29358 }
29359 arg5 = static_cast< int >(val5);
29360 }
29361 {
29362 PyThreadState* __tstate = wxPyBeginAllowThreads();
29363 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29364 wxPyEndAllowThreads(__tstate);
29365 if (PyErr_Occurred()) SWIG_fail;
29366 }
29367 resultobj = SWIG_From_long(static_cast< long >(result));
29368 {
29369 if (temp4)
29370 delete arg4;
29371 }
29372 return resultobj;
29373 fail:
29374 {
29375 if (temp4)
29376 delete arg4;
29377 }
29378 return NULL;
29379 }
29380
29381
29382 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29383 PyObject *resultobj = 0;
29384 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29385 long arg2 ;
29386 long arg3 ;
29387 int result;
29388 void *argp1 = 0 ;
29389 int res1 = 0 ;
29390 long val2 ;
29391 int ecode2 = 0 ;
29392 long val3 ;
29393 int ecode3 = 0 ;
29394 PyObject * obj0 = 0 ;
29395 PyObject * obj1 = 0 ;
29396 PyObject * obj2 = 0 ;
29397 char * kwnames[] = {
29398 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29399 };
29400
29401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29403 if (!SWIG_IsOK(res1)) {
29404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29405 }
29406 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29407 ecode2 = SWIG_AsVal_long(obj1, &val2);
29408 if (!SWIG_IsOK(ecode2)) {
29409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29410 }
29411 arg2 = static_cast< long >(val2);
29412 ecode3 = SWIG_AsVal_long(obj2, &val3);
29413 if (!SWIG_IsOK(ecode3)) {
29414 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29415 }
29416 arg3 = static_cast< long >(val3);
29417 {
29418 PyThreadState* __tstate = wxPyBeginAllowThreads();
29419 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29420 wxPyEndAllowThreads(__tstate);
29421 if (PyErr_Occurred()) SWIG_fail;
29422 }
29423 resultobj = SWIG_From_int(static_cast< int >(result));
29424 return resultobj;
29425 fail:
29426 return NULL;
29427 }
29428
29429
29430 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29431 PyObject *resultobj = 0;
29432 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29433 long arg2 ;
29434 long arg3 ;
29435 long arg4 ;
29436 bool result;
29437 void *argp1 = 0 ;
29438 int res1 = 0 ;
29439 long val2 ;
29440 int ecode2 = 0 ;
29441 long val3 ;
29442 int ecode3 = 0 ;
29443 long val4 ;
29444 int ecode4 = 0 ;
29445 PyObject * obj0 = 0 ;
29446 PyObject * obj1 = 0 ;
29447 PyObject * obj2 = 0 ;
29448 PyObject * obj3 = 0 ;
29449 char * kwnames[] = {
29450 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29451 };
29452
29453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29455 if (!SWIG_IsOK(res1)) {
29456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29457 }
29458 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29459 ecode2 = SWIG_AsVal_long(obj1, &val2);
29460 if (!SWIG_IsOK(ecode2)) {
29461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29462 }
29463 arg2 = static_cast< long >(val2);
29464 ecode3 = SWIG_AsVal_long(obj2, &val3);
29465 if (!SWIG_IsOK(ecode3)) {
29466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29467 }
29468 arg3 = static_cast< long >(val3);
29469 ecode4 = SWIG_AsVal_long(obj3, &val4);
29470 if (!SWIG_IsOK(ecode4)) {
29471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29472 }
29473 arg4 = static_cast< long >(val4);
29474 {
29475 PyThreadState* __tstate = wxPyBeginAllowThreads();
29476 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29477 wxPyEndAllowThreads(__tstate);
29478 if (PyErr_Occurred()) SWIG_fail;
29479 }
29480 {
29481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29482 }
29483 return resultobj;
29484 fail:
29485 return NULL;
29486 }
29487
29488
29489 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29490 PyObject *resultobj = 0;
29491 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29492 long arg2 ;
29493 int arg3 ;
29494 int arg4 = (int) -1 ;
29495 bool result;
29496 void *argp1 = 0 ;
29497 int res1 = 0 ;
29498 long val2 ;
29499 int ecode2 = 0 ;
29500 int val3 ;
29501 int ecode3 = 0 ;
29502 int val4 ;
29503 int ecode4 = 0 ;
29504 PyObject * obj0 = 0 ;
29505 PyObject * obj1 = 0 ;
29506 PyObject * obj2 = 0 ;
29507 PyObject * obj3 = 0 ;
29508 char * kwnames[] = {
29509 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29510 };
29511
29512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29514 if (!SWIG_IsOK(res1)) {
29515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29516 }
29517 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29518 ecode2 = SWIG_AsVal_long(obj1, &val2);
29519 if (!SWIG_IsOK(ecode2)) {
29520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29521 }
29522 arg2 = static_cast< long >(val2);
29523 ecode3 = SWIG_AsVal_int(obj2, &val3);
29524 if (!SWIG_IsOK(ecode3)) {
29525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29526 }
29527 arg3 = static_cast< int >(val3);
29528 if (obj3) {
29529 ecode4 = SWIG_AsVal_int(obj3, &val4);
29530 if (!SWIG_IsOK(ecode4)) {
29531 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29532 }
29533 arg4 = static_cast< int >(val4);
29534 }
29535 {
29536 PyThreadState* __tstate = wxPyBeginAllowThreads();
29537 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29538 wxPyEndAllowThreads(__tstate);
29539 if (PyErr_Occurred()) SWIG_fail;
29540 }
29541 {
29542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29543 }
29544 return resultobj;
29545 fail:
29546 return NULL;
29547 }
29548
29549
29550 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29551 PyObject *resultobj = 0;
29552 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29553 long arg2 ;
29554 long arg3 ;
29555 int arg4 ;
29556 bool result;
29557 void *argp1 = 0 ;
29558 int res1 = 0 ;
29559 long val2 ;
29560 int ecode2 = 0 ;
29561 long val3 ;
29562 int ecode3 = 0 ;
29563 int val4 ;
29564 int ecode4 = 0 ;
29565 PyObject * obj0 = 0 ;
29566 PyObject * obj1 = 0 ;
29567 PyObject * obj2 = 0 ;
29568 PyObject * obj3 = 0 ;
29569 char * kwnames[] = {
29570 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29571 };
29572
29573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29575 if (!SWIG_IsOK(res1)) {
29576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29577 }
29578 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29579 ecode2 = SWIG_AsVal_long(obj1, &val2);
29580 if (!SWIG_IsOK(ecode2)) {
29581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29582 }
29583 arg2 = static_cast< long >(val2);
29584 ecode3 = SWIG_AsVal_long(obj2, &val3);
29585 if (!SWIG_IsOK(ecode3)) {
29586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29587 }
29588 arg3 = static_cast< long >(val3);
29589 ecode4 = SWIG_AsVal_int(obj3, &val4);
29590 if (!SWIG_IsOK(ecode4)) {
29591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29592 }
29593 arg4 = static_cast< int >(val4);
29594 {
29595 PyThreadState* __tstate = wxPyBeginAllowThreads();
29596 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29597 wxPyEndAllowThreads(__tstate);
29598 if (PyErr_Occurred()) SWIG_fail;
29599 }
29600 {
29601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29602 }
29603 return resultobj;
29604 fail:
29605 return NULL;
29606 }
29607
29608
29609 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29610 PyObject *resultobj = 0;
29611 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29612 long arg2 ;
29613 wxString result;
29614 void *argp1 = 0 ;
29615 int res1 = 0 ;
29616 long val2 ;
29617 int ecode2 = 0 ;
29618 PyObject * obj0 = 0 ;
29619 PyObject * obj1 = 0 ;
29620 char * kwnames[] = {
29621 (char *) "self",(char *) "item", NULL
29622 };
29623
29624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29626 if (!SWIG_IsOK(res1)) {
29627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29628 }
29629 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29630 ecode2 = SWIG_AsVal_long(obj1, &val2);
29631 if (!SWIG_IsOK(ecode2)) {
29632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29633 }
29634 arg2 = static_cast< long >(val2);
29635 {
29636 PyThreadState* __tstate = wxPyBeginAllowThreads();
29637 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29638 wxPyEndAllowThreads(__tstate);
29639 if (PyErr_Occurred()) SWIG_fail;
29640 }
29641 {
29642 #if wxUSE_UNICODE
29643 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29644 #else
29645 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29646 #endif
29647 }
29648 return resultobj;
29649 fail:
29650 return NULL;
29651 }
29652
29653
29654 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29655 PyObject *resultobj = 0;
29656 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29657 long arg2 ;
29658 wxString *arg3 = 0 ;
29659 void *argp1 = 0 ;
29660 int res1 = 0 ;
29661 long val2 ;
29662 int ecode2 = 0 ;
29663 bool temp3 = false ;
29664 PyObject * obj0 = 0 ;
29665 PyObject * obj1 = 0 ;
29666 PyObject * obj2 = 0 ;
29667 char * kwnames[] = {
29668 (char *) "self",(char *) "item",(char *) "str", NULL
29669 };
29670
29671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29673 if (!SWIG_IsOK(res1)) {
29674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29675 }
29676 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29677 ecode2 = SWIG_AsVal_long(obj1, &val2);
29678 if (!SWIG_IsOK(ecode2)) {
29679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29680 }
29681 arg2 = static_cast< long >(val2);
29682 {
29683 arg3 = wxString_in_helper(obj2);
29684 if (arg3 == NULL) SWIG_fail;
29685 temp3 = true;
29686 }
29687 {
29688 PyThreadState* __tstate = wxPyBeginAllowThreads();
29689 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29690 wxPyEndAllowThreads(__tstate);
29691 if (PyErr_Occurred()) SWIG_fail;
29692 }
29693 resultobj = SWIG_Py_Void();
29694 {
29695 if (temp3)
29696 delete arg3;
29697 }
29698 return resultobj;
29699 fail:
29700 {
29701 if (temp3)
29702 delete arg3;
29703 }
29704 return NULL;
29705 }
29706
29707
29708 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29709 PyObject *resultobj = 0;
29710 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29711 long arg2 ;
29712 long result;
29713 void *argp1 = 0 ;
29714 int res1 = 0 ;
29715 long val2 ;
29716 int ecode2 = 0 ;
29717 PyObject * obj0 = 0 ;
29718 PyObject * obj1 = 0 ;
29719 char * kwnames[] = {
29720 (char *) "self",(char *) "item", NULL
29721 };
29722
29723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29725 if (!SWIG_IsOK(res1)) {
29726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29727 }
29728 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29729 ecode2 = SWIG_AsVal_long(obj1, &val2);
29730 if (!SWIG_IsOK(ecode2)) {
29731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29732 }
29733 arg2 = static_cast< long >(val2);
29734 {
29735 PyThreadState* __tstate = wxPyBeginAllowThreads();
29736 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29737 wxPyEndAllowThreads(__tstate);
29738 if (PyErr_Occurred()) SWIG_fail;
29739 }
29740 resultobj = SWIG_From_long(static_cast< long >(result));
29741 return resultobj;
29742 fail:
29743 return NULL;
29744 }
29745
29746
29747 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29748 PyObject *resultobj = 0;
29749 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29750 long arg2 ;
29751 long arg3 ;
29752 bool result;
29753 void *argp1 = 0 ;
29754 int res1 = 0 ;
29755 long val2 ;
29756 int ecode2 = 0 ;
29757 long val3 ;
29758 int ecode3 = 0 ;
29759 PyObject * obj0 = 0 ;
29760 PyObject * obj1 = 0 ;
29761 PyObject * obj2 = 0 ;
29762 char * kwnames[] = {
29763 (char *) "self",(char *) "item",(char *) "data", NULL
29764 };
29765
29766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29768 if (!SWIG_IsOK(res1)) {
29769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29770 }
29771 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29772 ecode2 = SWIG_AsVal_long(obj1, &val2);
29773 if (!SWIG_IsOK(ecode2)) {
29774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29775 }
29776 arg2 = static_cast< long >(val2);
29777 ecode3 = SWIG_AsVal_long(obj2, &val3);
29778 if (!SWIG_IsOK(ecode3)) {
29779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29780 }
29781 arg3 = static_cast< long >(val3);
29782 {
29783 PyThreadState* __tstate = wxPyBeginAllowThreads();
29784 result = (bool)(arg1)->SetItemData(arg2,arg3);
29785 wxPyEndAllowThreads(__tstate);
29786 if (PyErr_Occurred()) SWIG_fail;
29787 }
29788 {
29789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29790 }
29791 return resultobj;
29792 fail:
29793 return NULL;
29794 }
29795
29796
29797 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29798 PyObject *resultobj = 0;
29799 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29800 long arg2 ;
29801 wxPoint result;
29802 void *argp1 = 0 ;
29803 int res1 = 0 ;
29804 long val2 ;
29805 int ecode2 = 0 ;
29806 PyObject * obj0 = 0 ;
29807 PyObject * obj1 = 0 ;
29808 char * kwnames[] = {
29809 (char *) "self",(char *) "item", NULL
29810 };
29811
29812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29814 if (!SWIG_IsOK(res1)) {
29815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29816 }
29817 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29818 ecode2 = SWIG_AsVal_long(obj1, &val2);
29819 if (!SWIG_IsOK(ecode2)) {
29820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29821 }
29822 arg2 = static_cast< long >(val2);
29823 {
29824 PyThreadState* __tstate = wxPyBeginAllowThreads();
29825 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29826 wxPyEndAllowThreads(__tstate);
29827 if (PyErr_Occurred()) SWIG_fail;
29828 }
29829 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29830 return resultobj;
29831 fail:
29832 return NULL;
29833 }
29834
29835
29836 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29837 PyObject *resultobj = 0;
29838 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29839 long arg2 ;
29840 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29841 wxRect result;
29842 void *argp1 = 0 ;
29843 int res1 = 0 ;
29844 long val2 ;
29845 int ecode2 = 0 ;
29846 int val3 ;
29847 int ecode3 = 0 ;
29848 PyObject * obj0 = 0 ;
29849 PyObject * obj1 = 0 ;
29850 PyObject * obj2 = 0 ;
29851 char * kwnames[] = {
29852 (char *) "self",(char *) "item",(char *) "code", NULL
29853 };
29854
29855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29857 if (!SWIG_IsOK(res1)) {
29858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29859 }
29860 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29861 ecode2 = SWIG_AsVal_long(obj1, &val2);
29862 if (!SWIG_IsOK(ecode2)) {
29863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29864 }
29865 arg2 = static_cast< long >(val2);
29866 if (obj2) {
29867 ecode3 = SWIG_AsVal_int(obj2, &val3);
29868 if (!SWIG_IsOK(ecode3)) {
29869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29870 }
29871 arg3 = static_cast< int >(val3);
29872 }
29873 {
29874 PyThreadState* __tstate = wxPyBeginAllowThreads();
29875 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29876 wxPyEndAllowThreads(__tstate);
29877 if (PyErr_Occurred()) SWIG_fail;
29878 }
29879 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29880 return resultobj;
29881 fail:
29882 return NULL;
29883 }
29884
29885
29886 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29887 PyObject *resultobj = 0;
29888 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29889 long arg2 ;
29890 wxPoint *arg3 = 0 ;
29891 bool result;
29892 void *argp1 = 0 ;
29893 int res1 = 0 ;
29894 long val2 ;
29895 int ecode2 = 0 ;
29896 wxPoint temp3 ;
29897 PyObject * obj0 = 0 ;
29898 PyObject * obj1 = 0 ;
29899 PyObject * obj2 = 0 ;
29900 char * kwnames[] = {
29901 (char *) "self",(char *) "item",(char *) "pos", NULL
29902 };
29903
29904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29906 if (!SWIG_IsOK(res1)) {
29907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29908 }
29909 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29910 ecode2 = SWIG_AsVal_long(obj1, &val2);
29911 if (!SWIG_IsOK(ecode2)) {
29912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29913 }
29914 arg2 = static_cast< long >(val2);
29915 {
29916 arg3 = &temp3;
29917 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29918 }
29919 {
29920 PyThreadState* __tstate = wxPyBeginAllowThreads();
29921 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29922 wxPyEndAllowThreads(__tstate);
29923 if (PyErr_Occurred()) SWIG_fail;
29924 }
29925 {
29926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29927 }
29928 return resultobj;
29929 fail:
29930 return NULL;
29931 }
29932
29933
29934 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29935 PyObject *resultobj = 0;
29936 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29937 int result;
29938 void *argp1 = 0 ;
29939 int res1 = 0 ;
29940 PyObject *swig_obj[1] ;
29941
29942 if (!args) SWIG_fail;
29943 swig_obj[0] = args;
29944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29945 if (!SWIG_IsOK(res1)) {
29946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29947 }
29948 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29949 {
29950 PyThreadState* __tstate = wxPyBeginAllowThreads();
29951 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29952 wxPyEndAllowThreads(__tstate);
29953 if (PyErr_Occurred()) SWIG_fail;
29954 }
29955 resultobj = SWIG_From_int(static_cast< int >(result));
29956 return resultobj;
29957 fail:
29958 return NULL;
29959 }
29960
29961
29962 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29963 PyObject *resultobj = 0;
29964 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29965 int result;
29966 void *argp1 = 0 ;
29967 int res1 = 0 ;
29968 PyObject *swig_obj[1] ;
29969
29970 if (!args) SWIG_fail;
29971 swig_obj[0] = args;
29972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29973 if (!SWIG_IsOK(res1)) {
29974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29975 }
29976 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29977 {
29978 PyThreadState* __tstate = wxPyBeginAllowThreads();
29979 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29980 wxPyEndAllowThreads(__tstate);
29981 if (PyErr_Occurred()) SWIG_fail;
29982 }
29983 resultobj = SWIG_From_int(static_cast< int >(result));
29984 return resultobj;
29985 fail:
29986 return NULL;
29987 }
29988
29989
29990 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29991 PyObject *resultobj = 0;
29992 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29993 wxSize result;
29994 void *argp1 = 0 ;
29995 int res1 = 0 ;
29996 PyObject *swig_obj[1] ;
29997
29998 if (!args) SWIG_fail;
29999 swig_obj[0] = args;
30000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30001 if (!SWIG_IsOK(res1)) {
30002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30003 }
30004 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30005 {
30006 PyThreadState* __tstate = wxPyBeginAllowThreads();
30007 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30008 wxPyEndAllowThreads(__tstate);
30009 if (PyErr_Occurred()) SWIG_fail;
30010 }
30011 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30012 return resultobj;
30013 fail:
30014 return NULL;
30015 }
30016
30017
30018 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30019 PyObject *resultobj = 0;
30020 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30021 int result;
30022 void *argp1 = 0 ;
30023 int res1 = 0 ;
30024 PyObject *swig_obj[1] ;
30025
30026 if (!args) SWIG_fail;
30027 swig_obj[0] = args;
30028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30029 if (!SWIG_IsOK(res1)) {
30030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30031 }
30032 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30033 {
30034 PyThreadState* __tstate = wxPyBeginAllowThreads();
30035 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30036 wxPyEndAllowThreads(__tstate);
30037 if (PyErr_Occurred()) SWIG_fail;
30038 }
30039 resultobj = SWIG_From_int(static_cast< int >(result));
30040 return resultobj;
30041 fail:
30042 return NULL;
30043 }
30044
30045
30046 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30047 PyObject *resultobj = 0;
30048 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30049 wxColour result;
30050 void *argp1 = 0 ;
30051 int res1 = 0 ;
30052 PyObject *swig_obj[1] ;
30053
30054 if (!args) SWIG_fail;
30055 swig_obj[0] = args;
30056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30057 if (!SWIG_IsOK(res1)) {
30058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30059 }
30060 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30061 {
30062 PyThreadState* __tstate = wxPyBeginAllowThreads();
30063 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30064 wxPyEndAllowThreads(__tstate);
30065 if (PyErr_Occurred()) SWIG_fail;
30066 }
30067 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30068 return resultobj;
30069 fail:
30070 return NULL;
30071 }
30072
30073
30074 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30075 PyObject *resultobj = 0;
30076 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30077 wxColour *arg2 = 0 ;
30078 void *argp1 = 0 ;
30079 int res1 = 0 ;
30080 wxColour temp2 ;
30081 PyObject * obj0 = 0 ;
30082 PyObject * obj1 = 0 ;
30083 char * kwnames[] = {
30084 (char *) "self",(char *) "col", NULL
30085 };
30086
30087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30089 if (!SWIG_IsOK(res1)) {
30090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30091 }
30092 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30093 {
30094 arg2 = &temp2;
30095 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30096 }
30097 {
30098 PyThreadState* __tstate = wxPyBeginAllowThreads();
30099 (arg1)->SetTextColour((wxColour const &)*arg2);
30100 wxPyEndAllowThreads(__tstate);
30101 if (PyErr_Occurred()) SWIG_fail;
30102 }
30103 resultobj = SWIG_Py_Void();
30104 return resultobj;
30105 fail:
30106 return NULL;
30107 }
30108
30109
30110 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30111 PyObject *resultobj = 0;
30112 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30113 long result;
30114 void *argp1 = 0 ;
30115 int res1 = 0 ;
30116 PyObject *swig_obj[1] ;
30117
30118 if (!args) SWIG_fail;
30119 swig_obj[0] = args;
30120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30121 if (!SWIG_IsOK(res1)) {
30122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30123 }
30124 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30125 {
30126 PyThreadState* __tstate = wxPyBeginAllowThreads();
30127 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30128 wxPyEndAllowThreads(__tstate);
30129 if (PyErr_Occurred()) SWIG_fail;
30130 }
30131 resultobj = SWIG_From_long(static_cast< long >(result));
30132 return resultobj;
30133 fail:
30134 return NULL;
30135 }
30136
30137
30138 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30139 PyObject *resultobj = 0;
30140 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30141 long arg2 ;
30142 bool arg3 = (bool) true ;
30143 void *argp1 = 0 ;
30144 int res1 = 0 ;
30145 long val2 ;
30146 int ecode2 = 0 ;
30147 bool val3 ;
30148 int ecode3 = 0 ;
30149 PyObject * obj0 = 0 ;
30150 PyObject * obj1 = 0 ;
30151 PyObject * obj2 = 0 ;
30152 char * kwnames[] = {
30153 (char *) "self",(char *) "style",(char *) "add", NULL
30154 };
30155
30156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30158 if (!SWIG_IsOK(res1)) {
30159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30160 }
30161 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30162 ecode2 = SWIG_AsVal_long(obj1, &val2);
30163 if (!SWIG_IsOK(ecode2)) {
30164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30165 }
30166 arg2 = static_cast< long >(val2);
30167 if (obj2) {
30168 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30169 if (!SWIG_IsOK(ecode3)) {
30170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30171 }
30172 arg3 = static_cast< bool >(val3);
30173 }
30174 {
30175 PyThreadState* __tstate = wxPyBeginAllowThreads();
30176 (arg1)->SetSingleStyle(arg2,arg3);
30177 wxPyEndAllowThreads(__tstate);
30178 if (PyErr_Occurred()) SWIG_fail;
30179 }
30180 resultobj = SWIG_Py_Void();
30181 return resultobj;
30182 fail:
30183 return NULL;
30184 }
30185
30186
30187 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30188 PyObject *resultobj = 0;
30189 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30190 long arg2 ;
30191 int arg3 = (int) wxLIST_NEXT_ALL ;
30192 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30193 long result;
30194 void *argp1 = 0 ;
30195 int res1 = 0 ;
30196 long val2 ;
30197 int ecode2 = 0 ;
30198 int val3 ;
30199 int ecode3 = 0 ;
30200 int val4 ;
30201 int ecode4 = 0 ;
30202 PyObject * obj0 = 0 ;
30203 PyObject * obj1 = 0 ;
30204 PyObject * obj2 = 0 ;
30205 PyObject * obj3 = 0 ;
30206 char * kwnames[] = {
30207 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30208 };
30209
30210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30212 if (!SWIG_IsOK(res1)) {
30213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30214 }
30215 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30216 ecode2 = SWIG_AsVal_long(obj1, &val2);
30217 if (!SWIG_IsOK(ecode2)) {
30218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30219 }
30220 arg2 = static_cast< long >(val2);
30221 if (obj2) {
30222 ecode3 = SWIG_AsVal_int(obj2, &val3);
30223 if (!SWIG_IsOK(ecode3)) {
30224 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30225 }
30226 arg3 = static_cast< int >(val3);
30227 }
30228 if (obj3) {
30229 ecode4 = SWIG_AsVal_int(obj3, &val4);
30230 if (!SWIG_IsOK(ecode4)) {
30231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30232 }
30233 arg4 = static_cast< int >(val4);
30234 }
30235 {
30236 PyThreadState* __tstate = wxPyBeginAllowThreads();
30237 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30238 wxPyEndAllowThreads(__tstate);
30239 if (PyErr_Occurred()) SWIG_fail;
30240 }
30241 resultobj = SWIG_From_long(static_cast< long >(result));
30242 return resultobj;
30243 fail:
30244 return NULL;
30245 }
30246
30247
30248 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30249 PyObject *resultobj = 0;
30250 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30251 int arg2 ;
30252 wxImageList *result = 0 ;
30253 void *argp1 = 0 ;
30254 int res1 = 0 ;
30255 int val2 ;
30256 int ecode2 = 0 ;
30257 PyObject * obj0 = 0 ;
30258 PyObject * obj1 = 0 ;
30259 char * kwnames[] = {
30260 (char *) "self",(char *) "which", NULL
30261 };
30262
30263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30265 if (!SWIG_IsOK(res1)) {
30266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30267 }
30268 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30269 ecode2 = SWIG_AsVal_int(obj1, &val2);
30270 if (!SWIG_IsOK(ecode2)) {
30271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30272 }
30273 arg2 = static_cast< int >(val2);
30274 {
30275 PyThreadState* __tstate = wxPyBeginAllowThreads();
30276 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30277 wxPyEndAllowThreads(__tstate);
30278 if (PyErr_Occurred()) SWIG_fail;
30279 }
30280 {
30281 resultobj = wxPyMake_wxObject(result, (bool)0);
30282 }
30283 return resultobj;
30284 fail:
30285 return NULL;
30286 }
30287
30288
30289 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30290 PyObject *resultobj = 0;
30291 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30292 wxImageList *arg2 = (wxImageList *) 0 ;
30293 int arg3 ;
30294 void *argp1 = 0 ;
30295 int res1 = 0 ;
30296 void *argp2 = 0 ;
30297 int res2 = 0 ;
30298 int val3 ;
30299 int ecode3 = 0 ;
30300 PyObject * obj0 = 0 ;
30301 PyObject * obj1 = 0 ;
30302 PyObject * obj2 = 0 ;
30303 char * kwnames[] = {
30304 (char *) "self",(char *) "imageList",(char *) "which", NULL
30305 };
30306
30307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30309 if (!SWIG_IsOK(res1)) {
30310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30311 }
30312 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30313 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30314 if (!SWIG_IsOK(res2)) {
30315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30316 }
30317 arg2 = reinterpret_cast< wxImageList * >(argp2);
30318 ecode3 = SWIG_AsVal_int(obj2, &val3);
30319 if (!SWIG_IsOK(ecode3)) {
30320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30321 }
30322 arg3 = static_cast< int >(val3);
30323 {
30324 PyThreadState* __tstate = wxPyBeginAllowThreads();
30325 (arg1)->SetImageList(arg2,arg3);
30326 wxPyEndAllowThreads(__tstate);
30327 if (PyErr_Occurred()) SWIG_fail;
30328 }
30329 resultobj = SWIG_Py_Void();
30330 return resultobj;
30331 fail:
30332 return NULL;
30333 }
30334
30335
30336 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30337 PyObject *resultobj = 0;
30338 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30339 wxImageList *arg2 = (wxImageList *) 0 ;
30340 int arg3 ;
30341 void *argp1 = 0 ;
30342 int res1 = 0 ;
30343 int res2 = 0 ;
30344 int val3 ;
30345 int ecode3 = 0 ;
30346 PyObject * obj0 = 0 ;
30347 PyObject * obj1 = 0 ;
30348 PyObject * obj2 = 0 ;
30349 char * kwnames[] = {
30350 (char *) "self",(char *) "imageList",(char *) "which", NULL
30351 };
30352
30353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30355 if (!SWIG_IsOK(res1)) {
30356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30357 }
30358 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30359 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30360 if (!SWIG_IsOK(res2)) {
30361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30362 }
30363 ecode3 = SWIG_AsVal_int(obj2, &val3);
30364 if (!SWIG_IsOK(ecode3)) {
30365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30366 }
30367 arg3 = static_cast< int >(val3);
30368 {
30369 PyThreadState* __tstate = wxPyBeginAllowThreads();
30370 (arg1)->AssignImageList(arg2,arg3);
30371 wxPyEndAllowThreads(__tstate);
30372 if (PyErr_Occurred()) SWIG_fail;
30373 }
30374 resultobj = SWIG_Py_Void();
30375 return resultobj;
30376 fail:
30377 return NULL;
30378 }
30379
30380
30381 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30382 PyObject *resultobj = 0;
30383 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30384 bool result;
30385 void *argp1 = 0 ;
30386 int res1 = 0 ;
30387 PyObject *swig_obj[1] ;
30388
30389 if (!args) SWIG_fail;
30390 swig_obj[0] = args;
30391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30392 if (!SWIG_IsOK(res1)) {
30393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30394 }
30395 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30396 {
30397 PyThreadState* __tstate = wxPyBeginAllowThreads();
30398 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30399 wxPyEndAllowThreads(__tstate);
30400 if (PyErr_Occurred()) SWIG_fail;
30401 }
30402 {
30403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30404 }
30405 return resultobj;
30406 fail:
30407 return NULL;
30408 }
30409
30410
30411 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30412 PyObject *resultobj = 0;
30413 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30414 bool result;
30415 void *argp1 = 0 ;
30416 int res1 = 0 ;
30417 PyObject *swig_obj[1] ;
30418
30419 if (!args) SWIG_fail;
30420 swig_obj[0] = args;
30421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30422 if (!SWIG_IsOK(res1)) {
30423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30424 }
30425 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30426 {
30427 PyThreadState* __tstate = wxPyBeginAllowThreads();
30428 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30429 wxPyEndAllowThreads(__tstate);
30430 if (PyErr_Occurred()) SWIG_fail;
30431 }
30432 {
30433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30434 }
30435 return resultobj;
30436 fail:
30437 return NULL;
30438 }
30439
30440
30441 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30442 PyObject *resultobj = 0;
30443 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30444 long arg2 ;
30445 void *argp1 = 0 ;
30446 int res1 = 0 ;
30447 long val2 ;
30448 int ecode2 = 0 ;
30449 PyObject * obj0 = 0 ;
30450 PyObject * obj1 = 0 ;
30451 char * kwnames[] = {
30452 (char *) "self",(char *) "item", NULL
30453 };
30454
30455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30457 if (!SWIG_IsOK(res1)) {
30458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30459 }
30460 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30461 ecode2 = SWIG_AsVal_long(obj1, &val2);
30462 if (!SWIG_IsOK(ecode2)) {
30463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30464 }
30465 arg2 = static_cast< long >(val2);
30466 {
30467 PyThreadState* __tstate = wxPyBeginAllowThreads();
30468 (arg1)->RefreshItem(arg2);
30469 wxPyEndAllowThreads(__tstate);
30470 if (PyErr_Occurred()) SWIG_fail;
30471 }
30472 resultobj = SWIG_Py_Void();
30473 return resultobj;
30474 fail:
30475 return NULL;
30476 }
30477
30478
30479 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30480 PyObject *resultobj = 0;
30481 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30482 long arg2 ;
30483 long arg3 ;
30484 void *argp1 = 0 ;
30485 int res1 = 0 ;
30486 long val2 ;
30487 int ecode2 = 0 ;
30488 long val3 ;
30489 int ecode3 = 0 ;
30490 PyObject * obj0 = 0 ;
30491 PyObject * obj1 = 0 ;
30492 PyObject * obj2 = 0 ;
30493 char * kwnames[] = {
30494 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30495 };
30496
30497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30499 if (!SWIG_IsOK(res1)) {
30500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30501 }
30502 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30503 ecode2 = SWIG_AsVal_long(obj1, &val2);
30504 if (!SWIG_IsOK(ecode2)) {
30505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30506 }
30507 arg2 = static_cast< long >(val2);
30508 ecode3 = SWIG_AsVal_long(obj2, &val3);
30509 if (!SWIG_IsOK(ecode3)) {
30510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30511 }
30512 arg3 = static_cast< long >(val3);
30513 {
30514 PyThreadState* __tstate = wxPyBeginAllowThreads();
30515 (arg1)->RefreshItems(arg2,arg3);
30516 wxPyEndAllowThreads(__tstate);
30517 if (PyErr_Occurred()) SWIG_fail;
30518 }
30519 resultobj = SWIG_Py_Void();
30520 return resultobj;
30521 fail:
30522 return NULL;
30523 }
30524
30525
30526 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30527 PyObject *resultobj = 0;
30528 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30529 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30530 bool result;
30531 void *argp1 = 0 ;
30532 int res1 = 0 ;
30533 int val2 ;
30534 int ecode2 = 0 ;
30535 PyObject * obj0 = 0 ;
30536 PyObject * obj1 = 0 ;
30537 char * kwnames[] = {
30538 (char *) "self",(char *) "flag", NULL
30539 };
30540
30541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30543 if (!SWIG_IsOK(res1)) {
30544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30545 }
30546 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30547 if (obj1) {
30548 ecode2 = SWIG_AsVal_int(obj1, &val2);
30549 if (!SWIG_IsOK(ecode2)) {
30550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30551 }
30552 arg2 = static_cast< int >(val2);
30553 }
30554 {
30555 PyThreadState* __tstate = wxPyBeginAllowThreads();
30556 result = (bool)(arg1)->Arrange(arg2);
30557 wxPyEndAllowThreads(__tstate);
30558 if (PyErr_Occurred()) SWIG_fail;
30559 }
30560 {
30561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30562 }
30563 return resultobj;
30564 fail:
30565 return NULL;
30566 }
30567
30568
30569 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30570 PyObject *resultobj = 0;
30571 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30572 long arg2 ;
30573 bool result;
30574 void *argp1 = 0 ;
30575 int res1 = 0 ;
30576 long val2 ;
30577 int ecode2 = 0 ;
30578 PyObject * obj0 = 0 ;
30579 PyObject * obj1 = 0 ;
30580 char * kwnames[] = {
30581 (char *) "self",(char *) "item", NULL
30582 };
30583
30584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30586 if (!SWIG_IsOK(res1)) {
30587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30588 }
30589 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30590 ecode2 = SWIG_AsVal_long(obj1, &val2);
30591 if (!SWIG_IsOK(ecode2)) {
30592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30593 }
30594 arg2 = static_cast< long >(val2);
30595 {
30596 PyThreadState* __tstate = wxPyBeginAllowThreads();
30597 result = (bool)(arg1)->DeleteItem(arg2);
30598 wxPyEndAllowThreads(__tstate);
30599 if (PyErr_Occurred()) SWIG_fail;
30600 }
30601 {
30602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30603 }
30604 return resultobj;
30605 fail:
30606 return NULL;
30607 }
30608
30609
30610 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30611 PyObject *resultobj = 0;
30612 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30613 bool result;
30614 void *argp1 = 0 ;
30615 int res1 = 0 ;
30616 PyObject *swig_obj[1] ;
30617
30618 if (!args) SWIG_fail;
30619 swig_obj[0] = args;
30620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30621 if (!SWIG_IsOK(res1)) {
30622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30623 }
30624 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30625 {
30626 PyThreadState* __tstate = wxPyBeginAllowThreads();
30627 result = (bool)(arg1)->DeleteAllItems();
30628 wxPyEndAllowThreads(__tstate);
30629 if (PyErr_Occurred()) SWIG_fail;
30630 }
30631 {
30632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30633 }
30634 return resultobj;
30635 fail:
30636 return NULL;
30637 }
30638
30639
30640 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30641 PyObject *resultobj = 0;
30642 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30643 int arg2 ;
30644 bool result;
30645 void *argp1 = 0 ;
30646 int res1 = 0 ;
30647 int val2 ;
30648 int ecode2 = 0 ;
30649 PyObject * obj0 = 0 ;
30650 PyObject * obj1 = 0 ;
30651 char * kwnames[] = {
30652 (char *) "self",(char *) "col", NULL
30653 };
30654
30655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30657 if (!SWIG_IsOK(res1)) {
30658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30659 }
30660 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30661 ecode2 = SWIG_AsVal_int(obj1, &val2);
30662 if (!SWIG_IsOK(ecode2)) {
30663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30664 }
30665 arg2 = static_cast< int >(val2);
30666 {
30667 PyThreadState* __tstate = wxPyBeginAllowThreads();
30668 result = (bool)(arg1)->DeleteColumn(arg2);
30669 wxPyEndAllowThreads(__tstate);
30670 if (PyErr_Occurred()) SWIG_fail;
30671 }
30672 {
30673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30674 }
30675 return resultobj;
30676 fail:
30677 return NULL;
30678 }
30679
30680
30681 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30682 PyObject *resultobj = 0;
30683 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30684 bool result;
30685 void *argp1 = 0 ;
30686 int res1 = 0 ;
30687 PyObject *swig_obj[1] ;
30688
30689 if (!args) SWIG_fail;
30690 swig_obj[0] = args;
30691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30692 if (!SWIG_IsOK(res1)) {
30693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30694 }
30695 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30696 {
30697 PyThreadState* __tstate = wxPyBeginAllowThreads();
30698 result = (bool)(arg1)->DeleteAllColumns();
30699 wxPyEndAllowThreads(__tstate);
30700 if (PyErr_Occurred()) SWIG_fail;
30701 }
30702 {
30703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30704 }
30705 return resultobj;
30706 fail:
30707 return NULL;
30708 }
30709
30710
30711 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30712 PyObject *resultobj = 0;
30713 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30714 void *argp1 = 0 ;
30715 int res1 = 0 ;
30716 PyObject *swig_obj[1] ;
30717
30718 if (!args) SWIG_fail;
30719 swig_obj[0] = args;
30720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30721 if (!SWIG_IsOK(res1)) {
30722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30723 }
30724 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30725 {
30726 PyThreadState* __tstate = wxPyBeginAllowThreads();
30727 (arg1)->ClearAll();
30728 wxPyEndAllowThreads(__tstate);
30729 if (PyErr_Occurred()) SWIG_fail;
30730 }
30731 resultobj = SWIG_Py_Void();
30732 return resultobj;
30733 fail:
30734 return NULL;
30735 }
30736
30737
30738 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30739 PyObject *resultobj = 0;
30740 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30741 long arg2 ;
30742 wxTextCtrl *result = 0 ;
30743 void *argp1 = 0 ;
30744 int res1 = 0 ;
30745 long val2 ;
30746 int ecode2 = 0 ;
30747 PyObject * obj0 = 0 ;
30748 PyObject * obj1 = 0 ;
30749 char * kwnames[] = {
30750 (char *) "self",(char *) "item", NULL
30751 };
30752
30753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30755 if (!SWIG_IsOK(res1)) {
30756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30757 }
30758 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30759 ecode2 = SWIG_AsVal_long(obj1, &val2);
30760 if (!SWIG_IsOK(ecode2)) {
30761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30762 }
30763 arg2 = static_cast< long >(val2);
30764 {
30765 PyThreadState* __tstate = wxPyBeginAllowThreads();
30766 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
30767 wxPyEndAllowThreads(__tstate);
30768 if (PyErr_Occurred()) SWIG_fail;
30769 }
30770 {
30771 resultobj = wxPyMake_wxObject(result, 0);
30772 }
30773 return resultobj;
30774 fail:
30775 return NULL;
30776 }
30777
30778
30779 SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30780 PyObject *resultobj = 0;
30781 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30782 bool arg2 ;
30783 bool result;
30784 void *argp1 = 0 ;
30785 int res1 = 0 ;
30786 bool val2 ;
30787 int ecode2 = 0 ;
30788 PyObject * obj0 = 0 ;
30789 PyObject * obj1 = 0 ;
30790 char * kwnames[] = {
30791 (char *) "self",(char *) "cancel", NULL
30792 };
30793
30794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30796 if (!SWIG_IsOK(res1)) {
30797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30798 }
30799 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30800 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30801 if (!SWIG_IsOK(ecode2)) {
30802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
30803 }
30804 arg2 = static_cast< bool >(val2);
30805 {
30806 PyThreadState* __tstate = wxPyBeginAllowThreads();
30807 result = (bool)(arg1)->EndEditLabel(arg2);
30808 wxPyEndAllowThreads(__tstate);
30809 if (PyErr_Occurred()) SWIG_fail;
30810 }
30811 {
30812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30813 }
30814 return resultobj;
30815 fail:
30816 return NULL;
30817 }
30818
30819
30820 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30821 PyObject *resultobj = 0;
30822 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30823 long arg2 ;
30824 bool result;
30825 void *argp1 = 0 ;
30826 int res1 = 0 ;
30827 long val2 ;
30828 int ecode2 = 0 ;
30829 PyObject * obj0 = 0 ;
30830 PyObject * obj1 = 0 ;
30831 char * kwnames[] = {
30832 (char *) "self",(char *) "item", NULL
30833 };
30834
30835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30837 if (!SWIG_IsOK(res1)) {
30838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30839 }
30840 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30841 ecode2 = SWIG_AsVal_long(obj1, &val2);
30842 if (!SWIG_IsOK(ecode2)) {
30843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30844 }
30845 arg2 = static_cast< long >(val2);
30846 {
30847 PyThreadState* __tstate = wxPyBeginAllowThreads();
30848 result = (bool)(arg1)->EnsureVisible(arg2);
30849 wxPyEndAllowThreads(__tstate);
30850 if (PyErr_Occurred()) SWIG_fail;
30851 }
30852 {
30853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30854 }
30855 return resultobj;
30856 fail:
30857 return NULL;
30858 }
30859
30860
30861 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30862 PyObject *resultobj = 0;
30863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30864 long arg2 ;
30865 wxString *arg3 = 0 ;
30866 bool arg4 = (bool) false ;
30867 long result;
30868 void *argp1 = 0 ;
30869 int res1 = 0 ;
30870 long val2 ;
30871 int ecode2 = 0 ;
30872 bool temp3 = false ;
30873 bool val4 ;
30874 int ecode4 = 0 ;
30875 PyObject * obj0 = 0 ;
30876 PyObject * obj1 = 0 ;
30877 PyObject * obj2 = 0 ;
30878 PyObject * obj3 = 0 ;
30879 char * kwnames[] = {
30880 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30881 };
30882
30883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30885 if (!SWIG_IsOK(res1)) {
30886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30887 }
30888 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30889 ecode2 = SWIG_AsVal_long(obj1, &val2);
30890 if (!SWIG_IsOK(ecode2)) {
30891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30892 }
30893 arg2 = static_cast< long >(val2);
30894 {
30895 arg3 = wxString_in_helper(obj2);
30896 if (arg3 == NULL) SWIG_fail;
30897 temp3 = true;
30898 }
30899 if (obj3) {
30900 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30901 if (!SWIG_IsOK(ecode4)) {
30902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30903 }
30904 arg4 = static_cast< bool >(val4);
30905 }
30906 {
30907 PyThreadState* __tstate = wxPyBeginAllowThreads();
30908 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30909 wxPyEndAllowThreads(__tstate);
30910 if (PyErr_Occurred()) SWIG_fail;
30911 }
30912 resultobj = SWIG_From_long(static_cast< long >(result));
30913 {
30914 if (temp3)
30915 delete arg3;
30916 }
30917 return resultobj;
30918 fail:
30919 {
30920 if (temp3)
30921 delete arg3;
30922 }
30923 return NULL;
30924 }
30925
30926
30927 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30928 PyObject *resultobj = 0;
30929 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30930 long arg2 ;
30931 long arg3 ;
30932 long result;
30933 void *argp1 = 0 ;
30934 int res1 = 0 ;
30935 long val2 ;
30936 int ecode2 = 0 ;
30937 long val3 ;
30938 int ecode3 = 0 ;
30939 PyObject * obj0 = 0 ;
30940 PyObject * obj1 = 0 ;
30941 PyObject * obj2 = 0 ;
30942 char * kwnames[] = {
30943 (char *) "self",(char *) "start",(char *) "data", NULL
30944 };
30945
30946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30948 if (!SWIG_IsOK(res1)) {
30949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30950 }
30951 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30952 ecode2 = SWIG_AsVal_long(obj1, &val2);
30953 if (!SWIG_IsOK(ecode2)) {
30954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30955 }
30956 arg2 = static_cast< long >(val2);
30957 ecode3 = SWIG_AsVal_long(obj2, &val3);
30958 if (!SWIG_IsOK(ecode3)) {
30959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30960 }
30961 arg3 = static_cast< long >(val3);
30962 {
30963 PyThreadState* __tstate = wxPyBeginAllowThreads();
30964 result = (long)(arg1)->FindItem(arg2,arg3);
30965 wxPyEndAllowThreads(__tstate);
30966 if (PyErr_Occurred()) SWIG_fail;
30967 }
30968 resultobj = SWIG_From_long(static_cast< long >(result));
30969 return resultobj;
30970 fail:
30971 return NULL;
30972 }
30973
30974
30975 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30976 PyObject *resultobj = 0;
30977 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30978 long arg2 ;
30979 wxPoint *arg3 = 0 ;
30980 int arg4 ;
30981 long result;
30982 void *argp1 = 0 ;
30983 int res1 = 0 ;
30984 long val2 ;
30985 int ecode2 = 0 ;
30986 wxPoint temp3 ;
30987 int val4 ;
30988 int ecode4 = 0 ;
30989 PyObject * obj0 = 0 ;
30990 PyObject * obj1 = 0 ;
30991 PyObject * obj2 = 0 ;
30992 PyObject * obj3 = 0 ;
30993 char * kwnames[] = {
30994 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30995 };
30996
30997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30999 if (!SWIG_IsOK(res1)) {
31000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31001 }
31002 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31003 ecode2 = SWIG_AsVal_long(obj1, &val2);
31004 if (!SWIG_IsOK(ecode2)) {
31005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31006 }
31007 arg2 = static_cast< long >(val2);
31008 {
31009 arg3 = &temp3;
31010 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31011 }
31012 ecode4 = SWIG_AsVal_int(obj3, &val4);
31013 if (!SWIG_IsOK(ecode4)) {
31014 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31015 }
31016 arg4 = static_cast< int >(val4);
31017 {
31018 PyThreadState* __tstate = wxPyBeginAllowThreads();
31019 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31020 wxPyEndAllowThreads(__tstate);
31021 if (PyErr_Occurred()) SWIG_fail;
31022 }
31023 resultobj = SWIG_From_long(static_cast< long >(result));
31024 return resultobj;
31025 fail:
31026 return NULL;
31027 }
31028
31029
31030 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31031 PyObject *resultobj = 0;
31032 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31033 wxPoint *arg2 = 0 ;
31034 int *arg3 = 0 ;
31035 long result;
31036 void *argp1 = 0 ;
31037 int res1 = 0 ;
31038 wxPoint temp2 ;
31039 int temp3 ;
31040 int res3 = SWIG_TMPOBJ ;
31041 PyObject * obj0 = 0 ;
31042 PyObject * obj1 = 0 ;
31043 char * kwnames[] = {
31044 (char *) "self",(char *) "point", NULL
31045 };
31046
31047 arg3 = &temp3;
31048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31050 if (!SWIG_IsOK(res1)) {
31051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31052 }
31053 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31054 {
31055 arg2 = &temp2;
31056 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31057 }
31058 {
31059 PyThreadState* __tstate = wxPyBeginAllowThreads();
31060 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31061 wxPyEndAllowThreads(__tstate);
31062 if (PyErr_Occurred()) SWIG_fail;
31063 }
31064 resultobj = SWIG_From_long(static_cast< long >(result));
31065 if (SWIG_IsTmpObj(res3)) {
31066 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31067 } else {
31068 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31069 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31070 }
31071 return resultobj;
31072 fail:
31073 return NULL;
31074 }
31075
31076
31077 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31078 PyObject *resultobj = 0;
31079 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31080 wxPoint *arg2 = 0 ;
31081 int *arg3 = 0 ;
31082 long *arg4 = (long *) 0 ;
31083 long result;
31084 void *argp1 = 0 ;
31085 int res1 = 0 ;
31086 wxPoint temp2 ;
31087 int temp3 ;
31088 int res3 = SWIG_TMPOBJ ;
31089 long temp4 ;
31090 int res4 = SWIG_TMPOBJ ;
31091 PyObject * obj0 = 0 ;
31092 PyObject * obj1 = 0 ;
31093 char * kwnames[] = {
31094 (char *) "self",(char *) "point", NULL
31095 };
31096
31097 arg3 = &temp3;
31098 arg4 = &temp4;
31099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31101 if (!SWIG_IsOK(res1)) {
31102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31103 }
31104 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31105 {
31106 arg2 = &temp2;
31107 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31108 }
31109 {
31110 PyThreadState* __tstate = wxPyBeginAllowThreads();
31111 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31112 wxPyEndAllowThreads(__tstate);
31113 if (PyErr_Occurred()) SWIG_fail;
31114 }
31115 resultobj = SWIG_From_long(static_cast< long >(result));
31116 if (SWIG_IsTmpObj(res3)) {
31117 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31118 } else {
31119 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31121 }
31122 if (SWIG_IsTmpObj(res4)) {
31123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31124 } else {
31125 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31127 }
31128 return resultobj;
31129 fail:
31130 return NULL;
31131 }
31132
31133
31134 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31135 PyObject *resultobj = 0;
31136 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31137 wxListItem *arg2 = 0 ;
31138 long result;
31139 void *argp1 = 0 ;
31140 int res1 = 0 ;
31141 void *argp2 = 0 ;
31142 int res2 = 0 ;
31143 PyObject * obj0 = 0 ;
31144 PyObject * obj1 = 0 ;
31145 char * kwnames[] = {
31146 (char *) "self",(char *) "info", NULL
31147 };
31148
31149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31151 if (!SWIG_IsOK(res1)) {
31152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31153 }
31154 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31156 if (!SWIG_IsOK(res2)) {
31157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31158 }
31159 if (!argp2) {
31160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31161 }
31162 arg2 = reinterpret_cast< wxListItem * >(argp2);
31163 {
31164 PyThreadState* __tstate = wxPyBeginAllowThreads();
31165 result = (long)(arg1)->InsertItem(*arg2);
31166 wxPyEndAllowThreads(__tstate);
31167 if (PyErr_Occurred()) SWIG_fail;
31168 }
31169 resultobj = SWIG_From_long(static_cast< long >(result));
31170 return resultobj;
31171 fail:
31172 return NULL;
31173 }
31174
31175
31176 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31177 PyObject *resultobj = 0;
31178 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31179 long arg2 ;
31180 wxString *arg3 = 0 ;
31181 int arg4 = (int) -1 ;
31182 long result;
31183 void *argp1 = 0 ;
31184 int res1 = 0 ;
31185 long val2 ;
31186 int ecode2 = 0 ;
31187 bool temp3 = false ;
31188 int val4 ;
31189 int ecode4 = 0 ;
31190 PyObject * obj0 = 0 ;
31191 PyObject * obj1 = 0 ;
31192 PyObject * obj2 = 0 ;
31193 PyObject * obj3 = 0 ;
31194 char * kwnames[] = {
31195 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31196 };
31197
31198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31200 if (!SWIG_IsOK(res1)) {
31201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31202 }
31203 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31204 ecode2 = SWIG_AsVal_long(obj1, &val2);
31205 if (!SWIG_IsOK(ecode2)) {
31206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31207 }
31208 arg2 = static_cast< long >(val2);
31209 {
31210 arg3 = wxString_in_helper(obj2);
31211 if (arg3 == NULL) SWIG_fail;
31212 temp3 = true;
31213 }
31214 if (obj3) {
31215 ecode4 = SWIG_AsVal_int(obj3, &val4);
31216 if (!SWIG_IsOK(ecode4)) {
31217 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31218 }
31219 arg4 = static_cast< int >(val4);
31220 }
31221 {
31222 PyThreadState* __tstate = wxPyBeginAllowThreads();
31223 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31224 wxPyEndAllowThreads(__tstate);
31225 if (PyErr_Occurred()) SWIG_fail;
31226 }
31227 resultobj = SWIG_From_long(static_cast< long >(result));
31228 {
31229 if (temp3)
31230 delete arg3;
31231 }
31232 return resultobj;
31233 fail:
31234 {
31235 if (temp3)
31236 delete arg3;
31237 }
31238 return NULL;
31239 }
31240
31241
31242 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31243 PyObject *resultobj = 0;
31244 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31245 long arg2 ;
31246 int arg3 ;
31247 long result;
31248 void *argp1 = 0 ;
31249 int res1 = 0 ;
31250 long val2 ;
31251 int ecode2 = 0 ;
31252 int val3 ;
31253 int ecode3 = 0 ;
31254 PyObject * obj0 = 0 ;
31255 PyObject * obj1 = 0 ;
31256 PyObject * obj2 = 0 ;
31257 char * kwnames[] = {
31258 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31259 };
31260
31261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31263 if (!SWIG_IsOK(res1)) {
31264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31265 }
31266 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31267 ecode2 = SWIG_AsVal_long(obj1, &val2);
31268 if (!SWIG_IsOK(ecode2)) {
31269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31270 }
31271 arg2 = static_cast< long >(val2);
31272 ecode3 = SWIG_AsVal_int(obj2, &val3);
31273 if (!SWIG_IsOK(ecode3)) {
31274 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31275 }
31276 arg3 = static_cast< int >(val3);
31277 {
31278 PyThreadState* __tstate = wxPyBeginAllowThreads();
31279 result = (long)(arg1)->InsertItem(arg2,arg3);
31280 wxPyEndAllowThreads(__tstate);
31281 if (PyErr_Occurred()) SWIG_fail;
31282 }
31283 resultobj = SWIG_From_long(static_cast< long >(result));
31284 return resultobj;
31285 fail:
31286 return NULL;
31287 }
31288
31289
31290 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31291 PyObject *resultobj = 0;
31292 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31293 long arg2 ;
31294 wxString *arg3 = 0 ;
31295 int arg4 ;
31296 long result;
31297 void *argp1 = 0 ;
31298 int res1 = 0 ;
31299 long val2 ;
31300 int ecode2 = 0 ;
31301 bool temp3 = false ;
31302 int val4 ;
31303 int ecode4 = 0 ;
31304 PyObject * obj0 = 0 ;
31305 PyObject * obj1 = 0 ;
31306 PyObject * obj2 = 0 ;
31307 PyObject * obj3 = 0 ;
31308 char * kwnames[] = {
31309 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31310 };
31311
31312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31314 if (!SWIG_IsOK(res1)) {
31315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31316 }
31317 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31318 ecode2 = SWIG_AsVal_long(obj1, &val2);
31319 if (!SWIG_IsOK(ecode2)) {
31320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31321 }
31322 arg2 = static_cast< long >(val2);
31323 {
31324 arg3 = wxString_in_helper(obj2);
31325 if (arg3 == NULL) SWIG_fail;
31326 temp3 = true;
31327 }
31328 ecode4 = SWIG_AsVal_int(obj3, &val4);
31329 if (!SWIG_IsOK(ecode4)) {
31330 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31331 }
31332 arg4 = static_cast< int >(val4);
31333 {
31334 PyThreadState* __tstate = wxPyBeginAllowThreads();
31335 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31336 wxPyEndAllowThreads(__tstate);
31337 if (PyErr_Occurred()) SWIG_fail;
31338 }
31339 resultobj = SWIG_From_long(static_cast< long >(result));
31340 {
31341 if (temp3)
31342 delete arg3;
31343 }
31344 return resultobj;
31345 fail:
31346 {
31347 if (temp3)
31348 delete arg3;
31349 }
31350 return NULL;
31351 }
31352
31353
31354 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31355 PyObject *resultobj = 0;
31356 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31357 long arg2 ;
31358 wxListItem *arg3 = 0 ;
31359 long result;
31360 void *argp1 = 0 ;
31361 int res1 = 0 ;
31362 long val2 ;
31363 int ecode2 = 0 ;
31364 void *argp3 = 0 ;
31365 int res3 = 0 ;
31366 PyObject * obj0 = 0 ;
31367 PyObject * obj1 = 0 ;
31368 PyObject * obj2 = 0 ;
31369 char * kwnames[] = {
31370 (char *) "self",(char *) "col",(char *) "info", NULL
31371 };
31372
31373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31375 if (!SWIG_IsOK(res1)) {
31376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31377 }
31378 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31379 ecode2 = SWIG_AsVal_long(obj1, &val2);
31380 if (!SWIG_IsOK(ecode2)) {
31381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31382 }
31383 arg2 = static_cast< long >(val2);
31384 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31385 if (!SWIG_IsOK(res3)) {
31386 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31387 }
31388 if (!argp3) {
31389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31390 }
31391 arg3 = reinterpret_cast< wxListItem * >(argp3);
31392 {
31393 PyThreadState* __tstate = wxPyBeginAllowThreads();
31394 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31395 wxPyEndAllowThreads(__tstate);
31396 if (PyErr_Occurred()) SWIG_fail;
31397 }
31398 resultobj = SWIG_From_long(static_cast< long >(result));
31399 return resultobj;
31400 fail:
31401 return NULL;
31402 }
31403
31404
31405 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31406 PyObject *resultobj = 0;
31407 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31408 long arg2 ;
31409 wxString *arg3 = 0 ;
31410 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31411 int arg5 = (int) -1 ;
31412 long result;
31413 void *argp1 = 0 ;
31414 int res1 = 0 ;
31415 long val2 ;
31416 int ecode2 = 0 ;
31417 bool temp3 = false ;
31418 int val4 ;
31419 int ecode4 = 0 ;
31420 int val5 ;
31421 int ecode5 = 0 ;
31422 PyObject * obj0 = 0 ;
31423 PyObject * obj1 = 0 ;
31424 PyObject * obj2 = 0 ;
31425 PyObject * obj3 = 0 ;
31426 PyObject * obj4 = 0 ;
31427 char * kwnames[] = {
31428 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31429 };
31430
31431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31433 if (!SWIG_IsOK(res1)) {
31434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31435 }
31436 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31437 ecode2 = SWIG_AsVal_long(obj1, &val2);
31438 if (!SWIG_IsOK(ecode2)) {
31439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31440 }
31441 arg2 = static_cast< long >(val2);
31442 {
31443 arg3 = wxString_in_helper(obj2);
31444 if (arg3 == NULL) SWIG_fail;
31445 temp3 = true;
31446 }
31447 if (obj3) {
31448 ecode4 = SWIG_AsVal_int(obj3, &val4);
31449 if (!SWIG_IsOK(ecode4)) {
31450 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31451 }
31452 arg4 = static_cast< int >(val4);
31453 }
31454 if (obj4) {
31455 ecode5 = SWIG_AsVal_int(obj4, &val5);
31456 if (!SWIG_IsOK(ecode5)) {
31457 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31458 }
31459 arg5 = static_cast< int >(val5);
31460 }
31461 {
31462 PyThreadState* __tstate = wxPyBeginAllowThreads();
31463 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31464 wxPyEndAllowThreads(__tstate);
31465 if (PyErr_Occurred()) SWIG_fail;
31466 }
31467 resultobj = SWIG_From_long(static_cast< long >(result));
31468 {
31469 if (temp3)
31470 delete arg3;
31471 }
31472 return resultobj;
31473 fail:
31474 {
31475 if (temp3)
31476 delete arg3;
31477 }
31478 return NULL;
31479 }
31480
31481
31482 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31483 PyObject *resultobj = 0;
31484 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31485 long arg2 ;
31486 void *argp1 = 0 ;
31487 int res1 = 0 ;
31488 long val2 ;
31489 int ecode2 = 0 ;
31490 PyObject * obj0 = 0 ;
31491 PyObject * obj1 = 0 ;
31492 char * kwnames[] = {
31493 (char *) "self",(char *) "count", NULL
31494 };
31495
31496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31498 if (!SWIG_IsOK(res1)) {
31499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31500 }
31501 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31502 ecode2 = SWIG_AsVal_long(obj1, &val2);
31503 if (!SWIG_IsOK(ecode2)) {
31504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31505 }
31506 arg2 = static_cast< long >(val2);
31507 {
31508 PyThreadState* __tstate = wxPyBeginAllowThreads();
31509 (arg1)->SetItemCount(arg2);
31510 wxPyEndAllowThreads(__tstate);
31511 if (PyErr_Occurred()) SWIG_fail;
31512 }
31513 resultobj = SWIG_Py_Void();
31514 return resultobj;
31515 fail:
31516 return NULL;
31517 }
31518
31519
31520 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31521 PyObject *resultobj = 0;
31522 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31523 int arg2 ;
31524 int arg3 ;
31525 bool result;
31526 void *argp1 = 0 ;
31527 int res1 = 0 ;
31528 int val2 ;
31529 int ecode2 = 0 ;
31530 int val3 ;
31531 int ecode3 = 0 ;
31532 PyObject * obj0 = 0 ;
31533 PyObject * obj1 = 0 ;
31534 PyObject * obj2 = 0 ;
31535 char * kwnames[] = {
31536 (char *) "self",(char *) "dx",(char *) "dy", NULL
31537 };
31538
31539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31541 if (!SWIG_IsOK(res1)) {
31542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31543 }
31544 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31545 ecode2 = SWIG_AsVal_int(obj1, &val2);
31546 if (!SWIG_IsOK(ecode2)) {
31547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31548 }
31549 arg2 = static_cast< int >(val2);
31550 ecode3 = SWIG_AsVal_int(obj2, &val3);
31551 if (!SWIG_IsOK(ecode3)) {
31552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31553 }
31554 arg3 = static_cast< int >(val3);
31555 {
31556 PyThreadState* __tstate = wxPyBeginAllowThreads();
31557 result = (bool)(arg1)->ScrollList(arg2,arg3);
31558 wxPyEndAllowThreads(__tstate);
31559 if (PyErr_Occurred()) SWIG_fail;
31560 }
31561 {
31562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31563 }
31564 return resultobj;
31565 fail:
31566 return NULL;
31567 }
31568
31569
31570 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31571 PyObject *resultobj = 0;
31572 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31573 long arg2 ;
31574 wxColour *arg3 = 0 ;
31575 void *argp1 = 0 ;
31576 int res1 = 0 ;
31577 long val2 ;
31578 int ecode2 = 0 ;
31579 wxColour temp3 ;
31580 PyObject * obj0 = 0 ;
31581 PyObject * obj1 = 0 ;
31582 PyObject * obj2 = 0 ;
31583 char * kwnames[] = {
31584 (char *) "self",(char *) "item",(char *) "col", NULL
31585 };
31586
31587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31589 if (!SWIG_IsOK(res1)) {
31590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31591 }
31592 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31593 ecode2 = SWIG_AsVal_long(obj1, &val2);
31594 if (!SWIG_IsOK(ecode2)) {
31595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31596 }
31597 arg2 = static_cast< long >(val2);
31598 {
31599 arg3 = &temp3;
31600 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31601 }
31602 {
31603 PyThreadState* __tstate = wxPyBeginAllowThreads();
31604 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31605 wxPyEndAllowThreads(__tstate);
31606 if (PyErr_Occurred()) SWIG_fail;
31607 }
31608 resultobj = SWIG_Py_Void();
31609 return resultobj;
31610 fail:
31611 return NULL;
31612 }
31613
31614
31615 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31616 PyObject *resultobj = 0;
31617 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31618 long arg2 ;
31619 wxColour result;
31620 void *argp1 = 0 ;
31621 int res1 = 0 ;
31622 long val2 ;
31623 int ecode2 = 0 ;
31624 PyObject * obj0 = 0 ;
31625 PyObject * obj1 = 0 ;
31626 char * kwnames[] = {
31627 (char *) "self",(char *) "item", NULL
31628 };
31629
31630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31632 if (!SWIG_IsOK(res1)) {
31633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31634 }
31635 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31636 ecode2 = SWIG_AsVal_long(obj1, &val2);
31637 if (!SWIG_IsOK(ecode2)) {
31638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31639 }
31640 arg2 = static_cast< long >(val2);
31641 {
31642 PyThreadState* __tstate = wxPyBeginAllowThreads();
31643 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31644 wxPyEndAllowThreads(__tstate);
31645 if (PyErr_Occurred()) SWIG_fail;
31646 }
31647 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31648 return resultobj;
31649 fail:
31650 return NULL;
31651 }
31652
31653
31654 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31655 PyObject *resultobj = 0;
31656 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31657 long arg2 ;
31658 wxColour *arg3 = 0 ;
31659 void *argp1 = 0 ;
31660 int res1 = 0 ;
31661 long val2 ;
31662 int ecode2 = 0 ;
31663 wxColour temp3 ;
31664 PyObject * obj0 = 0 ;
31665 PyObject * obj1 = 0 ;
31666 PyObject * obj2 = 0 ;
31667 char * kwnames[] = {
31668 (char *) "self",(char *) "item",(char *) "col", NULL
31669 };
31670
31671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31673 if (!SWIG_IsOK(res1)) {
31674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31675 }
31676 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31677 ecode2 = SWIG_AsVal_long(obj1, &val2);
31678 if (!SWIG_IsOK(ecode2)) {
31679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31680 }
31681 arg2 = static_cast< long >(val2);
31682 {
31683 arg3 = &temp3;
31684 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31685 }
31686 {
31687 PyThreadState* __tstate = wxPyBeginAllowThreads();
31688 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31689 wxPyEndAllowThreads(__tstate);
31690 if (PyErr_Occurred()) SWIG_fail;
31691 }
31692 resultobj = SWIG_Py_Void();
31693 return resultobj;
31694 fail:
31695 return NULL;
31696 }
31697
31698
31699 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31700 PyObject *resultobj = 0;
31701 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31702 long arg2 ;
31703 wxColour result;
31704 void *argp1 = 0 ;
31705 int res1 = 0 ;
31706 long val2 ;
31707 int ecode2 = 0 ;
31708 PyObject * obj0 = 0 ;
31709 PyObject * obj1 = 0 ;
31710 char * kwnames[] = {
31711 (char *) "self",(char *) "item", NULL
31712 };
31713
31714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31716 if (!SWIG_IsOK(res1)) {
31717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31718 }
31719 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31720 ecode2 = SWIG_AsVal_long(obj1, &val2);
31721 if (!SWIG_IsOK(ecode2)) {
31722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31723 }
31724 arg2 = static_cast< long >(val2);
31725 {
31726 PyThreadState* __tstate = wxPyBeginAllowThreads();
31727 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31728 wxPyEndAllowThreads(__tstate);
31729 if (PyErr_Occurred()) SWIG_fail;
31730 }
31731 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31732 return resultobj;
31733 fail:
31734 return NULL;
31735 }
31736
31737
31738 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31739 PyObject *resultobj = 0;
31740 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31741 long arg2 ;
31742 wxFont *arg3 = 0 ;
31743 void *argp1 = 0 ;
31744 int res1 = 0 ;
31745 long val2 ;
31746 int ecode2 = 0 ;
31747 void *argp3 = 0 ;
31748 int res3 = 0 ;
31749 PyObject * obj0 = 0 ;
31750 PyObject * obj1 = 0 ;
31751 PyObject * obj2 = 0 ;
31752 char * kwnames[] = {
31753 (char *) "self",(char *) "item",(char *) "f", NULL
31754 };
31755
31756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31758 if (!SWIG_IsOK(res1)) {
31759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31760 }
31761 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31762 ecode2 = SWIG_AsVal_long(obj1, &val2);
31763 if (!SWIG_IsOK(ecode2)) {
31764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31765 }
31766 arg2 = static_cast< long >(val2);
31767 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31768 if (!SWIG_IsOK(res3)) {
31769 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31770 }
31771 if (!argp3) {
31772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31773 }
31774 arg3 = reinterpret_cast< wxFont * >(argp3);
31775 {
31776 PyThreadState* __tstate = wxPyBeginAllowThreads();
31777 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31778 wxPyEndAllowThreads(__tstate);
31779 if (PyErr_Occurred()) SWIG_fail;
31780 }
31781 resultobj = SWIG_Py_Void();
31782 return resultobj;
31783 fail:
31784 return NULL;
31785 }
31786
31787
31788 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31789 PyObject *resultobj = 0;
31790 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31791 long arg2 ;
31792 wxFont result;
31793 void *argp1 = 0 ;
31794 int res1 = 0 ;
31795 long val2 ;
31796 int ecode2 = 0 ;
31797 PyObject * obj0 = 0 ;
31798 PyObject * obj1 = 0 ;
31799 char * kwnames[] = {
31800 (char *) "self",(char *) "item", NULL
31801 };
31802
31803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31805 if (!SWIG_IsOK(res1)) {
31806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31807 }
31808 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31809 ecode2 = SWIG_AsVal_long(obj1, &val2);
31810 if (!SWIG_IsOK(ecode2)) {
31811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31812 }
31813 arg2 = static_cast< long >(val2);
31814 {
31815 PyThreadState* __tstate = wxPyBeginAllowThreads();
31816 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31817 wxPyEndAllowThreads(__tstate);
31818 if (PyErr_Occurred()) SWIG_fail;
31819 }
31820 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31821 return resultobj;
31822 fail:
31823 return NULL;
31824 }
31825
31826
31827 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31828 PyObject *resultobj = 0;
31829 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31830 PyObject *arg2 = (PyObject *) 0 ;
31831 bool result;
31832 void *argp1 = 0 ;
31833 int res1 = 0 ;
31834 PyObject * obj0 = 0 ;
31835 PyObject * obj1 = 0 ;
31836 char * kwnames[] = {
31837 (char *) "self",(char *) "func", NULL
31838 };
31839
31840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31842 if (!SWIG_IsOK(res1)) {
31843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31844 }
31845 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31846 arg2 = obj1;
31847 {
31848 PyThreadState* __tstate = wxPyBeginAllowThreads();
31849 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31850 wxPyEndAllowThreads(__tstate);
31851 if (PyErr_Occurred()) SWIG_fail;
31852 }
31853 {
31854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31855 }
31856 return resultobj;
31857 fail:
31858 return NULL;
31859 }
31860
31861
31862 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31863 PyObject *resultobj = 0;
31864 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31865 wxWindow *result = 0 ;
31866 void *argp1 = 0 ;
31867 int res1 = 0 ;
31868 PyObject *swig_obj[1] ;
31869
31870 if (!args) SWIG_fail;
31871 swig_obj[0] = args;
31872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31873 if (!SWIG_IsOK(res1)) {
31874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31875 }
31876 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31877 {
31878 PyThreadState* __tstate = wxPyBeginAllowThreads();
31879 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31880 wxPyEndAllowThreads(__tstate);
31881 if (PyErr_Occurred()) SWIG_fail;
31882 }
31883 {
31884 resultobj = wxPyMake_wxObject(result, 0);
31885 }
31886 return resultobj;
31887 fail:
31888 return NULL;
31889 }
31890
31891
31892 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31893 PyObject *resultobj = 0;
31894 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31895 SwigValueWrapper<wxVisualAttributes > result;
31896 int val1 ;
31897 int ecode1 = 0 ;
31898 PyObject * obj0 = 0 ;
31899 char * kwnames[] = {
31900 (char *) "variant", NULL
31901 };
31902
31903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31904 if (obj0) {
31905 ecode1 = SWIG_AsVal_int(obj0, &val1);
31906 if (!SWIG_IsOK(ecode1)) {
31907 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31908 }
31909 arg1 = static_cast< wxWindowVariant >(val1);
31910 }
31911 {
31912 if (!wxPyCheckForApp()) SWIG_fail;
31913 PyThreadState* __tstate = wxPyBeginAllowThreads();
31914 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31915 wxPyEndAllowThreads(__tstate);
31916 if (PyErr_Occurred()) SWIG_fail;
31917 }
31918 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31919 return resultobj;
31920 fail:
31921 return NULL;
31922 }
31923
31924
31925 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31926 PyObject *obj;
31927 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31928 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31929 return SWIG_Py_Void();
31930 }
31931
31932 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31933 return SWIG_Python_InitShadowInstance(args);
31934 }
31935
31936 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31937 PyObject *resultobj = 0;
31938 wxWindow *arg1 = (wxWindow *) 0 ;
31939 int arg2 = (int) -1 ;
31940 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31941 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31942 wxSize const &arg4_defvalue = wxDefaultSize ;
31943 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31944 long arg5 = (long) wxLC_REPORT ;
31945 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31946 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31947 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31948 wxString *arg7 = (wxString *) &arg7_defvalue ;
31949 wxListView *result = 0 ;
31950 void *argp1 = 0 ;
31951 int res1 = 0 ;
31952 int val2 ;
31953 int ecode2 = 0 ;
31954 wxPoint temp3 ;
31955 wxSize temp4 ;
31956 long val5 ;
31957 int ecode5 = 0 ;
31958 void *argp6 = 0 ;
31959 int res6 = 0 ;
31960 bool temp7 = false ;
31961 PyObject * obj0 = 0 ;
31962 PyObject * obj1 = 0 ;
31963 PyObject * obj2 = 0 ;
31964 PyObject * obj3 = 0 ;
31965 PyObject * obj4 = 0 ;
31966 PyObject * obj5 = 0 ;
31967 PyObject * obj6 = 0 ;
31968 char * kwnames[] = {
31969 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31970 };
31971
31972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31974 if (!SWIG_IsOK(res1)) {
31975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31976 }
31977 arg1 = reinterpret_cast< wxWindow * >(argp1);
31978 if (obj1) {
31979 ecode2 = SWIG_AsVal_int(obj1, &val2);
31980 if (!SWIG_IsOK(ecode2)) {
31981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31982 }
31983 arg2 = static_cast< int >(val2);
31984 }
31985 if (obj2) {
31986 {
31987 arg3 = &temp3;
31988 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31989 }
31990 }
31991 if (obj3) {
31992 {
31993 arg4 = &temp4;
31994 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31995 }
31996 }
31997 if (obj4) {
31998 ecode5 = SWIG_AsVal_long(obj4, &val5);
31999 if (!SWIG_IsOK(ecode5)) {
32000 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32001 }
32002 arg5 = static_cast< long >(val5);
32003 }
32004 if (obj5) {
32005 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32006 if (!SWIG_IsOK(res6)) {
32007 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32008 }
32009 if (!argp6) {
32010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32011 }
32012 arg6 = reinterpret_cast< wxValidator * >(argp6);
32013 }
32014 if (obj6) {
32015 {
32016 arg7 = wxString_in_helper(obj6);
32017 if (arg7 == NULL) SWIG_fail;
32018 temp7 = true;
32019 }
32020 }
32021 {
32022 if (!wxPyCheckForApp()) SWIG_fail;
32023 PyThreadState* __tstate = wxPyBeginAllowThreads();
32024 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32025 wxPyEndAllowThreads(__tstate);
32026 if (PyErr_Occurred()) SWIG_fail;
32027 }
32028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32029 {
32030 if (temp7)
32031 delete arg7;
32032 }
32033 return resultobj;
32034 fail:
32035 {
32036 if (temp7)
32037 delete arg7;
32038 }
32039 return NULL;
32040 }
32041
32042
32043 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32044 PyObject *resultobj = 0;
32045 wxListView *result = 0 ;
32046
32047 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32048 {
32049 if (!wxPyCheckForApp()) SWIG_fail;
32050 PyThreadState* __tstate = wxPyBeginAllowThreads();
32051 result = (wxListView *)new wxListView();
32052 wxPyEndAllowThreads(__tstate);
32053 if (PyErr_Occurred()) SWIG_fail;
32054 }
32055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32056 return resultobj;
32057 fail:
32058 return NULL;
32059 }
32060
32061
32062 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32063 PyObject *resultobj = 0;
32064 wxListView *arg1 = (wxListView *) 0 ;
32065 wxWindow *arg2 = (wxWindow *) 0 ;
32066 int arg3 = (int) -1 ;
32067 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32068 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32069 wxSize const &arg5_defvalue = wxDefaultSize ;
32070 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32071 long arg6 = (long) wxLC_REPORT ;
32072 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32073 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32074 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32075 wxString *arg8 = (wxString *) &arg8_defvalue ;
32076 bool result;
32077 void *argp1 = 0 ;
32078 int res1 = 0 ;
32079 void *argp2 = 0 ;
32080 int res2 = 0 ;
32081 int val3 ;
32082 int ecode3 = 0 ;
32083 wxPoint temp4 ;
32084 wxSize temp5 ;
32085 long val6 ;
32086 int ecode6 = 0 ;
32087 void *argp7 = 0 ;
32088 int res7 = 0 ;
32089 bool temp8 = false ;
32090 PyObject * obj0 = 0 ;
32091 PyObject * obj1 = 0 ;
32092 PyObject * obj2 = 0 ;
32093 PyObject * obj3 = 0 ;
32094 PyObject * obj4 = 0 ;
32095 PyObject * obj5 = 0 ;
32096 PyObject * obj6 = 0 ;
32097 PyObject * obj7 = 0 ;
32098 char * kwnames[] = {
32099 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32100 };
32101
32102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32104 if (!SWIG_IsOK(res1)) {
32105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32106 }
32107 arg1 = reinterpret_cast< wxListView * >(argp1);
32108 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32109 if (!SWIG_IsOK(res2)) {
32110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32111 }
32112 arg2 = reinterpret_cast< wxWindow * >(argp2);
32113 if (obj2) {
32114 ecode3 = SWIG_AsVal_int(obj2, &val3);
32115 if (!SWIG_IsOK(ecode3)) {
32116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32117 }
32118 arg3 = static_cast< int >(val3);
32119 }
32120 if (obj3) {
32121 {
32122 arg4 = &temp4;
32123 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32124 }
32125 }
32126 if (obj4) {
32127 {
32128 arg5 = &temp5;
32129 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32130 }
32131 }
32132 if (obj5) {
32133 ecode6 = SWIG_AsVal_long(obj5, &val6);
32134 if (!SWIG_IsOK(ecode6)) {
32135 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32136 }
32137 arg6 = static_cast< long >(val6);
32138 }
32139 if (obj6) {
32140 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32141 if (!SWIG_IsOK(res7)) {
32142 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32143 }
32144 if (!argp7) {
32145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32146 }
32147 arg7 = reinterpret_cast< wxValidator * >(argp7);
32148 }
32149 if (obj7) {
32150 {
32151 arg8 = wxString_in_helper(obj7);
32152 if (arg8 == NULL) SWIG_fail;
32153 temp8 = true;
32154 }
32155 }
32156 {
32157 PyThreadState* __tstate = wxPyBeginAllowThreads();
32158 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32159 wxPyEndAllowThreads(__tstate);
32160 if (PyErr_Occurred()) SWIG_fail;
32161 }
32162 {
32163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32164 }
32165 {
32166 if (temp8)
32167 delete arg8;
32168 }
32169 return resultobj;
32170 fail:
32171 {
32172 if (temp8)
32173 delete arg8;
32174 }
32175 return NULL;
32176 }
32177
32178
32179 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32180 PyObject *resultobj = 0;
32181 wxListView *arg1 = (wxListView *) 0 ;
32182 long arg2 ;
32183 bool arg3 = (bool) true ;
32184 void *argp1 = 0 ;
32185 int res1 = 0 ;
32186 long val2 ;
32187 int ecode2 = 0 ;
32188 bool val3 ;
32189 int ecode3 = 0 ;
32190 PyObject * obj0 = 0 ;
32191 PyObject * obj1 = 0 ;
32192 PyObject * obj2 = 0 ;
32193 char * kwnames[] = {
32194 (char *) "self",(char *) "n",(char *) "on", NULL
32195 };
32196
32197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32199 if (!SWIG_IsOK(res1)) {
32200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32201 }
32202 arg1 = reinterpret_cast< wxListView * >(argp1);
32203 ecode2 = SWIG_AsVal_long(obj1, &val2);
32204 if (!SWIG_IsOK(ecode2)) {
32205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32206 }
32207 arg2 = static_cast< long >(val2);
32208 if (obj2) {
32209 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32210 if (!SWIG_IsOK(ecode3)) {
32211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32212 }
32213 arg3 = static_cast< bool >(val3);
32214 }
32215 {
32216 PyThreadState* __tstate = wxPyBeginAllowThreads();
32217 (arg1)->Select(arg2,arg3);
32218 wxPyEndAllowThreads(__tstate);
32219 if (PyErr_Occurred()) SWIG_fail;
32220 }
32221 resultobj = SWIG_Py_Void();
32222 return resultobj;
32223 fail:
32224 return NULL;
32225 }
32226
32227
32228 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32229 PyObject *resultobj = 0;
32230 wxListView *arg1 = (wxListView *) 0 ;
32231 long arg2 ;
32232 void *argp1 = 0 ;
32233 int res1 = 0 ;
32234 long val2 ;
32235 int ecode2 = 0 ;
32236 PyObject * obj0 = 0 ;
32237 PyObject * obj1 = 0 ;
32238 char * kwnames[] = {
32239 (char *) "self",(char *) "index", NULL
32240 };
32241
32242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32244 if (!SWIG_IsOK(res1)) {
32245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32246 }
32247 arg1 = reinterpret_cast< wxListView * >(argp1);
32248 ecode2 = SWIG_AsVal_long(obj1, &val2);
32249 if (!SWIG_IsOK(ecode2)) {
32250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32251 }
32252 arg2 = static_cast< long >(val2);
32253 {
32254 PyThreadState* __tstate = wxPyBeginAllowThreads();
32255 (arg1)->Focus(arg2);
32256 wxPyEndAllowThreads(__tstate);
32257 if (PyErr_Occurred()) SWIG_fail;
32258 }
32259 resultobj = SWIG_Py_Void();
32260 return resultobj;
32261 fail:
32262 return NULL;
32263 }
32264
32265
32266 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32267 PyObject *resultobj = 0;
32268 wxListView *arg1 = (wxListView *) 0 ;
32269 long result;
32270 void *argp1 = 0 ;
32271 int res1 = 0 ;
32272 PyObject *swig_obj[1] ;
32273
32274 if (!args) SWIG_fail;
32275 swig_obj[0] = args;
32276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32277 if (!SWIG_IsOK(res1)) {
32278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32279 }
32280 arg1 = reinterpret_cast< wxListView * >(argp1);
32281 {
32282 PyThreadState* __tstate = wxPyBeginAllowThreads();
32283 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32284 wxPyEndAllowThreads(__tstate);
32285 if (PyErr_Occurred()) SWIG_fail;
32286 }
32287 resultobj = SWIG_From_long(static_cast< long >(result));
32288 return resultobj;
32289 fail:
32290 return NULL;
32291 }
32292
32293
32294 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32295 PyObject *resultobj = 0;
32296 wxListView *arg1 = (wxListView *) 0 ;
32297 long arg2 ;
32298 long result;
32299 void *argp1 = 0 ;
32300 int res1 = 0 ;
32301 long val2 ;
32302 int ecode2 = 0 ;
32303 PyObject * obj0 = 0 ;
32304 PyObject * obj1 = 0 ;
32305 char * kwnames[] = {
32306 (char *) "self",(char *) "item", NULL
32307 };
32308
32309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32311 if (!SWIG_IsOK(res1)) {
32312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32313 }
32314 arg1 = reinterpret_cast< wxListView * >(argp1);
32315 ecode2 = SWIG_AsVal_long(obj1, &val2);
32316 if (!SWIG_IsOK(ecode2)) {
32317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32318 }
32319 arg2 = static_cast< long >(val2);
32320 {
32321 PyThreadState* __tstate = wxPyBeginAllowThreads();
32322 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32323 wxPyEndAllowThreads(__tstate);
32324 if (PyErr_Occurred()) SWIG_fail;
32325 }
32326 resultobj = SWIG_From_long(static_cast< long >(result));
32327 return resultobj;
32328 fail:
32329 return NULL;
32330 }
32331
32332
32333 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32334 PyObject *resultobj = 0;
32335 wxListView *arg1 = (wxListView *) 0 ;
32336 long result;
32337 void *argp1 = 0 ;
32338 int res1 = 0 ;
32339 PyObject *swig_obj[1] ;
32340
32341 if (!args) SWIG_fail;
32342 swig_obj[0] = args;
32343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32344 if (!SWIG_IsOK(res1)) {
32345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32346 }
32347 arg1 = reinterpret_cast< wxListView * >(argp1);
32348 {
32349 PyThreadState* __tstate = wxPyBeginAllowThreads();
32350 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32351 wxPyEndAllowThreads(__tstate);
32352 if (PyErr_Occurred()) SWIG_fail;
32353 }
32354 resultobj = SWIG_From_long(static_cast< long >(result));
32355 return resultobj;
32356 fail:
32357 return NULL;
32358 }
32359
32360
32361 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32362 PyObject *resultobj = 0;
32363 wxListView *arg1 = (wxListView *) 0 ;
32364 long arg2 ;
32365 bool result;
32366 void *argp1 = 0 ;
32367 int res1 = 0 ;
32368 long val2 ;
32369 int ecode2 = 0 ;
32370 PyObject * obj0 = 0 ;
32371 PyObject * obj1 = 0 ;
32372 char * kwnames[] = {
32373 (char *) "self",(char *) "index", NULL
32374 };
32375
32376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32378 if (!SWIG_IsOK(res1)) {
32379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32380 }
32381 arg1 = reinterpret_cast< wxListView * >(argp1);
32382 ecode2 = SWIG_AsVal_long(obj1, &val2);
32383 if (!SWIG_IsOK(ecode2)) {
32384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32385 }
32386 arg2 = static_cast< long >(val2);
32387 {
32388 PyThreadState* __tstate = wxPyBeginAllowThreads();
32389 result = (bool)(arg1)->IsSelected(arg2);
32390 wxPyEndAllowThreads(__tstate);
32391 if (PyErr_Occurred()) SWIG_fail;
32392 }
32393 {
32394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32395 }
32396 return resultobj;
32397 fail:
32398 return NULL;
32399 }
32400
32401
32402 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32403 PyObject *resultobj = 0;
32404 wxListView *arg1 = (wxListView *) 0 ;
32405 int arg2 ;
32406 int arg3 ;
32407 void *argp1 = 0 ;
32408 int res1 = 0 ;
32409 int val2 ;
32410 int ecode2 = 0 ;
32411 int val3 ;
32412 int ecode3 = 0 ;
32413 PyObject * obj0 = 0 ;
32414 PyObject * obj1 = 0 ;
32415 PyObject * obj2 = 0 ;
32416 char * kwnames[] = {
32417 (char *) "self",(char *) "col",(char *) "image", NULL
32418 };
32419
32420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32422 if (!SWIG_IsOK(res1)) {
32423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32424 }
32425 arg1 = reinterpret_cast< wxListView * >(argp1);
32426 ecode2 = SWIG_AsVal_int(obj1, &val2);
32427 if (!SWIG_IsOK(ecode2)) {
32428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32429 }
32430 arg2 = static_cast< int >(val2);
32431 ecode3 = SWIG_AsVal_int(obj2, &val3);
32432 if (!SWIG_IsOK(ecode3)) {
32433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32434 }
32435 arg3 = static_cast< int >(val3);
32436 {
32437 PyThreadState* __tstate = wxPyBeginAllowThreads();
32438 (arg1)->SetColumnImage(arg2,arg3);
32439 wxPyEndAllowThreads(__tstate);
32440 if (PyErr_Occurred()) SWIG_fail;
32441 }
32442 resultobj = SWIG_Py_Void();
32443 return resultobj;
32444 fail:
32445 return NULL;
32446 }
32447
32448
32449 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32450 PyObject *resultobj = 0;
32451 wxListView *arg1 = (wxListView *) 0 ;
32452 int arg2 ;
32453 void *argp1 = 0 ;
32454 int res1 = 0 ;
32455 int val2 ;
32456 int ecode2 = 0 ;
32457 PyObject * obj0 = 0 ;
32458 PyObject * obj1 = 0 ;
32459 char * kwnames[] = {
32460 (char *) "self",(char *) "col", NULL
32461 };
32462
32463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32465 if (!SWIG_IsOK(res1)) {
32466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32467 }
32468 arg1 = reinterpret_cast< wxListView * >(argp1);
32469 ecode2 = SWIG_AsVal_int(obj1, &val2);
32470 if (!SWIG_IsOK(ecode2)) {
32471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32472 }
32473 arg2 = static_cast< int >(val2);
32474 {
32475 PyThreadState* __tstate = wxPyBeginAllowThreads();
32476 (arg1)->ClearColumnImage(arg2);
32477 wxPyEndAllowThreads(__tstate);
32478 if (PyErr_Occurred()) SWIG_fail;
32479 }
32480 resultobj = SWIG_Py_Void();
32481 return resultobj;
32482 fail:
32483 return NULL;
32484 }
32485
32486
32487 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32488 PyObject *obj;
32489 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32490 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32491 return SWIG_Py_Void();
32492 }
32493
32494 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32495 return SWIG_Python_InitShadowInstance(args);
32496 }
32497
32498 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32499 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32500 return 1;
32501 }
32502
32503
32504 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32505 PyObject *pyobj = 0;
32506
32507 {
32508 #if wxUSE_UNICODE
32509 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32510 #else
32511 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32512 #endif
32513 }
32514 return pyobj;
32515 }
32516
32517
32518 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32519 PyObject *resultobj = 0;
32520 wxTreeItemId *result = 0 ;
32521
32522 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32523 {
32524 PyThreadState* __tstate = wxPyBeginAllowThreads();
32525 result = (wxTreeItemId *)new wxTreeItemId();
32526 wxPyEndAllowThreads(__tstate);
32527 if (PyErr_Occurred()) SWIG_fail;
32528 }
32529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32530 return resultobj;
32531 fail:
32532 return NULL;
32533 }
32534
32535
32536 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32537 PyObject *resultobj = 0;
32538 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32539 void *argp1 = 0 ;
32540 int res1 = 0 ;
32541 PyObject *swig_obj[1] ;
32542
32543 if (!args) SWIG_fail;
32544 swig_obj[0] = args;
32545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32546 if (!SWIG_IsOK(res1)) {
32547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32548 }
32549 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32550 {
32551 PyThreadState* __tstate = wxPyBeginAllowThreads();
32552 delete arg1;
32553
32554 wxPyEndAllowThreads(__tstate);
32555 if (PyErr_Occurred()) SWIG_fail;
32556 }
32557 resultobj = SWIG_Py_Void();
32558 return resultobj;
32559 fail:
32560 return NULL;
32561 }
32562
32563
32564 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32565 PyObject *resultobj = 0;
32566 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32567 bool result;
32568 void *argp1 = 0 ;
32569 int res1 = 0 ;
32570 PyObject *swig_obj[1] ;
32571
32572 if (!args) SWIG_fail;
32573 swig_obj[0] = args;
32574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32575 if (!SWIG_IsOK(res1)) {
32576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32577 }
32578 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32579 {
32580 PyThreadState* __tstate = wxPyBeginAllowThreads();
32581 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32582 wxPyEndAllowThreads(__tstate);
32583 if (PyErr_Occurred()) SWIG_fail;
32584 }
32585 {
32586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32587 }
32588 return resultobj;
32589 fail:
32590 return NULL;
32591 }
32592
32593
32594 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32595 PyObject *resultobj = 0;
32596 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32597 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32598 bool result;
32599 void *argp1 = 0 ;
32600 int res1 = 0 ;
32601 void *argp2 = 0 ;
32602 int res2 = 0 ;
32603 PyObject * obj0 = 0 ;
32604 PyObject * obj1 = 0 ;
32605 char * kwnames[] = {
32606 (char *) "self",(char *) "other", NULL
32607 };
32608
32609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32611 if (!SWIG_IsOK(res1)) {
32612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32613 }
32614 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32615 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32616 if (!SWIG_IsOK(res2)) {
32617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32618 }
32619 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32620 {
32621 PyThreadState* __tstate = wxPyBeginAllowThreads();
32622 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32623 wxPyEndAllowThreads(__tstate);
32624 if (PyErr_Occurred()) SWIG_fail;
32625 }
32626 {
32627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32628 }
32629 return resultobj;
32630 fail:
32631 return NULL;
32632 }
32633
32634
32635 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32636 PyObject *resultobj = 0;
32637 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32638 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32639 bool result;
32640 void *argp1 = 0 ;
32641 int res1 = 0 ;
32642 void *argp2 = 0 ;
32643 int res2 = 0 ;
32644 PyObject * obj0 = 0 ;
32645 PyObject * obj1 = 0 ;
32646 char * kwnames[] = {
32647 (char *) "self",(char *) "other", NULL
32648 };
32649
32650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32652 if (!SWIG_IsOK(res1)) {
32653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32654 }
32655 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32656 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32657 if (!SWIG_IsOK(res2)) {
32658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32659 }
32660 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32661 {
32662 PyThreadState* __tstate = wxPyBeginAllowThreads();
32663 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32664 wxPyEndAllowThreads(__tstate);
32665 if (PyErr_Occurred()) SWIG_fail;
32666 }
32667 {
32668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32669 }
32670 return resultobj;
32671 fail:
32672 return NULL;
32673 }
32674
32675
32676 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32677 PyObject *resultobj = 0;
32678 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32679 void *arg2 = (void *) 0 ;
32680 void *argp1 = 0 ;
32681 int res1 = 0 ;
32682 int res2 ;
32683 PyObject *swig_obj[2] ;
32684
32685 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32687 if (!SWIG_IsOK(res1)) {
32688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32689 }
32690 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32691 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32692 if (!SWIG_IsOK(res2)) {
32693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32694 }
32695 if (arg1) (arg1)->m_pItem = arg2;
32696
32697 resultobj = SWIG_Py_Void();
32698 return resultobj;
32699 fail:
32700 return NULL;
32701 }
32702
32703
32704 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32705 PyObject *resultobj = 0;
32706 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32707 void *result = 0 ;
32708 void *argp1 = 0 ;
32709 int res1 = 0 ;
32710 PyObject *swig_obj[1] ;
32711
32712 if (!args) SWIG_fail;
32713 swig_obj[0] = args;
32714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32715 if (!SWIG_IsOK(res1)) {
32716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32717 }
32718 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32719 result = (void *) ((arg1)->m_pItem);
32720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32721 return resultobj;
32722 fail:
32723 return NULL;
32724 }
32725
32726
32727 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32728 PyObject *obj;
32729 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32730 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32731 return SWIG_Py_Void();
32732 }
32733
32734 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32735 return SWIG_Python_InitShadowInstance(args);
32736 }
32737
32738 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32739 PyObject *resultobj = 0;
32740 PyObject *arg1 = (PyObject *) NULL ;
32741 wxPyTreeItemData *result = 0 ;
32742 PyObject * obj0 = 0 ;
32743 char * kwnames[] = {
32744 (char *) "obj", NULL
32745 };
32746
32747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32748 if (obj0) {
32749 arg1 = obj0;
32750 }
32751 {
32752 PyThreadState* __tstate = wxPyBeginAllowThreads();
32753 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32754 wxPyEndAllowThreads(__tstate);
32755 if (PyErr_Occurred()) SWIG_fail;
32756 }
32757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32758 return resultobj;
32759 fail:
32760 return NULL;
32761 }
32762
32763
32764 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32765 PyObject *resultobj = 0;
32766 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32767 void *argp1 = 0 ;
32768 int res1 = 0 ;
32769 PyObject *swig_obj[1] ;
32770
32771 if (!args) SWIG_fail;
32772 swig_obj[0] = args;
32773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32774 if (!SWIG_IsOK(res1)) {
32775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32776 }
32777 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32778 {
32779 PyThreadState* __tstate = wxPyBeginAllowThreads();
32780 delete arg1;
32781
32782 wxPyEndAllowThreads(__tstate);
32783 if (PyErr_Occurred()) SWIG_fail;
32784 }
32785 resultobj = SWIG_Py_Void();
32786 return resultobj;
32787 fail:
32788 return NULL;
32789 }
32790
32791
32792 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32793 PyObject *resultobj = 0;
32794 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32795 PyObject *result = 0 ;
32796 void *argp1 = 0 ;
32797 int res1 = 0 ;
32798 PyObject *swig_obj[1] ;
32799
32800 if (!args) SWIG_fail;
32801 swig_obj[0] = args;
32802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32803 if (!SWIG_IsOK(res1)) {
32804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32805 }
32806 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32807 {
32808 PyThreadState* __tstate = wxPyBeginAllowThreads();
32809 result = (PyObject *)(arg1)->GetData();
32810 wxPyEndAllowThreads(__tstate);
32811 if (PyErr_Occurred()) SWIG_fail;
32812 }
32813 resultobj = result;
32814 return resultobj;
32815 fail:
32816 return NULL;
32817 }
32818
32819
32820 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32821 PyObject *resultobj = 0;
32822 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32823 PyObject *arg2 = (PyObject *) 0 ;
32824 void *argp1 = 0 ;
32825 int res1 = 0 ;
32826 PyObject * obj0 = 0 ;
32827 PyObject * obj1 = 0 ;
32828 char * kwnames[] = {
32829 (char *) "self",(char *) "obj", NULL
32830 };
32831
32832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32834 if (!SWIG_IsOK(res1)) {
32835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32836 }
32837 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32838 arg2 = obj1;
32839 {
32840 PyThreadState* __tstate = wxPyBeginAllowThreads();
32841 (arg1)->SetData(arg2);
32842 wxPyEndAllowThreads(__tstate);
32843 if (PyErr_Occurred()) SWIG_fail;
32844 }
32845 resultobj = SWIG_Py_Void();
32846 return resultobj;
32847 fail:
32848 return NULL;
32849 }
32850
32851
32852 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32853 PyObject *resultobj = 0;
32854 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32855 wxTreeItemId *result = 0 ;
32856 void *argp1 = 0 ;
32857 int res1 = 0 ;
32858 PyObject *swig_obj[1] ;
32859
32860 if (!args) SWIG_fail;
32861 swig_obj[0] = args;
32862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32863 if (!SWIG_IsOK(res1)) {
32864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32865 }
32866 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32867 {
32868 PyThreadState* __tstate = wxPyBeginAllowThreads();
32869 {
32870 wxTreeItemId const &_result_ref = (arg1)->GetId();
32871 result = (wxTreeItemId *) &_result_ref;
32872 }
32873 wxPyEndAllowThreads(__tstate);
32874 if (PyErr_Occurred()) SWIG_fail;
32875 }
32876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32877 return resultobj;
32878 fail:
32879 return NULL;
32880 }
32881
32882
32883 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32884 PyObject *resultobj = 0;
32885 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32886 wxTreeItemId *arg2 = 0 ;
32887 void *argp1 = 0 ;
32888 int res1 = 0 ;
32889 void *argp2 = 0 ;
32890 int res2 = 0 ;
32891 PyObject * obj0 = 0 ;
32892 PyObject * obj1 = 0 ;
32893 char * kwnames[] = {
32894 (char *) "self",(char *) "id", NULL
32895 };
32896
32897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32899 if (!SWIG_IsOK(res1)) {
32900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32901 }
32902 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32903 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32904 if (!SWIG_IsOK(res2)) {
32905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32906 }
32907 if (!argp2) {
32908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32909 }
32910 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32911 {
32912 PyThreadState* __tstate = wxPyBeginAllowThreads();
32913 (arg1)->SetId((wxTreeItemId const &)*arg2);
32914 wxPyEndAllowThreads(__tstate);
32915 if (PyErr_Occurred()) SWIG_fail;
32916 }
32917 resultobj = SWIG_Py_Void();
32918 return resultobj;
32919 fail:
32920 return NULL;
32921 }
32922
32923
32924 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32925 PyObject *resultobj = 0;
32926 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32927 void *argp1 = 0 ;
32928 int res1 = 0 ;
32929 PyObject *swig_obj[1] ;
32930
32931 if (!args) SWIG_fail;
32932 swig_obj[0] = args;
32933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32934 if (!SWIG_IsOK(res1)) {
32935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32936 }
32937 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32938 {
32939 PyThreadState* __tstate = wxPyBeginAllowThreads();
32940 wxPyTreeItemData_Destroy(arg1);
32941 wxPyEndAllowThreads(__tstate);
32942 if (PyErr_Occurred()) SWIG_fail;
32943 }
32944 resultobj = SWIG_Py_Void();
32945 return resultobj;
32946 fail:
32947 return NULL;
32948 }
32949
32950
32951 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32952 PyObject *obj;
32953 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32954 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32955 return SWIG_Py_Void();
32956 }
32957
32958 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32959 return SWIG_Python_InitShadowInstance(args);
32960 }
32961
32962 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32963 {
32964 void *argp = 0;
32965 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32966 if (!SWIG_IsOK(res)) {
32967 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32968 }
32969 if (!argp) {
32970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32971 } else {
32972 wxTreeItemId * temp;
32973 temp = reinterpret_cast< wxTreeItemId * >(argp);
32974 wxNullTreeItemId = *temp;
32975 if (SWIG_IsNewObj(res)) delete temp;
32976 }
32977 }
32978 return 0;
32979 fail:
32980 return 1;
32981 }
32982
32983
32984 SWIGINTERN PyObject *NullTreeItemId_get(void) {
32985 PyObject *pyobj = 0;
32986
32987 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32988 return pyobj;
32989 }
32990
32991
32992 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32993 PyObject *resultobj = 0;
32994 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32995 int arg2 = (int) 0 ;
32996 wxTreeEvent *result = 0 ;
32997 int val1 ;
32998 int ecode1 = 0 ;
32999 int val2 ;
33000 int ecode2 = 0 ;
33001
33002 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33003 if (swig_obj[0]) {
33004 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33005 if (!SWIG_IsOK(ecode1)) {
33006 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33007 }
33008 arg1 = static_cast< wxEventType >(val1);
33009 }
33010 if (swig_obj[1]) {
33011 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33012 if (!SWIG_IsOK(ecode2)) {
33013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33014 }
33015 arg2 = static_cast< int >(val2);
33016 }
33017 {
33018 PyThreadState* __tstate = wxPyBeginAllowThreads();
33019 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33020 wxPyEndAllowThreads(__tstate);
33021 if (PyErr_Occurred()) SWIG_fail;
33022 }
33023 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33024 return resultobj;
33025 fail:
33026 return NULL;
33027 }
33028
33029
33030 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33031 PyObject *resultobj = 0;
33032 wxEventType arg1 ;
33033 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33034 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33035 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33036 wxTreeEvent *result = 0 ;
33037 int val1 ;
33038 int ecode1 = 0 ;
33039 void *argp2 = 0 ;
33040 int res2 = 0 ;
33041 void *argp3 = 0 ;
33042 int res3 = 0 ;
33043
33044 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33045 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33046 if (!SWIG_IsOK(ecode1)) {
33047 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33048 }
33049 arg1 = static_cast< wxEventType >(val1);
33050 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33051 if (!SWIG_IsOK(res2)) {
33052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33053 }
33054 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33055 if (swig_obj[2]) {
33056 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33057 if (!SWIG_IsOK(res3)) {
33058 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33059 }
33060 if (!argp3) {
33061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33062 }
33063 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33064 }
33065 {
33066 PyThreadState* __tstate = wxPyBeginAllowThreads();
33067 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33068 wxPyEndAllowThreads(__tstate);
33069 if (PyErr_Occurred()) SWIG_fail;
33070 }
33071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33072 return resultobj;
33073 fail:
33074 return NULL;
33075 }
33076
33077
33078 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33079 int argc;
33080 PyObject *argv[4];
33081
33082 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33083 --argc;
33084 if ((argc >= 0) && (argc <= 2)) {
33085 int _v = 0;
33086 if (argc > 1) {
33087 {
33088 {
33089 int res = SWIG_AsVal_int(argv[1], NULL);
33090 _v = SWIG_CheckState(res);
33091 }
33092 }
33093 if (!_v) goto check_1;
33094 }
33095 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33096 }
33097 check_1:
33098
33099 if ((argc >= 2) && (argc <= 3)) {
33100 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33101 }
33102
33103 fail:
33104 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33105 return NULL;
33106 }
33107
33108
33109 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33110 PyObject *resultobj = 0;
33111 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33112 wxTreeItemId result;
33113 void *argp1 = 0 ;
33114 int res1 = 0 ;
33115 PyObject *swig_obj[1] ;
33116
33117 if (!args) SWIG_fail;
33118 swig_obj[0] = args;
33119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33120 if (!SWIG_IsOK(res1)) {
33121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33122 }
33123 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33124 {
33125 PyThreadState* __tstate = wxPyBeginAllowThreads();
33126 result = ((wxTreeEvent const *)arg1)->GetItem();
33127 wxPyEndAllowThreads(__tstate);
33128 if (PyErr_Occurred()) SWIG_fail;
33129 }
33130 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33131 return resultobj;
33132 fail:
33133 return NULL;
33134 }
33135
33136
33137 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33138 PyObject *resultobj = 0;
33139 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33140 wxTreeItemId *arg2 = 0 ;
33141 void *argp1 = 0 ;
33142 int res1 = 0 ;
33143 void *argp2 = 0 ;
33144 int res2 = 0 ;
33145 PyObject * obj0 = 0 ;
33146 PyObject * obj1 = 0 ;
33147 char * kwnames[] = {
33148 (char *) "self",(char *) "item", NULL
33149 };
33150
33151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33153 if (!SWIG_IsOK(res1)) {
33154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33155 }
33156 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33157 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33158 if (!SWIG_IsOK(res2)) {
33159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33160 }
33161 if (!argp2) {
33162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33163 }
33164 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33165 {
33166 PyThreadState* __tstate = wxPyBeginAllowThreads();
33167 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33168 wxPyEndAllowThreads(__tstate);
33169 if (PyErr_Occurred()) SWIG_fail;
33170 }
33171 resultobj = SWIG_Py_Void();
33172 return resultobj;
33173 fail:
33174 return NULL;
33175 }
33176
33177
33178 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33179 PyObject *resultobj = 0;
33180 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33181 wxTreeItemId result;
33182 void *argp1 = 0 ;
33183 int res1 = 0 ;
33184 PyObject *swig_obj[1] ;
33185
33186 if (!args) SWIG_fail;
33187 swig_obj[0] = args;
33188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33189 if (!SWIG_IsOK(res1)) {
33190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33191 }
33192 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33193 {
33194 PyThreadState* __tstate = wxPyBeginAllowThreads();
33195 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33196 wxPyEndAllowThreads(__tstate);
33197 if (PyErr_Occurred()) SWIG_fail;
33198 }
33199 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33200 return resultobj;
33201 fail:
33202 return NULL;
33203 }
33204
33205
33206 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33207 PyObject *resultobj = 0;
33208 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33209 wxTreeItemId *arg2 = 0 ;
33210 void *argp1 = 0 ;
33211 int res1 = 0 ;
33212 void *argp2 = 0 ;
33213 int res2 = 0 ;
33214 PyObject * obj0 = 0 ;
33215 PyObject * obj1 = 0 ;
33216 char * kwnames[] = {
33217 (char *) "self",(char *) "item", NULL
33218 };
33219
33220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33222 if (!SWIG_IsOK(res1)) {
33223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33224 }
33225 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33226 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33227 if (!SWIG_IsOK(res2)) {
33228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33229 }
33230 if (!argp2) {
33231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33232 }
33233 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33234 {
33235 PyThreadState* __tstate = wxPyBeginAllowThreads();
33236 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33237 wxPyEndAllowThreads(__tstate);
33238 if (PyErr_Occurred()) SWIG_fail;
33239 }
33240 resultobj = SWIG_Py_Void();
33241 return resultobj;
33242 fail:
33243 return NULL;
33244 }
33245
33246
33247 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33248 PyObject *resultobj = 0;
33249 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33250 wxPoint result;
33251 void *argp1 = 0 ;
33252 int res1 = 0 ;
33253 PyObject *swig_obj[1] ;
33254
33255 if (!args) SWIG_fail;
33256 swig_obj[0] = args;
33257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33258 if (!SWIG_IsOK(res1)) {
33259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33260 }
33261 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33262 {
33263 PyThreadState* __tstate = wxPyBeginAllowThreads();
33264 result = ((wxTreeEvent const *)arg1)->GetPoint();
33265 wxPyEndAllowThreads(__tstate);
33266 if (PyErr_Occurred()) SWIG_fail;
33267 }
33268 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33269 return resultobj;
33270 fail:
33271 return NULL;
33272 }
33273
33274
33275 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33276 PyObject *resultobj = 0;
33277 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33278 wxPoint *arg2 = 0 ;
33279 void *argp1 = 0 ;
33280 int res1 = 0 ;
33281 wxPoint temp2 ;
33282 PyObject * obj0 = 0 ;
33283 PyObject * obj1 = 0 ;
33284 char * kwnames[] = {
33285 (char *) "self",(char *) "pt", NULL
33286 };
33287
33288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33290 if (!SWIG_IsOK(res1)) {
33291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33292 }
33293 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33294 {
33295 arg2 = &temp2;
33296 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33297 }
33298 {
33299 PyThreadState* __tstate = wxPyBeginAllowThreads();
33300 (arg1)->SetPoint((wxPoint const &)*arg2);
33301 wxPyEndAllowThreads(__tstate);
33302 if (PyErr_Occurred()) SWIG_fail;
33303 }
33304 resultobj = SWIG_Py_Void();
33305 return resultobj;
33306 fail:
33307 return NULL;
33308 }
33309
33310
33311 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33312 PyObject *resultobj = 0;
33313 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33314 wxKeyEvent *result = 0 ;
33315 void *argp1 = 0 ;
33316 int res1 = 0 ;
33317 PyObject *swig_obj[1] ;
33318
33319 if (!args) SWIG_fail;
33320 swig_obj[0] = args;
33321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33322 if (!SWIG_IsOK(res1)) {
33323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33324 }
33325 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33326 {
33327 PyThreadState* __tstate = wxPyBeginAllowThreads();
33328 {
33329 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33330 result = (wxKeyEvent *) &_result_ref;
33331 }
33332 wxPyEndAllowThreads(__tstate);
33333 if (PyErr_Occurred()) SWIG_fail;
33334 }
33335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33336 return resultobj;
33337 fail:
33338 return NULL;
33339 }
33340
33341
33342 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33343 PyObject *resultobj = 0;
33344 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33345 int result;
33346 void *argp1 = 0 ;
33347 int res1 = 0 ;
33348 PyObject *swig_obj[1] ;
33349
33350 if (!args) SWIG_fail;
33351 swig_obj[0] = args;
33352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33353 if (!SWIG_IsOK(res1)) {
33354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33355 }
33356 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33357 {
33358 PyThreadState* __tstate = wxPyBeginAllowThreads();
33359 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33360 wxPyEndAllowThreads(__tstate);
33361 if (PyErr_Occurred()) SWIG_fail;
33362 }
33363 resultobj = SWIG_From_int(static_cast< int >(result));
33364 return resultobj;
33365 fail:
33366 return NULL;
33367 }
33368
33369
33370 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33371 PyObject *resultobj = 0;
33372 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33373 wxKeyEvent *arg2 = 0 ;
33374 void *argp1 = 0 ;
33375 int res1 = 0 ;
33376 void *argp2 = 0 ;
33377 int res2 = 0 ;
33378 PyObject * obj0 = 0 ;
33379 PyObject * obj1 = 0 ;
33380 char * kwnames[] = {
33381 (char *) "self",(char *) "evt", NULL
33382 };
33383
33384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33386 if (!SWIG_IsOK(res1)) {
33387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33388 }
33389 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33390 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33391 if (!SWIG_IsOK(res2)) {
33392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33393 }
33394 if (!argp2) {
33395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33396 }
33397 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33398 {
33399 PyThreadState* __tstate = wxPyBeginAllowThreads();
33400 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33401 wxPyEndAllowThreads(__tstate);
33402 if (PyErr_Occurred()) SWIG_fail;
33403 }
33404 resultobj = SWIG_Py_Void();
33405 return resultobj;
33406 fail:
33407 return NULL;
33408 }
33409
33410
33411 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33412 PyObject *resultobj = 0;
33413 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33414 wxString *result = 0 ;
33415 void *argp1 = 0 ;
33416 int res1 = 0 ;
33417 PyObject *swig_obj[1] ;
33418
33419 if (!args) SWIG_fail;
33420 swig_obj[0] = args;
33421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33422 if (!SWIG_IsOK(res1)) {
33423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33424 }
33425 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33426 {
33427 PyThreadState* __tstate = wxPyBeginAllowThreads();
33428 {
33429 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33430 result = (wxString *) &_result_ref;
33431 }
33432 wxPyEndAllowThreads(__tstate);
33433 if (PyErr_Occurred()) SWIG_fail;
33434 }
33435 {
33436 #if wxUSE_UNICODE
33437 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33438 #else
33439 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33440 #endif
33441 }
33442 return resultobj;
33443 fail:
33444 return NULL;
33445 }
33446
33447
33448 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33449 PyObject *resultobj = 0;
33450 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33451 wxString *arg2 = 0 ;
33452 void *argp1 = 0 ;
33453 int res1 = 0 ;
33454 bool temp2 = false ;
33455 PyObject * obj0 = 0 ;
33456 PyObject * obj1 = 0 ;
33457 char * kwnames[] = {
33458 (char *) "self",(char *) "label", NULL
33459 };
33460
33461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33463 if (!SWIG_IsOK(res1)) {
33464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33465 }
33466 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33467 {
33468 arg2 = wxString_in_helper(obj1);
33469 if (arg2 == NULL) SWIG_fail;
33470 temp2 = true;
33471 }
33472 {
33473 PyThreadState* __tstate = wxPyBeginAllowThreads();
33474 (arg1)->SetLabel((wxString const &)*arg2);
33475 wxPyEndAllowThreads(__tstate);
33476 if (PyErr_Occurred()) SWIG_fail;
33477 }
33478 resultobj = SWIG_Py_Void();
33479 {
33480 if (temp2)
33481 delete arg2;
33482 }
33483 return resultobj;
33484 fail:
33485 {
33486 if (temp2)
33487 delete arg2;
33488 }
33489 return NULL;
33490 }
33491
33492
33493 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33494 PyObject *resultobj = 0;
33495 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33496 bool result;
33497 void *argp1 = 0 ;
33498 int res1 = 0 ;
33499 PyObject *swig_obj[1] ;
33500
33501 if (!args) SWIG_fail;
33502 swig_obj[0] = args;
33503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33504 if (!SWIG_IsOK(res1)) {
33505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33506 }
33507 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33508 {
33509 PyThreadState* __tstate = wxPyBeginAllowThreads();
33510 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33511 wxPyEndAllowThreads(__tstate);
33512 if (PyErr_Occurred()) SWIG_fail;
33513 }
33514 {
33515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33516 }
33517 return resultobj;
33518 fail:
33519 return NULL;
33520 }
33521
33522
33523 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33524 PyObject *resultobj = 0;
33525 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33526 bool arg2 ;
33527 void *argp1 = 0 ;
33528 int res1 = 0 ;
33529 bool val2 ;
33530 int ecode2 = 0 ;
33531 PyObject * obj0 = 0 ;
33532 PyObject * obj1 = 0 ;
33533 char * kwnames[] = {
33534 (char *) "self",(char *) "editCancelled", NULL
33535 };
33536
33537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33539 if (!SWIG_IsOK(res1)) {
33540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33541 }
33542 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33543 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33544 if (!SWIG_IsOK(ecode2)) {
33545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33546 }
33547 arg2 = static_cast< bool >(val2);
33548 {
33549 PyThreadState* __tstate = wxPyBeginAllowThreads();
33550 (arg1)->SetEditCanceled(arg2);
33551 wxPyEndAllowThreads(__tstate);
33552 if (PyErr_Occurred()) SWIG_fail;
33553 }
33554 resultobj = SWIG_Py_Void();
33555 return resultobj;
33556 fail:
33557 return NULL;
33558 }
33559
33560
33561 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33562 PyObject *resultobj = 0;
33563 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33564 wxString *arg2 = 0 ;
33565 void *argp1 = 0 ;
33566 int res1 = 0 ;
33567 bool temp2 = false ;
33568 PyObject * obj0 = 0 ;
33569 PyObject * obj1 = 0 ;
33570 char * kwnames[] = {
33571 (char *) "self",(char *) "toolTip", NULL
33572 };
33573
33574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33576 if (!SWIG_IsOK(res1)) {
33577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33578 }
33579 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33580 {
33581 arg2 = wxString_in_helper(obj1);
33582 if (arg2 == NULL) SWIG_fail;
33583 temp2 = true;
33584 }
33585 {
33586 PyThreadState* __tstate = wxPyBeginAllowThreads();
33587 (arg1)->SetToolTip((wxString const &)*arg2);
33588 wxPyEndAllowThreads(__tstate);
33589 if (PyErr_Occurred()) SWIG_fail;
33590 }
33591 resultobj = SWIG_Py_Void();
33592 {
33593 if (temp2)
33594 delete arg2;
33595 }
33596 return resultobj;
33597 fail:
33598 {
33599 if (temp2)
33600 delete arg2;
33601 }
33602 return NULL;
33603 }
33604
33605
33606 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33607 PyObject *resultobj = 0;
33608 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33609 wxString result;
33610 void *argp1 = 0 ;
33611 int res1 = 0 ;
33612 PyObject *swig_obj[1] ;
33613
33614 if (!args) SWIG_fail;
33615 swig_obj[0] = args;
33616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33617 if (!SWIG_IsOK(res1)) {
33618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33619 }
33620 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33621 {
33622 PyThreadState* __tstate = wxPyBeginAllowThreads();
33623 result = (arg1)->GetToolTip();
33624 wxPyEndAllowThreads(__tstate);
33625 if (PyErr_Occurred()) SWIG_fail;
33626 }
33627 {
33628 #if wxUSE_UNICODE
33629 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33630 #else
33631 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33632 #endif
33633 }
33634 return resultobj;
33635 fail:
33636 return NULL;
33637 }
33638
33639
33640 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33641 PyObject *obj;
33642 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33643 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33644 return SWIG_Py_Void();
33645 }
33646
33647 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33648 return SWIG_Python_InitShadowInstance(args);
33649 }
33650
33651 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33652 PyObject *resultobj = 0;
33653 wxWindow *arg1 = (wxWindow *) 0 ;
33654 int arg2 = (int) -1 ;
33655 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33656 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33657 wxSize const &arg4_defvalue = wxDefaultSize ;
33658 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33659 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33660 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33661 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33662 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33663 wxString *arg7 = (wxString *) &arg7_defvalue ;
33664 wxPyTreeCtrl *result = 0 ;
33665 void *argp1 = 0 ;
33666 int res1 = 0 ;
33667 int val2 ;
33668 int ecode2 = 0 ;
33669 wxPoint temp3 ;
33670 wxSize temp4 ;
33671 long val5 ;
33672 int ecode5 = 0 ;
33673 void *argp6 = 0 ;
33674 int res6 = 0 ;
33675 bool temp7 = false ;
33676 PyObject * obj0 = 0 ;
33677 PyObject * obj1 = 0 ;
33678 PyObject * obj2 = 0 ;
33679 PyObject * obj3 = 0 ;
33680 PyObject * obj4 = 0 ;
33681 PyObject * obj5 = 0 ;
33682 PyObject * obj6 = 0 ;
33683 char * kwnames[] = {
33684 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33685 };
33686
33687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33689 if (!SWIG_IsOK(res1)) {
33690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33691 }
33692 arg1 = reinterpret_cast< wxWindow * >(argp1);
33693 if (obj1) {
33694 ecode2 = SWIG_AsVal_int(obj1, &val2);
33695 if (!SWIG_IsOK(ecode2)) {
33696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33697 }
33698 arg2 = static_cast< int >(val2);
33699 }
33700 if (obj2) {
33701 {
33702 arg3 = &temp3;
33703 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33704 }
33705 }
33706 if (obj3) {
33707 {
33708 arg4 = &temp4;
33709 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33710 }
33711 }
33712 if (obj4) {
33713 ecode5 = SWIG_AsVal_long(obj4, &val5);
33714 if (!SWIG_IsOK(ecode5)) {
33715 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33716 }
33717 arg5 = static_cast< long >(val5);
33718 }
33719 if (obj5) {
33720 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33721 if (!SWIG_IsOK(res6)) {
33722 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33723 }
33724 if (!argp6) {
33725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33726 }
33727 arg6 = reinterpret_cast< wxValidator * >(argp6);
33728 }
33729 if (obj6) {
33730 {
33731 arg7 = wxString_in_helper(obj6);
33732 if (arg7 == NULL) SWIG_fail;
33733 temp7 = true;
33734 }
33735 }
33736 {
33737 if (!wxPyCheckForApp()) SWIG_fail;
33738 PyThreadState* __tstate = wxPyBeginAllowThreads();
33739 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33740 wxPyEndAllowThreads(__tstate);
33741 if (PyErr_Occurred()) SWIG_fail;
33742 }
33743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33744 {
33745 if (temp7)
33746 delete arg7;
33747 }
33748 return resultobj;
33749 fail:
33750 {
33751 if (temp7)
33752 delete arg7;
33753 }
33754 return NULL;
33755 }
33756
33757
33758 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33759 PyObject *resultobj = 0;
33760 wxPyTreeCtrl *result = 0 ;
33761
33762 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33763 {
33764 if (!wxPyCheckForApp()) SWIG_fail;
33765 PyThreadState* __tstate = wxPyBeginAllowThreads();
33766 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33767 wxPyEndAllowThreads(__tstate);
33768 if (PyErr_Occurred()) SWIG_fail;
33769 }
33770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33771 return resultobj;
33772 fail:
33773 return NULL;
33774 }
33775
33776
33777 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33778 PyObject *resultobj = 0;
33779 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33780 wxWindow *arg2 = (wxWindow *) 0 ;
33781 int arg3 = (int) -1 ;
33782 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33783 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33784 wxSize const &arg5_defvalue = wxDefaultSize ;
33785 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33786 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33787 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33788 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33789 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33790 wxString *arg8 = (wxString *) &arg8_defvalue ;
33791 bool result;
33792 void *argp1 = 0 ;
33793 int res1 = 0 ;
33794 void *argp2 = 0 ;
33795 int res2 = 0 ;
33796 int val3 ;
33797 int ecode3 = 0 ;
33798 wxPoint temp4 ;
33799 wxSize temp5 ;
33800 long val6 ;
33801 int ecode6 = 0 ;
33802 void *argp7 = 0 ;
33803 int res7 = 0 ;
33804 bool temp8 = false ;
33805 PyObject * obj0 = 0 ;
33806 PyObject * obj1 = 0 ;
33807 PyObject * obj2 = 0 ;
33808 PyObject * obj3 = 0 ;
33809 PyObject * obj4 = 0 ;
33810 PyObject * obj5 = 0 ;
33811 PyObject * obj6 = 0 ;
33812 PyObject * obj7 = 0 ;
33813 char * kwnames[] = {
33814 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33815 };
33816
33817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33819 if (!SWIG_IsOK(res1)) {
33820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33821 }
33822 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33823 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33824 if (!SWIG_IsOK(res2)) {
33825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33826 }
33827 arg2 = reinterpret_cast< wxWindow * >(argp2);
33828 if (obj2) {
33829 ecode3 = SWIG_AsVal_int(obj2, &val3);
33830 if (!SWIG_IsOK(ecode3)) {
33831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33832 }
33833 arg3 = static_cast< int >(val3);
33834 }
33835 if (obj3) {
33836 {
33837 arg4 = &temp4;
33838 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33839 }
33840 }
33841 if (obj4) {
33842 {
33843 arg5 = &temp5;
33844 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33845 }
33846 }
33847 if (obj5) {
33848 ecode6 = SWIG_AsVal_long(obj5, &val6);
33849 if (!SWIG_IsOK(ecode6)) {
33850 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33851 }
33852 arg6 = static_cast< long >(val6);
33853 }
33854 if (obj6) {
33855 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33856 if (!SWIG_IsOK(res7)) {
33857 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33858 }
33859 if (!argp7) {
33860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33861 }
33862 arg7 = reinterpret_cast< wxValidator * >(argp7);
33863 }
33864 if (obj7) {
33865 {
33866 arg8 = wxString_in_helper(obj7);
33867 if (arg8 == NULL) SWIG_fail;
33868 temp8 = true;
33869 }
33870 }
33871 {
33872 PyThreadState* __tstate = wxPyBeginAllowThreads();
33873 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33874 wxPyEndAllowThreads(__tstate);
33875 if (PyErr_Occurred()) SWIG_fail;
33876 }
33877 {
33878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33879 }
33880 {
33881 if (temp8)
33882 delete arg8;
33883 }
33884 return resultobj;
33885 fail:
33886 {
33887 if (temp8)
33888 delete arg8;
33889 }
33890 return NULL;
33891 }
33892
33893
33894 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33895 PyObject *resultobj = 0;
33896 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33897 PyObject *arg2 = (PyObject *) 0 ;
33898 PyObject *arg3 = (PyObject *) 0 ;
33899 void *argp1 = 0 ;
33900 int res1 = 0 ;
33901 PyObject * obj0 = 0 ;
33902 PyObject * obj1 = 0 ;
33903 PyObject * obj2 = 0 ;
33904 char * kwnames[] = {
33905 (char *) "self",(char *) "self",(char *) "_class", NULL
33906 };
33907
33908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33910 if (!SWIG_IsOK(res1)) {
33911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33912 }
33913 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33914 arg2 = obj1;
33915 arg3 = obj2;
33916 {
33917 PyThreadState* __tstate = wxPyBeginAllowThreads();
33918 (arg1)->_setCallbackInfo(arg2,arg3);
33919 wxPyEndAllowThreads(__tstate);
33920 if (PyErr_Occurred()) SWIG_fail;
33921 }
33922 resultobj = SWIG_Py_Void();
33923 return resultobj;
33924 fail:
33925 return NULL;
33926 }
33927
33928
33929 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33930 PyObject *resultobj = 0;
33931 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33932 unsigned int result;
33933 void *argp1 = 0 ;
33934 int res1 = 0 ;
33935 PyObject *swig_obj[1] ;
33936
33937 if (!args) SWIG_fail;
33938 swig_obj[0] = args;
33939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33940 if (!SWIG_IsOK(res1)) {
33941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33942 }
33943 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33944 {
33945 PyThreadState* __tstate = wxPyBeginAllowThreads();
33946 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33947 wxPyEndAllowThreads(__tstate);
33948 if (PyErr_Occurred()) SWIG_fail;
33949 }
33950 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33951 return resultobj;
33952 fail:
33953 return NULL;
33954 }
33955
33956
33957 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33958 PyObject *resultobj = 0;
33959 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33960 unsigned int result;
33961 void *argp1 = 0 ;
33962 int res1 = 0 ;
33963 PyObject *swig_obj[1] ;
33964
33965 if (!args) SWIG_fail;
33966 swig_obj[0] = args;
33967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33968 if (!SWIG_IsOK(res1)) {
33969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33970 }
33971 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33972 {
33973 PyThreadState* __tstate = wxPyBeginAllowThreads();
33974 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33975 wxPyEndAllowThreads(__tstate);
33976 if (PyErr_Occurred()) SWIG_fail;
33977 }
33978 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33979 return resultobj;
33980 fail:
33981 return NULL;
33982 }
33983
33984
33985 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33986 PyObject *resultobj = 0;
33987 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33988 unsigned int arg2 ;
33989 void *argp1 = 0 ;
33990 int res1 = 0 ;
33991 unsigned int val2 ;
33992 int ecode2 = 0 ;
33993 PyObject * obj0 = 0 ;
33994 PyObject * obj1 = 0 ;
33995 char * kwnames[] = {
33996 (char *) "self",(char *) "indent", NULL
33997 };
33998
33999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34001 if (!SWIG_IsOK(res1)) {
34002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34003 }
34004 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34005 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34006 if (!SWIG_IsOK(ecode2)) {
34007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34008 }
34009 arg2 = static_cast< unsigned int >(val2);
34010 {
34011 PyThreadState* __tstate = wxPyBeginAllowThreads();
34012 (arg1)->SetIndent(arg2);
34013 wxPyEndAllowThreads(__tstate);
34014 if (PyErr_Occurred()) SWIG_fail;
34015 }
34016 resultobj = SWIG_Py_Void();
34017 return resultobj;
34018 fail:
34019 return NULL;
34020 }
34021
34022
34023 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34024 PyObject *resultobj = 0;
34025 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34026 unsigned int result;
34027 void *argp1 = 0 ;
34028 int res1 = 0 ;
34029 PyObject *swig_obj[1] ;
34030
34031 if (!args) SWIG_fail;
34032 swig_obj[0] = args;
34033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34034 if (!SWIG_IsOK(res1)) {
34035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34036 }
34037 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34038 {
34039 PyThreadState* __tstate = wxPyBeginAllowThreads();
34040 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34041 wxPyEndAllowThreads(__tstate);
34042 if (PyErr_Occurred()) SWIG_fail;
34043 }
34044 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34045 return resultobj;
34046 fail:
34047 return NULL;
34048 }
34049
34050
34051 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34052 PyObject *resultobj = 0;
34053 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34054 unsigned int arg2 ;
34055 void *argp1 = 0 ;
34056 int res1 = 0 ;
34057 unsigned int val2 ;
34058 int ecode2 = 0 ;
34059 PyObject * obj0 = 0 ;
34060 PyObject * obj1 = 0 ;
34061 char * kwnames[] = {
34062 (char *) "self",(char *) "spacing", NULL
34063 };
34064
34065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34067 if (!SWIG_IsOK(res1)) {
34068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34069 }
34070 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34071 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34072 if (!SWIG_IsOK(ecode2)) {
34073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34074 }
34075 arg2 = static_cast< unsigned int >(val2);
34076 {
34077 PyThreadState* __tstate = wxPyBeginAllowThreads();
34078 (arg1)->SetSpacing(arg2);
34079 wxPyEndAllowThreads(__tstate);
34080 if (PyErr_Occurred()) SWIG_fail;
34081 }
34082 resultobj = SWIG_Py_Void();
34083 return resultobj;
34084 fail:
34085 return NULL;
34086 }
34087
34088
34089 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34090 PyObject *resultobj = 0;
34091 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34092 wxImageList *result = 0 ;
34093 void *argp1 = 0 ;
34094 int res1 = 0 ;
34095 PyObject *swig_obj[1] ;
34096
34097 if (!args) SWIG_fail;
34098 swig_obj[0] = args;
34099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34100 if (!SWIG_IsOK(res1)) {
34101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34102 }
34103 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34104 {
34105 PyThreadState* __tstate = wxPyBeginAllowThreads();
34106 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34107 wxPyEndAllowThreads(__tstate);
34108 if (PyErr_Occurred()) SWIG_fail;
34109 }
34110 {
34111 resultobj = wxPyMake_wxObject(result, (bool)0);
34112 }
34113 return resultobj;
34114 fail:
34115 return NULL;
34116 }
34117
34118
34119 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34120 PyObject *resultobj = 0;
34121 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34122 wxImageList *result = 0 ;
34123 void *argp1 = 0 ;
34124 int res1 = 0 ;
34125 PyObject *swig_obj[1] ;
34126
34127 if (!args) SWIG_fail;
34128 swig_obj[0] = args;
34129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34130 if (!SWIG_IsOK(res1)) {
34131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34132 }
34133 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34134 {
34135 PyThreadState* __tstate = wxPyBeginAllowThreads();
34136 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34137 wxPyEndAllowThreads(__tstate);
34138 if (PyErr_Occurred()) SWIG_fail;
34139 }
34140 {
34141 resultobj = wxPyMake_wxObject(result, (bool)0);
34142 }
34143 return resultobj;
34144 fail:
34145 return NULL;
34146 }
34147
34148
34149 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34150 PyObject *resultobj = 0;
34151 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34152 wxImageList *arg2 = (wxImageList *) 0 ;
34153 void *argp1 = 0 ;
34154 int res1 = 0 ;
34155 void *argp2 = 0 ;
34156 int res2 = 0 ;
34157 PyObject * obj0 = 0 ;
34158 PyObject * obj1 = 0 ;
34159 char * kwnames[] = {
34160 (char *) "self",(char *) "imageList", NULL
34161 };
34162
34163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34165 if (!SWIG_IsOK(res1)) {
34166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34167 }
34168 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34169 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34170 if (!SWIG_IsOK(res2)) {
34171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34172 }
34173 arg2 = reinterpret_cast< wxImageList * >(argp2);
34174 {
34175 PyThreadState* __tstate = wxPyBeginAllowThreads();
34176 (arg1)->SetImageList(arg2);
34177 wxPyEndAllowThreads(__tstate);
34178 if (PyErr_Occurred()) SWIG_fail;
34179 }
34180 resultobj = SWIG_Py_Void();
34181 return resultobj;
34182 fail:
34183 return NULL;
34184 }
34185
34186
34187 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34188 PyObject *resultobj = 0;
34189 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34190 wxImageList *arg2 = (wxImageList *) 0 ;
34191 void *argp1 = 0 ;
34192 int res1 = 0 ;
34193 void *argp2 = 0 ;
34194 int res2 = 0 ;
34195 PyObject * obj0 = 0 ;
34196 PyObject * obj1 = 0 ;
34197 char * kwnames[] = {
34198 (char *) "self",(char *) "imageList", NULL
34199 };
34200
34201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34203 if (!SWIG_IsOK(res1)) {
34204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34205 }
34206 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34207 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34208 if (!SWIG_IsOK(res2)) {
34209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34210 }
34211 arg2 = reinterpret_cast< wxImageList * >(argp2);
34212 {
34213 PyThreadState* __tstate = wxPyBeginAllowThreads();
34214 (arg1)->SetStateImageList(arg2);
34215 wxPyEndAllowThreads(__tstate);
34216 if (PyErr_Occurred()) SWIG_fail;
34217 }
34218 resultobj = SWIG_Py_Void();
34219 return resultobj;
34220 fail:
34221 return NULL;
34222 }
34223
34224
34225 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34226 PyObject *resultobj = 0;
34227 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34228 wxImageList *arg2 = (wxImageList *) 0 ;
34229 void *argp1 = 0 ;
34230 int res1 = 0 ;
34231 int res2 = 0 ;
34232 PyObject * obj0 = 0 ;
34233 PyObject * obj1 = 0 ;
34234 char * kwnames[] = {
34235 (char *) "self",(char *) "imageList", NULL
34236 };
34237
34238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34240 if (!SWIG_IsOK(res1)) {
34241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34242 }
34243 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34244 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34245 if (!SWIG_IsOK(res2)) {
34246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34247 }
34248 {
34249 PyThreadState* __tstate = wxPyBeginAllowThreads();
34250 (arg1)->AssignImageList(arg2);
34251 wxPyEndAllowThreads(__tstate);
34252 if (PyErr_Occurred()) SWIG_fail;
34253 }
34254 resultobj = SWIG_Py_Void();
34255 return resultobj;
34256 fail:
34257 return NULL;
34258 }
34259
34260
34261 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34262 PyObject *resultobj = 0;
34263 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34264 wxImageList *arg2 = (wxImageList *) 0 ;
34265 void *argp1 = 0 ;
34266 int res1 = 0 ;
34267 int res2 = 0 ;
34268 PyObject * obj0 = 0 ;
34269 PyObject * obj1 = 0 ;
34270 char * kwnames[] = {
34271 (char *) "self",(char *) "imageList", NULL
34272 };
34273
34274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34276 if (!SWIG_IsOK(res1)) {
34277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34278 }
34279 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34280 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34281 if (!SWIG_IsOK(res2)) {
34282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34283 }
34284 {
34285 PyThreadState* __tstate = wxPyBeginAllowThreads();
34286 (arg1)->AssignStateImageList(arg2);
34287 wxPyEndAllowThreads(__tstate);
34288 if (PyErr_Occurred()) SWIG_fail;
34289 }
34290 resultobj = SWIG_Py_Void();
34291 return resultobj;
34292 fail:
34293 return NULL;
34294 }
34295
34296
34297 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34298 PyObject *resultobj = 0;
34299 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34300 wxTreeItemId *arg2 = 0 ;
34301 wxString result;
34302 void *argp1 = 0 ;
34303 int res1 = 0 ;
34304 void *argp2 = 0 ;
34305 int res2 = 0 ;
34306 PyObject * obj0 = 0 ;
34307 PyObject * obj1 = 0 ;
34308 char * kwnames[] = {
34309 (char *) "self",(char *) "item", NULL
34310 };
34311
34312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34314 if (!SWIG_IsOK(res1)) {
34315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34316 }
34317 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34319 if (!SWIG_IsOK(res2)) {
34320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34321 }
34322 if (!argp2) {
34323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34324 }
34325 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34326 {
34327 PyThreadState* __tstate = wxPyBeginAllowThreads();
34328 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34329 wxPyEndAllowThreads(__tstate);
34330 if (PyErr_Occurred()) SWIG_fail;
34331 }
34332 {
34333 #if wxUSE_UNICODE
34334 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34335 #else
34336 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34337 #endif
34338 }
34339 return resultobj;
34340 fail:
34341 return NULL;
34342 }
34343
34344
34345 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34346 PyObject *resultobj = 0;
34347 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34348 wxTreeItemId *arg2 = 0 ;
34349 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34350 int result;
34351 void *argp1 = 0 ;
34352 int res1 = 0 ;
34353 void *argp2 = 0 ;
34354 int res2 = 0 ;
34355 int val3 ;
34356 int ecode3 = 0 ;
34357 PyObject * obj0 = 0 ;
34358 PyObject * obj1 = 0 ;
34359 PyObject * obj2 = 0 ;
34360 char * kwnames[] = {
34361 (char *) "self",(char *) "item",(char *) "which", NULL
34362 };
34363
34364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34366 if (!SWIG_IsOK(res1)) {
34367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34368 }
34369 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34370 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34371 if (!SWIG_IsOK(res2)) {
34372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34373 }
34374 if (!argp2) {
34375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34376 }
34377 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34378 if (obj2) {
34379 ecode3 = SWIG_AsVal_int(obj2, &val3);
34380 if (!SWIG_IsOK(ecode3)) {
34381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34382 }
34383 arg3 = static_cast< wxTreeItemIcon >(val3);
34384 }
34385 {
34386 PyThreadState* __tstate = wxPyBeginAllowThreads();
34387 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34388 wxPyEndAllowThreads(__tstate);
34389 if (PyErr_Occurred()) SWIG_fail;
34390 }
34391 resultobj = SWIG_From_int(static_cast< int >(result));
34392 return resultobj;
34393 fail:
34394 return NULL;
34395 }
34396
34397
34398 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34399 PyObject *resultobj = 0;
34400 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34401 wxTreeItemId *arg2 = 0 ;
34402 wxPyTreeItemData *result = 0 ;
34403 void *argp1 = 0 ;
34404 int res1 = 0 ;
34405 void *argp2 = 0 ;
34406 int res2 = 0 ;
34407 PyObject * obj0 = 0 ;
34408 PyObject * obj1 = 0 ;
34409 char * kwnames[] = {
34410 (char *) "self",(char *) "item", NULL
34411 };
34412
34413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34415 if (!SWIG_IsOK(res1)) {
34416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34417 }
34418 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34420 if (!SWIG_IsOK(res2)) {
34421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34422 }
34423 if (!argp2) {
34424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34425 }
34426 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34427 {
34428 PyThreadState* __tstate = wxPyBeginAllowThreads();
34429 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34430 wxPyEndAllowThreads(__tstate);
34431 if (PyErr_Occurred()) SWIG_fail;
34432 }
34433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34434 return resultobj;
34435 fail:
34436 return NULL;
34437 }
34438
34439
34440 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34441 PyObject *resultobj = 0;
34442 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34443 wxTreeItemId *arg2 = 0 ;
34444 PyObject *result = 0 ;
34445 void *argp1 = 0 ;
34446 int res1 = 0 ;
34447 void *argp2 = 0 ;
34448 int res2 = 0 ;
34449 PyObject * obj0 = 0 ;
34450 PyObject * obj1 = 0 ;
34451 char * kwnames[] = {
34452 (char *) "self",(char *) "item", NULL
34453 };
34454
34455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34457 if (!SWIG_IsOK(res1)) {
34458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34459 }
34460 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34461 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34462 if (!SWIG_IsOK(res2)) {
34463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34464 }
34465 if (!argp2) {
34466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34467 }
34468 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34469 {
34470 PyThreadState* __tstate = wxPyBeginAllowThreads();
34471 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34472 wxPyEndAllowThreads(__tstate);
34473 if (PyErr_Occurred()) SWIG_fail;
34474 }
34475 resultobj = result;
34476 return resultobj;
34477 fail:
34478 return NULL;
34479 }
34480
34481
34482 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34483 PyObject *resultobj = 0;
34484 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34485 wxTreeItemId *arg2 = 0 ;
34486 wxColour result;
34487 void *argp1 = 0 ;
34488 int res1 = 0 ;
34489 void *argp2 = 0 ;
34490 int res2 = 0 ;
34491 PyObject * obj0 = 0 ;
34492 PyObject * obj1 = 0 ;
34493 char * kwnames[] = {
34494 (char *) "self",(char *) "item", NULL
34495 };
34496
34497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34499 if (!SWIG_IsOK(res1)) {
34500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34501 }
34502 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34503 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34504 if (!SWIG_IsOK(res2)) {
34505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34506 }
34507 if (!argp2) {
34508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34509 }
34510 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34511 {
34512 PyThreadState* __tstate = wxPyBeginAllowThreads();
34513 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34514 wxPyEndAllowThreads(__tstate);
34515 if (PyErr_Occurred()) SWIG_fail;
34516 }
34517 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34518 return resultobj;
34519 fail:
34520 return NULL;
34521 }
34522
34523
34524 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34525 PyObject *resultobj = 0;
34526 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34527 wxTreeItemId *arg2 = 0 ;
34528 wxColour result;
34529 void *argp1 = 0 ;
34530 int res1 = 0 ;
34531 void *argp2 = 0 ;
34532 int res2 = 0 ;
34533 PyObject * obj0 = 0 ;
34534 PyObject * obj1 = 0 ;
34535 char * kwnames[] = {
34536 (char *) "self",(char *) "item", NULL
34537 };
34538
34539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34541 if (!SWIG_IsOK(res1)) {
34542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34543 }
34544 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34545 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34546 if (!SWIG_IsOK(res2)) {
34547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34548 }
34549 if (!argp2) {
34550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34551 }
34552 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34553 {
34554 PyThreadState* __tstate = wxPyBeginAllowThreads();
34555 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34556 wxPyEndAllowThreads(__tstate);
34557 if (PyErr_Occurred()) SWIG_fail;
34558 }
34559 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34560 return resultobj;
34561 fail:
34562 return NULL;
34563 }
34564
34565
34566 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34567 PyObject *resultobj = 0;
34568 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34569 wxTreeItemId *arg2 = 0 ;
34570 wxFont result;
34571 void *argp1 = 0 ;
34572 int res1 = 0 ;
34573 void *argp2 = 0 ;
34574 int res2 = 0 ;
34575 PyObject * obj0 = 0 ;
34576 PyObject * obj1 = 0 ;
34577 char * kwnames[] = {
34578 (char *) "self",(char *) "item", NULL
34579 };
34580
34581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34583 if (!SWIG_IsOK(res1)) {
34584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34585 }
34586 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34588 if (!SWIG_IsOK(res2)) {
34589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34590 }
34591 if (!argp2) {
34592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34593 }
34594 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34595 {
34596 PyThreadState* __tstate = wxPyBeginAllowThreads();
34597 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34598 wxPyEndAllowThreads(__tstate);
34599 if (PyErr_Occurred()) SWIG_fail;
34600 }
34601 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34602 return resultobj;
34603 fail:
34604 return NULL;
34605 }
34606
34607
34608 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34609 PyObject *resultobj = 0;
34610 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34611 wxTreeItemId *arg2 = 0 ;
34612 wxString *arg3 = 0 ;
34613 void *argp1 = 0 ;
34614 int res1 = 0 ;
34615 void *argp2 = 0 ;
34616 int res2 = 0 ;
34617 bool temp3 = false ;
34618 PyObject * obj0 = 0 ;
34619 PyObject * obj1 = 0 ;
34620 PyObject * obj2 = 0 ;
34621 char * kwnames[] = {
34622 (char *) "self",(char *) "item",(char *) "text", NULL
34623 };
34624
34625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34627 if (!SWIG_IsOK(res1)) {
34628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34629 }
34630 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34631 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34632 if (!SWIG_IsOK(res2)) {
34633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34634 }
34635 if (!argp2) {
34636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34637 }
34638 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34639 {
34640 arg3 = wxString_in_helper(obj2);
34641 if (arg3 == NULL) SWIG_fail;
34642 temp3 = true;
34643 }
34644 {
34645 PyThreadState* __tstate = wxPyBeginAllowThreads();
34646 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34647 wxPyEndAllowThreads(__tstate);
34648 if (PyErr_Occurred()) SWIG_fail;
34649 }
34650 resultobj = SWIG_Py_Void();
34651 {
34652 if (temp3)
34653 delete arg3;
34654 }
34655 return resultobj;
34656 fail:
34657 {
34658 if (temp3)
34659 delete arg3;
34660 }
34661 return NULL;
34662 }
34663
34664
34665 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34666 PyObject *resultobj = 0;
34667 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34668 wxTreeItemId *arg2 = 0 ;
34669 int arg3 ;
34670 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34671 void *argp1 = 0 ;
34672 int res1 = 0 ;
34673 void *argp2 = 0 ;
34674 int res2 = 0 ;
34675 int val3 ;
34676 int ecode3 = 0 ;
34677 int val4 ;
34678 int ecode4 = 0 ;
34679 PyObject * obj0 = 0 ;
34680 PyObject * obj1 = 0 ;
34681 PyObject * obj2 = 0 ;
34682 PyObject * obj3 = 0 ;
34683 char * kwnames[] = {
34684 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34685 };
34686
34687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34689 if (!SWIG_IsOK(res1)) {
34690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34691 }
34692 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34694 if (!SWIG_IsOK(res2)) {
34695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34696 }
34697 if (!argp2) {
34698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34699 }
34700 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34701 ecode3 = SWIG_AsVal_int(obj2, &val3);
34702 if (!SWIG_IsOK(ecode3)) {
34703 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34704 }
34705 arg3 = static_cast< int >(val3);
34706 if (obj3) {
34707 ecode4 = SWIG_AsVal_int(obj3, &val4);
34708 if (!SWIG_IsOK(ecode4)) {
34709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34710 }
34711 arg4 = static_cast< wxTreeItemIcon >(val4);
34712 }
34713 {
34714 PyThreadState* __tstate = wxPyBeginAllowThreads();
34715 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34716 wxPyEndAllowThreads(__tstate);
34717 if (PyErr_Occurred()) SWIG_fail;
34718 }
34719 resultobj = SWIG_Py_Void();
34720 return resultobj;
34721 fail:
34722 return NULL;
34723 }
34724
34725
34726 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34727 PyObject *resultobj = 0;
34728 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34729 wxTreeItemId *arg2 = 0 ;
34730 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34731 void *argp1 = 0 ;
34732 int res1 = 0 ;
34733 void *argp2 = 0 ;
34734 int res2 = 0 ;
34735 int res3 = 0 ;
34736 PyObject * obj0 = 0 ;
34737 PyObject * obj1 = 0 ;
34738 PyObject * obj2 = 0 ;
34739 char * kwnames[] = {
34740 (char *) "self",(char *) "item",(char *) "data", NULL
34741 };
34742
34743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34745 if (!SWIG_IsOK(res1)) {
34746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34747 }
34748 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34749 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34750 if (!SWIG_IsOK(res2)) {
34751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34752 }
34753 if (!argp2) {
34754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34755 }
34756 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34757 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34758 if (!SWIG_IsOK(res3)) {
34759 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34760 }
34761 {
34762 PyThreadState* __tstate = wxPyBeginAllowThreads();
34763 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34764 wxPyEndAllowThreads(__tstate);
34765 if (PyErr_Occurred()) SWIG_fail;
34766 }
34767 resultobj = SWIG_Py_Void();
34768 return resultobj;
34769 fail:
34770 return NULL;
34771 }
34772
34773
34774 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34775 PyObject *resultobj = 0;
34776 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34777 wxTreeItemId *arg2 = 0 ;
34778 PyObject *arg3 = (PyObject *) 0 ;
34779 void *argp1 = 0 ;
34780 int res1 = 0 ;
34781 void *argp2 = 0 ;
34782 int res2 = 0 ;
34783 PyObject * obj0 = 0 ;
34784 PyObject * obj1 = 0 ;
34785 PyObject * obj2 = 0 ;
34786 char * kwnames[] = {
34787 (char *) "self",(char *) "item",(char *) "obj", NULL
34788 };
34789
34790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34792 if (!SWIG_IsOK(res1)) {
34793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34794 }
34795 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34797 if (!SWIG_IsOK(res2)) {
34798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34799 }
34800 if (!argp2) {
34801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34802 }
34803 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34804 arg3 = obj2;
34805 {
34806 PyThreadState* __tstate = wxPyBeginAllowThreads();
34807 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34808 wxPyEndAllowThreads(__tstate);
34809 if (PyErr_Occurred()) SWIG_fail;
34810 }
34811 resultobj = SWIG_Py_Void();
34812 return resultobj;
34813 fail:
34814 return NULL;
34815 }
34816
34817
34818 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34819 PyObject *resultobj = 0;
34820 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34821 wxTreeItemId *arg2 = 0 ;
34822 bool arg3 = (bool) true ;
34823 void *argp1 = 0 ;
34824 int res1 = 0 ;
34825 void *argp2 = 0 ;
34826 int res2 = 0 ;
34827 bool val3 ;
34828 int ecode3 = 0 ;
34829 PyObject * obj0 = 0 ;
34830 PyObject * obj1 = 0 ;
34831 PyObject * obj2 = 0 ;
34832 char * kwnames[] = {
34833 (char *) "self",(char *) "item",(char *) "has", NULL
34834 };
34835
34836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34838 if (!SWIG_IsOK(res1)) {
34839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34840 }
34841 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34843 if (!SWIG_IsOK(res2)) {
34844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34845 }
34846 if (!argp2) {
34847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34848 }
34849 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34850 if (obj2) {
34851 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34852 if (!SWIG_IsOK(ecode3)) {
34853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34854 }
34855 arg3 = static_cast< bool >(val3);
34856 }
34857 {
34858 PyThreadState* __tstate = wxPyBeginAllowThreads();
34859 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34860 wxPyEndAllowThreads(__tstate);
34861 if (PyErr_Occurred()) SWIG_fail;
34862 }
34863 resultobj = SWIG_Py_Void();
34864 return resultobj;
34865 fail:
34866 return NULL;
34867 }
34868
34869
34870 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34871 PyObject *resultobj = 0;
34872 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34873 wxTreeItemId *arg2 = 0 ;
34874 bool arg3 = (bool) true ;
34875 void *argp1 = 0 ;
34876 int res1 = 0 ;
34877 void *argp2 = 0 ;
34878 int res2 = 0 ;
34879 bool val3 ;
34880 int ecode3 = 0 ;
34881 PyObject * obj0 = 0 ;
34882 PyObject * obj1 = 0 ;
34883 PyObject * obj2 = 0 ;
34884 char * kwnames[] = {
34885 (char *) "self",(char *) "item",(char *) "bold", NULL
34886 };
34887
34888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34890 if (!SWIG_IsOK(res1)) {
34891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34892 }
34893 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34895 if (!SWIG_IsOK(res2)) {
34896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34897 }
34898 if (!argp2) {
34899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34900 }
34901 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34902 if (obj2) {
34903 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34904 if (!SWIG_IsOK(ecode3)) {
34905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34906 }
34907 arg3 = static_cast< bool >(val3);
34908 }
34909 {
34910 PyThreadState* __tstate = wxPyBeginAllowThreads();
34911 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34912 wxPyEndAllowThreads(__tstate);
34913 if (PyErr_Occurred()) SWIG_fail;
34914 }
34915 resultobj = SWIG_Py_Void();
34916 return resultobj;
34917 fail:
34918 return NULL;
34919 }
34920
34921
34922 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34923 PyObject *resultobj = 0;
34924 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34925 wxTreeItemId *arg2 = 0 ;
34926 bool arg3 = (bool) true ;
34927 void *argp1 = 0 ;
34928 int res1 = 0 ;
34929 void *argp2 = 0 ;
34930 int res2 = 0 ;
34931 bool val3 ;
34932 int ecode3 = 0 ;
34933 PyObject * obj0 = 0 ;
34934 PyObject * obj1 = 0 ;
34935 PyObject * obj2 = 0 ;
34936 char * kwnames[] = {
34937 (char *) "self",(char *) "item",(char *) "highlight", NULL
34938 };
34939
34940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34942 if (!SWIG_IsOK(res1)) {
34943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34944 }
34945 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34946 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34947 if (!SWIG_IsOK(res2)) {
34948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34949 }
34950 if (!argp2) {
34951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34952 }
34953 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34954 if (obj2) {
34955 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34956 if (!SWIG_IsOK(ecode3)) {
34957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34958 }
34959 arg3 = static_cast< bool >(val3);
34960 }
34961 {
34962 PyThreadState* __tstate = wxPyBeginAllowThreads();
34963 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34964 wxPyEndAllowThreads(__tstate);
34965 if (PyErr_Occurred()) SWIG_fail;
34966 }
34967 resultobj = SWIG_Py_Void();
34968 return resultobj;
34969 fail:
34970 return NULL;
34971 }
34972
34973
34974 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34975 PyObject *resultobj = 0;
34976 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34977 wxTreeItemId *arg2 = 0 ;
34978 wxColour *arg3 = 0 ;
34979 void *argp1 = 0 ;
34980 int res1 = 0 ;
34981 void *argp2 = 0 ;
34982 int res2 = 0 ;
34983 wxColour temp3 ;
34984 PyObject * obj0 = 0 ;
34985 PyObject * obj1 = 0 ;
34986 PyObject * obj2 = 0 ;
34987 char * kwnames[] = {
34988 (char *) "self",(char *) "item",(char *) "col", NULL
34989 };
34990
34991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34993 if (!SWIG_IsOK(res1)) {
34994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34995 }
34996 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34998 if (!SWIG_IsOK(res2)) {
34999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35000 }
35001 if (!argp2) {
35002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35003 }
35004 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35005 {
35006 arg3 = &temp3;
35007 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35008 }
35009 {
35010 PyThreadState* __tstate = wxPyBeginAllowThreads();
35011 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35012 wxPyEndAllowThreads(__tstate);
35013 if (PyErr_Occurred()) SWIG_fail;
35014 }
35015 resultobj = SWIG_Py_Void();
35016 return resultobj;
35017 fail:
35018 return NULL;
35019 }
35020
35021
35022 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35023 PyObject *resultobj = 0;
35024 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35025 wxTreeItemId *arg2 = 0 ;
35026 wxColour *arg3 = 0 ;
35027 void *argp1 = 0 ;
35028 int res1 = 0 ;
35029 void *argp2 = 0 ;
35030 int res2 = 0 ;
35031 wxColour temp3 ;
35032 PyObject * obj0 = 0 ;
35033 PyObject * obj1 = 0 ;
35034 PyObject * obj2 = 0 ;
35035 char * kwnames[] = {
35036 (char *) "self",(char *) "item",(char *) "col", NULL
35037 };
35038
35039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35041 if (!SWIG_IsOK(res1)) {
35042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35043 }
35044 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35045 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35046 if (!SWIG_IsOK(res2)) {
35047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35048 }
35049 if (!argp2) {
35050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35051 }
35052 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35053 {
35054 arg3 = &temp3;
35055 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35056 }
35057 {
35058 PyThreadState* __tstate = wxPyBeginAllowThreads();
35059 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35060 wxPyEndAllowThreads(__tstate);
35061 if (PyErr_Occurred()) SWIG_fail;
35062 }
35063 resultobj = SWIG_Py_Void();
35064 return resultobj;
35065 fail:
35066 return NULL;
35067 }
35068
35069
35070 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35071 PyObject *resultobj = 0;
35072 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35073 wxTreeItemId *arg2 = 0 ;
35074 wxFont *arg3 = 0 ;
35075 void *argp1 = 0 ;
35076 int res1 = 0 ;
35077 void *argp2 = 0 ;
35078 int res2 = 0 ;
35079 void *argp3 = 0 ;
35080 int res3 = 0 ;
35081 PyObject * obj0 = 0 ;
35082 PyObject * obj1 = 0 ;
35083 PyObject * obj2 = 0 ;
35084 char * kwnames[] = {
35085 (char *) "self",(char *) "item",(char *) "font", NULL
35086 };
35087
35088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35090 if (!SWIG_IsOK(res1)) {
35091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35092 }
35093 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35094 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35095 if (!SWIG_IsOK(res2)) {
35096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35097 }
35098 if (!argp2) {
35099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35100 }
35101 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35102 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35103 if (!SWIG_IsOK(res3)) {
35104 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35105 }
35106 if (!argp3) {
35107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35108 }
35109 arg3 = reinterpret_cast< wxFont * >(argp3);
35110 {
35111 PyThreadState* __tstate = wxPyBeginAllowThreads();
35112 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35113 wxPyEndAllowThreads(__tstate);
35114 if (PyErr_Occurred()) SWIG_fail;
35115 }
35116 resultobj = SWIG_Py_Void();
35117 return resultobj;
35118 fail:
35119 return NULL;
35120 }
35121
35122
35123 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35124 PyObject *resultobj = 0;
35125 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35126 wxTreeItemId *arg2 = 0 ;
35127 bool result;
35128 void *argp1 = 0 ;
35129 int res1 = 0 ;
35130 void *argp2 = 0 ;
35131 int res2 = 0 ;
35132 PyObject * obj0 = 0 ;
35133 PyObject * obj1 = 0 ;
35134 char * kwnames[] = {
35135 (char *) "self",(char *) "item", NULL
35136 };
35137
35138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35140 if (!SWIG_IsOK(res1)) {
35141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35142 }
35143 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35144 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35145 if (!SWIG_IsOK(res2)) {
35146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35147 }
35148 if (!argp2) {
35149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35150 }
35151 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35152 {
35153 PyThreadState* __tstate = wxPyBeginAllowThreads();
35154 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35155 wxPyEndAllowThreads(__tstate);
35156 if (PyErr_Occurred()) SWIG_fail;
35157 }
35158 {
35159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35160 }
35161 return resultobj;
35162 fail:
35163 return NULL;
35164 }
35165
35166
35167 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35168 PyObject *resultobj = 0;
35169 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35170 wxTreeItemId *arg2 = 0 ;
35171 bool result;
35172 void *argp1 = 0 ;
35173 int res1 = 0 ;
35174 void *argp2 = 0 ;
35175 int res2 = 0 ;
35176 PyObject * obj0 = 0 ;
35177 PyObject * obj1 = 0 ;
35178 char * kwnames[] = {
35179 (char *) "self",(char *) "item", NULL
35180 };
35181
35182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35184 if (!SWIG_IsOK(res1)) {
35185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35186 }
35187 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35188 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35189 if (!SWIG_IsOK(res2)) {
35190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35191 }
35192 if (!argp2) {
35193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35194 }
35195 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35196 {
35197 PyThreadState* __tstate = wxPyBeginAllowThreads();
35198 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35199 wxPyEndAllowThreads(__tstate);
35200 if (PyErr_Occurred()) SWIG_fail;
35201 }
35202 {
35203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35204 }
35205 return resultobj;
35206 fail:
35207 return NULL;
35208 }
35209
35210
35211 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35212 PyObject *resultobj = 0;
35213 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35214 wxTreeItemId *arg2 = 0 ;
35215 bool result;
35216 void *argp1 = 0 ;
35217 int res1 = 0 ;
35218 void *argp2 = 0 ;
35219 int res2 = 0 ;
35220 PyObject * obj0 = 0 ;
35221 PyObject * obj1 = 0 ;
35222 char * kwnames[] = {
35223 (char *) "self",(char *) "item", NULL
35224 };
35225
35226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35228 if (!SWIG_IsOK(res1)) {
35229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35230 }
35231 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35232 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35233 if (!SWIG_IsOK(res2)) {
35234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35235 }
35236 if (!argp2) {
35237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35238 }
35239 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35240 {
35241 PyThreadState* __tstate = wxPyBeginAllowThreads();
35242 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35243 wxPyEndAllowThreads(__tstate);
35244 if (PyErr_Occurred()) SWIG_fail;
35245 }
35246 {
35247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35248 }
35249 return resultobj;
35250 fail:
35251 return NULL;
35252 }
35253
35254
35255 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35256 PyObject *resultobj = 0;
35257 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35258 wxTreeItemId *arg2 = 0 ;
35259 bool result;
35260 void *argp1 = 0 ;
35261 int res1 = 0 ;
35262 void *argp2 = 0 ;
35263 int res2 = 0 ;
35264 PyObject * obj0 = 0 ;
35265 PyObject * obj1 = 0 ;
35266 char * kwnames[] = {
35267 (char *) "self",(char *) "item", NULL
35268 };
35269
35270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35272 if (!SWIG_IsOK(res1)) {
35273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35274 }
35275 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35277 if (!SWIG_IsOK(res2)) {
35278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35279 }
35280 if (!argp2) {
35281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35282 }
35283 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35284 {
35285 PyThreadState* __tstate = wxPyBeginAllowThreads();
35286 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35287 wxPyEndAllowThreads(__tstate);
35288 if (PyErr_Occurred()) SWIG_fail;
35289 }
35290 {
35291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35292 }
35293 return resultobj;
35294 fail:
35295 return NULL;
35296 }
35297
35298
35299 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35300 PyObject *resultobj = 0;
35301 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35302 wxTreeItemId *arg2 = 0 ;
35303 bool result;
35304 void *argp1 = 0 ;
35305 int res1 = 0 ;
35306 void *argp2 = 0 ;
35307 int res2 = 0 ;
35308 PyObject * obj0 = 0 ;
35309 PyObject * obj1 = 0 ;
35310 char * kwnames[] = {
35311 (char *) "self",(char *) "item", NULL
35312 };
35313
35314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35316 if (!SWIG_IsOK(res1)) {
35317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35318 }
35319 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35321 if (!SWIG_IsOK(res2)) {
35322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35323 }
35324 if (!argp2) {
35325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35326 }
35327 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35328 {
35329 PyThreadState* __tstate = wxPyBeginAllowThreads();
35330 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35331 wxPyEndAllowThreads(__tstate);
35332 if (PyErr_Occurred()) SWIG_fail;
35333 }
35334 {
35335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35336 }
35337 return resultobj;
35338 fail:
35339 return NULL;
35340 }
35341
35342
35343 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35344 PyObject *resultobj = 0;
35345 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35346 wxTreeItemId *arg2 = 0 ;
35347 bool arg3 = (bool) true ;
35348 size_t result;
35349 void *argp1 = 0 ;
35350 int res1 = 0 ;
35351 void *argp2 = 0 ;
35352 int res2 = 0 ;
35353 bool val3 ;
35354 int ecode3 = 0 ;
35355 PyObject * obj0 = 0 ;
35356 PyObject * obj1 = 0 ;
35357 PyObject * obj2 = 0 ;
35358 char * kwnames[] = {
35359 (char *) "self",(char *) "item",(char *) "recursively", NULL
35360 };
35361
35362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35364 if (!SWIG_IsOK(res1)) {
35365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35366 }
35367 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35368 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35369 if (!SWIG_IsOK(res2)) {
35370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35371 }
35372 if (!argp2) {
35373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35374 }
35375 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35376 if (obj2) {
35377 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35378 if (!SWIG_IsOK(ecode3)) {
35379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35380 }
35381 arg3 = static_cast< bool >(val3);
35382 }
35383 {
35384 PyThreadState* __tstate = wxPyBeginAllowThreads();
35385 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35386 wxPyEndAllowThreads(__tstate);
35387 if (PyErr_Occurred()) SWIG_fail;
35388 }
35389 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35390 return resultobj;
35391 fail:
35392 return NULL;
35393 }
35394
35395
35396 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35397 PyObject *resultobj = 0;
35398 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35399 wxTreeItemId result;
35400 void *argp1 = 0 ;
35401 int res1 = 0 ;
35402 PyObject *swig_obj[1] ;
35403
35404 if (!args) SWIG_fail;
35405 swig_obj[0] = args;
35406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35407 if (!SWIG_IsOK(res1)) {
35408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35409 }
35410 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35411 {
35412 PyThreadState* __tstate = wxPyBeginAllowThreads();
35413 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35414 wxPyEndAllowThreads(__tstate);
35415 if (PyErr_Occurred()) SWIG_fail;
35416 }
35417 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35418 return resultobj;
35419 fail:
35420 return NULL;
35421 }
35422
35423
35424 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35425 PyObject *resultobj = 0;
35426 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35427 wxTreeItemId result;
35428 void *argp1 = 0 ;
35429 int res1 = 0 ;
35430 PyObject *swig_obj[1] ;
35431
35432 if (!args) SWIG_fail;
35433 swig_obj[0] = args;
35434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35435 if (!SWIG_IsOK(res1)) {
35436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35437 }
35438 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35439 {
35440 PyThreadState* __tstate = wxPyBeginAllowThreads();
35441 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35442 wxPyEndAllowThreads(__tstate);
35443 if (PyErr_Occurred()) SWIG_fail;
35444 }
35445 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35446 return resultobj;
35447 fail:
35448 return NULL;
35449 }
35450
35451
35452 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35453 PyObject *resultobj = 0;
35454 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35455 PyObject *result = 0 ;
35456 void *argp1 = 0 ;
35457 int res1 = 0 ;
35458 PyObject *swig_obj[1] ;
35459
35460 if (!args) SWIG_fail;
35461 swig_obj[0] = args;
35462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35463 if (!SWIG_IsOK(res1)) {
35464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35465 }
35466 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35467 {
35468 PyThreadState* __tstate = wxPyBeginAllowThreads();
35469 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35470 wxPyEndAllowThreads(__tstate);
35471 if (PyErr_Occurred()) SWIG_fail;
35472 }
35473 resultobj = result;
35474 return resultobj;
35475 fail:
35476 return NULL;
35477 }
35478
35479
35480 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35481 PyObject *resultobj = 0;
35482 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35483 wxTreeItemId *arg2 = 0 ;
35484 wxTreeItemId result;
35485 void *argp1 = 0 ;
35486 int res1 = 0 ;
35487 void *argp2 = 0 ;
35488 int res2 = 0 ;
35489 PyObject * obj0 = 0 ;
35490 PyObject * obj1 = 0 ;
35491 char * kwnames[] = {
35492 (char *) "self",(char *) "item", NULL
35493 };
35494
35495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35497 if (!SWIG_IsOK(res1)) {
35498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35499 }
35500 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35501 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35502 if (!SWIG_IsOK(res2)) {
35503 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35504 }
35505 if (!argp2) {
35506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35507 }
35508 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35509 {
35510 PyThreadState* __tstate = wxPyBeginAllowThreads();
35511 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35512 wxPyEndAllowThreads(__tstate);
35513 if (PyErr_Occurred()) SWIG_fail;
35514 }
35515 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35516 return resultobj;
35517 fail:
35518 return NULL;
35519 }
35520
35521
35522 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35523 PyObject *resultobj = 0;
35524 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35525 wxTreeItemId *arg2 = 0 ;
35526 PyObject *result = 0 ;
35527 void *argp1 = 0 ;
35528 int res1 = 0 ;
35529 void *argp2 = 0 ;
35530 int res2 = 0 ;
35531 PyObject * obj0 = 0 ;
35532 PyObject * obj1 = 0 ;
35533 char * kwnames[] = {
35534 (char *) "self",(char *) "item", NULL
35535 };
35536
35537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35539 if (!SWIG_IsOK(res1)) {
35540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35541 }
35542 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35543 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35544 if (!SWIG_IsOK(res2)) {
35545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35546 }
35547 if (!argp2) {
35548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35549 }
35550 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35551 {
35552 PyThreadState* __tstate = wxPyBeginAllowThreads();
35553 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35554 wxPyEndAllowThreads(__tstate);
35555 if (PyErr_Occurred()) SWIG_fail;
35556 }
35557 resultobj = result;
35558 return resultobj;
35559 fail:
35560 return NULL;
35561 }
35562
35563
35564 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35565 PyObject *resultobj = 0;
35566 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35567 wxTreeItemId *arg2 = 0 ;
35568 void *arg3 = (void *) 0 ;
35569 PyObject *result = 0 ;
35570 void *argp1 = 0 ;
35571 int res1 = 0 ;
35572 void *argp2 = 0 ;
35573 int res2 = 0 ;
35574 int res3 ;
35575 PyObject * obj0 = 0 ;
35576 PyObject * obj1 = 0 ;
35577 PyObject * obj2 = 0 ;
35578 char * kwnames[] = {
35579 (char *) "self",(char *) "item",(char *) "cookie", NULL
35580 };
35581
35582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35584 if (!SWIG_IsOK(res1)) {
35585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35586 }
35587 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35588 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35589 if (!SWIG_IsOK(res2)) {
35590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35591 }
35592 if (!argp2) {
35593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35594 }
35595 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35596 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35597 if (!SWIG_IsOK(res3)) {
35598 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35599 }
35600 {
35601 PyThreadState* __tstate = wxPyBeginAllowThreads();
35602 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35603 wxPyEndAllowThreads(__tstate);
35604 if (PyErr_Occurred()) SWIG_fail;
35605 }
35606 resultobj = result;
35607 return resultobj;
35608 fail:
35609 return NULL;
35610 }
35611
35612
35613 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35614 PyObject *resultobj = 0;
35615 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35616 wxTreeItemId *arg2 = 0 ;
35617 wxTreeItemId result;
35618 void *argp1 = 0 ;
35619 int res1 = 0 ;
35620 void *argp2 = 0 ;
35621 int res2 = 0 ;
35622 PyObject * obj0 = 0 ;
35623 PyObject * obj1 = 0 ;
35624 char * kwnames[] = {
35625 (char *) "self",(char *) "item", NULL
35626 };
35627
35628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35630 if (!SWIG_IsOK(res1)) {
35631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35632 }
35633 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35634 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35635 if (!SWIG_IsOK(res2)) {
35636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35637 }
35638 if (!argp2) {
35639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35640 }
35641 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35642 {
35643 PyThreadState* __tstate = wxPyBeginAllowThreads();
35644 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35645 wxPyEndAllowThreads(__tstate);
35646 if (PyErr_Occurred()) SWIG_fail;
35647 }
35648 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35649 return resultobj;
35650 fail:
35651 return NULL;
35652 }
35653
35654
35655 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35656 PyObject *resultobj = 0;
35657 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35658 wxTreeItemId *arg2 = 0 ;
35659 wxTreeItemId result;
35660 void *argp1 = 0 ;
35661 int res1 = 0 ;
35662 void *argp2 = 0 ;
35663 int res2 = 0 ;
35664 PyObject * obj0 = 0 ;
35665 PyObject * obj1 = 0 ;
35666 char * kwnames[] = {
35667 (char *) "self",(char *) "item", NULL
35668 };
35669
35670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35672 if (!SWIG_IsOK(res1)) {
35673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35674 }
35675 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35676 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35677 if (!SWIG_IsOK(res2)) {
35678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35679 }
35680 if (!argp2) {
35681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35682 }
35683 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35684 {
35685 PyThreadState* __tstate = wxPyBeginAllowThreads();
35686 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35687 wxPyEndAllowThreads(__tstate);
35688 if (PyErr_Occurred()) SWIG_fail;
35689 }
35690 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35691 return resultobj;
35692 fail:
35693 return NULL;
35694 }
35695
35696
35697 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35698 PyObject *resultobj = 0;
35699 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35700 wxTreeItemId *arg2 = 0 ;
35701 wxTreeItemId result;
35702 void *argp1 = 0 ;
35703 int res1 = 0 ;
35704 void *argp2 = 0 ;
35705 int res2 = 0 ;
35706 PyObject * obj0 = 0 ;
35707 PyObject * obj1 = 0 ;
35708 char * kwnames[] = {
35709 (char *) "self",(char *) "item", NULL
35710 };
35711
35712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35714 if (!SWIG_IsOK(res1)) {
35715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35716 }
35717 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35718 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35719 if (!SWIG_IsOK(res2)) {
35720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35721 }
35722 if (!argp2) {
35723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35724 }
35725 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35726 {
35727 PyThreadState* __tstate = wxPyBeginAllowThreads();
35728 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35729 wxPyEndAllowThreads(__tstate);
35730 if (PyErr_Occurred()) SWIG_fail;
35731 }
35732 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35733 return resultobj;
35734 fail:
35735 return NULL;
35736 }
35737
35738
35739 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35740 PyObject *resultobj = 0;
35741 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35742 wxTreeItemId result;
35743 void *argp1 = 0 ;
35744 int res1 = 0 ;
35745 PyObject *swig_obj[1] ;
35746
35747 if (!args) SWIG_fail;
35748 swig_obj[0] = args;
35749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35750 if (!SWIG_IsOK(res1)) {
35751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35752 }
35753 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35754 {
35755 PyThreadState* __tstate = wxPyBeginAllowThreads();
35756 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35757 wxPyEndAllowThreads(__tstate);
35758 if (PyErr_Occurred()) SWIG_fail;
35759 }
35760 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35761 return resultobj;
35762 fail:
35763 return NULL;
35764 }
35765
35766
35767 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35768 PyObject *resultobj = 0;
35769 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35770 wxTreeItemId *arg2 = 0 ;
35771 wxTreeItemId result;
35772 void *argp1 = 0 ;
35773 int res1 = 0 ;
35774 void *argp2 = 0 ;
35775 int res2 = 0 ;
35776 PyObject * obj0 = 0 ;
35777 PyObject * obj1 = 0 ;
35778 char * kwnames[] = {
35779 (char *) "self",(char *) "item", NULL
35780 };
35781
35782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35784 if (!SWIG_IsOK(res1)) {
35785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35786 }
35787 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35788 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35789 if (!SWIG_IsOK(res2)) {
35790 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35791 }
35792 if (!argp2) {
35793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35794 }
35795 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35796 {
35797 PyThreadState* __tstate = wxPyBeginAllowThreads();
35798 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35799 wxPyEndAllowThreads(__tstate);
35800 if (PyErr_Occurred()) SWIG_fail;
35801 }
35802 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35803 return resultobj;
35804 fail:
35805 return NULL;
35806 }
35807
35808
35809 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35810 PyObject *resultobj = 0;
35811 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35812 wxTreeItemId *arg2 = 0 ;
35813 wxTreeItemId result;
35814 void *argp1 = 0 ;
35815 int res1 = 0 ;
35816 void *argp2 = 0 ;
35817 int res2 = 0 ;
35818 PyObject * obj0 = 0 ;
35819 PyObject * obj1 = 0 ;
35820 char * kwnames[] = {
35821 (char *) "self",(char *) "item", NULL
35822 };
35823
35824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35826 if (!SWIG_IsOK(res1)) {
35827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35828 }
35829 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35830 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35831 if (!SWIG_IsOK(res2)) {
35832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35833 }
35834 if (!argp2) {
35835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35836 }
35837 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35838 {
35839 PyThreadState* __tstate = wxPyBeginAllowThreads();
35840 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35841 wxPyEndAllowThreads(__tstate);
35842 if (PyErr_Occurred()) SWIG_fail;
35843 }
35844 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35845 return resultobj;
35846 fail:
35847 return NULL;
35848 }
35849
35850
35851 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35852 PyObject *resultobj = 0;
35853 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35854 wxString *arg2 = 0 ;
35855 int arg3 = (int) -1 ;
35856 int arg4 = (int) -1 ;
35857 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35858 wxTreeItemId result;
35859 void *argp1 = 0 ;
35860 int res1 = 0 ;
35861 bool temp2 = false ;
35862 int val3 ;
35863 int ecode3 = 0 ;
35864 int val4 ;
35865 int ecode4 = 0 ;
35866 int res5 = 0 ;
35867 PyObject * obj0 = 0 ;
35868 PyObject * obj1 = 0 ;
35869 PyObject * obj2 = 0 ;
35870 PyObject * obj3 = 0 ;
35871 PyObject * obj4 = 0 ;
35872 char * kwnames[] = {
35873 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35874 };
35875
35876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35878 if (!SWIG_IsOK(res1)) {
35879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35880 }
35881 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35882 {
35883 arg2 = wxString_in_helper(obj1);
35884 if (arg2 == NULL) SWIG_fail;
35885 temp2 = true;
35886 }
35887 if (obj2) {
35888 ecode3 = SWIG_AsVal_int(obj2, &val3);
35889 if (!SWIG_IsOK(ecode3)) {
35890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35891 }
35892 arg3 = static_cast< int >(val3);
35893 }
35894 if (obj3) {
35895 ecode4 = SWIG_AsVal_int(obj3, &val4);
35896 if (!SWIG_IsOK(ecode4)) {
35897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35898 }
35899 arg4 = static_cast< int >(val4);
35900 }
35901 if (obj4) {
35902 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35903 if (!SWIG_IsOK(res5)) {
35904 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35905 }
35906 }
35907 {
35908 PyThreadState* __tstate = wxPyBeginAllowThreads();
35909 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35910 wxPyEndAllowThreads(__tstate);
35911 if (PyErr_Occurred()) SWIG_fail;
35912 }
35913 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35914 {
35915 if (temp2)
35916 delete arg2;
35917 }
35918 return resultobj;
35919 fail:
35920 {
35921 if (temp2)
35922 delete arg2;
35923 }
35924 return NULL;
35925 }
35926
35927
35928 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35929 PyObject *resultobj = 0;
35930 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35931 wxTreeItemId *arg2 = 0 ;
35932 wxString *arg3 = 0 ;
35933 int arg4 = (int) -1 ;
35934 int arg5 = (int) -1 ;
35935 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35936 wxTreeItemId result;
35937 void *argp1 = 0 ;
35938 int res1 = 0 ;
35939 void *argp2 = 0 ;
35940 int res2 = 0 ;
35941 bool temp3 = false ;
35942 int val4 ;
35943 int ecode4 = 0 ;
35944 int val5 ;
35945 int ecode5 = 0 ;
35946 int res6 = 0 ;
35947 PyObject * obj0 = 0 ;
35948 PyObject * obj1 = 0 ;
35949 PyObject * obj2 = 0 ;
35950 PyObject * obj3 = 0 ;
35951 PyObject * obj4 = 0 ;
35952 PyObject * obj5 = 0 ;
35953 char * kwnames[] = {
35954 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35955 };
35956
35957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35959 if (!SWIG_IsOK(res1)) {
35960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35961 }
35962 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35963 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35964 if (!SWIG_IsOK(res2)) {
35965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35966 }
35967 if (!argp2) {
35968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35969 }
35970 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35971 {
35972 arg3 = wxString_in_helper(obj2);
35973 if (arg3 == NULL) SWIG_fail;
35974 temp3 = true;
35975 }
35976 if (obj3) {
35977 ecode4 = SWIG_AsVal_int(obj3, &val4);
35978 if (!SWIG_IsOK(ecode4)) {
35979 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35980 }
35981 arg4 = static_cast< int >(val4);
35982 }
35983 if (obj4) {
35984 ecode5 = SWIG_AsVal_int(obj4, &val5);
35985 if (!SWIG_IsOK(ecode5)) {
35986 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35987 }
35988 arg5 = static_cast< int >(val5);
35989 }
35990 if (obj5) {
35991 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35992 if (!SWIG_IsOK(res6)) {
35993 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35994 }
35995 }
35996 {
35997 PyThreadState* __tstate = wxPyBeginAllowThreads();
35998 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35999 wxPyEndAllowThreads(__tstate);
36000 if (PyErr_Occurred()) SWIG_fail;
36001 }
36002 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36003 {
36004 if (temp3)
36005 delete arg3;
36006 }
36007 return resultobj;
36008 fail:
36009 {
36010 if (temp3)
36011 delete arg3;
36012 }
36013 return NULL;
36014 }
36015
36016
36017 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36018 PyObject *resultobj = 0;
36019 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36020 wxTreeItemId *arg2 = 0 ;
36021 wxTreeItemId *arg3 = 0 ;
36022 wxString *arg4 = 0 ;
36023 int arg5 = (int) -1 ;
36024 int arg6 = (int) -1 ;
36025 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36026 wxTreeItemId result;
36027 void *argp1 = 0 ;
36028 int res1 = 0 ;
36029 void *argp2 = 0 ;
36030 int res2 = 0 ;
36031 void *argp3 = 0 ;
36032 int res3 = 0 ;
36033 bool temp4 = false ;
36034 int val5 ;
36035 int ecode5 = 0 ;
36036 int val6 ;
36037 int ecode6 = 0 ;
36038 int res7 = 0 ;
36039 PyObject * obj0 = 0 ;
36040 PyObject * obj1 = 0 ;
36041 PyObject * obj2 = 0 ;
36042 PyObject * obj3 = 0 ;
36043 PyObject * obj4 = 0 ;
36044 PyObject * obj5 = 0 ;
36045 PyObject * obj6 = 0 ;
36046 char * kwnames[] = {
36047 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36048 };
36049
36050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36052 if (!SWIG_IsOK(res1)) {
36053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36054 }
36055 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36057 if (!SWIG_IsOK(res2)) {
36058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36059 }
36060 if (!argp2) {
36061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36062 }
36063 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36064 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36065 if (!SWIG_IsOK(res3)) {
36066 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36067 }
36068 if (!argp3) {
36069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36070 }
36071 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36072 {
36073 arg4 = wxString_in_helper(obj3);
36074 if (arg4 == NULL) SWIG_fail;
36075 temp4 = true;
36076 }
36077 if (obj4) {
36078 ecode5 = SWIG_AsVal_int(obj4, &val5);
36079 if (!SWIG_IsOK(ecode5)) {
36080 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36081 }
36082 arg5 = static_cast< int >(val5);
36083 }
36084 if (obj5) {
36085 ecode6 = SWIG_AsVal_int(obj5, &val6);
36086 if (!SWIG_IsOK(ecode6)) {
36087 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36088 }
36089 arg6 = static_cast< int >(val6);
36090 }
36091 if (obj6) {
36092 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36093 if (!SWIG_IsOK(res7)) {
36094 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36095 }
36096 }
36097 {
36098 PyThreadState* __tstate = wxPyBeginAllowThreads();
36099 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36100 wxPyEndAllowThreads(__tstate);
36101 if (PyErr_Occurred()) SWIG_fail;
36102 }
36103 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36104 {
36105 if (temp4)
36106 delete arg4;
36107 }
36108 return resultobj;
36109 fail:
36110 {
36111 if (temp4)
36112 delete arg4;
36113 }
36114 return NULL;
36115 }
36116
36117
36118 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36119 PyObject *resultobj = 0;
36120 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36121 wxTreeItemId *arg2 = 0 ;
36122 size_t arg3 ;
36123 wxString *arg4 = 0 ;
36124 int arg5 = (int) -1 ;
36125 int arg6 = (int) -1 ;
36126 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36127 wxTreeItemId result;
36128 void *argp1 = 0 ;
36129 int res1 = 0 ;
36130 void *argp2 = 0 ;
36131 int res2 = 0 ;
36132 size_t val3 ;
36133 int ecode3 = 0 ;
36134 bool temp4 = false ;
36135 int val5 ;
36136 int ecode5 = 0 ;
36137 int val6 ;
36138 int ecode6 = 0 ;
36139 int res7 = 0 ;
36140 PyObject * obj0 = 0 ;
36141 PyObject * obj1 = 0 ;
36142 PyObject * obj2 = 0 ;
36143 PyObject * obj3 = 0 ;
36144 PyObject * obj4 = 0 ;
36145 PyObject * obj5 = 0 ;
36146 PyObject * obj6 = 0 ;
36147 char * kwnames[] = {
36148 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36149 };
36150
36151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36153 if (!SWIG_IsOK(res1)) {
36154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36155 }
36156 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36157 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36158 if (!SWIG_IsOK(res2)) {
36159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36160 }
36161 if (!argp2) {
36162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36163 }
36164 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36165 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36166 if (!SWIG_IsOK(ecode3)) {
36167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36168 }
36169 arg3 = static_cast< size_t >(val3);
36170 {
36171 arg4 = wxString_in_helper(obj3);
36172 if (arg4 == NULL) SWIG_fail;
36173 temp4 = true;
36174 }
36175 if (obj4) {
36176 ecode5 = SWIG_AsVal_int(obj4, &val5);
36177 if (!SWIG_IsOK(ecode5)) {
36178 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36179 }
36180 arg5 = static_cast< int >(val5);
36181 }
36182 if (obj5) {
36183 ecode6 = SWIG_AsVal_int(obj5, &val6);
36184 if (!SWIG_IsOK(ecode6)) {
36185 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36186 }
36187 arg6 = static_cast< int >(val6);
36188 }
36189 if (obj6) {
36190 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36191 if (!SWIG_IsOK(res7)) {
36192 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36193 }
36194 }
36195 {
36196 PyThreadState* __tstate = wxPyBeginAllowThreads();
36197 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36198 wxPyEndAllowThreads(__tstate);
36199 if (PyErr_Occurred()) SWIG_fail;
36200 }
36201 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36202 {
36203 if (temp4)
36204 delete arg4;
36205 }
36206 return resultobj;
36207 fail:
36208 {
36209 if (temp4)
36210 delete arg4;
36211 }
36212 return NULL;
36213 }
36214
36215
36216 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36217 PyObject *resultobj = 0;
36218 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36219 wxTreeItemId *arg2 = 0 ;
36220 wxString *arg3 = 0 ;
36221 int arg4 = (int) -1 ;
36222 int arg5 = (int) -1 ;
36223 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36224 wxTreeItemId result;
36225 void *argp1 = 0 ;
36226 int res1 = 0 ;
36227 void *argp2 = 0 ;
36228 int res2 = 0 ;
36229 bool temp3 = false ;
36230 int val4 ;
36231 int ecode4 = 0 ;
36232 int val5 ;
36233 int ecode5 = 0 ;
36234 int res6 = 0 ;
36235 PyObject * obj0 = 0 ;
36236 PyObject * obj1 = 0 ;
36237 PyObject * obj2 = 0 ;
36238 PyObject * obj3 = 0 ;
36239 PyObject * obj4 = 0 ;
36240 PyObject * obj5 = 0 ;
36241 char * kwnames[] = {
36242 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36243 };
36244
36245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36247 if (!SWIG_IsOK(res1)) {
36248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36249 }
36250 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36252 if (!SWIG_IsOK(res2)) {
36253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36254 }
36255 if (!argp2) {
36256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36257 }
36258 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36259 {
36260 arg3 = wxString_in_helper(obj2);
36261 if (arg3 == NULL) SWIG_fail;
36262 temp3 = true;
36263 }
36264 if (obj3) {
36265 ecode4 = SWIG_AsVal_int(obj3, &val4);
36266 if (!SWIG_IsOK(ecode4)) {
36267 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36268 }
36269 arg4 = static_cast< int >(val4);
36270 }
36271 if (obj4) {
36272 ecode5 = SWIG_AsVal_int(obj4, &val5);
36273 if (!SWIG_IsOK(ecode5)) {
36274 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36275 }
36276 arg5 = static_cast< int >(val5);
36277 }
36278 if (obj5) {
36279 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36280 if (!SWIG_IsOK(res6)) {
36281 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36282 }
36283 }
36284 {
36285 PyThreadState* __tstate = wxPyBeginAllowThreads();
36286 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36287 wxPyEndAllowThreads(__tstate);
36288 if (PyErr_Occurred()) SWIG_fail;
36289 }
36290 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36291 {
36292 if (temp3)
36293 delete arg3;
36294 }
36295 return resultobj;
36296 fail:
36297 {
36298 if (temp3)
36299 delete arg3;
36300 }
36301 return NULL;
36302 }
36303
36304
36305 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36306 PyObject *resultobj = 0;
36307 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36308 wxTreeItemId *arg2 = 0 ;
36309 void *argp1 = 0 ;
36310 int res1 = 0 ;
36311 void *argp2 = 0 ;
36312 int res2 = 0 ;
36313 PyObject * obj0 = 0 ;
36314 PyObject * obj1 = 0 ;
36315 char * kwnames[] = {
36316 (char *) "self",(char *) "item", NULL
36317 };
36318
36319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36321 if (!SWIG_IsOK(res1)) {
36322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36323 }
36324 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36325 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36326 if (!SWIG_IsOK(res2)) {
36327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36328 }
36329 if (!argp2) {
36330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36331 }
36332 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36333 {
36334 PyThreadState* __tstate = wxPyBeginAllowThreads();
36335 (arg1)->Delete((wxTreeItemId const &)*arg2);
36336 wxPyEndAllowThreads(__tstate);
36337 if (PyErr_Occurred()) SWIG_fail;
36338 }
36339 resultobj = SWIG_Py_Void();
36340 return resultobj;
36341 fail:
36342 return NULL;
36343 }
36344
36345
36346 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36347 PyObject *resultobj = 0;
36348 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36349 wxTreeItemId *arg2 = 0 ;
36350 void *argp1 = 0 ;
36351 int res1 = 0 ;
36352 void *argp2 = 0 ;
36353 int res2 = 0 ;
36354 PyObject * obj0 = 0 ;
36355 PyObject * obj1 = 0 ;
36356 char * kwnames[] = {
36357 (char *) "self",(char *) "item", NULL
36358 };
36359
36360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36362 if (!SWIG_IsOK(res1)) {
36363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36364 }
36365 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36367 if (!SWIG_IsOK(res2)) {
36368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36369 }
36370 if (!argp2) {
36371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36372 }
36373 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36374 {
36375 PyThreadState* __tstate = wxPyBeginAllowThreads();
36376 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36377 wxPyEndAllowThreads(__tstate);
36378 if (PyErr_Occurred()) SWIG_fail;
36379 }
36380 resultobj = SWIG_Py_Void();
36381 return resultobj;
36382 fail:
36383 return NULL;
36384 }
36385
36386
36387 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36388 PyObject *resultobj = 0;
36389 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36390 void *argp1 = 0 ;
36391 int res1 = 0 ;
36392 PyObject *swig_obj[1] ;
36393
36394 if (!args) SWIG_fail;
36395 swig_obj[0] = args;
36396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36397 if (!SWIG_IsOK(res1)) {
36398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36399 }
36400 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36401 {
36402 PyThreadState* __tstate = wxPyBeginAllowThreads();
36403 (arg1)->DeleteAllItems();
36404 wxPyEndAllowThreads(__tstate);
36405 if (PyErr_Occurred()) SWIG_fail;
36406 }
36407 resultobj = SWIG_Py_Void();
36408 return resultobj;
36409 fail:
36410 return NULL;
36411 }
36412
36413
36414 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36415 PyObject *resultobj = 0;
36416 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36417 wxTreeItemId *arg2 = 0 ;
36418 void *argp1 = 0 ;
36419 int res1 = 0 ;
36420 void *argp2 = 0 ;
36421 int res2 = 0 ;
36422 PyObject * obj0 = 0 ;
36423 PyObject * obj1 = 0 ;
36424 char * kwnames[] = {
36425 (char *) "self",(char *) "item", NULL
36426 };
36427
36428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36430 if (!SWIG_IsOK(res1)) {
36431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36432 }
36433 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36434 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36435 if (!SWIG_IsOK(res2)) {
36436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36437 }
36438 if (!argp2) {
36439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36440 }
36441 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36442 {
36443 PyThreadState* __tstate = wxPyBeginAllowThreads();
36444 (arg1)->Expand((wxTreeItemId const &)*arg2);
36445 wxPyEndAllowThreads(__tstate);
36446 if (PyErr_Occurred()) SWIG_fail;
36447 }
36448 resultobj = SWIG_Py_Void();
36449 return resultobj;
36450 fail:
36451 return NULL;
36452 }
36453
36454
36455 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36456 PyObject *resultobj = 0;
36457 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36458 wxTreeItemId *arg2 = 0 ;
36459 void *argp1 = 0 ;
36460 int res1 = 0 ;
36461 void *argp2 = 0 ;
36462 int res2 = 0 ;
36463 PyObject * obj0 = 0 ;
36464 PyObject * obj1 = 0 ;
36465 char * kwnames[] = {
36466 (char *) "self",(char *) "item", NULL
36467 };
36468
36469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36471 if (!SWIG_IsOK(res1)) {
36472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36473 }
36474 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36475 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36476 if (!SWIG_IsOK(res2)) {
36477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36478 }
36479 if (!argp2) {
36480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36481 }
36482 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36483 {
36484 PyThreadState* __tstate = wxPyBeginAllowThreads();
36485 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36486 wxPyEndAllowThreads(__tstate);
36487 if (PyErr_Occurred()) SWIG_fail;
36488 }
36489 resultobj = SWIG_Py_Void();
36490 return resultobj;
36491 fail:
36492 return NULL;
36493 }
36494
36495
36496 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36497 PyObject *resultobj = 0;
36498 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36499 void *argp1 = 0 ;
36500 int res1 = 0 ;
36501 PyObject *swig_obj[1] ;
36502
36503 if (!args) SWIG_fail;
36504 swig_obj[0] = args;
36505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36506 if (!SWIG_IsOK(res1)) {
36507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36508 }
36509 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36510 {
36511 PyThreadState* __tstate = wxPyBeginAllowThreads();
36512 (arg1)->ExpandAll();
36513 wxPyEndAllowThreads(__tstate);
36514 if (PyErr_Occurred()) SWIG_fail;
36515 }
36516 resultobj = SWIG_Py_Void();
36517 return resultobj;
36518 fail:
36519 return NULL;
36520 }
36521
36522
36523 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36524 PyObject *resultobj = 0;
36525 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36526 wxTreeItemId *arg2 = 0 ;
36527 void *argp1 = 0 ;
36528 int res1 = 0 ;
36529 void *argp2 = 0 ;
36530 int res2 = 0 ;
36531 PyObject * obj0 = 0 ;
36532 PyObject * obj1 = 0 ;
36533 char * kwnames[] = {
36534 (char *) "self",(char *) "item", NULL
36535 };
36536
36537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36539 if (!SWIG_IsOK(res1)) {
36540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36541 }
36542 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36543 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36544 if (!SWIG_IsOK(res2)) {
36545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36546 }
36547 if (!argp2) {
36548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36549 }
36550 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36551 {
36552 PyThreadState* __tstate = wxPyBeginAllowThreads();
36553 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36554 wxPyEndAllowThreads(__tstate);
36555 if (PyErr_Occurred()) SWIG_fail;
36556 }
36557 resultobj = SWIG_Py_Void();
36558 return resultobj;
36559 fail:
36560 return NULL;
36561 }
36562
36563
36564 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36565 PyObject *resultobj = 0;
36566 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36567 wxTreeItemId *arg2 = 0 ;
36568 void *argp1 = 0 ;
36569 int res1 = 0 ;
36570 void *argp2 = 0 ;
36571 int res2 = 0 ;
36572 PyObject * obj0 = 0 ;
36573 PyObject * obj1 = 0 ;
36574 char * kwnames[] = {
36575 (char *) "self",(char *) "item", NULL
36576 };
36577
36578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36580 if (!SWIG_IsOK(res1)) {
36581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36582 }
36583 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36584 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36585 if (!SWIG_IsOK(res2)) {
36586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36587 }
36588 if (!argp2) {
36589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36590 }
36591 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36592 {
36593 PyThreadState* __tstate = wxPyBeginAllowThreads();
36594 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36595 wxPyEndAllowThreads(__tstate);
36596 if (PyErr_Occurred()) SWIG_fail;
36597 }
36598 resultobj = SWIG_Py_Void();
36599 return resultobj;
36600 fail:
36601 return NULL;
36602 }
36603
36604
36605 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36606 PyObject *resultobj = 0;
36607 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36608 wxTreeItemId *arg2 = 0 ;
36609 void *argp1 = 0 ;
36610 int res1 = 0 ;
36611 void *argp2 = 0 ;
36612 int res2 = 0 ;
36613 PyObject * obj0 = 0 ;
36614 PyObject * obj1 = 0 ;
36615 char * kwnames[] = {
36616 (char *) "self",(char *) "item", NULL
36617 };
36618
36619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36621 if (!SWIG_IsOK(res1)) {
36622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36623 }
36624 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36626 if (!SWIG_IsOK(res2)) {
36627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36628 }
36629 if (!argp2) {
36630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36631 }
36632 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36633 {
36634 PyThreadState* __tstate = wxPyBeginAllowThreads();
36635 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36636 wxPyEndAllowThreads(__tstate);
36637 if (PyErr_Occurred()) SWIG_fail;
36638 }
36639 resultobj = SWIG_Py_Void();
36640 return resultobj;
36641 fail:
36642 return NULL;
36643 }
36644
36645
36646 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36647 PyObject *resultobj = 0;
36648 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36649 void *argp1 = 0 ;
36650 int res1 = 0 ;
36651 PyObject *swig_obj[1] ;
36652
36653 if (!args) SWIG_fail;
36654 swig_obj[0] = args;
36655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36656 if (!SWIG_IsOK(res1)) {
36657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36658 }
36659 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36660 {
36661 PyThreadState* __tstate = wxPyBeginAllowThreads();
36662 (arg1)->Unselect();
36663 wxPyEndAllowThreads(__tstate);
36664 if (PyErr_Occurred()) SWIG_fail;
36665 }
36666 resultobj = SWIG_Py_Void();
36667 return resultobj;
36668 fail:
36669 return NULL;
36670 }
36671
36672
36673 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36674 PyObject *resultobj = 0;
36675 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36676 wxTreeItemId *arg2 = 0 ;
36677 void *argp1 = 0 ;
36678 int res1 = 0 ;
36679 void *argp2 = 0 ;
36680 int res2 = 0 ;
36681 PyObject * obj0 = 0 ;
36682 PyObject * obj1 = 0 ;
36683 char * kwnames[] = {
36684 (char *) "self",(char *) "item", NULL
36685 };
36686
36687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36689 if (!SWIG_IsOK(res1)) {
36690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36691 }
36692 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36694 if (!SWIG_IsOK(res2)) {
36695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36696 }
36697 if (!argp2) {
36698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36699 }
36700 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36701 {
36702 PyThreadState* __tstate = wxPyBeginAllowThreads();
36703 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36704 wxPyEndAllowThreads(__tstate);
36705 if (PyErr_Occurred()) SWIG_fail;
36706 }
36707 resultobj = SWIG_Py_Void();
36708 return resultobj;
36709 fail:
36710 return NULL;
36711 }
36712
36713
36714 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36715 PyObject *resultobj = 0;
36716 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36717 void *argp1 = 0 ;
36718 int res1 = 0 ;
36719 PyObject *swig_obj[1] ;
36720
36721 if (!args) SWIG_fail;
36722 swig_obj[0] = args;
36723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36724 if (!SWIG_IsOK(res1)) {
36725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36726 }
36727 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36728 {
36729 PyThreadState* __tstate = wxPyBeginAllowThreads();
36730 (arg1)->UnselectAll();
36731 wxPyEndAllowThreads(__tstate);
36732 if (PyErr_Occurred()) SWIG_fail;
36733 }
36734 resultobj = SWIG_Py_Void();
36735 return resultobj;
36736 fail:
36737 return NULL;
36738 }
36739
36740
36741 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36742 PyObject *resultobj = 0;
36743 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36744 wxTreeItemId *arg2 = 0 ;
36745 bool arg3 = (bool) true ;
36746 void *argp1 = 0 ;
36747 int res1 = 0 ;
36748 void *argp2 = 0 ;
36749 int res2 = 0 ;
36750 bool val3 ;
36751 int ecode3 = 0 ;
36752 PyObject * obj0 = 0 ;
36753 PyObject * obj1 = 0 ;
36754 PyObject * obj2 = 0 ;
36755 char * kwnames[] = {
36756 (char *) "self",(char *) "item",(char *) "select", NULL
36757 };
36758
36759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36761 if (!SWIG_IsOK(res1)) {
36762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36763 }
36764 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36765 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36766 if (!SWIG_IsOK(res2)) {
36767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36768 }
36769 if (!argp2) {
36770 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36771 }
36772 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36773 if (obj2) {
36774 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36775 if (!SWIG_IsOK(ecode3)) {
36776 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36777 }
36778 arg3 = static_cast< bool >(val3);
36779 }
36780 {
36781 PyThreadState* __tstate = wxPyBeginAllowThreads();
36782 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36783 wxPyEndAllowThreads(__tstate);
36784 if (PyErr_Occurred()) SWIG_fail;
36785 }
36786 resultobj = SWIG_Py_Void();
36787 return resultobj;
36788 fail:
36789 return NULL;
36790 }
36791
36792
36793 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36794 PyObject *resultobj = 0;
36795 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36796 wxTreeItemId *arg2 = 0 ;
36797 void *argp1 = 0 ;
36798 int res1 = 0 ;
36799 void *argp2 = 0 ;
36800 int res2 = 0 ;
36801 PyObject * obj0 = 0 ;
36802 PyObject * obj1 = 0 ;
36803 char * kwnames[] = {
36804 (char *) "self",(char *) "item", NULL
36805 };
36806
36807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36809 if (!SWIG_IsOK(res1)) {
36810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36811 }
36812 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36813 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36814 if (!SWIG_IsOK(res2)) {
36815 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36816 }
36817 if (!argp2) {
36818 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36819 }
36820 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36821 {
36822 PyThreadState* __tstate = wxPyBeginAllowThreads();
36823 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36824 wxPyEndAllowThreads(__tstate);
36825 if (PyErr_Occurred()) SWIG_fail;
36826 }
36827 resultobj = SWIG_Py_Void();
36828 return resultobj;
36829 fail:
36830 return NULL;
36831 }
36832
36833
36834 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36835 PyObject *resultobj = 0;
36836 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36837 wxTreeItemId *arg2 = 0 ;
36838 void *argp1 = 0 ;
36839 int res1 = 0 ;
36840 void *argp2 = 0 ;
36841 int res2 = 0 ;
36842 PyObject * obj0 = 0 ;
36843 PyObject * obj1 = 0 ;
36844 char * kwnames[] = {
36845 (char *) "self",(char *) "item", NULL
36846 };
36847
36848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36850 if (!SWIG_IsOK(res1)) {
36851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36852 }
36853 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36854 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36855 if (!SWIG_IsOK(res2)) {
36856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36857 }
36858 if (!argp2) {
36859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36860 }
36861 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36862 {
36863 PyThreadState* __tstate = wxPyBeginAllowThreads();
36864 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36865 wxPyEndAllowThreads(__tstate);
36866 if (PyErr_Occurred()) SWIG_fail;
36867 }
36868 resultobj = SWIG_Py_Void();
36869 return resultobj;
36870 fail:
36871 return NULL;
36872 }
36873
36874
36875 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36876 PyObject *resultobj = 0;
36877 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36878 wxTreeItemId *arg2 = 0 ;
36879 void *argp1 = 0 ;
36880 int res1 = 0 ;
36881 void *argp2 = 0 ;
36882 int res2 = 0 ;
36883 PyObject * obj0 = 0 ;
36884 PyObject * obj1 = 0 ;
36885 char * kwnames[] = {
36886 (char *) "self",(char *) "item", NULL
36887 };
36888
36889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36891 if (!SWIG_IsOK(res1)) {
36892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36893 }
36894 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36895 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36896 if (!SWIG_IsOK(res2)) {
36897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36898 }
36899 if (!argp2) {
36900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36901 }
36902 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36903 {
36904 PyThreadState* __tstate = wxPyBeginAllowThreads();
36905 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36906 wxPyEndAllowThreads(__tstate);
36907 if (PyErr_Occurred()) SWIG_fail;
36908 }
36909 resultobj = SWIG_Py_Void();
36910 return resultobj;
36911 fail:
36912 return NULL;
36913 }
36914
36915
36916 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36917 PyObject *resultobj = 0;
36918 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36919 wxTreeItemId *arg2 = 0 ;
36920 void *argp1 = 0 ;
36921 int res1 = 0 ;
36922 void *argp2 = 0 ;
36923 int res2 = 0 ;
36924 PyObject * obj0 = 0 ;
36925 PyObject * obj1 = 0 ;
36926 char * kwnames[] = {
36927 (char *) "self",(char *) "item", NULL
36928 };
36929
36930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36932 if (!SWIG_IsOK(res1)) {
36933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36934 }
36935 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36937 if (!SWIG_IsOK(res2)) {
36938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36939 }
36940 if (!argp2) {
36941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36942 }
36943 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36944 {
36945 PyThreadState* __tstate = wxPyBeginAllowThreads();
36946 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36947 wxPyEndAllowThreads(__tstate);
36948 if (PyErr_Occurred()) SWIG_fail;
36949 }
36950 resultobj = SWIG_Py_Void();
36951 return resultobj;
36952 fail:
36953 return NULL;
36954 }
36955
36956
36957 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36958 PyObject *resultobj = 0;
36959 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36960 wxTextCtrl *result = 0 ;
36961 void *argp1 = 0 ;
36962 int res1 = 0 ;
36963 PyObject *swig_obj[1] ;
36964
36965 if (!args) SWIG_fail;
36966 swig_obj[0] = args;
36967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36968 if (!SWIG_IsOK(res1)) {
36969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36970 }
36971 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36972 {
36973 PyThreadState* __tstate = wxPyBeginAllowThreads();
36974 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36975 wxPyEndAllowThreads(__tstate);
36976 if (PyErr_Occurred()) SWIG_fail;
36977 }
36978 {
36979 resultobj = wxPyMake_wxObject(result, 0);
36980 }
36981 return resultobj;
36982 fail:
36983 return NULL;
36984 }
36985
36986
36987 SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36988 PyObject *resultobj = 0;
36989 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36990 wxTreeItemId *arg2 = 0 ;
36991 bool arg3 = (bool) false ;
36992 void *argp1 = 0 ;
36993 int res1 = 0 ;
36994 void *argp2 = 0 ;
36995 int res2 = 0 ;
36996 bool val3 ;
36997 int ecode3 = 0 ;
36998 PyObject * obj0 = 0 ;
36999 PyObject * obj1 = 0 ;
37000 PyObject * obj2 = 0 ;
37001 char * kwnames[] = {
37002 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
37003 };
37004
37005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37007 if (!SWIG_IsOK(res1)) {
37008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37009 }
37010 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37011 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37012 if (!SWIG_IsOK(res2)) {
37013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37014 }
37015 if (!argp2) {
37016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37017 }
37018 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37019 if (obj2) {
37020 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37021 if (!SWIG_IsOK(ecode3)) {
37022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
37023 }
37024 arg3 = static_cast< bool >(val3);
37025 }
37026 {
37027 PyThreadState* __tstate = wxPyBeginAllowThreads();
37028 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
37029 wxPyEndAllowThreads(__tstate);
37030 if (PyErr_Occurred()) SWIG_fail;
37031 }
37032 resultobj = SWIG_Py_Void();
37033 return resultobj;
37034 fail:
37035 return NULL;
37036 }
37037
37038
37039 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37040 PyObject *resultobj = 0;
37041 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37042 wxTreeItemId *arg2 = 0 ;
37043 void *argp1 = 0 ;
37044 int res1 = 0 ;
37045 void *argp2 = 0 ;
37046 int res2 = 0 ;
37047 PyObject * obj0 = 0 ;
37048 PyObject * obj1 = 0 ;
37049 char * kwnames[] = {
37050 (char *) "self",(char *) "item", NULL
37051 };
37052
37053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37055 if (!SWIG_IsOK(res1)) {
37056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37057 }
37058 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37059 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37060 if (!SWIG_IsOK(res2)) {
37061 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37062 }
37063 if (!argp2) {
37064 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37065 }
37066 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37067 {
37068 PyThreadState* __tstate = wxPyBeginAllowThreads();
37069 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37070 wxPyEndAllowThreads(__tstate);
37071 if (PyErr_Occurred()) SWIG_fail;
37072 }
37073 resultobj = SWIG_Py_Void();
37074 return resultobj;
37075 fail:
37076 return NULL;
37077 }
37078
37079
37080 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37081 PyObject *resultobj = 0;
37082 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37083 wxPoint *arg2 = 0 ;
37084 int *arg3 = 0 ;
37085 wxTreeItemId result;
37086 void *argp1 = 0 ;
37087 int res1 = 0 ;
37088 wxPoint temp2 ;
37089 int temp3 ;
37090 int res3 = SWIG_TMPOBJ ;
37091 PyObject * obj0 = 0 ;
37092 PyObject * obj1 = 0 ;
37093 char * kwnames[] = {
37094 (char *) "self",(char *) "point", NULL
37095 };
37096
37097 arg3 = &temp3;
37098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37100 if (!SWIG_IsOK(res1)) {
37101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37102 }
37103 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37104 {
37105 arg2 = &temp2;
37106 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37107 }
37108 {
37109 PyThreadState* __tstate = wxPyBeginAllowThreads();
37110 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37111 wxPyEndAllowThreads(__tstate);
37112 if (PyErr_Occurred()) SWIG_fail;
37113 }
37114 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37115 if (SWIG_IsTmpObj(res3)) {
37116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37117 } else {
37118 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37120 }
37121 return resultobj;
37122 fail:
37123 return NULL;
37124 }
37125
37126
37127 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37128 PyObject *resultobj = 0;
37129 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37130 wxTreeItemId *arg2 = 0 ;
37131 bool arg3 = (bool) false ;
37132 PyObject *result = 0 ;
37133 void *argp1 = 0 ;
37134 int res1 = 0 ;
37135 void *argp2 = 0 ;
37136 int res2 = 0 ;
37137 bool val3 ;
37138 int ecode3 = 0 ;
37139 PyObject * obj0 = 0 ;
37140 PyObject * obj1 = 0 ;
37141 PyObject * obj2 = 0 ;
37142 char * kwnames[] = {
37143 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37144 };
37145
37146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37148 if (!SWIG_IsOK(res1)) {
37149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37150 }
37151 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37152 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37153 if (!SWIG_IsOK(res2)) {
37154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37155 }
37156 if (!argp2) {
37157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37158 }
37159 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37160 if (obj2) {
37161 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37162 if (!SWIG_IsOK(ecode3)) {
37163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37164 }
37165 arg3 = static_cast< bool >(val3);
37166 }
37167 {
37168 PyThreadState* __tstate = wxPyBeginAllowThreads();
37169 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37170 wxPyEndAllowThreads(__tstate);
37171 if (PyErr_Occurred()) SWIG_fail;
37172 }
37173 resultobj = result;
37174 return resultobj;
37175 fail:
37176 return NULL;
37177 }
37178
37179
37180 SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37181 PyObject *resultobj = 0;
37182 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37183 wxTreeItemId *arg2 = 0 ;
37184 int arg3 ;
37185 void *argp1 = 0 ;
37186 int res1 = 0 ;
37187 void *argp2 = 0 ;
37188 int res2 = 0 ;
37189 int val3 ;
37190 int ecode3 = 0 ;
37191 PyObject * obj0 = 0 ;
37192 PyObject * obj1 = 0 ;
37193 PyObject * obj2 = 0 ;
37194 char * kwnames[] = {
37195 (char *) "self",(char *) "node",(char *) "state", NULL
37196 };
37197
37198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37200 if (!SWIG_IsOK(res1)) {
37201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37202 }
37203 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37205 if (!SWIG_IsOK(res2)) {
37206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37207 }
37208 if (!argp2) {
37209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37210 }
37211 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37212 ecode3 = SWIG_AsVal_int(obj2, &val3);
37213 if (!SWIG_IsOK(ecode3)) {
37214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
37215 }
37216 arg3 = static_cast< int >(val3);
37217 {
37218 PyThreadState* __tstate = wxPyBeginAllowThreads();
37219 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
37220 wxPyEndAllowThreads(__tstate);
37221 if (PyErr_Occurred()) SWIG_fail;
37222 }
37223 resultobj = SWIG_Py_Void();
37224 return resultobj;
37225 fail:
37226 return NULL;
37227 }
37228
37229
37230 SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37231 PyObject *resultobj = 0;
37232 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37233 wxTreeItemId *arg2 = 0 ;
37234 int result;
37235 void *argp1 = 0 ;
37236 int res1 = 0 ;
37237 void *argp2 = 0 ;
37238 int res2 = 0 ;
37239 PyObject * obj0 = 0 ;
37240 PyObject * obj1 = 0 ;
37241 char * kwnames[] = {
37242 (char *) "self",(char *) "node", NULL
37243 };
37244
37245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
37246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37247 if (!SWIG_IsOK(res1)) {
37248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37249 }
37250 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37252 if (!SWIG_IsOK(res2)) {
37253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37254 }
37255 if (!argp2) {
37256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37257 }
37258 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37259 {
37260 PyThreadState* __tstate = wxPyBeginAllowThreads();
37261 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
37262 wxPyEndAllowThreads(__tstate);
37263 if (PyErr_Occurred()) SWIG_fail;
37264 }
37265 resultobj = SWIG_From_int(static_cast< int >(result));
37266 return resultobj;
37267 fail:
37268 return NULL;
37269 }
37270
37271
37272 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37273 PyObject *resultobj = 0;
37274 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37275 SwigValueWrapper<wxVisualAttributes > result;
37276 int val1 ;
37277 int ecode1 = 0 ;
37278 PyObject * obj0 = 0 ;
37279 char * kwnames[] = {
37280 (char *) "variant", NULL
37281 };
37282
37283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37284 if (obj0) {
37285 ecode1 = SWIG_AsVal_int(obj0, &val1);
37286 if (!SWIG_IsOK(ecode1)) {
37287 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37288 }
37289 arg1 = static_cast< wxWindowVariant >(val1);
37290 }
37291 {
37292 if (!wxPyCheckForApp()) SWIG_fail;
37293 PyThreadState* __tstate = wxPyBeginAllowThreads();
37294 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37295 wxPyEndAllowThreads(__tstate);
37296 if (PyErr_Occurred()) SWIG_fail;
37297 }
37298 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37299 return resultobj;
37300 fail:
37301 return NULL;
37302 }
37303
37304
37305 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37306 PyObject *resultobj = 0;
37307 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37308 bool arg2 ;
37309 void *argp1 = 0 ;
37310 int res1 = 0 ;
37311 bool val2 ;
37312 int ecode2 = 0 ;
37313 PyObject * obj0 = 0 ;
37314 PyObject * obj1 = 0 ;
37315 char * kwnames[] = {
37316 (char *) "self",(char *) "q", NULL
37317 };
37318
37319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37321 if (!SWIG_IsOK(res1)) {
37322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37323 }
37324 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37325 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37326 if (!SWIG_IsOK(ecode2)) {
37327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37328 }
37329 arg2 = static_cast< bool >(val2);
37330 {
37331 PyThreadState* __tstate = wxPyBeginAllowThreads();
37332 (arg1)->SetQuickBestSize(arg2);
37333 wxPyEndAllowThreads(__tstate);
37334 if (PyErr_Occurred()) SWIG_fail;
37335 }
37336 resultobj = SWIG_Py_Void();
37337 return resultobj;
37338 fail:
37339 return NULL;
37340 }
37341
37342
37343 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37344 PyObject *resultobj = 0;
37345 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37346 bool result;
37347 void *argp1 = 0 ;
37348 int res1 = 0 ;
37349 PyObject *swig_obj[1] ;
37350
37351 if (!args) SWIG_fail;
37352 swig_obj[0] = args;
37353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37354 if (!SWIG_IsOK(res1)) {
37355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37356 }
37357 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37358 {
37359 PyThreadState* __tstate = wxPyBeginAllowThreads();
37360 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37361 wxPyEndAllowThreads(__tstate);
37362 if (PyErr_Occurred()) SWIG_fail;
37363 }
37364 {
37365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37366 }
37367 return resultobj;
37368 fail:
37369 return NULL;
37370 }
37371
37372
37373 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37374 PyObject *obj;
37375 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37376 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37377 return SWIG_Py_Void();
37378 }
37379
37380 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37381 return SWIG_Python_InitShadowInstance(args);
37382 }
37383
37384 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37385 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37386 return 1;
37387 }
37388
37389
37390 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37391 PyObject *pyobj = 0;
37392
37393 {
37394 #if wxUSE_UNICODE
37395 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37396 #else
37397 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37398 #endif
37399 }
37400 return pyobj;
37401 }
37402
37403
37404 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37405 PyObject *resultobj = 0;
37406 wxWindow *arg1 = (wxWindow *) 0 ;
37407 int arg2 = (int) (int)-1 ;
37408 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37409 wxString *arg3 = (wxString *) &arg3_defvalue ;
37410 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37411 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37412 wxSize const &arg5_defvalue = wxDefaultSize ;
37413 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37414 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37415 wxString const &arg7_defvalue = wxPyEmptyString ;
37416 wxString *arg7 = (wxString *) &arg7_defvalue ;
37417 int arg8 = (int) 0 ;
37418 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37419 wxString *arg9 = (wxString *) &arg9_defvalue ;
37420 wxGenericDirCtrl *result = 0 ;
37421 void *argp1 = 0 ;
37422 int res1 = 0 ;
37423 int val2 ;
37424 int ecode2 = 0 ;
37425 bool temp3 = false ;
37426 wxPoint temp4 ;
37427 wxSize temp5 ;
37428 long val6 ;
37429 int ecode6 = 0 ;
37430 bool temp7 = false ;
37431 int val8 ;
37432 int ecode8 = 0 ;
37433 bool temp9 = false ;
37434 PyObject * obj0 = 0 ;
37435 PyObject * obj1 = 0 ;
37436 PyObject * obj2 = 0 ;
37437 PyObject * obj3 = 0 ;
37438 PyObject * obj4 = 0 ;
37439 PyObject * obj5 = 0 ;
37440 PyObject * obj6 = 0 ;
37441 PyObject * obj7 = 0 ;
37442 PyObject * obj8 = 0 ;
37443 char * kwnames[] = {
37444 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37445 };
37446
37447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37449 if (!SWIG_IsOK(res1)) {
37450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37451 }
37452 arg1 = reinterpret_cast< wxWindow * >(argp1);
37453 if (obj1) {
37454 ecode2 = SWIG_AsVal_int(obj1, &val2);
37455 if (!SWIG_IsOK(ecode2)) {
37456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37457 }
37458 arg2 = static_cast< int >(val2);
37459 }
37460 if (obj2) {
37461 {
37462 arg3 = wxString_in_helper(obj2);
37463 if (arg3 == NULL) SWIG_fail;
37464 temp3 = true;
37465 }
37466 }
37467 if (obj3) {
37468 {
37469 arg4 = &temp4;
37470 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37471 }
37472 }
37473 if (obj4) {
37474 {
37475 arg5 = &temp5;
37476 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37477 }
37478 }
37479 if (obj5) {
37480 ecode6 = SWIG_AsVal_long(obj5, &val6);
37481 if (!SWIG_IsOK(ecode6)) {
37482 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37483 }
37484 arg6 = static_cast< long >(val6);
37485 }
37486 if (obj6) {
37487 {
37488 arg7 = wxString_in_helper(obj6);
37489 if (arg7 == NULL) SWIG_fail;
37490 temp7 = true;
37491 }
37492 }
37493 if (obj7) {
37494 ecode8 = SWIG_AsVal_int(obj7, &val8);
37495 if (!SWIG_IsOK(ecode8)) {
37496 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37497 }
37498 arg8 = static_cast< int >(val8);
37499 }
37500 if (obj8) {
37501 {
37502 arg9 = wxString_in_helper(obj8);
37503 if (arg9 == NULL) SWIG_fail;
37504 temp9 = true;
37505 }
37506 }
37507 {
37508 if (!wxPyCheckForApp()) SWIG_fail;
37509 PyThreadState* __tstate = wxPyBeginAllowThreads();
37510 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37511 wxPyEndAllowThreads(__tstate);
37512 if (PyErr_Occurred()) SWIG_fail;
37513 }
37514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37515 {
37516 if (temp3)
37517 delete arg3;
37518 }
37519 {
37520 if (temp7)
37521 delete arg7;
37522 }
37523 {
37524 if (temp9)
37525 delete arg9;
37526 }
37527 return resultobj;
37528 fail:
37529 {
37530 if (temp3)
37531 delete arg3;
37532 }
37533 {
37534 if (temp7)
37535 delete arg7;
37536 }
37537 {
37538 if (temp9)
37539 delete arg9;
37540 }
37541 return NULL;
37542 }
37543
37544
37545 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37546 PyObject *resultobj = 0;
37547 wxGenericDirCtrl *result = 0 ;
37548
37549 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37550 {
37551 if (!wxPyCheckForApp()) SWIG_fail;
37552 PyThreadState* __tstate = wxPyBeginAllowThreads();
37553 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37554 wxPyEndAllowThreads(__tstate);
37555 if (PyErr_Occurred()) SWIG_fail;
37556 }
37557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37558 return resultobj;
37559 fail:
37560 return NULL;
37561 }
37562
37563
37564 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37565 PyObject *resultobj = 0;
37566 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37567 wxWindow *arg2 = (wxWindow *) 0 ;
37568 int arg3 = (int) (int)-1 ;
37569 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37570 wxString *arg4 = (wxString *) &arg4_defvalue ;
37571 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37572 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37573 wxSize const &arg6_defvalue = wxDefaultSize ;
37574 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37575 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37576 wxString const &arg8_defvalue = wxPyEmptyString ;
37577 wxString *arg8 = (wxString *) &arg8_defvalue ;
37578 int arg9 = (int) 0 ;
37579 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37580 wxString *arg10 = (wxString *) &arg10_defvalue ;
37581 bool result;
37582 void *argp1 = 0 ;
37583 int res1 = 0 ;
37584 void *argp2 = 0 ;
37585 int res2 = 0 ;
37586 int val3 ;
37587 int ecode3 = 0 ;
37588 bool temp4 = false ;
37589 wxPoint temp5 ;
37590 wxSize temp6 ;
37591 long val7 ;
37592 int ecode7 = 0 ;
37593 bool temp8 = false ;
37594 int val9 ;
37595 int ecode9 = 0 ;
37596 bool temp10 = false ;
37597 PyObject * obj0 = 0 ;
37598 PyObject * obj1 = 0 ;
37599 PyObject * obj2 = 0 ;
37600 PyObject * obj3 = 0 ;
37601 PyObject * obj4 = 0 ;
37602 PyObject * obj5 = 0 ;
37603 PyObject * obj6 = 0 ;
37604 PyObject * obj7 = 0 ;
37605 PyObject * obj8 = 0 ;
37606 PyObject * obj9 = 0 ;
37607 char * kwnames[] = {
37608 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37609 };
37610
37611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37613 if (!SWIG_IsOK(res1)) {
37614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37615 }
37616 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37617 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37618 if (!SWIG_IsOK(res2)) {
37619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37620 }
37621 arg2 = reinterpret_cast< wxWindow * >(argp2);
37622 if (obj2) {
37623 ecode3 = SWIG_AsVal_int(obj2, &val3);
37624 if (!SWIG_IsOK(ecode3)) {
37625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37626 }
37627 arg3 = static_cast< int >(val3);
37628 }
37629 if (obj3) {
37630 {
37631 arg4 = wxString_in_helper(obj3);
37632 if (arg4 == NULL) SWIG_fail;
37633 temp4 = true;
37634 }
37635 }
37636 if (obj4) {
37637 {
37638 arg5 = &temp5;
37639 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37640 }
37641 }
37642 if (obj5) {
37643 {
37644 arg6 = &temp6;
37645 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37646 }
37647 }
37648 if (obj6) {
37649 ecode7 = SWIG_AsVal_long(obj6, &val7);
37650 if (!SWIG_IsOK(ecode7)) {
37651 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37652 }
37653 arg7 = static_cast< long >(val7);
37654 }
37655 if (obj7) {
37656 {
37657 arg8 = wxString_in_helper(obj7);
37658 if (arg8 == NULL) SWIG_fail;
37659 temp8 = true;
37660 }
37661 }
37662 if (obj8) {
37663 ecode9 = SWIG_AsVal_int(obj8, &val9);
37664 if (!SWIG_IsOK(ecode9)) {
37665 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37666 }
37667 arg9 = static_cast< int >(val9);
37668 }
37669 if (obj9) {
37670 {
37671 arg10 = wxString_in_helper(obj9);
37672 if (arg10 == NULL) SWIG_fail;
37673 temp10 = true;
37674 }
37675 }
37676 {
37677 PyThreadState* __tstate = wxPyBeginAllowThreads();
37678 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37679 wxPyEndAllowThreads(__tstate);
37680 if (PyErr_Occurred()) SWIG_fail;
37681 }
37682 {
37683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37684 }
37685 {
37686 if (temp4)
37687 delete arg4;
37688 }
37689 {
37690 if (temp8)
37691 delete arg8;
37692 }
37693 {
37694 if (temp10)
37695 delete arg10;
37696 }
37697 return resultobj;
37698 fail:
37699 {
37700 if (temp4)
37701 delete arg4;
37702 }
37703 {
37704 if (temp8)
37705 delete arg8;
37706 }
37707 {
37708 if (temp10)
37709 delete arg10;
37710 }
37711 return NULL;
37712 }
37713
37714
37715 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37716 PyObject *resultobj = 0;
37717 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37718 wxString *arg2 = 0 ;
37719 bool result;
37720 void *argp1 = 0 ;
37721 int res1 = 0 ;
37722 bool temp2 = false ;
37723 PyObject * obj0 = 0 ;
37724 PyObject * obj1 = 0 ;
37725 char * kwnames[] = {
37726 (char *) "self",(char *) "path", NULL
37727 };
37728
37729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37731 if (!SWIG_IsOK(res1)) {
37732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37733 }
37734 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37735 {
37736 arg2 = wxString_in_helper(obj1);
37737 if (arg2 == NULL) SWIG_fail;
37738 temp2 = true;
37739 }
37740 {
37741 PyThreadState* __tstate = wxPyBeginAllowThreads();
37742 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37743 wxPyEndAllowThreads(__tstate);
37744 if (PyErr_Occurred()) SWIG_fail;
37745 }
37746 {
37747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37748 }
37749 {
37750 if (temp2)
37751 delete arg2;
37752 }
37753 return resultobj;
37754 fail:
37755 {
37756 if (temp2)
37757 delete arg2;
37758 }
37759 return NULL;
37760 }
37761
37762
37763 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37764 PyObject *resultobj = 0;
37765 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37766 wxString *arg2 = 0 ;
37767 bool result;
37768 void *argp1 = 0 ;
37769 int res1 = 0 ;
37770 bool temp2 = false ;
37771 PyObject * obj0 = 0 ;
37772 PyObject * obj1 = 0 ;
37773 char * kwnames[] = {
37774 (char *) "self",(char *) "path", NULL
37775 };
37776
37777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37779 if (!SWIG_IsOK(res1)) {
37780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37781 }
37782 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37783 {
37784 arg2 = wxString_in_helper(obj1);
37785 if (arg2 == NULL) SWIG_fail;
37786 temp2 = true;
37787 }
37788 {
37789 PyThreadState* __tstate = wxPyBeginAllowThreads();
37790 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37791 wxPyEndAllowThreads(__tstate);
37792 if (PyErr_Occurred()) SWIG_fail;
37793 }
37794 {
37795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37796 }
37797 {
37798 if (temp2)
37799 delete arg2;
37800 }
37801 return resultobj;
37802 fail:
37803 {
37804 if (temp2)
37805 delete arg2;
37806 }
37807 return NULL;
37808 }
37809
37810
37811 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37812 PyObject *resultobj = 0;
37813 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37814 wxString result;
37815 void *argp1 = 0 ;
37816 int res1 = 0 ;
37817 PyObject *swig_obj[1] ;
37818
37819 if (!args) SWIG_fail;
37820 swig_obj[0] = args;
37821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37822 if (!SWIG_IsOK(res1)) {
37823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37824 }
37825 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37826 {
37827 PyThreadState* __tstate = wxPyBeginAllowThreads();
37828 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37829 wxPyEndAllowThreads(__tstate);
37830 if (PyErr_Occurred()) SWIG_fail;
37831 }
37832 {
37833 #if wxUSE_UNICODE
37834 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37835 #else
37836 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37837 #endif
37838 }
37839 return resultobj;
37840 fail:
37841 return NULL;
37842 }
37843
37844
37845 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37846 PyObject *resultobj = 0;
37847 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37848 wxString *arg2 = 0 ;
37849 void *argp1 = 0 ;
37850 int res1 = 0 ;
37851 bool temp2 = false ;
37852 PyObject * obj0 = 0 ;
37853 PyObject * obj1 = 0 ;
37854 char * kwnames[] = {
37855 (char *) "self",(char *) "path", NULL
37856 };
37857
37858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37860 if (!SWIG_IsOK(res1)) {
37861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37862 }
37863 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37864 {
37865 arg2 = wxString_in_helper(obj1);
37866 if (arg2 == NULL) SWIG_fail;
37867 temp2 = true;
37868 }
37869 {
37870 PyThreadState* __tstate = wxPyBeginAllowThreads();
37871 (arg1)->SetDefaultPath((wxString const &)*arg2);
37872 wxPyEndAllowThreads(__tstate);
37873 if (PyErr_Occurred()) SWIG_fail;
37874 }
37875 resultobj = SWIG_Py_Void();
37876 {
37877 if (temp2)
37878 delete arg2;
37879 }
37880 return resultobj;
37881 fail:
37882 {
37883 if (temp2)
37884 delete arg2;
37885 }
37886 return NULL;
37887 }
37888
37889
37890 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37891 PyObject *resultobj = 0;
37892 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37893 wxString result;
37894 void *argp1 = 0 ;
37895 int res1 = 0 ;
37896 PyObject *swig_obj[1] ;
37897
37898 if (!args) SWIG_fail;
37899 swig_obj[0] = args;
37900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37901 if (!SWIG_IsOK(res1)) {
37902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37903 }
37904 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37905 {
37906 PyThreadState* __tstate = wxPyBeginAllowThreads();
37907 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37908 wxPyEndAllowThreads(__tstate);
37909 if (PyErr_Occurred()) SWIG_fail;
37910 }
37911 {
37912 #if wxUSE_UNICODE
37913 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37914 #else
37915 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37916 #endif
37917 }
37918 return resultobj;
37919 fail:
37920 return NULL;
37921 }
37922
37923
37924 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37925 PyObject *resultobj = 0;
37926 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37927 wxString result;
37928 void *argp1 = 0 ;
37929 int res1 = 0 ;
37930 PyObject *swig_obj[1] ;
37931
37932 if (!args) SWIG_fail;
37933 swig_obj[0] = args;
37934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37935 if (!SWIG_IsOK(res1)) {
37936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37937 }
37938 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37939 {
37940 PyThreadState* __tstate = wxPyBeginAllowThreads();
37941 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37942 wxPyEndAllowThreads(__tstate);
37943 if (PyErr_Occurred()) SWIG_fail;
37944 }
37945 {
37946 #if wxUSE_UNICODE
37947 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37948 #else
37949 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37950 #endif
37951 }
37952 return resultobj;
37953 fail:
37954 return NULL;
37955 }
37956
37957
37958 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37959 PyObject *resultobj = 0;
37960 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37961 wxString *arg2 = 0 ;
37962 void *argp1 = 0 ;
37963 int res1 = 0 ;
37964 bool temp2 = false ;
37965 PyObject * obj0 = 0 ;
37966 PyObject * obj1 = 0 ;
37967 char * kwnames[] = {
37968 (char *) "self",(char *) "path", NULL
37969 };
37970
37971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37973 if (!SWIG_IsOK(res1)) {
37974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37975 }
37976 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37977 {
37978 arg2 = wxString_in_helper(obj1);
37979 if (arg2 == NULL) SWIG_fail;
37980 temp2 = true;
37981 }
37982 {
37983 PyThreadState* __tstate = wxPyBeginAllowThreads();
37984 (arg1)->SetPath((wxString const &)*arg2);
37985 wxPyEndAllowThreads(__tstate);
37986 if (PyErr_Occurred()) SWIG_fail;
37987 }
37988 resultobj = SWIG_Py_Void();
37989 {
37990 if (temp2)
37991 delete arg2;
37992 }
37993 return resultobj;
37994 fail:
37995 {
37996 if (temp2)
37997 delete arg2;
37998 }
37999 return NULL;
38000 }
38001
38002
38003 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38004 PyObject *resultobj = 0;
38005 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38006 bool arg2 ;
38007 void *argp1 = 0 ;
38008 int res1 = 0 ;
38009 bool val2 ;
38010 int ecode2 = 0 ;
38011 PyObject * obj0 = 0 ;
38012 PyObject * obj1 = 0 ;
38013 char * kwnames[] = {
38014 (char *) "self",(char *) "show", NULL
38015 };
38016
38017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38019 if (!SWIG_IsOK(res1)) {
38020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38021 }
38022 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38023 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38024 if (!SWIG_IsOK(ecode2)) {
38025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38026 }
38027 arg2 = static_cast< bool >(val2);
38028 {
38029 PyThreadState* __tstate = wxPyBeginAllowThreads();
38030 (arg1)->ShowHidden(arg2);
38031 wxPyEndAllowThreads(__tstate);
38032 if (PyErr_Occurred()) SWIG_fail;
38033 }
38034 resultobj = SWIG_Py_Void();
38035 return resultobj;
38036 fail:
38037 return NULL;
38038 }
38039
38040
38041 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38042 PyObject *resultobj = 0;
38043 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38044 bool result;
38045 void *argp1 = 0 ;
38046 int res1 = 0 ;
38047 PyObject *swig_obj[1] ;
38048
38049 if (!args) SWIG_fail;
38050 swig_obj[0] = args;
38051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38052 if (!SWIG_IsOK(res1)) {
38053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38054 }
38055 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38056 {
38057 PyThreadState* __tstate = wxPyBeginAllowThreads();
38058 result = (bool)(arg1)->GetShowHidden();
38059 wxPyEndAllowThreads(__tstate);
38060 if (PyErr_Occurred()) SWIG_fail;
38061 }
38062 {
38063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38064 }
38065 return resultobj;
38066 fail:
38067 return NULL;
38068 }
38069
38070
38071 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38072 PyObject *resultobj = 0;
38073 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38074 wxString result;
38075 void *argp1 = 0 ;
38076 int res1 = 0 ;
38077 PyObject *swig_obj[1] ;
38078
38079 if (!args) SWIG_fail;
38080 swig_obj[0] = args;
38081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38082 if (!SWIG_IsOK(res1)) {
38083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38084 }
38085 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38086 {
38087 PyThreadState* __tstate = wxPyBeginAllowThreads();
38088 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38089 wxPyEndAllowThreads(__tstate);
38090 if (PyErr_Occurred()) SWIG_fail;
38091 }
38092 {
38093 #if wxUSE_UNICODE
38094 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38095 #else
38096 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38097 #endif
38098 }
38099 return resultobj;
38100 fail:
38101 return NULL;
38102 }
38103
38104
38105 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38106 PyObject *resultobj = 0;
38107 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38108 wxString *arg2 = 0 ;
38109 void *argp1 = 0 ;
38110 int res1 = 0 ;
38111 bool temp2 = false ;
38112 PyObject * obj0 = 0 ;
38113 PyObject * obj1 = 0 ;
38114 char * kwnames[] = {
38115 (char *) "self",(char *) "filter", NULL
38116 };
38117
38118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38120 if (!SWIG_IsOK(res1)) {
38121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38122 }
38123 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38124 {
38125 arg2 = wxString_in_helper(obj1);
38126 if (arg2 == NULL) SWIG_fail;
38127 temp2 = true;
38128 }
38129 {
38130 PyThreadState* __tstate = wxPyBeginAllowThreads();
38131 (arg1)->SetFilter((wxString const &)*arg2);
38132 wxPyEndAllowThreads(__tstate);
38133 if (PyErr_Occurred()) SWIG_fail;
38134 }
38135 resultobj = SWIG_Py_Void();
38136 {
38137 if (temp2)
38138 delete arg2;
38139 }
38140 return resultobj;
38141 fail:
38142 {
38143 if (temp2)
38144 delete arg2;
38145 }
38146 return NULL;
38147 }
38148
38149
38150 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38151 PyObject *resultobj = 0;
38152 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38153 int result;
38154 void *argp1 = 0 ;
38155 int res1 = 0 ;
38156 PyObject *swig_obj[1] ;
38157
38158 if (!args) SWIG_fail;
38159 swig_obj[0] = args;
38160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38161 if (!SWIG_IsOK(res1)) {
38162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38163 }
38164 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38165 {
38166 PyThreadState* __tstate = wxPyBeginAllowThreads();
38167 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38168 wxPyEndAllowThreads(__tstate);
38169 if (PyErr_Occurred()) SWIG_fail;
38170 }
38171 resultobj = SWIG_From_int(static_cast< int >(result));
38172 return resultobj;
38173 fail:
38174 return NULL;
38175 }
38176
38177
38178 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38179 PyObject *resultobj = 0;
38180 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38181 int arg2 ;
38182 void *argp1 = 0 ;
38183 int res1 = 0 ;
38184 int val2 ;
38185 int ecode2 = 0 ;
38186 PyObject * obj0 = 0 ;
38187 PyObject * obj1 = 0 ;
38188 char * kwnames[] = {
38189 (char *) "self",(char *) "n", NULL
38190 };
38191
38192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38194 if (!SWIG_IsOK(res1)) {
38195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38196 }
38197 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38198 ecode2 = SWIG_AsVal_int(obj1, &val2);
38199 if (!SWIG_IsOK(ecode2)) {
38200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38201 }
38202 arg2 = static_cast< int >(val2);
38203 {
38204 PyThreadState* __tstate = wxPyBeginAllowThreads();
38205 (arg1)->SetFilterIndex(arg2);
38206 wxPyEndAllowThreads(__tstate);
38207 if (PyErr_Occurred()) SWIG_fail;
38208 }
38209 resultobj = SWIG_Py_Void();
38210 return resultobj;
38211 fail:
38212 return NULL;
38213 }
38214
38215
38216 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38217 PyObject *resultobj = 0;
38218 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38219 wxTreeItemId result;
38220 void *argp1 = 0 ;
38221 int res1 = 0 ;
38222 PyObject *swig_obj[1] ;
38223
38224 if (!args) SWIG_fail;
38225 swig_obj[0] = args;
38226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38227 if (!SWIG_IsOK(res1)) {
38228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38229 }
38230 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38231 {
38232 PyThreadState* __tstate = wxPyBeginAllowThreads();
38233 result = (arg1)->GetRootId();
38234 wxPyEndAllowThreads(__tstate);
38235 if (PyErr_Occurred()) SWIG_fail;
38236 }
38237 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38238 return resultobj;
38239 fail:
38240 return NULL;
38241 }
38242
38243
38244 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38245 PyObject *resultobj = 0;
38246 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38247 wxPyTreeCtrl *result = 0 ;
38248 void *argp1 = 0 ;
38249 int res1 = 0 ;
38250 PyObject *swig_obj[1] ;
38251
38252 if (!args) SWIG_fail;
38253 swig_obj[0] = args;
38254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38255 if (!SWIG_IsOK(res1)) {
38256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38257 }
38258 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38259 {
38260 PyThreadState* __tstate = wxPyBeginAllowThreads();
38261 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38262 wxPyEndAllowThreads(__tstate);
38263 if (PyErr_Occurred()) SWIG_fail;
38264 }
38265 {
38266 resultobj = wxPyMake_wxObject(result, 0);
38267 }
38268 return resultobj;
38269 fail:
38270 return NULL;
38271 }
38272
38273
38274 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38275 PyObject *resultobj = 0;
38276 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38277 wxDirFilterListCtrl *result = 0 ;
38278 void *argp1 = 0 ;
38279 int res1 = 0 ;
38280 PyObject *swig_obj[1] ;
38281
38282 if (!args) SWIG_fail;
38283 swig_obj[0] = args;
38284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38285 if (!SWIG_IsOK(res1)) {
38286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38287 }
38288 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38289 {
38290 PyThreadState* __tstate = wxPyBeginAllowThreads();
38291 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38292 wxPyEndAllowThreads(__tstate);
38293 if (PyErr_Occurred()) SWIG_fail;
38294 }
38295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38296 return resultobj;
38297 fail:
38298 return NULL;
38299 }
38300
38301
38302 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38303 PyObject *resultobj = 0;
38304 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38305 wxTreeItemId arg2 ;
38306 wxString *arg3 = 0 ;
38307 bool *arg4 = 0 ;
38308 wxTreeItemId result;
38309 void *argp1 = 0 ;
38310 int res1 = 0 ;
38311 void *argp2 ;
38312 int res2 = 0 ;
38313 bool temp3 = false ;
38314 bool temp4 ;
38315 int res4 = SWIG_TMPOBJ ;
38316 PyObject * obj0 = 0 ;
38317 PyObject * obj1 = 0 ;
38318 PyObject * obj2 = 0 ;
38319 char * kwnames[] = {
38320 (char *) "self",(char *) "parentId",(char *) "path", NULL
38321 };
38322
38323 arg4 = &temp4;
38324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38326 if (!SWIG_IsOK(res1)) {
38327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38328 }
38329 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38330 {
38331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38332 if (!SWIG_IsOK(res2)) {
38333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38334 }
38335 if (!argp2) {
38336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38337 } else {
38338 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38339 arg2 = *temp;
38340 if (SWIG_IsNewObj(res2)) delete temp;
38341 }
38342 }
38343 {
38344 arg3 = wxString_in_helper(obj2);
38345 if (arg3 == NULL) SWIG_fail;
38346 temp3 = true;
38347 }
38348 {
38349 PyThreadState* __tstate = wxPyBeginAllowThreads();
38350 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38351 wxPyEndAllowThreads(__tstate);
38352 if (PyErr_Occurred()) SWIG_fail;
38353 }
38354 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38355 if (SWIG_IsTmpObj(res4)) {
38356 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38357 } else {
38358 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38359 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38360 }
38361 {
38362 if (temp3)
38363 delete arg3;
38364 }
38365 return resultobj;
38366 fail:
38367 {
38368 if (temp3)
38369 delete arg3;
38370 }
38371 return NULL;
38372 }
38373
38374
38375 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38376 PyObject *resultobj = 0;
38377 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38378 void *argp1 = 0 ;
38379 int res1 = 0 ;
38380 PyObject *swig_obj[1] ;
38381
38382 if (!args) SWIG_fail;
38383 swig_obj[0] = args;
38384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38385 if (!SWIG_IsOK(res1)) {
38386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38387 }
38388 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38389 {
38390 PyThreadState* __tstate = wxPyBeginAllowThreads();
38391 (arg1)->DoResize();
38392 wxPyEndAllowThreads(__tstate);
38393 if (PyErr_Occurred()) SWIG_fail;
38394 }
38395 resultobj = SWIG_Py_Void();
38396 return resultobj;
38397 fail:
38398 return NULL;
38399 }
38400
38401
38402 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38403 PyObject *resultobj = 0;
38404 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38405 void *argp1 = 0 ;
38406 int res1 = 0 ;
38407 PyObject *swig_obj[1] ;
38408
38409 if (!args) SWIG_fail;
38410 swig_obj[0] = args;
38411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38412 if (!SWIG_IsOK(res1)) {
38413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38414 }
38415 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38416 {
38417 PyThreadState* __tstate = wxPyBeginAllowThreads();
38418 (arg1)->ReCreateTree();
38419 wxPyEndAllowThreads(__tstate);
38420 if (PyErr_Occurred()) SWIG_fail;
38421 }
38422 resultobj = SWIG_Py_Void();
38423 return resultobj;
38424 fail:
38425 return NULL;
38426 }
38427
38428
38429 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38430 PyObject *obj;
38431 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38432 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38433 return SWIG_Py_Void();
38434 }
38435
38436 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38437 return SWIG_Python_InitShadowInstance(args);
38438 }
38439
38440 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38441 PyObject *resultobj = 0;
38442 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38443 int arg2 = (int) (int)-1 ;
38444 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38445 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38446 wxSize const &arg4_defvalue = wxDefaultSize ;
38447 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38448 long arg5 = (long) 0 ;
38449 wxDirFilterListCtrl *result = 0 ;
38450 void *argp1 = 0 ;
38451 int res1 = 0 ;
38452 int val2 ;
38453 int ecode2 = 0 ;
38454 wxPoint temp3 ;
38455 wxSize temp4 ;
38456 long val5 ;
38457 int ecode5 = 0 ;
38458 PyObject * obj0 = 0 ;
38459 PyObject * obj1 = 0 ;
38460 PyObject * obj2 = 0 ;
38461 PyObject * obj3 = 0 ;
38462 PyObject * obj4 = 0 ;
38463 char * kwnames[] = {
38464 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38465 };
38466
38467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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 '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38471 }
38472 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38473 if (obj1) {
38474 ecode2 = SWIG_AsVal_int(obj1, &val2);
38475 if (!SWIG_IsOK(ecode2)) {
38476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38477 }
38478 arg2 = static_cast< int >(val2);
38479 }
38480 if (obj2) {
38481 {
38482 arg3 = &temp3;
38483 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38484 }
38485 }
38486 if (obj3) {
38487 {
38488 arg4 = &temp4;
38489 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38490 }
38491 }
38492 if (obj4) {
38493 ecode5 = SWIG_AsVal_long(obj4, &val5);
38494 if (!SWIG_IsOK(ecode5)) {
38495 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38496 }
38497 arg5 = static_cast< long >(val5);
38498 }
38499 {
38500 if (!wxPyCheckForApp()) SWIG_fail;
38501 PyThreadState* __tstate = wxPyBeginAllowThreads();
38502 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38503 wxPyEndAllowThreads(__tstate);
38504 if (PyErr_Occurred()) SWIG_fail;
38505 }
38506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38507 return resultobj;
38508 fail:
38509 return NULL;
38510 }
38511
38512
38513 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38514 PyObject *resultobj = 0;
38515 wxDirFilterListCtrl *result = 0 ;
38516
38517 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38518 {
38519 if (!wxPyCheckForApp()) SWIG_fail;
38520 PyThreadState* __tstate = wxPyBeginAllowThreads();
38521 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38522 wxPyEndAllowThreads(__tstate);
38523 if (PyErr_Occurred()) SWIG_fail;
38524 }
38525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38526 return resultobj;
38527 fail:
38528 return NULL;
38529 }
38530
38531
38532 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38533 PyObject *resultobj = 0;
38534 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38535 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38536 int arg3 = (int) (int)-1 ;
38537 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38538 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38539 wxSize const &arg5_defvalue = wxDefaultSize ;
38540 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38541 long arg6 = (long) 0 ;
38542 bool result;
38543 void *argp1 = 0 ;
38544 int res1 = 0 ;
38545 void *argp2 = 0 ;
38546 int res2 = 0 ;
38547 int val3 ;
38548 int ecode3 = 0 ;
38549 wxPoint temp4 ;
38550 wxSize temp5 ;
38551 long val6 ;
38552 int ecode6 = 0 ;
38553 PyObject * obj0 = 0 ;
38554 PyObject * obj1 = 0 ;
38555 PyObject * obj2 = 0 ;
38556 PyObject * obj3 = 0 ;
38557 PyObject * obj4 = 0 ;
38558 PyObject * obj5 = 0 ;
38559 char * kwnames[] = {
38560 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38561 };
38562
38563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38565 if (!SWIG_IsOK(res1)) {
38566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38567 }
38568 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38569 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38570 if (!SWIG_IsOK(res2)) {
38571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38572 }
38573 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38574 if (obj2) {
38575 ecode3 = SWIG_AsVal_int(obj2, &val3);
38576 if (!SWIG_IsOK(ecode3)) {
38577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38578 }
38579 arg3 = static_cast< int >(val3);
38580 }
38581 if (obj3) {
38582 {
38583 arg4 = &temp4;
38584 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38585 }
38586 }
38587 if (obj4) {
38588 {
38589 arg5 = &temp5;
38590 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38591 }
38592 }
38593 if (obj5) {
38594 ecode6 = SWIG_AsVal_long(obj5, &val6);
38595 if (!SWIG_IsOK(ecode6)) {
38596 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38597 }
38598 arg6 = static_cast< long >(val6);
38599 }
38600 {
38601 PyThreadState* __tstate = wxPyBeginAllowThreads();
38602 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38603 wxPyEndAllowThreads(__tstate);
38604 if (PyErr_Occurred()) SWIG_fail;
38605 }
38606 {
38607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38608 }
38609 return resultobj;
38610 fail:
38611 return NULL;
38612 }
38613
38614
38615 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38616 PyObject *resultobj = 0;
38617 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38618 wxString *arg2 = 0 ;
38619 int arg3 ;
38620 void *argp1 = 0 ;
38621 int res1 = 0 ;
38622 bool temp2 = false ;
38623 int val3 ;
38624 int ecode3 = 0 ;
38625 PyObject * obj0 = 0 ;
38626 PyObject * obj1 = 0 ;
38627 PyObject * obj2 = 0 ;
38628 char * kwnames[] = {
38629 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38630 };
38631
38632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38634 if (!SWIG_IsOK(res1)) {
38635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38636 }
38637 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38638 {
38639 arg2 = wxString_in_helper(obj1);
38640 if (arg2 == NULL) SWIG_fail;
38641 temp2 = true;
38642 }
38643 ecode3 = SWIG_AsVal_int(obj2, &val3);
38644 if (!SWIG_IsOK(ecode3)) {
38645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38646 }
38647 arg3 = static_cast< int >(val3);
38648 {
38649 PyThreadState* __tstate = wxPyBeginAllowThreads();
38650 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38651 wxPyEndAllowThreads(__tstate);
38652 if (PyErr_Occurred()) SWIG_fail;
38653 }
38654 resultobj = SWIG_Py_Void();
38655 {
38656 if (temp2)
38657 delete arg2;
38658 }
38659 return resultobj;
38660 fail:
38661 {
38662 if (temp2)
38663 delete arg2;
38664 }
38665 return NULL;
38666 }
38667
38668
38669 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38670 PyObject *obj;
38671 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38672 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38673 return SWIG_Py_Void();
38674 }
38675
38676 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38677 return SWIG_Python_InitShadowInstance(args);
38678 }
38679
38680 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38681 PyObject *resultobj = 0;
38682 wxWindow *arg1 = (wxWindow *) 0 ;
38683 int arg2 = (int) (int)-1 ;
38684 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38685 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38686 wxSize const &arg4_defvalue = wxDefaultSize ;
38687 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38688 long arg5 = (long) 0 ;
38689 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38690 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38691 wxString const &arg7_defvalue = wxPyControlNameStr ;
38692 wxString *arg7 = (wxString *) &arg7_defvalue ;
38693 wxPyControl *result = 0 ;
38694 void *argp1 = 0 ;
38695 int res1 = 0 ;
38696 int val2 ;
38697 int ecode2 = 0 ;
38698 wxPoint temp3 ;
38699 wxSize temp4 ;
38700 long val5 ;
38701 int ecode5 = 0 ;
38702 void *argp6 = 0 ;
38703 int res6 = 0 ;
38704 bool temp7 = false ;
38705 PyObject * obj0 = 0 ;
38706 PyObject * obj1 = 0 ;
38707 PyObject * obj2 = 0 ;
38708 PyObject * obj3 = 0 ;
38709 PyObject * obj4 = 0 ;
38710 PyObject * obj5 = 0 ;
38711 PyObject * obj6 = 0 ;
38712 char * kwnames[] = {
38713 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38714 };
38715
38716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38718 if (!SWIG_IsOK(res1)) {
38719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38720 }
38721 arg1 = reinterpret_cast< wxWindow * >(argp1);
38722 if (obj1) {
38723 ecode2 = SWIG_AsVal_int(obj1, &val2);
38724 if (!SWIG_IsOK(ecode2)) {
38725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38726 }
38727 arg2 = static_cast< int >(val2);
38728 }
38729 if (obj2) {
38730 {
38731 arg3 = &temp3;
38732 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38733 }
38734 }
38735 if (obj3) {
38736 {
38737 arg4 = &temp4;
38738 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38739 }
38740 }
38741 if (obj4) {
38742 ecode5 = SWIG_AsVal_long(obj4, &val5);
38743 if (!SWIG_IsOK(ecode5)) {
38744 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38745 }
38746 arg5 = static_cast< long >(val5);
38747 }
38748 if (obj5) {
38749 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38750 if (!SWIG_IsOK(res6)) {
38751 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38752 }
38753 if (!argp6) {
38754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38755 }
38756 arg6 = reinterpret_cast< wxValidator * >(argp6);
38757 }
38758 if (obj6) {
38759 {
38760 arg7 = wxString_in_helper(obj6);
38761 if (arg7 == NULL) SWIG_fail;
38762 temp7 = true;
38763 }
38764 }
38765 {
38766 if (!wxPyCheckForApp()) SWIG_fail;
38767 PyThreadState* __tstate = wxPyBeginAllowThreads();
38768 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38769 wxPyEndAllowThreads(__tstate);
38770 if (PyErr_Occurred()) SWIG_fail;
38771 }
38772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38773 {
38774 if (temp7)
38775 delete arg7;
38776 }
38777 return resultobj;
38778 fail:
38779 {
38780 if (temp7)
38781 delete arg7;
38782 }
38783 return NULL;
38784 }
38785
38786
38787 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38788 PyObject *resultobj = 0;
38789 wxPyControl *result = 0 ;
38790
38791 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38792 {
38793 if (!wxPyCheckForApp()) SWIG_fail;
38794 PyThreadState* __tstate = wxPyBeginAllowThreads();
38795 result = (wxPyControl *)new wxPyControl();
38796 wxPyEndAllowThreads(__tstate);
38797 if (PyErr_Occurred()) SWIG_fail;
38798 }
38799 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38800 return resultobj;
38801 fail:
38802 return NULL;
38803 }
38804
38805
38806 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38807 PyObject *resultobj = 0;
38808 wxPyControl *arg1 = (wxPyControl *) 0 ;
38809 PyObject *arg2 = (PyObject *) 0 ;
38810 PyObject *arg3 = (PyObject *) 0 ;
38811 void *argp1 = 0 ;
38812 int res1 = 0 ;
38813 PyObject * obj0 = 0 ;
38814 PyObject * obj1 = 0 ;
38815 PyObject * obj2 = 0 ;
38816 char * kwnames[] = {
38817 (char *) "self",(char *) "self",(char *) "_class", NULL
38818 };
38819
38820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38822 if (!SWIG_IsOK(res1)) {
38823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38824 }
38825 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38826 arg2 = obj1;
38827 arg3 = obj2;
38828 {
38829 PyThreadState* __tstate = wxPyBeginAllowThreads();
38830 (arg1)->_setCallbackInfo(arg2,arg3);
38831 wxPyEndAllowThreads(__tstate);
38832 if (PyErr_Occurred()) SWIG_fail;
38833 }
38834 resultobj = SWIG_Py_Void();
38835 return resultobj;
38836 fail:
38837 return NULL;
38838 }
38839
38840
38841 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38842 PyObject *resultobj = 0;
38843 wxPyControl *arg1 = (wxPyControl *) 0 ;
38844 wxSize *arg2 = 0 ;
38845 void *argp1 = 0 ;
38846 int res1 = 0 ;
38847 wxSize temp2 ;
38848 PyObject * obj0 = 0 ;
38849 PyObject * obj1 = 0 ;
38850 char * kwnames[] = {
38851 (char *) "self",(char *) "size", NULL
38852 };
38853
38854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38856 if (!SWIG_IsOK(res1)) {
38857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38858 }
38859 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38860 {
38861 arg2 = &temp2;
38862 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38863 }
38864 {
38865 PyThreadState* __tstate = wxPyBeginAllowThreads();
38866 (arg1)->SetBestSize((wxSize const &)*arg2);
38867 wxPyEndAllowThreads(__tstate);
38868 if (PyErr_Occurred()) SWIG_fail;
38869 }
38870 resultobj = SWIG_Py_Void();
38871 return resultobj;
38872 fail:
38873 return NULL;
38874 }
38875
38876
38877 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38878 PyObject *resultobj = 0;
38879 wxPyControl *arg1 = (wxPyControl *) 0 ;
38880 wxDC *arg2 = (wxDC *) 0 ;
38881 bool result;
38882 void *argp1 = 0 ;
38883 int res1 = 0 ;
38884 void *argp2 = 0 ;
38885 int res2 = 0 ;
38886 PyObject * obj0 = 0 ;
38887 PyObject * obj1 = 0 ;
38888 char * kwnames[] = {
38889 (char *) "self",(char *) "dc", NULL
38890 };
38891
38892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38894 if (!SWIG_IsOK(res1)) {
38895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38896 }
38897 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38898 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38899 if (!SWIG_IsOK(res2)) {
38900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38901 }
38902 arg2 = reinterpret_cast< wxDC * >(argp2);
38903 {
38904 PyThreadState* __tstate = wxPyBeginAllowThreads();
38905 result = (bool)(arg1)->DoEraseBackground(arg2);
38906 wxPyEndAllowThreads(__tstate);
38907 if (PyErr_Occurred()) SWIG_fail;
38908 }
38909 {
38910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38911 }
38912 return resultobj;
38913 fail:
38914 return NULL;
38915 }
38916
38917
38918 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38919 PyObject *resultobj = 0;
38920 wxPyControl *arg1 = (wxPyControl *) 0 ;
38921 int arg2 ;
38922 int arg3 ;
38923 int arg4 ;
38924 int arg5 ;
38925 void *argp1 = 0 ;
38926 int res1 = 0 ;
38927 int val2 ;
38928 int ecode2 = 0 ;
38929 int val3 ;
38930 int ecode3 = 0 ;
38931 int val4 ;
38932 int ecode4 = 0 ;
38933 int val5 ;
38934 int ecode5 = 0 ;
38935 PyObject * obj0 = 0 ;
38936 PyObject * obj1 = 0 ;
38937 PyObject * obj2 = 0 ;
38938 PyObject * obj3 = 0 ;
38939 PyObject * obj4 = 0 ;
38940 char * kwnames[] = {
38941 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38942 };
38943
38944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38946 if (!SWIG_IsOK(res1)) {
38947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38948 }
38949 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38950 ecode2 = SWIG_AsVal_int(obj1, &val2);
38951 if (!SWIG_IsOK(ecode2)) {
38952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38953 }
38954 arg2 = static_cast< int >(val2);
38955 ecode3 = SWIG_AsVal_int(obj2, &val3);
38956 if (!SWIG_IsOK(ecode3)) {
38957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38958 }
38959 arg3 = static_cast< int >(val3);
38960 ecode4 = SWIG_AsVal_int(obj3, &val4);
38961 if (!SWIG_IsOK(ecode4)) {
38962 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38963 }
38964 arg4 = static_cast< int >(val4);
38965 ecode5 = SWIG_AsVal_int(obj4, &val5);
38966 if (!SWIG_IsOK(ecode5)) {
38967 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38968 }
38969 arg5 = static_cast< int >(val5);
38970 {
38971 PyThreadState* __tstate = wxPyBeginAllowThreads();
38972 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38973 wxPyEndAllowThreads(__tstate);
38974 if (PyErr_Occurred()) SWIG_fail;
38975 }
38976 resultobj = SWIG_Py_Void();
38977 return resultobj;
38978 fail:
38979 return NULL;
38980 }
38981
38982
38983 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38984 PyObject *resultobj = 0;
38985 wxPyControl *arg1 = (wxPyControl *) 0 ;
38986 int arg2 ;
38987 int arg3 ;
38988 int arg4 ;
38989 int arg5 ;
38990 int arg6 = (int) wxSIZE_AUTO ;
38991 void *argp1 = 0 ;
38992 int res1 = 0 ;
38993 int val2 ;
38994 int ecode2 = 0 ;
38995 int val3 ;
38996 int ecode3 = 0 ;
38997 int val4 ;
38998 int ecode4 = 0 ;
38999 int val5 ;
39000 int ecode5 = 0 ;
39001 int 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 *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39011 };
39012
39013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39015 if (!SWIG_IsOK(res1)) {
39016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39017 }
39018 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39019 ecode2 = SWIG_AsVal_int(obj1, &val2);
39020 if (!SWIG_IsOK(ecode2)) {
39021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39022 }
39023 arg2 = static_cast< int >(val2);
39024 ecode3 = SWIG_AsVal_int(obj2, &val3);
39025 if (!SWIG_IsOK(ecode3)) {
39026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39027 }
39028 arg3 = static_cast< int >(val3);
39029 ecode4 = SWIG_AsVal_int(obj3, &val4);
39030 if (!SWIG_IsOK(ecode4)) {
39031 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39032 }
39033 arg4 = static_cast< int >(val4);
39034 ecode5 = SWIG_AsVal_int(obj4, &val5);
39035 if (!SWIG_IsOK(ecode5)) {
39036 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39037 }
39038 arg5 = static_cast< int >(val5);
39039 if (obj5) {
39040 ecode6 = SWIG_AsVal_int(obj5, &val6);
39041 if (!SWIG_IsOK(ecode6)) {
39042 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39043 }
39044 arg6 = static_cast< int >(val6);
39045 }
39046 {
39047 PyThreadState* __tstate = wxPyBeginAllowThreads();
39048 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39049 wxPyEndAllowThreads(__tstate);
39050 if (PyErr_Occurred()) SWIG_fail;
39051 }
39052 resultobj = SWIG_Py_Void();
39053 return resultobj;
39054 fail:
39055 return NULL;
39056 }
39057
39058
39059 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39060 PyObject *resultobj = 0;
39061 wxPyControl *arg1 = (wxPyControl *) 0 ;
39062 int arg2 ;
39063 int arg3 ;
39064 void *argp1 = 0 ;
39065 int res1 = 0 ;
39066 int val2 ;
39067 int ecode2 = 0 ;
39068 int val3 ;
39069 int ecode3 = 0 ;
39070 PyObject * obj0 = 0 ;
39071 PyObject * obj1 = 0 ;
39072 PyObject * obj2 = 0 ;
39073 char * kwnames[] = {
39074 (char *) "self",(char *) "width",(char *) "height", NULL
39075 };
39076
39077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39079 if (!SWIG_IsOK(res1)) {
39080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39081 }
39082 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39083 ecode2 = SWIG_AsVal_int(obj1, &val2);
39084 if (!SWIG_IsOK(ecode2)) {
39085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39086 }
39087 arg2 = static_cast< int >(val2);
39088 ecode3 = SWIG_AsVal_int(obj2, &val3);
39089 if (!SWIG_IsOK(ecode3)) {
39090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39091 }
39092 arg3 = static_cast< int >(val3);
39093 {
39094 PyThreadState* __tstate = wxPyBeginAllowThreads();
39095 (arg1)->DoSetClientSize(arg2,arg3);
39096 wxPyEndAllowThreads(__tstate);
39097 if (PyErr_Occurred()) SWIG_fail;
39098 }
39099 resultobj = SWIG_Py_Void();
39100 return resultobj;
39101 fail:
39102 return NULL;
39103 }
39104
39105
39106 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39107 PyObject *resultobj = 0;
39108 wxPyControl *arg1 = (wxPyControl *) 0 ;
39109 int arg2 ;
39110 int arg3 ;
39111 void *argp1 = 0 ;
39112 int res1 = 0 ;
39113 int val2 ;
39114 int ecode2 = 0 ;
39115 int val3 ;
39116 int ecode3 = 0 ;
39117 PyObject * obj0 = 0 ;
39118 PyObject * obj1 = 0 ;
39119 PyObject * obj2 = 0 ;
39120 char * kwnames[] = {
39121 (char *) "self",(char *) "x",(char *) "y", NULL
39122 };
39123
39124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39126 if (!SWIG_IsOK(res1)) {
39127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39128 }
39129 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39130 ecode2 = SWIG_AsVal_int(obj1, &val2);
39131 if (!SWIG_IsOK(ecode2)) {
39132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39133 }
39134 arg2 = static_cast< int >(val2);
39135 ecode3 = SWIG_AsVal_int(obj2, &val3);
39136 if (!SWIG_IsOK(ecode3)) {
39137 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39138 }
39139 arg3 = static_cast< int >(val3);
39140 {
39141 PyThreadState* __tstate = wxPyBeginAllowThreads();
39142 (arg1)->DoSetVirtualSize(arg2,arg3);
39143 wxPyEndAllowThreads(__tstate);
39144 if (PyErr_Occurred()) SWIG_fail;
39145 }
39146 resultobj = SWIG_Py_Void();
39147 return resultobj;
39148 fail:
39149 return NULL;
39150 }
39151
39152
39153 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39154 PyObject *resultobj = 0;
39155 wxPyControl *arg1 = (wxPyControl *) 0 ;
39156 int *arg2 = (int *) 0 ;
39157 int *arg3 = (int *) 0 ;
39158 void *argp1 = 0 ;
39159 int res1 = 0 ;
39160 int temp2 ;
39161 int res2 = SWIG_TMPOBJ ;
39162 int temp3 ;
39163 int res3 = SWIG_TMPOBJ ;
39164 PyObject *swig_obj[1] ;
39165
39166 arg2 = &temp2;
39167 arg3 = &temp3;
39168 if (!args) SWIG_fail;
39169 swig_obj[0] = args;
39170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39171 if (!SWIG_IsOK(res1)) {
39172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39173 }
39174 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39175 {
39176 PyThreadState* __tstate = wxPyBeginAllowThreads();
39177 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39178 wxPyEndAllowThreads(__tstate);
39179 if (PyErr_Occurred()) SWIG_fail;
39180 }
39181 resultobj = SWIG_Py_Void();
39182 if (SWIG_IsTmpObj(res2)) {
39183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39184 } else {
39185 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39187 }
39188 if (SWIG_IsTmpObj(res3)) {
39189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39190 } else {
39191 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39192 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39193 }
39194 return resultobj;
39195 fail:
39196 return NULL;
39197 }
39198
39199
39200 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39201 PyObject *resultobj = 0;
39202 wxPyControl *arg1 = (wxPyControl *) 0 ;
39203 int *arg2 = (int *) 0 ;
39204 int *arg3 = (int *) 0 ;
39205 void *argp1 = 0 ;
39206 int res1 = 0 ;
39207 int temp2 ;
39208 int res2 = SWIG_TMPOBJ ;
39209 int temp3 ;
39210 int res3 = SWIG_TMPOBJ ;
39211 PyObject *swig_obj[1] ;
39212
39213 arg2 = &temp2;
39214 arg3 = &temp3;
39215 if (!args) SWIG_fail;
39216 swig_obj[0] = args;
39217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39218 if (!SWIG_IsOK(res1)) {
39219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39220 }
39221 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39222 {
39223 PyThreadState* __tstate = wxPyBeginAllowThreads();
39224 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39225 wxPyEndAllowThreads(__tstate);
39226 if (PyErr_Occurred()) SWIG_fail;
39227 }
39228 resultobj = SWIG_Py_Void();
39229 if (SWIG_IsTmpObj(res2)) {
39230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39231 } else {
39232 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39234 }
39235 if (SWIG_IsTmpObj(res3)) {
39236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39237 } else {
39238 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39239 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39240 }
39241 return resultobj;
39242 fail:
39243 return NULL;
39244 }
39245
39246
39247 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39248 PyObject *resultobj = 0;
39249 wxPyControl *arg1 = (wxPyControl *) 0 ;
39250 int *arg2 = (int *) 0 ;
39251 int *arg3 = (int *) 0 ;
39252 void *argp1 = 0 ;
39253 int res1 = 0 ;
39254 int temp2 ;
39255 int res2 = SWIG_TMPOBJ ;
39256 int temp3 ;
39257 int res3 = SWIG_TMPOBJ ;
39258 PyObject *swig_obj[1] ;
39259
39260 arg2 = &temp2;
39261 arg3 = &temp3;
39262 if (!args) SWIG_fail;
39263 swig_obj[0] = args;
39264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39265 if (!SWIG_IsOK(res1)) {
39266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39267 }
39268 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39269 {
39270 PyThreadState* __tstate = wxPyBeginAllowThreads();
39271 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39272 wxPyEndAllowThreads(__tstate);
39273 if (PyErr_Occurred()) SWIG_fail;
39274 }
39275 resultobj = SWIG_Py_Void();
39276 if (SWIG_IsTmpObj(res2)) {
39277 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39278 } else {
39279 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39280 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39281 }
39282 if (SWIG_IsTmpObj(res3)) {
39283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39284 } else {
39285 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39287 }
39288 return resultobj;
39289 fail:
39290 return NULL;
39291 }
39292
39293
39294 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39295 PyObject *resultobj = 0;
39296 wxPyControl *arg1 = (wxPyControl *) 0 ;
39297 wxSize result;
39298 void *argp1 = 0 ;
39299 int res1 = 0 ;
39300 PyObject *swig_obj[1] ;
39301
39302 if (!args) SWIG_fail;
39303 swig_obj[0] = args;
39304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39305 if (!SWIG_IsOK(res1)) {
39306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39307 }
39308 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39309 {
39310 PyThreadState* __tstate = wxPyBeginAllowThreads();
39311 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39312 wxPyEndAllowThreads(__tstate);
39313 if (PyErr_Occurred()) SWIG_fail;
39314 }
39315 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39316 return resultobj;
39317 fail:
39318 return NULL;
39319 }
39320
39321
39322 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39323 PyObject *resultobj = 0;
39324 wxPyControl *arg1 = (wxPyControl *) 0 ;
39325 wxSize result;
39326 void *argp1 = 0 ;
39327 int res1 = 0 ;
39328 PyObject *swig_obj[1] ;
39329
39330 if (!args) SWIG_fail;
39331 swig_obj[0] = args;
39332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39333 if (!SWIG_IsOK(res1)) {
39334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39335 }
39336 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39337 {
39338 PyThreadState* __tstate = wxPyBeginAllowThreads();
39339 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39340 wxPyEndAllowThreads(__tstate);
39341 if (PyErr_Occurred()) SWIG_fail;
39342 }
39343 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39344 return resultobj;
39345 fail:
39346 return NULL;
39347 }
39348
39349
39350 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39351 PyObject *resultobj = 0;
39352 wxPyControl *arg1 = (wxPyControl *) 0 ;
39353 SwigValueWrapper<wxVisualAttributes > result;
39354 void *argp1 = 0 ;
39355 int res1 = 0 ;
39356 PyObject *swig_obj[1] ;
39357
39358 if (!args) SWIG_fail;
39359 swig_obj[0] = args;
39360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39361 if (!SWIG_IsOK(res1)) {
39362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39363 }
39364 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39365 {
39366 PyThreadState* __tstate = wxPyBeginAllowThreads();
39367 result = (arg1)->GetDefaultAttributes();
39368 wxPyEndAllowThreads(__tstate);
39369 if (PyErr_Occurred()) SWIG_fail;
39370 }
39371 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39372 return resultobj;
39373 fail:
39374 return NULL;
39375 }
39376
39377
39378 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39379 PyObject *resultobj = 0;
39380 wxPyControl *arg1 = (wxPyControl *) 0 ;
39381 void *argp1 = 0 ;
39382 int res1 = 0 ;
39383 PyObject *swig_obj[1] ;
39384
39385 if (!args) SWIG_fail;
39386 swig_obj[0] = args;
39387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39388 if (!SWIG_IsOK(res1)) {
39389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39390 }
39391 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39392 {
39393 PyThreadState* __tstate = wxPyBeginAllowThreads();
39394 (arg1)->OnInternalIdle();
39395 wxPyEndAllowThreads(__tstate);
39396 if (PyErr_Occurred()) SWIG_fail;
39397 }
39398 resultobj = SWIG_Py_Void();
39399 return resultobj;
39400 fail:
39401 return NULL;
39402 }
39403
39404
39405 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39406 PyObject *obj;
39407 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39408 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39409 return SWIG_Py_Void();
39410 }
39411
39412 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39413 return SWIG_Python_InitShadowInstance(args);
39414 }
39415
39416 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39417 PyObject *resultobj = 0;
39418 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39419 int arg2 = (int) 0 ;
39420 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39421 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39422 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39423 wxHelpEvent *result = 0 ;
39424 int val1 ;
39425 int ecode1 = 0 ;
39426 int val2 ;
39427 int ecode2 = 0 ;
39428 wxPoint temp3 ;
39429 int val4 ;
39430 int ecode4 = 0 ;
39431 PyObject * obj0 = 0 ;
39432 PyObject * obj1 = 0 ;
39433 PyObject * obj2 = 0 ;
39434 PyObject * obj3 = 0 ;
39435 char * kwnames[] = {
39436 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39437 };
39438
39439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39440 if (obj0) {
39441 ecode1 = SWIG_AsVal_int(obj0, &val1);
39442 if (!SWIG_IsOK(ecode1)) {
39443 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39444 }
39445 arg1 = static_cast< wxEventType >(val1);
39446 }
39447 if (obj1) {
39448 ecode2 = SWIG_AsVal_int(obj1, &val2);
39449 if (!SWIG_IsOK(ecode2)) {
39450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39451 }
39452 arg2 = static_cast< int >(val2);
39453 }
39454 if (obj2) {
39455 {
39456 arg3 = &temp3;
39457 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39458 }
39459 }
39460 if (obj3) {
39461 ecode4 = SWIG_AsVal_int(obj3, &val4);
39462 if (!SWIG_IsOK(ecode4)) {
39463 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39464 }
39465 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39466 }
39467 {
39468 PyThreadState* __tstate = wxPyBeginAllowThreads();
39469 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39470 wxPyEndAllowThreads(__tstate);
39471 if (PyErr_Occurred()) SWIG_fail;
39472 }
39473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39474 return resultobj;
39475 fail:
39476 return NULL;
39477 }
39478
39479
39480 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39481 PyObject *resultobj = 0;
39482 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39483 wxPoint result;
39484 void *argp1 = 0 ;
39485 int res1 = 0 ;
39486 PyObject *swig_obj[1] ;
39487
39488 if (!args) SWIG_fail;
39489 swig_obj[0] = args;
39490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39491 if (!SWIG_IsOK(res1)) {
39492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39493 }
39494 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39495 {
39496 PyThreadState* __tstate = wxPyBeginAllowThreads();
39497 result = ((wxHelpEvent const *)arg1)->GetPosition();
39498 wxPyEndAllowThreads(__tstate);
39499 if (PyErr_Occurred()) SWIG_fail;
39500 }
39501 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39502 return resultobj;
39503 fail:
39504 return NULL;
39505 }
39506
39507
39508 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39509 PyObject *resultobj = 0;
39510 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39511 wxPoint *arg2 = 0 ;
39512 void *argp1 = 0 ;
39513 int res1 = 0 ;
39514 wxPoint temp2 ;
39515 PyObject * obj0 = 0 ;
39516 PyObject * obj1 = 0 ;
39517 char * kwnames[] = {
39518 (char *) "self",(char *) "pos", NULL
39519 };
39520
39521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39523 if (!SWIG_IsOK(res1)) {
39524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39525 }
39526 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39527 {
39528 arg2 = &temp2;
39529 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39530 }
39531 {
39532 PyThreadState* __tstate = wxPyBeginAllowThreads();
39533 (arg1)->SetPosition((wxPoint const &)*arg2);
39534 wxPyEndAllowThreads(__tstate);
39535 if (PyErr_Occurred()) SWIG_fail;
39536 }
39537 resultobj = SWIG_Py_Void();
39538 return resultobj;
39539 fail:
39540 return NULL;
39541 }
39542
39543
39544 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39545 PyObject *resultobj = 0;
39546 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39547 wxString *result = 0 ;
39548 void *argp1 = 0 ;
39549 int res1 = 0 ;
39550 PyObject *swig_obj[1] ;
39551
39552 if (!args) SWIG_fail;
39553 swig_obj[0] = args;
39554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39555 if (!SWIG_IsOK(res1)) {
39556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39557 }
39558 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39559 {
39560 PyThreadState* __tstate = wxPyBeginAllowThreads();
39561 {
39562 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39563 result = (wxString *) &_result_ref;
39564 }
39565 wxPyEndAllowThreads(__tstate);
39566 if (PyErr_Occurred()) SWIG_fail;
39567 }
39568 {
39569 #if wxUSE_UNICODE
39570 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39571 #else
39572 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39573 #endif
39574 }
39575 return resultobj;
39576 fail:
39577 return NULL;
39578 }
39579
39580
39581 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39582 PyObject *resultobj = 0;
39583 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39584 wxString *arg2 = 0 ;
39585 void *argp1 = 0 ;
39586 int res1 = 0 ;
39587 bool temp2 = false ;
39588 PyObject * obj0 = 0 ;
39589 PyObject * obj1 = 0 ;
39590 char * kwnames[] = {
39591 (char *) "self",(char *) "link", NULL
39592 };
39593
39594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39596 if (!SWIG_IsOK(res1)) {
39597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39598 }
39599 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39600 {
39601 arg2 = wxString_in_helper(obj1);
39602 if (arg2 == NULL) SWIG_fail;
39603 temp2 = true;
39604 }
39605 {
39606 PyThreadState* __tstate = wxPyBeginAllowThreads();
39607 (arg1)->SetLink((wxString const &)*arg2);
39608 wxPyEndAllowThreads(__tstate);
39609 if (PyErr_Occurred()) SWIG_fail;
39610 }
39611 resultobj = SWIG_Py_Void();
39612 {
39613 if (temp2)
39614 delete arg2;
39615 }
39616 return resultobj;
39617 fail:
39618 {
39619 if (temp2)
39620 delete arg2;
39621 }
39622 return NULL;
39623 }
39624
39625
39626 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39627 PyObject *resultobj = 0;
39628 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39629 wxString *result = 0 ;
39630 void *argp1 = 0 ;
39631 int res1 = 0 ;
39632 PyObject *swig_obj[1] ;
39633
39634 if (!args) SWIG_fail;
39635 swig_obj[0] = args;
39636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39637 if (!SWIG_IsOK(res1)) {
39638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39639 }
39640 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39641 {
39642 PyThreadState* __tstate = wxPyBeginAllowThreads();
39643 {
39644 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39645 result = (wxString *) &_result_ref;
39646 }
39647 wxPyEndAllowThreads(__tstate);
39648 if (PyErr_Occurred()) SWIG_fail;
39649 }
39650 {
39651 #if wxUSE_UNICODE
39652 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39653 #else
39654 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39655 #endif
39656 }
39657 return resultobj;
39658 fail:
39659 return NULL;
39660 }
39661
39662
39663 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39664 PyObject *resultobj = 0;
39665 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39666 wxString *arg2 = 0 ;
39667 void *argp1 = 0 ;
39668 int res1 = 0 ;
39669 bool temp2 = false ;
39670 PyObject * obj0 = 0 ;
39671 PyObject * obj1 = 0 ;
39672 char * kwnames[] = {
39673 (char *) "self",(char *) "target", NULL
39674 };
39675
39676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39678 if (!SWIG_IsOK(res1)) {
39679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39680 }
39681 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39682 {
39683 arg2 = wxString_in_helper(obj1);
39684 if (arg2 == NULL) SWIG_fail;
39685 temp2 = true;
39686 }
39687 {
39688 PyThreadState* __tstate = wxPyBeginAllowThreads();
39689 (arg1)->SetTarget((wxString const &)*arg2);
39690 wxPyEndAllowThreads(__tstate);
39691 if (PyErr_Occurred()) SWIG_fail;
39692 }
39693 resultobj = SWIG_Py_Void();
39694 {
39695 if (temp2)
39696 delete arg2;
39697 }
39698 return resultobj;
39699 fail:
39700 {
39701 if (temp2)
39702 delete arg2;
39703 }
39704 return NULL;
39705 }
39706
39707
39708 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39709 PyObject *resultobj = 0;
39710 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39711 wxHelpEvent::Origin 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_wxHelpEvent, 0 | 0 );
39719 if (!SWIG_IsOK(res1)) {
39720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39721 }
39722 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39723 {
39724 PyThreadState* __tstate = wxPyBeginAllowThreads();
39725 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39726 wxPyEndAllowThreads(__tstate);
39727 if (PyErr_Occurred()) SWIG_fail;
39728 }
39729 resultobj = SWIG_From_int(static_cast< int >(result));
39730 return resultobj;
39731 fail:
39732 return NULL;
39733 }
39734
39735
39736 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39737 PyObject *resultobj = 0;
39738 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39739 wxHelpEvent::Origin arg2 ;
39740 void *argp1 = 0 ;
39741 int res1 = 0 ;
39742 int val2 ;
39743 int ecode2 = 0 ;
39744 PyObject * obj0 = 0 ;
39745 PyObject * obj1 = 0 ;
39746 char * kwnames[] = {
39747 (char *) "self",(char *) "origin", NULL
39748 };
39749
39750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39752 if (!SWIG_IsOK(res1)) {
39753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39754 }
39755 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39756 ecode2 = SWIG_AsVal_int(obj1, &val2);
39757 if (!SWIG_IsOK(ecode2)) {
39758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39759 }
39760 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39761 {
39762 PyThreadState* __tstate = wxPyBeginAllowThreads();
39763 (arg1)->SetOrigin(arg2);
39764 wxPyEndAllowThreads(__tstate);
39765 if (PyErr_Occurred()) SWIG_fail;
39766 }
39767 resultobj = SWIG_Py_Void();
39768 return resultobj;
39769 fail:
39770 return NULL;
39771 }
39772
39773
39774 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39775 PyObject *obj;
39776 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39777 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39778 return SWIG_Py_Void();
39779 }
39780
39781 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39782 return SWIG_Python_InitShadowInstance(args);
39783 }
39784
39785 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39786 PyObject *resultobj = 0;
39787 wxWindow *arg1 = (wxWindow *) NULL ;
39788 bool arg2 = (bool) true ;
39789 wxContextHelp *result = 0 ;
39790 void *argp1 = 0 ;
39791 int res1 = 0 ;
39792 bool val2 ;
39793 int ecode2 = 0 ;
39794 PyObject * obj0 = 0 ;
39795 PyObject * obj1 = 0 ;
39796 char * kwnames[] = {
39797 (char *) "window",(char *) "doNow", NULL
39798 };
39799
39800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39801 if (obj0) {
39802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39803 if (!SWIG_IsOK(res1)) {
39804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39805 }
39806 arg1 = reinterpret_cast< wxWindow * >(argp1);
39807 }
39808 if (obj1) {
39809 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39810 if (!SWIG_IsOK(ecode2)) {
39811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39812 }
39813 arg2 = static_cast< bool >(val2);
39814 }
39815 {
39816 if (!wxPyCheckForApp()) SWIG_fail;
39817 PyThreadState* __tstate = wxPyBeginAllowThreads();
39818 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39819 wxPyEndAllowThreads(__tstate);
39820 if (PyErr_Occurred()) SWIG_fail;
39821 }
39822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39823 return resultobj;
39824 fail:
39825 return NULL;
39826 }
39827
39828
39829 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39830 PyObject *resultobj = 0;
39831 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39832 void *argp1 = 0 ;
39833 int res1 = 0 ;
39834 PyObject *swig_obj[1] ;
39835
39836 if (!args) SWIG_fail;
39837 swig_obj[0] = args;
39838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39839 if (!SWIG_IsOK(res1)) {
39840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39841 }
39842 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39843 {
39844 PyThreadState* __tstate = wxPyBeginAllowThreads();
39845 delete arg1;
39846
39847 wxPyEndAllowThreads(__tstate);
39848 if (PyErr_Occurred()) SWIG_fail;
39849 }
39850 resultobj = SWIG_Py_Void();
39851 return resultobj;
39852 fail:
39853 return NULL;
39854 }
39855
39856
39857 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39858 PyObject *resultobj = 0;
39859 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39860 wxWindow *arg2 = (wxWindow *) NULL ;
39861 bool result;
39862 void *argp1 = 0 ;
39863 int res1 = 0 ;
39864 void *argp2 = 0 ;
39865 int res2 = 0 ;
39866 PyObject * obj0 = 0 ;
39867 PyObject * obj1 = 0 ;
39868 char * kwnames[] = {
39869 (char *) "self",(char *) "window", NULL
39870 };
39871
39872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39874 if (!SWIG_IsOK(res1)) {
39875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39876 }
39877 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39878 if (obj1) {
39879 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39880 if (!SWIG_IsOK(res2)) {
39881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39882 }
39883 arg2 = reinterpret_cast< wxWindow * >(argp2);
39884 }
39885 {
39886 PyThreadState* __tstate = wxPyBeginAllowThreads();
39887 result = (bool)(arg1)->BeginContextHelp(arg2);
39888 wxPyEndAllowThreads(__tstate);
39889 if (PyErr_Occurred()) SWIG_fail;
39890 }
39891 {
39892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39893 }
39894 return resultobj;
39895 fail:
39896 return NULL;
39897 }
39898
39899
39900 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39901 PyObject *resultobj = 0;
39902 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39903 bool result;
39904 void *argp1 = 0 ;
39905 int res1 = 0 ;
39906 PyObject *swig_obj[1] ;
39907
39908 if (!args) SWIG_fail;
39909 swig_obj[0] = args;
39910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39911 if (!SWIG_IsOK(res1)) {
39912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39913 }
39914 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39915 {
39916 PyThreadState* __tstate = wxPyBeginAllowThreads();
39917 result = (bool)(arg1)->EndContextHelp();
39918 wxPyEndAllowThreads(__tstate);
39919 if (PyErr_Occurred()) SWIG_fail;
39920 }
39921 {
39922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39923 }
39924 return resultobj;
39925 fail:
39926 return NULL;
39927 }
39928
39929
39930 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39931 PyObject *obj;
39932 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39933 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39934 return SWIG_Py_Void();
39935 }
39936
39937 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39938 return SWIG_Python_InitShadowInstance(args);
39939 }
39940
39941 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39942 PyObject *resultobj = 0;
39943 wxWindow *arg1 = (wxWindow *) 0 ;
39944 int arg2 = (int) wxID_CONTEXT_HELP ;
39945 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39946 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39947 wxSize const &arg4_defvalue = wxDefaultSize ;
39948 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39949 long arg5 = (long) wxBU_AUTODRAW ;
39950 wxContextHelpButton *result = 0 ;
39951 void *argp1 = 0 ;
39952 int res1 = 0 ;
39953 int val2 ;
39954 int ecode2 = 0 ;
39955 wxPoint temp3 ;
39956 wxSize temp4 ;
39957 long val5 ;
39958 int ecode5 = 0 ;
39959 PyObject * obj0 = 0 ;
39960 PyObject * obj1 = 0 ;
39961 PyObject * obj2 = 0 ;
39962 PyObject * obj3 = 0 ;
39963 PyObject * obj4 = 0 ;
39964 char * kwnames[] = {
39965 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39966 };
39967
39968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39970 if (!SWIG_IsOK(res1)) {
39971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39972 }
39973 arg1 = reinterpret_cast< wxWindow * >(argp1);
39974 if (obj1) {
39975 ecode2 = SWIG_AsVal_int(obj1, &val2);
39976 if (!SWIG_IsOK(ecode2)) {
39977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39978 }
39979 arg2 = static_cast< int >(val2);
39980 }
39981 if (obj2) {
39982 {
39983 arg3 = &temp3;
39984 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39985 }
39986 }
39987 if (obj3) {
39988 {
39989 arg4 = &temp4;
39990 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39991 }
39992 }
39993 if (obj4) {
39994 ecode5 = SWIG_AsVal_long(obj4, &val5);
39995 if (!SWIG_IsOK(ecode5)) {
39996 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39997 }
39998 arg5 = static_cast< long >(val5);
39999 }
40000 {
40001 if (!wxPyCheckForApp()) SWIG_fail;
40002 PyThreadState* __tstate = wxPyBeginAllowThreads();
40003 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40004 wxPyEndAllowThreads(__tstate);
40005 if (PyErr_Occurred()) SWIG_fail;
40006 }
40007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40008 return resultobj;
40009 fail:
40010 return NULL;
40011 }
40012
40013
40014 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40015 PyObject *obj;
40016 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40017 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40018 return SWIG_Py_Void();
40019 }
40020
40021 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40022 return SWIG_Python_InitShadowInstance(args);
40023 }
40024
40025 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40026 PyObject *resultobj = 0;
40027 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40028 void *argp1 = 0 ;
40029 int res1 = 0 ;
40030 PyObject *swig_obj[1] ;
40031
40032 if (!args) SWIG_fail;
40033 swig_obj[0] = args;
40034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40035 if (!SWIG_IsOK(res1)) {
40036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40037 }
40038 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40039 {
40040 PyThreadState* __tstate = wxPyBeginAllowThreads();
40041 delete arg1;
40042
40043 wxPyEndAllowThreads(__tstate);
40044 if (PyErr_Occurred()) SWIG_fail;
40045 }
40046 resultobj = SWIG_Py_Void();
40047 return resultobj;
40048 fail:
40049 return NULL;
40050 }
40051
40052
40053 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40054 PyObject *resultobj = 0;
40055 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40056 wxHelpProvider *result = 0 ;
40057 int res1 = 0 ;
40058 PyObject * obj0 = 0 ;
40059 char * kwnames[] = {
40060 (char *) "helpProvider", NULL
40061 };
40062
40063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40064 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40065 if (!SWIG_IsOK(res1)) {
40066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40067 }
40068 {
40069 PyThreadState* __tstate = wxPyBeginAllowThreads();
40070 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40071 wxPyEndAllowThreads(__tstate);
40072 if (PyErr_Occurred()) SWIG_fail;
40073 }
40074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40075 return resultobj;
40076 fail:
40077 return NULL;
40078 }
40079
40080
40081 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40082 PyObject *resultobj = 0;
40083 wxHelpProvider *result = 0 ;
40084
40085 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40086 {
40087 PyThreadState* __tstate = wxPyBeginAllowThreads();
40088 result = (wxHelpProvider *)wxHelpProvider::Get();
40089 wxPyEndAllowThreads(__tstate);
40090 if (PyErr_Occurred()) SWIG_fail;
40091 }
40092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40093 return resultobj;
40094 fail:
40095 return NULL;
40096 }
40097
40098
40099 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40100 PyObject *resultobj = 0;
40101 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40102 wxWindow *arg2 = (wxWindow *) 0 ;
40103 wxString result;
40104 void *argp1 = 0 ;
40105 int res1 = 0 ;
40106 void *argp2 = 0 ;
40107 int res2 = 0 ;
40108 PyObject * obj0 = 0 ;
40109 PyObject * obj1 = 0 ;
40110 char * kwnames[] = {
40111 (char *) "self",(char *) "window", NULL
40112 };
40113
40114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40116 if (!SWIG_IsOK(res1)) {
40117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40118 }
40119 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40120 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40121 if (!SWIG_IsOK(res2)) {
40122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40123 }
40124 arg2 = reinterpret_cast< wxWindow * >(argp2);
40125 {
40126 PyThreadState* __tstate = wxPyBeginAllowThreads();
40127 result = (arg1)->GetHelp((wxWindow const *)arg2);
40128 wxPyEndAllowThreads(__tstate);
40129 if (PyErr_Occurred()) SWIG_fail;
40130 }
40131 {
40132 #if wxUSE_UNICODE
40133 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40134 #else
40135 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40136 #endif
40137 }
40138 return resultobj;
40139 fail:
40140 return NULL;
40141 }
40142
40143
40144 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40145 PyObject *resultobj = 0;
40146 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40147 wxWindow *arg2 = (wxWindow *) 0 ;
40148 bool result;
40149 void *argp1 = 0 ;
40150 int res1 = 0 ;
40151 void *argp2 = 0 ;
40152 int res2 = 0 ;
40153 PyObject * obj0 = 0 ;
40154 PyObject * obj1 = 0 ;
40155 char * kwnames[] = {
40156 (char *) "self",(char *) "window", NULL
40157 };
40158
40159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40161 if (!SWIG_IsOK(res1)) {
40162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40163 }
40164 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40165 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40166 if (!SWIG_IsOK(res2)) {
40167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40168 }
40169 arg2 = reinterpret_cast< wxWindow * >(argp2);
40170 {
40171 PyThreadState* __tstate = wxPyBeginAllowThreads();
40172 result = (bool)(arg1)->ShowHelp(arg2);
40173 wxPyEndAllowThreads(__tstate);
40174 if (PyErr_Occurred()) SWIG_fail;
40175 }
40176 {
40177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40178 }
40179 return resultobj;
40180 fail:
40181 return NULL;
40182 }
40183
40184
40185 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40186 PyObject *resultobj = 0;
40187 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40188 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40189 wxPoint *arg3 = 0 ;
40190 wxHelpEvent::Origin arg4 ;
40191 bool result;
40192 void *argp1 = 0 ;
40193 int res1 = 0 ;
40194 void *argp2 = 0 ;
40195 int res2 = 0 ;
40196 wxPoint temp3 ;
40197 int val4 ;
40198 int ecode4 = 0 ;
40199 PyObject * obj0 = 0 ;
40200 PyObject * obj1 = 0 ;
40201 PyObject * obj2 = 0 ;
40202 PyObject * obj3 = 0 ;
40203 char * kwnames[] = {
40204 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40205 };
40206
40207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40209 if (!SWIG_IsOK(res1)) {
40210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40211 }
40212 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40213 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40214 if (!SWIG_IsOK(res2)) {
40215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40216 }
40217 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40218 {
40219 arg3 = &temp3;
40220 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40221 }
40222 ecode4 = SWIG_AsVal_int(obj3, &val4);
40223 if (!SWIG_IsOK(ecode4)) {
40224 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40225 }
40226 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40227 {
40228 PyThreadState* __tstate = wxPyBeginAllowThreads();
40229 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40230 wxPyEndAllowThreads(__tstate);
40231 if (PyErr_Occurred()) SWIG_fail;
40232 }
40233 {
40234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40235 }
40236 return resultobj;
40237 fail:
40238 return NULL;
40239 }
40240
40241
40242 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40243 PyObject *resultobj = 0;
40244 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40245 wxWindow *arg2 = (wxWindow *) 0 ;
40246 wxString *arg3 = 0 ;
40247 void *argp1 = 0 ;
40248 int res1 = 0 ;
40249 void *argp2 = 0 ;
40250 int res2 = 0 ;
40251 bool temp3 = false ;
40252 PyObject * obj0 = 0 ;
40253 PyObject * obj1 = 0 ;
40254 PyObject * obj2 = 0 ;
40255 char * kwnames[] = {
40256 (char *) "self",(char *) "window",(char *) "text", NULL
40257 };
40258
40259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40261 if (!SWIG_IsOK(res1)) {
40262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40263 }
40264 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40265 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40266 if (!SWIG_IsOK(res2)) {
40267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40268 }
40269 arg2 = reinterpret_cast< wxWindow * >(argp2);
40270 {
40271 arg3 = wxString_in_helper(obj2);
40272 if (arg3 == NULL) SWIG_fail;
40273 temp3 = true;
40274 }
40275 {
40276 PyThreadState* __tstate = wxPyBeginAllowThreads();
40277 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40278 wxPyEndAllowThreads(__tstate);
40279 if (PyErr_Occurred()) SWIG_fail;
40280 }
40281 resultobj = SWIG_Py_Void();
40282 {
40283 if (temp3)
40284 delete arg3;
40285 }
40286 return resultobj;
40287 fail:
40288 {
40289 if (temp3)
40290 delete arg3;
40291 }
40292 return NULL;
40293 }
40294
40295
40296 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40297 PyObject *resultobj = 0;
40298 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40299 int arg2 ;
40300 wxString *arg3 = 0 ;
40301 void *argp1 = 0 ;
40302 int res1 = 0 ;
40303 int val2 ;
40304 int ecode2 = 0 ;
40305 bool temp3 = false ;
40306 PyObject * obj0 = 0 ;
40307 PyObject * obj1 = 0 ;
40308 PyObject * obj2 = 0 ;
40309 char * kwnames[] = {
40310 (char *) "self",(char *) "id",(char *) "text", NULL
40311 };
40312
40313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40315 if (!SWIG_IsOK(res1)) {
40316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40317 }
40318 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40319 ecode2 = SWIG_AsVal_int(obj1, &val2);
40320 if (!SWIG_IsOK(ecode2)) {
40321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40322 }
40323 arg2 = static_cast< int >(val2);
40324 {
40325 arg3 = wxString_in_helper(obj2);
40326 if (arg3 == NULL) SWIG_fail;
40327 temp3 = true;
40328 }
40329 {
40330 PyThreadState* __tstate = wxPyBeginAllowThreads();
40331 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40332 wxPyEndAllowThreads(__tstate);
40333 if (PyErr_Occurred()) SWIG_fail;
40334 }
40335 resultobj = SWIG_Py_Void();
40336 {
40337 if (temp3)
40338 delete arg3;
40339 }
40340 return resultobj;
40341 fail:
40342 {
40343 if (temp3)
40344 delete arg3;
40345 }
40346 return NULL;
40347 }
40348
40349
40350 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40351 PyObject *resultobj = 0;
40352 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40353 wxWindow *arg2 = (wxWindow *) 0 ;
40354 void *argp1 = 0 ;
40355 int res1 = 0 ;
40356 void *argp2 = 0 ;
40357 int res2 = 0 ;
40358 PyObject * obj0 = 0 ;
40359 PyObject * obj1 = 0 ;
40360 char * kwnames[] = {
40361 (char *) "self",(char *) "window", NULL
40362 };
40363
40364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40366 if (!SWIG_IsOK(res1)) {
40367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40368 }
40369 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40370 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40371 if (!SWIG_IsOK(res2)) {
40372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40373 }
40374 arg2 = reinterpret_cast< wxWindow * >(argp2);
40375 {
40376 PyThreadState* __tstate = wxPyBeginAllowThreads();
40377 (arg1)->RemoveHelp(arg2);
40378 wxPyEndAllowThreads(__tstate);
40379 if (PyErr_Occurred()) SWIG_fail;
40380 }
40381 resultobj = SWIG_Py_Void();
40382 return resultobj;
40383 fail:
40384 return NULL;
40385 }
40386
40387
40388 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40389 PyObject *resultobj = 0;
40390 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40391 void *argp1 = 0 ;
40392 int res1 = 0 ;
40393 PyObject *swig_obj[1] ;
40394
40395 if (!args) SWIG_fail;
40396 swig_obj[0] = args;
40397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40398 if (!SWIG_IsOK(res1)) {
40399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40400 }
40401 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40402 {
40403 PyThreadState* __tstate = wxPyBeginAllowThreads();
40404 wxHelpProvider_Destroy(arg1);
40405 wxPyEndAllowThreads(__tstate);
40406 if (PyErr_Occurred()) SWIG_fail;
40407 }
40408 resultobj = SWIG_Py_Void();
40409 return resultobj;
40410 fail:
40411 return NULL;
40412 }
40413
40414
40415 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40416 PyObject *obj;
40417 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40418 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40419 return SWIG_Py_Void();
40420 }
40421
40422 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40423 PyObject *resultobj = 0;
40424 wxSimpleHelpProvider *result = 0 ;
40425
40426 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40427 {
40428 PyThreadState* __tstate = wxPyBeginAllowThreads();
40429 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40430 wxPyEndAllowThreads(__tstate);
40431 if (PyErr_Occurred()) SWIG_fail;
40432 }
40433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40434 return resultobj;
40435 fail:
40436 return NULL;
40437 }
40438
40439
40440 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40441 PyObject *obj;
40442 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40443 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40444 return SWIG_Py_Void();
40445 }
40446
40447 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40448 return SWIG_Python_InitShadowInstance(args);
40449 }
40450
40451 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40452 PyObject *resultobj = 0;
40453 wxBitmap *arg1 = 0 ;
40454 wxCursor const &arg2_defvalue = wxNullCursor ;
40455 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40456 wxGenericDragImage *result = 0 ;
40457 void *argp1 = 0 ;
40458 int res1 = 0 ;
40459 void *argp2 = 0 ;
40460 int res2 = 0 ;
40461 PyObject * obj0 = 0 ;
40462 PyObject * obj1 = 0 ;
40463 char * kwnames[] = {
40464 (char *) "image",(char *) "cursor", NULL
40465 };
40466
40467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40468 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40469 if (!SWIG_IsOK(res1)) {
40470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40471 }
40472 if (!argp1) {
40473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40474 }
40475 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40476 if (obj1) {
40477 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40478 if (!SWIG_IsOK(res2)) {
40479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40480 }
40481 if (!argp2) {
40482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40483 }
40484 arg2 = reinterpret_cast< wxCursor * >(argp2);
40485 }
40486 {
40487 if (!wxPyCheckForApp()) SWIG_fail;
40488 PyThreadState* __tstate = wxPyBeginAllowThreads();
40489 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40490 wxPyEndAllowThreads(__tstate);
40491 if (PyErr_Occurred()) SWIG_fail;
40492 }
40493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40494 return resultobj;
40495 fail:
40496 return NULL;
40497 }
40498
40499
40500 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40501 PyObject *resultobj = 0;
40502 wxIcon *arg1 = 0 ;
40503 wxCursor const &arg2_defvalue = wxNullCursor ;
40504 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40505 wxGenericDragImage *result = 0 ;
40506 void *argp1 = 0 ;
40507 int res1 = 0 ;
40508 void *argp2 = 0 ;
40509 int res2 = 0 ;
40510 PyObject * obj0 = 0 ;
40511 PyObject * obj1 = 0 ;
40512 char * kwnames[] = {
40513 (char *) "image",(char *) "cursor", NULL
40514 };
40515
40516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40517 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40518 if (!SWIG_IsOK(res1)) {
40519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40520 }
40521 if (!argp1) {
40522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40523 }
40524 arg1 = reinterpret_cast< wxIcon * >(argp1);
40525 if (obj1) {
40526 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40527 if (!SWIG_IsOK(res2)) {
40528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40529 }
40530 if (!argp2) {
40531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40532 }
40533 arg2 = reinterpret_cast< wxCursor * >(argp2);
40534 }
40535 {
40536 if (!wxPyCheckForApp()) SWIG_fail;
40537 PyThreadState* __tstate = wxPyBeginAllowThreads();
40538 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40539 wxPyEndAllowThreads(__tstate);
40540 if (PyErr_Occurred()) SWIG_fail;
40541 }
40542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40543 return resultobj;
40544 fail:
40545 return NULL;
40546 }
40547
40548
40549 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40550 PyObject *resultobj = 0;
40551 wxString *arg1 = 0 ;
40552 wxCursor const &arg2_defvalue = wxNullCursor ;
40553 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40554 wxGenericDragImage *result = 0 ;
40555 bool temp1 = false ;
40556 void *argp2 = 0 ;
40557 int res2 = 0 ;
40558 PyObject * obj0 = 0 ;
40559 PyObject * obj1 = 0 ;
40560 char * kwnames[] = {
40561 (char *) "str",(char *) "cursor", NULL
40562 };
40563
40564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40565 {
40566 arg1 = wxString_in_helper(obj0);
40567 if (arg1 == NULL) SWIG_fail;
40568 temp1 = true;
40569 }
40570 if (obj1) {
40571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40572 if (!SWIG_IsOK(res2)) {
40573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40574 }
40575 if (!argp2) {
40576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40577 }
40578 arg2 = reinterpret_cast< wxCursor * >(argp2);
40579 }
40580 {
40581 if (!wxPyCheckForApp()) SWIG_fail;
40582 PyThreadState* __tstate = wxPyBeginAllowThreads();
40583 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40584 wxPyEndAllowThreads(__tstate);
40585 if (PyErr_Occurred()) SWIG_fail;
40586 }
40587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40588 {
40589 if (temp1)
40590 delete arg1;
40591 }
40592 return resultobj;
40593 fail:
40594 {
40595 if (temp1)
40596 delete arg1;
40597 }
40598 return NULL;
40599 }
40600
40601
40602 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40603 PyObject *resultobj = 0;
40604 wxPyTreeCtrl *arg1 = 0 ;
40605 wxTreeItemId *arg2 = 0 ;
40606 wxGenericDragImage *result = 0 ;
40607 void *argp1 = 0 ;
40608 int res1 = 0 ;
40609 void *argp2 = 0 ;
40610 int res2 = 0 ;
40611 PyObject * obj0 = 0 ;
40612 PyObject * obj1 = 0 ;
40613 char * kwnames[] = {
40614 (char *) "treeCtrl",(char *) "id", NULL
40615 };
40616
40617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40618 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40619 if (!SWIG_IsOK(res1)) {
40620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40621 }
40622 if (!argp1) {
40623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40624 }
40625 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40626 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40627 if (!SWIG_IsOK(res2)) {
40628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40629 }
40630 if (!argp2) {
40631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40632 }
40633 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40634 {
40635 if (!wxPyCheckForApp()) SWIG_fail;
40636 PyThreadState* __tstate = wxPyBeginAllowThreads();
40637 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40638 wxPyEndAllowThreads(__tstate);
40639 if (PyErr_Occurred()) SWIG_fail;
40640 }
40641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40642 return resultobj;
40643 fail:
40644 return NULL;
40645 }
40646
40647
40648 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40649 PyObject *resultobj = 0;
40650 wxPyListCtrl *arg1 = 0 ;
40651 long arg2 ;
40652 wxGenericDragImage *result = 0 ;
40653 void *argp1 = 0 ;
40654 int res1 = 0 ;
40655 long val2 ;
40656 int ecode2 = 0 ;
40657 PyObject * obj0 = 0 ;
40658 PyObject * obj1 = 0 ;
40659 char * kwnames[] = {
40660 (char *) "listCtrl",(char *) "id", NULL
40661 };
40662
40663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40664 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40665 if (!SWIG_IsOK(res1)) {
40666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40667 }
40668 if (!argp1) {
40669 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40670 }
40671 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40672 ecode2 = SWIG_AsVal_long(obj1, &val2);
40673 if (!SWIG_IsOK(ecode2)) {
40674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40675 }
40676 arg2 = static_cast< long >(val2);
40677 {
40678 if (!wxPyCheckForApp()) SWIG_fail;
40679 PyThreadState* __tstate = wxPyBeginAllowThreads();
40680 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40681 wxPyEndAllowThreads(__tstate);
40682 if (PyErr_Occurred()) SWIG_fail;
40683 }
40684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40685 return resultobj;
40686 fail:
40687 return NULL;
40688 }
40689
40690
40691 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40692 PyObject *resultobj = 0;
40693 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40694 void *argp1 = 0 ;
40695 int res1 = 0 ;
40696 PyObject *swig_obj[1] ;
40697
40698 if (!args) SWIG_fail;
40699 swig_obj[0] = args;
40700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40701 if (!SWIG_IsOK(res1)) {
40702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40703 }
40704 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40705 {
40706 PyThreadState* __tstate = wxPyBeginAllowThreads();
40707 delete arg1;
40708
40709 wxPyEndAllowThreads(__tstate);
40710 if (PyErr_Occurred()) SWIG_fail;
40711 }
40712 resultobj = SWIG_Py_Void();
40713 return resultobj;
40714 fail:
40715 return NULL;
40716 }
40717
40718
40719 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40720 PyObject *resultobj = 0;
40721 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40722 wxBitmap *arg2 = (wxBitmap *) 0 ;
40723 void *argp1 = 0 ;
40724 int res1 = 0 ;
40725 void *argp2 = 0 ;
40726 int res2 = 0 ;
40727 PyObject * obj0 = 0 ;
40728 PyObject * obj1 = 0 ;
40729 char * kwnames[] = {
40730 (char *) "self",(char *) "bitmap", NULL
40731 };
40732
40733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40735 if (!SWIG_IsOK(res1)) {
40736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40737 }
40738 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40739 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40740 if (!SWIG_IsOK(res2)) {
40741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40742 }
40743 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40744 {
40745 PyThreadState* __tstate = wxPyBeginAllowThreads();
40746 (arg1)->SetBackingBitmap(arg2);
40747 wxPyEndAllowThreads(__tstate);
40748 if (PyErr_Occurred()) SWIG_fail;
40749 }
40750 resultobj = SWIG_Py_Void();
40751 return resultobj;
40752 fail:
40753 return NULL;
40754 }
40755
40756
40757 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40758 PyObject *resultobj = 0;
40759 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40760 wxPoint *arg2 = 0 ;
40761 wxWindow *arg3 = (wxWindow *) 0 ;
40762 bool arg4 = (bool) false ;
40763 wxRect *arg5 = (wxRect *) NULL ;
40764 bool result;
40765 void *argp1 = 0 ;
40766 int res1 = 0 ;
40767 wxPoint temp2 ;
40768 void *argp3 = 0 ;
40769 int res3 = 0 ;
40770 bool val4 ;
40771 int ecode4 = 0 ;
40772 void *argp5 = 0 ;
40773 int res5 = 0 ;
40774 PyObject * obj0 = 0 ;
40775 PyObject * obj1 = 0 ;
40776 PyObject * obj2 = 0 ;
40777 PyObject * obj3 = 0 ;
40778 PyObject * obj4 = 0 ;
40779 char * kwnames[] = {
40780 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40781 };
40782
40783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40785 if (!SWIG_IsOK(res1)) {
40786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40787 }
40788 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40789 {
40790 arg2 = &temp2;
40791 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40792 }
40793 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40794 if (!SWIG_IsOK(res3)) {
40795 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40796 }
40797 arg3 = reinterpret_cast< wxWindow * >(argp3);
40798 if (obj3) {
40799 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40800 if (!SWIG_IsOK(ecode4)) {
40801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40802 }
40803 arg4 = static_cast< bool >(val4);
40804 }
40805 if (obj4) {
40806 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40807 if (!SWIG_IsOK(res5)) {
40808 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40809 }
40810 arg5 = reinterpret_cast< wxRect * >(argp5);
40811 }
40812 {
40813 PyThreadState* __tstate = wxPyBeginAllowThreads();
40814 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40815 wxPyEndAllowThreads(__tstate);
40816 if (PyErr_Occurred()) SWIG_fail;
40817 }
40818 {
40819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40820 }
40821 return resultobj;
40822 fail:
40823 return NULL;
40824 }
40825
40826
40827 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40828 PyObject *resultobj = 0;
40829 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40830 wxPoint *arg2 = 0 ;
40831 wxWindow *arg3 = (wxWindow *) 0 ;
40832 wxWindow *arg4 = (wxWindow *) 0 ;
40833 bool result;
40834 void *argp1 = 0 ;
40835 int res1 = 0 ;
40836 wxPoint temp2 ;
40837 void *argp3 = 0 ;
40838 int res3 = 0 ;
40839 void *argp4 = 0 ;
40840 int res4 = 0 ;
40841 PyObject * obj0 = 0 ;
40842 PyObject * obj1 = 0 ;
40843 PyObject * obj2 = 0 ;
40844 PyObject * obj3 = 0 ;
40845 char * kwnames[] = {
40846 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40847 };
40848
40849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40851 if (!SWIG_IsOK(res1)) {
40852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40853 }
40854 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40855 {
40856 arg2 = &temp2;
40857 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40858 }
40859 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40860 if (!SWIG_IsOK(res3)) {
40861 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40862 }
40863 arg3 = reinterpret_cast< wxWindow * >(argp3);
40864 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40865 if (!SWIG_IsOK(res4)) {
40866 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40867 }
40868 arg4 = reinterpret_cast< wxWindow * >(argp4);
40869 {
40870 PyThreadState* __tstate = wxPyBeginAllowThreads();
40871 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40872 wxPyEndAllowThreads(__tstate);
40873 if (PyErr_Occurred()) SWIG_fail;
40874 }
40875 {
40876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40877 }
40878 return resultobj;
40879 fail:
40880 return NULL;
40881 }
40882
40883
40884 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40885 PyObject *resultobj = 0;
40886 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40887 bool result;
40888 void *argp1 = 0 ;
40889 int res1 = 0 ;
40890 PyObject *swig_obj[1] ;
40891
40892 if (!args) SWIG_fail;
40893 swig_obj[0] = args;
40894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40895 if (!SWIG_IsOK(res1)) {
40896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40897 }
40898 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40899 {
40900 PyThreadState* __tstate = wxPyBeginAllowThreads();
40901 result = (bool)(arg1)->EndDrag();
40902 wxPyEndAllowThreads(__tstate);
40903 if (PyErr_Occurred()) SWIG_fail;
40904 }
40905 {
40906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40907 }
40908 return resultobj;
40909 fail:
40910 return NULL;
40911 }
40912
40913
40914 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40915 PyObject *resultobj = 0;
40916 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40917 wxPoint *arg2 = 0 ;
40918 bool result;
40919 void *argp1 = 0 ;
40920 int res1 = 0 ;
40921 wxPoint temp2 ;
40922 PyObject * obj0 = 0 ;
40923 PyObject * obj1 = 0 ;
40924 char * kwnames[] = {
40925 (char *) "self",(char *) "pt", NULL
40926 };
40927
40928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40930 if (!SWIG_IsOK(res1)) {
40931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40932 }
40933 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40934 {
40935 arg2 = &temp2;
40936 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40937 }
40938 {
40939 PyThreadState* __tstate = wxPyBeginAllowThreads();
40940 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40941 wxPyEndAllowThreads(__tstate);
40942 if (PyErr_Occurred()) SWIG_fail;
40943 }
40944 {
40945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40946 }
40947 return resultobj;
40948 fail:
40949 return NULL;
40950 }
40951
40952
40953 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40954 PyObject *resultobj = 0;
40955 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40956 bool result;
40957 void *argp1 = 0 ;
40958 int res1 = 0 ;
40959 PyObject *swig_obj[1] ;
40960
40961 if (!args) SWIG_fail;
40962 swig_obj[0] = args;
40963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40964 if (!SWIG_IsOK(res1)) {
40965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40966 }
40967 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40968 {
40969 PyThreadState* __tstate = wxPyBeginAllowThreads();
40970 result = (bool)(arg1)->Show();
40971 wxPyEndAllowThreads(__tstate);
40972 if (PyErr_Occurred()) SWIG_fail;
40973 }
40974 {
40975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40976 }
40977 return resultobj;
40978 fail:
40979 return NULL;
40980 }
40981
40982
40983 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40984 PyObject *resultobj = 0;
40985 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40986 bool result;
40987 void *argp1 = 0 ;
40988 int res1 = 0 ;
40989 PyObject *swig_obj[1] ;
40990
40991 if (!args) SWIG_fail;
40992 swig_obj[0] = args;
40993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40994 if (!SWIG_IsOK(res1)) {
40995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40996 }
40997 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40998 {
40999 PyThreadState* __tstate = wxPyBeginAllowThreads();
41000 result = (bool)(arg1)->Hide();
41001 wxPyEndAllowThreads(__tstate);
41002 if (PyErr_Occurred()) SWIG_fail;
41003 }
41004 {
41005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41006 }
41007 return resultobj;
41008 fail:
41009 return NULL;
41010 }
41011
41012
41013 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41014 PyObject *resultobj = 0;
41015 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41016 wxPoint *arg2 = 0 ;
41017 wxRect result;
41018 void *argp1 = 0 ;
41019 int res1 = 0 ;
41020 wxPoint temp2 ;
41021 PyObject * obj0 = 0 ;
41022 PyObject * obj1 = 0 ;
41023 char * kwnames[] = {
41024 (char *) "self",(char *) "pos", NULL
41025 };
41026
41027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41029 if (!SWIG_IsOK(res1)) {
41030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41031 }
41032 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41033 {
41034 arg2 = &temp2;
41035 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41036 }
41037 {
41038 PyThreadState* __tstate = wxPyBeginAllowThreads();
41039 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41040 wxPyEndAllowThreads(__tstate);
41041 if (PyErr_Occurred()) SWIG_fail;
41042 }
41043 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41044 return resultobj;
41045 fail:
41046 return NULL;
41047 }
41048
41049
41050 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41051 PyObject *resultobj = 0;
41052 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41053 wxDC *arg2 = 0 ;
41054 wxPoint *arg3 = 0 ;
41055 bool result;
41056 void *argp1 = 0 ;
41057 int res1 = 0 ;
41058 void *argp2 = 0 ;
41059 int res2 = 0 ;
41060 wxPoint temp3 ;
41061 PyObject * obj0 = 0 ;
41062 PyObject * obj1 = 0 ;
41063 PyObject * obj2 = 0 ;
41064 char * kwnames[] = {
41065 (char *) "self",(char *) "dc",(char *) "pos", NULL
41066 };
41067
41068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41070 if (!SWIG_IsOK(res1)) {
41071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41072 }
41073 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41074 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41075 if (!SWIG_IsOK(res2)) {
41076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41077 }
41078 if (!argp2) {
41079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41080 }
41081 arg2 = reinterpret_cast< wxDC * >(argp2);
41082 {
41083 arg3 = &temp3;
41084 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41085 }
41086 {
41087 PyThreadState* __tstate = wxPyBeginAllowThreads();
41088 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41089 wxPyEndAllowThreads(__tstate);
41090 if (PyErr_Occurred()) SWIG_fail;
41091 }
41092 {
41093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41094 }
41095 return resultobj;
41096 fail:
41097 return NULL;
41098 }
41099
41100
41101 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41102 PyObject *resultobj = 0;
41103 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41104 wxDC *arg2 = 0 ;
41105 wxMemoryDC *arg3 = 0 ;
41106 wxRect *arg4 = 0 ;
41107 wxRect *arg5 = 0 ;
41108 bool result;
41109 void *argp1 = 0 ;
41110 int res1 = 0 ;
41111 void *argp2 = 0 ;
41112 int res2 = 0 ;
41113 void *argp3 = 0 ;
41114 int res3 = 0 ;
41115 wxRect temp4 ;
41116 wxRect temp5 ;
41117 PyObject * obj0 = 0 ;
41118 PyObject * obj1 = 0 ;
41119 PyObject * obj2 = 0 ;
41120 PyObject * obj3 = 0 ;
41121 PyObject * obj4 = 0 ;
41122 char * kwnames[] = {
41123 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41124 };
41125
41126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41128 if (!SWIG_IsOK(res1)) {
41129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41130 }
41131 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41132 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41133 if (!SWIG_IsOK(res2)) {
41134 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41135 }
41136 if (!argp2) {
41137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41138 }
41139 arg2 = reinterpret_cast< wxDC * >(argp2);
41140 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41141 if (!SWIG_IsOK(res3)) {
41142 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41143 }
41144 if (!argp3) {
41145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41146 }
41147 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41148 {
41149 arg4 = &temp4;
41150 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41151 }
41152 {
41153 arg5 = &temp5;
41154 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41155 }
41156 {
41157 PyThreadState* __tstate = wxPyBeginAllowThreads();
41158 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41159 wxPyEndAllowThreads(__tstate);
41160 if (PyErr_Occurred()) SWIG_fail;
41161 }
41162 {
41163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41164 }
41165 return resultobj;
41166 fail:
41167 return NULL;
41168 }
41169
41170
41171 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41172 PyObject *resultobj = 0;
41173 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41174 wxPoint *arg2 = 0 ;
41175 wxPoint *arg3 = 0 ;
41176 bool arg4 ;
41177 bool arg5 ;
41178 bool result;
41179 void *argp1 = 0 ;
41180 int res1 = 0 ;
41181 wxPoint temp2 ;
41182 wxPoint temp3 ;
41183 bool val4 ;
41184 int ecode4 = 0 ;
41185 bool val5 ;
41186 int ecode5 = 0 ;
41187 PyObject * obj0 = 0 ;
41188 PyObject * obj1 = 0 ;
41189 PyObject * obj2 = 0 ;
41190 PyObject * obj3 = 0 ;
41191 PyObject * obj4 = 0 ;
41192 char * kwnames[] = {
41193 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41194 };
41195
41196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41198 if (!SWIG_IsOK(res1)) {
41199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41200 }
41201 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41202 {
41203 arg2 = &temp2;
41204 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41205 }
41206 {
41207 arg3 = &temp3;
41208 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41209 }
41210 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41211 if (!SWIG_IsOK(ecode4)) {
41212 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41213 }
41214 arg4 = static_cast< bool >(val4);
41215 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41216 if (!SWIG_IsOK(ecode5)) {
41217 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41218 }
41219 arg5 = static_cast< bool >(val5);
41220 {
41221 PyThreadState* __tstate = wxPyBeginAllowThreads();
41222 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41223 wxPyEndAllowThreads(__tstate);
41224 if (PyErr_Occurred()) SWIG_fail;
41225 }
41226 {
41227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41228 }
41229 return resultobj;
41230 fail:
41231 return NULL;
41232 }
41233
41234
41235 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41236 PyObject *obj;
41237 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41238 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41239 return SWIG_Py_Void();
41240 }
41241
41242 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41243 return SWIG_Python_InitShadowInstance(args);
41244 }
41245
41246 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41247 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41248 return 1;
41249 }
41250
41251
41252 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41253 PyObject *pyobj = 0;
41254
41255 {
41256 #if wxUSE_UNICODE
41257 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41258 #else
41259 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41260 #endif
41261 }
41262 return pyobj;
41263 }
41264
41265
41266 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41267 PyObject *resultobj = 0;
41268 wxWindow *arg1 = (wxWindow *) 0 ;
41269 int arg2 = (int) -1 ;
41270 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41271 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41272 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41273 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41274 wxSize const &arg5_defvalue = wxDefaultSize ;
41275 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41276 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41277 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41278 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41279 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41280 wxString *arg8 = (wxString *) &arg8_defvalue ;
41281 wxDatePickerCtrl *result = 0 ;
41282 void *argp1 = 0 ;
41283 int res1 = 0 ;
41284 int val2 ;
41285 int ecode2 = 0 ;
41286 void *argp3 = 0 ;
41287 int res3 = 0 ;
41288 wxPoint temp4 ;
41289 wxSize temp5 ;
41290 long val6 ;
41291 int ecode6 = 0 ;
41292 void *argp7 = 0 ;
41293 int res7 = 0 ;
41294 bool temp8 = false ;
41295 PyObject * obj0 = 0 ;
41296 PyObject * obj1 = 0 ;
41297 PyObject * obj2 = 0 ;
41298 PyObject * obj3 = 0 ;
41299 PyObject * obj4 = 0 ;
41300 PyObject * obj5 = 0 ;
41301 PyObject * obj6 = 0 ;
41302 PyObject * obj7 = 0 ;
41303 char * kwnames[] = {
41304 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41305 };
41306
41307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41309 if (!SWIG_IsOK(res1)) {
41310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41311 }
41312 arg1 = reinterpret_cast< wxWindow * >(argp1);
41313 if (obj1) {
41314 ecode2 = SWIG_AsVal_int(obj1, &val2);
41315 if (!SWIG_IsOK(ecode2)) {
41316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41317 }
41318 arg2 = static_cast< int >(val2);
41319 }
41320 if (obj2) {
41321 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41322 if (!SWIG_IsOK(res3)) {
41323 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41324 }
41325 if (!argp3) {
41326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41327 }
41328 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41329 }
41330 if (obj3) {
41331 {
41332 arg4 = &temp4;
41333 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41334 }
41335 }
41336 if (obj4) {
41337 {
41338 arg5 = &temp5;
41339 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41340 }
41341 }
41342 if (obj5) {
41343 ecode6 = SWIG_AsVal_long(obj5, &val6);
41344 if (!SWIG_IsOK(ecode6)) {
41345 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41346 }
41347 arg6 = static_cast< long >(val6);
41348 }
41349 if (obj6) {
41350 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41351 if (!SWIG_IsOK(res7)) {
41352 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41353 }
41354 if (!argp7) {
41355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41356 }
41357 arg7 = reinterpret_cast< wxValidator * >(argp7);
41358 }
41359 if (obj7) {
41360 {
41361 arg8 = wxString_in_helper(obj7);
41362 if (arg8 == NULL) SWIG_fail;
41363 temp8 = true;
41364 }
41365 }
41366 {
41367 if (!wxPyCheckForApp()) SWIG_fail;
41368 PyThreadState* __tstate = wxPyBeginAllowThreads();
41369 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41370 wxPyEndAllowThreads(__tstate);
41371 if (PyErr_Occurred()) SWIG_fail;
41372 }
41373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41374 {
41375 if (temp8)
41376 delete arg8;
41377 }
41378 return resultobj;
41379 fail:
41380 {
41381 if (temp8)
41382 delete arg8;
41383 }
41384 return NULL;
41385 }
41386
41387
41388 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41389 PyObject *resultobj = 0;
41390 wxDatePickerCtrl *result = 0 ;
41391
41392 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41393 {
41394 if (!wxPyCheckForApp()) SWIG_fail;
41395 PyThreadState* __tstate = wxPyBeginAllowThreads();
41396 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41397 wxPyEndAllowThreads(__tstate);
41398 if (PyErr_Occurred()) SWIG_fail;
41399 }
41400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41401 return resultobj;
41402 fail:
41403 return NULL;
41404 }
41405
41406
41407 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41408 PyObject *resultobj = 0;
41409 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41410 wxWindow *arg2 = (wxWindow *) 0 ;
41411 int arg3 = (int) -1 ;
41412 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41413 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41414 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41415 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41416 wxSize const &arg6_defvalue = wxDefaultSize ;
41417 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41418 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41419 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41420 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41421 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41422 wxString *arg9 = (wxString *) &arg9_defvalue ;
41423 bool result;
41424 void *argp1 = 0 ;
41425 int res1 = 0 ;
41426 void *argp2 = 0 ;
41427 int res2 = 0 ;
41428 int val3 ;
41429 int ecode3 = 0 ;
41430 void *argp4 = 0 ;
41431 int res4 = 0 ;
41432 wxPoint temp5 ;
41433 wxSize temp6 ;
41434 long val7 ;
41435 int ecode7 = 0 ;
41436 void *argp8 = 0 ;
41437 int res8 = 0 ;
41438 bool temp9 = false ;
41439 PyObject * obj0 = 0 ;
41440 PyObject * obj1 = 0 ;
41441 PyObject * obj2 = 0 ;
41442 PyObject * obj3 = 0 ;
41443 PyObject * obj4 = 0 ;
41444 PyObject * obj5 = 0 ;
41445 PyObject * obj6 = 0 ;
41446 PyObject * obj7 = 0 ;
41447 PyObject * obj8 = 0 ;
41448 char * kwnames[] = {
41449 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41450 };
41451
41452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41454 if (!SWIG_IsOK(res1)) {
41455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41456 }
41457 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41458 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41459 if (!SWIG_IsOK(res2)) {
41460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41461 }
41462 arg2 = reinterpret_cast< wxWindow * >(argp2);
41463 if (obj2) {
41464 ecode3 = SWIG_AsVal_int(obj2, &val3);
41465 if (!SWIG_IsOK(ecode3)) {
41466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41467 }
41468 arg3 = static_cast< int >(val3);
41469 }
41470 if (obj3) {
41471 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41472 if (!SWIG_IsOK(res4)) {
41473 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41474 }
41475 if (!argp4) {
41476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41477 }
41478 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41479 }
41480 if (obj4) {
41481 {
41482 arg5 = &temp5;
41483 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41484 }
41485 }
41486 if (obj5) {
41487 {
41488 arg6 = &temp6;
41489 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41490 }
41491 }
41492 if (obj6) {
41493 ecode7 = SWIG_AsVal_long(obj6, &val7);
41494 if (!SWIG_IsOK(ecode7)) {
41495 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41496 }
41497 arg7 = static_cast< long >(val7);
41498 }
41499 if (obj7) {
41500 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41501 if (!SWIG_IsOK(res8)) {
41502 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41503 }
41504 if (!argp8) {
41505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41506 }
41507 arg8 = reinterpret_cast< wxValidator * >(argp8);
41508 }
41509 if (obj8) {
41510 {
41511 arg9 = wxString_in_helper(obj8);
41512 if (arg9 == NULL) SWIG_fail;
41513 temp9 = true;
41514 }
41515 }
41516 {
41517 PyThreadState* __tstate = wxPyBeginAllowThreads();
41518 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41519 wxPyEndAllowThreads(__tstate);
41520 if (PyErr_Occurred()) SWIG_fail;
41521 }
41522 {
41523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41524 }
41525 {
41526 if (temp9)
41527 delete arg9;
41528 }
41529 return resultobj;
41530 fail:
41531 {
41532 if (temp9)
41533 delete arg9;
41534 }
41535 return NULL;
41536 }
41537
41538
41539 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41540 PyObject *resultobj = 0;
41541 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41542 wxDateTime *arg2 = 0 ;
41543 void *argp1 = 0 ;
41544 int res1 = 0 ;
41545 void *argp2 = 0 ;
41546 int res2 = 0 ;
41547 PyObject * obj0 = 0 ;
41548 PyObject * obj1 = 0 ;
41549 char * kwnames[] = {
41550 (char *) "self",(char *) "dt", NULL
41551 };
41552
41553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41555 if (!SWIG_IsOK(res1)) {
41556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41557 }
41558 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41559 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41560 if (!SWIG_IsOK(res2)) {
41561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41562 }
41563 if (!argp2) {
41564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41565 }
41566 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41567 {
41568 PyThreadState* __tstate = wxPyBeginAllowThreads();
41569 (arg1)->SetValue((wxDateTime const &)*arg2);
41570 wxPyEndAllowThreads(__tstate);
41571 if (PyErr_Occurred()) SWIG_fail;
41572 }
41573 resultobj = SWIG_Py_Void();
41574 return resultobj;
41575 fail:
41576 return NULL;
41577 }
41578
41579
41580 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41581 PyObject *resultobj = 0;
41582 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41583 wxDateTime result;
41584 void *argp1 = 0 ;
41585 int res1 = 0 ;
41586 PyObject *swig_obj[1] ;
41587
41588 if (!args) SWIG_fail;
41589 swig_obj[0] = args;
41590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41591 if (!SWIG_IsOK(res1)) {
41592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41593 }
41594 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41595 {
41596 PyThreadState* __tstate = wxPyBeginAllowThreads();
41597 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41598 wxPyEndAllowThreads(__tstate);
41599 if (PyErr_Occurred()) SWIG_fail;
41600 }
41601 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41602 return resultobj;
41603 fail:
41604 return NULL;
41605 }
41606
41607
41608 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41609 PyObject *resultobj = 0;
41610 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41611 wxDateTime *arg2 = 0 ;
41612 wxDateTime *arg3 = 0 ;
41613 void *argp1 = 0 ;
41614 int res1 = 0 ;
41615 void *argp2 = 0 ;
41616 int res2 = 0 ;
41617 void *argp3 = 0 ;
41618 int res3 = 0 ;
41619 PyObject * obj0 = 0 ;
41620 PyObject * obj1 = 0 ;
41621 PyObject * obj2 = 0 ;
41622 char * kwnames[] = {
41623 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41624 };
41625
41626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41628 if (!SWIG_IsOK(res1)) {
41629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41630 }
41631 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41632 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41633 if (!SWIG_IsOK(res2)) {
41634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41635 }
41636 if (!argp2) {
41637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41638 }
41639 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41640 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41641 if (!SWIG_IsOK(res3)) {
41642 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41643 }
41644 if (!argp3) {
41645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41646 }
41647 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41648 {
41649 PyThreadState* __tstate = wxPyBeginAllowThreads();
41650 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41651 wxPyEndAllowThreads(__tstate);
41652 if (PyErr_Occurred()) SWIG_fail;
41653 }
41654 resultobj = SWIG_Py_Void();
41655 return resultobj;
41656 fail:
41657 return NULL;
41658 }
41659
41660
41661 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41662 PyObject *resultobj = 0;
41663 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41664 wxDateTime result;
41665 void *argp1 = 0 ;
41666 int res1 = 0 ;
41667 PyObject *swig_obj[1] ;
41668
41669 if (!args) SWIG_fail;
41670 swig_obj[0] = args;
41671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41672 if (!SWIG_IsOK(res1)) {
41673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41674 }
41675 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41676 {
41677 PyThreadState* __tstate = wxPyBeginAllowThreads();
41678 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41679 wxPyEndAllowThreads(__tstate);
41680 if (PyErr_Occurred()) SWIG_fail;
41681 }
41682 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41683 return resultobj;
41684 fail:
41685 return NULL;
41686 }
41687
41688
41689 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41690 PyObject *resultobj = 0;
41691 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41692 wxDateTime result;
41693 void *argp1 = 0 ;
41694 int res1 = 0 ;
41695 PyObject *swig_obj[1] ;
41696
41697 if (!args) SWIG_fail;
41698 swig_obj[0] = args;
41699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41700 if (!SWIG_IsOK(res1)) {
41701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41702 }
41703 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41704 {
41705 PyThreadState* __tstate = wxPyBeginAllowThreads();
41706 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41707 wxPyEndAllowThreads(__tstate);
41708 if (PyErr_Occurred()) SWIG_fail;
41709 }
41710 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41711 return resultobj;
41712 fail:
41713 return NULL;
41714 }
41715
41716
41717 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41718 PyObject *obj;
41719 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41720 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41721 return SWIG_Py_Void();
41722 }
41723
41724 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41725 return SWIG_Python_InitShadowInstance(args);
41726 }
41727
41728 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41729 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41730 return 1;
41731 }
41732
41733
41734 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41735 PyObject *pyobj = 0;
41736
41737 {
41738 #if wxUSE_UNICODE
41739 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41740 #else
41741 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41742 #endif
41743 }
41744 return pyobj;
41745 }
41746
41747
41748 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41749 PyObject *resultobj = 0;
41750 wxWindow *arg1 = (wxWindow *) 0 ;
41751 int arg2 ;
41752 wxString *arg3 = 0 ;
41753 wxString *arg4 = 0 ;
41754 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41755 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41756 wxSize const &arg6_defvalue = wxDefaultSize ;
41757 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41758 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41759 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41760 wxString *arg8 = (wxString *) &arg8_defvalue ;
41761 wxHyperlinkCtrl *result = 0 ;
41762 void *argp1 = 0 ;
41763 int res1 = 0 ;
41764 int val2 ;
41765 int ecode2 = 0 ;
41766 bool temp3 = false ;
41767 bool temp4 = false ;
41768 wxPoint temp5 ;
41769 wxSize temp6 ;
41770 long val7 ;
41771 int ecode7 = 0 ;
41772 bool temp8 = false ;
41773 PyObject * obj0 = 0 ;
41774 PyObject * obj1 = 0 ;
41775 PyObject * obj2 = 0 ;
41776 PyObject * obj3 = 0 ;
41777 PyObject * obj4 = 0 ;
41778 PyObject * obj5 = 0 ;
41779 PyObject * obj6 = 0 ;
41780 PyObject * obj7 = 0 ;
41781 char * kwnames[] = {
41782 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41783 };
41784
41785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41787 if (!SWIG_IsOK(res1)) {
41788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41789 }
41790 arg1 = reinterpret_cast< wxWindow * >(argp1);
41791 ecode2 = SWIG_AsVal_int(obj1, &val2);
41792 if (!SWIG_IsOK(ecode2)) {
41793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41794 }
41795 arg2 = static_cast< int >(val2);
41796 {
41797 arg3 = wxString_in_helper(obj2);
41798 if (arg3 == NULL) SWIG_fail;
41799 temp3 = true;
41800 }
41801 {
41802 arg4 = wxString_in_helper(obj3);
41803 if (arg4 == NULL) SWIG_fail;
41804 temp4 = true;
41805 }
41806 if (obj4) {
41807 {
41808 arg5 = &temp5;
41809 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41810 }
41811 }
41812 if (obj5) {
41813 {
41814 arg6 = &temp6;
41815 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41816 }
41817 }
41818 if (obj6) {
41819 ecode7 = SWIG_AsVal_long(obj6, &val7);
41820 if (!SWIG_IsOK(ecode7)) {
41821 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41822 }
41823 arg7 = static_cast< long >(val7);
41824 }
41825 if (obj7) {
41826 {
41827 arg8 = wxString_in_helper(obj7);
41828 if (arg8 == NULL) SWIG_fail;
41829 temp8 = true;
41830 }
41831 }
41832 {
41833 if (!wxPyCheckForApp()) SWIG_fail;
41834 PyThreadState* __tstate = wxPyBeginAllowThreads();
41835 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41836 wxPyEndAllowThreads(__tstate);
41837 if (PyErr_Occurred()) SWIG_fail;
41838 }
41839 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41840 {
41841 if (temp3)
41842 delete arg3;
41843 }
41844 {
41845 if (temp4)
41846 delete arg4;
41847 }
41848 {
41849 if (temp8)
41850 delete arg8;
41851 }
41852 return resultobj;
41853 fail:
41854 {
41855 if (temp3)
41856 delete arg3;
41857 }
41858 {
41859 if (temp4)
41860 delete arg4;
41861 }
41862 {
41863 if (temp8)
41864 delete arg8;
41865 }
41866 return NULL;
41867 }
41868
41869
41870 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41871 PyObject *resultobj = 0;
41872 wxHyperlinkCtrl *result = 0 ;
41873
41874 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41875 {
41876 if (!wxPyCheckForApp()) SWIG_fail;
41877 PyThreadState* __tstate = wxPyBeginAllowThreads();
41878 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41879 wxPyEndAllowThreads(__tstate);
41880 if (PyErr_Occurred()) SWIG_fail;
41881 }
41882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41883 return resultobj;
41884 fail:
41885 return NULL;
41886 }
41887
41888
41889 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41890 PyObject *resultobj = 0;
41891 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41892 wxWindow *arg2 = (wxWindow *) 0 ;
41893 int arg3 ;
41894 wxString *arg4 = 0 ;
41895 wxString *arg5 = 0 ;
41896 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41897 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41898 wxSize const &arg7_defvalue = wxDefaultSize ;
41899 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41900 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41901 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41902 wxString *arg9 = (wxString *) &arg9_defvalue ;
41903 bool result;
41904 void *argp1 = 0 ;
41905 int res1 = 0 ;
41906 void *argp2 = 0 ;
41907 int res2 = 0 ;
41908 int val3 ;
41909 int ecode3 = 0 ;
41910 bool temp4 = false ;
41911 bool temp5 = false ;
41912 wxPoint temp6 ;
41913 wxSize temp7 ;
41914 long val8 ;
41915 int ecode8 = 0 ;
41916 bool temp9 = false ;
41917 PyObject * obj0 = 0 ;
41918 PyObject * obj1 = 0 ;
41919 PyObject * obj2 = 0 ;
41920 PyObject * obj3 = 0 ;
41921 PyObject * obj4 = 0 ;
41922 PyObject * obj5 = 0 ;
41923 PyObject * obj6 = 0 ;
41924 PyObject * obj7 = 0 ;
41925 PyObject * obj8 = 0 ;
41926 char * kwnames[] = {
41927 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41928 };
41929
41930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41932 if (!SWIG_IsOK(res1)) {
41933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41934 }
41935 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41936 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41937 if (!SWIG_IsOK(res2)) {
41938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41939 }
41940 arg2 = reinterpret_cast< wxWindow * >(argp2);
41941 ecode3 = SWIG_AsVal_int(obj2, &val3);
41942 if (!SWIG_IsOK(ecode3)) {
41943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41944 }
41945 arg3 = static_cast< int >(val3);
41946 {
41947 arg4 = wxString_in_helper(obj3);
41948 if (arg4 == NULL) SWIG_fail;
41949 temp4 = true;
41950 }
41951 {
41952 arg5 = wxString_in_helper(obj4);
41953 if (arg5 == NULL) SWIG_fail;
41954 temp5 = true;
41955 }
41956 if (obj5) {
41957 {
41958 arg6 = &temp6;
41959 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41960 }
41961 }
41962 if (obj6) {
41963 {
41964 arg7 = &temp7;
41965 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41966 }
41967 }
41968 if (obj7) {
41969 ecode8 = SWIG_AsVal_long(obj7, &val8);
41970 if (!SWIG_IsOK(ecode8)) {
41971 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41972 }
41973 arg8 = static_cast< long >(val8);
41974 }
41975 if (obj8) {
41976 {
41977 arg9 = wxString_in_helper(obj8);
41978 if (arg9 == NULL) SWIG_fail;
41979 temp9 = true;
41980 }
41981 }
41982 {
41983 PyThreadState* __tstate = wxPyBeginAllowThreads();
41984 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41985 wxPyEndAllowThreads(__tstate);
41986 if (PyErr_Occurred()) SWIG_fail;
41987 }
41988 {
41989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41990 }
41991 {
41992 if (temp4)
41993 delete arg4;
41994 }
41995 {
41996 if (temp5)
41997 delete arg5;
41998 }
41999 {
42000 if (temp9)
42001 delete arg9;
42002 }
42003 return resultobj;
42004 fail:
42005 {
42006 if (temp4)
42007 delete arg4;
42008 }
42009 {
42010 if (temp5)
42011 delete arg5;
42012 }
42013 {
42014 if (temp9)
42015 delete arg9;
42016 }
42017 return NULL;
42018 }
42019
42020
42021 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42022 PyObject *resultobj = 0;
42023 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42024 wxColour result;
42025 void *argp1 = 0 ;
42026 int res1 = 0 ;
42027 PyObject *swig_obj[1] ;
42028
42029 if (!args) SWIG_fail;
42030 swig_obj[0] = args;
42031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42032 if (!SWIG_IsOK(res1)) {
42033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42034 }
42035 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42036 {
42037 PyThreadState* __tstate = wxPyBeginAllowThreads();
42038 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42039 wxPyEndAllowThreads(__tstate);
42040 if (PyErr_Occurred()) SWIG_fail;
42041 }
42042 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42043 return resultobj;
42044 fail:
42045 return NULL;
42046 }
42047
42048
42049 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42050 PyObject *resultobj = 0;
42051 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42052 wxColour *arg2 = 0 ;
42053 void *argp1 = 0 ;
42054 int res1 = 0 ;
42055 wxColour temp2 ;
42056 PyObject * obj0 = 0 ;
42057 PyObject * obj1 = 0 ;
42058 char * kwnames[] = {
42059 (char *) "self",(char *) "colour", NULL
42060 };
42061
42062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42064 if (!SWIG_IsOK(res1)) {
42065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42066 }
42067 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42068 {
42069 arg2 = &temp2;
42070 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42071 }
42072 {
42073 PyThreadState* __tstate = wxPyBeginAllowThreads();
42074 (arg1)->SetHoverColour((wxColour const &)*arg2);
42075 wxPyEndAllowThreads(__tstate);
42076 if (PyErr_Occurred()) SWIG_fail;
42077 }
42078 resultobj = SWIG_Py_Void();
42079 return resultobj;
42080 fail:
42081 return NULL;
42082 }
42083
42084
42085 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42086 PyObject *resultobj = 0;
42087 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42088 wxColour result;
42089 void *argp1 = 0 ;
42090 int res1 = 0 ;
42091 PyObject *swig_obj[1] ;
42092
42093 if (!args) SWIG_fail;
42094 swig_obj[0] = args;
42095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42096 if (!SWIG_IsOK(res1)) {
42097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42098 }
42099 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42100 {
42101 PyThreadState* __tstate = wxPyBeginAllowThreads();
42102 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42103 wxPyEndAllowThreads(__tstate);
42104 if (PyErr_Occurred()) SWIG_fail;
42105 }
42106 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42107 return resultobj;
42108 fail:
42109 return NULL;
42110 }
42111
42112
42113 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42114 PyObject *resultobj = 0;
42115 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42116 wxColour *arg2 = 0 ;
42117 void *argp1 = 0 ;
42118 int res1 = 0 ;
42119 wxColour temp2 ;
42120 PyObject * obj0 = 0 ;
42121 PyObject * obj1 = 0 ;
42122 char * kwnames[] = {
42123 (char *) "self",(char *) "colour", NULL
42124 };
42125
42126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42128 if (!SWIG_IsOK(res1)) {
42129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42130 }
42131 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42132 {
42133 arg2 = &temp2;
42134 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42135 }
42136 {
42137 PyThreadState* __tstate = wxPyBeginAllowThreads();
42138 (arg1)->SetNormalColour((wxColour const &)*arg2);
42139 wxPyEndAllowThreads(__tstate);
42140 if (PyErr_Occurred()) SWIG_fail;
42141 }
42142 resultobj = SWIG_Py_Void();
42143 return resultobj;
42144 fail:
42145 return NULL;
42146 }
42147
42148
42149 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42150 PyObject *resultobj = 0;
42151 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42152 wxColour result;
42153 void *argp1 = 0 ;
42154 int res1 = 0 ;
42155 PyObject *swig_obj[1] ;
42156
42157 if (!args) SWIG_fail;
42158 swig_obj[0] = args;
42159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42160 if (!SWIG_IsOK(res1)) {
42161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42162 }
42163 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42164 {
42165 PyThreadState* __tstate = wxPyBeginAllowThreads();
42166 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42167 wxPyEndAllowThreads(__tstate);
42168 if (PyErr_Occurred()) SWIG_fail;
42169 }
42170 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42171 return resultobj;
42172 fail:
42173 return NULL;
42174 }
42175
42176
42177 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42178 PyObject *resultobj = 0;
42179 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42180 wxColour *arg2 = 0 ;
42181 void *argp1 = 0 ;
42182 int res1 = 0 ;
42183 wxColour temp2 ;
42184 PyObject * obj0 = 0 ;
42185 PyObject * obj1 = 0 ;
42186 char * kwnames[] = {
42187 (char *) "self",(char *) "colour", NULL
42188 };
42189
42190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42192 if (!SWIG_IsOK(res1)) {
42193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42194 }
42195 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42196 {
42197 arg2 = &temp2;
42198 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42199 }
42200 {
42201 PyThreadState* __tstate = wxPyBeginAllowThreads();
42202 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42203 wxPyEndAllowThreads(__tstate);
42204 if (PyErr_Occurred()) SWIG_fail;
42205 }
42206 resultobj = SWIG_Py_Void();
42207 return resultobj;
42208 fail:
42209 return NULL;
42210 }
42211
42212
42213 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42214 PyObject *resultobj = 0;
42215 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42216 wxString result;
42217 void *argp1 = 0 ;
42218 int res1 = 0 ;
42219 PyObject *swig_obj[1] ;
42220
42221 if (!args) SWIG_fail;
42222 swig_obj[0] = args;
42223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42224 if (!SWIG_IsOK(res1)) {
42225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42226 }
42227 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42228 {
42229 PyThreadState* __tstate = wxPyBeginAllowThreads();
42230 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42231 wxPyEndAllowThreads(__tstate);
42232 if (PyErr_Occurred()) SWIG_fail;
42233 }
42234 {
42235 #if wxUSE_UNICODE
42236 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42237 #else
42238 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42239 #endif
42240 }
42241 return resultobj;
42242 fail:
42243 return NULL;
42244 }
42245
42246
42247 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42248 PyObject *resultobj = 0;
42249 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42250 wxString *arg2 = 0 ;
42251 void *argp1 = 0 ;
42252 int res1 = 0 ;
42253 bool temp2 = false ;
42254 PyObject * obj0 = 0 ;
42255 PyObject * obj1 = 0 ;
42256 char * kwnames[] = {
42257 (char *) "self",(char *) "url", NULL
42258 };
42259
42260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42262 if (!SWIG_IsOK(res1)) {
42263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42264 }
42265 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42266 {
42267 arg2 = wxString_in_helper(obj1);
42268 if (arg2 == NULL) SWIG_fail;
42269 temp2 = true;
42270 }
42271 {
42272 PyThreadState* __tstate = wxPyBeginAllowThreads();
42273 (arg1)->SetURL((wxString const &)*arg2);
42274 wxPyEndAllowThreads(__tstate);
42275 if (PyErr_Occurred()) SWIG_fail;
42276 }
42277 resultobj = SWIG_Py_Void();
42278 {
42279 if (temp2)
42280 delete arg2;
42281 }
42282 return resultobj;
42283 fail:
42284 {
42285 if (temp2)
42286 delete arg2;
42287 }
42288 return NULL;
42289 }
42290
42291
42292 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42293 PyObject *resultobj = 0;
42294 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42295 bool arg2 = (bool) true ;
42296 void *argp1 = 0 ;
42297 int res1 = 0 ;
42298 bool val2 ;
42299 int ecode2 = 0 ;
42300 PyObject * obj0 = 0 ;
42301 PyObject * obj1 = 0 ;
42302 char * kwnames[] = {
42303 (char *) "self",(char *) "visited", NULL
42304 };
42305
42306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42308 if (!SWIG_IsOK(res1)) {
42309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42310 }
42311 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42312 if (obj1) {
42313 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42314 if (!SWIG_IsOK(ecode2)) {
42315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42316 }
42317 arg2 = static_cast< bool >(val2);
42318 }
42319 {
42320 PyThreadState* __tstate = wxPyBeginAllowThreads();
42321 (arg1)->SetVisited(arg2);
42322 wxPyEndAllowThreads(__tstate);
42323 if (PyErr_Occurred()) SWIG_fail;
42324 }
42325 resultobj = SWIG_Py_Void();
42326 return resultobj;
42327 fail:
42328 return NULL;
42329 }
42330
42331
42332 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42333 PyObject *resultobj = 0;
42334 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42335 bool result;
42336 void *argp1 = 0 ;
42337 int res1 = 0 ;
42338 PyObject *swig_obj[1] ;
42339
42340 if (!args) SWIG_fail;
42341 swig_obj[0] = args;
42342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42343 if (!SWIG_IsOK(res1)) {
42344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42345 }
42346 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42347 {
42348 PyThreadState* __tstate = wxPyBeginAllowThreads();
42349 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42350 wxPyEndAllowThreads(__tstate);
42351 if (PyErr_Occurred()) SWIG_fail;
42352 }
42353 {
42354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42355 }
42356 return resultobj;
42357 fail:
42358 return NULL;
42359 }
42360
42361
42362 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42363 PyObject *obj;
42364 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42365 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42366 return SWIG_Py_Void();
42367 }
42368
42369 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42370 return SWIG_Python_InitShadowInstance(args);
42371 }
42372
42373 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42374 PyObject *resultobj = 0;
42375 wxObject *arg1 = (wxObject *) 0 ;
42376 int arg2 ;
42377 wxString *arg3 = 0 ;
42378 wxHyperlinkEvent *result = 0 ;
42379 void *argp1 = 0 ;
42380 int res1 = 0 ;
42381 int val2 ;
42382 int ecode2 = 0 ;
42383 bool temp3 = false ;
42384 PyObject * obj0 = 0 ;
42385 PyObject * obj1 = 0 ;
42386 PyObject * obj2 = 0 ;
42387 char * kwnames[] = {
42388 (char *) "generator",(char *) "id",(char *) "url", NULL
42389 };
42390
42391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42393 if (!SWIG_IsOK(res1)) {
42394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42395 }
42396 arg1 = reinterpret_cast< wxObject * >(argp1);
42397 ecode2 = SWIG_AsVal_int(obj1, &val2);
42398 if (!SWIG_IsOK(ecode2)) {
42399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42400 }
42401 arg2 = static_cast< int >(val2);
42402 {
42403 arg3 = wxString_in_helper(obj2);
42404 if (arg3 == NULL) SWIG_fail;
42405 temp3 = true;
42406 }
42407 {
42408 PyThreadState* __tstate = wxPyBeginAllowThreads();
42409 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42410 wxPyEndAllowThreads(__tstate);
42411 if (PyErr_Occurred()) SWIG_fail;
42412 }
42413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42414 {
42415 if (temp3)
42416 delete arg3;
42417 }
42418 return resultobj;
42419 fail:
42420 {
42421 if (temp3)
42422 delete arg3;
42423 }
42424 return NULL;
42425 }
42426
42427
42428 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42429 PyObject *resultobj = 0;
42430 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42431 wxString result;
42432 void *argp1 = 0 ;
42433 int res1 = 0 ;
42434 PyObject *swig_obj[1] ;
42435
42436 if (!args) SWIG_fail;
42437 swig_obj[0] = args;
42438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42439 if (!SWIG_IsOK(res1)) {
42440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42441 }
42442 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42443 {
42444 PyThreadState* __tstate = wxPyBeginAllowThreads();
42445 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42446 wxPyEndAllowThreads(__tstate);
42447 if (PyErr_Occurred()) SWIG_fail;
42448 }
42449 {
42450 #if wxUSE_UNICODE
42451 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42452 #else
42453 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42454 #endif
42455 }
42456 return resultobj;
42457 fail:
42458 return NULL;
42459 }
42460
42461
42462 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42463 PyObject *resultobj = 0;
42464 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42465 wxString *arg2 = 0 ;
42466 void *argp1 = 0 ;
42467 int res1 = 0 ;
42468 bool temp2 = false ;
42469 PyObject * obj0 = 0 ;
42470 PyObject * obj1 = 0 ;
42471 char * kwnames[] = {
42472 (char *) "self",(char *) "url", NULL
42473 };
42474
42475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42477 if (!SWIG_IsOK(res1)) {
42478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42479 }
42480 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42481 {
42482 arg2 = wxString_in_helper(obj1);
42483 if (arg2 == NULL) SWIG_fail;
42484 temp2 = true;
42485 }
42486 {
42487 PyThreadState* __tstate = wxPyBeginAllowThreads();
42488 (arg1)->SetURL((wxString const &)*arg2);
42489 wxPyEndAllowThreads(__tstate);
42490 if (PyErr_Occurred()) SWIG_fail;
42491 }
42492 resultobj = SWIG_Py_Void();
42493 {
42494 if (temp2)
42495 delete arg2;
42496 }
42497 return resultobj;
42498 fail:
42499 {
42500 if (temp2)
42501 delete arg2;
42502 }
42503 return NULL;
42504 }
42505
42506
42507 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42508 PyObject *obj;
42509 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42510 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42511 return SWIG_Py_Void();
42512 }
42513
42514 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42515 return SWIG_Python_InitShadowInstance(args);
42516 }
42517
42518 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42519 PyObject *resultobj = 0;
42520 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42521 wxWindow *arg2 = (wxWindow *) 0 ;
42522 int arg3 ;
42523 wxString const &arg4_defvalue = wxEmptyString ;
42524 wxString *arg4 = (wxString *) &arg4_defvalue ;
42525 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42526 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42527 wxSize const &arg6_defvalue = wxDefaultSize ;
42528 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42529 long arg7 = (long) 0 ;
42530 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42531 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42532 wxString const &arg9_defvalue = wxButtonNameStr ;
42533 wxString *arg9 = (wxString *) &arg9_defvalue ;
42534 bool result;
42535 void *argp1 = 0 ;
42536 int res1 = 0 ;
42537 void *argp2 = 0 ;
42538 int res2 = 0 ;
42539 int val3 ;
42540 int ecode3 = 0 ;
42541 bool temp4 = false ;
42542 wxPoint temp5 ;
42543 wxSize temp6 ;
42544 long val7 ;
42545 int ecode7 = 0 ;
42546 void *argp8 = 0 ;
42547 int res8 = 0 ;
42548 bool temp9 = false ;
42549 PyObject * obj0 = 0 ;
42550 PyObject * obj1 = 0 ;
42551 PyObject * obj2 = 0 ;
42552 PyObject * obj3 = 0 ;
42553 PyObject * obj4 = 0 ;
42554 PyObject * obj5 = 0 ;
42555 PyObject * obj6 = 0 ;
42556 PyObject * obj7 = 0 ;
42557 PyObject * obj8 = 0 ;
42558 char * kwnames[] = {
42559 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42560 };
42561
42562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42564 if (!SWIG_IsOK(res1)) {
42565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42566 }
42567 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42568 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42569 if (!SWIG_IsOK(res2)) {
42570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42571 }
42572 arg2 = reinterpret_cast< wxWindow * >(argp2);
42573 ecode3 = SWIG_AsVal_int(obj2, &val3);
42574 if (!SWIG_IsOK(ecode3)) {
42575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42576 }
42577 arg3 = static_cast< int >(val3);
42578 if (obj3) {
42579 {
42580 arg4 = wxString_in_helper(obj3);
42581 if (arg4 == NULL) SWIG_fail;
42582 temp4 = true;
42583 }
42584 }
42585 if (obj4) {
42586 {
42587 arg5 = &temp5;
42588 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42589 }
42590 }
42591 if (obj5) {
42592 {
42593 arg6 = &temp6;
42594 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42595 }
42596 }
42597 if (obj6) {
42598 ecode7 = SWIG_AsVal_long(obj6, &val7);
42599 if (!SWIG_IsOK(ecode7)) {
42600 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42601 }
42602 arg7 = static_cast< long >(val7);
42603 }
42604 if (obj7) {
42605 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42606 if (!SWIG_IsOK(res8)) {
42607 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42608 }
42609 if (!argp8) {
42610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42611 }
42612 arg8 = reinterpret_cast< wxValidator * >(argp8);
42613 }
42614 if (obj8) {
42615 {
42616 arg9 = wxString_in_helper(obj8);
42617 if (arg9 == NULL) SWIG_fail;
42618 temp9 = true;
42619 }
42620 }
42621 {
42622 PyThreadState* __tstate = wxPyBeginAllowThreads();
42623 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42624 wxPyEndAllowThreads(__tstate);
42625 if (PyErr_Occurred()) SWIG_fail;
42626 }
42627 {
42628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42629 }
42630 {
42631 if (temp4)
42632 delete arg4;
42633 }
42634 {
42635 if (temp9)
42636 delete arg9;
42637 }
42638 return resultobj;
42639 fail:
42640 {
42641 if (temp4)
42642 delete arg4;
42643 }
42644 {
42645 if (temp9)
42646 delete arg9;
42647 }
42648 return NULL;
42649 }
42650
42651
42652 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42653 PyObject *resultobj = 0;
42654 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42655 int arg2 ;
42656 void *argp1 = 0 ;
42657 int res1 = 0 ;
42658 int val2 ;
42659 int ecode2 = 0 ;
42660 PyObject * obj0 = 0 ;
42661 PyObject * obj1 = 0 ;
42662 char * kwnames[] = {
42663 (char *) "self",(char *) "newmargin", NULL
42664 };
42665
42666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42668 if (!SWIG_IsOK(res1)) {
42669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42670 }
42671 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42672 ecode2 = SWIG_AsVal_int(obj1, &val2);
42673 if (!SWIG_IsOK(ecode2)) {
42674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42675 }
42676 arg2 = static_cast< int >(val2);
42677 {
42678 PyThreadState* __tstate = wxPyBeginAllowThreads();
42679 (arg1)->SetInternalMargin(arg2);
42680 wxPyEndAllowThreads(__tstate);
42681 if (PyErr_Occurred()) SWIG_fail;
42682 }
42683 resultobj = SWIG_Py_Void();
42684 return resultobj;
42685 fail:
42686 return NULL;
42687 }
42688
42689
42690 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42691 PyObject *resultobj = 0;
42692 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42693 int result;
42694 void *argp1 = 0 ;
42695 int res1 = 0 ;
42696 PyObject *swig_obj[1] ;
42697
42698 if (!args) SWIG_fail;
42699 swig_obj[0] = args;
42700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42701 if (!SWIG_IsOK(res1)) {
42702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42703 }
42704 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42705 {
42706 PyThreadState* __tstate = wxPyBeginAllowThreads();
42707 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42708 wxPyEndAllowThreads(__tstate);
42709 if (PyErr_Occurred()) SWIG_fail;
42710 }
42711 resultobj = SWIG_From_int(static_cast< int >(result));
42712 return resultobj;
42713 fail:
42714 return NULL;
42715 }
42716
42717
42718 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42719 PyObject *resultobj = 0;
42720 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42721 int arg2 ;
42722 void *argp1 = 0 ;
42723 int res1 = 0 ;
42724 int val2 ;
42725 int ecode2 = 0 ;
42726 PyObject * obj0 = 0 ;
42727 PyObject * obj1 = 0 ;
42728 char * kwnames[] = {
42729 (char *) "self",(char *) "prop", NULL
42730 };
42731
42732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42734 if (!SWIG_IsOK(res1)) {
42735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42736 }
42737 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42738 ecode2 = SWIG_AsVal_int(obj1, &val2);
42739 if (!SWIG_IsOK(ecode2)) {
42740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42741 }
42742 arg2 = static_cast< int >(val2);
42743 {
42744 PyThreadState* __tstate = wxPyBeginAllowThreads();
42745 (arg1)->SetTextCtrlProportion(arg2);
42746 wxPyEndAllowThreads(__tstate);
42747 if (PyErr_Occurred()) SWIG_fail;
42748 }
42749 resultobj = SWIG_Py_Void();
42750 return resultobj;
42751 fail:
42752 return NULL;
42753 }
42754
42755
42756 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42757 PyObject *resultobj = 0;
42758 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42759 int result;
42760 void *argp1 = 0 ;
42761 int res1 = 0 ;
42762 PyObject *swig_obj[1] ;
42763
42764 if (!args) SWIG_fail;
42765 swig_obj[0] = args;
42766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42767 if (!SWIG_IsOK(res1)) {
42768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42769 }
42770 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42771 {
42772 PyThreadState* __tstate = wxPyBeginAllowThreads();
42773 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42774 wxPyEndAllowThreads(__tstate);
42775 if (PyErr_Occurred()) SWIG_fail;
42776 }
42777 resultobj = SWIG_From_int(static_cast< int >(result));
42778 return resultobj;
42779 fail:
42780 return NULL;
42781 }
42782
42783
42784 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42785 PyObject *resultobj = 0;
42786 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42787 int arg2 ;
42788 void *argp1 = 0 ;
42789 int res1 = 0 ;
42790 int val2 ;
42791 int ecode2 = 0 ;
42792 PyObject * obj0 = 0 ;
42793 PyObject * obj1 = 0 ;
42794 char * kwnames[] = {
42795 (char *) "self",(char *) "prop", NULL
42796 };
42797
42798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42800 if (!SWIG_IsOK(res1)) {
42801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42802 }
42803 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42804 ecode2 = SWIG_AsVal_int(obj1, &val2);
42805 if (!SWIG_IsOK(ecode2)) {
42806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42807 }
42808 arg2 = static_cast< int >(val2);
42809 {
42810 PyThreadState* __tstate = wxPyBeginAllowThreads();
42811 (arg1)->SetPickerCtrlProportion(arg2);
42812 wxPyEndAllowThreads(__tstate);
42813 if (PyErr_Occurred()) SWIG_fail;
42814 }
42815 resultobj = SWIG_Py_Void();
42816 return resultobj;
42817 fail:
42818 return NULL;
42819 }
42820
42821
42822 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42823 PyObject *resultobj = 0;
42824 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42825 int result;
42826 void *argp1 = 0 ;
42827 int res1 = 0 ;
42828 PyObject *swig_obj[1] ;
42829
42830 if (!args) SWIG_fail;
42831 swig_obj[0] = args;
42832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42833 if (!SWIG_IsOK(res1)) {
42834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42835 }
42836 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42837 {
42838 PyThreadState* __tstate = wxPyBeginAllowThreads();
42839 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42840 wxPyEndAllowThreads(__tstate);
42841 if (PyErr_Occurred()) SWIG_fail;
42842 }
42843 resultobj = SWIG_From_int(static_cast< int >(result));
42844 return resultobj;
42845 fail:
42846 return NULL;
42847 }
42848
42849
42850 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42851 PyObject *resultobj = 0;
42852 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42853 bool result;
42854 void *argp1 = 0 ;
42855 int res1 = 0 ;
42856 PyObject *swig_obj[1] ;
42857
42858 if (!args) SWIG_fail;
42859 swig_obj[0] = args;
42860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42861 if (!SWIG_IsOK(res1)) {
42862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42863 }
42864 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42865 {
42866 PyThreadState* __tstate = wxPyBeginAllowThreads();
42867 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42868 wxPyEndAllowThreads(__tstate);
42869 if (PyErr_Occurred()) SWIG_fail;
42870 }
42871 {
42872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42873 }
42874 return resultobj;
42875 fail:
42876 return NULL;
42877 }
42878
42879
42880 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42881 PyObject *resultobj = 0;
42882 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42883 bool arg2 = (bool) true ;
42884 void *argp1 = 0 ;
42885 int res1 = 0 ;
42886 bool val2 ;
42887 int ecode2 = 0 ;
42888 PyObject * obj0 = 0 ;
42889 PyObject * obj1 = 0 ;
42890 char * kwnames[] = {
42891 (char *) "self",(char *) "grow", NULL
42892 };
42893
42894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42896 if (!SWIG_IsOK(res1)) {
42897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42898 }
42899 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42900 if (obj1) {
42901 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42902 if (!SWIG_IsOK(ecode2)) {
42903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42904 }
42905 arg2 = static_cast< bool >(val2);
42906 }
42907 {
42908 PyThreadState* __tstate = wxPyBeginAllowThreads();
42909 (arg1)->SetTextCtrlGrowable(arg2);
42910 wxPyEndAllowThreads(__tstate);
42911 if (PyErr_Occurred()) SWIG_fail;
42912 }
42913 resultobj = SWIG_Py_Void();
42914 return resultobj;
42915 fail:
42916 return NULL;
42917 }
42918
42919
42920 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42921 PyObject *resultobj = 0;
42922 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42923 bool result;
42924 void *argp1 = 0 ;
42925 int res1 = 0 ;
42926 PyObject *swig_obj[1] ;
42927
42928 if (!args) SWIG_fail;
42929 swig_obj[0] = args;
42930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42931 if (!SWIG_IsOK(res1)) {
42932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42933 }
42934 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42935 {
42936 PyThreadState* __tstate = wxPyBeginAllowThreads();
42937 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42938 wxPyEndAllowThreads(__tstate);
42939 if (PyErr_Occurred()) SWIG_fail;
42940 }
42941 {
42942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42943 }
42944 return resultobj;
42945 fail:
42946 return NULL;
42947 }
42948
42949
42950 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42951 PyObject *resultobj = 0;
42952 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42953 bool arg2 = (bool) true ;
42954 void *argp1 = 0 ;
42955 int res1 = 0 ;
42956 bool val2 ;
42957 int ecode2 = 0 ;
42958 PyObject * obj0 = 0 ;
42959 PyObject * obj1 = 0 ;
42960 char * kwnames[] = {
42961 (char *) "self",(char *) "grow", NULL
42962 };
42963
42964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42966 if (!SWIG_IsOK(res1)) {
42967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42968 }
42969 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42970 if (obj1) {
42971 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42972 if (!SWIG_IsOK(ecode2)) {
42973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42974 }
42975 arg2 = static_cast< bool >(val2);
42976 }
42977 {
42978 PyThreadState* __tstate = wxPyBeginAllowThreads();
42979 (arg1)->SetPickerCtrlGrowable(arg2);
42980 wxPyEndAllowThreads(__tstate);
42981 if (PyErr_Occurred()) SWIG_fail;
42982 }
42983 resultobj = SWIG_Py_Void();
42984 return resultobj;
42985 fail:
42986 return NULL;
42987 }
42988
42989
42990 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42991 PyObject *resultobj = 0;
42992 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42993 bool result;
42994 void *argp1 = 0 ;
42995 int res1 = 0 ;
42996 PyObject *swig_obj[1] ;
42997
42998 if (!args) SWIG_fail;
42999 swig_obj[0] = args;
43000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43001 if (!SWIG_IsOK(res1)) {
43002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43003 }
43004 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43005 {
43006 PyThreadState* __tstate = wxPyBeginAllowThreads();
43007 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43008 wxPyEndAllowThreads(__tstate);
43009 if (PyErr_Occurred()) SWIG_fail;
43010 }
43011 {
43012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43013 }
43014 return resultobj;
43015 fail:
43016 return NULL;
43017 }
43018
43019
43020 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43021 PyObject *resultobj = 0;
43022 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43023 wxTextCtrl *result = 0 ;
43024 void *argp1 = 0 ;
43025 int res1 = 0 ;
43026 PyObject *swig_obj[1] ;
43027
43028 if (!args) SWIG_fail;
43029 swig_obj[0] = args;
43030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43031 if (!SWIG_IsOK(res1)) {
43032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43033 }
43034 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43035 {
43036 PyThreadState* __tstate = wxPyBeginAllowThreads();
43037 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43038 wxPyEndAllowThreads(__tstate);
43039 if (PyErr_Occurred()) SWIG_fail;
43040 }
43041 {
43042 resultobj = wxPyMake_wxObject(result, 0);
43043 }
43044 return resultobj;
43045 fail:
43046 return NULL;
43047 }
43048
43049
43050 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43051 PyObject *resultobj = 0;
43052 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43053 wxControl *result = 0 ;
43054 void *argp1 = 0 ;
43055 int res1 = 0 ;
43056 PyObject *swig_obj[1] ;
43057
43058 if (!args) SWIG_fail;
43059 swig_obj[0] = args;
43060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43061 if (!SWIG_IsOK(res1)) {
43062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43063 }
43064 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43065 {
43066 PyThreadState* __tstate = wxPyBeginAllowThreads();
43067 result = (wxControl *)(arg1)->GetPickerCtrl();
43068 wxPyEndAllowThreads(__tstate);
43069 if (PyErr_Occurred()) SWIG_fail;
43070 }
43071 {
43072 resultobj = wxPyMake_wxObject(result, 0);
43073 }
43074 return resultobj;
43075 fail:
43076 return NULL;
43077 }
43078
43079
43080 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43081 PyObject *obj;
43082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43083 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43084 return SWIG_Py_Void();
43085 }
43086
43087 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43088 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43089 return 1;
43090 }
43091
43092
43093 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43094 PyObject *pyobj = 0;
43095
43096 {
43097 #if wxUSE_UNICODE
43098 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43099 #else
43100 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43101 #endif
43102 }
43103 return pyobj;
43104 }
43105
43106
43107 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43108 PyObject *resultobj = 0;
43109 wxWindow *arg1 = (wxWindow *) 0 ;
43110 int arg2 = (int) -1 ;
43111 wxColour const &arg3_defvalue = *wxBLACK ;
43112 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43113 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43114 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43115 wxSize const &arg5_defvalue = wxDefaultSize ;
43116 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43117 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43118 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43119 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43120 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43121 wxString *arg8 = (wxString *) &arg8_defvalue ;
43122 wxColourPickerCtrl *result = 0 ;
43123 void *argp1 = 0 ;
43124 int res1 = 0 ;
43125 int val2 ;
43126 int ecode2 = 0 ;
43127 wxColour temp3 ;
43128 wxPoint temp4 ;
43129 wxSize temp5 ;
43130 long val6 ;
43131 int ecode6 = 0 ;
43132 void *argp7 = 0 ;
43133 int res7 = 0 ;
43134 bool temp8 = false ;
43135 PyObject * obj0 = 0 ;
43136 PyObject * obj1 = 0 ;
43137 PyObject * obj2 = 0 ;
43138 PyObject * obj3 = 0 ;
43139 PyObject * obj4 = 0 ;
43140 PyObject * obj5 = 0 ;
43141 PyObject * obj6 = 0 ;
43142 PyObject * obj7 = 0 ;
43143 char * kwnames[] = {
43144 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43145 };
43146
43147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43149 if (!SWIG_IsOK(res1)) {
43150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43151 }
43152 arg1 = reinterpret_cast< wxWindow * >(argp1);
43153 if (obj1) {
43154 ecode2 = SWIG_AsVal_int(obj1, &val2);
43155 if (!SWIG_IsOK(ecode2)) {
43156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43157 }
43158 arg2 = static_cast< int >(val2);
43159 }
43160 if (obj2) {
43161 {
43162 arg3 = &temp3;
43163 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43164 }
43165 }
43166 if (obj3) {
43167 {
43168 arg4 = &temp4;
43169 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43170 }
43171 }
43172 if (obj4) {
43173 {
43174 arg5 = &temp5;
43175 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43176 }
43177 }
43178 if (obj5) {
43179 ecode6 = SWIG_AsVal_long(obj5, &val6);
43180 if (!SWIG_IsOK(ecode6)) {
43181 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43182 }
43183 arg6 = static_cast< long >(val6);
43184 }
43185 if (obj6) {
43186 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43187 if (!SWIG_IsOK(res7)) {
43188 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43189 }
43190 if (!argp7) {
43191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43192 }
43193 arg7 = reinterpret_cast< wxValidator * >(argp7);
43194 }
43195 if (obj7) {
43196 {
43197 arg8 = wxString_in_helper(obj7);
43198 if (arg8 == NULL) SWIG_fail;
43199 temp8 = true;
43200 }
43201 }
43202 {
43203 if (!wxPyCheckForApp()) SWIG_fail;
43204 PyThreadState* __tstate = wxPyBeginAllowThreads();
43205 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43206 wxPyEndAllowThreads(__tstate);
43207 if (PyErr_Occurred()) SWIG_fail;
43208 }
43209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43210 {
43211 if (temp8)
43212 delete arg8;
43213 }
43214 return resultobj;
43215 fail:
43216 {
43217 if (temp8)
43218 delete arg8;
43219 }
43220 return NULL;
43221 }
43222
43223
43224 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43225 PyObject *resultobj = 0;
43226 wxColourPickerCtrl *result = 0 ;
43227
43228 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43229 {
43230 if (!wxPyCheckForApp()) SWIG_fail;
43231 PyThreadState* __tstate = wxPyBeginAllowThreads();
43232 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43233 wxPyEndAllowThreads(__tstate);
43234 if (PyErr_Occurred()) SWIG_fail;
43235 }
43236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43237 return resultobj;
43238 fail:
43239 return NULL;
43240 }
43241
43242
43243 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43244 PyObject *resultobj = 0;
43245 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43246 wxWindow *arg2 = (wxWindow *) 0 ;
43247 int arg3 ;
43248 wxColour const &arg4_defvalue = *wxBLACK ;
43249 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43250 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43251 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43252 wxSize const &arg6_defvalue = wxDefaultSize ;
43253 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43254 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43255 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43256 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43257 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43258 wxString *arg9 = (wxString *) &arg9_defvalue ;
43259 bool result;
43260 void *argp1 = 0 ;
43261 int res1 = 0 ;
43262 void *argp2 = 0 ;
43263 int res2 = 0 ;
43264 int val3 ;
43265 int ecode3 = 0 ;
43266 wxColour temp4 ;
43267 wxPoint temp5 ;
43268 wxSize temp6 ;
43269 long val7 ;
43270 int ecode7 = 0 ;
43271 void *argp8 = 0 ;
43272 int res8 = 0 ;
43273 bool temp9 = false ;
43274 PyObject * obj0 = 0 ;
43275 PyObject * obj1 = 0 ;
43276 PyObject * obj2 = 0 ;
43277 PyObject * obj3 = 0 ;
43278 PyObject * obj4 = 0 ;
43279 PyObject * obj5 = 0 ;
43280 PyObject * obj6 = 0 ;
43281 PyObject * obj7 = 0 ;
43282 PyObject * obj8 = 0 ;
43283 char * kwnames[] = {
43284 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43285 };
43286
43287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43289 if (!SWIG_IsOK(res1)) {
43290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43291 }
43292 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43293 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43294 if (!SWIG_IsOK(res2)) {
43295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43296 }
43297 arg2 = reinterpret_cast< wxWindow * >(argp2);
43298 ecode3 = SWIG_AsVal_int(obj2, &val3);
43299 if (!SWIG_IsOK(ecode3)) {
43300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43301 }
43302 arg3 = static_cast< int >(val3);
43303 if (obj3) {
43304 {
43305 arg4 = &temp4;
43306 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43307 }
43308 }
43309 if (obj4) {
43310 {
43311 arg5 = &temp5;
43312 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43313 }
43314 }
43315 if (obj5) {
43316 {
43317 arg6 = &temp6;
43318 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43319 }
43320 }
43321 if (obj6) {
43322 ecode7 = SWIG_AsVal_long(obj6, &val7);
43323 if (!SWIG_IsOK(ecode7)) {
43324 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43325 }
43326 arg7 = static_cast< long >(val7);
43327 }
43328 if (obj7) {
43329 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43330 if (!SWIG_IsOK(res8)) {
43331 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43332 }
43333 if (!argp8) {
43334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43335 }
43336 arg8 = reinterpret_cast< wxValidator * >(argp8);
43337 }
43338 if (obj8) {
43339 {
43340 arg9 = wxString_in_helper(obj8);
43341 if (arg9 == NULL) SWIG_fail;
43342 temp9 = true;
43343 }
43344 }
43345 {
43346 PyThreadState* __tstate = wxPyBeginAllowThreads();
43347 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43348 wxPyEndAllowThreads(__tstate);
43349 if (PyErr_Occurred()) SWIG_fail;
43350 }
43351 {
43352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43353 }
43354 {
43355 if (temp9)
43356 delete arg9;
43357 }
43358 return resultobj;
43359 fail:
43360 {
43361 if (temp9)
43362 delete arg9;
43363 }
43364 return NULL;
43365 }
43366
43367
43368 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43369 PyObject *resultobj = 0;
43370 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43371 wxColour result;
43372 void *argp1 = 0 ;
43373 int res1 = 0 ;
43374 PyObject *swig_obj[1] ;
43375
43376 if (!args) SWIG_fail;
43377 swig_obj[0] = args;
43378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43379 if (!SWIG_IsOK(res1)) {
43380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43381 }
43382 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43383 {
43384 PyThreadState* __tstate = wxPyBeginAllowThreads();
43385 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43386 wxPyEndAllowThreads(__tstate);
43387 if (PyErr_Occurred()) SWIG_fail;
43388 }
43389 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43390 return resultobj;
43391 fail:
43392 return NULL;
43393 }
43394
43395
43396 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43397 PyObject *resultobj = 0;
43398 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43399 wxColour *arg2 = 0 ;
43400 void *argp1 = 0 ;
43401 int res1 = 0 ;
43402 wxColour temp2 ;
43403 PyObject * obj0 = 0 ;
43404 PyObject * obj1 = 0 ;
43405 char * kwnames[] = {
43406 (char *) "self",(char *) "col", NULL
43407 };
43408
43409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43411 if (!SWIG_IsOK(res1)) {
43412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43413 }
43414 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43415 {
43416 arg2 = &temp2;
43417 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43418 }
43419 {
43420 PyThreadState* __tstate = wxPyBeginAllowThreads();
43421 (arg1)->SetColour((wxColour const &)*arg2);
43422 wxPyEndAllowThreads(__tstate);
43423 if (PyErr_Occurred()) SWIG_fail;
43424 }
43425 resultobj = SWIG_Py_Void();
43426 return resultobj;
43427 fail:
43428 return NULL;
43429 }
43430
43431
43432 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43433 PyObject *obj;
43434 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43435 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43436 return SWIG_Py_Void();
43437 }
43438
43439 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43440 return SWIG_Python_InitShadowInstance(args);
43441 }
43442
43443 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43444 PyObject *resultobj = 0;
43445 wxObject *arg1 = (wxObject *) 0 ;
43446 int arg2 ;
43447 wxColour *arg3 = 0 ;
43448 wxColourPickerEvent *result = 0 ;
43449 void *argp1 = 0 ;
43450 int res1 = 0 ;
43451 int val2 ;
43452 int ecode2 = 0 ;
43453 wxColour temp3 ;
43454 PyObject * obj0 = 0 ;
43455 PyObject * obj1 = 0 ;
43456 PyObject * obj2 = 0 ;
43457 char * kwnames[] = {
43458 (char *) "generator",(char *) "id",(char *) "col", NULL
43459 };
43460
43461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43463 if (!SWIG_IsOK(res1)) {
43464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43465 }
43466 arg1 = reinterpret_cast< wxObject * >(argp1);
43467 ecode2 = SWIG_AsVal_int(obj1, &val2);
43468 if (!SWIG_IsOK(ecode2)) {
43469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43470 }
43471 arg2 = static_cast< int >(val2);
43472 {
43473 arg3 = &temp3;
43474 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43475 }
43476 {
43477 PyThreadState* __tstate = wxPyBeginAllowThreads();
43478 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43479 wxPyEndAllowThreads(__tstate);
43480 if (PyErr_Occurred()) SWIG_fail;
43481 }
43482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43483 return resultobj;
43484 fail:
43485 return NULL;
43486 }
43487
43488
43489 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43490 PyObject *resultobj = 0;
43491 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43492 wxColour result;
43493 void *argp1 = 0 ;
43494 int res1 = 0 ;
43495 PyObject *swig_obj[1] ;
43496
43497 if (!args) SWIG_fail;
43498 swig_obj[0] = args;
43499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43500 if (!SWIG_IsOK(res1)) {
43501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43502 }
43503 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43504 {
43505 PyThreadState* __tstate = wxPyBeginAllowThreads();
43506 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43507 wxPyEndAllowThreads(__tstate);
43508 if (PyErr_Occurred()) SWIG_fail;
43509 }
43510 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43511 return resultobj;
43512 fail:
43513 return NULL;
43514 }
43515
43516
43517 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43518 PyObject *resultobj = 0;
43519 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43520 wxColour *arg2 = 0 ;
43521 void *argp1 = 0 ;
43522 int res1 = 0 ;
43523 wxColour temp2 ;
43524 PyObject * obj0 = 0 ;
43525 PyObject * obj1 = 0 ;
43526 char * kwnames[] = {
43527 (char *) "self",(char *) "c", NULL
43528 };
43529
43530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43532 if (!SWIG_IsOK(res1)) {
43533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43534 }
43535 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43536 {
43537 arg2 = &temp2;
43538 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43539 }
43540 {
43541 PyThreadState* __tstate = wxPyBeginAllowThreads();
43542 (arg1)->SetColour((wxColour const &)*arg2);
43543 wxPyEndAllowThreads(__tstate);
43544 if (PyErr_Occurred()) SWIG_fail;
43545 }
43546 resultobj = SWIG_Py_Void();
43547 return resultobj;
43548 fail:
43549 return NULL;
43550 }
43551
43552
43553 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43554 PyObject *obj;
43555 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43556 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43557 return SWIG_Py_Void();
43558 }
43559
43560 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43561 return SWIG_Python_InitShadowInstance(args);
43562 }
43563
43564 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43565 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43566 return 1;
43567 }
43568
43569
43570 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43571 PyObject *pyobj = 0;
43572
43573 {
43574 #if wxUSE_UNICODE
43575 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43576 #else
43577 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43578 #endif
43579 }
43580 return pyobj;
43581 }
43582
43583
43584 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43585 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43586 return 1;
43587 }
43588
43589
43590 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43591 PyObject *pyobj = 0;
43592
43593 {
43594 #if wxUSE_UNICODE
43595 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43596 #else
43597 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43598 #endif
43599 }
43600 return pyobj;
43601 }
43602
43603
43604 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43605 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43606 return 1;
43607 }
43608
43609
43610 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43611 PyObject *pyobj = 0;
43612
43613 {
43614 #if wxUSE_UNICODE
43615 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43616 #else
43617 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43618 #endif
43619 }
43620 return pyobj;
43621 }
43622
43623
43624 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43625 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43626 return 1;
43627 }
43628
43629
43630 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43631 PyObject *pyobj = 0;
43632
43633 {
43634 #if wxUSE_UNICODE
43635 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43636 #else
43637 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43638 #endif
43639 }
43640 return pyobj;
43641 }
43642
43643
43644 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43645 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43646 return 1;
43647 }
43648
43649
43650 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43651 PyObject *pyobj = 0;
43652
43653 {
43654 #if wxUSE_UNICODE
43655 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43656 #else
43657 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43658 #endif
43659 }
43660 return pyobj;
43661 }
43662
43663
43664 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43665 PyObject *resultobj = 0;
43666 wxWindow *arg1 = (wxWindow *) 0 ;
43667 int arg2 = (int) -1 ;
43668 wxString const &arg3_defvalue = wxPyEmptyString ;
43669 wxString *arg3 = (wxString *) &arg3_defvalue ;
43670 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43671 wxString *arg4 = (wxString *) &arg4_defvalue ;
43672 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43673 wxString *arg5 = (wxString *) &arg5_defvalue ;
43674 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43675 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43676 wxSize const &arg7_defvalue = wxDefaultSize ;
43677 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43678 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43679 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43680 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43681 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43682 wxString *arg10 = (wxString *) &arg10_defvalue ;
43683 wxFilePickerCtrl *result = 0 ;
43684 void *argp1 = 0 ;
43685 int res1 = 0 ;
43686 int val2 ;
43687 int ecode2 = 0 ;
43688 bool temp3 = false ;
43689 bool temp4 = false ;
43690 bool temp5 = false ;
43691 wxPoint temp6 ;
43692 wxSize temp7 ;
43693 long val8 ;
43694 int ecode8 = 0 ;
43695 void *argp9 = 0 ;
43696 int res9 = 0 ;
43697 bool temp10 = false ;
43698 PyObject * obj0 = 0 ;
43699 PyObject * obj1 = 0 ;
43700 PyObject * obj2 = 0 ;
43701 PyObject * obj3 = 0 ;
43702 PyObject * obj4 = 0 ;
43703 PyObject * obj5 = 0 ;
43704 PyObject * obj6 = 0 ;
43705 PyObject * obj7 = 0 ;
43706 PyObject * obj8 = 0 ;
43707 PyObject * obj9 = 0 ;
43708 char * kwnames[] = {
43709 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43710 };
43711
43712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43714 if (!SWIG_IsOK(res1)) {
43715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43716 }
43717 arg1 = reinterpret_cast< wxWindow * >(argp1);
43718 if (obj1) {
43719 ecode2 = SWIG_AsVal_int(obj1, &val2);
43720 if (!SWIG_IsOK(ecode2)) {
43721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43722 }
43723 arg2 = static_cast< int >(val2);
43724 }
43725 if (obj2) {
43726 {
43727 arg3 = wxString_in_helper(obj2);
43728 if (arg3 == NULL) SWIG_fail;
43729 temp3 = true;
43730 }
43731 }
43732 if (obj3) {
43733 {
43734 arg4 = wxString_in_helper(obj3);
43735 if (arg4 == NULL) SWIG_fail;
43736 temp4 = true;
43737 }
43738 }
43739 if (obj4) {
43740 {
43741 arg5 = wxString_in_helper(obj4);
43742 if (arg5 == NULL) SWIG_fail;
43743 temp5 = true;
43744 }
43745 }
43746 if (obj5) {
43747 {
43748 arg6 = &temp6;
43749 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43750 }
43751 }
43752 if (obj6) {
43753 {
43754 arg7 = &temp7;
43755 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43756 }
43757 }
43758 if (obj7) {
43759 ecode8 = SWIG_AsVal_long(obj7, &val8);
43760 if (!SWIG_IsOK(ecode8)) {
43761 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43762 }
43763 arg8 = static_cast< long >(val8);
43764 }
43765 if (obj8) {
43766 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43767 if (!SWIG_IsOK(res9)) {
43768 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43769 }
43770 if (!argp9) {
43771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43772 }
43773 arg9 = reinterpret_cast< wxValidator * >(argp9);
43774 }
43775 if (obj9) {
43776 {
43777 arg10 = wxString_in_helper(obj9);
43778 if (arg10 == NULL) SWIG_fail;
43779 temp10 = true;
43780 }
43781 }
43782 {
43783 if (!wxPyCheckForApp()) SWIG_fail;
43784 PyThreadState* __tstate = wxPyBeginAllowThreads();
43785 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);
43786 wxPyEndAllowThreads(__tstate);
43787 if (PyErr_Occurred()) SWIG_fail;
43788 }
43789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43790 {
43791 if (temp3)
43792 delete arg3;
43793 }
43794 {
43795 if (temp4)
43796 delete arg4;
43797 }
43798 {
43799 if (temp5)
43800 delete arg5;
43801 }
43802 {
43803 if (temp10)
43804 delete arg10;
43805 }
43806 return resultobj;
43807 fail:
43808 {
43809 if (temp3)
43810 delete arg3;
43811 }
43812 {
43813 if (temp4)
43814 delete arg4;
43815 }
43816 {
43817 if (temp5)
43818 delete arg5;
43819 }
43820 {
43821 if (temp10)
43822 delete arg10;
43823 }
43824 return NULL;
43825 }
43826
43827
43828 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43829 PyObject *resultobj = 0;
43830 wxFilePickerCtrl *result = 0 ;
43831
43832 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43833 {
43834 if (!wxPyCheckForApp()) SWIG_fail;
43835 PyThreadState* __tstate = wxPyBeginAllowThreads();
43836 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43837 wxPyEndAllowThreads(__tstate);
43838 if (PyErr_Occurred()) SWIG_fail;
43839 }
43840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43841 return resultobj;
43842 fail:
43843 return NULL;
43844 }
43845
43846
43847 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43848 PyObject *resultobj = 0;
43849 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43850 wxWindow *arg2 = (wxWindow *) 0 ;
43851 int arg3 = (int) -1 ;
43852 wxString const &arg4_defvalue = wxPyEmptyString ;
43853 wxString *arg4 = (wxString *) &arg4_defvalue ;
43854 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43855 wxString *arg5 = (wxString *) &arg5_defvalue ;
43856 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43857 wxString *arg6 = (wxString *) &arg6_defvalue ;
43858 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43859 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43860 wxSize const &arg8_defvalue = wxDefaultSize ;
43861 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43862 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43863 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43864 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43865 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43866 wxString *arg11 = (wxString *) &arg11_defvalue ;
43867 bool result;
43868 void *argp1 = 0 ;
43869 int res1 = 0 ;
43870 void *argp2 = 0 ;
43871 int res2 = 0 ;
43872 int val3 ;
43873 int ecode3 = 0 ;
43874 bool temp4 = false ;
43875 bool temp5 = false ;
43876 bool temp6 = false ;
43877 wxPoint temp7 ;
43878 wxSize temp8 ;
43879 long val9 ;
43880 int ecode9 = 0 ;
43881 void *argp10 = 0 ;
43882 int res10 = 0 ;
43883 bool temp11 = false ;
43884 PyObject * obj0 = 0 ;
43885 PyObject * obj1 = 0 ;
43886 PyObject * obj2 = 0 ;
43887 PyObject * obj3 = 0 ;
43888 PyObject * obj4 = 0 ;
43889 PyObject * obj5 = 0 ;
43890 PyObject * obj6 = 0 ;
43891 PyObject * obj7 = 0 ;
43892 PyObject * obj8 = 0 ;
43893 PyObject * obj9 = 0 ;
43894 PyObject * obj10 = 0 ;
43895 char * kwnames[] = {
43896 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43897 };
43898
43899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43901 if (!SWIG_IsOK(res1)) {
43902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43903 }
43904 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43905 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43906 if (!SWIG_IsOK(res2)) {
43907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43908 }
43909 arg2 = reinterpret_cast< wxWindow * >(argp2);
43910 if (obj2) {
43911 ecode3 = SWIG_AsVal_int(obj2, &val3);
43912 if (!SWIG_IsOK(ecode3)) {
43913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43914 }
43915 arg3 = static_cast< int >(val3);
43916 }
43917 if (obj3) {
43918 {
43919 arg4 = wxString_in_helper(obj3);
43920 if (arg4 == NULL) SWIG_fail;
43921 temp4 = true;
43922 }
43923 }
43924 if (obj4) {
43925 {
43926 arg5 = wxString_in_helper(obj4);
43927 if (arg5 == NULL) SWIG_fail;
43928 temp5 = true;
43929 }
43930 }
43931 if (obj5) {
43932 {
43933 arg6 = wxString_in_helper(obj5);
43934 if (arg6 == NULL) SWIG_fail;
43935 temp6 = true;
43936 }
43937 }
43938 if (obj6) {
43939 {
43940 arg7 = &temp7;
43941 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43942 }
43943 }
43944 if (obj7) {
43945 {
43946 arg8 = &temp8;
43947 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43948 }
43949 }
43950 if (obj8) {
43951 ecode9 = SWIG_AsVal_long(obj8, &val9);
43952 if (!SWIG_IsOK(ecode9)) {
43953 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43954 }
43955 arg9 = static_cast< long >(val9);
43956 }
43957 if (obj9) {
43958 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43959 if (!SWIG_IsOK(res10)) {
43960 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43961 }
43962 if (!argp10) {
43963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43964 }
43965 arg10 = reinterpret_cast< wxValidator * >(argp10);
43966 }
43967 if (obj10) {
43968 {
43969 arg11 = wxString_in_helper(obj10);
43970 if (arg11 == NULL) SWIG_fail;
43971 temp11 = true;
43972 }
43973 }
43974 {
43975 PyThreadState* __tstate = wxPyBeginAllowThreads();
43976 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);
43977 wxPyEndAllowThreads(__tstate);
43978 if (PyErr_Occurred()) SWIG_fail;
43979 }
43980 {
43981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43982 }
43983 {
43984 if (temp4)
43985 delete arg4;
43986 }
43987 {
43988 if (temp5)
43989 delete arg5;
43990 }
43991 {
43992 if (temp6)
43993 delete arg6;
43994 }
43995 {
43996 if (temp11)
43997 delete arg11;
43998 }
43999 return resultobj;
44000 fail:
44001 {
44002 if (temp4)
44003 delete arg4;
44004 }
44005 {
44006 if (temp5)
44007 delete arg5;
44008 }
44009 {
44010 if (temp6)
44011 delete arg6;
44012 }
44013 {
44014 if (temp11)
44015 delete arg11;
44016 }
44017 return NULL;
44018 }
44019
44020
44021 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44022 PyObject *resultobj = 0;
44023 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44024 wxString result;
44025 void *argp1 = 0 ;
44026 int res1 = 0 ;
44027 PyObject *swig_obj[1] ;
44028
44029 if (!args) SWIG_fail;
44030 swig_obj[0] = args;
44031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44032 if (!SWIG_IsOK(res1)) {
44033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44034 }
44035 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44036 {
44037 PyThreadState* __tstate = wxPyBeginAllowThreads();
44038 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44039 wxPyEndAllowThreads(__tstate);
44040 if (PyErr_Occurred()) SWIG_fail;
44041 }
44042 {
44043 #if wxUSE_UNICODE
44044 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44045 #else
44046 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44047 #endif
44048 }
44049 return resultobj;
44050 fail:
44051 return NULL;
44052 }
44053
44054
44055 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44056 PyObject *resultobj = 0;
44057 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44058 wxString *arg2 = 0 ;
44059 void *argp1 = 0 ;
44060 int res1 = 0 ;
44061 bool temp2 = false ;
44062 PyObject * obj0 = 0 ;
44063 PyObject * obj1 = 0 ;
44064 char * kwnames[] = {
44065 (char *) "self",(char *) "str", NULL
44066 };
44067
44068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44070 if (!SWIG_IsOK(res1)) {
44071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44072 }
44073 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44074 {
44075 arg2 = wxString_in_helper(obj1);
44076 if (arg2 == NULL) SWIG_fail;
44077 temp2 = true;
44078 }
44079 {
44080 PyThreadState* __tstate = wxPyBeginAllowThreads();
44081 (arg1)->SetPath((wxString const &)*arg2);
44082 wxPyEndAllowThreads(__tstate);
44083 if (PyErr_Occurred()) SWIG_fail;
44084 }
44085 resultobj = SWIG_Py_Void();
44086 {
44087 if (temp2)
44088 delete arg2;
44089 }
44090 return resultobj;
44091 fail:
44092 {
44093 if (temp2)
44094 delete arg2;
44095 }
44096 return NULL;
44097 }
44098
44099
44100 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44101 PyObject *resultobj = 0;
44102 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44103 wxString *arg2 = 0 ;
44104 bool result;
44105 void *argp1 = 0 ;
44106 int res1 = 0 ;
44107 bool temp2 = false ;
44108 PyObject * obj0 = 0 ;
44109 PyObject * obj1 = 0 ;
44110 char * kwnames[] = {
44111 (char *) "self",(char *) "path", NULL
44112 };
44113
44114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44116 if (!SWIG_IsOK(res1)) {
44117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44118 }
44119 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44120 {
44121 arg2 = wxString_in_helper(obj1);
44122 if (arg2 == NULL) SWIG_fail;
44123 temp2 = true;
44124 }
44125 {
44126 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44128 wxPyEndAllowThreads(__tstate);
44129 if (PyErr_Occurred()) SWIG_fail;
44130 }
44131 {
44132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44133 }
44134 {
44135 if (temp2)
44136 delete arg2;
44137 }
44138 return resultobj;
44139 fail:
44140 {
44141 if (temp2)
44142 delete arg2;
44143 }
44144 return NULL;
44145 }
44146
44147
44148 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44149 PyObject *resultobj = 0;
44150 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44151 wxString result;
44152 void *argp1 = 0 ;
44153 int res1 = 0 ;
44154 PyObject *swig_obj[1] ;
44155
44156 if (!args) SWIG_fail;
44157 swig_obj[0] = args;
44158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44159 if (!SWIG_IsOK(res1)) {
44160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44161 }
44162 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44163 {
44164 PyThreadState* __tstate = wxPyBeginAllowThreads();
44165 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44166 wxPyEndAllowThreads(__tstate);
44167 if (PyErr_Occurred()) SWIG_fail;
44168 }
44169 {
44170 #if wxUSE_UNICODE
44171 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44172 #else
44173 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44174 #endif
44175 }
44176 return resultobj;
44177 fail:
44178 return NULL;
44179 }
44180
44181
44182 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44183 PyObject *obj;
44184 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44185 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44186 return SWIG_Py_Void();
44187 }
44188
44189 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44190 return SWIG_Python_InitShadowInstance(args);
44191 }
44192
44193 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44194 PyObject *resultobj = 0;
44195 wxWindow *arg1 = (wxWindow *) 0 ;
44196 int arg2 = (int) -1 ;
44197 wxString const &arg3_defvalue = wxPyEmptyString ;
44198 wxString *arg3 = (wxString *) &arg3_defvalue ;
44199 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44200 wxString *arg4 = (wxString *) &arg4_defvalue ;
44201 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44202 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44203 wxSize const &arg6_defvalue = wxDefaultSize ;
44204 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44205 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44206 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44207 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44208 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44209 wxString *arg9 = (wxString *) &arg9_defvalue ;
44210 wxDirPickerCtrl *result = 0 ;
44211 void *argp1 = 0 ;
44212 int res1 = 0 ;
44213 int val2 ;
44214 int ecode2 = 0 ;
44215 bool temp3 = false ;
44216 bool temp4 = false ;
44217 wxPoint temp5 ;
44218 wxSize temp6 ;
44219 long val7 ;
44220 int ecode7 = 0 ;
44221 void *argp8 = 0 ;
44222 int res8 = 0 ;
44223 bool temp9 = false ;
44224 PyObject * obj0 = 0 ;
44225 PyObject * obj1 = 0 ;
44226 PyObject * obj2 = 0 ;
44227 PyObject * obj3 = 0 ;
44228 PyObject * obj4 = 0 ;
44229 PyObject * obj5 = 0 ;
44230 PyObject * obj6 = 0 ;
44231 PyObject * obj7 = 0 ;
44232 PyObject * obj8 = 0 ;
44233 char * kwnames[] = {
44234 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44235 };
44236
44237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44239 if (!SWIG_IsOK(res1)) {
44240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44241 }
44242 arg1 = reinterpret_cast< wxWindow * >(argp1);
44243 if (obj1) {
44244 ecode2 = SWIG_AsVal_int(obj1, &val2);
44245 if (!SWIG_IsOK(ecode2)) {
44246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44247 }
44248 arg2 = static_cast< int >(val2);
44249 }
44250 if (obj2) {
44251 {
44252 arg3 = wxString_in_helper(obj2);
44253 if (arg3 == NULL) SWIG_fail;
44254 temp3 = true;
44255 }
44256 }
44257 if (obj3) {
44258 {
44259 arg4 = wxString_in_helper(obj3);
44260 if (arg4 == NULL) SWIG_fail;
44261 temp4 = true;
44262 }
44263 }
44264 if (obj4) {
44265 {
44266 arg5 = &temp5;
44267 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44268 }
44269 }
44270 if (obj5) {
44271 {
44272 arg6 = &temp6;
44273 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44274 }
44275 }
44276 if (obj6) {
44277 ecode7 = SWIG_AsVal_long(obj6, &val7);
44278 if (!SWIG_IsOK(ecode7)) {
44279 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44280 }
44281 arg7 = static_cast< long >(val7);
44282 }
44283 if (obj7) {
44284 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44285 if (!SWIG_IsOK(res8)) {
44286 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44287 }
44288 if (!argp8) {
44289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44290 }
44291 arg8 = reinterpret_cast< wxValidator * >(argp8);
44292 }
44293 if (obj8) {
44294 {
44295 arg9 = wxString_in_helper(obj8);
44296 if (arg9 == NULL) SWIG_fail;
44297 temp9 = true;
44298 }
44299 }
44300 {
44301 if (!wxPyCheckForApp()) SWIG_fail;
44302 PyThreadState* __tstate = wxPyBeginAllowThreads();
44303 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);
44304 wxPyEndAllowThreads(__tstate);
44305 if (PyErr_Occurred()) SWIG_fail;
44306 }
44307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44308 {
44309 if (temp3)
44310 delete arg3;
44311 }
44312 {
44313 if (temp4)
44314 delete arg4;
44315 }
44316 {
44317 if (temp9)
44318 delete arg9;
44319 }
44320 return resultobj;
44321 fail:
44322 {
44323 if (temp3)
44324 delete arg3;
44325 }
44326 {
44327 if (temp4)
44328 delete arg4;
44329 }
44330 {
44331 if (temp9)
44332 delete arg9;
44333 }
44334 return NULL;
44335 }
44336
44337
44338 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44339 PyObject *resultobj = 0;
44340 wxDirPickerCtrl *result = 0 ;
44341
44342 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44343 {
44344 if (!wxPyCheckForApp()) SWIG_fail;
44345 PyThreadState* __tstate = wxPyBeginAllowThreads();
44346 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44347 wxPyEndAllowThreads(__tstate);
44348 if (PyErr_Occurred()) SWIG_fail;
44349 }
44350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44351 return resultobj;
44352 fail:
44353 return NULL;
44354 }
44355
44356
44357 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44358 PyObject *resultobj = 0;
44359 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44360 wxWindow *arg2 = (wxWindow *) 0 ;
44361 int arg3 = (int) -1 ;
44362 wxString const &arg4_defvalue = wxPyEmptyString ;
44363 wxString *arg4 = (wxString *) &arg4_defvalue ;
44364 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44365 wxString *arg5 = (wxString *) &arg5_defvalue ;
44366 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44367 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44368 wxSize const &arg7_defvalue = wxDefaultSize ;
44369 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44370 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44371 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44372 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44373 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44374 wxString *arg10 = (wxString *) &arg10_defvalue ;
44375 bool result;
44376 void *argp1 = 0 ;
44377 int res1 = 0 ;
44378 void *argp2 = 0 ;
44379 int res2 = 0 ;
44380 int val3 ;
44381 int ecode3 = 0 ;
44382 bool temp4 = false ;
44383 bool temp5 = false ;
44384 wxPoint temp6 ;
44385 wxSize temp7 ;
44386 long val8 ;
44387 int ecode8 = 0 ;
44388 void *argp9 = 0 ;
44389 int res9 = 0 ;
44390 bool temp10 = false ;
44391 PyObject * obj0 = 0 ;
44392 PyObject * obj1 = 0 ;
44393 PyObject * obj2 = 0 ;
44394 PyObject * obj3 = 0 ;
44395 PyObject * obj4 = 0 ;
44396 PyObject * obj5 = 0 ;
44397 PyObject * obj6 = 0 ;
44398 PyObject * obj7 = 0 ;
44399 PyObject * obj8 = 0 ;
44400 PyObject * obj9 = 0 ;
44401 char * kwnames[] = {
44402 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44403 };
44404
44405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44407 if (!SWIG_IsOK(res1)) {
44408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44409 }
44410 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44411 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44412 if (!SWIG_IsOK(res2)) {
44413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44414 }
44415 arg2 = reinterpret_cast< wxWindow * >(argp2);
44416 if (obj2) {
44417 ecode3 = SWIG_AsVal_int(obj2, &val3);
44418 if (!SWIG_IsOK(ecode3)) {
44419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44420 }
44421 arg3 = static_cast< int >(val3);
44422 }
44423 if (obj3) {
44424 {
44425 arg4 = wxString_in_helper(obj3);
44426 if (arg4 == NULL) SWIG_fail;
44427 temp4 = true;
44428 }
44429 }
44430 if (obj4) {
44431 {
44432 arg5 = wxString_in_helper(obj4);
44433 if (arg5 == NULL) SWIG_fail;
44434 temp5 = true;
44435 }
44436 }
44437 if (obj5) {
44438 {
44439 arg6 = &temp6;
44440 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44441 }
44442 }
44443 if (obj6) {
44444 {
44445 arg7 = &temp7;
44446 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44447 }
44448 }
44449 if (obj7) {
44450 ecode8 = SWIG_AsVal_long(obj7, &val8);
44451 if (!SWIG_IsOK(ecode8)) {
44452 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44453 }
44454 arg8 = static_cast< long >(val8);
44455 }
44456 if (obj8) {
44457 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44458 if (!SWIG_IsOK(res9)) {
44459 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44460 }
44461 if (!argp9) {
44462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44463 }
44464 arg9 = reinterpret_cast< wxValidator * >(argp9);
44465 }
44466 if (obj9) {
44467 {
44468 arg10 = wxString_in_helper(obj9);
44469 if (arg10 == NULL) SWIG_fail;
44470 temp10 = true;
44471 }
44472 }
44473 {
44474 PyThreadState* __tstate = wxPyBeginAllowThreads();
44475 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);
44476 wxPyEndAllowThreads(__tstate);
44477 if (PyErr_Occurred()) SWIG_fail;
44478 }
44479 {
44480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44481 }
44482 {
44483 if (temp4)
44484 delete arg4;
44485 }
44486 {
44487 if (temp5)
44488 delete arg5;
44489 }
44490 {
44491 if (temp10)
44492 delete arg10;
44493 }
44494 return resultobj;
44495 fail:
44496 {
44497 if (temp4)
44498 delete arg4;
44499 }
44500 {
44501 if (temp5)
44502 delete arg5;
44503 }
44504 {
44505 if (temp10)
44506 delete arg10;
44507 }
44508 return NULL;
44509 }
44510
44511
44512 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44513 PyObject *resultobj = 0;
44514 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44515 wxString result;
44516 void *argp1 = 0 ;
44517 int res1 = 0 ;
44518 PyObject *swig_obj[1] ;
44519
44520 if (!args) SWIG_fail;
44521 swig_obj[0] = args;
44522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44523 if (!SWIG_IsOK(res1)) {
44524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44525 }
44526 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44527 {
44528 PyThreadState* __tstate = wxPyBeginAllowThreads();
44529 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44530 wxPyEndAllowThreads(__tstate);
44531 if (PyErr_Occurred()) SWIG_fail;
44532 }
44533 {
44534 #if wxUSE_UNICODE
44535 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44536 #else
44537 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44538 #endif
44539 }
44540 return resultobj;
44541 fail:
44542 return NULL;
44543 }
44544
44545
44546 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44547 PyObject *resultobj = 0;
44548 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44549 wxString *arg2 = 0 ;
44550 void *argp1 = 0 ;
44551 int res1 = 0 ;
44552 bool temp2 = false ;
44553 PyObject * obj0 = 0 ;
44554 PyObject * obj1 = 0 ;
44555 char * kwnames[] = {
44556 (char *) "self",(char *) "str", NULL
44557 };
44558
44559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44561 if (!SWIG_IsOK(res1)) {
44562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44563 }
44564 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44565 {
44566 arg2 = wxString_in_helper(obj1);
44567 if (arg2 == NULL) SWIG_fail;
44568 temp2 = true;
44569 }
44570 {
44571 PyThreadState* __tstate = wxPyBeginAllowThreads();
44572 (arg1)->SetPath((wxString const &)*arg2);
44573 wxPyEndAllowThreads(__tstate);
44574 if (PyErr_Occurred()) SWIG_fail;
44575 }
44576 resultobj = SWIG_Py_Void();
44577 {
44578 if (temp2)
44579 delete arg2;
44580 }
44581 return resultobj;
44582 fail:
44583 {
44584 if (temp2)
44585 delete arg2;
44586 }
44587 return NULL;
44588 }
44589
44590
44591 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44592 PyObject *resultobj = 0;
44593 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44594 wxString *arg2 = 0 ;
44595 bool result;
44596 void *argp1 = 0 ;
44597 int res1 = 0 ;
44598 bool temp2 = false ;
44599 PyObject * obj0 = 0 ;
44600 PyObject * obj1 = 0 ;
44601 char * kwnames[] = {
44602 (char *) "self",(char *) "path", NULL
44603 };
44604
44605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44607 if (!SWIG_IsOK(res1)) {
44608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44609 }
44610 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44611 {
44612 arg2 = wxString_in_helper(obj1);
44613 if (arg2 == NULL) SWIG_fail;
44614 temp2 = true;
44615 }
44616 {
44617 PyThreadState* __tstate = wxPyBeginAllowThreads();
44618 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44619 wxPyEndAllowThreads(__tstate);
44620 if (PyErr_Occurred()) SWIG_fail;
44621 }
44622 {
44623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44624 }
44625 {
44626 if (temp2)
44627 delete arg2;
44628 }
44629 return resultobj;
44630 fail:
44631 {
44632 if (temp2)
44633 delete arg2;
44634 }
44635 return NULL;
44636 }
44637
44638
44639 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44640 PyObject *resultobj = 0;
44641 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44642 wxString result;
44643 void *argp1 = 0 ;
44644 int res1 = 0 ;
44645 PyObject *swig_obj[1] ;
44646
44647 if (!args) SWIG_fail;
44648 swig_obj[0] = args;
44649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44650 if (!SWIG_IsOK(res1)) {
44651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44652 }
44653 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44654 {
44655 PyThreadState* __tstate = wxPyBeginAllowThreads();
44656 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44657 wxPyEndAllowThreads(__tstate);
44658 if (PyErr_Occurred()) SWIG_fail;
44659 }
44660 {
44661 #if wxUSE_UNICODE
44662 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44663 #else
44664 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44665 #endif
44666 }
44667 return resultobj;
44668 fail:
44669 return NULL;
44670 }
44671
44672
44673 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44674 PyObject *obj;
44675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44676 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44677 return SWIG_Py_Void();
44678 }
44679
44680 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44681 return SWIG_Python_InitShadowInstance(args);
44682 }
44683
44684 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44685 PyObject *resultobj = 0;
44686 wxEventType arg1 ;
44687 wxObject *arg2 = (wxObject *) 0 ;
44688 int arg3 ;
44689 wxString *arg4 = 0 ;
44690 wxFileDirPickerEvent *result = 0 ;
44691 int val1 ;
44692 int ecode1 = 0 ;
44693 void *argp2 = 0 ;
44694 int res2 = 0 ;
44695 int val3 ;
44696 int ecode3 = 0 ;
44697 bool temp4 = false ;
44698 PyObject * obj0 = 0 ;
44699 PyObject * obj1 = 0 ;
44700 PyObject * obj2 = 0 ;
44701 PyObject * obj3 = 0 ;
44702 char * kwnames[] = {
44703 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44704 };
44705
44706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44707 ecode1 = SWIG_AsVal_int(obj0, &val1);
44708 if (!SWIG_IsOK(ecode1)) {
44709 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44710 }
44711 arg1 = static_cast< wxEventType >(val1);
44712 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44713 if (!SWIG_IsOK(res2)) {
44714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44715 }
44716 arg2 = reinterpret_cast< wxObject * >(argp2);
44717 ecode3 = SWIG_AsVal_int(obj2, &val3);
44718 if (!SWIG_IsOK(ecode3)) {
44719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44720 }
44721 arg3 = static_cast< int >(val3);
44722 {
44723 arg4 = wxString_in_helper(obj3);
44724 if (arg4 == NULL) SWIG_fail;
44725 temp4 = true;
44726 }
44727 {
44728 PyThreadState* __tstate = wxPyBeginAllowThreads();
44729 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44730 wxPyEndAllowThreads(__tstate);
44731 if (PyErr_Occurred()) SWIG_fail;
44732 }
44733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44734 {
44735 if (temp4)
44736 delete arg4;
44737 }
44738 return resultobj;
44739 fail:
44740 {
44741 if (temp4)
44742 delete arg4;
44743 }
44744 return NULL;
44745 }
44746
44747
44748 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44749 PyObject *resultobj = 0;
44750 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44751 wxString result;
44752 void *argp1 = 0 ;
44753 int res1 = 0 ;
44754 PyObject *swig_obj[1] ;
44755
44756 if (!args) SWIG_fail;
44757 swig_obj[0] = args;
44758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44759 if (!SWIG_IsOK(res1)) {
44760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44761 }
44762 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44763 {
44764 PyThreadState* __tstate = wxPyBeginAllowThreads();
44765 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44766 wxPyEndAllowThreads(__tstate);
44767 if (PyErr_Occurred()) SWIG_fail;
44768 }
44769 {
44770 #if wxUSE_UNICODE
44771 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44772 #else
44773 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44774 #endif
44775 }
44776 return resultobj;
44777 fail:
44778 return NULL;
44779 }
44780
44781
44782 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44783 PyObject *resultobj = 0;
44784 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44785 wxString *arg2 = 0 ;
44786 void *argp1 = 0 ;
44787 int res1 = 0 ;
44788 bool temp2 = false ;
44789 PyObject * obj0 = 0 ;
44790 PyObject * obj1 = 0 ;
44791 char * kwnames[] = {
44792 (char *) "self",(char *) "p", NULL
44793 };
44794
44795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44797 if (!SWIG_IsOK(res1)) {
44798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44799 }
44800 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44801 {
44802 arg2 = wxString_in_helper(obj1);
44803 if (arg2 == NULL) SWIG_fail;
44804 temp2 = true;
44805 }
44806 {
44807 PyThreadState* __tstate = wxPyBeginAllowThreads();
44808 (arg1)->SetPath((wxString const &)*arg2);
44809 wxPyEndAllowThreads(__tstate);
44810 if (PyErr_Occurred()) SWIG_fail;
44811 }
44812 resultobj = SWIG_Py_Void();
44813 {
44814 if (temp2)
44815 delete arg2;
44816 }
44817 return resultobj;
44818 fail:
44819 {
44820 if (temp2)
44821 delete arg2;
44822 }
44823 return NULL;
44824 }
44825
44826
44827 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44828 PyObject *obj;
44829 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44830 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44831 return SWIG_Py_Void();
44832 }
44833
44834 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44835 return SWIG_Python_InitShadowInstance(args);
44836 }
44837
44838 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44839 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44840 return 1;
44841 }
44842
44843
44844 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44845 PyObject *pyobj = 0;
44846
44847 {
44848 #if wxUSE_UNICODE
44849 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44850 #else
44851 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44852 #endif
44853 }
44854 return pyobj;
44855 }
44856
44857
44858 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44859 PyObject *resultobj = 0;
44860 wxWindow *arg1 = (wxWindow *) 0 ;
44861 int arg2 = (int) -1 ;
44862 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44863 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44864 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44865 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44866 wxSize const &arg5_defvalue = wxDefaultSize ;
44867 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44868 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44869 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44870 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44871 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44872 wxString *arg8 = (wxString *) &arg8_defvalue ;
44873 wxFontPickerCtrl *result = 0 ;
44874 void *argp1 = 0 ;
44875 int res1 = 0 ;
44876 int val2 ;
44877 int ecode2 = 0 ;
44878 void *argp3 = 0 ;
44879 int res3 = 0 ;
44880 wxPoint temp4 ;
44881 wxSize temp5 ;
44882 long val6 ;
44883 int ecode6 = 0 ;
44884 void *argp7 = 0 ;
44885 int res7 = 0 ;
44886 bool temp8 = false ;
44887 PyObject * obj0 = 0 ;
44888 PyObject * obj1 = 0 ;
44889 PyObject * obj2 = 0 ;
44890 PyObject * obj3 = 0 ;
44891 PyObject * obj4 = 0 ;
44892 PyObject * obj5 = 0 ;
44893 PyObject * obj6 = 0 ;
44894 PyObject * obj7 = 0 ;
44895 char * kwnames[] = {
44896 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44897 };
44898
44899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44901 if (!SWIG_IsOK(res1)) {
44902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44903 }
44904 arg1 = reinterpret_cast< wxWindow * >(argp1);
44905 if (obj1) {
44906 ecode2 = SWIG_AsVal_int(obj1, &val2);
44907 if (!SWIG_IsOK(ecode2)) {
44908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44909 }
44910 arg2 = static_cast< int >(val2);
44911 }
44912 if (obj2) {
44913 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44914 if (!SWIG_IsOK(res3)) {
44915 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44916 }
44917 if (!argp3) {
44918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44919 }
44920 arg3 = reinterpret_cast< wxFont * >(argp3);
44921 }
44922 if (obj3) {
44923 {
44924 arg4 = &temp4;
44925 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44926 }
44927 }
44928 if (obj4) {
44929 {
44930 arg5 = &temp5;
44931 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44932 }
44933 }
44934 if (obj5) {
44935 ecode6 = SWIG_AsVal_long(obj5, &val6);
44936 if (!SWIG_IsOK(ecode6)) {
44937 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44938 }
44939 arg6 = static_cast< long >(val6);
44940 }
44941 if (obj6) {
44942 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44943 if (!SWIG_IsOK(res7)) {
44944 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44945 }
44946 if (!argp7) {
44947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44948 }
44949 arg7 = reinterpret_cast< wxValidator * >(argp7);
44950 }
44951 if (obj7) {
44952 {
44953 arg8 = wxString_in_helper(obj7);
44954 if (arg8 == NULL) SWIG_fail;
44955 temp8 = true;
44956 }
44957 }
44958 {
44959 if (!wxPyCheckForApp()) SWIG_fail;
44960 PyThreadState* __tstate = wxPyBeginAllowThreads();
44961 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44962 wxPyEndAllowThreads(__tstate);
44963 if (PyErr_Occurred()) SWIG_fail;
44964 }
44965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44966 {
44967 if (temp8)
44968 delete arg8;
44969 }
44970 return resultobj;
44971 fail:
44972 {
44973 if (temp8)
44974 delete arg8;
44975 }
44976 return NULL;
44977 }
44978
44979
44980 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44981 PyObject *resultobj = 0;
44982 wxFontPickerCtrl *result = 0 ;
44983
44984 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44985 {
44986 if (!wxPyCheckForApp()) SWIG_fail;
44987 PyThreadState* __tstate = wxPyBeginAllowThreads();
44988 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44989 wxPyEndAllowThreads(__tstate);
44990 if (PyErr_Occurred()) SWIG_fail;
44991 }
44992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44993 return resultobj;
44994 fail:
44995 return NULL;
44996 }
44997
44998
44999 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45000 PyObject *resultobj = 0;
45001 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45002 wxWindow *arg2 = (wxWindow *) 0 ;
45003 int arg3 = (int) -1 ;
45004 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
45005 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45006 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45007 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45008 wxSize const &arg6_defvalue = wxDefaultSize ;
45009 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45010 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45011 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45012 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45013 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45014 wxString *arg9 = (wxString *) &arg9_defvalue ;
45015 bool result;
45016 void *argp1 = 0 ;
45017 int res1 = 0 ;
45018 void *argp2 = 0 ;
45019 int res2 = 0 ;
45020 int val3 ;
45021 int ecode3 = 0 ;
45022 void *argp4 = 0 ;
45023 int res4 = 0 ;
45024 wxPoint temp5 ;
45025 wxSize temp6 ;
45026 long val7 ;
45027 int ecode7 = 0 ;
45028 void *argp8 = 0 ;
45029 int res8 = 0 ;
45030 bool temp9 = false ;
45031 PyObject * obj0 = 0 ;
45032 PyObject * obj1 = 0 ;
45033 PyObject * obj2 = 0 ;
45034 PyObject * obj3 = 0 ;
45035 PyObject * obj4 = 0 ;
45036 PyObject * obj5 = 0 ;
45037 PyObject * obj6 = 0 ;
45038 PyObject * obj7 = 0 ;
45039 PyObject * obj8 = 0 ;
45040 char * kwnames[] = {
45041 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45042 };
45043
45044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45046 if (!SWIG_IsOK(res1)) {
45047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45048 }
45049 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45050 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45051 if (!SWIG_IsOK(res2)) {
45052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45053 }
45054 arg2 = reinterpret_cast< wxWindow * >(argp2);
45055 if (obj2) {
45056 ecode3 = SWIG_AsVal_int(obj2, &val3);
45057 if (!SWIG_IsOK(ecode3)) {
45058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45059 }
45060 arg3 = static_cast< int >(val3);
45061 }
45062 if (obj3) {
45063 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45064 if (!SWIG_IsOK(res4)) {
45065 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45066 }
45067 if (!argp4) {
45068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45069 }
45070 arg4 = reinterpret_cast< wxFont * >(argp4);
45071 }
45072 if (obj4) {
45073 {
45074 arg5 = &temp5;
45075 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45076 }
45077 }
45078 if (obj5) {
45079 {
45080 arg6 = &temp6;
45081 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45082 }
45083 }
45084 if (obj6) {
45085 ecode7 = SWIG_AsVal_long(obj6, &val7);
45086 if (!SWIG_IsOK(ecode7)) {
45087 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45088 }
45089 arg7 = static_cast< long >(val7);
45090 }
45091 if (obj7) {
45092 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45093 if (!SWIG_IsOK(res8)) {
45094 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45095 }
45096 if (!argp8) {
45097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45098 }
45099 arg8 = reinterpret_cast< wxValidator * >(argp8);
45100 }
45101 if (obj8) {
45102 {
45103 arg9 = wxString_in_helper(obj8);
45104 if (arg9 == NULL) SWIG_fail;
45105 temp9 = true;
45106 }
45107 }
45108 {
45109 PyThreadState* __tstate = wxPyBeginAllowThreads();
45110 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45111 wxPyEndAllowThreads(__tstate);
45112 if (PyErr_Occurred()) SWIG_fail;
45113 }
45114 {
45115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45116 }
45117 {
45118 if (temp9)
45119 delete arg9;
45120 }
45121 return resultobj;
45122 fail:
45123 {
45124 if (temp9)
45125 delete arg9;
45126 }
45127 return NULL;
45128 }
45129
45130
45131 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45132 PyObject *resultobj = 0;
45133 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45134 wxFont result;
45135 void *argp1 = 0 ;
45136 int res1 = 0 ;
45137 PyObject *swig_obj[1] ;
45138
45139 if (!args) SWIG_fail;
45140 swig_obj[0] = args;
45141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45142 if (!SWIG_IsOK(res1)) {
45143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45144 }
45145 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45146 {
45147 PyThreadState* __tstate = wxPyBeginAllowThreads();
45148 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45149 wxPyEndAllowThreads(__tstate);
45150 if (PyErr_Occurred()) SWIG_fail;
45151 }
45152 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45153 return resultobj;
45154 fail:
45155 return NULL;
45156 }
45157
45158
45159 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45160 PyObject *resultobj = 0;
45161 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45162 wxFont *arg2 = 0 ;
45163 void *argp1 = 0 ;
45164 int res1 = 0 ;
45165 void *argp2 = 0 ;
45166 int res2 = 0 ;
45167 PyObject * obj0 = 0 ;
45168 PyObject * obj1 = 0 ;
45169 char * kwnames[] = {
45170 (char *) "self",(char *) "f", NULL
45171 };
45172
45173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45175 if (!SWIG_IsOK(res1)) {
45176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45177 }
45178 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45179 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45180 if (!SWIG_IsOK(res2)) {
45181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45182 }
45183 if (!argp2) {
45184 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45185 }
45186 arg2 = reinterpret_cast< wxFont * >(argp2);
45187 {
45188 PyThreadState* __tstate = wxPyBeginAllowThreads();
45189 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45190 wxPyEndAllowThreads(__tstate);
45191 if (PyErr_Occurred()) SWIG_fail;
45192 }
45193 resultobj = SWIG_Py_Void();
45194 return resultobj;
45195 fail:
45196 return NULL;
45197 }
45198
45199
45200 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45201 PyObject *resultobj = 0;
45202 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45203 unsigned int arg2 ;
45204 void *argp1 = 0 ;
45205 int res1 = 0 ;
45206 unsigned int val2 ;
45207 int ecode2 = 0 ;
45208 PyObject * obj0 = 0 ;
45209 PyObject * obj1 = 0 ;
45210 char * kwnames[] = {
45211 (char *) "self",(char *) "max", NULL
45212 };
45213
45214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45216 if (!SWIG_IsOK(res1)) {
45217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45218 }
45219 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45220 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45221 if (!SWIG_IsOK(ecode2)) {
45222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45223 }
45224 arg2 = static_cast< unsigned int >(val2);
45225 {
45226 PyThreadState* __tstate = wxPyBeginAllowThreads();
45227 (arg1)->SetMaxPointSize(arg2);
45228 wxPyEndAllowThreads(__tstate);
45229 if (PyErr_Occurred()) SWIG_fail;
45230 }
45231 resultobj = SWIG_Py_Void();
45232 return resultobj;
45233 fail:
45234 return NULL;
45235 }
45236
45237
45238 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45239 PyObject *resultobj = 0;
45240 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45241 unsigned int result;
45242 void *argp1 = 0 ;
45243 int res1 = 0 ;
45244 PyObject *swig_obj[1] ;
45245
45246 if (!args) SWIG_fail;
45247 swig_obj[0] = args;
45248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45249 if (!SWIG_IsOK(res1)) {
45250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45251 }
45252 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45253 {
45254 PyThreadState* __tstate = wxPyBeginAllowThreads();
45255 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45256 wxPyEndAllowThreads(__tstate);
45257 if (PyErr_Occurred()) SWIG_fail;
45258 }
45259 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45260 return resultobj;
45261 fail:
45262 return NULL;
45263 }
45264
45265
45266 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45267 PyObject *obj;
45268 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45269 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45270 return SWIG_Py_Void();
45271 }
45272
45273 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45274 return SWIG_Python_InitShadowInstance(args);
45275 }
45276
45277 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45278 PyObject *resultobj = 0;
45279 wxObject *arg1 = (wxObject *) 0 ;
45280 int arg2 ;
45281 wxFont *arg3 = 0 ;
45282 wxFontPickerEvent *result = 0 ;
45283 void *argp1 = 0 ;
45284 int res1 = 0 ;
45285 int val2 ;
45286 int ecode2 = 0 ;
45287 void *argp3 = 0 ;
45288 int res3 = 0 ;
45289 PyObject * obj0 = 0 ;
45290 PyObject * obj1 = 0 ;
45291 PyObject * obj2 = 0 ;
45292 char * kwnames[] = {
45293 (char *) "generator",(char *) "id",(char *) "f", NULL
45294 };
45295
45296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45298 if (!SWIG_IsOK(res1)) {
45299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45300 }
45301 arg1 = reinterpret_cast< wxObject * >(argp1);
45302 ecode2 = SWIG_AsVal_int(obj1, &val2);
45303 if (!SWIG_IsOK(ecode2)) {
45304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45305 }
45306 arg2 = static_cast< int >(val2);
45307 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45308 if (!SWIG_IsOK(res3)) {
45309 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45310 }
45311 if (!argp3) {
45312 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45313 }
45314 arg3 = reinterpret_cast< wxFont * >(argp3);
45315 {
45316 PyThreadState* __tstate = wxPyBeginAllowThreads();
45317 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45318 wxPyEndAllowThreads(__tstate);
45319 if (PyErr_Occurred()) SWIG_fail;
45320 }
45321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45322 return resultobj;
45323 fail:
45324 return NULL;
45325 }
45326
45327
45328 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45329 PyObject *resultobj = 0;
45330 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45331 wxFont result;
45332 void *argp1 = 0 ;
45333 int res1 = 0 ;
45334 PyObject *swig_obj[1] ;
45335
45336 if (!args) SWIG_fail;
45337 swig_obj[0] = args;
45338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45339 if (!SWIG_IsOK(res1)) {
45340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45341 }
45342 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45343 {
45344 PyThreadState* __tstate = wxPyBeginAllowThreads();
45345 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45346 wxPyEndAllowThreads(__tstate);
45347 if (PyErr_Occurred()) SWIG_fail;
45348 }
45349 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45350 return resultobj;
45351 fail:
45352 return NULL;
45353 }
45354
45355
45356 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45357 PyObject *resultobj = 0;
45358 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45359 wxFont *arg2 = 0 ;
45360 void *argp1 = 0 ;
45361 int res1 = 0 ;
45362 void *argp2 = 0 ;
45363 int res2 = 0 ;
45364 PyObject * obj0 = 0 ;
45365 PyObject * obj1 = 0 ;
45366 char * kwnames[] = {
45367 (char *) "self",(char *) "c", NULL
45368 };
45369
45370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45372 if (!SWIG_IsOK(res1)) {
45373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45374 }
45375 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45376 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45377 if (!SWIG_IsOK(res2)) {
45378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45379 }
45380 if (!argp2) {
45381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45382 }
45383 arg2 = reinterpret_cast< wxFont * >(argp2);
45384 {
45385 PyThreadState* __tstate = wxPyBeginAllowThreads();
45386 (arg1)->SetFont((wxFont const &)*arg2);
45387 wxPyEndAllowThreads(__tstate);
45388 if (PyErr_Occurred()) SWIG_fail;
45389 }
45390 resultobj = SWIG_Py_Void();
45391 return resultobj;
45392 fail:
45393 return NULL;
45394 }
45395
45396
45397 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45398 PyObject *obj;
45399 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45400 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45401 return SWIG_Py_Void();
45402 }
45403
45404 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45405 return SWIG_Python_InitShadowInstance(args);
45406 }
45407
45408 static PyMethodDef SwigMethods[] = {
45409 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45410 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45411 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45413 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45414 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45415 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45416 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45417 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45418 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45419 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45420 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45421 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45422 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45423 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45424 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45425 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45426 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45427 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45428 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45430 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45431 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45432 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45433 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45434 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45435 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45436 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45437 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45438 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45439 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45440 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45441 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45442 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45443 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45444 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45445 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45446 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45447 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45448 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45449 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45450 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45451 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45452 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45453 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45454 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45455 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45456 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45457 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45458 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45459 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45461 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45462 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45463 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45464 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45465 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45466 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45467 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
45469 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45470 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45471 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45472 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45473 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45474 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45475 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45476 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45477 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45478 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45479 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45480 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45481 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45482 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45483 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45484 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45485 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45486 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45487 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45488 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45489 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45490 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45491 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45492 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45493 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45494 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
45495 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45496 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45497 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45498 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45499 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45500 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45501 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45502 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45503 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45504 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45505 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45506 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45507 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45508 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45509 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45510 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45511 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45512 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45513 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45514 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45515 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45516 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45517 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45518 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45519 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45520 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45522 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45523 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45524 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45525 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45526 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45527 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45528 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45529 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45532 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45533 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45535 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45536 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45537 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45538 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45539 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45541 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45542 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45543 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45544 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45545 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45546 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45547 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45548 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45549 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45550 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45551 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45552 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45553 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45554 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45555 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45556 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45557 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45558 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45559 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45560 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45561 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45562 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45563 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
45564 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45565 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45566 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45567 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45568 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45569 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45570 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45571 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45572 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45573 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45574 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45575 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45576 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45577 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45578 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45579 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45580 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45581 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45582 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45583 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45584 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45585 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45586 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45587 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45588 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45589 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45590 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45591 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45592 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45593 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45594 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45595 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45596 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45597 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45598 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45599 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45600 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45601 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45602 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45603 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45604 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45605 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45606 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45607 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45608 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45609 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45610 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45611 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45612 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45613 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45614 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45615 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45616 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45617 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45618 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45619 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45620 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
45621 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
45622 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45623 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45624 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45625 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45626 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45627 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45628 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45629 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45630 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45631 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45632 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45633 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45634 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45635 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45636 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45637 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45638 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45639 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45640 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45641 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45642 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45643 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45644 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45645 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45646 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45647 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45648 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45649 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45650 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45651 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45652 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
45653 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
45654 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45655 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45656 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45657 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45658 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45659 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45660 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45661 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45662 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45663 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45664 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45665 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45666 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45667 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45668 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45669 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45670 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45671 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45672 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45673 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45674 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45675 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45676 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45677 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45678 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45679 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45680 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45681 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45682 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45683 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45684 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45685 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45686 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45687 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45688 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45689 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45690 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45691 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45692 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45693 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45694 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45695 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45696 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45697 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45698 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45699 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45700 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45701 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45702 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45703 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45704 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45705 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45706 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45707 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45708 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45709 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45710 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45711 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45712 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45713 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45714 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45715 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45716 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45717 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45718 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45719 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45720 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45721 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45722 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45723 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45724 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45725 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45726 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45727 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45728 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45729 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45730 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45731 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45732 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45733 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45734 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45735 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45736 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45737 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45738 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45739 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45740 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45741 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45742 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45743 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45744 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45745 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45746 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45747 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45748 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45749 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45750 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45751 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45752 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45753 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45754 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45755 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45756 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45757 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45758 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45760 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45761 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45762 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45763 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45764 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45765 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45766 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45767 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45768 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45769 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45770 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45771 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45772 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45773 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45774 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45775 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45776 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45777 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45778 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45779 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45780 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45781 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45782 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45783 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45784 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45785 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45786 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45787 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45788 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45789 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45790 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45791 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45792 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
45793 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45794 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
45795 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45796 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
45797 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
45798 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45799 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45800 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45801 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45802 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45803 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45804 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45805 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45806 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45807 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45808 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45809 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45810 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45811 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45812 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45814 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45815 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45817 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45818 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45819 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45820 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
45821 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45822 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45823 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45824 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45825 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45826 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45827 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45828 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45829 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45830 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45831 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45832 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45833 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45834 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45835 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45836 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45837 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45838 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45839 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45840 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45841 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45842 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45843 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45844 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45845 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45846 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45847 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45848 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45850 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45851 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45852 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45853 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45854 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45855 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45856 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45857 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45858 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45859 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45860 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45861 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45862 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45863 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45864 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45865 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45866 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45867 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45868 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45869 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45870 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45871 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45872 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45873 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45874 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45875 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45876 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45877 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45878 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45879 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45880 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45881 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45882 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45883 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45884 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45885 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45886 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45887 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45888 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45889 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45890 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45891 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45892 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45893 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45894 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45895 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45896 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45897 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45898 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45899 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45900 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45901 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45902 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45903 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45904 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45905 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45906 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45907 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45908 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45909 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45910 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45911 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45912 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45913 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45914 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45915 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45916 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45917 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45918 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45919 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45920 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45921 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45923 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45924 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45925 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45926 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45927 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45928 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45929 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45930 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45931 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45932 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45933 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45934 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45935 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45936 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45937 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45938 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45939 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45940 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45941 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45942 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45943 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45944 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45945 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45946 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45947 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45948 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45949 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45950 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45951 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45952 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45953 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45954 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45955 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45956 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45957 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45958 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45959 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45960 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45961 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45962 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45963 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45964 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45966 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45967 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45968 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45969 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45970 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45971 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45972 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45974 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45975 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45976 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45977 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45978 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45979 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45980 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45981 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45983 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45984 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45985 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45986 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45987 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45988 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45989 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45990 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45991 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45992 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45993 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45994 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45995 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45996 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45997 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45998 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45999 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
46000 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
46001 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
46002 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
46003 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
46004 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
46005 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
46006 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
46007 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
46008 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
46009 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
46010 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
46011 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
46012 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
46013 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
46014 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
46015 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
46016 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
46017 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
46018 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
46019 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
46020 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
46021 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46022 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
46023 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
46024 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
46025 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
46026 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
46027 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
46028 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
46029 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
46030 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
46031 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
46032 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
46033 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
46034 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
46035 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
46036 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
46037 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
46038 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
46039 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
46040 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
46041 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
46042 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
46043 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
46044 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
46045 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
46046 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46047 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
46048 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
46049 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46050 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
46051 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46052 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46053 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46054 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46055 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46057 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
46058 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
46059 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
46060 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46061 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46062 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46063 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46064 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46065 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46066 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46067 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46068 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46069 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46070 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46071 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46072 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
46073 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46074 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
46075 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
46076 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
46077 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
46078 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
46079 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46080 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
46081 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46082 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46083 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46084 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46085 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46086 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
46087 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
46088 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
46089 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
46090 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
46091 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
46092 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
46093 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46094 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
46095 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
46096 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46098 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46099 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46100 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46101 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
46102 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46103 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46105 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46106 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
46107 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46108 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
46109 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46110 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46111 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
46112 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46113 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46114 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46115 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46116 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46117 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46118 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
46119 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
46120 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
46122 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
46123 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
46124 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
46125 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46126 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46127 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
46128 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
46129 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46130 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
46131 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46132 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46133 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46134 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
46135 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
46136 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
46137 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
46138 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
46139 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46140 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46141 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
46142 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
46143 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
46144 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
46145 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46146 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
46147 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
46148 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46149 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
46150 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46151 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
46152 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
46153 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
46154 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
46155 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
46156 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46157 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
46158 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
46159 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
46160 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46161 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
46162 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
46163 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46164 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
46165 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46166 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
46167 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46168 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46169 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46170 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46171 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46172 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46173 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46174 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46175 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46176 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46177 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46178 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46179 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
46180 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46181 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
46182 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
46183 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46184 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46185 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46186 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46187 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46188 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46189 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46190 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46191 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46192 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46193 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46194 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46195 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46196 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46197 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46198 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46199 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
46200 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
46201 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46202 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46203 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46204 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46205 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46206 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46207 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46208 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
46209 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
46210 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
46211 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
46212 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
46213 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46214 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46215 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46216 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46217 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46218 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46219 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46220 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46221 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46222 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46223 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46224 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46225 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46226 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46227 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46228 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46229 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46230 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
46231 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46232 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
46233 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46234 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46235 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46236 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46237 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46238 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46239 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46240 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46241 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46242 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46243 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46244 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46245 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46246 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46247 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46248 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46249 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
46250 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
46251 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46252 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46253 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
46254 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46255 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46256 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46257 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46258 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46259 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
46260 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
46261 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46262 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46263 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46264 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46265 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46266 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46267 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46268 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46269 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46270 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46271 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46272 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46273 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46274 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46275 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46276 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46277 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46278 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46279 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46280 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46281 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46282 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46283 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46284 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46285 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46286 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46287 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46288 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46289 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46290 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46291 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46292 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46293 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46294 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46295 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46296 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46297 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46298 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46299 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46300 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46301 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46302 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46303 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46304 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46305 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46306 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46307 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46308 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46309 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46310 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
46311 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46312 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
46313 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46314 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46315 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46316 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46317 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46318 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46319 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46320 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46321 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46322 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46323 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
46324 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
46325 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46326 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46327 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46328 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46329 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46330 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46331 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46332 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46333 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46334 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46335 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46336 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46337 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46338 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46339 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46340 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46341 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46342 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46343 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46344 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46345 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46346 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46347 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46348 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46349 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46350 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46351 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46352 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46353 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46354 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46355 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46356 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46357 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46358 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46359 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46360 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46361 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46362 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46363 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46364 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46365 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46366 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
46367 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46368 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46369 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46370 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46371 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46372 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46373 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46374 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46375 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46376 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46377 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46378 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46379 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46380 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46381 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46382 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46383 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46384 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46385 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46386 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
46387 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46388 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46389 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46390 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46391 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
46392 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46393 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
46394 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46395 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46396 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46397 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46398 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46399 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46400 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46401 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46402 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46403 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46404 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46405 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46406 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46407 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46408 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46409 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46410 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46411 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46412 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46413 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46414 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46415 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46416 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46417 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46418 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46419 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46420 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
46421 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46422 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46423 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46424 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46425 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46426 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46427 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46428 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46429 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
46430 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46431 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46432 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46433 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46434 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46435 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46436 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46437 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46438 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46439 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46440 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46441 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46442 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46443 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46444 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46445 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46446 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46447 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46448 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46449 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46450 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
46451 { NULL, NULL, 0, NULL }
46452 };
46453
46454
46455 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46456
46457 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46458 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46459 }
46460 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46461 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46462 }
46463 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46464 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46465 }
46466 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46467 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46468 }
46469 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46470 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46471 }
46472 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46473 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46474 }
46475 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46476 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46477 }
46478 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46479 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46480 }
46481 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46482 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46483 }
46484 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46485 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46486 }
46487 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46488 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46489 }
46490 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46491 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46492 }
46493 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46494 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46495 }
46496 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46497 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46498 }
46499 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46500 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46501 }
46502 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
46503 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
46504 }
46505 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46506 return (void *)((wxEvent *) ((wxPyEvent *) x));
46507 }
46508 static void *_p_wxListEventTo_p_wxEvent(void *x) {
46509 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46510 }
46511 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46512 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46513 }
46514 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46515 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46516 }
46517 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46518 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46519 }
46520 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46521 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46522 }
46523 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46524 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46525 }
46526 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46527 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46528 }
46529 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46530 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46531 }
46532 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46533 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46534 }
46535 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46536 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46537 }
46538 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46539 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46540 }
46541 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46542 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46543 }
46544 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46545 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46546 }
46547 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46548 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46549 }
46550 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46551 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46552 }
46553 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46554 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46555 }
46556 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46557 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46558 }
46559 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46560 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46561 }
46562 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46563 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46564 }
46565 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46566 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46567 }
46568 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46569 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46570 }
46571 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46572 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46573 }
46574 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46575 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46576 }
46577 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46578 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46579 }
46580 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46581 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46582 }
46583 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46584 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46585 }
46586 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46587 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46588 }
46589 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46590 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46591 }
46592 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46593 return (void *)((wxEvent *) ((wxShowEvent *) x));
46594 }
46595 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46596 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46597 }
46598 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46599 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46600 }
46601 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46602 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46603 }
46604 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46605 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46606 }
46607 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46608 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46609 }
46610 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46611 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46612 }
46613 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46614 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46615 }
46616 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46617 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46618 }
46619 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46620 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46621 }
46622 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46623 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46624 }
46625 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46626 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46627 }
46628 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46629 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46630 }
46631 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46632 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46633 }
46634 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46635 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46636 }
46637 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46638 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46639 }
46640 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46641 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46642 }
46643 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46644 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46645 }
46646 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46647 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46648 }
46649 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46650 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46651 }
46652 static void *_p_wxToolBarTo_p_wxControl(void *x) {
46653 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46654 }
46655 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46656 return (void *)((wxControl *) ((wxPickerBase *) x));
46657 }
46658 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46659 return (void *)((wxControl *) ((wxToggleButton *) x));
46660 }
46661 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46662 return (void *)((wxControl *) ((wxRadioButton *) x));
46663 }
46664 static void *_p_wxToolbookTo_p_wxControl(void *x) {
46665 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46666 }
46667 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46668 return (void *)((wxControl *) ((wxToolBarBase *) x));
46669 }
46670 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46671 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46672 }
46673 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46674 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46675 }
46676 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46677 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46678 }
46679 static void *_p_wxPyControlTo_p_wxControl(void *x) {
46680 return (void *)((wxControl *) ((wxPyControl *) x));
46681 }
46682 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46683 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46684 }
46685 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46686 return (void *)((wxControl *) ((wxScrollBar *) x));
46687 }
46688 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46689 return (void *)((wxControl *) ((wxControlWithItems *) x));
46690 }
46691 static void *_p_wxGaugeTo_p_wxControl(void *x) {
46692 return (void *)((wxControl *) ((wxGauge *) x));
46693 }
46694 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46695 return (void *)((wxControl *) ((wxStaticLine *) x));
46696 }
46697 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46698 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46699 }
46700 static void *_p_wxListbookTo_p_wxControl(void *x) {
46701 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46702 }
46703 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46704 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46705 }
46706 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46707 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46708 }
46709 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46710 return (void *)((wxControl *) ((wxCheckBox *) x));
46711 }
46712 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46713 return (void *)((wxControl *) ((wxRadioBox *) x));
46714 }
46715 static void *_p_wxChoiceTo_p_wxControl(void *x) {
46716 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46717 }
46718 static void *_p_wxListBoxTo_p_wxControl(void *x) {
46719 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46720 }
46721 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46722 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46723 }
46724 static void *_p_wxListViewTo_p_wxControl(void *x) {
46725 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46726 }
46727 static void *_p_wxNotebookTo_p_wxControl(void *x) {
46728 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46729 }
46730 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46731 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46732 }
46733 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46734 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46735 }
46736 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46737 return (void *)((wxControl *) ((wxStaticText *) x));
46738 }
46739 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46740 return (void *)((wxControl *) ((wxStaticBox *) x));
46741 }
46742 static void *_p_wxSliderTo_p_wxControl(void *x) {
46743 return (void *)((wxControl *) ((wxSlider *) x));
46744 }
46745 static void *_p_wxTreebookTo_p_wxControl(void *x) {
46746 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46747 }
46748 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46749 return (void *)((wxControl *) ((wxSpinButton *) x));
46750 }
46751 static void *_p_wxButtonTo_p_wxControl(void *x) {
46752 return (void *)((wxControl *) ((wxButton *) x));
46753 }
46754 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46755 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46756 }
46757 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46758 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46759 }
46760 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46761 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46762 }
46763 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46764 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46765 }
46766 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46767 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46768 }
46769 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46770 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46771 }
46772 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46773 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46774 }
46775 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46776 return (void *)((wxControl *) ((wxTextCtrl *) x));
46777 }
46778 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46779 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46780 }
46781 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
46782 return (void *)((wxChoice *) ((wxComboBox *) x));
46783 }
46784 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46785 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46786 }
46787 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46788 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46789 }
46790 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46791 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46792 }
46793 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46794 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46795 }
46796 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46797 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46798 }
46799 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46800 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46801 }
46802 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46803 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46804 }
46805 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46806 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46807 }
46808 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46809 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46810 }
46811 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46812 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46813 }
46814 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46815 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46816 }
46817 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46818 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46819 }
46820 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46821 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46822 }
46823 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46824 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46825 }
46826 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46827 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46828 }
46829 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46830 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46831 }
46832 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46833 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46834 }
46835 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46836 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46837 }
46838 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46839 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46840 }
46841 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46842 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46843 }
46844 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46845 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46846 }
46847 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46848 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46849 }
46850 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46851 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46852 }
46853 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46854 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46855 }
46856 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46857 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46858 }
46859 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46860 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46861 }
46862 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46863 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46864 }
46865 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46866 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46867 }
46868 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46869 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46870 }
46871 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46872 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46873 }
46874 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46875 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46876 }
46877 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46878 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46879 }
46880 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46881 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46882 }
46883 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46884 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46885 }
46886 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46887 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46888 }
46889 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46890 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46891 }
46892 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46893 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46894 }
46895 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46896 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46897 }
46898 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46899 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46900 }
46901 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46902 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46903 }
46904 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46905 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46906 }
46907 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46908 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46909 }
46910 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46911 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46912 }
46913 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46914 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46915 }
46916 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46917 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46918 }
46919 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46920 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46921 }
46922 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46923 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46924 }
46925 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46926 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46927 }
46928 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46929 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46930 }
46931 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46932 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46933 }
46934 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46935 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46936 }
46937 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46938 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46939 }
46940 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46941 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46942 }
46943 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46944 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46945 }
46946 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46947 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46948 }
46949 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46950 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46951 }
46952 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46953 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46954 }
46955 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46956 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46957 }
46958 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46959 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46960 }
46961 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46962 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46963 }
46964 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46965 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46966 }
46967 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46968 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46969 }
46970 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46971 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46972 }
46973 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46974 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46975 }
46976 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46977 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46978 }
46979 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46980 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46981 }
46982 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46983 return (void *)((wxButton *) ((wxBitmapButton *) x));
46984 }
46985 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46986 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46987 }
46988 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46989 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46990 }
46991 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46992 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46993 }
46994 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46995 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46996 }
46997 static void *_p_wxToolbookTo_p_wxObject(void *x) {
46998 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46999 }
47000 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
47001 return (void *)((wxObject *) ((wxSizerItem *) x));
47002 }
47003 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
47004 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
47005 }
47006 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
47007 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
47008 }
47009 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
47010 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
47011 }
47012 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
47013 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
47014 }
47015 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
47016 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
47017 }
47018 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
47019 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
47020 }
47021 static void *_p_wxSizerTo_p_wxObject(void *x) {
47022 return (void *)((wxObject *) ((wxSizer *) x));
47023 }
47024 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
47025 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
47026 }
47027 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
47028 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
47029 }
47030 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
47031 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47032 }
47033 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
47034 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
47035 }
47036 static void *_p_wxEventTo_p_wxObject(void *x) {
47037 return (void *)((wxObject *) ((wxEvent *) x));
47038 }
47039 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
47040 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
47041 }
47042 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
47043 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
47044 }
47045 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
47046 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
47047 }
47048 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
47049 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47050 }
47051 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
47052 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
47053 }
47054 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
47055 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47056 }
47057 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
47058 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47059 }
47060 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
47061 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
47062 }
47063 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
47064 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
47065 }
47066 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
47067 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
47068 }
47069 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
47070 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
47071 }
47072 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
47073 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
47074 }
47075 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
47076 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47077 }
47078 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
47079 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
47080 }
47081 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
47082 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
47083 }
47084 static void *_p_wxControlTo_p_wxObject(void *x) {
47085 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
47086 }
47087 static void *_p_wxPyControlTo_p_wxObject(void *x) {
47088 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
47089 }
47090 static void *_p_wxGaugeTo_p_wxObject(void *x) {
47091 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
47092 }
47093 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
47094 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
47095 }
47096 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
47097 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
47098 }
47099 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
47100 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47101 }
47102 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
47103 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
47104 }
47105 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
47106 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
47107 }
47108 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
47109 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47110 }
47111 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
47112 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
47113 }
47114 static void *_p_wxChoiceTo_p_wxObject(void *x) {
47115 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47116 }
47117 static void *_p_wxFSFileTo_p_wxObject(void *x) {
47118 return (void *)((wxObject *) ((wxFSFile *) x));
47119 }
47120 static void *_p_wxPySizerTo_p_wxObject(void *x) {
47121 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
47122 }
47123 static void *_p_wxTreebookTo_p_wxObject(void *x) {
47124 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47125 }
47126 static void *_p_wxListViewTo_p_wxObject(void *x) {
47127 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47128 }
47129 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
47130 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
47131 }
47132 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
47133 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47134 }
47135 static void *_p_wxNotebookTo_p_wxObject(void *x) {
47136 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47137 }
47138 static void *_p_wxPyEventTo_p_wxObject(void *x) {
47139 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
47140 }
47141 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
47142 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
47143 }
47144 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
47145 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47146 }
47147 static void *_p_wxListbookTo_p_wxObject(void *x) {
47148 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47149 }
47150 static void *_p_wxShowEventTo_p_wxObject(void *x) {
47151 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
47152 }
47153 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
47154 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47155 }
47156 static void *_p_wxSliderTo_p_wxObject(void *x) {
47157 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
47158 }
47159 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
47160 return (void *)((wxObject *) ((wxMenuItem *) x));
47161 }
47162 static void *_p_wxDateEventTo_p_wxObject(void *x) {
47163 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
47164 }
47165 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
47166 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
47167 }
47168 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
47169 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
47170 }
47171 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
47172 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
47173 }
47174 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
47175 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
47176 }
47177 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
47178 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
47179 }
47180 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
47181 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
47182 }
47183 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
47184 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
47185 }
47186 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
47187 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
47188 }
47189 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
47190 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
47191 }
47192 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
47193 return (void *)((wxObject *) ((wxContextHelp *) x));
47194 }
47195 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
47196 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47197 }
47198 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47199 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47200 }
47201 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47202 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47203 }
47204 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47205 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47206 }
47207 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47208 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47209 }
47210 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47211 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47212 }
47213 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47214 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47215 }
47216 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47217 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47218 }
47219 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47220 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47221 }
47222 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47223 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47224 }
47225 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47226 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47227 }
47228 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47229 return (void *)((wxObject *) ((wxImageHandler *) x));
47230 }
47231 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47232 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47233 }
47234 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47235 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47236 }
47237 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47238 return (void *)((wxObject *) ((wxEvtHandler *) x));
47239 }
47240 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
47241 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
47242 }
47243 static void *_p_wxListEventTo_p_wxObject(void *x) {
47244 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47245 }
47246 static void *_p_wxListBoxTo_p_wxObject(void *x) {
47247 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47248 }
47249 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47250 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47251 }
47252 static void *_p_wxButtonTo_p_wxObject(void *x) {
47253 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47254 }
47255 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47256 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47257 }
47258 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47259 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47260 }
47261 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47262 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47263 }
47264 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47265 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47266 }
47267 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47268 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47269 }
47270 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47271 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47272 }
47273 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47274 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47275 }
47276 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47277 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47278 }
47279 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47280 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47281 }
47282 static void *_p_wxListItemTo_p_wxObject(void *x) {
47283 return (void *)((wxObject *) ((wxListItem *) x));
47284 }
47285 static void *_p_wxImageTo_p_wxObject(void *x) {
47286 return (void *)((wxObject *) ((wxImage *) x));
47287 }
47288 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47289 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47290 }
47291 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47292 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47293 }
47294 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47295 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47296 }
47297 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47298 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47299 }
47300 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47301 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47302 }
47303 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47304 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47305 }
47306 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47307 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47308 }
47309 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47310 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47311 }
47312 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47313 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47314 }
47315 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47316 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47317 }
47318 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47319 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47320 }
47321 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47322 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47323 }
47324 static void *_p_wxWindowTo_p_wxObject(void *x) {
47325 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47326 }
47327 static void *_p_wxMenuTo_p_wxObject(void *x) {
47328 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47329 }
47330 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47331 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47332 }
47333 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47334 return (void *)((wxObject *) ((wxFileSystem *) x));
47335 }
47336 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47337 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47338 }
47339 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47340 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47341 }
47342 static void *_p_wxPyAppTo_p_wxObject(void *x) {
47343 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47344 }
47345 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47346 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47347 }
47348 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47349 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47350 }
47351 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47352 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47353 }
47354 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47355 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47356 }
47357 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47358 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47359 }
47360 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47361 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47362 }
47363 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47364 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47365 }
47366 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47367 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47368 }
47369 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47370 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47371 }
47372 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47373 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47374 }
47375 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47376 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47377 }
47378 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47379 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47380 }
47381 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47382 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47383 }
47384 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47385 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47386 }
47387 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47388 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47389 }
47390 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47391 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47392 }
47393 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47394 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47395 }
47396 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47397 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47398 }
47399 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47400 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47401 }
47402 static void *_p_wxToolBarTo_p_wxObject(void *x) {
47403 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47404 }
47405 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47406 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47407 }
47408 static void *_p_wxValidatorTo_p_wxObject(void *x) {
47409 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47410 }
47411 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47412 return (void *)((wxWindow *) ((wxMenuBar *) x));
47413 }
47414 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47415 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47416 }
47417 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47418 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47419 }
47420 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47421 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47422 }
47423 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47424 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47425 }
47426 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47427 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47428 }
47429 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47430 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47431 }
47432 static void *_p_wxControlTo_p_wxWindow(void *x) {
47433 return (void *)((wxWindow *) ((wxControl *) x));
47434 }
47435 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47436 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47437 }
47438 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47439 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47440 }
47441 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47442 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47443 }
47444 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47445 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47446 }
47447 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47448 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47449 }
47450 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47451 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47452 }
47453 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47454 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47455 }
47456 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47457 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47458 }
47459 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47460 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47461 }
47462 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47463 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47464 }
47465 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47466 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47467 }
47468 static void *_p_wxListbookTo_p_wxWindow(void *x) {
47469 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47470 }
47471 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47472 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47473 }
47474 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47475 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47476 }
47477 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47478 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47479 }
47480 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47481 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47482 }
47483 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47484 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47485 }
47486 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47487 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47488 }
47489 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47490 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47491 }
47492 static void *_p_wxListViewTo_p_wxWindow(void *x) {
47493 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47494 }
47495 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47496 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47497 }
47498 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47499 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47500 }
47501 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47502 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47503 }
47504 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47505 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47506 }
47507 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47508 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47509 }
47510 static void *_p_wxSliderTo_p_wxWindow(void *x) {
47511 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47512 }
47513 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47514 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47515 }
47516 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47517 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47518 }
47519 static void *_p_wxButtonTo_p_wxWindow(void *x) {
47520 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47521 }
47522 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47523 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47524 }
47525 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47526 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47527 }
47528 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47529 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47530 }
47531 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47532 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47533 }
47534 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47535 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47536 }
47537 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47538 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47539 }
47540 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47541 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47542 }
47543 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47544 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47545 }
47546 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47547 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47548 }
47549 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47550 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47551 }
47552 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47553 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47554 }
47555 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47556 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47557 }
47558 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47559 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47560 }
47561 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47562 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47563 }
47564 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47565 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47566 }
47567 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47568 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47569 }
47570 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47571 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47572 }
47573 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47574 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47575 }
47576 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47577 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47578 }
47579 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47580 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47581 }
47582 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47583 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47584 }
47585 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47586 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47587 }
47588 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47589 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47590 }
47591 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47592 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47593 }
47594 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47595 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47596 }
47597 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47598 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47599 }
47600 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47601 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47602 }
47603 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47604 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47605 }
47606 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47607 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47608 }
47609 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47610 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47611 }
47612 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47613 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47614 }
47615 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47616 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47617 }
47618 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47619 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47620 }
47621 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47622 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47623 }
47624 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47625 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47626 }
47627 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47628 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47629 }
47630 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47631 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47632 }
47633 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47634 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47635 }
47636 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
47637 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
47638 }
47639 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47640 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47641 }
47642 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47643 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47644 }
47645 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47646 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47647 }
47648 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47649 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47650 }
47651 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47652 return (void *)((wxValidator *) ((wxPyValidator *) x));
47653 }
47654 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47655 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47656 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};
47657 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47658 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47659 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47660 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47661 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47662 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47663 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47664 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47665 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47666 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47667 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47668 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47669 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47670 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47671 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47672 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47673 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47674 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47675 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
47676 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47677 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
47678 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47679 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47680 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
47681 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
47682 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47683 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47684 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47685 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47686 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47687 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47688 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47689 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47690 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47691 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47692 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47693 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47694 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47695 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47696 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47697 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
47698 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
47699 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47700 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47701 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47702 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47703 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47704 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47705 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47706 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
47707 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
47708 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47709 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47710 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47711 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47712 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47713 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
47714 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
47715 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47716 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47717 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47718 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47719 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47720 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47721 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47722 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47723 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47724 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47725 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47726 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47727 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47728 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47729 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47730 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
47731 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47732 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
47733 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
47734 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47735 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
47736 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47737 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47738 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47739 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47740 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
47741 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47742 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
47743 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47744 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47745 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47746 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47747 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47748 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47749 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47750 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47751 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47752 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47753 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47754 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47755 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47756 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47757 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47758 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47759 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47760 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
47761 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
47762 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
47763 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47764 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47765 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47766 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47767 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47768 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47769 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47770 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47771 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47772 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
47773 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47774 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47775 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47776 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47777 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
47778 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47779 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47780 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47781 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
47782 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
47783 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
47784 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47785 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47786 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47787 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47788 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47789 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47790 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
47791 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
47792 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47793 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47794 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47795 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47796 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47797 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47798 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47799 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47800 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47801 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47802 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47803 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47804 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47805 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47806 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47807 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47808 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47809 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47810 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47811 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47812 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47813 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47814 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47815 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47816 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47817 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47818 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47819 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47820 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
47821 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47822 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47823 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47824 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47825 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47826 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47827 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
47828 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
47829
47830 static swig_type_info *swig_type_initial[] = {
47831 &_swigt__p_bool,
47832 &_swigt__p_char,
47833 &_swigt__p_form_ops_t,
47834 &_swigt__p_int,
47835 &_swigt__p_long,
47836 &_swigt__p_unsigned_char,
47837 &_swigt__p_unsigned_int,
47838 &_swigt__p_unsigned_long,
47839 &_swigt__p_void,
47840 &_swigt__p_wxANIHandler,
47841 &_swigt__p_wxAcceleratorTable,
47842 &_swigt__p_wxActivateEvent,
47843 &_swigt__p_wxArrayInt,
47844 &_swigt__p_wxArrayString,
47845 &_swigt__p_wxBMPHandler,
47846 &_swigt__p_wxBitmap,
47847 &_swigt__p_wxBitmapButton,
47848 &_swigt__p_wxBookCtrlBase,
47849 &_swigt__p_wxBookCtrlBaseEvent,
47850 &_swigt__p_wxBoxSizer,
47851 &_swigt__p_wxButton,
47852 &_swigt__p_wxCURHandler,
47853 &_swigt__p_wxCheckBox,
47854 &_swigt__p_wxCheckListBox,
47855 &_swigt__p_wxChildFocusEvent,
47856 &_swigt__p_wxChoice,
47857 &_swigt__p_wxChoicebook,
47858 &_swigt__p_wxChoicebookEvent,
47859 &_swigt__p_wxClipboardTextEvent,
47860 &_swigt__p_wxCloseEvent,
47861 &_swigt__p_wxColour,
47862 &_swigt__p_wxColourPickerCtrl,
47863 &_swigt__p_wxColourPickerEvent,
47864 &_swigt__p_wxComboBox,
47865 &_swigt__p_wxCommandEvent,
47866 &_swigt__p_wxContextHelp,
47867 &_swigt__p_wxContextHelpButton,
47868 &_swigt__p_wxContextMenuEvent,
47869 &_swigt__p_wxControl,
47870 &_swigt__p_wxControlWithItems,
47871 &_swigt__p_wxCursor,
47872 &_swigt__p_wxDC,
47873 &_swigt__p_wxDateEvent,
47874 &_swigt__p_wxDatePickerCtrl,
47875 &_swigt__p_wxDateTime,
47876 &_swigt__p_wxDirFilterListCtrl,
47877 &_swigt__p_wxDirPickerCtrl,
47878 &_swigt__p_wxDisplayChangedEvent,
47879 &_swigt__p_wxDropFilesEvent,
47880 &_swigt__p_wxDuplexMode,
47881 &_swigt__p_wxEraseEvent,
47882 &_swigt__p_wxEvent,
47883 &_swigt__p_wxEvtHandler,
47884 &_swigt__p_wxFSFile,
47885 &_swigt__p_wxFileDirPickerEvent,
47886 &_swigt__p_wxFilePickerCtrl,
47887 &_swigt__p_wxFileSystem,
47888 &_swigt__p_wxFlexGridSizer,
47889 &_swigt__p_wxFocusEvent,
47890 &_swigt__p_wxFont,
47891 &_swigt__p_wxFontPickerCtrl,
47892 &_swigt__p_wxFontPickerEvent,
47893 &_swigt__p_wxGBSizerItem,
47894 &_swigt__p_wxGIFHandler,
47895 &_swigt__p_wxGauge,
47896 &_swigt__p_wxGenericDirCtrl,
47897 &_swigt__p_wxGenericDragImage,
47898 &_swigt__p_wxGridBagSizer,
47899 &_swigt__p_wxGridSizer,
47900 &_swigt__p_wxHelpEvent,
47901 &_swigt__p_wxHelpProvider,
47902 &_swigt__p_wxHyperlinkCtrl,
47903 &_swigt__p_wxHyperlinkEvent,
47904 &_swigt__p_wxICOHandler,
47905 &_swigt__p_wxIcon,
47906 &_swigt__p_wxIconizeEvent,
47907 &_swigt__p_wxIdleEvent,
47908 &_swigt__p_wxImage,
47909 &_swigt__p_wxImageHandler,
47910 &_swigt__p_wxImageList,
47911 &_swigt__p_wxIndividualLayoutConstraint,
47912 &_swigt__p_wxInitDialogEvent,
47913 &_swigt__p_wxItemContainer,
47914 &_swigt__p_wxJPEGHandler,
47915 &_swigt__p_wxKeyEvent,
47916 &_swigt__p_wxLayoutConstraints,
47917 &_swigt__p_wxListBox,
47918 &_swigt__p_wxListEvent,
47919 &_swigt__p_wxListItem,
47920 &_swigt__p_wxListItemAttr,
47921 &_swigt__p_wxListView,
47922 &_swigt__p_wxListbook,
47923 &_swigt__p_wxListbookEvent,
47924 &_swigt__p_wxMaximizeEvent,
47925 &_swigt__p_wxMemoryDC,
47926 &_swigt__p_wxMenu,
47927 &_swigt__p_wxMenuBar,
47928 &_swigt__p_wxMenuEvent,
47929 &_swigt__p_wxMenuItem,
47930 &_swigt__p_wxMouseCaptureChangedEvent,
47931 &_swigt__p_wxMouseCaptureLostEvent,
47932 &_swigt__p_wxMouseEvent,
47933 &_swigt__p_wxMoveEvent,
47934 &_swigt__p_wxNavigationKeyEvent,
47935 &_swigt__p_wxNcPaintEvent,
47936 &_swigt__p_wxNotebook,
47937 &_swigt__p_wxNotebookEvent,
47938 &_swigt__p_wxNotifyEvent,
47939 &_swigt__p_wxObject,
47940 &_swigt__p_wxPCXHandler,
47941 &_swigt__p_wxPNGHandler,
47942 &_swigt__p_wxPNMHandler,
47943 &_swigt__p_wxPaintEvent,
47944 &_swigt__p_wxPaletteChangedEvent,
47945 &_swigt__p_wxPaperSize,
47946 &_swigt__p_wxPickerBase,
47947 &_swigt__p_wxPoint,
47948 &_swigt__p_wxPyApp,
47949 &_swigt__p_wxPyCommandEvent,
47950 &_swigt__p_wxPyControl,
47951 &_swigt__p_wxPyEvent,
47952 &_swigt__p_wxPyImageHandler,
47953 &_swigt__p_wxPyListCtrl,
47954 &_swigt__p_wxPySizer,
47955 &_swigt__p_wxPyTreeCtrl,
47956 &_swigt__p_wxPyTreeItemData,
47957 &_swigt__p_wxPyValidator,
47958 &_swigt__p_wxQueryNewPaletteEvent,
47959 &_swigt__p_wxRadioBox,
47960 &_swigt__p_wxRadioButton,
47961 &_swigt__p_wxRect,
47962 &_swigt__p_wxScrollBar,
47963 &_swigt__p_wxScrollEvent,
47964 &_swigt__p_wxScrollWinEvent,
47965 &_swigt__p_wxSetCursorEvent,
47966 &_swigt__p_wxShowEvent,
47967 &_swigt__p_wxSimpleHelpProvider,
47968 &_swigt__p_wxSize,
47969 &_swigt__p_wxSizeEvent,
47970 &_swigt__p_wxSizer,
47971 &_swigt__p_wxSizerItem,
47972 &_swigt__p_wxSlider,
47973 &_swigt__p_wxSpinButton,
47974 &_swigt__p_wxSpinCtrl,
47975 &_swigt__p_wxSpinEvent,
47976 &_swigt__p_wxStaticBitmap,
47977 &_swigt__p_wxStaticBox,
47978 &_swigt__p_wxStaticBoxSizer,
47979 &_swigt__p_wxStaticLine,
47980 &_swigt__p_wxStaticText,
47981 &_swigt__p_wxStdDialogButtonSizer,
47982 &_swigt__p_wxString,
47983 &_swigt__p_wxSysColourChangedEvent,
47984 &_swigt__p_wxTIFFHandler,
47985 &_swigt__p_wxTextAttr,
47986 &_swigt__p_wxTextCtrl,
47987 &_swigt__p_wxTextUrlEvent,
47988 &_swigt__p_wxToggleButton,
47989 &_swigt__p_wxToolBar,
47990 &_swigt__p_wxToolBarBase,
47991 &_swigt__p_wxToolBarToolBase,
47992 &_swigt__p_wxToolbook,
47993 &_swigt__p_wxToolbookEvent,
47994 &_swigt__p_wxTreeEvent,
47995 &_swigt__p_wxTreeItemId,
47996 &_swigt__p_wxTreebook,
47997 &_swigt__p_wxTreebookEvent,
47998 &_swigt__p_wxUpdateUIEvent,
47999 &_swigt__p_wxValidator,
48000 &_swigt__p_wxVisualAttributes,
48001 &_swigt__p_wxWindow,
48002 &_swigt__p_wxWindowBase,
48003 &_swigt__p_wxWindowCreateEvent,
48004 &_swigt__p_wxWindowDestroyEvent,
48005 &_swigt__p_wxXPMHandler,
48006 };
48007
48008 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
48009 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
48010 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
48011 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
48012 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
48013 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
48014 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
48015 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
48016 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
48017 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
48018 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
48019 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
48020 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}};
48021 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}};
48022 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}};
48023 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}};
48024 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
48025 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
48026 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxChoice, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
48027 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
48028 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48029 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
48030 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48031 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48032 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
48033 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
48034 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
48035 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
48036 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
48037 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48038 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48039 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
48040 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
48041 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
48042 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
48043 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
48044 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
48045 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
48046 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
48047 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
48048 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
48049 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48050 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
48051 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
48052 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48053 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
48054 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48055 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
48056 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
48057 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
48058 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
48059 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
48060 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
48061 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
48062 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48063 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48064 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
48065 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48066 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
48067 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
48068 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48069 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48070 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48071 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48072 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48073 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48074 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
48075 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48076 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
48077 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48078 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
48079 static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
48080 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
48081 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
48082 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
48083 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
48084 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
48085 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48086 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48087 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
48088 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48089 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48090 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
48091 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
48092 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
48093 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
48094 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}};
48095 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
48096 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
48097 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
48098 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
48099 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}};
48100 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48101 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}};
48102 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
48103 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
48104 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
48105 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
48106 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
48107 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48108 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
48109 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
48110 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
48111 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48112 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}};
48113 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
48114 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48115 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48116 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
48117 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48118 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48119 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
48120 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
48121 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48122 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48123 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
48124 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
48125 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
48126 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
48127 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
48128 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
48129 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
48130 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
48131 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
48132 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
48133 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
48134 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
48135 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
48136 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
48137 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
48138 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
48139 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
48140 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
48141 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
48142 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
48143 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
48144 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
48145 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}};
48146 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
48147 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
48148 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}};
48149 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
48150 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
48151 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
48152 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
48153 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
48154 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
48155 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
48156 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
48157 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
48158 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
48159 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
48160 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
48161 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
48162 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
48163 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
48164 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
48165 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
48166 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
48167 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
48168 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
48169 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
48170 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
48171 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}};
48172 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
48173 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
48174 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48175 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
48176 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
48177 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
48178 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48179 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}};
48180 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
48181 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
48182 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
48183
48184 static swig_cast_info *swig_cast_initial[] = {
48185 _swigc__p_bool,
48186 _swigc__p_char,
48187 _swigc__p_form_ops_t,
48188 _swigc__p_int,
48189 _swigc__p_long,
48190 _swigc__p_unsigned_char,
48191 _swigc__p_unsigned_int,
48192 _swigc__p_unsigned_long,
48193 _swigc__p_void,
48194 _swigc__p_wxANIHandler,
48195 _swigc__p_wxAcceleratorTable,
48196 _swigc__p_wxActivateEvent,
48197 _swigc__p_wxArrayInt,
48198 _swigc__p_wxArrayString,
48199 _swigc__p_wxBMPHandler,
48200 _swigc__p_wxBitmap,
48201 _swigc__p_wxBitmapButton,
48202 _swigc__p_wxBookCtrlBase,
48203 _swigc__p_wxBookCtrlBaseEvent,
48204 _swigc__p_wxBoxSizer,
48205 _swigc__p_wxButton,
48206 _swigc__p_wxCURHandler,
48207 _swigc__p_wxCheckBox,
48208 _swigc__p_wxCheckListBox,
48209 _swigc__p_wxChildFocusEvent,
48210 _swigc__p_wxChoice,
48211 _swigc__p_wxChoicebook,
48212 _swigc__p_wxChoicebookEvent,
48213 _swigc__p_wxClipboardTextEvent,
48214 _swigc__p_wxCloseEvent,
48215 _swigc__p_wxColour,
48216 _swigc__p_wxColourPickerCtrl,
48217 _swigc__p_wxColourPickerEvent,
48218 _swigc__p_wxComboBox,
48219 _swigc__p_wxCommandEvent,
48220 _swigc__p_wxContextHelp,
48221 _swigc__p_wxContextHelpButton,
48222 _swigc__p_wxContextMenuEvent,
48223 _swigc__p_wxControl,
48224 _swigc__p_wxControlWithItems,
48225 _swigc__p_wxCursor,
48226 _swigc__p_wxDC,
48227 _swigc__p_wxDateEvent,
48228 _swigc__p_wxDatePickerCtrl,
48229 _swigc__p_wxDateTime,
48230 _swigc__p_wxDirFilterListCtrl,
48231 _swigc__p_wxDirPickerCtrl,
48232 _swigc__p_wxDisplayChangedEvent,
48233 _swigc__p_wxDropFilesEvent,
48234 _swigc__p_wxDuplexMode,
48235 _swigc__p_wxEraseEvent,
48236 _swigc__p_wxEvent,
48237 _swigc__p_wxEvtHandler,
48238 _swigc__p_wxFSFile,
48239 _swigc__p_wxFileDirPickerEvent,
48240 _swigc__p_wxFilePickerCtrl,
48241 _swigc__p_wxFileSystem,
48242 _swigc__p_wxFlexGridSizer,
48243 _swigc__p_wxFocusEvent,
48244 _swigc__p_wxFont,
48245 _swigc__p_wxFontPickerCtrl,
48246 _swigc__p_wxFontPickerEvent,
48247 _swigc__p_wxGBSizerItem,
48248 _swigc__p_wxGIFHandler,
48249 _swigc__p_wxGauge,
48250 _swigc__p_wxGenericDirCtrl,
48251 _swigc__p_wxGenericDragImage,
48252 _swigc__p_wxGridBagSizer,
48253 _swigc__p_wxGridSizer,
48254 _swigc__p_wxHelpEvent,
48255 _swigc__p_wxHelpProvider,
48256 _swigc__p_wxHyperlinkCtrl,
48257 _swigc__p_wxHyperlinkEvent,
48258 _swigc__p_wxICOHandler,
48259 _swigc__p_wxIcon,
48260 _swigc__p_wxIconizeEvent,
48261 _swigc__p_wxIdleEvent,
48262 _swigc__p_wxImage,
48263 _swigc__p_wxImageHandler,
48264 _swigc__p_wxImageList,
48265 _swigc__p_wxIndividualLayoutConstraint,
48266 _swigc__p_wxInitDialogEvent,
48267 _swigc__p_wxItemContainer,
48268 _swigc__p_wxJPEGHandler,
48269 _swigc__p_wxKeyEvent,
48270 _swigc__p_wxLayoutConstraints,
48271 _swigc__p_wxListBox,
48272 _swigc__p_wxListEvent,
48273 _swigc__p_wxListItem,
48274 _swigc__p_wxListItemAttr,
48275 _swigc__p_wxListView,
48276 _swigc__p_wxListbook,
48277 _swigc__p_wxListbookEvent,
48278 _swigc__p_wxMaximizeEvent,
48279 _swigc__p_wxMemoryDC,
48280 _swigc__p_wxMenu,
48281 _swigc__p_wxMenuBar,
48282 _swigc__p_wxMenuEvent,
48283 _swigc__p_wxMenuItem,
48284 _swigc__p_wxMouseCaptureChangedEvent,
48285 _swigc__p_wxMouseCaptureLostEvent,
48286 _swigc__p_wxMouseEvent,
48287 _swigc__p_wxMoveEvent,
48288 _swigc__p_wxNavigationKeyEvent,
48289 _swigc__p_wxNcPaintEvent,
48290 _swigc__p_wxNotebook,
48291 _swigc__p_wxNotebookEvent,
48292 _swigc__p_wxNotifyEvent,
48293 _swigc__p_wxObject,
48294 _swigc__p_wxPCXHandler,
48295 _swigc__p_wxPNGHandler,
48296 _swigc__p_wxPNMHandler,
48297 _swigc__p_wxPaintEvent,
48298 _swigc__p_wxPaletteChangedEvent,
48299 _swigc__p_wxPaperSize,
48300 _swigc__p_wxPickerBase,
48301 _swigc__p_wxPoint,
48302 _swigc__p_wxPyApp,
48303 _swigc__p_wxPyCommandEvent,
48304 _swigc__p_wxPyControl,
48305 _swigc__p_wxPyEvent,
48306 _swigc__p_wxPyImageHandler,
48307 _swigc__p_wxPyListCtrl,
48308 _swigc__p_wxPySizer,
48309 _swigc__p_wxPyTreeCtrl,
48310 _swigc__p_wxPyTreeItemData,
48311 _swigc__p_wxPyValidator,
48312 _swigc__p_wxQueryNewPaletteEvent,
48313 _swigc__p_wxRadioBox,
48314 _swigc__p_wxRadioButton,
48315 _swigc__p_wxRect,
48316 _swigc__p_wxScrollBar,
48317 _swigc__p_wxScrollEvent,
48318 _swigc__p_wxScrollWinEvent,
48319 _swigc__p_wxSetCursorEvent,
48320 _swigc__p_wxShowEvent,
48321 _swigc__p_wxSimpleHelpProvider,
48322 _swigc__p_wxSize,
48323 _swigc__p_wxSizeEvent,
48324 _swigc__p_wxSizer,
48325 _swigc__p_wxSizerItem,
48326 _swigc__p_wxSlider,
48327 _swigc__p_wxSpinButton,
48328 _swigc__p_wxSpinCtrl,
48329 _swigc__p_wxSpinEvent,
48330 _swigc__p_wxStaticBitmap,
48331 _swigc__p_wxStaticBox,
48332 _swigc__p_wxStaticBoxSizer,
48333 _swigc__p_wxStaticLine,
48334 _swigc__p_wxStaticText,
48335 _swigc__p_wxStdDialogButtonSizer,
48336 _swigc__p_wxString,
48337 _swigc__p_wxSysColourChangedEvent,
48338 _swigc__p_wxTIFFHandler,
48339 _swigc__p_wxTextAttr,
48340 _swigc__p_wxTextCtrl,
48341 _swigc__p_wxTextUrlEvent,
48342 _swigc__p_wxToggleButton,
48343 _swigc__p_wxToolBar,
48344 _swigc__p_wxToolBarBase,
48345 _swigc__p_wxToolBarToolBase,
48346 _swigc__p_wxToolbook,
48347 _swigc__p_wxToolbookEvent,
48348 _swigc__p_wxTreeEvent,
48349 _swigc__p_wxTreeItemId,
48350 _swigc__p_wxTreebook,
48351 _swigc__p_wxTreebookEvent,
48352 _swigc__p_wxUpdateUIEvent,
48353 _swigc__p_wxValidator,
48354 _swigc__p_wxVisualAttributes,
48355 _swigc__p_wxWindow,
48356 _swigc__p_wxWindowBase,
48357 _swigc__p_wxWindowCreateEvent,
48358 _swigc__p_wxWindowDestroyEvent,
48359 _swigc__p_wxXPMHandler,
48360 };
48361
48362
48363 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48364
48365 static swig_const_info swig_const_table[] = {
48366 {0, 0, 0, 0.0, 0, 0}};
48367
48368 #ifdef __cplusplus
48369 }
48370 #endif
48371 /* -----------------------------------------------------------------------------
48372 * Type initialization:
48373 * This problem is tough by the requirement that no dynamic
48374 * memory is used. Also, since swig_type_info structures store pointers to
48375 * swig_cast_info structures and swig_cast_info structures store pointers back
48376 * to swig_type_info structures, we need some lookup code at initialization.
48377 * The idea is that swig generates all the structures that are needed.
48378 * The runtime then collects these partially filled structures.
48379 * The SWIG_InitializeModule function takes these initial arrays out of
48380 * swig_module, and does all the lookup, filling in the swig_module.types
48381 * array with the correct data and linking the correct swig_cast_info
48382 * structures together.
48383 *
48384 * The generated swig_type_info structures are assigned staticly to an initial
48385 * array. We just loop though that array, and handle each type individually.
48386 * First we lookup if this type has been already loaded, and if so, use the
48387 * loaded structure instead of the generated one. Then we have to fill in the
48388 * cast linked list. The cast data is initially stored in something like a
48389 * two-dimensional array. Each row corresponds to a type (there are the same
48390 * number of rows as there are in the swig_type_initial array). Each entry in
48391 * a column is one of the swig_cast_info structures for that type.
48392 * The cast_initial array is actually an array of arrays, because each row has
48393 * a variable number of columns. So to actually build the cast linked list,
48394 * we find the array of casts associated with the type, and loop through it
48395 * adding the casts to the list. The one last trick we need to do is making
48396 * sure the type pointer in the swig_cast_info struct is correct.
48397 *
48398 * First off, we lookup the cast->type name to see if it is already loaded.
48399 * There are three cases to handle:
48400 * 1) If the cast->type has already been loaded AND the type we are adding
48401 * casting info to has not been loaded (it is in this module), THEN we
48402 * replace the cast->type pointer with the type pointer that has already
48403 * been loaded.
48404 * 2) If BOTH types (the one we are adding casting info to, and the
48405 * cast->type) are loaded, THEN the cast info has already been loaded by
48406 * the previous module so we just ignore it.
48407 * 3) Finally, if cast->type has not already been loaded, then we add that
48408 * swig_cast_info to the linked list (because the cast->type) pointer will
48409 * be correct.
48410 * ----------------------------------------------------------------------------- */
48411
48412 #ifdef __cplusplus
48413 extern "C" {
48414 #if 0
48415 } /* c-mode */
48416 #endif
48417 #endif
48418
48419 #if 0
48420 #define SWIGRUNTIME_DEBUG
48421 #endif
48422
48423 SWIGRUNTIME void
48424 SWIG_InitializeModule(void *clientdata) {
48425 size_t i;
48426 swig_module_info *module_head;
48427 static int init_run = 0;
48428
48429 clientdata = clientdata;
48430
48431 if (init_run) return;
48432 init_run = 1;
48433
48434 /* Initialize the swig_module */
48435 swig_module.type_initial = swig_type_initial;
48436 swig_module.cast_initial = swig_cast_initial;
48437
48438 /* Try and load any already created modules */
48439 module_head = SWIG_GetModule(clientdata);
48440 if (module_head) {
48441 swig_module.next = module_head->next;
48442 module_head->next = &swig_module;
48443 } else {
48444 /* This is the first module loaded */
48445 swig_module.next = &swig_module;
48446 SWIG_SetModule(clientdata, &swig_module);
48447 }
48448
48449 /* Now work on filling in swig_module.types */
48450 #ifdef SWIGRUNTIME_DEBUG
48451 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48452 #endif
48453 for (i = 0; i < swig_module.size; ++i) {
48454 swig_type_info *type = 0;
48455 swig_type_info *ret;
48456 swig_cast_info *cast;
48457
48458 #ifdef SWIGRUNTIME_DEBUG
48459 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48460 #endif
48461
48462 /* if there is another module already loaded */
48463 if (swig_module.next != &swig_module) {
48464 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
48465 }
48466 if (type) {
48467 /* Overwrite clientdata field */
48468 #ifdef SWIGRUNTIME_DEBUG
48469 printf("SWIG_InitializeModule: found type %s\n", type->name);
48470 #endif
48471 if (swig_module.type_initial[i]->clientdata) {
48472 type->clientdata = swig_module.type_initial[i]->clientdata;
48473 #ifdef SWIGRUNTIME_DEBUG
48474 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48475 #endif
48476 }
48477 } else {
48478 type = swig_module.type_initial[i];
48479 }
48480
48481 /* Insert casting types */
48482 cast = swig_module.cast_initial[i];
48483 while (cast->type) {
48484 /* Don't need to add information already in the list */
48485 ret = 0;
48486 #ifdef SWIGRUNTIME_DEBUG
48487 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48488 #endif
48489 if (swig_module.next != &swig_module) {
48490 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48491 #ifdef SWIGRUNTIME_DEBUG
48492 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48493 #endif
48494 }
48495 if (ret) {
48496 if (type == swig_module.type_initial[i]) {
48497 #ifdef SWIGRUNTIME_DEBUG
48498 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48499 #endif
48500 cast->type = ret;
48501 ret = 0;
48502 } else {
48503 /* Check for casting already in the list */
48504 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48505 #ifdef SWIGRUNTIME_DEBUG
48506 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48507 #endif
48508 if (!ocast) ret = 0;
48509 }
48510 }
48511
48512 if (!ret) {
48513 #ifdef SWIGRUNTIME_DEBUG
48514 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48515 #endif
48516 if (type->cast) {
48517 type->cast->prev = cast;
48518 cast->next = type->cast;
48519 }
48520 type->cast = cast;
48521 }
48522 cast++;
48523 }
48524 /* Set entry in modules->types array equal to the type */
48525 swig_module.types[i] = type;
48526 }
48527 swig_module.types[i] = 0;
48528
48529 #ifdef SWIGRUNTIME_DEBUG
48530 printf("**** SWIG_InitializeModule: Cast List ******\n");
48531 for (i = 0; i < swig_module.size; ++i) {
48532 int j = 0;
48533 swig_cast_info *cast = swig_module.cast_initial[i];
48534 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48535 while (cast->type) {
48536 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48537 cast++;
48538 ++j;
48539 }
48540 printf("---- Total casts: %d\n",j);
48541 }
48542 printf("**** SWIG_InitializeModule: Cast List ******\n");
48543 #endif
48544 }
48545
48546 /* This function will propagate the clientdata field of type to
48547 * any new swig_type_info structures that have been added into the list
48548 * of equivalent types. It is like calling
48549 * SWIG_TypeClientData(type, clientdata) a second time.
48550 */
48551 SWIGRUNTIME void
48552 SWIG_PropagateClientData(void) {
48553 size_t i;
48554 swig_cast_info *equiv;
48555 static int init_run = 0;
48556
48557 if (init_run) return;
48558 init_run = 1;
48559
48560 for (i = 0; i < swig_module.size; i++) {
48561 if (swig_module.types[i]->clientdata) {
48562 equiv = swig_module.types[i]->cast;
48563 while (equiv) {
48564 if (!equiv->converter) {
48565 if (equiv->type && !equiv->type->clientdata)
48566 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48567 }
48568 equiv = equiv->next;
48569 }
48570 }
48571 }
48572 }
48573
48574 #ifdef __cplusplus
48575 #if 0
48576 {
48577 /* c-mode */
48578 #endif
48579 }
48580 #endif
48581
48582
48583
48584 #ifdef __cplusplus
48585 extern "C" {
48586 #endif
48587
48588 /* Python-specific SWIG API */
48589 #define SWIG_newvarlink() SWIG_Python_newvarlink()
48590 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48591 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48592
48593 /* -----------------------------------------------------------------------------
48594 * global variable support code.
48595 * ----------------------------------------------------------------------------- */
48596
48597 typedef struct swig_globalvar {
48598 char *name; /* Name of global variable */
48599 PyObject *(*get_attr)(void); /* Return the current value */
48600 int (*set_attr)(PyObject *); /* Set the value */
48601 struct swig_globalvar *next;
48602 } swig_globalvar;
48603
48604 typedef struct swig_varlinkobject {
48605 PyObject_HEAD
48606 swig_globalvar *vars;
48607 } swig_varlinkobject;
48608
48609 SWIGINTERN PyObject *
48610 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48611 return PyString_FromString("<Swig global variables>");
48612 }
48613
48614 SWIGINTERN PyObject *
48615 swig_varlink_str(swig_varlinkobject *v) {
48616 PyObject *str = PyString_FromString("(");
48617 swig_globalvar *var;
48618 for (var = v->vars; var; var=var->next) {
48619 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48620 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48621 }
48622 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48623 return str;
48624 }
48625
48626 SWIGINTERN int
48627 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48628 PyObject *str = swig_varlink_str(v);
48629 fprintf(fp,"Swig global variables ");
48630 fprintf(fp,"%s\n", PyString_AsString(str));
48631 Py_DECREF(str);
48632 return 0;
48633 }
48634
48635 SWIGINTERN void
48636 swig_varlink_dealloc(swig_varlinkobject *v) {
48637 swig_globalvar *var = v->vars;
48638 while (var) {
48639 swig_globalvar *n = var->next;
48640 free(var->name);
48641 free(var);
48642 var = n;
48643 }
48644 }
48645
48646 SWIGINTERN PyObject *
48647 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48648 PyObject *res = NULL;
48649 swig_globalvar *var = v->vars;
48650 while (var) {
48651 if (strcmp(var->name,n) == 0) {
48652 res = (*var->get_attr)();
48653 break;
48654 }
48655 var = var->next;
48656 }
48657 if (res == NULL && !PyErr_Occurred()) {
48658 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48659 }
48660 return res;
48661 }
48662
48663 SWIGINTERN int
48664 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48665 int res = 1;
48666 swig_globalvar *var = v->vars;
48667 while (var) {
48668 if (strcmp(var->name,n) == 0) {
48669 res = (*var->set_attr)(p);
48670 break;
48671 }
48672 var = var->next;
48673 }
48674 if (res == 1 && !PyErr_Occurred()) {
48675 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48676 }
48677 return res;
48678 }
48679
48680 SWIGINTERN PyTypeObject*
48681 swig_varlink_type(void) {
48682 static char varlink__doc__[] = "Swig var link object";
48683 static PyTypeObject varlink_type;
48684 static int type_init = 0;
48685 if (!type_init) {
48686 const PyTypeObject tmp
48687 = {
48688 PyObject_HEAD_INIT(NULL)
48689 0, /* Number of items in variable part (ob_size) */
48690 (char *)"swigvarlink", /* Type name (tp_name) */
48691 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48692 0, /* Itemsize (tp_itemsize) */
48693 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48694 (printfunc) swig_varlink_print, /* Print (tp_print) */
48695 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48696 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48697 0, /* tp_compare */
48698 (reprfunc) swig_varlink_repr, /* tp_repr */
48699 0, /* tp_as_number */
48700 0, /* tp_as_sequence */
48701 0, /* tp_as_mapping */
48702 0, /* tp_hash */
48703 0, /* tp_call */
48704 (reprfunc)swig_varlink_str, /* tp_str */
48705 0, /* tp_getattro */
48706 0, /* tp_setattro */
48707 0, /* tp_as_buffer */
48708 0, /* tp_flags */
48709 varlink__doc__, /* tp_doc */
48710 0, /* tp_traverse */
48711 0, /* tp_clear */
48712 0, /* tp_richcompare */
48713 0, /* tp_weaklistoffset */
48714 #if PY_VERSION_HEX >= 0x02020000
48715 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48716 #endif
48717 #if PY_VERSION_HEX >= 0x02030000
48718 0, /* tp_del */
48719 #endif
48720 #ifdef COUNT_ALLOCS
48721 0,0,0,0 /* tp_alloc -> tp_next */
48722 #endif
48723 };
48724 varlink_type = tmp;
48725 varlink_type.ob_type = &PyType_Type;
48726 type_init = 1;
48727 }
48728 return &varlink_type;
48729 }
48730
48731 /* Create a variable linking object for use later */
48732 SWIGINTERN PyObject *
48733 SWIG_Python_newvarlink(void) {
48734 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48735 if (result) {
48736 result->vars = 0;
48737 }
48738 return ((PyObject*) result);
48739 }
48740
48741 SWIGINTERN void
48742 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48743 swig_varlinkobject *v = (swig_varlinkobject *) p;
48744 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48745 if (gv) {
48746 size_t size = strlen(name)+1;
48747 gv->name = (char *)malloc(size);
48748 if (gv->name) {
48749 strncpy(gv->name,name,size);
48750 gv->get_attr = get_attr;
48751 gv->set_attr = set_attr;
48752 gv->next = v->vars;
48753 }
48754 }
48755 v->vars = gv;
48756 }
48757
48758 SWIGINTERN PyObject *
48759 SWIG_globals() {
48760 static PyObject *_SWIG_globals = 0;
48761 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48762 return _SWIG_globals;
48763 }
48764
48765 /* -----------------------------------------------------------------------------
48766 * constants/methods manipulation
48767 * ----------------------------------------------------------------------------- */
48768
48769 /* Install Constants */
48770 SWIGINTERN void
48771 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48772 PyObject *obj = 0;
48773 size_t i;
48774 for (i = 0; constants[i].type; ++i) {
48775 switch(constants[i].type) {
48776 case SWIG_PY_POINTER:
48777 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48778 break;
48779 case SWIG_PY_BINARY:
48780 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48781 break;
48782 default:
48783 obj = 0;
48784 break;
48785 }
48786 if (obj) {
48787 PyDict_SetItemString(d, constants[i].name, obj);
48788 Py_DECREF(obj);
48789 }
48790 }
48791 }
48792
48793 /* -----------------------------------------------------------------------------*/
48794 /* Fix SwigMethods to carry the callback ptrs when needed */
48795 /* -----------------------------------------------------------------------------*/
48796
48797 SWIGINTERN void
48798 SWIG_Python_FixMethods(PyMethodDef *methods,
48799 swig_const_info *const_table,
48800 swig_type_info **types,
48801 swig_type_info **types_initial) {
48802 size_t i;
48803 for (i = 0; methods[i].ml_name; ++i) {
48804 const char *c = methods[i].ml_doc;
48805 if (c && (c = strstr(c, "swig_ptr: "))) {
48806 int j;
48807 swig_const_info *ci = 0;
48808 const char *name = c + 10;
48809 for (j = 0; const_table[j].type; ++j) {
48810 if (strncmp(const_table[j].name, name,
48811 strlen(const_table[j].name)) == 0) {
48812 ci = &(const_table[j]);
48813 break;
48814 }
48815 }
48816 if (ci) {
48817 size_t shift = (ci->ptype) - types;
48818 swig_type_info *ty = types_initial[shift];
48819 size_t ldoc = (c - methods[i].ml_doc);
48820 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48821 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48822 if (ndoc) {
48823 char *buff = ndoc;
48824 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48825 if (ptr) {
48826 strncpy(buff, methods[i].ml_doc, ldoc);
48827 buff += ldoc;
48828 strncpy(buff, "swig_ptr: ", 10);
48829 buff += 10;
48830 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48831 methods[i].ml_doc = ndoc;
48832 }
48833 }
48834 }
48835 }
48836 }
48837 }
48838
48839 #ifdef __cplusplus
48840 }
48841 #endif
48842
48843 /* -----------------------------------------------------------------------------*
48844 * Partial Init method
48845 * -----------------------------------------------------------------------------*/
48846
48847 #ifdef __cplusplus
48848 extern "C"
48849 #endif
48850 SWIGEXPORT void SWIG_init(void) {
48851 PyObject *m, *d;
48852
48853 /* Fix SwigMethods to carry the callback ptrs when needed */
48854 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48855
48856 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48857 d = PyModule_GetDict(m);
48858
48859 SWIG_InitializeModule(0);
48860 SWIG_InstallConstants(d,swig_const_table);
48861
48862
48863 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48864 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48865 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48866 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48867 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48868 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48869 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48870 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48871 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48872 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48873 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48874 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48875 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48876 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48877 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48878 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48879 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48880 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48881 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48882 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48883 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48884 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
48885 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48886 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48887 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48888 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48889 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48890 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48891 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48892 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48893 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48894 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48895 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48896 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48897 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48898 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48899 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48900 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48901 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48902 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48903 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48904 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48905 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48906 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48907 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
48908 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48909 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48910 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48911 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48912 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48913 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48914 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48915 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48916 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48917 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48918 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48919 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48920 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48921 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48922 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48923 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48924 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48925 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48926 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48927 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48928 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48929 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48930 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48931 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48932 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48933 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48934 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48935 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48936 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48937 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48938 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48939 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48940 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48941 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48942 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48943 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48944 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48945 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48946 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48947 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48948 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48949 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48950 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48951 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48952 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48953 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48954 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48955 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48956 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48957 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48958 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48959 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48960 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48961 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48962 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48963 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48964 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48965 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48966 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48967 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48968 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48969 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48970 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
48971 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
48972 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48973 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48974 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48975 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48976 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
48977 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48978 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48979 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48980 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48981 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48982 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48983 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48984 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48985 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48986 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48987 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
48988 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
48989 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48990 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48991 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48992 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48993 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48994 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48995 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48996 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48997 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48998 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48999 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
49000 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
49001 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
49002 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
49003 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
49004 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
49005 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
49006 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
49007 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
49008 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
49009 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
49010 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
49011 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
49012 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
49013 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
49014 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
49015 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
49016 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
49017 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
49018 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
49019 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
49020 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
49021 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
49022 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
49023 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
49024 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
49025 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
49026 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
49027 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
49028 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
49029 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
49030 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
49031 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
49032 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
49033 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
49034 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
49035 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
49036 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
49037 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
49038 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
49039 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
49040 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
49041 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
49042 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
49043 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
49044 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
49045 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
49046 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
49047 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
49048 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
49049 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
49050 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
49051 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
49052 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
49053 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
49054 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
49055 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
49056 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
49057 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
49058 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
49059 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
49060 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
49061 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
49062 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
49063 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
49064 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
49065 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
49066 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
49067 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
49068 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
49069 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
49070 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
49071 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
49072 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
49073 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
49074 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
49075 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
49076 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
49077 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
49078 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
49079 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
49080 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
49081 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
49082 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
49083 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
49084 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
49085 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
49086 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
49087 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
49088 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
49089 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
49090 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
49091 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
49092 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
49093 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
49094 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
49095 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
49096 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
49097 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
49098 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
49099 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
49100 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
49101 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
49102 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
49103 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
49104 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
49105 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
49106 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
49107 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
49108 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
49109 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
49110 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
49111 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
49112 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
49113 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
49114 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
49115 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
49116 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
49117 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
49118
49119 // Map renamed classes back to their common name for OOR
49120 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
49121
49122 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
49123 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
49124 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
49125 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
49126 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
49127 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
49128 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
49129 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
49130 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
49131 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
49132 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
49133 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
49134 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
49135 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
49136 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
49137 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
49138 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
49139 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
49140 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
49141 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
49142 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
49143 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
49144 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
49145 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
49146 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
49147 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
49148 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
49149 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
49150 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
49151 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
49152 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
49153 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
49154 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
49155 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
49156 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
49157 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
49158 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
49159 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
49160 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
49161 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
49162 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
49163 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
49164 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
49165 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
49166 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
49167 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
49168 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
49169 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
49170 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
49171 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
49172 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
49173 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
49174 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
49175 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
49176 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
49177 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
49178
49179 // Map renamed classes back to their common name for OOR
49180 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
49181 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
49182
49183 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
49184 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
49185 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
49186 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
49187 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
49188 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
49189 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
49190 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
49191 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
49192 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
49193 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
49194
49195 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
49196
49197 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
49198 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
49199 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
49200 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
49201 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
49202 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
49203 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
49204 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
49205 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
49206 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
49207 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
49208 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
49209 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
49210 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
49211 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
49212 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
49213 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
49214 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
49215 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
49216 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
49217 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
49218 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
49219 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
49220 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
49221 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
49222 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49223 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49224 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49225 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49226 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49227 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49228 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49229 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49230 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49231 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49232 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49233 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49234 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49235 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49236 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
49237 }
49238