]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_bool swig_types[0]
2463 #define SWIGTYPE_p_char swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_long swig_types[4]
2467 #define SWIGTYPE_p_unsigned_char swig_types[5]
2468 #define SWIGTYPE_p_unsigned_int swig_types[6]
2469 #define SWIGTYPE_p_unsigned_long swig_types[7]
2470 #define SWIGTYPE_p_void swig_types[8]
2471 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2472 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2473 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2474 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2475 #define SWIGTYPE_p_wxArrayString swig_types[13]
2476 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2477 #define SWIGTYPE_p_wxBitmap swig_types[15]
2478 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2479 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2480 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2482 #define SWIGTYPE_p_wxButton swig_types[20]
2483 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2484 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2485 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2486 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2487 #define SWIGTYPE_p_wxChoice swig_types[25]
2488 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2489 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2492 #define SWIGTYPE_p_wxColour swig_types[30]
2493 #define SWIGTYPE_p_wxComboBox swig_types[31]
2494 #define SWIGTYPE_p_wxCommandEvent swig_types[32]
2495 #define SWIGTYPE_p_wxContextHelp swig_types[33]
2496 #define SWIGTYPE_p_wxContextHelpButton swig_types[34]
2497 #define SWIGTYPE_p_wxContextMenuEvent swig_types[35]
2498 #define SWIGTYPE_p_wxControl swig_types[36]
2499 #define SWIGTYPE_p_wxControlWithItems swig_types[37]
2500 #define SWIGTYPE_p_wxCursor swig_types[38]
2501 #define SWIGTYPE_p_wxDC swig_types[39]
2502 #define SWIGTYPE_p_wxDateEvent swig_types[40]
2503 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[41]
2504 #define SWIGTYPE_p_wxDateTime swig_types[42]
2505 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[43]
2506 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2507 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2508 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2509 #define SWIGTYPE_p_wxEraseEvent swig_types[47]
2510 #define SWIGTYPE_p_wxEvent swig_types[48]
2511 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
2512 #define SWIGTYPE_p_wxFSFile swig_types[50]
2513 #define SWIGTYPE_p_wxFileSystem swig_types[51]
2514 #define SWIGTYPE_p_wxFlexGridSizer swig_types[52]
2515 #define SWIGTYPE_p_wxFocusEvent swig_types[53]
2516 #define SWIGTYPE_p_wxFont swig_types[54]
2517 #define SWIGTYPE_p_wxGBSizerItem swig_types[55]
2518 #define SWIGTYPE_p_wxGIFHandler swig_types[56]
2519 #define SWIGTYPE_p_wxGauge swig_types[57]
2520 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[58]
2521 #define SWIGTYPE_p_wxGenericDragImage swig_types[59]
2522 #define SWIGTYPE_p_wxGridBagSizer swig_types[60]
2523 #define SWIGTYPE_p_wxGridSizer swig_types[61]
2524 #define SWIGTYPE_p_wxHelpEvent swig_types[62]
2525 #define SWIGTYPE_p_wxHelpProvider swig_types[63]
2526 #define SWIGTYPE_p_wxICOHandler swig_types[64]
2527 #define SWIGTYPE_p_wxIcon swig_types[65]
2528 #define SWIGTYPE_p_wxIconizeEvent swig_types[66]
2529 #define SWIGTYPE_p_wxIdleEvent swig_types[67]
2530 #define SWIGTYPE_p_wxImage swig_types[68]
2531 #define SWIGTYPE_p_wxImageHandler swig_types[69]
2532 #define SWIGTYPE_p_wxImageList swig_types[70]
2533 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[71]
2534 #define SWIGTYPE_p_wxInitDialogEvent swig_types[72]
2535 #define SWIGTYPE_p_wxItemContainer swig_types[73]
2536 #define SWIGTYPE_p_wxJPEGHandler swig_types[74]
2537 #define SWIGTYPE_p_wxKeyEvent swig_types[75]
2538 #define SWIGTYPE_p_wxLayoutConstraints swig_types[76]
2539 #define SWIGTYPE_p_wxListBox swig_types[77]
2540 #define SWIGTYPE_p_wxListEvent swig_types[78]
2541 #define SWIGTYPE_p_wxListItem swig_types[79]
2542 #define SWIGTYPE_p_wxListItemAttr swig_types[80]
2543 #define SWIGTYPE_p_wxListView swig_types[81]
2544 #define SWIGTYPE_p_wxListbook swig_types[82]
2545 #define SWIGTYPE_p_wxListbookEvent swig_types[83]
2546 #define SWIGTYPE_p_wxMaximizeEvent swig_types[84]
2547 #define SWIGTYPE_p_wxMemoryDC swig_types[85]
2548 #define SWIGTYPE_p_wxMenu swig_types[86]
2549 #define SWIGTYPE_p_wxMenuBar swig_types[87]
2550 #define SWIGTYPE_p_wxMenuEvent swig_types[88]
2551 #define SWIGTYPE_p_wxMenuItem swig_types[89]
2552 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[90]
2553 #define SWIGTYPE_p_wxMouseEvent swig_types[91]
2554 #define SWIGTYPE_p_wxMoveEvent swig_types[92]
2555 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[93]
2556 #define SWIGTYPE_p_wxNcPaintEvent swig_types[94]
2557 #define SWIGTYPE_p_wxNotebook swig_types[95]
2558 #define SWIGTYPE_p_wxNotebookEvent swig_types[96]
2559 #define SWIGTYPE_p_wxNotifyEvent swig_types[97]
2560 #define SWIGTYPE_p_wxObject swig_types[98]
2561 #define SWIGTYPE_p_wxPCXHandler swig_types[99]
2562 #define SWIGTYPE_p_wxPNGHandler swig_types[100]
2563 #define SWIGTYPE_p_wxPNMHandler swig_types[101]
2564 #define SWIGTYPE_p_wxPaintEvent swig_types[102]
2565 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[103]
2566 #define SWIGTYPE_p_wxPaperSize swig_types[104]
2567 #define SWIGTYPE_p_wxPoint swig_types[105]
2568 #define SWIGTYPE_p_wxPyApp swig_types[106]
2569 #define SWIGTYPE_p_wxPyCommandEvent swig_types[107]
2570 #define SWIGTYPE_p_wxPyControl swig_types[108]
2571 #define SWIGTYPE_p_wxPyEvent swig_types[109]
2572 #define SWIGTYPE_p_wxPyImageHandler swig_types[110]
2573 #define SWIGTYPE_p_wxPyListCtrl swig_types[111]
2574 #define SWIGTYPE_p_wxPySizer swig_types[112]
2575 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[113]
2576 #define SWIGTYPE_p_wxPyTreeItemData swig_types[114]
2577 #define SWIGTYPE_p_wxPyValidator swig_types[115]
2578 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[116]
2579 #define SWIGTYPE_p_wxRadioBox swig_types[117]
2580 #define SWIGTYPE_p_wxRadioButton swig_types[118]
2581 #define SWIGTYPE_p_wxRect swig_types[119]
2582 #define SWIGTYPE_p_wxScrollBar swig_types[120]
2583 #define SWIGTYPE_p_wxScrollEvent swig_types[121]
2584 #define SWIGTYPE_p_wxScrollWinEvent swig_types[122]
2585 #define SWIGTYPE_p_wxSetCursorEvent swig_types[123]
2586 #define SWIGTYPE_p_wxShowEvent swig_types[124]
2587 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[125]
2588 #define SWIGTYPE_p_wxSize swig_types[126]
2589 #define SWIGTYPE_p_wxSizeEvent swig_types[127]
2590 #define SWIGTYPE_p_wxSizer swig_types[128]
2591 #define SWIGTYPE_p_wxSizerItem swig_types[129]
2592 #define SWIGTYPE_p_wxSlider swig_types[130]
2593 #define SWIGTYPE_p_wxSpinButton swig_types[131]
2594 #define SWIGTYPE_p_wxSpinCtrl swig_types[132]
2595 #define SWIGTYPE_p_wxSpinEvent swig_types[133]
2596 #define SWIGTYPE_p_wxStaticBitmap swig_types[134]
2597 #define SWIGTYPE_p_wxStaticBox swig_types[135]
2598 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[136]
2599 #define SWIGTYPE_p_wxStaticLine swig_types[137]
2600 #define SWIGTYPE_p_wxStaticText swig_types[138]
2601 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[139]
2602 #define SWIGTYPE_p_wxString swig_types[140]
2603 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[141]
2604 #define SWIGTYPE_p_wxTIFFHandler swig_types[142]
2605 #define SWIGTYPE_p_wxTextAttr swig_types[143]
2606 #define SWIGTYPE_p_wxTextCtrl swig_types[144]
2607 #define SWIGTYPE_p_wxTextUrlEvent swig_types[145]
2608 #define SWIGTYPE_p_wxToggleButton swig_types[146]
2609 #define SWIGTYPE_p_wxToolBar swig_types[147]
2610 #define SWIGTYPE_p_wxToolBarBase swig_types[148]
2611 #define SWIGTYPE_p_wxToolBarToolBase swig_types[149]
2612 #define SWIGTYPE_p_wxToolbook swig_types[150]
2613 #define SWIGTYPE_p_wxToolbookEvent swig_types[151]
2614 #define SWIGTYPE_p_wxTreeCtrl swig_types[152]
2615 #define SWIGTYPE_p_wxTreeEvent swig_types[153]
2616 #define SWIGTYPE_p_wxTreeItemId swig_types[154]
2617 #define SWIGTYPE_p_wxTreebook swig_types[155]
2618 #define SWIGTYPE_p_wxTreebookEvent swig_types[156]
2619 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[157]
2620 #define SWIGTYPE_p_wxValidator swig_types[158]
2621 #define SWIGTYPE_p_wxVisualAttributes swig_types[159]
2622 #define SWIGTYPE_p_wxWindow swig_types[160]
2623 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[161]
2624 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[162]
2625 #define SWIGTYPE_p_wxXPMHandler swig_types[163]
2626 static swig_type_info *swig_types[165];
2627 static swig_module_info swig_module = {swig_types, 164, 0, 0, 0, 0};
2628 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2629 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2630
2631 /* -------- TYPES TABLE (END) -------- */
2632
2633 #if (PY_VERSION_HEX <= 0x02000000)
2634 # if !defined(SWIG_PYTHON_CLASSIC)
2635 # error "This python version requires to use swig with the '-classic' option"
2636 # endif
2637 #endif
2638 #if (PY_VERSION_HEX <= 0x02020000)
2639 # error "This python version requires to use swig with the '-nomodern' option"
2640 #endif
2641 #if (PY_VERSION_HEX <= 0x02020000)
2642 # error "This python version requires to use swig with the '-nomodernargs' option"
2643 #endif
2644 #ifndef METH_O
2645 # error "This python version requires to use swig with the '-nofastunpack' option"
2646 #endif
2647
2648 /*-----------------------------------------------
2649 @(target):= _controls_.so
2650 ------------------------------------------------*/
2651 #define SWIG_init init_controls_
2652
2653 #define SWIG_name "_controls_"
2654
2655 #define SWIGVERSION 0x010329
2656
2657
2658 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2659 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2660
2661
2662 #include <stdexcept>
2663
2664
2665 namespace swig {
2666 class PyObject_ptr {
2667 protected:
2668 PyObject *_obj;
2669
2670 public:
2671 PyObject_ptr() :_obj(0)
2672 {
2673 }
2674
2675 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2676 {
2677 Py_XINCREF(_obj);
2678 }
2679
2680 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2681 {
2682 if (initial_ref) Py_XINCREF(_obj);
2683 }
2684
2685 PyObject_ptr & operator=(const PyObject_ptr& item)
2686 {
2687 Py_XINCREF(item._obj);
2688 Py_XDECREF(_obj);
2689 _obj = item._obj;
2690 return *this;
2691 }
2692
2693 ~PyObject_ptr()
2694 {
2695 Py_XDECREF(_obj);
2696 }
2697
2698 operator PyObject *() const
2699 {
2700 return _obj;
2701 }
2702
2703 PyObject *operator->() const
2704 {
2705 return _obj;
2706 }
2707 };
2708 }
2709
2710
2711 namespace swig {
2712 struct PyObject_var : PyObject_ptr {
2713 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2714
2715 PyObject_var & operator = (PyObject* obj)
2716 {
2717 Py_XDECREF(_obj);
2718 _obj = obj;
2719 return *this;
2720 }
2721 };
2722 }
2723
2724
2725 #include "wx/wxPython/wxPython.h"
2726 #include "wx/wxPython/pyclasses.h"
2727
2728 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2729 static const wxString wxPyEmptyString(wxEmptyString);
2730 static const wxString wxPyControlNameStr(wxControlNameStr);
2731
2732 const wxArrayString wxPyEmptyStringArray;
2733
2734 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2735
2736 #define SWIG_From_long PyInt_FromLong
2737
2738
2739 SWIGINTERNINLINE PyObject *
2740 SWIG_From_int (int value)
2741 {
2742 return SWIG_From_long (value);
2743 }
2744
2745
2746 #include <limits.h>
2747 #ifndef LLONG_MIN
2748 # define LLONG_MIN LONG_LONG_MIN
2749 #endif
2750 #ifndef LLONG_MAX
2751 # define LLONG_MAX LONG_LONG_MAX
2752 #endif
2753 #ifndef ULLONG_MAX
2754 # define ULLONG_MAX ULONG_LONG_MAX
2755 #endif
2756
2757
2758 SWIGINTERN int
2759 SWIG_AsVal_long (PyObject* obj, long* val)
2760 {
2761 if (PyNumber_Check(obj)) {
2762 if (val) *val = PyInt_AsLong(obj);
2763 return SWIG_OK;
2764 }
2765 return SWIG_TypeError;
2766 }
2767
2768
2769 SWIGINTERN int
2770 SWIG_AsVal_int (PyObject * obj, int *val)
2771 {
2772 long v;
2773 int res = SWIG_AsVal_long (obj, &v);
2774 if (SWIG_IsOK(res)) {
2775 if ((v < INT_MIN || v > INT_MAX)) {
2776 return SWIG_OverflowError;
2777 } else {
2778 if (val) *val = static_cast< int >(v);
2779 }
2780 }
2781 return res;
2782 }
2783
2784 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2785
2786 SWIGINTERN int
2787 SWIG_AsVal_bool (PyObject *obj, bool *val)
2788 {
2789 if (obj == Py_True) {
2790 if (val) *val = true;
2791 return SWIG_OK;
2792 } else if (obj == Py_False) {
2793 if (val) *val = false;
2794 return SWIG_OK;
2795 } else {
2796 long v = 0;
2797 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2798 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2799 return res;
2800 }
2801 }
2802
2803 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2804 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2805 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2806 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2807 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2808 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2809
2810 #include <wx/checklst.h>
2811
2812 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2813 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2814 if (clientData)
2815 {
2816 wxPyClientData* data = new wxPyClientData(clientData);
2817 self->Insert(item, pos, data);
2818 }
2819 else
2820 self->Insert(item, pos);
2821 }
2822
2823 SWIGINTERN int
2824 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2825 {
2826 long v = 0;
2827 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2828 return SWIG_TypeError;
2829 }
2830 else if (val)
2831 *val = (unsigned long)v;
2832 return SWIG_OK;
2833 }
2834
2835
2836 SWIGINTERN int
2837 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2838 {
2839 unsigned long v;
2840 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2841 if (SWIG_IsOK(res)) {
2842 if ((v > UINT_MAX)) {
2843 return SWIG_OverflowError;
2844 } else {
2845 if (val) *val = static_cast< unsigned int >(v);
2846 }
2847 }
2848 return res;
2849 }
2850
2851 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2852 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2853 wxArrayInt lst;
2854 self->GetSelections(lst);
2855 PyObject *tup = PyTuple_New(lst.GetCount());
2856 for (size_t i=0; i<lst.GetCount(); i++)
2857 {
2858 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2859 }
2860 wxPyEndBlockThreads(blocked);
2861 return tup;
2862 }
2863 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2864 #ifdef __WXMSW__
2865 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2866 self->GetItem(item)->SetTextColour(c);
2867 #endif
2868 }
2869 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2870 #ifdef __WXMSW__
2871 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2872 self->GetItem(item)->SetBackgroundColour(c);
2873 #endif
2874 }
2875 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2876 #ifdef __WXMSW__
2877 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2878 self->GetItem(item)->SetFont(f);
2879 #endif
2880 }
2881 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2882 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2883 self->AppendText(text);
2884 }
2885 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2886 return self->GetValue().Mid(from, to - from);
2887 }
2888 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2889 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2890 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2891 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2892 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2893
2894 SWIGINTERNINLINE PyObject*
2895 SWIG_From_unsigned_SS_long (unsigned long value)
2896 {
2897 return (value > LONG_MAX) ?
2898 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2899 }
2900
2901
2902 SWIGINTERNINLINE PyObject *
2903 SWIG_From_size_t (size_t value)
2904 {
2905 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2906 }
2907
2908
2909 SWIGINTERNINLINE PyObject *
2910 SWIG_From_unsigned_SS_int (unsigned int value)
2911 {
2912 return SWIG_From_unsigned_SS_long (value);
2913 }
2914
2915
2916 #include <wx/slider.h>
2917
2918
2919 static const wxString wxPySliderNameStr(wxSliderNameStr);
2920 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2921
2922 #if !wxUSE_TOGGLEBTN
2923 // implement dummy items for platforms that don't have this class
2924
2925 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2926
2927 class wxToggleButton : public wxControl
2928 {
2929 public:
2930 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2931 const wxPoint&, const wxSize&, long,
2932 const wxValidator&, const wxString&)
2933 { wxPyRaiseNotImplemented(); }
2934
2935 wxToggleButton()
2936 { wxPyRaiseNotImplemented(); }
2937 };
2938 #endif
2939
2940 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2941
2942 SWIGINTERNINLINE int
2943 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2944 {
2945 unsigned long v;
2946 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2947 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2948 return res;
2949 }
2950
2951 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2952 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2953 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2954 if (udata) {
2955 Py_INCREF(udata->m_obj);
2956 return udata->m_obj;
2957 } else {
2958 Py_INCREF(Py_None);
2959 return Py_None;
2960 }
2961 }
2962 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2963 self->SetClientData(new wxPyUserData(clientData));
2964 }
2965 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){
2966 wxPyUserData* udata = NULL;
2967 if (clientData && clientData != Py_None)
2968 udata = new wxPyUserData(clientData);
2969 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2970 shortHelp, longHelp, udata);
2971 }
2972 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){
2973 wxPyUserData* udata = NULL;
2974 if (clientData && clientData != Py_None)
2975 udata = new wxPyUserData(clientData);
2976 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2977 shortHelp, longHelp, udata);
2978 }
2979 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2980 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2981 if (udata) {
2982 Py_INCREF(udata->m_obj);
2983 return udata->m_obj;
2984 } else {
2985 Py_INCREF(Py_None);
2986 return Py_None;
2987 }
2988 }
2989 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
2990 self->SetToolClientData(id, new wxPyUserData(clientData));
2991 }
2992
2993 #include <wx/listctrl.h>
2994
2995 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
2996 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
2997 // Python aware sorting function for wxPyListCtrl
2998 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
2999 int retval = 0;
3000 PyObject* func = (PyObject*)funcPtr;
3001 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3002
3003 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3004 PyObject* result = PyEval_CallObject(func, args);
3005 Py_DECREF(args);
3006 if (result) {
3007 retval = PyInt_AsLong(result);
3008 Py_DECREF(result);
3009 }
3010
3011 wxPyEndBlockThreads(blocked);
3012 return retval;
3013 }
3014
3015 // C++ Version of a Python aware class
3016 class wxPyListCtrl : public wxListCtrl {
3017 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3018 public:
3019 wxPyListCtrl() : wxListCtrl() {}
3020 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3021 const wxPoint& pos,
3022 const wxSize& size,
3023 long style,
3024 const wxValidator& validator,
3025 const wxString& name) :
3026 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3027
3028 bool Create(wxWindow* parent, wxWindowID id,
3029 const wxPoint& pos,
3030 const wxSize& size,
3031 long style,
3032 const wxValidator& validator,
3033 const wxString& name) {
3034 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3035 }
3036
3037 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3038 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3039
3040 // use the virtual version to avoid a confusing assert in the base class
3041 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3042 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3043
3044 PYPRIVATE;
3045 };
3046
3047 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3048
3049 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3050 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3051 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3052 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3053
3054
3055 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3056 wxListItem item;
3057 item.SetMask( wxLIST_MASK_STATE |
3058 wxLIST_MASK_TEXT |
3059 wxLIST_MASK_IMAGE |
3060 wxLIST_MASK_DATA |
3061 wxLIST_SET_ITEM |
3062 wxLIST_MASK_WIDTH |
3063 wxLIST_MASK_FORMAT
3064 );
3065 if (self->GetColumn(col, item))
3066 return new wxListItem(item);
3067 else
3068 return NULL;
3069 }
3070 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3071 wxListItem* info = new wxListItem;
3072 info->m_itemId = itemId;
3073 info->m_col = col;
3074 info->m_mask = 0xFFFF;
3075 self->GetItem(*info);
3076 return info;
3077 }
3078 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3079 wxPoint pos;
3080 self->GetItemPosition(item, pos);
3081 return pos;
3082 }
3083 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3084 wxRect rect;
3085 self->GetItemRect(item, rect, code);
3086 return rect;
3087 }
3088 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3089 if (!PyCallable_Check(func))
3090 return false;
3091 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3092 }
3093 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3094
3095
3096
3097 return (wxWindow*)self->m_mainWin;
3098
3099 }
3100
3101 #include <wx/treectrl.h>
3102 #include "wx/wxPython/pytree.h"
3103
3104 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3105 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3106 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3107 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3108 // C++ version of Python aware wxTreeCtrl
3109 class wxPyTreeCtrl : public wxTreeCtrl {
3110 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3111 public:
3112 wxPyTreeCtrl() : wxTreeCtrl() {}
3113 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3114 const wxPoint& pos,
3115 const wxSize& size,
3116 long style,
3117 const wxValidator& validator,
3118 const wxString& name) :
3119 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3120
3121 bool Create(wxWindow *parent, wxWindowID id,
3122 const wxPoint& pos,
3123 const wxSize& size,
3124 long style,
3125 const wxValidator& validator,
3126 const wxString& name) {
3127 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3128 }
3129
3130
3131 int OnCompareItems(const wxTreeItemId& item1,
3132 const wxTreeItemId& item2) {
3133 int rval = 0;
3134 bool found;
3135 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3136 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3137 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3138 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3139 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3140 Py_DECREF(o1);
3141 Py_DECREF(o2);
3142 }
3143 wxPyEndBlockThreads(blocked);
3144 if (! found)
3145 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3146 return rval;
3147 }
3148 PYPRIVATE;
3149 };
3150
3151 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3152
3153
3154 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3155 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3156 if (data == NULL) {
3157 data = new wxPyTreeItemData();
3158 data->SetId(item); // set the id
3159 self->SetItemData(item, data);
3160 }
3161 return data;
3162 }
3163 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3164 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3165 if (data == NULL) {
3166 data = new wxPyTreeItemData();
3167 data->SetId(item); // set the id
3168 self->SetItemData(item, data);
3169 }
3170 return data->GetData();
3171 }
3172 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3173 data->SetId(item); // set the id
3174 self->SetItemData(item, data);
3175 }
3176 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3177 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3178 if (data == NULL) {
3179 data = new wxPyTreeItemData(obj);
3180 data->SetId(item); // set the id
3181 self->SetItemData(item, data);
3182 } else
3183 data->SetData(obj);
3184 }
3185 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3186 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3187 PyObject* rval = PyList_New(0);
3188 wxArrayTreeItemIds array;
3189 size_t num, x;
3190 num = self->GetSelections(array);
3191 for (x=0; x < num; x++) {
3192 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3193 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3194 PyList_Append(rval, item);
3195 Py_DECREF(item);
3196 }
3197 wxPyEndBlockThreads(blocked);
3198 return rval;
3199 }
3200 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3201 void* cookie = 0;
3202 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3203 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3204 PyObject* tup = PyTuple_New(2);
3205 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3206 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3207 wxPyEndBlockThreads(blocked);
3208 return tup;
3209 }
3210 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3211 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3212 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3213 PyObject* tup = PyTuple_New(2);
3214 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3215 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3216 wxPyEndBlockThreads(blocked);
3217 return tup;
3218 }
3219 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3220 wxRect rect;
3221 if (self->GetBoundingRect(item, rect, textOnly)) {
3222 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3223 wxRect* r = new wxRect(rect);
3224 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3225 wxPyEndBlockThreads(blocked);
3226 return val;
3227 }
3228 else
3229 RETURN_NONE();
3230 }
3231 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3232
3233 SWIGINTERNINLINE PyObject*
3234 SWIG_From_bool (bool value)
3235 {
3236 return PyBool_FromLong(value ? 1 : 0);
3237 }
3238
3239 // C++ version of Python aware wxControl
3240 class wxPyControl : public wxControl
3241 {
3242 DECLARE_DYNAMIC_CLASS(wxPyControl)
3243 public:
3244 wxPyControl() : wxControl() {}
3245 wxPyControl(wxWindow* parent, const wxWindowID id,
3246 const wxPoint& pos = wxDefaultPosition,
3247 const wxSize& size = wxDefaultSize,
3248 long style = 0,
3249 const wxValidator& validator=wxDefaultValidator,
3250 const wxString& name = wxPyControlNameStr)
3251 : wxControl(parent, id, pos, size, style, validator, name) {}
3252
3253 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3254
3255 bool DoEraseBackground(wxDC* dc) {
3256 #ifdef __WXMSW__
3257 return wxWindow::DoEraseBackground(dc->GetHDC());
3258 #else
3259 dc->SetBackground(wxBrush(GetBackgroundColour()));
3260 dc->Clear();
3261 return true;
3262 #endif
3263 }
3264
3265 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3266 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3267 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3268 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3269
3270 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3271 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3272 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3273
3274 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3275 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3276
3277 DEC_PYCALLBACK__(InitDialog);
3278 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3279 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3280 DEC_PYCALLBACK_BOOL_(Validate);
3281
3282 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3283 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3284 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3285
3286 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3287 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3288
3289 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3290 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3291
3292 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3293
3294 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3295
3296 PYPRIVATE;
3297 };
3298
3299 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3300
3301 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3302 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3303 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3304 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3305
3306 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3307 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3308 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3309
3310 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3311 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3312
3313 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3314 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3315 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3316 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3317
3318 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3319 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3320 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3321
3322 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3323 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3324
3325 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3326 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3327
3328 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3329
3330 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3331
3332
3333
3334 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3335
3336 #include <wx/generic/dragimgg.h>
3337
3338 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3339 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3340 wxDateTime rv;
3341 self->GetRange(&rv, NULL);
3342 return rv;
3343 }
3344 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3345 wxDateTime rv;
3346 self->GetRange(NULL, &rv);
3347 return rv;
3348 }
3349 #ifdef __cplusplus
3350 extern "C" {
3351 #endif
3352 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3353 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3354 return 1;
3355 }
3356
3357
3358 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3359 PyObject *pyobj = 0;
3360
3361 {
3362 #if wxUSE_UNICODE
3363 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3364 #else
3365 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3366 #endif
3367 }
3368 return pyobj;
3369 }
3370
3371
3372 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3373 PyObject *resultobj = 0;
3374 wxWindow *arg1 = (wxWindow *) 0 ;
3375 int arg2 = (int) -1 ;
3376 wxString const &arg3_defvalue = wxPyEmptyString ;
3377 wxString *arg3 = (wxString *) &arg3_defvalue ;
3378 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3379 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3380 wxSize const &arg5_defvalue = wxDefaultSize ;
3381 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3382 long arg6 = (long) 0 ;
3383 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3384 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3385 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3386 wxString *arg8 = (wxString *) &arg8_defvalue ;
3387 wxButton *result = 0 ;
3388 void *argp1 = 0 ;
3389 int res1 = 0 ;
3390 int val2 ;
3391 int ecode2 = 0 ;
3392 bool temp3 = false ;
3393 wxPoint temp4 ;
3394 wxSize temp5 ;
3395 long val6 ;
3396 int ecode6 = 0 ;
3397 void *argp7 = 0 ;
3398 int res7 = 0 ;
3399 bool temp8 = false ;
3400 PyObject * obj0 = 0 ;
3401 PyObject * obj1 = 0 ;
3402 PyObject * obj2 = 0 ;
3403 PyObject * obj3 = 0 ;
3404 PyObject * obj4 = 0 ;
3405 PyObject * obj5 = 0 ;
3406 PyObject * obj6 = 0 ;
3407 PyObject * obj7 = 0 ;
3408 char * kwnames[] = {
3409 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3410 };
3411
3412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3414 if (!SWIG_IsOK(res1)) {
3415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3416 }
3417 arg1 = reinterpret_cast< wxWindow * >(argp1);
3418 if (obj1) {
3419 ecode2 = SWIG_AsVal_int(obj1, &val2);
3420 if (!SWIG_IsOK(ecode2)) {
3421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3422 }
3423 arg2 = static_cast< int >(val2);
3424 }
3425 if (obj2) {
3426 {
3427 arg3 = wxString_in_helper(obj2);
3428 if (arg3 == NULL) SWIG_fail;
3429 temp3 = true;
3430 }
3431 }
3432 if (obj3) {
3433 {
3434 arg4 = &temp4;
3435 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3436 }
3437 }
3438 if (obj4) {
3439 {
3440 arg5 = &temp5;
3441 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3442 }
3443 }
3444 if (obj5) {
3445 ecode6 = SWIG_AsVal_long(obj5, &val6);
3446 if (!SWIG_IsOK(ecode6)) {
3447 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3448 }
3449 arg6 = static_cast< long >(val6);
3450 }
3451 if (obj6) {
3452 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3453 if (!SWIG_IsOK(res7)) {
3454 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3455 }
3456 if (!argp7) {
3457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3458 }
3459 arg7 = reinterpret_cast< wxValidator * >(argp7);
3460 }
3461 if (obj7) {
3462 {
3463 arg8 = wxString_in_helper(obj7);
3464 if (arg8 == NULL) SWIG_fail;
3465 temp8 = true;
3466 }
3467 }
3468 {
3469 if (!wxPyCheckForApp()) SWIG_fail;
3470 PyThreadState* __tstate = wxPyBeginAllowThreads();
3471 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3472 wxPyEndAllowThreads(__tstate);
3473 if (PyErr_Occurred()) SWIG_fail;
3474 }
3475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3476 {
3477 if (temp3)
3478 delete arg3;
3479 }
3480 {
3481 if (temp8)
3482 delete arg8;
3483 }
3484 return resultobj;
3485 fail:
3486 {
3487 if (temp3)
3488 delete arg3;
3489 }
3490 {
3491 if (temp8)
3492 delete arg8;
3493 }
3494 return NULL;
3495 }
3496
3497
3498 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3499 PyObject *resultobj = 0;
3500 wxButton *result = 0 ;
3501
3502 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3503 {
3504 if (!wxPyCheckForApp()) SWIG_fail;
3505 PyThreadState* __tstate = wxPyBeginAllowThreads();
3506 result = (wxButton *)new wxButton();
3507 wxPyEndAllowThreads(__tstate);
3508 if (PyErr_Occurred()) SWIG_fail;
3509 }
3510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3511 return resultobj;
3512 fail:
3513 return NULL;
3514 }
3515
3516
3517 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3518 PyObject *resultobj = 0;
3519 wxButton *arg1 = (wxButton *) 0 ;
3520 wxWindow *arg2 = (wxWindow *) 0 ;
3521 int arg3 = (int) -1 ;
3522 wxString const &arg4_defvalue = wxPyEmptyString ;
3523 wxString *arg4 = (wxString *) &arg4_defvalue ;
3524 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3525 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3526 wxSize const &arg6_defvalue = wxDefaultSize ;
3527 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3528 long arg7 = (long) 0 ;
3529 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3530 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3531 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3532 wxString *arg9 = (wxString *) &arg9_defvalue ;
3533 bool result;
3534 void *argp1 = 0 ;
3535 int res1 = 0 ;
3536 void *argp2 = 0 ;
3537 int res2 = 0 ;
3538 int val3 ;
3539 int ecode3 = 0 ;
3540 bool temp4 = false ;
3541 wxPoint temp5 ;
3542 wxSize temp6 ;
3543 long val7 ;
3544 int ecode7 = 0 ;
3545 void *argp8 = 0 ;
3546 int res8 = 0 ;
3547 bool temp9 = false ;
3548 PyObject * obj0 = 0 ;
3549 PyObject * obj1 = 0 ;
3550 PyObject * obj2 = 0 ;
3551 PyObject * obj3 = 0 ;
3552 PyObject * obj4 = 0 ;
3553 PyObject * obj5 = 0 ;
3554 PyObject * obj6 = 0 ;
3555 PyObject * obj7 = 0 ;
3556 PyObject * obj8 = 0 ;
3557 char * kwnames[] = {
3558 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3559 };
3560
3561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3563 if (!SWIG_IsOK(res1)) {
3564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3565 }
3566 arg1 = reinterpret_cast< wxButton * >(argp1);
3567 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3568 if (!SWIG_IsOK(res2)) {
3569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3570 }
3571 arg2 = reinterpret_cast< wxWindow * >(argp2);
3572 if (obj2) {
3573 ecode3 = SWIG_AsVal_int(obj2, &val3);
3574 if (!SWIG_IsOK(ecode3)) {
3575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3576 }
3577 arg3 = static_cast< int >(val3);
3578 }
3579 if (obj3) {
3580 {
3581 arg4 = wxString_in_helper(obj3);
3582 if (arg4 == NULL) SWIG_fail;
3583 temp4 = true;
3584 }
3585 }
3586 if (obj4) {
3587 {
3588 arg5 = &temp5;
3589 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3590 }
3591 }
3592 if (obj5) {
3593 {
3594 arg6 = &temp6;
3595 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3596 }
3597 }
3598 if (obj6) {
3599 ecode7 = SWIG_AsVal_long(obj6, &val7);
3600 if (!SWIG_IsOK(ecode7)) {
3601 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3602 }
3603 arg7 = static_cast< long >(val7);
3604 }
3605 if (obj7) {
3606 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3607 if (!SWIG_IsOK(res8)) {
3608 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3609 }
3610 if (!argp8) {
3611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3612 }
3613 arg8 = reinterpret_cast< wxValidator * >(argp8);
3614 }
3615 if (obj8) {
3616 {
3617 arg9 = wxString_in_helper(obj8);
3618 if (arg9 == NULL) SWIG_fail;
3619 temp9 = true;
3620 }
3621 }
3622 {
3623 PyThreadState* __tstate = wxPyBeginAllowThreads();
3624 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3625 wxPyEndAllowThreads(__tstate);
3626 if (PyErr_Occurred()) SWIG_fail;
3627 }
3628 {
3629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3630 }
3631 {
3632 if (temp4)
3633 delete arg4;
3634 }
3635 {
3636 if (temp9)
3637 delete arg9;
3638 }
3639 return resultobj;
3640 fail:
3641 {
3642 if (temp4)
3643 delete arg4;
3644 }
3645 {
3646 if (temp9)
3647 delete arg9;
3648 }
3649 return NULL;
3650 }
3651
3652
3653 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3654 PyObject *resultobj = 0;
3655 wxButton *arg1 = (wxButton *) 0 ;
3656 void *argp1 = 0 ;
3657 int res1 = 0 ;
3658 PyObject *swig_obj[1] ;
3659
3660 if (!args) SWIG_fail;
3661 swig_obj[0] = args;
3662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3663 if (!SWIG_IsOK(res1)) {
3664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3665 }
3666 arg1 = reinterpret_cast< wxButton * >(argp1);
3667 {
3668 PyThreadState* __tstate = wxPyBeginAllowThreads();
3669 (arg1)->SetDefault();
3670 wxPyEndAllowThreads(__tstate);
3671 if (PyErr_Occurred()) SWIG_fail;
3672 }
3673 resultobj = SWIG_Py_Void();
3674 return resultobj;
3675 fail:
3676 return NULL;
3677 }
3678
3679
3680 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3681 PyObject *resultobj = 0;
3682 wxSize result;
3683
3684 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3685 {
3686 PyThreadState* __tstate = wxPyBeginAllowThreads();
3687 result = wxButton::GetDefaultSize();
3688 wxPyEndAllowThreads(__tstate);
3689 if (PyErr_Occurred()) SWIG_fail;
3690 }
3691 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3692 return resultobj;
3693 fail:
3694 return NULL;
3695 }
3696
3697
3698 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3699 PyObject *resultobj = 0;
3700 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3701 SwigValueWrapper<wxVisualAttributes > result;
3702 int val1 ;
3703 int ecode1 = 0 ;
3704 PyObject * obj0 = 0 ;
3705 char * kwnames[] = {
3706 (char *) "variant", NULL
3707 };
3708
3709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3710 if (obj0) {
3711 ecode1 = SWIG_AsVal_int(obj0, &val1);
3712 if (!SWIG_IsOK(ecode1)) {
3713 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3714 }
3715 arg1 = static_cast< wxWindowVariant >(val1);
3716 }
3717 {
3718 if (!wxPyCheckForApp()) SWIG_fail;
3719 PyThreadState* __tstate = wxPyBeginAllowThreads();
3720 result = wxButton::GetClassDefaultAttributes(arg1);
3721 wxPyEndAllowThreads(__tstate);
3722 if (PyErr_Occurred()) SWIG_fail;
3723 }
3724 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3725 return resultobj;
3726 fail:
3727 return NULL;
3728 }
3729
3730
3731 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3732 PyObject *obj;
3733 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3734 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3735 return SWIG_Py_Void();
3736 }
3737
3738 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3739 return SWIG_Python_InitShadowInstance(args);
3740 }
3741
3742 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3743 PyObject *resultobj = 0;
3744 wxWindow *arg1 = (wxWindow *) 0 ;
3745 int arg2 = (int) -1 ;
3746 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3747 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3748 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3749 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3750 wxSize const &arg5_defvalue = wxDefaultSize ;
3751 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3752 long arg6 = (long) wxBU_AUTODRAW ;
3753 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3754 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3755 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3756 wxString *arg8 = (wxString *) &arg8_defvalue ;
3757 wxBitmapButton *result = 0 ;
3758 void *argp1 = 0 ;
3759 int res1 = 0 ;
3760 int val2 ;
3761 int ecode2 = 0 ;
3762 void *argp3 = 0 ;
3763 int res3 = 0 ;
3764 wxPoint temp4 ;
3765 wxSize temp5 ;
3766 long val6 ;
3767 int ecode6 = 0 ;
3768 void *argp7 = 0 ;
3769 int res7 = 0 ;
3770 bool temp8 = false ;
3771 PyObject * obj0 = 0 ;
3772 PyObject * obj1 = 0 ;
3773 PyObject * obj2 = 0 ;
3774 PyObject * obj3 = 0 ;
3775 PyObject * obj4 = 0 ;
3776 PyObject * obj5 = 0 ;
3777 PyObject * obj6 = 0 ;
3778 PyObject * obj7 = 0 ;
3779 char * kwnames[] = {
3780 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3781 };
3782
3783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3785 if (!SWIG_IsOK(res1)) {
3786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3787 }
3788 arg1 = reinterpret_cast< wxWindow * >(argp1);
3789 if (obj1) {
3790 ecode2 = SWIG_AsVal_int(obj1, &val2);
3791 if (!SWIG_IsOK(ecode2)) {
3792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3793 }
3794 arg2 = static_cast< int >(val2);
3795 }
3796 if (obj2) {
3797 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3798 if (!SWIG_IsOK(res3)) {
3799 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3800 }
3801 if (!argp3) {
3802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3803 }
3804 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3805 }
3806 if (obj3) {
3807 {
3808 arg4 = &temp4;
3809 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3810 }
3811 }
3812 if (obj4) {
3813 {
3814 arg5 = &temp5;
3815 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3816 }
3817 }
3818 if (obj5) {
3819 ecode6 = SWIG_AsVal_long(obj5, &val6);
3820 if (!SWIG_IsOK(ecode6)) {
3821 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3822 }
3823 arg6 = static_cast< long >(val6);
3824 }
3825 if (obj6) {
3826 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3827 if (!SWIG_IsOK(res7)) {
3828 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3829 }
3830 if (!argp7) {
3831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3832 }
3833 arg7 = reinterpret_cast< wxValidator * >(argp7);
3834 }
3835 if (obj7) {
3836 {
3837 arg8 = wxString_in_helper(obj7);
3838 if (arg8 == NULL) SWIG_fail;
3839 temp8 = true;
3840 }
3841 }
3842 {
3843 if (!wxPyCheckForApp()) SWIG_fail;
3844 PyThreadState* __tstate = wxPyBeginAllowThreads();
3845 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3846 wxPyEndAllowThreads(__tstate);
3847 if (PyErr_Occurred()) SWIG_fail;
3848 }
3849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3850 {
3851 if (temp8)
3852 delete arg8;
3853 }
3854 return resultobj;
3855 fail:
3856 {
3857 if (temp8)
3858 delete arg8;
3859 }
3860 return NULL;
3861 }
3862
3863
3864 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3865 PyObject *resultobj = 0;
3866 wxBitmapButton *result = 0 ;
3867
3868 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3869 {
3870 if (!wxPyCheckForApp()) SWIG_fail;
3871 PyThreadState* __tstate = wxPyBeginAllowThreads();
3872 result = (wxBitmapButton *)new wxBitmapButton();
3873 wxPyEndAllowThreads(__tstate);
3874 if (PyErr_Occurred()) SWIG_fail;
3875 }
3876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3877 return resultobj;
3878 fail:
3879 return NULL;
3880 }
3881
3882
3883 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3884 PyObject *resultobj = 0;
3885 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3886 wxWindow *arg2 = (wxWindow *) 0 ;
3887 int arg3 = (int) -1 ;
3888 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3889 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3890 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3891 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3892 wxSize const &arg6_defvalue = wxDefaultSize ;
3893 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3894 long arg7 = (long) wxBU_AUTODRAW ;
3895 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3896 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3897 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3898 wxString *arg9 = (wxString *) &arg9_defvalue ;
3899 bool result;
3900 void *argp1 = 0 ;
3901 int res1 = 0 ;
3902 void *argp2 = 0 ;
3903 int res2 = 0 ;
3904 int val3 ;
3905 int ecode3 = 0 ;
3906 void *argp4 = 0 ;
3907 int res4 = 0 ;
3908 wxPoint temp5 ;
3909 wxSize temp6 ;
3910 long val7 ;
3911 int ecode7 = 0 ;
3912 void *argp8 = 0 ;
3913 int res8 = 0 ;
3914 bool temp9 = false ;
3915 PyObject * obj0 = 0 ;
3916 PyObject * obj1 = 0 ;
3917 PyObject * obj2 = 0 ;
3918 PyObject * obj3 = 0 ;
3919 PyObject * obj4 = 0 ;
3920 PyObject * obj5 = 0 ;
3921 PyObject * obj6 = 0 ;
3922 PyObject * obj7 = 0 ;
3923 PyObject * obj8 = 0 ;
3924 char * kwnames[] = {
3925 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3926 };
3927
3928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3930 if (!SWIG_IsOK(res1)) {
3931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3932 }
3933 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3934 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3935 if (!SWIG_IsOK(res2)) {
3936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3937 }
3938 arg2 = reinterpret_cast< wxWindow * >(argp2);
3939 if (obj2) {
3940 ecode3 = SWIG_AsVal_int(obj2, &val3);
3941 if (!SWIG_IsOK(ecode3)) {
3942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3943 }
3944 arg3 = static_cast< int >(val3);
3945 }
3946 if (obj3) {
3947 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3948 if (!SWIG_IsOK(res4)) {
3949 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3950 }
3951 if (!argp4) {
3952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3953 }
3954 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3955 }
3956 if (obj4) {
3957 {
3958 arg5 = &temp5;
3959 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3960 }
3961 }
3962 if (obj5) {
3963 {
3964 arg6 = &temp6;
3965 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3966 }
3967 }
3968 if (obj6) {
3969 ecode7 = SWIG_AsVal_long(obj6, &val7);
3970 if (!SWIG_IsOK(ecode7)) {
3971 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3972 }
3973 arg7 = static_cast< long >(val7);
3974 }
3975 if (obj7) {
3976 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3977 if (!SWIG_IsOK(res8)) {
3978 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3979 }
3980 if (!argp8) {
3981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3982 }
3983 arg8 = reinterpret_cast< wxValidator * >(argp8);
3984 }
3985 if (obj8) {
3986 {
3987 arg9 = wxString_in_helper(obj8);
3988 if (arg9 == NULL) SWIG_fail;
3989 temp9 = true;
3990 }
3991 }
3992 {
3993 PyThreadState* __tstate = wxPyBeginAllowThreads();
3994 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3995 wxPyEndAllowThreads(__tstate);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 {
3999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4000 }
4001 {
4002 if (temp9)
4003 delete arg9;
4004 }
4005 return resultobj;
4006 fail:
4007 {
4008 if (temp9)
4009 delete arg9;
4010 }
4011 return NULL;
4012 }
4013
4014
4015 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4016 PyObject *resultobj = 0;
4017 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4018 wxBitmap result;
4019 void *argp1 = 0 ;
4020 int res1 = 0 ;
4021 PyObject *swig_obj[1] ;
4022
4023 if (!args) SWIG_fail;
4024 swig_obj[0] = args;
4025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4026 if (!SWIG_IsOK(res1)) {
4027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4028 }
4029 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4030 {
4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
4032 result = (arg1)->GetBitmapLabel();
4033 wxPyEndAllowThreads(__tstate);
4034 if (PyErr_Occurred()) SWIG_fail;
4035 }
4036 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4037 return resultobj;
4038 fail:
4039 return NULL;
4040 }
4041
4042
4043 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4044 PyObject *resultobj = 0;
4045 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4046 wxBitmap result;
4047 void *argp1 = 0 ;
4048 int res1 = 0 ;
4049 PyObject *swig_obj[1] ;
4050
4051 if (!args) SWIG_fail;
4052 swig_obj[0] = args;
4053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4054 if (!SWIG_IsOK(res1)) {
4055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4056 }
4057 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4058 {
4059 PyThreadState* __tstate = wxPyBeginAllowThreads();
4060 result = (arg1)->GetBitmapDisabled();
4061 wxPyEndAllowThreads(__tstate);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 }
4064 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4065 return resultobj;
4066 fail:
4067 return NULL;
4068 }
4069
4070
4071 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4072 PyObject *resultobj = 0;
4073 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4074 wxBitmap result;
4075 void *argp1 = 0 ;
4076 int res1 = 0 ;
4077 PyObject *swig_obj[1] ;
4078
4079 if (!args) SWIG_fail;
4080 swig_obj[0] = args;
4081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4082 if (!SWIG_IsOK(res1)) {
4083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4084 }
4085 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4086 {
4087 PyThreadState* __tstate = wxPyBeginAllowThreads();
4088 result = (arg1)->GetBitmapFocus();
4089 wxPyEndAllowThreads(__tstate);
4090 if (PyErr_Occurred()) SWIG_fail;
4091 }
4092 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4093 return resultobj;
4094 fail:
4095 return NULL;
4096 }
4097
4098
4099 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4100 PyObject *resultobj = 0;
4101 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4102 wxBitmap result;
4103 void *argp1 = 0 ;
4104 int res1 = 0 ;
4105 PyObject *swig_obj[1] ;
4106
4107 if (!args) SWIG_fail;
4108 swig_obj[0] = args;
4109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4110 if (!SWIG_IsOK(res1)) {
4111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4112 }
4113 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4114 {
4115 PyThreadState* __tstate = wxPyBeginAllowThreads();
4116 result = (arg1)->GetBitmapSelected();
4117 wxPyEndAllowThreads(__tstate);
4118 if (PyErr_Occurred()) SWIG_fail;
4119 }
4120 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4121 return resultobj;
4122 fail:
4123 return NULL;
4124 }
4125
4126
4127 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4128 PyObject *resultobj = 0;
4129 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4130 wxBitmap result;
4131 void *argp1 = 0 ;
4132 int res1 = 0 ;
4133 PyObject *swig_obj[1] ;
4134
4135 if (!args) SWIG_fail;
4136 swig_obj[0] = args;
4137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4138 if (!SWIG_IsOK(res1)) {
4139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4140 }
4141 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4142 {
4143 PyThreadState* __tstate = wxPyBeginAllowThreads();
4144 result = (arg1)->GetBitmapHover();
4145 wxPyEndAllowThreads(__tstate);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 }
4148 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4149 return resultobj;
4150 fail:
4151 return NULL;
4152 }
4153
4154
4155 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4156 PyObject *resultobj = 0;
4157 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4158 wxBitmap *arg2 = 0 ;
4159 void *argp1 = 0 ;
4160 int res1 = 0 ;
4161 void *argp2 = 0 ;
4162 int res2 = 0 ;
4163 PyObject * obj0 = 0 ;
4164 PyObject * obj1 = 0 ;
4165 char * kwnames[] = {
4166 (char *) "self",(char *) "bitmap", NULL
4167 };
4168
4169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4171 if (!SWIG_IsOK(res1)) {
4172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4173 }
4174 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4176 if (!SWIG_IsOK(res2)) {
4177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4178 }
4179 if (!argp2) {
4180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4181 }
4182 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4183 {
4184 PyThreadState* __tstate = wxPyBeginAllowThreads();
4185 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4186 wxPyEndAllowThreads(__tstate);
4187 if (PyErr_Occurred()) SWIG_fail;
4188 }
4189 resultobj = SWIG_Py_Void();
4190 return resultobj;
4191 fail:
4192 return NULL;
4193 }
4194
4195
4196 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4197 PyObject *resultobj = 0;
4198 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4199 wxBitmap *arg2 = 0 ;
4200 void *argp1 = 0 ;
4201 int res1 = 0 ;
4202 void *argp2 = 0 ;
4203 int res2 = 0 ;
4204 PyObject * obj0 = 0 ;
4205 PyObject * obj1 = 0 ;
4206 char * kwnames[] = {
4207 (char *) "self",(char *) "bitmap", NULL
4208 };
4209
4210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4212 if (!SWIG_IsOK(res1)) {
4213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4214 }
4215 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4216 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4217 if (!SWIG_IsOK(res2)) {
4218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4219 }
4220 if (!argp2) {
4221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4222 }
4223 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4227 wxPyEndAllowThreads(__tstate);
4228 if (PyErr_Occurred()) SWIG_fail;
4229 }
4230 resultobj = SWIG_Py_Void();
4231 return resultobj;
4232 fail:
4233 return NULL;
4234 }
4235
4236
4237 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4238 PyObject *resultobj = 0;
4239 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4240 wxBitmap *arg2 = 0 ;
4241 void *argp1 = 0 ;
4242 int res1 = 0 ;
4243 void *argp2 = 0 ;
4244 int res2 = 0 ;
4245 PyObject * obj0 = 0 ;
4246 PyObject * obj1 = 0 ;
4247 char * kwnames[] = {
4248 (char *) "self",(char *) "bitmap", NULL
4249 };
4250
4251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4253 if (!SWIG_IsOK(res1)) {
4254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4255 }
4256 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4258 if (!SWIG_IsOK(res2)) {
4259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4260 }
4261 if (!argp2) {
4262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4263 }
4264 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4265 {
4266 PyThreadState* __tstate = wxPyBeginAllowThreads();
4267 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4268 wxPyEndAllowThreads(__tstate);
4269 if (PyErr_Occurred()) SWIG_fail;
4270 }
4271 resultobj = SWIG_Py_Void();
4272 return resultobj;
4273 fail:
4274 return NULL;
4275 }
4276
4277
4278 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4279 PyObject *resultobj = 0;
4280 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4281 wxBitmap *arg2 = 0 ;
4282 void *argp1 = 0 ;
4283 int res1 = 0 ;
4284 void *argp2 = 0 ;
4285 int res2 = 0 ;
4286 PyObject * obj0 = 0 ;
4287 PyObject * obj1 = 0 ;
4288 char * kwnames[] = {
4289 (char *) "self",(char *) "bitmap", NULL
4290 };
4291
4292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4294 if (!SWIG_IsOK(res1)) {
4295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4296 }
4297 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4299 if (!SWIG_IsOK(res2)) {
4300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4301 }
4302 if (!argp2) {
4303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4304 }
4305 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4306 {
4307 PyThreadState* __tstate = wxPyBeginAllowThreads();
4308 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4309 wxPyEndAllowThreads(__tstate);
4310 if (PyErr_Occurred()) SWIG_fail;
4311 }
4312 resultobj = SWIG_Py_Void();
4313 return resultobj;
4314 fail:
4315 return NULL;
4316 }
4317
4318
4319 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4320 PyObject *resultobj = 0;
4321 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4322 wxBitmap *arg2 = 0 ;
4323 void *argp1 = 0 ;
4324 int res1 = 0 ;
4325 void *argp2 = 0 ;
4326 int res2 = 0 ;
4327 PyObject * obj0 = 0 ;
4328 PyObject * obj1 = 0 ;
4329 char * kwnames[] = {
4330 (char *) "self",(char *) "hover", NULL
4331 };
4332
4333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4335 if (!SWIG_IsOK(res1)) {
4336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4337 }
4338 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4340 if (!SWIG_IsOK(res2)) {
4341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4342 }
4343 if (!argp2) {
4344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4345 }
4346 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 resultobj = SWIG_Py_Void();
4354 return resultobj;
4355 fail:
4356 return NULL;
4357 }
4358
4359
4360 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4361 PyObject *resultobj = 0;
4362 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4363 int arg2 ;
4364 int arg3 ;
4365 void *argp1 = 0 ;
4366 int res1 = 0 ;
4367 int val2 ;
4368 int ecode2 = 0 ;
4369 int val3 ;
4370 int ecode3 = 0 ;
4371 PyObject * obj0 = 0 ;
4372 PyObject * obj1 = 0 ;
4373 PyObject * obj2 = 0 ;
4374 char * kwnames[] = {
4375 (char *) "self",(char *) "x",(char *) "y", NULL
4376 };
4377
4378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4380 if (!SWIG_IsOK(res1)) {
4381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4382 }
4383 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4384 ecode2 = SWIG_AsVal_int(obj1, &val2);
4385 if (!SWIG_IsOK(ecode2)) {
4386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4387 }
4388 arg2 = static_cast< int >(val2);
4389 ecode3 = SWIG_AsVal_int(obj2, &val3);
4390 if (!SWIG_IsOK(ecode3)) {
4391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4392 }
4393 arg3 = static_cast< int >(val3);
4394 {
4395 PyThreadState* __tstate = wxPyBeginAllowThreads();
4396 (arg1)->SetMargins(arg2,arg3);
4397 wxPyEndAllowThreads(__tstate);
4398 if (PyErr_Occurred()) SWIG_fail;
4399 }
4400 resultobj = SWIG_Py_Void();
4401 return resultobj;
4402 fail:
4403 return NULL;
4404 }
4405
4406
4407 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4408 PyObject *resultobj = 0;
4409 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4410 int result;
4411 void *argp1 = 0 ;
4412 int res1 = 0 ;
4413 PyObject *swig_obj[1] ;
4414
4415 if (!args) SWIG_fail;
4416 swig_obj[0] = args;
4417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4418 if (!SWIG_IsOK(res1)) {
4419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4420 }
4421 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4422 {
4423 PyThreadState* __tstate = wxPyBeginAllowThreads();
4424 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4425 wxPyEndAllowThreads(__tstate);
4426 if (PyErr_Occurred()) SWIG_fail;
4427 }
4428 resultobj = SWIG_From_int(static_cast< int >(result));
4429 return resultobj;
4430 fail:
4431 return NULL;
4432 }
4433
4434
4435 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4436 PyObject *resultobj = 0;
4437 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4438 int result;
4439 void *argp1 = 0 ;
4440 int res1 = 0 ;
4441 PyObject *swig_obj[1] ;
4442
4443 if (!args) SWIG_fail;
4444 swig_obj[0] = args;
4445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4446 if (!SWIG_IsOK(res1)) {
4447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4448 }
4449 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4450 {
4451 PyThreadState* __tstate = wxPyBeginAllowThreads();
4452 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4453 wxPyEndAllowThreads(__tstate);
4454 if (PyErr_Occurred()) SWIG_fail;
4455 }
4456 resultobj = SWIG_From_int(static_cast< int >(result));
4457 return resultobj;
4458 fail:
4459 return NULL;
4460 }
4461
4462
4463 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4464 PyObject *obj;
4465 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4466 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4467 return SWIG_Py_Void();
4468 }
4469
4470 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4471 return SWIG_Python_InitShadowInstance(args);
4472 }
4473
4474 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4475 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4476 return 1;
4477 }
4478
4479
4480 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4481 PyObject *pyobj = 0;
4482
4483 {
4484 #if wxUSE_UNICODE
4485 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4486 #else
4487 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4488 #endif
4489 }
4490 return pyobj;
4491 }
4492
4493
4494 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4495 PyObject *resultobj = 0;
4496 wxWindow *arg1 = (wxWindow *) 0 ;
4497 int arg2 = (int) -1 ;
4498 wxString const &arg3_defvalue = wxPyEmptyString ;
4499 wxString *arg3 = (wxString *) &arg3_defvalue ;
4500 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4501 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4502 wxSize const &arg5_defvalue = wxDefaultSize ;
4503 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4504 long arg6 = (long) 0 ;
4505 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4506 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4507 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4508 wxString *arg8 = (wxString *) &arg8_defvalue ;
4509 wxCheckBox *result = 0 ;
4510 void *argp1 = 0 ;
4511 int res1 = 0 ;
4512 int val2 ;
4513 int ecode2 = 0 ;
4514 bool temp3 = false ;
4515 wxPoint temp4 ;
4516 wxSize temp5 ;
4517 long val6 ;
4518 int ecode6 = 0 ;
4519 void *argp7 = 0 ;
4520 int res7 = 0 ;
4521 bool temp8 = false ;
4522 PyObject * obj0 = 0 ;
4523 PyObject * obj1 = 0 ;
4524 PyObject * obj2 = 0 ;
4525 PyObject * obj3 = 0 ;
4526 PyObject * obj4 = 0 ;
4527 PyObject * obj5 = 0 ;
4528 PyObject * obj6 = 0 ;
4529 PyObject * obj7 = 0 ;
4530 char * kwnames[] = {
4531 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4532 };
4533
4534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4536 if (!SWIG_IsOK(res1)) {
4537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4538 }
4539 arg1 = reinterpret_cast< wxWindow * >(argp1);
4540 if (obj1) {
4541 ecode2 = SWIG_AsVal_int(obj1, &val2);
4542 if (!SWIG_IsOK(ecode2)) {
4543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4544 }
4545 arg2 = static_cast< int >(val2);
4546 }
4547 if (obj2) {
4548 {
4549 arg3 = wxString_in_helper(obj2);
4550 if (arg3 == NULL) SWIG_fail;
4551 temp3 = true;
4552 }
4553 }
4554 if (obj3) {
4555 {
4556 arg4 = &temp4;
4557 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4558 }
4559 }
4560 if (obj4) {
4561 {
4562 arg5 = &temp5;
4563 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4564 }
4565 }
4566 if (obj5) {
4567 ecode6 = SWIG_AsVal_long(obj5, &val6);
4568 if (!SWIG_IsOK(ecode6)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4570 }
4571 arg6 = static_cast< long >(val6);
4572 }
4573 if (obj6) {
4574 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4575 if (!SWIG_IsOK(res7)) {
4576 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4577 }
4578 if (!argp7) {
4579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4580 }
4581 arg7 = reinterpret_cast< wxValidator * >(argp7);
4582 }
4583 if (obj7) {
4584 {
4585 arg8 = wxString_in_helper(obj7);
4586 if (arg8 == NULL) SWIG_fail;
4587 temp8 = true;
4588 }
4589 }
4590 {
4591 if (!wxPyCheckForApp()) SWIG_fail;
4592 PyThreadState* __tstate = wxPyBeginAllowThreads();
4593 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4594 wxPyEndAllowThreads(__tstate);
4595 if (PyErr_Occurred()) SWIG_fail;
4596 }
4597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4598 {
4599 if (temp3)
4600 delete arg3;
4601 }
4602 {
4603 if (temp8)
4604 delete arg8;
4605 }
4606 return resultobj;
4607 fail:
4608 {
4609 if (temp3)
4610 delete arg3;
4611 }
4612 {
4613 if (temp8)
4614 delete arg8;
4615 }
4616 return NULL;
4617 }
4618
4619
4620 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4621 PyObject *resultobj = 0;
4622 wxCheckBox *result = 0 ;
4623
4624 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4625 {
4626 if (!wxPyCheckForApp()) SWIG_fail;
4627 PyThreadState* __tstate = wxPyBeginAllowThreads();
4628 result = (wxCheckBox *)new wxCheckBox();
4629 wxPyEndAllowThreads(__tstate);
4630 if (PyErr_Occurred()) SWIG_fail;
4631 }
4632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4633 return resultobj;
4634 fail:
4635 return NULL;
4636 }
4637
4638
4639 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4640 PyObject *resultobj = 0;
4641 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4642 wxWindow *arg2 = (wxWindow *) 0 ;
4643 int arg3 = (int) -1 ;
4644 wxString const &arg4_defvalue = wxPyEmptyString ;
4645 wxString *arg4 = (wxString *) &arg4_defvalue ;
4646 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4647 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4648 wxSize const &arg6_defvalue = wxDefaultSize ;
4649 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4650 long arg7 = (long) 0 ;
4651 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4652 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4653 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4654 wxString *arg9 = (wxString *) &arg9_defvalue ;
4655 bool result;
4656 void *argp1 = 0 ;
4657 int res1 = 0 ;
4658 void *argp2 = 0 ;
4659 int res2 = 0 ;
4660 int val3 ;
4661 int ecode3 = 0 ;
4662 bool temp4 = false ;
4663 wxPoint temp5 ;
4664 wxSize temp6 ;
4665 long val7 ;
4666 int ecode7 = 0 ;
4667 void *argp8 = 0 ;
4668 int res8 = 0 ;
4669 bool temp9 = false ;
4670 PyObject * obj0 = 0 ;
4671 PyObject * obj1 = 0 ;
4672 PyObject * obj2 = 0 ;
4673 PyObject * obj3 = 0 ;
4674 PyObject * obj4 = 0 ;
4675 PyObject * obj5 = 0 ;
4676 PyObject * obj6 = 0 ;
4677 PyObject * obj7 = 0 ;
4678 PyObject * obj8 = 0 ;
4679 char * kwnames[] = {
4680 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4681 };
4682
4683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4685 if (!SWIG_IsOK(res1)) {
4686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4687 }
4688 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4689 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4690 if (!SWIG_IsOK(res2)) {
4691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4692 }
4693 arg2 = reinterpret_cast< wxWindow * >(argp2);
4694 if (obj2) {
4695 ecode3 = SWIG_AsVal_int(obj2, &val3);
4696 if (!SWIG_IsOK(ecode3)) {
4697 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4698 }
4699 arg3 = static_cast< int >(val3);
4700 }
4701 if (obj3) {
4702 {
4703 arg4 = wxString_in_helper(obj3);
4704 if (arg4 == NULL) SWIG_fail;
4705 temp4 = true;
4706 }
4707 }
4708 if (obj4) {
4709 {
4710 arg5 = &temp5;
4711 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4712 }
4713 }
4714 if (obj5) {
4715 {
4716 arg6 = &temp6;
4717 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4718 }
4719 }
4720 if (obj6) {
4721 ecode7 = SWIG_AsVal_long(obj6, &val7);
4722 if (!SWIG_IsOK(ecode7)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4724 }
4725 arg7 = static_cast< long >(val7);
4726 }
4727 if (obj7) {
4728 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4729 if (!SWIG_IsOK(res8)) {
4730 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4731 }
4732 if (!argp8) {
4733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4734 }
4735 arg8 = reinterpret_cast< wxValidator * >(argp8);
4736 }
4737 if (obj8) {
4738 {
4739 arg9 = wxString_in_helper(obj8);
4740 if (arg9 == NULL) SWIG_fail;
4741 temp9 = true;
4742 }
4743 }
4744 {
4745 PyThreadState* __tstate = wxPyBeginAllowThreads();
4746 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4747 wxPyEndAllowThreads(__tstate);
4748 if (PyErr_Occurred()) SWIG_fail;
4749 }
4750 {
4751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4752 }
4753 {
4754 if (temp4)
4755 delete arg4;
4756 }
4757 {
4758 if (temp9)
4759 delete arg9;
4760 }
4761 return resultobj;
4762 fail:
4763 {
4764 if (temp4)
4765 delete arg4;
4766 }
4767 {
4768 if (temp9)
4769 delete arg9;
4770 }
4771 return NULL;
4772 }
4773
4774
4775 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4776 PyObject *resultobj = 0;
4777 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4778 bool result;
4779 void *argp1 = 0 ;
4780 int res1 = 0 ;
4781 PyObject *swig_obj[1] ;
4782
4783 if (!args) SWIG_fail;
4784 swig_obj[0] = args;
4785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4786 if (!SWIG_IsOK(res1)) {
4787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4788 }
4789 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4790 {
4791 PyThreadState* __tstate = wxPyBeginAllowThreads();
4792 result = (bool)(arg1)->GetValue();
4793 wxPyEndAllowThreads(__tstate);
4794 if (PyErr_Occurred()) SWIG_fail;
4795 }
4796 {
4797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4798 }
4799 return resultobj;
4800 fail:
4801 return NULL;
4802 }
4803
4804
4805 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4806 PyObject *resultobj = 0;
4807 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4808 bool result;
4809 void *argp1 = 0 ;
4810 int res1 = 0 ;
4811 PyObject *swig_obj[1] ;
4812
4813 if (!args) SWIG_fail;
4814 swig_obj[0] = args;
4815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4816 if (!SWIG_IsOK(res1)) {
4817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4818 }
4819 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4820 {
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (bool)(arg1)->IsChecked();
4823 wxPyEndAllowThreads(__tstate);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 }
4826 {
4827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4828 }
4829 return resultobj;
4830 fail:
4831 return NULL;
4832 }
4833
4834
4835 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4836 PyObject *resultobj = 0;
4837 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4838 bool arg2 ;
4839 void *argp1 = 0 ;
4840 int res1 = 0 ;
4841 bool val2 ;
4842 int ecode2 = 0 ;
4843 PyObject * obj0 = 0 ;
4844 PyObject * obj1 = 0 ;
4845 char * kwnames[] = {
4846 (char *) "self",(char *) "state", NULL
4847 };
4848
4849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4851 if (!SWIG_IsOK(res1)) {
4852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4853 }
4854 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4855 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4856 if (!SWIG_IsOK(ecode2)) {
4857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4858 }
4859 arg2 = static_cast< bool >(val2);
4860 {
4861 PyThreadState* __tstate = wxPyBeginAllowThreads();
4862 (arg1)->SetValue(arg2);
4863 wxPyEndAllowThreads(__tstate);
4864 if (PyErr_Occurred()) SWIG_fail;
4865 }
4866 resultobj = SWIG_Py_Void();
4867 return resultobj;
4868 fail:
4869 return NULL;
4870 }
4871
4872
4873 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4874 PyObject *resultobj = 0;
4875 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4876 wxCheckBoxState result;
4877 void *argp1 = 0 ;
4878 int res1 = 0 ;
4879 PyObject *swig_obj[1] ;
4880
4881 if (!args) SWIG_fail;
4882 swig_obj[0] = args;
4883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4884 if (!SWIG_IsOK(res1)) {
4885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4886 }
4887 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4888 {
4889 PyThreadState* __tstate = wxPyBeginAllowThreads();
4890 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4891 wxPyEndAllowThreads(__tstate);
4892 if (PyErr_Occurred()) SWIG_fail;
4893 }
4894 resultobj = SWIG_From_int(static_cast< int >(result));
4895 return resultobj;
4896 fail:
4897 return NULL;
4898 }
4899
4900
4901 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4902 PyObject *resultobj = 0;
4903 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4904 wxCheckBoxState arg2 ;
4905 void *argp1 = 0 ;
4906 int res1 = 0 ;
4907 int val2 ;
4908 int ecode2 = 0 ;
4909 PyObject * obj0 = 0 ;
4910 PyObject * obj1 = 0 ;
4911 char * kwnames[] = {
4912 (char *) "self",(char *) "state", NULL
4913 };
4914
4915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4917 if (!SWIG_IsOK(res1)) {
4918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4919 }
4920 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4921 ecode2 = SWIG_AsVal_int(obj1, &val2);
4922 if (!SWIG_IsOK(ecode2)) {
4923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4924 }
4925 arg2 = static_cast< wxCheckBoxState >(val2);
4926 {
4927 PyThreadState* __tstate = wxPyBeginAllowThreads();
4928 (arg1)->Set3StateValue(arg2);
4929 wxPyEndAllowThreads(__tstate);
4930 if (PyErr_Occurred()) SWIG_fail;
4931 }
4932 resultobj = SWIG_Py_Void();
4933 return resultobj;
4934 fail:
4935 return NULL;
4936 }
4937
4938
4939 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4940 PyObject *resultobj = 0;
4941 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4942 bool result;
4943 void *argp1 = 0 ;
4944 int res1 = 0 ;
4945 PyObject *swig_obj[1] ;
4946
4947 if (!args) SWIG_fail;
4948 swig_obj[0] = args;
4949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4950 if (!SWIG_IsOK(res1)) {
4951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4952 }
4953 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4954 {
4955 PyThreadState* __tstate = wxPyBeginAllowThreads();
4956 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4957 wxPyEndAllowThreads(__tstate);
4958 if (PyErr_Occurred()) SWIG_fail;
4959 }
4960 {
4961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4962 }
4963 return resultobj;
4964 fail:
4965 return NULL;
4966 }
4967
4968
4969 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4970 PyObject *resultobj = 0;
4971 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4972 bool result;
4973 void *argp1 = 0 ;
4974 int res1 = 0 ;
4975 PyObject *swig_obj[1] ;
4976
4977 if (!args) SWIG_fail;
4978 swig_obj[0] = args;
4979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4980 if (!SWIG_IsOK(res1)) {
4981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4982 }
4983 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4987 wxPyEndAllowThreads(__tstate);
4988 if (PyErr_Occurred()) SWIG_fail;
4989 }
4990 {
4991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4992 }
4993 return resultobj;
4994 fail:
4995 return NULL;
4996 }
4997
4998
4999 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5000 PyObject *resultobj = 0;
5001 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5002 SwigValueWrapper<wxVisualAttributes > result;
5003 int val1 ;
5004 int ecode1 = 0 ;
5005 PyObject * obj0 = 0 ;
5006 char * kwnames[] = {
5007 (char *) "variant", NULL
5008 };
5009
5010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5011 if (obj0) {
5012 ecode1 = SWIG_AsVal_int(obj0, &val1);
5013 if (!SWIG_IsOK(ecode1)) {
5014 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5015 }
5016 arg1 = static_cast< wxWindowVariant >(val1);
5017 }
5018 {
5019 if (!wxPyCheckForApp()) SWIG_fail;
5020 PyThreadState* __tstate = wxPyBeginAllowThreads();
5021 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5022 wxPyEndAllowThreads(__tstate);
5023 if (PyErr_Occurred()) SWIG_fail;
5024 }
5025 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5026 return resultobj;
5027 fail:
5028 return NULL;
5029 }
5030
5031
5032 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5033 PyObject *obj;
5034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5035 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5036 return SWIG_Py_Void();
5037 }
5038
5039 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5040 return SWIG_Python_InitShadowInstance(args);
5041 }
5042
5043 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5044 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5045 return 1;
5046 }
5047
5048
5049 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5050 PyObject *pyobj = 0;
5051
5052 {
5053 #if wxUSE_UNICODE
5054 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5055 #else
5056 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5057 #endif
5058 }
5059 return pyobj;
5060 }
5061
5062
5063 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5064 PyObject *resultobj = 0;
5065 wxWindow *arg1 = (wxWindow *) 0 ;
5066 int arg2 = (int) -1 ;
5067 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5068 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5069 wxSize const &arg4_defvalue = wxDefaultSize ;
5070 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5071 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5072 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5073 long arg6 = (long) 0 ;
5074 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5075 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5076 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5077 wxString *arg8 = (wxString *) &arg8_defvalue ;
5078 wxChoice *result = 0 ;
5079 void *argp1 = 0 ;
5080 int res1 = 0 ;
5081 int val2 ;
5082 int ecode2 = 0 ;
5083 wxPoint temp3 ;
5084 wxSize temp4 ;
5085 bool temp5 = false ;
5086 long val6 ;
5087 int ecode6 = 0 ;
5088 void *argp7 = 0 ;
5089 int res7 = 0 ;
5090 bool temp8 = false ;
5091 PyObject * obj0 = 0 ;
5092 PyObject * obj1 = 0 ;
5093 PyObject * obj2 = 0 ;
5094 PyObject * obj3 = 0 ;
5095 PyObject * obj4 = 0 ;
5096 PyObject * obj5 = 0 ;
5097 PyObject * obj6 = 0 ;
5098 PyObject * obj7 = 0 ;
5099 char * kwnames[] = {
5100 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5101 };
5102
5103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5105 if (!SWIG_IsOK(res1)) {
5106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5107 }
5108 arg1 = reinterpret_cast< wxWindow * >(argp1);
5109 if (obj1) {
5110 ecode2 = SWIG_AsVal_int(obj1, &val2);
5111 if (!SWIG_IsOK(ecode2)) {
5112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5113 }
5114 arg2 = static_cast< int >(val2);
5115 }
5116 if (obj2) {
5117 {
5118 arg3 = &temp3;
5119 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5120 }
5121 }
5122 if (obj3) {
5123 {
5124 arg4 = &temp4;
5125 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5126 }
5127 }
5128 if (obj4) {
5129 {
5130 if (! PySequence_Check(obj4)) {
5131 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5132 SWIG_fail;
5133 }
5134 arg5 = new wxArrayString;
5135 temp5 = true;
5136 int i, len=PySequence_Length(obj4);
5137 for (i=0; i<len; i++) {
5138 PyObject* item = PySequence_GetItem(obj4, i);
5139 wxString* s = wxString_in_helper(item);
5140 if (PyErr_Occurred()) SWIG_fail;
5141 arg5->Add(*s);
5142 delete s;
5143 Py_DECREF(item);
5144 }
5145 }
5146 }
5147 if (obj5) {
5148 ecode6 = SWIG_AsVal_long(obj5, &val6);
5149 if (!SWIG_IsOK(ecode6)) {
5150 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5151 }
5152 arg6 = static_cast< long >(val6);
5153 }
5154 if (obj6) {
5155 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5156 if (!SWIG_IsOK(res7)) {
5157 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5158 }
5159 if (!argp7) {
5160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5161 }
5162 arg7 = reinterpret_cast< wxValidator * >(argp7);
5163 }
5164 if (obj7) {
5165 {
5166 arg8 = wxString_in_helper(obj7);
5167 if (arg8 == NULL) SWIG_fail;
5168 temp8 = true;
5169 }
5170 }
5171 {
5172 if (!wxPyCheckForApp()) SWIG_fail;
5173 PyThreadState* __tstate = wxPyBeginAllowThreads();
5174 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 }
5178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5179 {
5180 if (temp5) delete arg5;
5181 }
5182 {
5183 if (temp8)
5184 delete arg8;
5185 }
5186 return resultobj;
5187 fail:
5188 {
5189 if (temp5) delete arg5;
5190 }
5191 {
5192 if (temp8)
5193 delete arg8;
5194 }
5195 return NULL;
5196 }
5197
5198
5199 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5200 PyObject *resultobj = 0;
5201 wxChoice *result = 0 ;
5202
5203 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5204 {
5205 if (!wxPyCheckForApp()) SWIG_fail;
5206 PyThreadState* __tstate = wxPyBeginAllowThreads();
5207 result = (wxChoice *)new wxChoice();
5208 wxPyEndAllowThreads(__tstate);
5209 if (PyErr_Occurred()) SWIG_fail;
5210 }
5211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5212 return resultobj;
5213 fail:
5214 return NULL;
5215 }
5216
5217
5218 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5219 PyObject *resultobj = 0;
5220 wxChoice *arg1 = (wxChoice *) 0 ;
5221 wxWindow *arg2 = (wxWindow *) 0 ;
5222 int arg3 = (int) -1 ;
5223 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5224 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5225 wxSize const &arg5_defvalue = wxDefaultSize ;
5226 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5227 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5228 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5229 long arg7 = (long) 0 ;
5230 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5231 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5232 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5233 wxString *arg9 = (wxString *) &arg9_defvalue ;
5234 bool result;
5235 void *argp1 = 0 ;
5236 int res1 = 0 ;
5237 void *argp2 = 0 ;
5238 int res2 = 0 ;
5239 int val3 ;
5240 int ecode3 = 0 ;
5241 wxPoint temp4 ;
5242 wxSize temp5 ;
5243 bool temp6 = false ;
5244 long val7 ;
5245 int ecode7 = 0 ;
5246 void *argp8 = 0 ;
5247 int res8 = 0 ;
5248 bool temp9 = false ;
5249 PyObject * obj0 = 0 ;
5250 PyObject * obj1 = 0 ;
5251 PyObject * obj2 = 0 ;
5252 PyObject * obj3 = 0 ;
5253 PyObject * obj4 = 0 ;
5254 PyObject * obj5 = 0 ;
5255 PyObject * obj6 = 0 ;
5256 PyObject * obj7 = 0 ;
5257 PyObject * obj8 = 0 ;
5258 char * kwnames[] = {
5259 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5260 };
5261
5262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5264 if (!SWIG_IsOK(res1)) {
5265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5266 }
5267 arg1 = reinterpret_cast< wxChoice * >(argp1);
5268 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5269 if (!SWIG_IsOK(res2)) {
5270 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5271 }
5272 arg2 = reinterpret_cast< wxWindow * >(argp2);
5273 if (obj2) {
5274 ecode3 = SWIG_AsVal_int(obj2, &val3);
5275 if (!SWIG_IsOK(ecode3)) {
5276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5277 }
5278 arg3 = static_cast< int >(val3);
5279 }
5280 if (obj3) {
5281 {
5282 arg4 = &temp4;
5283 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5284 }
5285 }
5286 if (obj4) {
5287 {
5288 arg5 = &temp5;
5289 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5290 }
5291 }
5292 if (obj5) {
5293 {
5294 if (! PySequence_Check(obj5)) {
5295 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5296 SWIG_fail;
5297 }
5298 arg6 = new wxArrayString;
5299 temp6 = true;
5300 int i, len=PySequence_Length(obj5);
5301 for (i=0; i<len; i++) {
5302 PyObject* item = PySequence_GetItem(obj5, i);
5303 wxString* s = wxString_in_helper(item);
5304 if (PyErr_Occurred()) SWIG_fail;
5305 arg6->Add(*s);
5306 delete s;
5307 Py_DECREF(item);
5308 }
5309 }
5310 }
5311 if (obj6) {
5312 ecode7 = SWIG_AsVal_long(obj6, &val7);
5313 if (!SWIG_IsOK(ecode7)) {
5314 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5315 }
5316 arg7 = static_cast< long >(val7);
5317 }
5318 if (obj7) {
5319 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5320 if (!SWIG_IsOK(res8)) {
5321 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5322 }
5323 if (!argp8) {
5324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5325 }
5326 arg8 = reinterpret_cast< wxValidator * >(argp8);
5327 }
5328 if (obj8) {
5329 {
5330 arg9 = wxString_in_helper(obj8);
5331 if (arg9 == NULL) SWIG_fail;
5332 temp9 = true;
5333 }
5334 }
5335 {
5336 PyThreadState* __tstate = wxPyBeginAllowThreads();
5337 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5338 wxPyEndAllowThreads(__tstate);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 }
5341 {
5342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5343 }
5344 {
5345 if (temp6) delete arg6;
5346 }
5347 {
5348 if (temp9)
5349 delete arg9;
5350 }
5351 return resultobj;
5352 fail:
5353 {
5354 if (temp6) delete arg6;
5355 }
5356 {
5357 if (temp9)
5358 delete arg9;
5359 }
5360 return NULL;
5361 }
5362
5363
5364 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5365 PyObject *resultobj = 0;
5366 wxChoice *arg1 = (wxChoice *) 0 ;
5367 int result;
5368 void *argp1 = 0 ;
5369 int res1 = 0 ;
5370 PyObject *swig_obj[1] ;
5371
5372 if (!args) SWIG_fail;
5373 swig_obj[0] = args;
5374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5375 if (!SWIG_IsOK(res1)) {
5376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5377 }
5378 arg1 = reinterpret_cast< wxChoice * >(argp1);
5379 {
5380 PyThreadState* __tstate = wxPyBeginAllowThreads();
5381 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5382 wxPyEndAllowThreads(__tstate);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 }
5385 resultobj = SWIG_From_int(static_cast< int >(result));
5386 return resultobj;
5387 fail:
5388 return NULL;
5389 }
5390
5391
5392 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5393 PyObject *resultobj = 0;
5394 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5395 SwigValueWrapper<wxVisualAttributes > result;
5396 int val1 ;
5397 int ecode1 = 0 ;
5398 PyObject * obj0 = 0 ;
5399 char * kwnames[] = {
5400 (char *) "variant", NULL
5401 };
5402
5403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5404 if (obj0) {
5405 ecode1 = SWIG_AsVal_int(obj0, &val1);
5406 if (!SWIG_IsOK(ecode1)) {
5407 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5408 }
5409 arg1 = static_cast< wxWindowVariant >(val1);
5410 }
5411 {
5412 if (!wxPyCheckForApp()) SWIG_fail;
5413 PyThreadState* __tstate = wxPyBeginAllowThreads();
5414 result = wxChoice::GetClassDefaultAttributes(arg1);
5415 wxPyEndAllowThreads(__tstate);
5416 if (PyErr_Occurred()) SWIG_fail;
5417 }
5418 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5419 return resultobj;
5420 fail:
5421 return NULL;
5422 }
5423
5424
5425 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5426 PyObject *obj;
5427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5428 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5429 return SWIG_Py_Void();
5430 }
5431
5432 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5433 return SWIG_Python_InitShadowInstance(args);
5434 }
5435
5436 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5437 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5438 return 1;
5439 }
5440
5441
5442 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5443 PyObject *pyobj = 0;
5444
5445 {
5446 #if wxUSE_UNICODE
5447 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5448 #else
5449 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5450 #endif
5451 }
5452 return pyobj;
5453 }
5454
5455
5456 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5457 PyObject *resultobj = 0;
5458 wxWindow *arg1 = (wxWindow *) 0 ;
5459 int arg2 = (int) -1 ;
5460 wxString const &arg3_defvalue = wxPyEmptyString ;
5461 wxString *arg3 = (wxString *) &arg3_defvalue ;
5462 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5463 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5464 wxSize const &arg5_defvalue = wxDefaultSize ;
5465 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5466 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5467 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5468 long arg7 = (long) 0 ;
5469 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5470 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5471 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5472 wxString *arg9 = (wxString *) &arg9_defvalue ;
5473 wxComboBox *result = 0 ;
5474 void *argp1 = 0 ;
5475 int res1 = 0 ;
5476 int val2 ;
5477 int ecode2 = 0 ;
5478 bool temp3 = false ;
5479 wxPoint temp4 ;
5480 wxSize temp5 ;
5481 bool temp6 = false ;
5482 long val7 ;
5483 int ecode7 = 0 ;
5484 void *argp8 = 0 ;
5485 int res8 = 0 ;
5486 bool temp9 = false ;
5487 PyObject * obj0 = 0 ;
5488 PyObject * obj1 = 0 ;
5489 PyObject * obj2 = 0 ;
5490 PyObject * obj3 = 0 ;
5491 PyObject * obj4 = 0 ;
5492 PyObject * obj5 = 0 ;
5493 PyObject * obj6 = 0 ;
5494 PyObject * obj7 = 0 ;
5495 PyObject * obj8 = 0 ;
5496 char * kwnames[] = {
5497 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5498 };
5499
5500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5502 if (!SWIG_IsOK(res1)) {
5503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5504 }
5505 arg1 = reinterpret_cast< wxWindow * >(argp1);
5506 if (obj1) {
5507 ecode2 = SWIG_AsVal_int(obj1, &val2);
5508 if (!SWIG_IsOK(ecode2)) {
5509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5510 }
5511 arg2 = static_cast< int >(val2);
5512 }
5513 if (obj2) {
5514 {
5515 arg3 = wxString_in_helper(obj2);
5516 if (arg3 == NULL) SWIG_fail;
5517 temp3 = true;
5518 }
5519 }
5520 if (obj3) {
5521 {
5522 arg4 = &temp4;
5523 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5524 }
5525 }
5526 if (obj4) {
5527 {
5528 arg5 = &temp5;
5529 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5530 }
5531 }
5532 if (obj5) {
5533 {
5534 if (! PySequence_Check(obj5)) {
5535 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5536 SWIG_fail;
5537 }
5538 arg6 = new wxArrayString;
5539 temp6 = true;
5540 int i, len=PySequence_Length(obj5);
5541 for (i=0; i<len; i++) {
5542 PyObject* item = PySequence_GetItem(obj5, i);
5543 wxString* s = wxString_in_helper(item);
5544 if (PyErr_Occurred()) SWIG_fail;
5545 arg6->Add(*s);
5546 delete s;
5547 Py_DECREF(item);
5548 }
5549 }
5550 }
5551 if (obj6) {
5552 ecode7 = SWIG_AsVal_long(obj6, &val7);
5553 if (!SWIG_IsOK(ecode7)) {
5554 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5555 }
5556 arg7 = static_cast< long >(val7);
5557 }
5558 if (obj7) {
5559 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5560 if (!SWIG_IsOK(res8)) {
5561 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5562 }
5563 if (!argp8) {
5564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5565 }
5566 arg8 = reinterpret_cast< wxValidator * >(argp8);
5567 }
5568 if (obj8) {
5569 {
5570 arg9 = wxString_in_helper(obj8);
5571 if (arg9 == NULL) SWIG_fail;
5572 temp9 = true;
5573 }
5574 }
5575 {
5576 if (!wxPyCheckForApp()) SWIG_fail;
5577 PyThreadState* __tstate = wxPyBeginAllowThreads();
5578 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);
5579 wxPyEndAllowThreads(__tstate);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 }
5582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5583 {
5584 if (temp3)
5585 delete arg3;
5586 }
5587 {
5588 if (temp6) delete arg6;
5589 }
5590 {
5591 if (temp9)
5592 delete arg9;
5593 }
5594 return resultobj;
5595 fail:
5596 {
5597 if (temp3)
5598 delete arg3;
5599 }
5600 {
5601 if (temp6) delete arg6;
5602 }
5603 {
5604 if (temp9)
5605 delete arg9;
5606 }
5607 return NULL;
5608 }
5609
5610
5611 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5612 PyObject *resultobj = 0;
5613 wxComboBox *result = 0 ;
5614
5615 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5616 {
5617 if (!wxPyCheckForApp()) SWIG_fail;
5618 PyThreadState* __tstate = wxPyBeginAllowThreads();
5619 result = (wxComboBox *)new wxComboBox();
5620 wxPyEndAllowThreads(__tstate);
5621 if (PyErr_Occurred()) SWIG_fail;
5622 }
5623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5624 return resultobj;
5625 fail:
5626 return NULL;
5627 }
5628
5629
5630 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5631 PyObject *resultobj = 0;
5632 wxComboBox *arg1 = (wxComboBox *) 0 ;
5633 wxWindow *arg2 = (wxWindow *) 0 ;
5634 int arg3 = (int) -1 ;
5635 wxString const &arg4_defvalue = wxPyEmptyString ;
5636 wxString *arg4 = (wxString *) &arg4_defvalue ;
5637 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5638 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5639 wxSize const &arg6_defvalue = wxDefaultSize ;
5640 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5641 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5642 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5643 long arg8 = (long) 0 ;
5644 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5645 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5646 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5647 wxString *arg10 = (wxString *) &arg10_defvalue ;
5648 bool result;
5649 void *argp1 = 0 ;
5650 int res1 = 0 ;
5651 void *argp2 = 0 ;
5652 int res2 = 0 ;
5653 int val3 ;
5654 int ecode3 = 0 ;
5655 bool temp4 = false ;
5656 wxPoint temp5 ;
5657 wxSize temp6 ;
5658 bool temp7 = false ;
5659 long val8 ;
5660 int ecode8 = 0 ;
5661 void *argp9 = 0 ;
5662 int res9 = 0 ;
5663 bool temp10 = false ;
5664 PyObject * obj0 = 0 ;
5665 PyObject * obj1 = 0 ;
5666 PyObject * obj2 = 0 ;
5667 PyObject * obj3 = 0 ;
5668 PyObject * obj4 = 0 ;
5669 PyObject * obj5 = 0 ;
5670 PyObject * obj6 = 0 ;
5671 PyObject * obj7 = 0 ;
5672 PyObject * obj8 = 0 ;
5673 PyObject * obj9 = 0 ;
5674 char * kwnames[] = {
5675 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5676 };
5677
5678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5680 if (!SWIG_IsOK(res1)) {
5681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5682 }
5683 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5685 if (!SWIG_IsOK(res2)) {
5686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5687 }
5688 arg2 = reinterpret_cast< wxWindow * >(argp2);
5689 if (obj2) {
5690 ecode3 = SWIG_AsVal_int(obj2, &val3);
5691 if (!SWIG_IsOK(ecode3)) {
5692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5693 }
5694 arg3 = static_cast< int >(val3);
5695 }
5696 if (obj3) {
5697 {
5698 arg4 = wxString_in_helper(obj3);
5699 if (arg4 == NULL) SWIG_fail;
5700 temp4 = true;
5701 }
5702 }
5703 if (obj4) {
5704 {
5705 arg5 = &temp5;
5706 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5707 }
5708 }
5709 if (obj5) {
5710 {
5711 arg6 = &temp6;
5712 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5713 }
5714 }
5715 if (obj6) {
5716 {
5717 if (! PySequence_Check(obj6)) {
5718 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5719 SWIG_fail;
5720 }
5721 arg7 = new wxArrayString;
5722 temp7 = true;
5723 int i, len=PySequence_Length(obj6);
5724 for (i=0; i<len; i++) {
5725 PyObject* item = PySequence_GetItem(obj6, i);
5726 wxString* s = wxString_in_helper(item);
5727 if (PyErr_Occurred()) SWIG_fail;
5728 arg7->Add(*s);
5729 delete s;
5730 Py_DECREF(item);
5731 }
5732 }
5733 }
5734 if (obj7) {
5735 ecode8 = SWIG_AsVal_long(obj7, &val8);
5736 if (!SWIG_IsOK(ecode8)) {
5737 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5738 }
5739 arg8 = static_cast< long >(val8);
5740 }
5741 if (obj8) {
5742 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5743 if (!SWIG_IsOK(res9)) {
5744 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5745 }
5746 if (!argp9) {
5747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5748 }
5749 arg9 = reinterpret_cast< wxValidator * >(argp9);
5750 }
5751 if (obj9) {
5752 {
5753 arg10 = wxString_in_helper(obj9);
5754 if (arg10 == NULL) SWIG_fail;
5755 temp10 = true;
5756 }
5757 }
5758 {
5759 PyThreadState* __tstate = wxPyBeginAllowThreads();
5760 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);
5761 wxPyEndAllowThreads(__tstate);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 {
5765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5766 }
5767 {
5768 if (temp4)
5769 delete arg4;
5770 }
5771 {
5772 if (temp7) delete arg7;
5773 }
5774 {
5775 if (temp10)
5776 delete arg10;
5777 }
5778 return resultobj;
5779 fail:
5780 {
5781 if (temp4)
5782 delete arg4;
5783 }
5784 {
5785 if (temp7) delete arg7;
5786 }
5787 {
5788 if (temp10)
5789 delete arg10;
5790 }
5791 return NULL;
5792 }
5793
5794
5795 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5796 PyObject *resultobj = 0;
5797 wxComboBox *arg1 = (wxComboBox *) 0 ;
5798 wxString result;
5799 void *argp1 = 0 ;
5800 int res1 = 0 ;
5801 PyObject *swig_obj[1] ;
5802
5803 if (!args) SWIG_fail;
5804 swig_obj[0] = args;
5805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5806 if (!SWIG_IsOK(res1)) {
5807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5808 }
5809 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5810 {
5811 PyThreadState* __tstate = wxPyBeginAllowThreads();
5812 result = ((wxComboBox const *)arg1)->GetValue();
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 }
5816 {
5817 #if wxUSE_UNICODE
5818 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5819 #else
5820 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5821 #endif
5822 }
5823 return resultobj;
5824 fail:
5825 return NULL;
5826 }
5827
5828
5829 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5830 PyObject *resultobj = 0;
5831 wxComboBox *arg1 = (wxComboBox *) 0 ;
5832 wxString *arg2 = 0 ;
5833 void *argp1 = 0 ;
5834 int res1 = 0 ;
5835 bool temp2 = false ;
5836 PyObject * obj0 = 0 ;
5837 PyObject * obj1 = 0 ;
5838 char * kwnames[] = {
5839 (char *) "self",(char *) "value", NULL
5840 };
5841
5842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5844 if (!SWIG_IsOK(res1)) {
5845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5846 }
5847 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5848 {
5849 arg2 = wxString_in_helper(obj1);
5850 if (arg2 == NULL) SWIG_fail;
5851 temp2 = true;
5852 }
5853 {
5854 PyThreadState* __tstate = wxPyBeginAllowThreads();
5855 (arg1)->SetValue((wxString const &)*arg2);
5856 wxPyEndAllowThreads(__tstate);
5857 if (PyErr_Occurred()) SWIG_fail;
5858 }
5859 resultobj = SWIG_Py_Void();
5860 {
5861 if (temp2)
5862 delete arg2;
5863 }
5864 return resultobj;
5865 fail:
5866 {
5867 if (temp2)
5868 delete arg2;
5869 }
5870 return NULL;
5871 }
5872
5873
5874 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5875 PyObject *resultobj = 0;
5876 wxComboBox *arg1 = (wxComboBox *) 0 ;
5877 void *argp1 = 0 ;
5878 int res1 = 0 ;
5879 PyObject *swig_obj[1] ;
5880
5881 if (!args) SWIG_fail;
5882 swig_obj[0] = args;
5883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5884 if (!SWIG_IsOK(res1)) {
5885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5886 }
5887 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5888 {
5889 PyThreadState* __tstate = wxPyBeginAllowThreads();
5890 (arg1)->Copy();
5891 wxPyEndAllowThreads(__tstate);
5892 if (PyErr_Occurred()) SWIG_fail;
5893 }
5894 resultobj = SWIG_Py_Void();
5895 return resultobj;
5896 fail:
5897 return NULL;
5898 }
5899
5900
5901 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5902 PyObject *resultobj = 0;
5903 wxComboBox *arg1 = (wxComboBox *) 0 ;
5904 void *argp1 = 0 ;
5905 int res1 = 0 ;
5906 PyObject *swig_obj[1] ;
5907
5908 if (!args) SWIG_fail;
5909 swig_obj[0] = args;
5910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5911 if (!SWIG_IsOK(res1)) {
5912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5913 }
5914 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5915 {
5916 PyThreadState* __tstate = wxPyBeginAllowThreads();
5917 (arg1)->Cut();
5918 wxPyEndAllowThreads(__tstate);
5919 if (PyErr_Occurred()) SWIG_fail;
5920 }
5921 resultobj = SWIG_Py_Void();
5922 return resultobj;
5923 fail:
5924 return NULL;
5925 }
5926
5927
5928 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5929 PyObject *resultobj = 0;
5930 wxComboBox *arg1 = (wxComboBox *) 0 ;
5931 void *argp1 = 0 ;
5932 int res1 = 0 ;
5933 PyObject *swig_obj[1] ;
5934
5935 if (!args) SWIG_fail;
5936 swig_obj[0] = args;
5937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5938 if (!SWIG_IsOK(res1)) {
5939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5940 }
5941 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5942 {
5943 PyThreadState* __tstate = wxPyBeginAllowThreads();
5944 (arg1)->Paste();
5945 wxPyEndAllowThreads(__tstate);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 }
5948 resultobj = SWIG_Py_Void();
5949 return resultobj;
5950 fail:
5951 return NULL;
5952 }
5953
5954
5955 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5956 PyObject *resultobj = 0;
5957 wxComboBox *arg1 = (wxComboBox *) 0 ;
5958 long arg2 ;
5959 void *argp1 = 0 ;
5960 int res1 = 0 ;
5961 long val2 ;
5962 int ecode2 = 0 ;
5963 PyObject * obj0 = 0 ;
5964 PyObject * obj1 = 0 ;
5965 char * kwnames[] = {
5966 (char *) "self",(char *) "pos", NULL
5967 };
5968
5969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5971 if (!SWIG_IsOK(res1)) {
5972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5973 }
5974 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5975 ecode2 = SWIG_AsVal_long(obj1, &val2);
5976 if (!SWIG_IsOK(ecode2)) {
5977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5978 }
5979 arg2 = static_cast< long >(val2);
5980 {
5981 PyThreadState* __tstate = wxPyBeginAllowThreads();
5982 (arg1)->SetInsertionPoint(arg2);
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 resultobj = SWIG_Py_Void();
5987 return resultobj;
5988 fail:
5989 return NULL;
5990 }
5991
5992
5993 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5994 PyObject *resultobj = 0;
5995 wxComboBox *arg1 = (wxComboBox *) 0 ;
5996 long result;
5997 void *argp1 = 0 ;
5998 int res1 = 0 ;
5999 PyObject *swig_obj[1] ;
6000
6001 if (!args) SWIG_fail;
6002 swig_obj[0] = args;
6003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6004 if (!SWIG_IsOK(res1)) {
6005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6006 }
6007 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6008 {
6009 PyThreadState* __tstate = wxPyBeginAllowThreads();
6010 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6011 wxPyEndAllowThreads(__tstate);
6012 if (PyErr_Occurred()) SWIG_fail;
6013 }
6014 resultobj = SWIG_From_long(static_cast< long >(result));
6015 return resultobj;
6016 fail:
6017 return NULL;
6018 }
6019
6020
6021 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6022 PyObject *resultobj = 0;
6023 wxComboBox *arg1 = (wxComboBox *) 0 ;
6024 long result;
6025 void *argp1 = 0 ;
6026 int res1 = 0 ;
6027 PyObject *swig_obj[1] ;
6028
6029 if (!args) SWIG_fail;
6030 swig_obj[0] = args;
6031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6032 if (!SWIG_IsOK(res1)) {
6033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6034 }
6035 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6036 {
6037 PyThreadState* __tstate = wxPyBeginAllowThreads();
6038 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 resultobj = SWIG_From_long(static_cast< long >(result));
6043 return resultobj;
6044 fail:
6045 return NULL;
6046 }
6047
6048
6049 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6050 PyObject *resultobj = 0;
6051 wxComboBox *arg1 = (wxComboBox *) 0 ;
6052 long arg2 ;
6053 long arg3 ;
6054 wxString *arg4 = 0 ;
6055 void *argp1 = 0 ;
6056 int res1 = 0 ;
6057 long val2 ;
6058 int ecode2 = 0 ;
6059 long val3 ;
6060 int ecode3 = 0 ;
6061 bool temp4 = false ;
6062 PyObject * obj0 = 0 ;
6063 PyObject * obj1 = 0 ;
6064 PyObject * obj2 = 0 ;
6065 PyObject * obj3 = 0 ;
6066 char * kwnames[] = {
6067 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6068 };
6069
6070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6072 if (!SWIG_IsOK(res1)) {
6073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6074 }
6075 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6076 ecode2 = SWIG_AsVal_long(obj1, &val2);
6077 if (!SWIG_IsOK(ecode2)) {
6078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6079 }
6080 arg2 = static_cast< long >(val2);
6081 ecode3 = SWIG_AsVal_long(obj2, &val3);
6082 if (!SWIG_IsOK(ecode3)) {
6083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6084 }
6085 arg3 = static_cast< long >(val3);
6086 {
6087 arg4 = wxString_in_helper(obj3);
6088 if (arg4 == NULL) SWIG_fail;
6089 temp4 = true;
6090 }
6091 {
6092 PyThreadState* __tstate = wxPyBeginAllowThreads();
6093 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6094 wxPyEndAllowThreads(__tstate);
6095 if (PyErr_Occurred()) SWIG_fail;
6096 }
6097 resultobj = SWIG_Py_Void();
6098 {
6099 if (temp4)
6100 delete arg4;
6101 }
6102 return resultobj;
6103 fail:
6104 {
6105 if (temp4)
6106 delete arg4;
6107 }
6108 return NULL;
6109 }
6110
6111
6112 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6113 PyObject *resultobj = 0;
6114 wxComboBox *arg1 = (wxComboBox *) 0 ;
6115 long arg2 ;
6116 long arg3 ;
6117 void *argp1 = 0 ;
6118 int res1 = 0 ;
6119 long val2 ;
6120 int ecode2 = 0 ;
6121 long val3 ;
6122 int ecode3 = 0 ;
6123 PyObject * obj0 = 0 ;
6124 PyObject * obj1 = 0 ;
6125 PyObject * obj2 = 0 ;
6126 char * kwnames[] = {
6127 (char *) "self",(char *) "from",(char *) "to", NULL
6128 };
6129
6130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6132 if (!SWIG_IsOK(res1)) {
6133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6134 }
6135 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6136 ecode2 = SWIG_AsVal_long(obj1, &val2);
6137 if (!SWIG_IsOK(ecode2)) {
6138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6139 }
6140 arg2 = static_cast< long >(val2);
6141 ecode3 = SWIG_AsVal_long(obj2, &val3);
6142 if (!SWIG_IsOK(ecode3)) {
6143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6144 }
6145 arg3 = static_cast< long >(val3);
6146 {
6147 PyThreadState* __tstate = wxPyBeginAllowThreads();
6148 (arg1)->SetSelection(arg2,arg3);
6149 wxPyEndAllowThreads(__tstate);
6150 if (PyErr_Occurred()) SWIG_fail;
6151 }
6152 resultobj = SWIG_Py_Void();
6153 return resultobj;
6154 fail:
6155 return NULL;
6156 }
6157
6158
6159 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6160 PyObject *resultobj = 0;
6161 wxComboBox *arg1 = (wxComboBox *) 0 ;
6162 long *arg2 = (long *) 0 ;
6163 long *arg3 = (long *) 0 ;
6164 void *argp1 = 0 ;
6165 int res1 = 0 ;
6166 long temp2 ;
6167 int res2 = SWIG_TMPOBJ ;
6168 long temp3 ;
6169 int res3 = SWIG_TMPOBJ ;
6170 PyObject *swig_obj[1] ;
6171
6172 arg2 = &temp2;
6173 arg3 = &temp3;
6174 if (!args) SWIG_fail;
6175 swig_obj[0] = args;
6176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6177 if (!SWIG_IsOK(res1)) {
6178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6179 }
6180 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6181 {
6182 PyThreadState* __tstate = wxPyBeginAllowThreads();
6183 (arg1)->GetSelection(arg2,arg3);
6184 wxPyEndAllowThreads(__tstate);
6185 if (PyErr_Occurred()) SWIG_fail;
6186 }
6187 resultobj = SWIG_Py_Void();
6188 if (SWIG_IsTmpObj(res2)) {
6189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6190 } else {
6191 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6192 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6193 }
6194 if (SWIG_IsTmpObj(res3)) {
6195 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6196 } else {
6197 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6198 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6199 }
6200 return resultobj;
6201 fail:
6202 return NULL;
6203 }
6204
6205
6206 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6207 PyObject *resultobj = 0;
6208 wxComboBox *arg1 = (wxComboBox *) 0 ;
6209 int result;
6210 void *argp1 = 0 ;
6211 int res1 = 0 ;
6212 PyObject *swig_obj[1] ;
6213
6214 if (!args) SWIG_fail;
6215 swig_obj[0] = args;
6216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6217 if (!SWIG_IsOK(res1)) {
6218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6219 }
6220 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6221 {
6222 PyThreadState* __tstate = wxPyBeginAllowThreads();
6223 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6224 wxPyEndAllowThreads(__tstate);
6225 if (PyErr_Occurred()) SWIG_fail;
6226 }
6227 resultobj = SWIG_From_int(static_cast< int >(result));
6228 return resultobj;
6229 fail:
6230 return NULL;
6231 }
6232
6233
6234 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6235 PyObject *resultobj = 0;
6236 wxComboBox *arg1 = (wxComboBox *) 0 ;
6237 wxString *arg2 = 0 ;
6238 bool result;
6239 void *argp1 = 0 ;
6240 int res1 = 0 ;
6241 bool temp2 = false ;
6242 PyObject * obj0 = 0 ;
6243 PyObject * obj1 = 0 ;
6244 char * kwnames[] = {
6245 (char *) "self",(char *) "string", NULL
6246 };
6247
6248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6250 if (!SWIG_IsOK(res1)) {
6251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6252 }
6253 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6254 {
6255 arg2 = wxString_in_helper(obj1);
6256 if (arg2 == NULL) SWIG_fail;
6257 temp2 = true;
6258 }
6259 {
6260 PyThreadState* __tstate = wxPyBeginAllowThreads();
6261 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6262 wxPyEndAllowThreads(__tstate);
6263 if (PyErr_Occurred()) SWIG_fail;
6264 }
6265 {
6266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6267 }
6268 {
6269 if (temp2)
6270 delete arg2;
6271 }
6272 return resultobj;
6273 fail:
6274 {
6275 if (temp2)
6276 delete arg2;
6277 }
6278 return NULL;
6279 }
6280
6281
6282 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6283 PyObject *resultobj = 0;
6284 wxComboBox *arg1 = (wxComboBox *) 0 ;
6285 int arg2 ;
6286 wxString *arg3 = 0 ;
6287 void *argp1 = 0 ;
6288 int res1 = 0 ;
6289 int val2 ;
6290 int ecode2 = 0 ;
6291 bool temp3 = false ;
6292 PyObject * obj0 = 0 ;
6293 PyObject * obj1 = 0 ;
6294 PyObject * obj2 = 0 ;
6295 char * kwnames[] = {
6296 (char *) "self",(char *) "n",(char *) "string", NULL
6297 };
6298
6299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6301 if (!SWIG_IsOK(res1)) {
6302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6303 }
6304 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6305 ecode2 = SWIG_AsVal_int(obj1, &val2);
6306 if (!SWIG_IsOK(ecode2)) {
6307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6308 }
6309 arg2 = static_cast< int >(val2);
6310 {
6311 arg3 = wxString_in_helper(obj2);
6312 if (arg3 == NULL) SWIG_fail;
6313 temp3 = true;
6314 }
6315 {
6316 PyThreadState* __tstate = wxPyBeginAllowThreads();
6317 (arg1)->SetString(arg2,(wxString const &)*arg3);
6318 wxPyEndAllowThreads(__tstate);
6319 if (PyErr_Occurred()) SWIG_fail;
6320 }
6321 resultobj = SWIG_Py_Void();
6322 {
6323 if (temp3)
6324 delete arg3;
6325 }
6326 return resultobj;
6327 fail:
6328 {
6329 if (temp3)
6330 delete arg3;
6331 }
6332 return NULL;
6333 }
6334
6335
6336 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6337 PyObject *resultobj = 0;
6338 wxComboBox *arg1 = (wxComboBox *) 0 ;
6339 bool arg2 ;
6340 void *argp1 = 0 ;
6341 int res1 = 0 ;
6342 bool val2 ;
6343 int ecode2 = 0 ;
6344 PyObject * obj0 = 0 ;
6345 PyObject * obj1 = 0 ;
6346 char * kwnames[] = {
6347 (char *) "self",(char *) "editable", NULL
6348 };
6349
6350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6352 if (!SWIG_IsOK(res1)) {
6353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6354 }
6355 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6356 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6357 if (!SWIG_IsOK(ecode2)) {
6358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6359 }
6360 arg2 = static_cast< bool >(val2);
6361 {
6362 PyThreadState* __tstate = wxPyBeginAllowThreads();
6363 (arg1)->SetEditable(arg2);
6364 wxPyEndAllowThreads(__tstate);
6365 if (PyErr_Occurred()) SWIG_fail;
6366 }
6367 resultobj = SWIG_Py_Void();
6368 return resultobj;
6369 fail:
6370 return NULL;
6371 }
6372
6373
6374 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6375 PyObject *resultobj = 0;
6376 wxComboBox *arg1 = (wxComboBox *) 0 ;
6377 void *argp1 = 0 ;
6378 int res1 = 0 ;
6379 PyObject *swig_obj[1] ;
6380
6381 if (!args) SWIG_fail;
6382 swig_obj[0] = args;
6383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6384 if (!SWIG_IsOK(res1)) {
6385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6386 }
6387 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6388 {
6389 PyThreadState* __tstate = wxPyBeginAllowThreads();
6390 (arg1)->SetInsertionPointEnd();
6391 wxPyEndAllowThreads(__tstate);
6392 if (PyErr_Occurred()) SWIG_fail;
6393 }
6394 resultobj = SWIG_Py_Void();
6395 return resultobj;
6396 fail:
6397 return NULL;
6398 }
6399
6400
6401 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6402 PyObject *resultobj = 0;
6403 wxComboBox *arg1 = (wxComboBox *) 0 ;
6404 long arg2 ;
6405 long arg3 ;
6406 void *argp1 = 0 ;
6407 int res1 = 0 ;
6408 long val2 ;
6409 int ecode2 = 0 ;
6410 long val3 ;
6411 int ecode3 = 0 ;
6412 PyObject * obj0 = 0 ;
6413 PyObject * obj1 = 0 ;
6414 PyObject * obj2 = 0 ;
6415 char * kwnames[] = {
6416 (char *) "self",(char *) "from",(char *) "to", NULL
6417 };
6418
6419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6421 if (!SWIG_IsOK(res1)) {
6422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6423 }
6424 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6425 ecode2 = SWIG_AsVal_long(obj1, &val2);
6426 if (!SWIG_IsOK(ecode2)) {
6427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6428 }
6429 arg2 = static_cast< long >(val2);
6430 ecode3 = SWIG_AsVal_long(obj2, &val3);
6431 if (!SWIG_IsOK(ecode3)) {
6432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6433 }
6434 arg3 = static_cast< long >(val3);
6435 {
6436 PyThreadState* __tstate = wxPyBeginAllowThreads();
6437 (arg1)->Remove(arg2,arg3);
6438 wxPyEndAllowThreads(__tstate);
6439 if (PyErr_Occurred()) SWIG_fail;
6440 }
6441 resultobj = SWIG_Py_Void();
6442 return resultobj;
6443 fail:
6444 return NULL;
6445 }
6446
6447
6448 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6449 PyObject *resultobj = 0;
6450 wxComboBox *arg1 = (wxComboBox *) 0 ;
6451 bool result;
6452 void *argp1 = 0 ;
6453 int res1 = 0 ;
6454 PyObject *swig_obj[1] ;
6455
6456 if (!args) SWIG_fail;
6457 swig_obj[0] = args;
6458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6459 if (!SWIG_IsOK(res1)) {
6460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6461 }
6462 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6463 {
6464 PyThreadState* __tstate = wxPyBeginAllowThreads();
6465 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6466 wxPyEndAllowThreads(__tstate);
6467 if (PyErr_Occurred()) SWIG_fail;
6468 }
6469 {
6470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6471 }
6472 return resultobj;
6473 fail:
6474 return NULL;
6475 }
6476
6477
6478 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6479 PyObject *resultobj = 0;
6480 wxComboBox *arg1 = (wxComboBox *) 0 ;
6481 void *argp1 = 0 ;
6482 int res1 = 0 ;
6483 PyObject *swig_obj[1] ;
6484
6485 if (!args) SWIG_fail;
6486 swig_obj[0] = args;
6487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6488 if (!SWIG_IsOK(res1)) {
6489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6490 }
6491 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6492 {
6493 PyThreadState* __tstate = wxPyBeginAllowThreads();
6494 (arg1)->Undo();
6495 wxPyEndAllowThreads(__tstate);
6496 if (PyErr_Occurred()) SWIG_fail;
6497 }
6498 resultobj = SWIG_Py_Void();
6499 return resultobj;
6500 fail:
6501 return NULL;
6502 }
6503
6504
6505 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6506 PyObject *resultobj = 0;
6507 wxComboBox *arg1 = (wxComboBox *) 0 ;
6508 void *argp1 = 0 ;
6509 int res1 = 0 ;
6510 PyObject *swig_obj[1] ;
6511
6512 if (!args) SWIG_fail;
6513 swig_obj[0] = args;
6514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6515 if (!SWIG_IsOK(res1)) {
6516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6517 }
6518 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6519 {
6520 PyThreadState* __tstate = wxPyBeginAllowThreads();
6521 (arg1)->Redo();
6522 wxPyEndAllowThreads(__tstate);
6523 if (PyErr_Occurred()) SWIG_fail;
6524 }
6525 resultobj = SWIG_Py_Void();
6526 return resultobj;
6527 fail:
6528 return NULL;
6529 }
6530
6531
6532 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6533 PyObject *resultobj = 0;
6534 wxComboBox *arg1 = (wxComboBox *) 0 ;
6535 void *argp1 = 0 ;
6536 int res1 = 0 ;
6537 PyObject *swig_obj[1] ;
6538
6539 if (!args) SWIG_fail;
6540 swig_obj[0] = args;
6541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6542 if (!SWIG_IsOK(res1)) {
6543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6544 }
6545 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6546 {
6547 PyThreadState* __tstate = wxPyBeginAllowThreads();
6548 (arg1)->SelectAll();
6549 wxPyEndAllowThreads(__tstate);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 resultobj = SWIG_Py_Void();
6553 return resultobj;
6554 fail:
6555 return NULL;
6556 }
6557
6558
6559 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6560 PyObject *resultobj = 0;
6561 wxComboBox *arg1 = (wxComboBox *) 0 ;
6562 bool result;
6563 void *argp1 = 0 ;
6564 int res1 = 0 ;
6565 PyObject *swig_obj[1] ;
6566
6567 if (!args) SWIG_fail;
6568 swig_obj[0] = args;
6569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6570 if (!SWIG_IsOK(res1)) {
6571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6572 }
6573 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6574 {
6575 PyThreadState* __tstate = wxPyBeginAllowThreads();
6576 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6577 wxPyEndAllowThreads(__tstate);
6578 if (PyErr_Occurred()) SWIG_fail;
6579 }
6580 {
6581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6582 }
6583 return resultobj;
6584 fail:
6585 return NULL;
6586 }
6587
6588
6589 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6590 PyObject *resultobj = 0;
6591 wxComboBox *arg1 = (wxComboBox *) 0 ;
6592 bool result;
6593 void *argp1 = 0 ;
6594 int res1 = 0 ;
6595 PyObject *swig_obj[1] ;
6596
6597 if (!args) SWIG_fail;
6598 swig_obj[0] = args;
6599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6600 if (!SWIG_IsOK(res1)) {
6601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6602 }
6603 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6604 {
6605 PyThreadState* __tstate = wxPyBeginAllowThreads();
6606 result = (bool)((wxComboBox const *)arg1)->CanCut();
6607 wxPyEndAllowThreads(__tstate);
6608 if (PyErr_Occurred()) SWIG_fail;
6609 }
6610 {
6611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6612 }
6613 return resultobj;
6614 fail:
6615 return NULL;
6616 }
6617
6618
6619 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6620 PyObject *resultobj = 0;
6621 wxComboBox *arg1 = (wxComboBox *) 0 ;
6622 bool result;
6623 void *argp1 = 0 ;
6624 int res1 = 0 ;
6625 PyObject *swig_obj[1] ;
6626
6627 if (!args) SWIG_fail;
6628 swig_obj[0] = args;
6629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6630 if (!SWIG_IsOK(res1)) {
6631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6632 }
6633 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6634 {
6635 PyThreadState* __tstate = wxPyBeginAllowThreads();
6636 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6637 wxPyEndAllowThreads(__tstate);
6638 if (PyErr_Occurred()) SWIG_fail;
6639 }
6640 {
6641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6642 }
6643 return resultobj;
6644 fail:
6645 return NULL;
6646 }
6647
6648
6649 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6650 PyObject *resultobj = 0;
6651 wxComboBox *arg1 = (wxComboBox *) 0 ;
6652 bool result;
6653 void *argp1 = 0 ;
6654 int res1 = 0 ;
6655 PyObject *swig_obj[1] ;
6656
6657 if (!args) SWIG_fail;
6658 swig_obj[0] = args;
6659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6660 if (!SWIG_IsOK(res1)) {
6661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6662 }
6663 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6664 {
6665 PyThreadState* __tstate = wxPyBeginAllowThreads();
6666 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6667 wxPyEndAllowThreads(__tstate);
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 {
6671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6672 }
6673 return resultobj;
6674 fail:
6675 return NULL;
6676 }
6677
6678
6679 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6680 PyObject *resultobj = 0;
6681 wxComboBox *arg1 = (wxComboBox *) 0 ;
6682 bool result;
6683 void *argp1 = 0 ;
6684 int res1 = 0 ;
6685 PyObject *swig_obj[1] ;
6686
6687 if (!args) SWIG_fail;
6688 swig_obj[0] = args;
6689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6690 if (!SWIG_IsOK(res1)) {
6691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6692 }
6693 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6694 {
6695 PyThreadState* __tstate = wxPyBeginAllowThreads();
6696 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6697 wxPyEndAllowThreads(__tstate);
6698 if (PyErr_Occurred()) SWIG_fail;
6699 }
6700 {
6701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6702 }
6703 return resultobj;
6704 fail:
6705 return NULL;
6706 }
6707
6708
6709 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6710 PyObject *resultobj = 0;
6711 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6712 SwigValueWrapper<wxVisualAttributes > result;
6713 int val1 ;
6714 int ecode1 = 0 ;
6715 PyObject * obj0 = 0 ;
6716 char * kwnames[] = {
6717 (char *) "variant", NULL
6718 };
6719
6720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6721 if (obj0) {
6722 ecode1 = SWIG_AsVal_int(obj0, &val1);
6723 if (!SWIG_IsOK(ecode1)) {
6724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6725 }
6726 arg1 = static_cast< wxWindowVariant >(val1);
6727 }
6728 {
6729 if (!wxPyCheckForApp()) SWIG_fail;
6730 PyThreadState* __tstate = wxPyBeginAllowThreads();
6731 result = wxComboBox::GetClassDefaultAttributes(arg1);
6732 wxPyEndAllowThreads(__tstate);
6733 if (PyErr_Occurred()) SWIG_fail;
6734 }
6735 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6736 return resultobj;
6737 fail:
6738 return NULL;
6739 }
6740
6741
6742 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6743 PyObject *obj;
6744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6745 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6746 return SWIG_Py_Void();
6747 }
6748
6749 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6750 return SWIG_Python_InitShadowInstance(args);
6751 }
6752
6753 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6754 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6755 return 1;
6756 }
6757
6758
6759 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6760 PyObject *pyobj = 0;
6761
6762 {
6763 #if wxUSE_UNICODE
6764 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6765 #else
6766 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6767 #endif
6768 }
6769 return pyobj;
6770 }
6771
6772
6773 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj = 0;
6775 wxWindow *arg1 = (wxWindow *) 0 ;
6776 int arg2 = (int) -1 ;
6777 int arg3 = (int) 100 ;
6778 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6779 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6780 wxSize const &arg5_defvalue = wxDefaultSize ;
6781 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6782 long arg6 = (long) wxGA_HORIZONTAL ;
6783 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6784 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6785 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6786 wxString *arg8 = (wxString *) &arg8_defvalue ;
6787 wxGauge *result = 0 ;
6788 void *argp1 = 0 ;
6789 int res1 = 0 ;
6790 int val2 ;
6791 int ecode2 = 0 ;
6792 int val3 ;
6793 int ecode3 = 0 ;
6794 wxPoint temp4 ;
6795 wxSize temp5 ;
6796 long val6 ;
6797 int ecode6 = 0 ;
6798 void *argp7 = 0 ;
6799 int res7 = 0 ;
6800 bool temp8 = false ;
6801 PyObject * obj0 = 0 ;
6802 PyObject * obj1 = 0 ;
6803 PyObject * obj2 = 0 ;
6804 PyObject * obj3 = 0 ;
6805 PyObject * obj4 = 0 ;
6806 PyObject * obj5 = 0 ;
6807 PyObject * obj6 = 0 ;
6808 PyObject * obj7 = 0 ;
6809 char * kwnames[] = {
6810 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6811 };
6812
6813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6815 if (!SWIG_IsOK(res1)) {
6816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6817 }
6818 arg1 = reinterpret_cast< wxWindow * >(argp1);
6819 if (obj1) {
6820 ecode2 = SWIG_AsVal_int(obj1, &val2);
6821 if (!SWIG_IsOK(ecode2)) {
6822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6823 }
6824 arg2 = static_cast< int >(val2);
6825 }
6826 if (obj2) {
6827 ecode3 = SWIG_AsVal_int(obj2, &val3);
6828 if (!SWIG_IsOK(ecode3)) {
6829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6830 }
6831 arg3 = static_cast< int >(val3);
6832 }
6833 if (obj3) {
6834 {
6835 arg4 = &temp4;
6836 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6837 }
6838 }
6839 if (obj4) {
6840 {
6841 arg5 = &temp5;
6842 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6843 }
6844 }
6845 if (obj5) {
6846 ecode6 = SWIG_AsVal_long(obj5, &val6);
6847 if (!SWIG_IsOK(ecode6)) {
6848 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6849 }
6850 arg6 = static_cast< long >(val6);
6851 }
6852 if (obj6) {
6853 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6854 if (!SWIG_IsOK(res7)) {
6855 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6856 }
6857 if (!argp7) {
6858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6859 }
6860 arg7 = reinterpret_cast< wxValidator * >(argp7);
6861 }
6862 if (obj7) {
6863 {
6864 arg8 = wxString_in_helper(obj7);
6865 if (arg8 == NULL) SWIG_fail;
6866 temp8 = true;
6867 }
6868 }
6869 {
6870 if (!wxPyCheckForApp()) SWIG_fail;
6871 PyThreadState* __tstate = wxPyBeginAllowThreads();
6872 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6873 wxPyEndAllowThreads(__tstate);
6874 if (PyErr_Occurred()) SWIG_fail;
6875 }
6876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6877 {
6878 if (temp8)
6879 delete arg8;
6880 }
6881 return resultobj;
6882 fail:
6883 {
6884 if (temp8)
6885 delete arg8;
6886 }
6887 return NULL;
6888 }
6889
6890
6891 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6892 PyObject *resultobj = 0;
6893 wxGauge *result = 0 ;
6894
6895 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6896 {
6897 if (!wxPyCheckForApp()) SWIG_fail;
6898 PyThreadState* __tstate = wxPyBeginAllowThreads();
6899 result = (wxGauge *)new wxGauge();
6900 wxPyEndAllowThreads(__tstate);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6904 return resultobj;
6905 fail:
6906 return NULL;
6907 }
6908
6909
6910 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6911 PyObject *resultobj = 0;
6912 wxGauge *arg1 = (wxGauge *) 0 ;
6913 wxWindow *arg2 = (wxWindow *) 0 ;
6914 int arg3 = (int) -1 ;
6915 int arg4 = (int) 100 ;
6916 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6917 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6918 wxSize const &arg6_defvalue = wxDefaultSize ;
6919 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6920 long arg7 = (long) wxGA_HORIZONTAL ;
6921 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6922 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6923 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6924 wxString *arg9 = (wxString *) &arg9_defvalue ;
6925 bool result;
6926 void *argp1 = 0 ;
6927 int res1 = 0 ;
6928 void *argp2 = 0 ;
6929 int res2 = 0 ;
6930 int val3 ;
6931 int ecode3 = 0 ;
6932 int val4 ;
6933 int ecode4 = 0 ;
6934 wxPoint temp5 ;
6935 wxSize temp6 ;
6936 long val7 ;
6937 int ecode7 = 0 ;
6938 void *argp8 = 0 ;
6939 int res8 = 0 ;
6940 bool temp9 = false ;
6941 PyObject * obj0 = 0 ;
6942 PyObject * obj1 = 0 ;
6943 PyObject * obj2 = 0 ;
6944 PyObject * obj3 = 0 ;
6945 PyObject * obj4 = 0 ;
6946 PyObject * obj5 = 0 ;
6947 PyObject * obj6 = 0 ;
6948 PyObject * obj7 = 0 ;
6949 PyObject * obj8 = 0 ;
6950 char * kwnames[] = {
6951 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6952 };
6953
6954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6956 if (!SWIG_IsOK(res1)) {
6957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6958 }
6959 arg1 = reinterpret_cast< wxGauge * >(argp1);
6960 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6961 if (!SWIG_IsOK(res2)) {
6962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6963 }
6964 arg2 = reinterpret_cast< wxWindow * >(argp2);
6965 if (obj2) {
6966 ecode3 = SWIG_AsVal_int(obj2, &val3);
6967 if (!SWIG_IsOK(ecode3)) {
6968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6969 }
6970 arg3 = static_cast< int >(val3);
6971 }
6972 if (obj3) {
6973 ecode4 = SWIG_AsVal_int(obj3, &val4);
6974 if (!SWIG_IsOK(ecode4)) {
6975 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6976 }
6977 arg4 = static_cast< int >(val4);
6978 }
6979 if (obj4) {
6980 {
6981 arg5 = &temp5;
6982 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6983 }
6984 }
6985 if (obj5) {
6986 {
6987 arg6 = &temp6;
6988 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6989 }
6990 }
6991 if (obj6) {
6992 ecode7 = SWIG_AsVal_long(obj6, &val7);
6993 if (!SWIG_IsOK(ecode7)) {
6994 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6995 }
6996 arg7 = static_cast< long >(val7);
6997 }
6998 if (obj7) {
6999 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7000 if (!SWIG_IsOK(res8)) {
7001 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7002 }
7003 if (!argp8) {
7004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7005 }
7006 arg8 = reinterpret_cast< wxValidator * >(argp8);
7007 }
7008 if (obj8) {
7009 {
7010 arg9 = wxString_in_helper(obj8);
7011 if (arg9 == NULL) SWIG_fail;
7012 temp9 = true;
7013 }
7014 }
7015 {
7016 PyThreadState* __tstate = wxPyBeginAllowThreads();
7017 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7018 wxPyEndAllowThreads(__tstate);
7019 if (PyErr_Occurred()) SWIG_fail;
7020 }
7021 {
7022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7023 }
7024 {
7025 if (temp9)
7026 delete arg9;
7027 }
7028 return resultobj;
7029 fail:
7030 {
7031 if (temp9)
7032 delete arg9;
7033 }
7034 return NULL;
7035 }
7036
7037
7038 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj = 0;
7040 wxGauge *arg1 = (wxGauge *) 0 ;
7041 int arg2 ;
7042 void *argp1 = 0 ;
7043 int res1 = 0 ;
7044 int val2 ;
7045 int ecode2 = 0 ;
7046 PyObject * obj0 = 0 ;
7047 PyObject * obj1 = 0 ;
7048 char * kwnames[] = {
7049 (char *) "self",(char *) "range", NULL
7050 };
7051
7052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7054 if (!SWIG_IsOK(res1)) {
7055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7056 }
7057 arg1 = reinterpret_cast< wxGauge * >(argp1);
7058 ecode2 = SWIG_AsVal_int(obj1, &val2);
7059 if (!SWIG_IsOK(ecode2)) {
7060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7061 }
7062 arg2 = static_cast< int >(val2);
7063 {
7064 PyThreadState* __tstate = wxPyBeginAllowThreads();
7065 (arg1)->SetRange(arg2);
7066 wxPyEndAllowThreads(__tstate);
7067 if (PyErr_Occurred()) SWIG_fail;
7068 }
7069 resultobj = SWIG_Py_Void();
7070 return resultobj;
7071 fail:
7072 return NULL;
7073 }
7074
7075
7076 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7077 PyObject *resultobj = 0;
7078 wxGauge *arg1 = (wxGauge *) 0 ;
7079 int result;
7080 void *argp1 = 0 ;
7081 int res1 = 0 ;
7082 PyObject *swig_obj[1] ;
7083
7084 if (!args) SWIG_fail;
7085 swig_obj[0] = args;
7086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7087 if (!SWIG_IsOK(res1)) {
7088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7089 }
7090 arg1 = reinterpret_cast< wxGauge * >(argp1);
7091 {
7092 PyThreadState* __tstate = wxPyBeginAllowThreads();
7093 result = (int)((wxGauge const *)arg1)->GetRange();
7094 wxPyEndAllowThreads(__tstate);
7095 if (PyErr_Occurred()) SWIG_fail;
7096 }
7097 resultobj = SWIG_From_int(static_cast< int >(result));
7098 return resultobj;
7099 fail:
7100 return NULL;
7101 }
7102
7103
7104 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7105 PyObject *resultobj = 0;
7106 wxGauge *arg1 = (wxGauge *) 0 ;
7107 int arg2 ;
7108 void *argp1 = 0 ;
7109 int res1 = 0 ;
7110 int val2 ;
7111 int ecode2 = 0 ;
7112 PyObject * obj0 = 0 ;
7113 PyObject * obj1 = 0 ;
7114 char * kwnames[] = {
7115 (char *) "self",(char *) "pos", NULL
7116 };
7117
7118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7120 if (!SWIG_IsOK(res1)) {
7121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7122 }
7123 arg1 = reinterpret_cast< wxGauge * >(argp1);
7124 ecode2 = SWIG_AsVal_int(obj1, &val2);
7125 if (!SWIG_IsOK(ecode2)) {
7126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7127 }
7128 arg2 = static_cast< int >(val2);
7129 {
7130 PyThreadState* __tstate = wxPyBeginAllowThreads();
7131 (arg1)->SetValue(arg2);
7132 wxPyEndAllowThreads(__tstate);
7133 if (PyErr_Occurred()) SWIG_fail;
7134 }
7135 resultobj = SWIG_Py_Void();
7136 return resultobj;
7137 fail:
7138 return NULL;
7139 }
7140
7141
7142 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7143 PyObject *resultobj = 0;
7144 wxGauge *arg1 = (wxGauge *) 0 ;
7145 int result;
7146 void *argp1 = 0 ;
7147 int res1 = 0 ;
7148 PyObject *swig_obj[1] ;
7149
7150 if (!args) SWIG_fail;
7151 swig_obj[0] = args;
7152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7153 if (!SWIG_IsOK(res1)) {
7154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7155 }
7156 arg1 = reinterpret_cast< wxGauge * >(argp1);
7157 {
7158 PyThreadState* __tstate = wxPyBeginAllowThreads();
7159 result = (int)((wxGauge const *)arg1)->GetValue();
7160 wxPyEndAllowThreads(__tstate);
7161 if (PyErr_Occurred()) SWIG_fail;
7162 }
7163 resultobj = SWIG_From_int(static_cast< int >(result));
7164 return resultobj;
7165 fail:
7166 return NULL;
7167 }
7168
7169
7170 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7171 PyObject *resultobj = 0;
7172 wxGauge *arg1 = (wxGauge *) 0 ;
7173 bool result;
7174 void *argp1 = 0 ;
7175 int res1 = 0 ;
7176 PyObject *swig_obj[1] ;
7177
7178 if (!args) SWIG_fail;
7179 swig_obj[0] = args;
7180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7181 if (!SWIG_IsOK(res1)) {
7182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7183 }
7184 arg1 = reinterpret_cast< wxGauge * >(argp1);
7185 {
7186 PyThreadState* __tstate = wxPyBeginAllowThreads();
7187 result = (bool)((wxGauge const *)arg1)->IsVertical();
7188 wxPyEndAllowThreads(__tstate);
7189 if (PyErr_Occurred()) SWIG_fail;
7190 }
7191 {
7192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7193 }
7194 return resultobj;
7195 fail:
7196 return NULL;
7197 }
7198
7199
7200 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7201 PyObject *resultobj = 0;
7202 wxGauge *arg1 = (wxGauge *) 0 ;
7203 int arg2 ;
7204 void *argp1 = 0 ;
7205 int res1 = 0 ;
7206 int val2 ;
7207 int ecode2 = 0 ;
7208 PyObject * obj0 = 0 ;
7209 PyObject * obj1 = 0 ;
7210 char * kwnames[] = {
7211 (char *) "self",(char *) "w", NULL
7212 };
7213
7214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7216 if (!SWIG_IsOK(res1)) {
7217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7218 }
7219 arg1 = reinterpret_cast< wxGauge * >(argp1);
7220 ecode2 = SWIG_AsVal_int(obj1, &val2);
7221 if (!SWIG_IsOK(ecode2)) {
7222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7223 }
7224 arg2 = static_cast< int >(val2);
7225 {
7226 PyThreadState* __tstate = wxPyBeginAllowThreads();
7227 (arg1)->SetShadowWidth(arg2);
7228 wxPyEndAllowThreads(__tstate);
7229 if (PyErr_Occurred()) SWIG_fail;
7230 }
7231 resultobj = SWIG_Py_Void();
7232 return resultobj;
7233 fail:
7234 return NULL;
7235 }
7236
7237
7238 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7239 PyObject *resultobj = 0;
7240 wxGauge *arg1 = (wxGauge *) 0 ;
7241 int result;
7242 void *argp1 = 0 ;
7243 int res1 = 0 ;
7244 PyObject *swig_obj[1] ;
7245
7246 if (!args) SWIG_fail;
7247 swig_obj[0] = args;
7248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7249 if (!SWIG_IsOK(res1)) {
7250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7251 }
7252 arg1 = reinterpret_cast< wxGauge * >(argp1);
7253 {
7254 PyThreadState* __tstate = wxPyBeginAllowThreads();
7255 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7256 wxPyEndAllowThreads(__tstate);
7257 if (PyErr_Occurred()) SWIG_fail;
7258 }
7259 resultobj = SWIG_From_int(static_cast< int >(result));
7260 return resultobj;
7261 fail:
7262 return NULL;
7263 }
7264
7265
7266 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7267 PyObject *resultobj = 0;
7268 wxGauge *arg1 = (wxGauge *) 0 ;
7269 int arg2 ;
7270 void *argp1 = 0 ;
7271 int res1 = 0 ;
7272 int val2 ;
7273 int ecode2 = 0 ;
7274 PyObject * obj0 = 0 ;
7275 PyObject * obj1 = 0 ;
7276 char * kwnames[] = {
7277 (char *) "self",(char *) "w", NULL
7278 };
7279
7280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7282 if (!SWIG_IsOK(res1)) {
7283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7284 }
7285 arg1 = reinterpret_cast< wxGauge * >(argp1);
7286 ecode2 = SWIG_AsVal_int(obj1, &val2);
7287 if (!SWIG_IsOK(ecode2)) {
7288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7289 }
7290 arg2 = static_cast< int >(val2);
7291 {
7292 PyThreadState* __tstate = wxPyBeginAllowThreads();
7293 (arg1)->SetBezelFace(arg2);
7294 wxPyEndAllowThreads(__tstate);
7295 if (PyErr_Occurred()) SWIG_fail;
7296 }
7297 resultobj = SWIG_Py_Void();
7298 return resultobj;
7299 fail:
7300 return NULL;
7301 }
7302
7303
7304 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7305 PyObject *resultobj = 0;
7306 wxGauge *arg1 = (wxGauge *) 0 ;
7307 int result;
7308 void *argp1 = 0 ;
7309 int res1 = 0 ;
7310 PyObject *swig_obj[1] ;
7311
7312 if (!args) SWIG_fail;
7313 swig_obj[0] = args;
7314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7315 if (!SWIG_IsOK(res1)) {
7316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7317 }
7318 arg1 = reinterpret_cast< wxGauge * >(argp1);
7319 {
7320 PyThreadState* __tstate = wxPyBeginAllowThreads();
7321 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7322 wxPyEndAllowThreads(__tstate);
7323 if (PyErr_Occurred()) SWIG_fail;
7324 }
7325 resultobj = SWIG_From_int(static_cast< int >(result));
7326 return resultobj;
7327 fail:
7328 return NULL;
7329 }
7330
7331
7332 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7333 PyObject *resultobj = 0;
7334 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7335 SwigValueWrapper<wxVisualAttributes > result;
7336 int val1 ;
7337 int ecode1 = 0 ;
7338 PyObject * obj0 = 0 ;
7339 char * kwnames[] = {
7340 (char *) "variant", NULL
7341 };
7342
7343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7344 if (obj0) {
7345 ecode1 = SWIG_AsVal_int(obj0, &val1);
7346 if (!SWIG_IsOK(ecode1)) {
7347 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7348 }
7349 arg1 = static_cast< wxWindowVariant >(val1);
7350 }
7351 {
7352 if (!wxPyCheckForApp()) SWIG_fail;
7353 PyThreadState* __tstate = wxPyBeginAllowThreads();
7354 result = wxGauge::GetClassDefaultAttributes(arg1);
7355 wxPyEndAllowThreads(__tstate);
7356 if (PyErr_Occurred()) SWIG_fail;
7357 }
7358 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7359 return resultobj;
7360 fail:
7361 return NULL;
7362 }
7363
7364
7365 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7366 PyObject *obj;
7367 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7368 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7369 return SWIG_Py_Void();
7370 }
7371
7372 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7373 return SWIG_Python_InitShadowInstance(args);
7374 }
7375
7376 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7377 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7378 return 1;
7379 }
7380
7381
7382 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7383 PyObject *pyobj = 0;
7384
7385 {
7386 #if wxUSE_UNICODE
7387 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7388 #else
7389 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7390 #endif
7391 }
7392 return pyobj;
7393 }
7394
7395
7396 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7397 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7398 return 1;
7399 }
7400
7401
7402 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7403 PyObject *pyobj = 0;
7404
7405 {
7406 #if wxUSE_UNICODE
7407 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7408 #else
7409 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7410 #endif
7411 }
7412 return pyobj;
7413 }
7414
7415
7416 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7417 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7418 return 1;
7419 }
7420
7421
7422 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7423 PyObject *pyobj = 0;
7424
7425 {
7426 #if wxUSE_UNICODE
7427 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7428 #else
7429 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7430 #endif
7431 }
7432 return pyobj;
7433 }
7434
7435
7436 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7437 PyObject *resultobj = 0;
7438 wxWindow *arg1 = (wxWindow *) 0 ;
7439 int arg2 = (int) -1 ;
7440 wxString const &arg3_defvalue = wxPyEmptyString ;
7441 wxString *arg3 = (wxString *) &arg3_defvalue ;
7442 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7443 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7444 wxSize const &arg5_defvalue = wxDefaultSize ;
7445 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7446 long arg6 = (long) 0 ;
7447 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7448 wxString *arg7 = (wxString *) &arg7_defvalue ;
7449 wxStaticBox *result = 0 ;
7450 void *argp1 = 0 ;
7451 int res1 = 0 ;
7452 int val2 ;
7453 int ecode2 = 0 ;
7454 bool temp3 = false ;
7455 wxPoint temp4 ;
7456 wxSize temp5 ;
7457 long val6 ;
7458 int ecode6 = 0 ;
7459 bool temp7 = false ;
7460 PyObject * obj0 = 0 ;
7461 PyObject * obj1 = 0 ;
7462 PyObject * obj2 = 0 ;
7463 PyObject * obj3 = 0 ;
7464 PyObject * obj4 = 0 ;
7465 PyObject * obj5 = 0 ;
7466 PyObject * obj6 = 0 ;
7467 char * kwnames[] = {
7468 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7469 };
7470
7471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7473 if (!SWIG_IsOK(res1)) {
7474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7475 }
7476 arg1 = reinterpret_cast< wxWindow * >(argp1);
7477 if (obj1) {
7478 ecode2 = SWIG_AsVal_int(obj1, &val2);
7479 if (!SWIG_IsOK(ecode2)) {
7480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7481 }
7482 arg2 = static_cast< int >(val2);
7483 }
7484 if (obj2) {
7485 {
7486 arg3 = wxString_in_helper(obj2);
7487 if (arg3 == NULL) SWIG_fail;
7488 temp3 = true;
7489 }
7490 }
7491 if (obj3) {
7492 {
7493 arg4 = &temp4;
7494 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7495 }
7496 }
7497 if (obj4) {
7498 {
7499 arg5 = &temp5;
7500 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7501 }
7502 }
7503 if (obj5) {
7504 ecode6 = SWIG_AsVal_long(obj5, &val6);
7505 if (!SWIG_IsOK(ecode6)) {
7506 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7507 }
7508 arg6 = static_cast< long >(val6);
7509 }
7510 if (obj6) {
7511 {
7512 arg7 = wxString_in_helper(obj6);
7513 if (arg7 == NULL) SWIG_fail;
7514 temp7 = true;
7515 }
7516 }
7517 {
7518 if (!wxPyCheckForApp()) SWIG_fail;
7519 PyThreadState* __tstate = wxPyBeginAllowThreads();
7520 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7521 wxPyEndAllowThreads(__tstate);
7522 if (PyErr_Occurred()) SWIG_fail;
7523 }
7524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7525 {
7526 if (temp3)
7527 delete arg3;
7528 }
7529 {
7530 if (temp7)
7531 delete arg7;
7532 }
7533 return resultobj;
7534 fail:
7535 {
7536 if (temp3)
7537 delete arg3;
7538 }
7539 {
7540 if (temp7)
7541 delete arg7;
7542 }
7543 return NULL;
7544 }
7545
7546
7547 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7548 PyObject *resultobj = 0;
7549 wxStaticBox *result = 0 ;
7550
7551 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7552 {
7553 if (!wxPyCheckForApp()) SWIG_fail;
7554 PyThreadState* __tstate = wxPyBeginAllowThreads();
7555 result = (wxStaticBox *)new wxStaticBox();
7556 wxPyEndAllowThreads(__tstate);
7557 if (PyErr_Occurred()) SWIG_fail;
7558 }
7559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7560 return resultobj;
7561 fail:
7562 return NULL;
7563 }
7564
7565
7566 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7567 PyObject *resultobj = 0;
7568 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7569 wxWindow *arg2 = (wxWindow *) 0 ;
7570 int arg3 = (int) -1 ;
7571 wxString const &arg4_defvalue = wxPyEmptyString ;
7572 wxString *arg4 = (wxString *) &arg4_defvalue ;
7573 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7574 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7575 wxSize const &arg6_defvalue = wxDefaultSize ;
7576 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7577 long arg7 = (long) 0 ;
7578 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7579 wxString *arg8 = (wxString *) &arg8_defvalue ;
7580 bool result;
7581 void *argp1 = 0 ;
7582 int res1 = 0 ;
7583 void *argp2 = 0 ;
7584 int res2 = 0 ;
7585 int val3 ;
7586 int ecode3 = 0 ;
7587 bool temp4 = false ;
7588 wxPoint temp5 ;
7589 wxSize temp6 ;
7590 long val7 ;
7591 int ecode7 = 0 ;
7592 bool temp8 = false ;
7593 PyObject * obj0 = 0 ;
7594 PyObject * obj1 = 0 ;
7595 PyObject * obj2 = 0 ;
7596 PyObject * obj3 = 0 ;
7597 PyObject * obj4 = 0 ;
7598 PyObject * obj5 = 0 ;
7599 PyObject * obj6 = 0 ;
7600 PyObject * obj7 = 0 ;
7601 char * kwnames[] = {
7602 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7603 };
7604
7605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7607 if (!SWIG_IsOK(res1)) {
7608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7609 }
7610 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7611 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7612 if (!SWIG_IsOK(res2)) {
7613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7614 }
7615 arg2 = reinterpret_cast< wxWindow * >(argp2);
7616 if (obj2) {
7617 ecode3 = SWIG_AsVal_int(obj2, &val3);
7618 if (!SWIG_IsOK(ecode3)) {
7619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7620 }
7621 arg3 = static_cast< int >(val3);
7622 }
7623 if (obj3) {
7624 {
7625 arg4 = wxString_in_helper(obj3);
7626 if (arg4 == NULL) SWIG_fail;
7627 temp4 = true;
7628 }
7629 }
7630 if (obj4) {
7631 {
7632 arg5 = &temp5;
7633 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7634 }
7635 }
7636 if (obj5) {
7637 {
7638 arg6 = &temp6;
7639 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7640 }
7641 }
7642 if (obj6) {
7643 ecode7 = SWIG_AsVal_long(obj6, &val7);
7644 if (!SWIG_IsOK(ecode7)) {
7645 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7646 }
7647 arg7 = static_cast< long >(val7);
7648 }
7649 if (obj7) {
7650 {
7651 arg8 = wxString_in_helper(obj7);
7652 if (arg8 == NULL) SWIG_fail;
7653 temp8 = true;
7654 }
7655 }
7656 {
7657 PyThreadState* __tstate = wxPyBeginAllowThreads();
7658 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7659 wxPyEndAllowThreads(__tstate);
7660 if (PyErr_Occurred()) SWIG_fail;
7661 }
7662 {
7663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7664 }
7665 {
7666 if (temp4)
7667 delete arg4;
7668 }
7669 {
7670 if (temp8)
7671 delete arg8;
7672 }
7673 return resultobj;
7674 fail:
7675 {
7676 if (temp4)
7677 delete arg4;
7678 }
7679 {
7680 if (temp8)
7681 delete arg8;
7682 }
7683 return NULL;
7684 }
7685
7686
7687 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7688 PyObject *resultobj = 0;
7689 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7690 SwigValueWrapper<wxVisualAttributes > result;
7691 int val1 ;
7692 int ecode1 = 0 ;
7693 PyObject * obj0 = 0 ;
7694 char * kwnames[] = {
7695 (char *) "variant", NULL
7696 };
7697
7698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7699 if (obj0) {
7700 ecode1 = SWIG_AsVal_int(obj0, &val1);
7701 if (!SWIG_IsOK(ecode1)) {
7702 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7703 }
7704 arg1 = static_cast< wxWindowVariant >(val1);
7705 }
7706 {
7707 if (!wxPyCheckForApp()) SWIG_fail;
7708 PyThreadState* __tstate = wxPyBeginAllowThreads();
7709 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7710 wxPyEndAllowThreads(__tstate);
7711 if (PyErr_Occurred()) SWIG_fail;
7712 }
7713 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7714 return resultobj;
7715 fail:
7716 return NULL;
7717 }
7718
7719
7720 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7721 PyObject *obj;
7722 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7723 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7724 return SWIG_Py_Void();
7725 }
7726
7727 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7728 return SWIG_Python_InitShadowInstance(args);
7729 }
7730
7731 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7732 PyObject *resultobj = 0;
7733 wxWindow *arg1 = (wxWindow *) 0 ;
7734 int arg2 = (int) -1 ;
7735 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7736 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7737 wxSize const &arg4_defvalue = wxDefaultSize ;
7738 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7739 long arg5 = (long) wxLI_HORIZONTAL ;
7740 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7741 wxString *arg6 = (wxString *) &arg6_defvalue ;
7742 wxStaticLine *result = 0 ;
7743 void *argp1 = 0 ;
7744 int res1 = 0 ;
7745 int val2 ;
7746 int ecode2 = 0 ;
7747 wxPoint temp3 ;
7748 wxSize temp4 ;
7749 long val5 ;
7750 int ecode5 = 0 ;
7751 bool temp6 = false ;
7752 PyObject * obj0 = 0 ;
7753 PyObject * obj1 = 0 ;
7754 PyObject * obj2 = 0 ;
7755 PyObject * obj3 = 0 ;
7756 PyObject * obj4 = 0 ;
7757 PyObject * obj5 = 0 ;
7758 char * kwnames[] = {
7759 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7760 };
7761
7762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7764 if (!SWIG_IsOK(res1)) {
7765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7766 }
7767 arg1 = reinterpret_cast< wxWindow * >(argp1);
7768 if (obj1) {
7769 ecode2 = SWIG_AsVal_int(obj1, &val2);
7770 if (!SWIG_IsOK(ecode2)) {
7771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7772 }
7773 arg2 = static_cast< int >(val2);
7774 }
7775 if (obj2) {
7776 {
7777 arg3 = &temp3;
7778 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7779 }
7780 }
7781 if (obj3) {
7782 {
7783 arg4 = &temp4;
7784 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7785 }
7786 }
7787 if (obj4) {
7788 ecode5 = SWIG_AsVal_long(obj4, &val5);
7789 if (!SWIG_IsOK(ecode5)) {
7790 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7791 }
7792 arg5 = static_cast< long >(val5);
7793 }
7794 if (obj5) {
7795 {
7796 arg6 = wxString_in_helper(obj5);
7797 if (arg6 == NULL) SWIG_fail;
7798 temp6 = true;
7799 }
7800 }
7801 {
7802 if (!wxPyCheckForApp()) SWIG_fail;
7803 PyThreadState* __tstate = wxPyBeginAllowThreads();
7804 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7805 wxPyEndAllowThreads(__tstate);
7806 if (PyErr_Occurred()) SWIG_fail;
7807 }
7808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7809 {
7810 if (temp6)
7811 delete arg6;
7812 }
7813 return resultobj;
7814 fail:
7815 {
7816 if (temp6)
7817 delete arg6;
7818 }
7819 return NULL;
7820 }
7821
7822
7823 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7824 PyObject *resultobj = 0;
7825 wxStaticLine *result = 0 ;
7826
7827 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7828 {
7829 if (!wxPyCheckForApp()) SWIG_fail;
7830 PyThreadState* __tstate = wxPyBeginAllowThreads();
7831 result = (wxStaticLine *)new wxStaticLine();
7832 wxPyEndAllowThreads(__tstate);
7833 if (PyErr_Occurred()) SWIG_fail;
7834 }
7835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7836 return resultobj;
7837 fail:
7838 return NULL;
7839 }
7840
7841
7842 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7843 PyObject *resultobj = 0;
7844 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7845 wxWindow *arg2 = (wxWindow *) 0 ;
7846 int arg3 = (int) -1 ;
7847 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7848 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7849 wxSize const &arg5_defvalue = wxDefaultSize ;
7850 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7851 long arg6 = (long) wxLI_HORIZONTAL ;
7852 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7853 wxString *arg7 = (wxString *) &arg7_defvalue ;
7854 bool result;
7855 void *argp1 = 0 ;
7856 int res1 = 0 ;
7857 void *argp2 = 0 ;
7858 int res2 = 0 ;
7859 int val3 ;
7860 int ecode3 = 0 ;
7861 wxPoint temp4 ;
7862 wxSize temp5 ;
7863 long val6 ;
7864 int ecode6 = 0 ;
7865 bool temp7 = false ;
7866 PyObject * obj0 = 0 ;
7867 PyObject * obj1 = 0 ;
7868 PyObject * obj2 = 0 ;
7869 PyObject * obj3 = 0 ;
7870 PyObject * obj4 = 0 ;
7871 PyObject * obj5 = 0 ;
7872 PyObject * obj6 = 0 ;
7873 char * kwnames[] = {
7874 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7875 };
7876
7877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7879 if (!SWIG_IsOK(res1)) {
7880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7881 }
7882 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7883 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7884 if (!SWIG_IsOK(res2)) {
7885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7886 }
7887 arg2 = reinterpret_cast< wxWindow * >(argp2);
7888 if (obj2) {
7889 ecode3 = SWIG_AsVal_int(obj2, &val3);
7890 if (!SWIG_IsOK(ecode3)) {
7891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7892 }
7893 arg3 = static_cast< int >(val3);
7894 }
7895 if (obj3) {
7896 {
7897 arg4 = &temp4;
7898 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7899 }
7900 }
7901 if (obj4) {
7902 {
7903 arg5 = &temp5;
7904 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7905 }
7906 }
7907 if (obj5) {
7908 ecode6 = SWIG_AsVal_long(obj5, &val6);
7909 if (!SWIG_IsOK(ecode6)) {
7910 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7911 }
7912 arg6 = static_cast< long >(val6);
7913 }
7914 if (obj6) {
7915 {
7916 arg7 = wxString_in_helper(obj6);
7917 if (arg7 == NULL) SWIG_fail;
7918 temp7 = true;
7919 }
7920 }
7921 {
7922 PyThreadState* __tstate = wxPyBeginAllowThreads();
7923 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7924 wxPyEndAllowThreads(__tstate);
7925 if (PyErr_Occurred()) SWIG_fail;
7926 }
7927 {
7928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7929 }
7930 {
7931 if (temp7)
7932 delete arg7;
7933 }
7934 return resultobj;
7935 fail:
7936 {
7937 if (temp7)
7938 delete arg7;
7939 }
7940 return NULL;
7941 }
7942
7943
7944 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7945 PyObject *resultobj = 0;
7946 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7947 bool result;
7948 void *argp1 = 0 ;
7949 int res1 = 0 ;
7950 PyObject *swig_obj[1] ;
7951
7952 if (!args) SWIG_fail;
7953 swig_obj[0] = args;
7954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7955 if (!SWIG_IsOK(res1)) {
7956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7957 }
7958 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7959 {
7960 PyThreadState* __tstate = wxPyBeginAllowThreads();
7961 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7962 wxPyEndAllowThreads(__tstate);
7963 if (PyErr_Occurred()) SWIG_fail;
7964 }
7965 {
7966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7967 }
7968 return resultobj;
7969 fail:
7970 return NULL;
7971 }
7972
7973
7974 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7975 PyObject *resultobj = 0;
7976 int result;
7977
7978 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7979 {
7980 PyThreadState* __tstate = wxPyBeginAllowThreads();
7981 result = (int)wxStaticLine::GetDefaultSize();
7982 wxPyEndAllowThreads(__tstate);
7983 if (PyErr_Occurred()) SWIG_fail;
7984 }
7985 resultobj = SWIG_From_int(static_cast< int >(result));
7986 return resultobj;
7987 fail:
7988 return NULL;
7989 }
7990
7991
7992 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7993 PyObject *resultobj = 0;
7994 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7995 SwigValueWrapper<wxVisualAttributes > result;
7996 int val1 ;
7997 int ecode1 = 0 ;
7998 PyObject * obj0 = 0 ;
7999 char * kwnames[] = {
8000 (char *) "variant", NULL
8001 };
8002
8003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8004 if (obj0) {
8005 ecode1 = SWIG_AsVal_int(obj0, &val1);
8006 if (!SWIG_IsOK(ecode1)) {
8007 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8008 }
8009 arg1 = static_cast< wxWindowVariant >(val1);
8010 }
8011 {
8012 if (!wxPyCheckForApp()) SWIG_fail;
8013 PyThreadState* __tstate = wxPyBeginAllowThreads();
8014 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8015 wxPyEndAllowThreads(__tstate);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 }
8018 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8019 return resultobj;
8020 fail:
8021 return NULL;
8022 }
8023
8024
8025 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8026 PyObject *obj;
8027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8028 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8029 return SWIG_Py_Void();
8030 }
8031
8032 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8033 return SWIG_Python_InitShadowInstance(args);
8034 }
8035
8036 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8037 PyObject *resultobj = 0;
8038 wxWindow *arg1 = (wxWindow *) 0 ;
8039 int arg2 = (int) -1 ;
8040 wxString const &arg3_defvalue = wxPyEmptyString ;
8041 wxString *arg3 = (wxString *) &arg3_defvalue ;
8042 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8043 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8044 wxSize const &arg5_defvalue = wxDefaultSize ;
8045 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8046 long arg6 = (long) 0 ;
8047 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8048 wxString *arg7 = (wxString *) &arg7_defvalue ;
8049 wxStaticText *result = 0 ;
8050 void *argp1 = 0 ;
8051 int res1 = 0 ;
8052 int val2 ;
8053 int ecode2 = 0 ;
8054 bool temp3 = false ;
8055 wxPoint temp4 ;
8056 wxSize temp5 ;
8057 long val6 ;
8058 int ecode6 = 0 ;
8059 bool temp7 = false ;
8060 PyObject * obj0 = 0 ;
8061 PyObject * obj1 = 0 ;
8062 PyObject * obj2 = 0 ;
8063 PyObject * obj3 = 0 ;
8064 PyObject * obj4 = 0 ;
8065 PyObject * obj5 = 0 ;
8066 PyObject * obj6 = 0 ;
8067 char * kwnames[] = {
8068 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8069 };
8070
8071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8073 if (!SWIG_IsOK(res1)) {
8074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8075 }
8076 arg1 = reinterpret_cast< wxWindow * >(argp1);
8077 if (obj1) {
8078 ecode2 = SWIG_AsVal_int(obj1, &val2);
8079 if (!SWIG_IsOK(ecode2)) {
8080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8081 }
8082 arg2 = static_cast< int >(val2);
8083 }
8084 if (obj2) {
8085 {
8086 arg3 = wxString_in_helper(obj2);
8087 if (arg3 == NULL) SWIG_fail;
8088 temp3 = true;
8089 }
8090 }
8091 if (obj3) {
8092 {
8093 arg4 = &temp4;
8094 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8095 }
8096 }
8097 if (obj4) {
8098 {
8099 arg5 = &temp5;
8100 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8101 }
8102 }
8103 if (obj5) {
8104 ecode6 = SWIG_AsVal_long(obj5, &val6);
8105 if (!SWIG_IsOK(ecode6)) {
8106 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8107 }
8108 arg6 = static_cast< long >(val6);
8109 }
8110 if (obj6) {
8111 {
8112 arg7 = wxString_in_helper(obj6);
8113 if (arg7 == NULL) SWIG_fail;
8114 temp7 = true;
8115 }
8116 }
8117 {
8118 if (!wxPyCheckForApp()) SWIG_fail;
8119 PyThreadState* __tstate = wxPyBeginAllowThreads();
8120 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8121 wxPyEndAllowThreads(__tstate);
8122 if (PyErr_Occurred()) SWIG_fail;
8123 }
8124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8125 {
8126 if (temp3)
8127 delete arg3;
8128 }
8129 {
8130 if (temp7)
8131 delete arg7;
8132 }
8133 return resultobj;
8134 fail:
8135 {
8136 if (temp3)
8137 delete arg3;
8138 }
8139 {
8140 if (temp7)
8141 delete arg7;
8142 }
8143 return NULL;
8144 }
8145
8146
8147 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8148 PyObject *resultobj = 0;
8149 wxStaticText *result = 0 ;
8150
8151 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8152 {
8153 if (!wxPyCheckForApp()) SWIG_fail;
8154 PyThreadState* __tstate = wxPyBeginAllowThreads();
8155 result = (wxStaticText *)new wxStaticText();
8156 wxPyEndAllowThreads(__tstate);
8157 if (PyErr_Occurred()) SWIG_fail;
8158 }
8159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8160 return resultobj;
8161 fail:
8162 return NULL;
8163 }
8164
8165
8166 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8167 PyObject *resultobj = 0;
8168 wxStaticText *arg1 = (wxStaticText *) 0 ;
8169 wxWindow *arg2 = (wxWindow *) 0 ;
8170 int arg3 = (int) -1 ;
8171 wxString const &arg4_defvalue = wxPyEmptyString ;
8172 wxString *arg4 = (wxString *) &arg4_defvalue ;
8173 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8174 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8175 wxSize const &arg6_defvalue = wxDefaultSize ;
8176 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8177 long arg7 = (long) 0 ;
8178 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8179 wxString *arg8 = (wxString *) &arg8_defvalue ;
8180 bool result;
8181 void *argp1 = 0 ;
8182 int res1 = 0 ;
8183 void *argp2 = 0 ;
8184 int res2 = 0 ;
8185 int val3 ;
8186 int ecode3 = 0 ;
8187 bool temp4 = false ;
8188 wxPoint temp5 ;
8189 wxSize temp6 ;
8190 long val7 ;
8191 int ecode7 = 0 ;
8192 bool temp8 = false ;
8193 PyObject * obj0 = 0 ;
8194 PyObject * obj1 = 0 ;
8195 PyObject * obj2 = 0 ;
8196 PyObject * obj3 = 0 ;
8197 PyObject * obj4 = 0 ;
8198 PyObject * obj5 = 0 ;
8199 PyObject * obj6 = 0 ;
8200 PyObject * obj7 = 0 ;
8201 char * kwnames[] = {
8202 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8203 };
8204
8205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8207 if (!SWIG_IsOK(res1)) {
8208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8209 }
8210 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8211 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8212 if (!SWIG_IsOK(res2)) {
8213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8214 }
8215 arg2 = reinterpret_cast< wxWindow * >(argp2);
8216 if (obj2) {
8217 ecode3 = SWIG_AsVal_int(obj2, &val3);
8218 if (!SWIG_IsOK(ecode3)) {
8219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8220 }
8221 arg3 = static_cast< int >(val3);
8222 }
8223 if (obj3) {
8224 {
8225 arg4 = wxString_in_helper(obj3);
8226 if (arg4 == NULL) SWIG_fail;
8227 temp4 = true;
8228 }
8229 }
8230 if (obj4) {
8231 {
8232 arg5 = &temp5;
8233 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8234 }
8235 }
8236 if (obj5) {
8237 {
8238 arg6 = &temp6;
8239 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8240 }
8241 }
8242 if (obj6) {
8243 ecode7 = SWIG_AsVal_long(obj6, &val7);
8244 if (!SWIG_IsOK(ecode7)) {
8245 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8246 }
8247 arg7 = static_cast< long >(val7);
8248 }
8249 if (obj7) {
8250 {
8251 arg8 = wxString_in_helper(obj7);
8252 if (arg8 == NULL) SWIG_fail;
8253 temp8 = true;
8254 }
8255 }
8256 {
8257 PyThreadState* __tstate = wxPyBeginAllowThreads();
8258 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8259 wxPyEndAllowThreads(__tstate);
8260 if (PyErr_Occurred()) SWIG_fail;
8261 }
8262 {
8263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8264 }
8265 {
8266 if (temp4)
8267 delete arg4;
8268 }
8269 {
8270 if (temp8)
8271 delete arg8;
8272 }
8273 return resultobj;
8274 fail:
8275 {
8276 if (temp4)
8277 delete arg4;
8278 }
8279 {
8280 if (temp8)
8281 delete arg8;
8282 }
8283 return NULL;
8284 }
8285
8286
8287 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8288 PyObject *resultobj = 0;
8289 wxStaticText *arg1 = (wxStaticText *) 0 ;
8290 int arg2 ;
8291 void *argp1 = 0 ;
8292 int res1 = 0 ;
8293 int val2 ;
8294 int ecode2 = 0 ;
8295 PyObject * obj0 = 0 ;
8296 PyObject * obj1 = 0 ;
8297 char * kwnames[] = {
8298 (char *) "self",(char *) "width", NULL
8299 };
8300
8301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8303 if (!SWIG_IsOK(res1)) {
8304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8305 }
8306 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8307 ecode2 = SWIG_AsVal_int(obj1, &val2);
8308 if (!SWIG_IsOK(ecode2)) {
8309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8310 }
8311 arg2 = static_cast< int >(val2);
8312 {
8313 PyThreadState* __tstate = wxPyBeginAllowThreads();
8314 (arg1)->Wrap(arg2);
8315 wxPyEndAllowThreads(__tstate);
8316 if (PyErr_Occurred()) SWIG_fail;
8317 }
8318 resultobj = SWIG_Py_Void();
8319 return resultobj;
8320 fail:
8321 return NULL;
8322 }
8323
8324
8325 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8326 PyObject *resultobj = 0;
8327 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8328 SwigValueWrapper<wxVisualAttributes > result;
8329 int val1 ;
8330 int ecode1 = 0 ;
8331 PyObject * obj0 = 0 ;
8332 char * kwnames[] = {
8333 (char *) "variant", NULL
8334 };
8335
8336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8337 if (obj0) {
8338 ecode1 = SWIG_AsVal_int(obj0, &val1);
8339 if (!SWIG_IsOK(ecode1)) {
8340 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8341 }
8342 arg1 = static_cast< wxWindowVariant >(val1);
8343 }
8344 {
8345 if (!wxPyCheckForApp()) SWIG_fail;
8346 PyThreadState* __tstate = wxPyBeginAllowThreads();
8347 result = wxStaticText::GetClassDefaultAttributes(arg1);
8348 wxPyEndAllowThreads(__tstate);
8349 if (PyErr_Occurred()) SWIG_fail;
8350 }
8351 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8352 return resultobj;
8353 fail:
8354 return NULL;
8355 }
8356
8357
8358 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8359 PyObject *obj;
8360 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8361 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8362 return SWIG_Py_Void();
8363 }
8364
8365 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8366 return SWIG_Python_InitShadowInstance(args);
8367 }
8368
8369 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8370 PyObject *resultobj = 0;
8371 wxWindow *arg1 = (wxWindow *) 0 ;
8372 int arg2 = (int) -1 ;
8373 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8374 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8375 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8376 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8377 wxSize const &arg5_defvalue = wxDefaultSize ;
8378 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8379 long arg6 = (long) 0 ;
8380 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8381 wxString *arg7 = (wxString *) &arg7_defvalue ;
8382 wxStaticBitmap *result = 0 ;
8383 void *argp1 = 0 ;
8384 int res1 = 0 ;
8385 int val2 ;
8386 int ecode2 = 0 ;
8387 void *argp3 = 0 ;
8388 int res3 = 0 ;
8389 wxPoint temp4 ;
8390 wxSize temp5 ;
8391 long val6 ;
8392 int ecode6 = 0 ;
8393 bool temp7 = false ;
8394 PyObject * obj0 = 0 ;
8395 PyObject * obj1 = 0 ;
8396 PyObject * obj2 = 0 ;
8397 PyObject * obj3 = 0 ;
8398 PyObject * obj4 = 0 ;
8399 PyObject * obj5 = 0 ;
8400 PyObject * obj6 = 0 ;
8401 char * kwnames[] = {
8402 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8403 };
8404
8405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8407 if (!SWIG_IsOK(res1)) {
8408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8409 }
8410 arg1 = reinterpret_cast< wxWindow * >(argp1);
8411 if (obj1) {
8412 ecode2 = SWIG_AsVal_int(obj1, &val2);
8413 if (!SWIG_IsOK(ecode2)) {
8414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8415 }
8416 arg2 = static_cast< int >(val2);
8417 }
8418 if (obj2) {
8419 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8420 if (!SWIG_IsOK(res3)) {
8421 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8422 }
8423 if (!argp3) {
8424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8425 }
8426 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8427 }
8428 if (obj3) {
8429 {
8430 arg4 = &temp4;
8431 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8432 }
8433 }
8434 if (obj4) {
8435 {
8436 arg5 = &temp5;
8437 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8438 }
8439 }
8440 if (obj5) {
8441 ecode6 = SWIG_AsVal_long(obj5, &val6);
8442 if (!SWIG_IsOK(ecode6)) {
8443 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8444 }
8445 arg6 = static_cast< long >(val6);
8446 }
8447 if (obj6) {
8448 {
8449 arg7 = wxString_in_helper(obj6);
8450 if (arg7 == NULL) SWIG_fail;
8451 temp7 = true;
8452 }
8453 }
8454 {
8455 if (!wxPyCheckForApp()) SWIG_fail;
8456 PyThreadState* __tstate = wxPyBeginAllowThreads();
8457 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8458 wxPyEndAllowThreads(__tstate);
8459 if (PyErr_Occurred()) SWIG_fail;
8460 }
8461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8462 {
8463 if (temp7)
8464 delete arg7;
8465 }
8466 return resultobj;
8467 fail:
8468 {
8469 if (temp7)
8470 delete arg7;
8471 }
8472 return NULL;
8473 }
8474
8475
8476 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8477 PyObject *resultobj = 0;
8478 wxStaticBitmap *result = 0 ;
8479
8480 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8481 {
8482 if (!wxPyCheckForApp()) SWIG_fail;
8483 PyThreadState* __tstate = wxPyBeginAllowThreads();
8484 result = (wxStaticBitmap *)new wxStaticBitmap();
8485 wxPyEndAllowThreads(__tstate);
8486 if (PyErr_Occurred()) SWIG_fail;
8487 }
8488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8489 return resultobj;
8490 fail:
8491 return NULL;
8492 }
8493
8494
8495 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8496 PyObject *resultobj = 0;
8497 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8498 wxWindow *arg2 = (wxWindow *) 0 ;
8499 int arg3 = (int) -1 ;
8500 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8501 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8502 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8503 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8504 wxSize const &arg6_defvalue = wxDefaultSize ;
8505 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8506 long arg7 = (long) 0 ;
8507 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8508 wxString *arg8 = (wxString *) &arg8_defvalue ;
8509 bool result;
8510 void *argp1 = 0 ;
8511 int res1 = 0 ;
8512 void *argp2 = 0 ;
8513 int res2 = 0 ;
8514 int val3 ;
8515 int ecode3 = 0 ;
8516 void *argp4 = 0 ;
8517 int res4 = 0 ;
8518 wxPoint temp5 ;
8519 wxSize temp6 ;
8520 long val7 ;
8521 int ecode7 = 0 ;
8522 bool temp8 = false ;
8523 PyObject * obj0 = 0 ;
8524 PyObject * obj1 = 0 ;
8525 PyObject * obj2 = 0 ;
8526 PyObject * obj3 = 0 ;
8527 PyObject * obj4 = 0 ;
8528 PyObject * obj5 = 0 ;
8529 PyObject * obj6 = 0 ;
8530 PyObject * obj7 = 0 ;
8531 char * kwnames[] = {
8532 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8533 };
8534
8535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8537 if (!SWIG_IsOK(res1)) {
8538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8539 }
8540 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8541 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8542 if (!SWIG_IsOK(res2)) {
8543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8544 }
8545 arg2 = reinterpret_cast< wxWindow * >(argp2);
8546 if (obj2) {
8547 ecode3 = SWIG_AsVal_int(obj2, &val3);
8548 if (!SWIG_IsOK(ecode3)) {
8549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8550 }
8551 arg3 = static_cast< int >(val3);
8552 }
8553 if (obj3) {
8554 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8555 if (!SWIG_IsOK(res4)) {
8556 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8557 }
8558 if (!argp4) {
8559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8560 }
8561 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8562 }
8563 if (obj4) {
8564 {
8565 arg5 = &temp5;
8566 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8567 }
8568 }
8569 if (obj5) {
8570 {
8571 arg6 = &temp6;
8572 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8573 }
8574 }
8575 if (obj6) {
8576 ecode7 = SWIG_AsVal_long(obj6, &val7);
8577 if (!SWIG_IsOK(ecode7)) {
8578 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8579 }
8580 arg7 = static_cast< long >(val7);
8581 }
8582 if (obj7) {
8583 {
8584 arg8 = wxString_in_helper(obj7);
8585 if (arg8 == NULL) SWIG_fail;
8586 temp8 = true;
8587 }
8588 }
8589 {
8590 PyThreadState* __tstate = wxPyBeginAllowThreads();
8591 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8592 wxPyEndAllowThreads(__tstate);
8593 if (PyErr_Occurred()) SWIG_fail;
8594 }
8595 {
8596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8597 }
8598 {
8599 if (temp8)
8600 delete arg8;
8601 }
8602 return resultobj;
8603 fail:
8604 {
8605 if (temp8)
8606 delete arg8;
8607 }
8608 return NULL;
8609 }
8610
8611
8612 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8613 PyObject *resultobj = 0;
8614 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8615 wxBitmap result;
8616 void *argp1 = 0 ;
8617 int res1 = 0 ;
8618 PyObject *swig_obj[1] ;
8619
8620 if (!args) SWIG_fail;
8621 swig_obj[0] = args;
8622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8623 if (!SWIG_IsOK(res1)) {
8624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8625 }
8626 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8627 {
8628 PyThreadState* __tstate = wxPyBeginAllowThreads();
8629 result = (arg1)->GetBitmap();
8630 wxPyEndAllowThreads(__tstate);
8631 if (PyErr_Occurred()) SWIG_fail;
8632 }
8633 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8634 return resultobj;
8635 fail:
8636 return NULL;
8637 }
8638
8639
8640 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8641 PyObject *resultobj = 0;
8642 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8643 wxBitmap *arg2 = 0 ;
8644 void *argp1 = 0 ;
8645 int res1 = 0 ;
8646 void *argp2 = 0 ;
8647 int res2 = 0 ;
8648 PyObject * obj0 = 0 ;
8649 PyObject * obj1 = 0 ;
8650 char * kwnames[] = {
8651 (char *) "self",(char *) "bitmap", NULL
8652 };
8653
8654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8656 if (!SWIG_IsOK(res1)) {
8657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8658 }
8659 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8660 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8661 if (!SWIG_IsOK(res2)) {
8662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8663 }
8664 if (!argp2) {
8665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8666 }
8667 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8668 {
8669 PyThreadState* __tstate = wxPyBeginAllowThreads();
8670 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8671 wxPyEndAllowThreads(__tstate);
8672 if (PyErr_Occurred()) SWIG_fail;
8673 }
8674 resultobj = SWIG_Py_Void();
8675 return resultobj;
8676 fail:
8677 return NULL;
8678 }
8679
8680
8681 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8682 PyObject *resultobj = 0;
8683 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8684 wxIcon *arg2 = 0 ;
8685 void *argp1 = 0 ;
8686 int res1 = 0 ;
8687 void *argp2 = 0 ;
8688 int res2 = 0 ;
8689 PyObject * obj0 = 0 ;
8690 PyObject * obj1 = 0 ;
8691 char * kwnames[] = {
8692 (char *) "self",(char *) "icon", NULL
8693 };
8694
8695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8697 if (!SWIG_IsOK(res1)) {
8698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8699 }
8700 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8702 if (!SWIG_IsOK(res2)) {
8703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8704 }
8705 if (!argp2) {
8706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8707 }
8708 arg2 = reinterpret_cast< wxIcon * >(argp2);
8709 {
8710 PyThreadState* __tstate = wxPyBeginAllowThreads();
8711 (arg1)->SetIcon((wxIcon const &)*arg2);
8712 wxPyEndAllowThreads(__tstate);
8713 if (PyErr_Occurred()) SWIG_fail;
8714 }
8715 resultobj = SWIG_Py_Void();
8716 return resultobj;
8717 fail:
8718 return NULL;
8719 }
8720
8721
8722 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8723 PyObject *resultobj = 0;
8724 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8725 SwigValueWrapper<wxVisualAttributes > result;
8726 int val1 ;
8727 int ecode1 = 0 ;
8728 PyObject * obj0 = 0 ;
8729 char * kwnames[] = {
8730 (char *) "variant", NULL
8731 };
8732
8733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8734 if (obj0) {
8735 ecode1 = SWIG_AsVal_int(obj0, &val1);
8736 if (!SWIG_IsOK(ecode1)) {
8737 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8738 }
8739 arg1 = static_cast< wxWindowVariant >(val1);
8740 }
8741 {
8742 if (!wxPyCheckForApp()) SWIG_fail;
8743 PyThreadState* __tstate = wxPyBeginAllowThreads();
8744 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8745 wxPyEndAllowThreads(__tstate);
8746 if (PyErr_Occurred()) SWIG_fail;
8747 }
8748 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8749 return resultobj;
8750 fail:
8751 return NULL;
8752 }
8753
8754
8755 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8756 PyObject *obj;
8757 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8758 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8759 return SWIG_Py_Void();
8760 }
8761
8762 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8763 return SWIG_Python_InitShadowInstance(args);
8764 }
8765
8766 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8767 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8768 return 1;
8769 }
8770
8771
8772 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8773 PyObject *pyobj = 0;
8774
8775 {
8776 #if wxUSE_UNICODE
8777 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8778 #else
8779 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8780 #endif
8781 }
8782 return pyobj;
8783 }
8784
8785
8786 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8787 PyObject *resultobj = 0;
8788 wxWindow *arg1 = (wxWindow *) 0 ;
8789 int arg2 = (int) -1 ;
8790 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8791 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8792 wxSize const &arg4_defvalue = wxDefaultSize ;
8793 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8794 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8795 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8796 long arg6 = (long) 0 ;
8797 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8798 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8799 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8800 wxString *arg8 = (wxString *) &arg8_defvalue ;
8801 wxListBox *result = 0 ;
8802 void *argp1 = 0 ;
8803 int res1 = 0 ;
8804 int val2 ;
8805 int ecode2 = 0 ;
8806 wxPoint temp3 ;
8807 wxSize temp4 ;
8808 bool temp5 = false ;
8809 long val6 ;
8810 int ecode6 = 0 ;
8811 void *argp7 = 0 ;
8812 int res7 = 0 ;
8813 bool temp8 = false ;
8814 PyObject * obj0 = 0 ;
8815 PyObject * obj1 = 0 ;
8816 PyObject * obj2 = 0 ;
8817 PyObject * obj3 = 0 ;
8818 PyObject * obj4 = 0 ;
8819 PyObject * obj5 = 0 ;
8820 PyObject * obj6 = 0 ;
8821 PyObject * obj7 = 0 ;
8822 char * kwnames[] = {
8823 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8824 };
8825
8826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8828 if (!SWIG_IsOK(res1)) {
8829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8830 }
8831 arg1 = reinterpret_cast< wxWindow * >(argp1);
8832 if (obj1) {
8833 ecode2 = SWIG_AsVal_int(obj1, &val2);
8834 if (!SWIG_IsOK(ecode2)) {
8835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8836 }
8837 arg2 = static_cast< int >(val2);
8838 }
8839 if (obj2) {
8840 {
8841 arg3 = &temp3;
8842 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8843 }
8844 }
8845 if (obj3) {
8846 {
8847 arg4 = &temp4;
8848 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8849 }
8850 }
8851 if (obj4) {
8852 {
8853 if (! PySequence_Check(obj4)) {
8854 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8855 SWIG_fail;
8856 }
8857 arg5 = new wxArrayString;
8858 temp5 = true;
8859 int i, len=PySequence_Length(obj4);
8860 for (i=0; i<len; i++) {
8861 PyObject* item = PySequence_GetItem(obj4, i);
8862 wxString* s = wxString_in_helper(item);
8863 if (PyErr_Occurred()) SWIG_fail;
8864 arg5->Add(*s);
8865 delete s;
8866 Py_DECREF(item);
8867 }
8868 }
8869 }
8870 if (obj5) {
8871 ecode6 = SWIG_AsVal_long(obj5, &val6);
8872 if (!SWIG_IsOK(ecode6)) {
8873 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8874 }
8875 arg6 = static_cast< long >(val6);
8876 }
8877 if (obj6) {
8878 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8879 if (!SWIG_IsOK(res7)) {
8880 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8881 }
8882 if (!argp7) {
8883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8884 }
8885 arg7 = reinterpret_cast< wxValidator * >(argp7);
8886 }
8887 if (obj7) {
8888 {
8889 arg8 = wxString_in_helper(obj7);
8890 if (arg8 == NULL) SWIG_fail;
8891 temp8 = true;
8892 }
8893 }
8894 {
8895 if (!wxPyCheckForApp()) SWIG_fail;
8896 PyThreadState* __tstate = wxPyBeginAllowThreads();
8897 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8898 wxPyEndAllowThreads(__tstate);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 }
8901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8902 {
8903 if (temp5) delete arg5;
8904 }
8905 {
8906 if (temp8)
8907 delete arg8;
8908 }
8909 return resultobj;
8910 fail:
8911 {
8912 if (temp5) delete arg5;
8913 }
8914 {
8915 if (temp8)
8916 delete arg8;
8917 }
8918 return NULL;
8919 }
8920
8921
8922 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8923 PyObject *resultobj = 0;
8924 wxListBox *result = 0 ;
8925
8926 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8927 {
8928 if (!wxPyCheckForApp()) SWIG_fail;
8929 PyThreadState* __tstate = wxPyBeginAllowThreads();
8930 result = (wxListBox *)new wxListBox();
8931 wxPyEndAllowThreads(__tstate);
8932 if (PyErr_Occurred()) SWIG_fail;
8933 }
8934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8935 return resultobj;
8936 fail:
8937 return NULL;
8938 }
8939
8940
8941 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8942 PyObject *resultobj = 0;
8943 wxListBox *arg1 = (wxListBox *) 0 ;
8944 wxWindow *arg2 = (wxWindow *) 0 ;
8945 int arg3 = (int) -1 ;
8946 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8947 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8948 wxSize const &arg5_defvalue = wxDefaultSize ;
8949 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8950 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8951 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8952 long arg7 = (long) 0 ;
8953 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8954 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8955 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8956 wxString *arg9 = (wxString *) &arg9_defvalue ;
8957 bool result;
8958 void *argp1 = 0 ;
8959 int res1 = 0 ;
8960 void *argp2 = 0 ;
8961 int res2 = 0 ;
8962 int val3 ;
8963 int ecode3 = 0 ;
8964 wxPoint temp4 ;
8965 wxSize temp5 ;
8966 bool temp6 = false ;
8967 long val7 ;
8968 int ecode7 = 0 ;
8969 void *argp8 = 0 ;
8970 int res8 = 0 ;
8971 bool temp9 = false ;
8972 PyObject * obj0 = 0 ;
8973 PyObject * obj1 = 0 ;
8974 PyObject * obj2 = 0 ;
8975 PyObject * obj3 = 0 ;
8976 PyObject * obj4 = 0 ;
8977 PyObject * obj5 = 0 ;
8978 PyObject * obj6 = 0 ;
8979 PyObject * obj7 = 0 ;
8980 PyObject * obj8 = 0 ;
8981 char * kwnames[] = {
8982 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8983 };
8984
8985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8987 if (!SWIG_IsOK(res1)) {
8988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8989 }
8990 arg1 = reinterpret_cast< wxListBox * >(argp1);
8991 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8992 if (!SWIG_IsOK(res2)) {
8993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8994 }
8995 arg2 = reinterpret_cast< wxWindow * >(argp2);
8996 if (obj2) {
8997 ecode3 = SWIG_AsVal_int(obj2, &val3);
8998 if (!SWIG_IsOK(ecode3)) {
8999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9000 }
9001 arg3 = static_cast< int >(val3);
9002 }
9003 if (obj3) {
9004 {
9005 arg4 = &temp4;
9006 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9007 }
9008 }
9009 if (obj4) {
9010 {
9011 arg5 = &temp5;
9012 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9013 }
9014 }
9015 if (obj5) {
9016 {
9017 if (! PySequence_Check(obj5)) {
9018 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9019 SWIG_fail;
9020 }
9021 arg6 = new wxArrayString;
9022 temp6 = true;
9023 int i, len=PySequence_Length(obj5);
9024 for (i=0; i<len; i++) {
9025 PyObject* item = PySequence_GetItem(obj5, i);
9026 wxString* s = wxString_in_helper(item);
9027 if (PyErr_Occurred()) SWIG_fail;
9028 arg6->Add(*s);
9029 delete s;
9030 Py_DECREF(item);
9031 }
9032 }
9033 }
9034 if (obj6) {
9035 ecode7 = SWIG_AsVal_long(obj6, &val7);
9036 if (!SWIG_IsOK(ecode7)) {
9037 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9038 }
9039 arg7 = static_cast< long >(val7);
9040 }
9041 if (obj7) {
9042 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9043 if (!SWIG_IsOK(res8)) {
9044 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9045 }
9046 if (!argp8) {
9047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9048 }
9049 arg8 = reinterpret_cast< wxValidator * >(argp8);
9050 }
9051 if (obj8) {
9052 {
9053 arg9 = wxString_in_helper(obj8);
9054 if (arg9 == NULL) SWIG_fail;
9055 temp9 = true;
9056 }
9057 }
9058 {
9059 PyThreadState* __tstate = wxPyBeginAllowThreads();
9060 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9061 wxPyEndAllowThreads(__tstate);
9062 if (PyErr_Occurred()) SWIG_fail;
9063 }
9064 {
9065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9066 }
9067 {
9068 if (temp6) delete arg6;
9069 }
9070 {
9071 if (temp9)
9072 delete arg9;
9073 }
9074 return resultobj;
9075 fail:
9076 {
9077 if (temp6) delete arg6;
9078 }
9079 {
9080 if (temp9)
9081 delete arg9;
9082 }
9083 return NULL;
9084 }
9085
9086
9087 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9088 PyObject *resultobj = 0;
9089 wxListBox *arg1 = (wxListBox *) 0 ;
9090 wxString *arg2 = 0 ;
9091 int arg3 ;
9092 PyObject *arg4 = (PyObject *) NULL ;
9093 void *argp1 = 0 ;
9094 int res1 = 0 ;
9095 bool temp2 = false ;
9096 int val3 ;
9097 int ecode3 = 0 ;
9098 PyObject * obj0 = 0 ;
9099 PyObject * obj1 = 0 ;
9100 PyObject * obj2 = 0 ;
9101 PyObject * obj3 = 0 ;
9102 char * kwnames[] = {
9103 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9104 };
9105
9106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9108 if (!SWIG_IsOK(res1)) {
9109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9110 }
9111 arg1 = reinterpret_cast< wxListBox * >(argp1);
9112 {
9113 arg2 = wxString_in_helper(obj1);
9114 if (arg2 == NULL) SWIG_fail;
9115 temp2 = true;
9116 }
9117 ecode3 = SWIG_AsVal_int(obj2, &val3);
9118 if (!SWIG_IsOK(ecode3)) {
9119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9120 }
9121 arg3 = static_cast< int >(val3);
9122 if (obj3) {
9123 arg4 = obj3;
9124 }
9125 {
9126 PyThreadState* __tstate = wxPyBeginAllowThreads();
9127 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9128 wxPyEndAllowThreads(__tstate);
9129 if (PyErr_Occurred()) SWIG_fail;
9130 }
9131 resultobj = SWIG_Py_Void();
9132 {
9133 if (temp2)
9134 delete arg2;
9135 }
9136 return resultobj;
9137 fail:
9138 {
9139 if (temp2)
9140 delete arg2;
9141 }
9142 return NULL;
9143 }
9144
9145
9146 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9147 PyObject *resultobj = 0;
9148 wxListBox *arg1 = (wxListBox *) 0 ;
9149 wxArrayString *arg2 = 0 ;
9150 unsigned int arg3 ;
9151 void *argp1 = 0 ;
9152 int res1 = 0 ;
9153 bool temp2 = false ;
9154 unsigned int val3 ;
9155 int ecode3 = 0 ;
9156 PyObject * obj0 = 0 ;
9157 PyObject * obj1 = 0 ;
9158 PyObject * obj2 = 0 ;
9159 char * kwnames[] = {
9160 (char *) "self",(char *) "items",(char *) "pos", NULL
9161 };
9162
9163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9165 if (!SWIG_IsOK(res1)) {
9166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9167 }
9168 arg1 = reinterpret_cast< wxListBox * >(argp1);
9169 {
9170 if (! PySequence_Check(obj1)) {
9171 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9172 SWIG_fail;
9173 }
9174 arg2 = new wxArrayString;
9175 temp2 = true;
9176 int i, len=PySequence_Length(obj1);
9177 for (i=0; i<len; i++) {
9178 PyObject* item = PySequence_GetItem(obj1, i);
9179 wxString* s = wxString_in_helper(item);
9180 if (PyErr_Occurred()) SWIG_fail;
9181 arg2->Add(*s);
9182 delete s;
9183 Py_DECREF(item);
9184 }
9185 }
9186 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9187 if (!SWIG_IsOK(ecode3)) {
9188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9189 }
9190 arg3 = static_cast< unsigned int >(val3);
9191 {
9192 PyThreadState* __tstate = wxPyBeginAllowThreads();
9193 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9194 wxPyEndAllowThreads(__tstate);
9195 if (PyErr_Occurred()) SWIG_fail;
9196 }
9197 resultobj = SWIG_Py_Void();
9198 {
9199 if (temp2) delete arg2;
9200 }
9201 return resultobj;
9202 fail:
9203 {
9204 if (temp2) delete arg2;
9205 }
9206 return NULL;
9207 }
9208
9209
9210 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9211 PyObject *resultobj = 0;
9212 wxListBox *arg1 = (wxListBox *) 0 ;
9213 wxArrayString *arg2 = 0 ;
9214 void *argp1 = 0 ;
9215 int res1 = 0 ;
9216 bool temp2 = false ;
9217 PyObject * obj0 = 0 ;
9218 PyObject * obj1 = 0 ;
9219 char * kwnames[] = {
9220 (char *) "self",(char *) "items", NULL
9221 };
9222
9223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9225 if (!SWIG_IsOK(res1)) {
9226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9227 }
9228 arg1 = reinterpret_cast< wxListBox * >(argp1);
9229 {
9230 if (! PySequence_Check(obj1)) {
9231 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9232 SWIG_fail;
9233 }
9234 arg2 = new wxArrayString;
9235 temp2 = true;
9236 int i, len=PySequence_Length(obj1);
9237 for (i=0; i<len; i++) {
9238 PyObject* item = PySequence_GetItem(obj1, i);
9239 wxString* s = wxString_in_helper(item);
9240 if (PyErr_Occurred()) SWIG_fail;
9241 arg2->Add(*s);
9242 delete s;
9243 Py_DECREF(item);
9244 }
9245 }
9246 {
9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
9248 (arg1)->Set((wxArrayString const &)*arg2);
9249 wxPyEndAllowThreads(__tstate);
9250 if (PyErr_Occurred()) SWIG_fail;
9251 }
9252 resultobj = SWIG_Py_Void();
9253 {
9254 if (temp2) delete arg2;
9255 }
9256 return resultobj;
9257 fail:
9258 {
9259 if (temp2) delete arg2;
9260 }
9261 return NULL;
9262 }
9263
9264
9265 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9266 PyObject *resultobj = 0;
9267 wxListBox *arg1 = (wxListBox *) 0 ;
9268 int arg2 ;
9269 bool result;
9270 void *argp1 = 0 ;
9271 int res1 = 0 ;
9272 int val2 ;
9273 int ecode2 = 0 ;
9274 PyObject * obj0 = 0 ;
9275 PyObject * obj1 = 0 ;
9276 char * kwnames[] = {
9277 (char *) "self",(char *) "n", NULL
9278 };
9279
9280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9282 if (!SWIG_IsOK(res1)) {
9283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9284 }
9285 arg1 = reinterpret_cast< wxListBox * >(argp1);
9286 ecode2 = SWIG_AsVal_int(obj1, &val2);
9287 if (!SWIG_IsOK(ecode2)) {
9288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9289 }
9290 arg2 = static_cast< int >(val2);
9291 {
9292 PyThreadState* __tstate = wxPyBeginAllowThreads();
9293 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9294 wxPyEndAllowThreads(__tstate);
9295 if (PyErr_Occurred()) SWIG_fail;
9296 }
9297 {
9298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9299 }
9300 return resultobj;
9301 fail:
9302 return NULL;
9303 }
9304
9305
9306 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9307 PyObject *resultobj = 0;
9308 wxListBox *arg1 = (wxListBox *) 0 ;
9309 int arg2 ;
9310 bool arg3 = (bool) true ;
9311 void *argp1 = 0 ;
9312 int res1 = 0 ;
9313 int val2 ;
9314 int ecode2 = 0 ;
9315 bool val3 ;
9316 int ecode3 = 0 ;
9317 PyObject * obj0 = 0 ;
9318 PyObject * obj1 = 0 ;
9319 PyObject * obj2 = 0 ;
9320 char * kwnames[] = {
9321 (char *) "self",(char *) "n",(char *) "select", NULL
9322 };
9323
9324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9326 if (!SWIG_IsOK(res1)) {
9327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9328 }
9329 arg1 = reinterpret_cast< wxListBox * >(argp1);
9330 ecode2 = SWIG_AsVal_int(obj1, &val2);
9331 if (!SWIG_IsOK(ecode2)) {
9332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9333 }
9334 arg2 = static_cast< int >(val2);
9335 if (obj2) {
9336 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9337 if (!SWIG_IsOK(ecode3)) {
9338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9339 }
9340 arg3 = static_cast< bool >(val3);
9341 }
9342 {
9343 PyThreadState* __tstate = wxPyBeginAllowThreads();
9344 (arg1)->SetSelection(arg2,arg3);
9345 wxPyEndAllowThreads(__tstate);
9346 if (PyErr_Occurred()) SWIG_fail;
9347 }
9348 resultobj = SWIG_Py_Void();
9349 return resultobj;
9350 fail:
9351 return NULL;
9352 }
9353
9354
9355 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9356 PyObject *resultobj = 0;
9357 wxListBox *arg1 = (wxListBox *) 0 ;
9358 int arg2 ;
9359 void *argp1 = 0 ;
9360 int res1 = 0 ;
9361 int val2 ;
9362 int ecode2 = 0 ;
9363 PyObject * obj0 = 0 ;
9364 PyObject * obj1 = 0 ;
9365 char * kwnames[] = {
9366 (char *) "self",(char *) "n", NULL
9367 };
9368
9369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9371 if (!SWIG_IsOK(res1)) {
9372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9373 }
9374 arg1 = reinterpret_cast< wxListBox * >(argp1);
9375 ecode2 = SWIG_AsVal_int(obj1, &val2);
9376 if (!SWIG_IsOK(ecode2)) {
9377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9378 }
9379 arg2 = static_cast< int >(val2);
9380 {
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 (arg1)->Select(arg2);
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 resultobj = SWIG_Py_Void();
9387 return resultobj;
9388 fail:
9389 return NULL;
9390 }
9391
9392
9393 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9394 PyObject *resultobj = 0;
9395 wxListBox *arg1 = (wxListBox *) 0 ;
9396 int arg2 ;
9397 void *argp1 = 0 ;
9398 int res1 = 0 ;
9399 int val2 ;
9400 int ecode2 = 0 ;
9401 PyObject * obj0 = 0 ;
9402 PyObject * obj1 = 0 ;
9403 char * kwnames[] = {
9404 (char *) "self",(char *) "n", NULL
9405 };
9406
9407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9409 if (!SWIG_IsOK(res1)) {
9410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9411 }
9412 arg1 = reinterpret_cast< wxListBox * >(argp1);
9413 ecode2 = SWIG_AsVal_int(obj1, &val2);
9414 if (!SWIG_IsOK(ecode2)) {
9415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9416 }
9417 arg2 = static_cast< int >(val2);
9418 {
9419 PyThreadState* __tstate = wxPyBeginAllowThreads();
9420 (arg1)->Deselect(arg2);
9421 wxPyEndAllowThreads(__tstate);
9422 if (PyErr_Occurred()) SWIG_fail;
9423 }
9424 resultobj = SWIG_Py_Void();
9425 return resultobj;
9426 fail:
9427 return NULL;
9428 }
9429
9430
9431 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9432 PyObject *resultobj = 0;
9433 wxListBox *arg1 = (wxListBox *) 0 ;
9434 int arg2 = (int) -1 ;
9435 void *argp1 = 0 ;
9436 int res1 = 0 ;
9437 int val2 ;
9438 int ecode2 = 0 ;
9439 PyObject * obj0 = 0 ;
9440 PyObject * obj1 = 0 ;
9441 char * kwnames[] = {
9442 (char *) "self",(char *) "itemToLeaveSelected", NULL
9443 };
9444
9445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9447 if (!SWIG_IsOK(res1)) {
9448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9449 }
9450 arg1 = reinterpret_cast< wxListBox * >(argp1);
9451 if (obj1) {
9452 ecode2 = SWIG_AsVal_int(obj1, &val2);
9453 if (!SWIG_IsOK(ecode2)) {
9454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9455 }
9456 arg2 = static_cast< int >(val2);
9457 }
9458 {
9459 PyThreadState* __tstate = wxPyBeginAllowThreads();
9460 (arg1)->DeselectAll(arg2);
9461 wxPyEndAllowThreads(__tstate);
9462 if (PyErr_Occurred()) SWIG_fail;
9463 }
9464 resultobj = SWIG_Py_Void();
9465 return resultobj;
9466 fail:
9467 return NULL;
9468 }
9469
9470
9471 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9472 PyObject *resultobj = 0;
9473 wxListBox *arg1 = (wxListBox *) 0 ;
9474 wxString *arg2 = 0 ;
9475 bool arg3 = (bool) true ;
9476 bool result;
9477 void *argp1 = 0 ;
9478 int res1 = 0 ;
9479 bool temp2 = false ;
9480 bool val3 ;
9481 int ecode3 = 0 ;
9482 PyObject * obj0 = 0 ;
9483 PyObject * obj1 = 0 ;
9484 PyObject * obj2 = 0 ;
9485 char * kwnames[] = {
9486 (char *) "self",(char *) "s",(char *) "select", NULL
9487 };
9488
9489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9491 if (!SWIG_IsOK(res1)) {
9492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9493 }
9494 arg1 = reinterpret_cast< wxListBox * >(argp1);
9495 {
9496 arg2 = wxString_in_helper(obj1);
9497 if (arg2 == NULL) SWIG_fail;
9498 temp2 = true;
9499 }
9500 if (obj2) {
9501 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9502 if (!SWIG_IsOK(ecode3)) {
9503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9504 }
9505 arg3 = static_cast< bool >(val3);
9506 }
9507 {
9508 PyThreadState* __tstate = wxPyBeginAllowThreads();
9509 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9510 wxPyEndAllowThreads(__tstate);
9511 if (PyErr_Occurred()) SWIG_fail;
9512 }
9513 {
9514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9515 }
9516 {
9517 if (temp2)
9518 delete arg2;
9519 }
9520 return resultobj;
9521 fail:
9522 {
9523 if (temp2)
9524 delete arg2;
9525 }
9526 return NULL;
9527 }
9528
9529
9530 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9531 PyObject *resultobj = 0;
9532 wxListBox *arg1 = (wxListBox *) 0 ;
9533 PyObject *result = 0 ;
9534 void *argp1 = 0 ;
9535 int res1 = 0 ;
9536 PyObject *swig_obj[1] ;
9537
9538 if (!args) SWIG_fail;
9539 swig_obj[0] = args;
9540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9541 if (!SWIG_IsOK(res1)) {
9542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9543 }
9544 arg1 = reinterpret_cast< wxListBox * >(argp1);
9545 {
9546 PyThreadState* __tstate = wxPyBeginAllowThreads();
9547 result = (PyObject *)wxListBox_GetSelections(arg1);
9548 wxPyEndAllowThreads(__tstate);
9549 if (PyErr_Occurred()) SWIG_fail;
9550 }
9551 resultobj = result;
9552 return resultobj;
9553 fail:
9554 return NULL;
9555 }
9556
9557
9558 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9559 PyObject *resultobj = 0;
9560 wxListBox *arg1 = (wxListBox *) 0 ;
9561 int arg2 ;
9562 void *argp1 = 0 ;
9563 int res1 = 0 ;
9564 int val2 ;
9565 int ecode2 = 0 ;
9566 PyObject * obj0 = 0 ;
9567 PyObject * obj1 = 0 ;
9568 char * kwnames[] = {
9569 (char *) "self",(char *) "n", NULL
9570 };
9571
9572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9574 if (!SWIG_IsOK(res1)) {
9575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9576 }
9577 arg1 = reinterpret_cast< wxListBox * >(argp1);
9578 ecode2 = SWIG_AsVal_int(obj1, &val2);
9579 if (!SWIG_IsOK(ecode2)) {
9580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9581 }
9582 arg2 = static_cast< int >(val2);
9583 {
9584 PyThreadState* __tstate = wxPyBeginAllowThreads();
9585 (arg1)->SetFirstItem(arg2);
9586 wxPyEndAllowThreads(__tstate);
9587 if (PyErr_Occurred()) SWIG_fail;
9588 }
9589 resultobj = SWIG_Py_Void();
9590 return resultobj;
9591 fail:
9592 return NULL;
9593 }
9594
9595
9596 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9597 PyObject *resultobj = 0;
9598 wxListBox *arg1 = (wxListBox *) 0 ;
9599 wxString *arg2 = 0 ;
9600 void *argp1 = 0 ;
9601 int res1 = 0 ;
9602 bool temp2 = false ;
9603 PyObject * obj0 = 0 ;
9604 PyObject * obj1 = 0 ;
9605 char * kwnames[] = {
9606 (char *) "self",(char *) "s", NULL
9607 };
9608
9609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9611 if (!SWIG_IsOK(res1)) {
9612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9613 }
9614 arg1 = reinterpret_cast< wxListBox * >(argp1);
9615 {
9616 arg2 = wxString_in_helper(obj1);
9617 if (arg2 == NULL) SWIG_fail;
9618 temp2 = true;
9619 }
9620 {
9621 PyThreadState* __tstate = wxPyBeginAllowThreads();
9622 (arg1)->SetFirstItem((wxString const &)*arg2);
9623 wxPyEndAllowThreads(__tstate);
9624 if (PyErr_Occurred()) SWIG_fail;
9625 }
9626 resultobj = SWIG_Py_Void();
9627 {
9628 if (temp2)
9629 delete arg2;
9630 }
9631 return resultobj;
9632 fail:
9633 {
9634 if (temp2)
9635 delete arg2;
9636 }
9637 return NULL;
9638 }
9639
9640
9641 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9642 PyObject *resultobj = 0;
9643 wxListBox *arg1 = (wxListBox *) 0 ;
9644 int arg2 ;
9645 void *argp1 = 0 ;
9646 int res1 = 0 ;
9647 int val2 ;
9648 int ecode2 = 0 ;
9649 PyObject * obj0 = 0 ;
9650 PyObject * obj1 = 0 ;
9651 char * kwnames[] = {
9652 (char *) "self",(char *) "n", NULL
9653 };
9654
9655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9657 if (!SWIG_IsOK(res1)) {
9658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9659 }
9660 arg1 = reinterpret_cast< wxListBox * >(argp1);
9661 ecode2 = SWIG_AsVal_int(obj1, &val2);
9662 if (!SWIG_IsOK(ecode2)) {
9663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9664 }
9665 arg2 = static_cast< int >(val2);
9666 {
9667 PyThreadState* __tstate = wxPyBeginAllowThreads();
9668 (arg1)->EnsureVisible(arg2);
9669 wxPyEndAllowThreads(__tstate);
9670 if (PyErr_Occurred()) SWIG_fail;
9671 }
9672 resultobj = SWIG_Py_Void();
9673 return resultobj;
9674 fail:
9675 return NULL;
9676 }
9677
9678
9679 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9680 PyObject *resultobj = 0;
9681 wxListBox *arg1 = (wxListBox *) 0 ;
9682 wxString *arg2 = 0 ;
9683 void *argp1 = 0 ;
9684 int res1 = 0 ;
9685 bool temp2 = false ;
9686 PyObject * obj0 = 0 ;
9687 PyObject * obj1 = 0 ;
9688 char * kwnames[] = {
9689 (char *) "self",(char *) "s", NULL
9690 };
9691
9692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9694 if (!SWIG_IsOK(res1)) {
9695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9696 }
9697 arg1 = reinterpret_cast< wxListBox * >(argp1);
9698 {
9699 arg2 = wxString_in_helper(obj1);
9700 if (arg2 == NULL) SWIG_fail;
9701 temp2 = true;
9702 }
9703 {
9704 PyThreadState* __tstate = wxPyBeginAllowThreads();
9705 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9706 wxPyEndAllowThreads(__tstate);
9707 if (PyErr_Occurred()) SWIG_fail;
9708 }
9709 resultobj = SWIG_Py_Void();
9710 {
9711 if (temp2)
9712 delete arg2;
9713 }
9714 return resultobj;
9715 fail:
9716 {
9717 if (temp2)
9718 delete arg2;
9719 }
9720 return NULL;
9721 }
9722
9723
9724 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9725 PyObject *resultobj = 0;
9726 wxListBox *arg1 = (wxListBox *) 0 ;
9727 bool result;
9728 void *argp1 = 0 ;
9729 int res1 = 0 ;
9730 PyObject *swig_obj[1] ;
9731
9732 if (!args) SWIG_fail;
9733 swig_obj[0] = args;
9734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9735 if (!SWIG_IsOK(res1)) {
9736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9737 }
9738 arg1 = reinterpret_cast< wxListBox * >(argp1);
9739 {
9740 PyThreadState* __tstate = wxPyBeginAllowThreads();
9741 result = (bool)((wxListBox const *)arg1)->IsSorted();
9742 wxPyEndAllowThreads(__tstate);
9743 if (PyErr_Occurred()) SWIG_fail;
9744 }
9745 {
9746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9747 }
9748 return resultobj;
9749 fail:
9750 return NULL;
9751 }
9752
9753
9754 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9755 PyObject *resultobj = 0;
9756 wxListBox *arg1 = (wxListBox *) 0 ;
9757 wxPoint *arg2 = 0 ;
9758 int result;
9759 void *argp1 = 0 ;
9760 int res1 = 0 ;
9761 wxPoint temp2 ;
9762 PyObject * obj0 = 0 ;
9763 PyObject * obj1 = 0 ;
9764 char * kwnames[] = {
9765 (char *) "self",(char *) "pt", NULL
9766 };
9767
9768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9770 if (!SWIG_IsOK(res1)) {
9771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9772 }
9773 arg1 = reinterpret_cast< wxListBox * >(argp1);
9774 {
9775 arg2 = &temp2;
9776 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9777 }
9778 {
9779 PyThreadState* __tstate = wxPyBeginAllowThreads();
9780 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9781 wxPyEndAllowThreads(__tstate);
9782 if (PyErr_Occurred()) SWIG_fail;
9783 }
9784 resultobj = SWIG_From_int(static_cast< int >(result));
9785 return resultobj;
9786 fail:
9787 return NULL;
9788 }
9789
9790
9791 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9792 PyObject *resultobj = 0;
9793 wxListBox *arg1 = (wxListBox *) 0 ;
9794 int arg2 ;
9795 wxColour *arg3 = 0 ;
9796 void *argp1 = 0 ;
9797 int res1 = 0 ;
9798 int val2 ;
9799 int ecode2 = 0 ;
9800 wxColour temp3 ;
9801 PyObject * obj0 = 0 ;
9802 PyObject * obj1 = 0 ;
9803 PyObject * obj2 = 0 ;
9804 char * kwnames[] = {
9805 (char *) "self",(char *) "item",(char *) "c", NULL
9806 };
9807
9808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9810 if (!SWIG_IsOK(res1)) {
9811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9812 }
9813 arg1 = reinterpret_cast< wxListBox * >(argp1);
9814 ecode2 = SWIG_AsVal_int(obj1, &val2);
9815 if (!SWIG_IsOK(ecode2)) {
9816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9817 }
9818 arg2 = static_cast< int >(val2);
9819 {
9820 arg3 = &temp3;
9821 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9822 }
9823 {
9824 PyThreadState* __tstate = wxPyBeginAllowThreads();
9825 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9826 wxPyEndAllowThreads(__tstate);
9827 if (PyErr_Occurred()) SWIG_fail;
9828 }
9829 resultobj = SWIG_Py_Void();
9830 return resultobj;
9831 fail:
9832 return NULL;
9833 }
9834
9835
9836 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9837 PyObject *resultobj = 0;
9838 wxListBox *arg1 = (wxListBox *) 0 ;
9839 int arg2 ;
9840 wxColour *arg3 = 0 ;
9841 void *argp1 = 0 ;
9842 int res1 = 0 ;
9843 int val2 ;
9844 int ecode2 = 0 ;
9845 wxColour temp3 ;
9846 PyObject * obj0 = 0 ;
9847 PyObject * obj1 = 0 ;
9848 PyObject * obj2 = 0 ;
9849 char * kwnames[] = {
9850 (char *) "self",(char *) "item",(char *) "c", NULL
9851 };
9852
9853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9855 if (!SWIG_IsOK(res1)) {
9856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9857 }
9858 arg1 = reinterpret_cast< wxListBox * >(argp1);
9859 ecode2 = SWIG_AsVal_int(obj1, &val2);
9860 if (!SWIG_IsOK(ecode2)) {
9861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9862 }
9863 arg2 = static_cast< int >(val2);
9864 {
9865 arg3 = &temp3;
9866 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9867 }
9868 {
9869 PyThreadState* __tstate = wxPyBeginAllowThreads();
9870 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9871 wxPyEndAllowThreads(__tstate);
9872 if (PyErr_Occurred()) SWIG_fail;
9873 }
9874 resultobj = SWIG_Py_Void();
9875 return resultobj;
9876 fail:
9877 return NULL;
9878 }
9879
9880
9881 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9882 PyObject *resultobj = 0;
9883 wxListBox *arg1 = (wxListBox *) 0 ;
9884 int arg2 ;
9885 wxFont *arg3 = 0 ;
9886 void *argp1 = 0 ;
9887 int res1 = 0 ;
9888 int val2 ;
9889 int ecode2 = 0 ;
9890 void *argp3 = 0 ;
9891 int res3 = 0 ;
9892 PyObject * obj0 = 0 ;
9893 PyObject * obj1 = 0 ;
9894 PyObject * obj2 = 0 ;
9895 char * kwnames[] = {
9896 (char *) "self",(char *) "item",(char *) "f", NULL
9897 };
9898
9899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9901 if (!SWIG_IsOK(res1)) {
9902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9903 }
9904 arg1 = reinterpret_cast< wxListBox * >(argp1);
9905 ecode2 = SWIG_AsVal_int(obj1, &val2);
9906 if (!SWIG_IsOK(ecode2)) {
9907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9908 }
9909 arg2 = static_cast< int >(val2);
9910 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9911 if (!SWIG_IsOK(res3)) {
9912 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9913 }
9914 if (!argp3) {
9915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9916 }
9917 arg3 = reinterpret_cast< wxFont * >(argp3);
9918 {
9919 PyThreadState* __tstate = wxPyBeginAllowThreads();
9920 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9921 wxPyEndAllowThreads(__tstate);
9922 if (PyErr_Occurred()) SWIG_fail;
9923 }
9924 resultobj = SWIG_Py_Void();
9925 return resultobj;
9926 fail:
9927 return NULL;
9928 }
9929
9930
9931 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9932 PyObject *resultobj = 0;
9933 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9934 SwigValueWrapper<wxVisualAttributes > result;
9935 int val1 ;
9936 int ecode1 = 0 ;
9937 PyObject * obj0 = 0 ;
9938 char * kwnames[] = {
9939 (char *) "variant", NULL
9940 };
9941
9942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9943 if (obj0) {
9944 ecode1 = SWIG_AsVal_int(obj0, &val1);
9945 if (!SWIG_IsOK(ecode1)) {
9946 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9947 }
9948 arg1 = static_cast< wxWindowVariant >(val1);
9949 }
9950 {
9951 if (!wxPyCheckForApp()) SWIG_fail;
9952 PyThreadState* __tstate = wxPyBeginAllowThreads();
9953 result = wxListBox::GetClassDefaultAttributes(arg1);
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9958 return resultobj;
9959 fail:
9960 return NULL;
9961 }
9962
9963
9964 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9965 PyObject *obj;
9966 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9967 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9968 return SWIG_Py_Void();
9969 }
9970
9971 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9972 return SWIG_Python_InitShadowInstance(args);
9973 }
9974
9975 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9976 PyObject *resultobj = 0;
9977 wxWindow *arg1 = (wxWindow *) 0 ;
9978 int arg2 = (int) -1 ;
9979 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9980 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9981 wxSize const &arg4_defvalue = wxDefaultSize ;
9982 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9983 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9984 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9985 long arg6 = (long) 0 ;
9986 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9987 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9988 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9989 wxString *arg8 = (wxString *) &arg8_defvalue ;
9990 wxCheckListBox *result = 0 ;
9991 void *argp1 = 0 ;
9992 int res1 = 0 ;
9993 int val2 ;
9994 int ecode2 = 0 ;
9995 wxPoint temp3 ;
9996 wxSize temp4 ;
9997 bool temp5 = false ;
9998 long val6 ;
9999 int ecode6 = 0 ;
10000 void *argp7 = 0 ;
10001 int res7 = 0 ;
10002 bool temp8 = false ;
10003 PyObject * obj0 = 0 ;
10004 PyObject * obj1 = 0 ;
10005 PyObject * obj2 = 0 ;
10006 PyObject * obj3 = 0 ;
10007 PyObject * obj4 = 0 ;
10008 PyObject * obj5 = 0 ;
10009 PyObject * obj6 = 0 ;
10010 PyObject * obj7 = 0 ;
10011 char * kwnames[] = {
10012 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10013 };
10014
10015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10017 if (!SWIG_IsOK(res1)) {
10018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10019 }
10020 arg1 = reinterpret_cast< wxWindow * >(argp1);
10021 if (obj1) {
10022 ecode2 = SWIG_AsVal_int(obj1, &val2);
10023 if (!SWIG_IsOK(ecode2)) {
10024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10025 }
10026 arg2 = static_cast< int >(val2);
10027 }
10028 if (obj2) {
10029 {
10030 arg3 = &temp3;
10031 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10032 }
10033 }
10034 if (obj3) {
10035 {
10036 arg4 = &temp4;
10037 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10038 }
10039 }
10040 if (obj4) {
10041 {
10042 if (! PySequence_Check(obj4)) {
10043 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10044 SWIG_fail;
10045 }
10046 arg5 = new wxArrayString;
10047 temp5 = true;
10048 int i, len=PySequence_Length(obj4);
10049 for (i=0; i<len; i++) {
10050 PyObject* item = PySequence_GetItem(obj4, i);
10051 wxString* s = wxString_in_helper(item);
10052 if (PyErr_Occurred()) SWIG_fail;
10053 arg5->Add(*s);
10054 delete s;
10055 Py_DECREF(item);
10056 }
10057 }
10058 }
10059 if (obj5) {
10060 ecode6 = SWIG_AsVal_long(obj5, &val6);
10061 if (!SWIG_IsOK(ecode6)) {
10062 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10063 }
10064 arg6 = static_cast< long >(val6);
10065 }
10066 if (obj6) {
10067 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10068 if (!SWIG_IsOK(res7)) {
10069 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10070 }
10071 if (!argp7) {
10072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10073 }
10074 arg7 = reinterpret_cast< wxValidator * >(argp7);
10075 }
10076 if (obj7) {
10077 {
10078 arg8 = wxString_in_helper(obj7);
10079 if (arg8 == NULL) SWIG_fail;
10080 temp8 = true;
10081 }
10082 }
10083 {
10084 if (!wxPyCheckForApp()) SWIG_fail;
10085 PyThreadState* __tstate = wxPyBeginAllowThreads();
10086 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10087 wxPyEndAllowThreads(__tstate);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 }
10090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10091 {
10092 if (temp5) delete arg5;
10093 }
10094 {
10095 if (temp8)
10096 delete arg8;
10097 }
10098 return resultobj;
10099 fail:
10100 {
10101 if (temp5) delete arg5;
10102 }
10103 {
10104 if (temp8)
10105 delete arg8;
10106 }
10107 return NULL;
10108 }
10109
10110
10111 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10112 PyObject *resultobj = 0;
10113 wxCheckListBox *result = 0 ;
10114
10115 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10116 {
10117 if (!wxPyCheckForApp()) SWIG_fail;
10118 PyThreadState* __tstate = wxPyBeginAllowThreads();
10119 result = (wxCheckListBox *)new wxCheckListBox();
10120 wxPyEndAllowThreads(__tstate);
10121 if (PyErr_Occurred()) SWIG_fail;
10122 }
10123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10124 return resultobj;
10125 fail:
10126 return NULL;
10127 }
10128
10129
10130 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10131 PyObject *resultobj = 0;
10132 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10133 wxWindow *arg2 = (wxWindow *) 0 ;
10134 int arg3 = (int) -1 ;
10135 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10136 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10137 wxSize const &arg5_defvalue = wxDefaultSize ;
10138 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10139 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10140 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10141 long arg7 = (long) 0 ;
10142 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10143 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10144 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10145 wxString *arg9 = (wxString *) &arg9_defvalue ;
10146 bool result;
10147 void *argp1 = 0 ;
10148 int res1 = 0 ;
10149 void *argp2 = 0 ;
10150 int res2 = 0 ;
10151 int val3 ;
10152 int ecode3 = 0 ;
10153 wxPoint temp4 ;
10154 wxSize temp5 ;
10155 bool temp6 = false ;
10156 long val7 ;
10157 int ecode7 = 0 ;
10158 void *argp8 = 0 ;
10159 int res8 = 0 ;
10160 bool temp9 = false ;
10161 PyObject * obj0 = 0 ;
10162 PyObject * obj1 = 0 ;
10163 PyObject * obj2 = 0 ;
10164 PyObject * obj3 = 0 ;
10165 PyObject * obj4 = 0 ;
10166 PyObject * obj5 = 0 ;
10167 PyObject * obj6 = 0 ;
10168 PyObject * obj7 = 0 ;
10169 PyObject * obj8 = 0 ;
10170 char * kwnames[] = {
10171 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10172 };
10173
10174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10176 if (!SWIG_IsOK(res1)) {
10177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10178 }
10179 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10180 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10181 if (!SWIG_IsOK(res2)) {
10182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10183 }
10184 arg2 = reinterpret_cast< wxWindow * >(argp2);
10185 if (obj2) {
10186 ecode3 = SWIG_AsVal_int(obj2, &val3);
10187 if (!SWIG_IsOK(ecode3)) {
10188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10189 }
10190 arg3 = static_cast< int >(val3);
10191 }
10192 if (obj3) {
10193 {
10194 arg4 = &temp4;
10195 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10196 }
10197 }
10198 if (obj4) {
10199 {
10200 arg5 = &temp5;
10201 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10202 }
10203 }
10204 if (obj5) {
10205 {
10206 if (! PySequence_Check(obj5)) {
10207 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10208 SWIG_fail;
10209 }
10210 arg6 = new wxArrayString;
10211 temp6 = true;
10212 int i, len=PySequence_Length(obj5);
10213 for (i=0; i<len; i++) {
10214 PyObject* item = PySequence_GetItem(obj5, i);
10215 wxString* s = wxString_in_helper(item);
10216 if (PyErr_Occurred()) SWIG_fail;
10217 arg6->Add(*s);
10218 delete s;
10219 Py_DECREF(item);
10220 }
10221 }
10222 }
10223 if (obj6) {
10224 ecode7 = SWIG_AsVal_long(obj6, &val7);
10225 if (!SWIG_IsOK(ecode7)) {
10226 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10227 }
10228 arg7 = static_cast< long >(val7);
10229 }
10230 if (obj7) {
10231 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10232 if (!SWIG_IsOK(res8)) {
10233 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10234 }
10235 if (!argp8) {
10236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10237 }
10238 arg8 = reinterpret_cast< wxValidator * >(argp8);
10239 }
10240 if (obj8) {
10241 {
10242 arg9 = wxString_in_helper(obj8);
10243 if (arg9 == NULL) SWIG_fail;
10244 temp9 = true;
10245 }
10246 }
10247 {
10248 PyThreadState* __tstate = wxPyBeginAllowThreads();
10249 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
10253 {
10254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10255 }
10256 {
10257 if (temp6) delete arg6;
10258 }
10259 {
10260 if (temp9)
10261 delete arg9;
10262 }
10263 return resultobj;
10264 fail:
10265 {
10266 if (temp6) delete arg6;
10267 }
10268 {
10269 if (temp9)
10270 delete arg9;
10271 }
10272 return NULL;
10273 }
10274
10275
10276 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10277 PyObject *resultobj = 0;
10278 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10279 unsigned int arg2 ;
10280 bool result;
10281 void *argp1 = 0 ;
10282 int res1 = 0 ;
10283 unsigned int val2 ;
10284 int ecode2 = 0 ;
10285 PyObject * obj0 = 0 ;
10286 PyObject * obj1 = 0 ;
10287 char * kwnames[] = {
10288 (char *) "self",(char *) "index", NULL
10289 };
10290
10291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10293 if (!SWIG_IsOK(res1)) {
10294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10295 }
10296 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10297 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10298 if (!SWIG_IsOK(ecode2)) {
10299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10300 }
10301 arg2 = static_cast< unsigned int >(val2);
10302 {
10303 PyThreadState* __tstate = wxPyBeginAllowThreads();
10304 result = (bool)(arg1)->IsChecked(arg2);
10305 wxPyEndAllowThreads(__tstate);
10306 if (PyErr_Occurred()) SWIG_fail;
10307 }
10308 {
10309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10310 }
10311 return resultobj;
10312 fail:
10313 return NULL;
10314 }
10315
10316
10317 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10318 PyObject *resultobj = 0;
10319 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10320 unsigned int arg2 ;
10321 int arg3 = (int) true ;
10322 void *argp1 = 0 ;
10323 int res1 = 0 ;
10324 unsigned int val2 ;
10325 int ecode2 = 0 ;
10326 int val3 ;
10327 int ecode3 = 0 ;
10328 PyObject * obj0 = 0 ;
10329 PyObject * obj1 = 0 ;
10330 PyObject * obj2 = 0 ;
10331 char * kwnames[] = {
10332 (char *) "self",(char *) "index",(char *) "check", NULL
10333 };
10334
10335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10337 if (!SWIG_IsOK(res1)) {
10338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10339 }
10340 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10341 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10342 if (!SWIG_IsOK(ecode2)) {
10343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10344 }
10345 arg2 = static_cast< unsigned int >(val2);
10346 if (obj2) {
10347 ecode3 = SWIG_AsVal_int(obj2, &val3);
10348 if (!SWIG_IsOK(ecode3)) {
10349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10350 }
10351 arg3 = static_cast< int >(val3);
10352 }
10353 {
10354 PyThreadState* __tstate = wxPyBeginAllowThreads();
10355 (arg1)->Check(arg2,arg3);
10356 wxPyEndAllowThreads(__tstate);
10357 if (PyErr_Occurred()) SWIG_fail;
10358 }
10359 resultobj = SWIG_Py_Void();
10360 return resultobj;
10361 fail:
10362 return NULL;
10363 }
10364
10365
10366 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10367 PyObject *resultobj = 0;
10368 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10369 int result;
10370 void *argp1 = 0 ;
10371 int res1 = 0 ;
10372 PyObject *swig_obj[1] ;
10373
10374 if (!args) SWIG_fail;
10375 swig_obj[0] = args;
10376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10377 if (!SWIG_IsOK(res1)) {
10378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10379 }
10380 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10381 {
10382 PyThreadState* __tstate = wxPyBeginAllowThreads();
10383 result = (int)(arg1)->GetItemHeight();
10384 wxPyEndAllowThreads(__tstate);
10385 if (PyErr_Occurred()) SWIG_fail;
10386 }
10387 resultobj = SWIG_From_int(static_cast< int >(result));
10388 return resultobj;
10389 fail:
10390 return NULL;
10391 }
10392
10393
10394 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10395 PyObject *obj;
10396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10397 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10398 return SWIG_Py_Void();
10399 }
10400
10401 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10402 return SWIG_Python_InitShadowInstance(args);
10403 }
10404
10405 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10406 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10407 return 1;
10408 }
10409
10410
10411 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10412 PyObject *pyobj = 0;
10413
10414 {
10415 #if wxUSE_UNICODE
10416 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10417 #else
10418 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10419 #endif
10420 }
10421 return pyobj;
10422 }
10423
10424
10425 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10426 PyObject *resultobj = 0;
10427 wxColour const &arg1_defvalue = wxNullColour ;
10428 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10429 wxColour const &arg2_defvalue = wxNullColour ;
10430 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10431 wxFont const &arg3_defvalue = wxNullFont ;
10432 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10433 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10434 wxTextAttr *result = 0 ;
10435 wxColour temp1 ;
10436 wxColour temp2 ;
10437 void *argp3 = 0 ;
10438 int res3 = 0 ;
10439 int val4 ;
10440 int ecode4 = 0 ;
10441 PyObject * obj0 = 0 ;
10442 PyObject * obj1 = 0 ;
10443 PyObject * obj2 = 0 ;
10444 PyObject * obj3 = 0 ;
10445 char * kwnames[] = {
10446 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10447 };
10448
10449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10450 if (obj0) {
10451 {
10452 arg1 = &temp1;
10453 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10454 }
10455 }
10456 if (obj1) {
10457 {
10458 arg2 = &temp2;
10459 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10460 }
10461 }
10462 if (obj2) {
10463 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10464 if (!SWIG_IsOK(res3)) {
10465 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10466 }
10467 if (!argp3) {
10468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10469 }
10470 arg3 = reinterpret_cast< wxFont * >(argp3);
10471 }
10472 if (obj3) {
10473 ecode4 = SWIG_AsVal_int(obj3, &val4);
10474 if (!SWIG_IsOK(ecode4)) {
10475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10476 }
10477 arg4 = static_cast< wxTextAttrAlignment >(val4);
10478 }
10479 {
10480 PyThreadState* __tstate = wxPyBeginAllowThreads();
10481 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10482 wxPyEndAllowThreads(__tstate);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10486 return resultobj;
10487 fail:
10488 return NULL;
10489 }
10490
10491
10492 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10493 PyObject *resultobj = 0;
10494 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10495 void *argp1 = 0 ;
10496 int res1 = 0 ;
10497 PyObject *swig_obj[1] ;
10498
10499 if (!args) SWIG_fail;
10500 swig_obj[0] = args;
10501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10502 if (!SWIG_IsOK(res1)) {
10503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10504 }
10505 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10506 {
10507 PyThreadState* __tstate = wxPyBeginAllowThreads();
10508 delete arg1;
10509
10510 wxPyEndAllowThreads(__tstate);
10511 if (PyErr_Occurred()) SWIG_fail;
10512 }
10513 resultobj = SWIG_Py_Void();
10514 return resultobj;
10515 fail:
10516 return NULL;
10517 }
10518
10519
10520 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10521 PyObject *resultobj = 0;
10522 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10523 void *argp1 = 0 ;
10524 int res1 = 0 ;
10525 PyObject *swig_obj[1] ;
10526
10527 if (!args) SWIG_fail;
10528 swig_obj[0] = args;
10529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10530 if (!SWIG_IsOK(res1)) {
10531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10532 }
10533 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10534 {
10535 PyThreadState* __tstate = wxPyBeginAllowThreads();
10536 (arg1)->Init();
10537 wxPyEndAllowThreads(__tstate);
10538 if (PyErr_Occurred()) SWIG_fail;
10539 }
10540 resultobj = SWIG_Py_Void();
10541 return resultobj;
10542 fail:
10543 return NULL;
10544 }
10545
10546
10547 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10548 PyObject *resultobj = 0;
10549 wxTextAttr *arg1 = 0 ;
10550 wxTextAttr *arg2 = 0 ;
10551 wxTextAttr result;
10552 void *argp1 = 0 ;
10553 int res1 = 0 ;
10554 void *argp2 = 0 ;
10555 int res2 = 0 ;
10556 PyObject * obj0 = 0 ;
10557 PyObject * obj1 = 0 ;
10558 char * kwnames[] = {
10559 (char *) "base",(char *) "overlay", NULL
10560 };
10561
10562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10563 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10564 if (!SWIG_IsOK(res1)) {
10565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10566 }
10567 if (!argp1) {
10568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10569 }
10570 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10572 if (!SWIG_IsOK(res2)) {
10573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10574 }
10575 if (!argp2) {
10576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10577 }
10578 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10579 {
10580 PyThreadState* __tstate = wxPyBeginAllowThreads();
10581 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10582 wxPyEndAllowThreads(__tstate);
10583 if (PyErr_Occurred()) SWIG_fail;
10584 }
10585 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10586 return resultobj;
10587 fail:
10588 return NULL;
10589 }
10590
10591
10592 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10593 PyObject *resultobj = 0;
10594 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10595 wxColour *arg2 = 0 ;
10596 void *argp1 = 0 ;
10597 int res1 = 0 ;
10598 wxColour temp2 ;
10599 PyObject * obj0 = 0 ;
10600 PyObject * obj1 = 0 ;
10601 char * kwnames[] = {
10602 (char *) "self",(char *) "colText", NULL
10603 };
10604
10605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10607 if (!SWIG_IsOK(res1)) {
10608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10609 }
10610 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10611 {
10612 arg2 = &temp2;
10613 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10614 }
10615 {
10616 PyThreadState* __tstate = wxPyBeginAllowThreads();
10617 (arg1)->SetTextColour((wxColour const &)*arg2);
10618 wxPyEndAllowThreads(__tstate);
10619 if (PyErr_Occurred()) SWIG_fail;
10620 }
10621 resultobj = SWIG_Py_Void();
10622 return resultobj;
10623 fail:
10624 return NULL;
10625 }
10626
10627
10628 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10629 PyObject *resultobj = 0;
10630 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10631 wxColour *arg2 = 0 ;
10632 void *argp1 = 0 ;
10633 int res1 = 0 ;
10634 wxColour temp2 ;
10635 PyObject * obj0 = 0 ;
10636 PyObject * obj1 = 0 ;
10637 char * kwnames[] = {
10638 (char *) "self",(char *) "colBack", NULL
10639 };
10640
10641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10643 if (!SWIG_IsOK(res1)) {
10644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10645 }
10646 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10647 {
10648 arg2 = &temp2;
10649 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10650 }
10651 {
10652 PyThreadState* __tstate = wxPyBeginAllowThreads();
10653 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10654 wxPyEndAllowThreads(__tstate);
10655 if (PyErr_Occurred()) SWIG_fail;
10656 }
10657 resultobj = SWIG_Py_Void();
10658 return resultobj;
10659 fail:
10660 return NULL;
10661 }
10662
10663
10664 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10665 PyObject *resultobj = 0;
10666 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10667 wxFont *arg2 = 0 ;
10668 long arg3 = (long) wxTEXT_ATTR_FONT ;
10669 void *argp1 = 0 ;
10670 int res1 = 0 ;
10671 void *argp2 = 0 ;
10672 int res2 = 0 ;
10673 long val3 ;
10674 int ecode3 = 0 ;
10675 PyObject * obj0 = 0 ;
10676 PyObject * obj1 = 0 ;
10677 PyObject * obj2 = 0 ;
10678 char * kwnames[] = {
10679 (char *) "self",(char *) "font",(char *) "flags", NULL
10680 };
10681
10682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10684 if (!SWIG_IsOK(res1)) {
10685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10686 }
10687 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10688 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10689 if (!SWIG_IsOK(res2)) {
10690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10691 }
10692 if (!argp2) {
10693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10694 }
10695 arg2 = reinterpret_cast< wxFont * >(argp2);
10696 if (obj2) {
10697 ecode3 = SWIG_AsVal_long(obj2, &val3);
10698 if (!SWIG_IsOK(ecode3)) {
10699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10700 }
10701 arg3 = static_cast< long >(val3);
10702 }
10703 {
10704 PyThreadState* __tstate = wxPyBeginAllowThreads();
10705 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10706 wxPyEndAllowThreads(__tstate);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 }
10709 resultobj = SWIG_Py_Void();
10710 return resultobj;
10711 fail:
10712 return NULL;
10713 }
10714
10715
10716 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10717 PyObject *resultobj = 0;
10718 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10719 wxTextAttrAlignment arg2 ;
10720 void *argp1 = 0 ;
10721 int res1 = 0 ;
10722 int val2 ;
10723 int ecode2 = 0 ;
10724 PyObject * obj0 = 0 ;
10725 PyObject * obj1 = 0 ;
10726 char * kwnames[] = {
10727 (char *) "self",(char *) "alignment", NULL
10728 };
10729
10730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10732 if (!SWIG_IsOK(res1)) {
10733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10734 }
10735 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10736 ecode2 = SWIG_AsVal_int(obj1, &val2);
10737 if (!SWIG_IsOK(ecode2)) {
10738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10739 }
10740 arg2 = static_cast< wxTextAttrAlignment >(val2);
10741 {
10742 PyThreadState* __tstate = wxPyBeginAllowThreads();
10743 (arg1)->SetAlignment(arg2);
10744 wxPyEndAllowThreads(__tstate);
10745 if (PyErr_Occurred()) SWIG_fail;
10746 }
10747 resultobj = SWIG_Py_Void();
10748 return resultobj;
10749 fail:
10750 return NULL;
10751 }
10752
10753
10754 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10755 PyObject *resultobj = 0;
10756 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10757 wxArrayInt *arg2 = 0 ;
10758 void *argp1 = 0 ;
10759 int res1 = 0 ;
10760 bool temp2 = false ;
10761 PyObject * obj0 = 0 ;
10762 PyObject * obj1 = 0 ;
10763 char * kwnames[] = {
10764 (char *) "self",(char *) "tabs", NULL
10765 };
10766
10767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10769 if (!SWIG_IsOK(res1)) {
10770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10771 }
10772 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10773 {
10774 if (! PySequence_Check(obj1)) {
10775 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10776 SWIG_fail;
10777 }
10778 arg2 = new wxArrayInt;
10779 temp2 = true;
10780 int i, len=PySequence_Length(obj1);
10781 for (i=0; i<len; i++) {
10782 PyObject* item = PySequence_GetItem(obj1, i);
10783 PyObject* number = PyNumber_Int(item);
10784 arg2->Add(PyInt_AS_LONG(number));
10785 Py_DECREF(item);
10786 Py_DECREF(number);
10787 }
10788 }
10789 {
10790 PyThreadState* __tstate = wxPyBeginAllowThreads();
10791 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10792 wxPyEndAllowThreads(__tstate);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 }
10795 resultobj = SWIG_Py_Void();
10796 {
10797 if (temp2) delete arg2;
10798 }
10799 return resultobj;
10800 fail:
10801 {
10802 if (temp2) delete arg2;
10803 }
10804 return NULL;
10805 }
10806
10807
10808 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj = 0;
10810 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10811 int arg2 ;
10812 int arg3 = (int) 0 ;
10813 void *argp1 = 0 ;
10814 int res1 = 0 ;
10815 int val2 ;
10816 int ecode2 = 0 ;
10817 int val3 ;
10818 int ecode3 = 0 ;
10819 PyObject * obj0 = 0 ;
10820 PyObject * obj1 = 0 ;
10821 PyObject * obj2 = 0 ;
10822 char * kwnames[] = {
10823 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10824 };
10825
10826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10828 if (!SWIG_IsOK(res1)) {
10829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10830 }
10831 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10832 ecode2 = SWIG_AsVal_int(obj1, &val2);
10833 if (!SWIG_IsOK(ecode2)) {
10834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10835 }
10836 arg2 = static_cast< int >(val2);
10837 if (obj2) {
10838 ecode3 = SWIG_AsVal_int(obj2, &val3);
10839 if (!SWIG_IsOK(ecode3)) {
10840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10841 }
10842 arg3 = static_cast< int >(val3);
10843 }
10844 {
10845 PyThreadState* __tstate = wxPyBeginAllowThreads();
10846 (arg1)->SetLeftIndent(arg2,arg3);
10847 wxPyEndAllowThreads(__tstate);
10848 if (PyErr_Occurred()) SWIG_fail;
10849 }
10850 resultobj = SWIG_Py_Void();
10851 return resultobj;
10852 fail:
10853 return NULL;
10854 }
10855
10856
10857 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10858 PyObject *resultobj = 0;
10859 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10860 int arg2 ;
10861 void *argp1 = 0 ;
10862 int res1 = 0 ;
10863 int val2 ;
10864 int ecode2 = 0 ;
10865 PyObject * obj0 = 0 ;
10866 PyObject * obj1 = 0 ;
10867 char * kwnames[] = {
10868 (char *) "self",(char *) "indent", NULL
10869 };
10870
10871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10873 if (!SWIG_IsOK(res1)) {
10874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10875 }
10876 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10877 ecode2 = SWIG_AsVal_int(obj1, &val2);
10878 if (!SWIG_IsOK(ecode2)) {
10879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10880 }
10881 arg2 = static_cast< int >(val2);
10882 {
10883 PyThreadState* __tstate = wxPyBeginAllowThreads();
10884 (arg1)->SetRightIndent(arg2);
10885 wxPyEndAllowThreads(__tstate);
10886 if (PyErr_Occurred()) SWIG_fail;
10887 }
10888 resultobj = SWIG_Py_Void();
10889 return resultobj;
10890 fail:
10891 return NULL;
10892 }
10893
10894
10895 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10896 PyObject *resultobj = 0;
10897 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10898 long arg2 ;
10899 void *argp1 = 0 ;
10900 int res1 = 0 ;
10901 long val2 ;
10902 int ecode2 = 0 ;
10903 PyObject * obj0 = 0 ;
10904 PyObject * obj1 = 0 ;
10905 char * kwnames[] = {
10906 (char *) "self",(char *) "flags", NULL
10907 };
10908
10909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10911 if (!SWIG_IsOK(res1)) {
10912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10913 }
10914 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10915 ecode2 = SWIG_AsVal_long(obj1, &val2);
10916 if (!SWIG_IsOK(ecode2)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10918 }
10919 arg2 = static_cast< long >(val2);
10920 {
10921 PyThreadState* __tstate = wxPyBeginAllowThreads();
10922 (arg1)->SetFlags(arg2);
10923 wxPyEndAllowThreads(__tstate);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 }
10926 resultobj = SWIG_Py_Void();
10927 return resultobj;
10928 fail:
10929 return NULL;
10930 }
10931
10932
10933 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10934 PyObject *resultobj = 0;
10935 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10936 bool result;
10937 void *argp1 = 0 ;
10938 int res1 = 0 ;
10939 PyObject *swig_obj[1] ;
10940
10941 if (!args) SWIG_fail;
10942 swig_obj[0] = args;
10943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10944 if (!SWIG_IsOK(res1)) {
10945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10946 }
10947 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10951 wxPyEndAllowThreads(__tstate);
10952 if (PyErr_Occurred()) SWIG_fail;
10953 }
10954 {
10955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10956 }
10957 return resultobj;
10958 fail:
10959 return NULL;
10960 }
10961
10962
10963 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10964 PyObject *resultobj = 0;
10965 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10966 bool result;
10967 void *argp1 = 0 ;
10968 int res1 = 0 ;
10969 PyObject *swig_obj[1] ;
10970
10971 if (!args) SWIG_fail;
10972 swig_obj[0] = args;
10973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10974 if (!SWIG_IsOK(res1)) {
10975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10976 }
10977 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10978 {
10979 PyThreadState* __tstate = wxPyBeginAllowThreads();
10980 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10981 wxPyEndAllowThreads(__tstate);
10982 if (PyErr_Occurred()) SWIG_fail;
10983 }
10984 {
10985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10986 }
10987 return resultobj;
10988 fail:
10989 return NULL;
10990 }
10991
10992
10993 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10994 PyObject *resultobj = 0;
10995 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10996 bool result;
10997 void *argp1 = 0 ;
10998 int res1 = 0 ;
10999 PyObject *swig_obj[1] ;
11000
11001 if (!args) SWIG_fail;
11002 swig_obj[0] = args;
11003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11004 if (!SWIG_IsOK(res1)) {
11005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11006 }
11007 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11011 wxPyEndAllowThreads(__tstate);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 }
11014 {
11015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11016 }
11017 return resultobj;
11018 fail:
11019 return NULL;
11020 }
11021
11022
11023 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11024 PyObject *resultobj = 0;
11025 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11026 bool result;
11027 void *argp1 = 0 ;
11028 int res1 = 0 ;
11029 PyObject *swig_obj[1] ;
11030
11031 if (!args) SWIG_fail;
11032 swig_obj[0] = args;
11033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11034 if (!SWIG_IsOK(res1)) {
11035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11036 }
11037 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11041 wxPyEndAllowThreads(__tstate);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 }
11044 {
11045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11046 }
11047 return resultobj;
11048 fail:
11049 return NULL;
11050 }
11051
11052
11053 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11054 PyObject *resultobj = 0;
11055 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11056 bool result;
11057 void *argp1 = 0 ;
11058 int res1 = 0 ;
11059 PyObject *swig_obj[1] ;
11060
11061 if (!args) SWIG_fail;
11062 swig_obj[0] = args;
11063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11064 if (!SWIG_IsOK(res1)) {
11065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11066 }
11067 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11068 {
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11071 wxPyEndAllowThreads(__tstate);
11072 if (PyErr_Occurred()) SWIG_fail;
11073 }
11074 {
11075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11076 }
11077 return resultobj;
11078 fail:
11079 return NULL;
11080 }
11081
11082
11083 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11084 PyObject *resultobj = 0;
11085 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11086 bool result;
11087 void *argp1 = 0 ;
11088 int res1 = 0 ;
11089 PyObject *swig_obj[1] ;
11090
11091 if (!args) SWIG_fail;
11092 swig_obj[0] = args;
11093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11094 if (!SWIG_IsOK(res1)) {
11095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11096 }
11097 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11101 wxPyEndAllowThreads(__tstate);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 {
11105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11106 }
11107 return resultobj;
11108 fail:
11109 return NULL;
11110 }
11111
11112
11113 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11114 PyObject *resultobj = 0;
11115 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11116 bool result;
11117 void *argp1 = 0 ;
11118 int res1 = 0 ;
11119 PyObject *swig_obj[1] ;
11120
11121 if (!args) SWIG_fail;
11122 swig_obj[0] = args;
11123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11124 if (!SWIG_IsOK(res1)) {
11125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11126 }
11127 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 {
11135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11136 }
11137 return resultobj;
11138 fail:
11139 return NULL;
11140 }
11141
11142
11143 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj = 0;
11145 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11146 long arg2 ;
11147 bool result;
11148 void *argp1 = 0 ;
11149 int res1 = 0 ;
11150 long val2 ;
11151 int ecode2 = 0 ;
11152 PyObject * obj0 = 0 ;
11153 PyObject * obj1 = 0 ;
11154 char * kwnames[] = {
11155 (char *) "self",(char *) "flag", NULL
11156 };
11157
11158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11160 if (!SWIG_IsOK(res1)) {
11161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11162 }
11163 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11164 ecode2 = SWIG_AsVal_long(obj1, &val2);
11165 if (!SWIG_IsOK(ecode2)) {
11166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11167 }
11168 arg2 = static_cast< long >(val2);
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 {
11176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11177 }
11178 return resultobj;
11179 fail:
11180 return NULL;
11181 }
11182
11183
11184 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11185 PyObject *resultobj = 0;
11186 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11187 wxColour *result = 0 ;
11188 void *argp1 = 0 ;
11189 int res1 = 0 ;
11190 PyObject *swig_obj[1] ;
11191
11192 if (!args) SWIG_fail;
11193 swig_obj[0] = args;
11194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11195 if (!SWIG_IsOK(res1)) {
11196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11197 }
11198 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11199 {
11200 PyThreadState* __tstate = wxPyBeginAllowThreads();
11201 {
11202 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11203 result = (wxColour *) &_result_ref;
11204 }
11205 wxPyEndAllowThreads(__tstate);
11206 if (PyErr_Occurred()) SWIG_fail;
11207 }
11208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11209 return resultobj;
11210 fail:
11211 return NULL;
11212 }
11213
11214
11215 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11216 PyObject *resultobj = 0;
11217 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11218 wxColour *result = 0 ;
11219 void *argp1 = 0 ;
11220 int res1 = 0 ;
11221 PyObject *swig_obj[1] ;
11222
11223 if (!args) SWIG_fail;
11224 swig_obj[0] = args;
11225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11226 if (!SWIG_IsOK(res1)) {
11227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11228 }
11229 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11230 {
11231 PyThreadState* __tstate = wxPyBeginAllowThreads();
11232 {
11233 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11234 result = (wxColour *) &_result_ref;
11235 }
11236 wxPyEndAllowThreads(__tstate);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 }
11239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11240 return resultobj;
11241 fail:
11242 return NULL;
11243 }
11244
11245
11246 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11247 PyObject *resultobj = 0;
11248 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11249 wxFont *result = 0 ;
11250 void *argp1 = 0 ;
11251 int res1 = 0 ;
11252 PyObject *swig_obj[1] ;
11253
11254 if (!args) SWIG_fail;
11255 swig_obj[0] = args;
11256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11257 if (!SWIG_IsOK(res1)) {
11258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11259 }
11260 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11261 {
11262 PyThreadState* __tstate = wxPyBeginAllowThreads();
11263 {
11264 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11265 result = (wxFont *) &_result_ref;
11266 }
11267 wxPyEndAllowThreads(__tstate);
11268 if (PyErr_Occurred()) SWIG_fail;
11269 }
11270 {
11271 wxFont* resultptr = new wxFont(*result);
11272 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11273 }
11274 return resultobj;
11275 fail:
11276 return NULL;
11277 }
11278
11279
11280 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11281 PyObject *resultobj = 0;
11282 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11283 wxTextAttrAlignment result;
11284 void *argp1 = 0 ;
11285 int res1 = 0 ;
11286 PyObject *swig_obj[1] ;
11287
11288 if (!args) SWIG_fail;
11289 swig_obj[0] = args;
11290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11291 if (!SWIG_IsOK(res1)) {
11292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11293 }
11294 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11295 {
11296 PyThreadState* __tstate = wxPyBeginAllowThreads();
11297 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11298 wxPyEndAllowThreads(__tstate);
11299 if (PyErr_Occurred()) SWIG_fail;
11300 }
11301 resultobj = SWIG_From_int(static_cast< int >(result));
11302 return resultobj;
11303 fail:
11304 return NULL;
11305 }
11306
11307
11308 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11309 PyObject *resultobj = 0;
11310 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11311 wxArrayInt *result = 0 ;
11312 void *argp1 = 0 ;
11313 int res1 = 0 ;
11314 PyObject *swig_obj[1] ;
11315
11316 if (!args) SWIG_fail;
11317 swig_obj[0] = args;
11318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11319 if (!SWIG_IsOK(res1)) {
11320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11321 }
11322 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11323 {
11324 PyThreadState* __tstate = wxPyBeginAllowThreads();
11325 {
11326 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11327 result = (wxArrayInt *) &_result_ref;
11328 }
11329 wxPyEndAllowThreads(__tstate);
11330 if (PyErr_Occurred()) SWIG_fail;
11331 }
11332 {
11333 resultobj = PyList_New(0);
11334 size_t idx;
11335 for (idx = 0; idx < result->GetCount(); idx += 1) {
11336 PyObject* val = PyInt_FromLong( result->Item(idx) );
11337 PyList_Append(resultobj, val);
11338 Py_DECREF(val);
11339 }
11340 }
11341 return resultobj;
11342 fail:
11343 return NULL;
11344 }
11345
11346
11347 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11348 PyObject *resultobj = 0;
11349 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11350 long result;
11351 void *argp1 = 0 ;
11352 int res1 = 0 ;
11353 PyObject *swig_obj[1] ;
11354
11355 if (!args) SWIG_fail;
11356 swig_obj[0] = args;
11357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11358 if (!SWIG_IsOK(res1)) {
11359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11360 }
11361 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 resultobj = SWIG_From_long(static_cast< long >(result));
11369 return resultobj;
11370 fail:
11371 return NULL;
11372 }
11373
11374
11375 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11376 PyObject *resultobj = 0;
11377 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11378 long result;
11379 void *argp1 = 0 ;
11380 int res1 = 0 ;
11381 PyObject *swig_obj[1] ;
11382
11383 if (!args) SWIG_fail;
11384 swig_obj[0] = args;
11385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11386 if (!SWIG_IsOK(res1)) {
11387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11388 }
11389 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11393 wxPyEndAllowThreads(__tstate);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 }
11396 resultobj = SWIG_From_long(static_cast< long >(result));
11397 return resultobj;
11398 fail:
11399 return NULL;
11400 }
11401
11402
11403 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11404 PyObject *resultobj = 0;
11405 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11406 long result;
11407 void *argp1 = 0 ;
11408 int res1 = 0 ;
11409 PyObject *swig_obj[1] ;
11410
11411 if (!args) SWIG_fail;
11412 swig_obj[0] = args;
11413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11414 if (!SWIG_IsOK(res1)) {
11415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11416 }
11417 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11418 {
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
11420 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11421 wxPyEndAllowThreads(__tstate);
11422 if (PyErr_Occurred()) SWIG_fail;
11423 }
11424 resultobj = SWIG_From_long(static_cast< long >(result));
11425 return resultobj;
11426 fail:
11427 return NULL;
11428 }
11429
11430
11431 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11432 PyObject *resultobj = 0;
11433 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11434 long result;
11435 void *argp1 = 0 ;
11436 int res1 = 0 ;
11437 PyObject *swig_obj[1] ;
11438
11439 if (!args) SWIG_fail;
11440 swig_obj[0] = args;
11441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11442 if (!SWIG_IsOK(res1)) {
11443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11444 }
11445 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11446 {
11447 PyThreadState* __tstate = wxPyBeginAllowThreads();
11448 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11449 wxPyEndAllowThreads(__tstate);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 }
11452 resultobj = SWIG_From_long(static_cast< long >(result));
11453 return resultobj;
11454 fail:
11455 return NULL;
11456 }
11457
11458
11459 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11460 PyObject *resultobj = 0;
11461 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11462 bool result;
11463 void *argp1 = 0 ;
11464 int res1 = 0 ;
11465 PyObject *swig_obj[1] ;
11466
11467 if (!args) SWIG_fail;
11468 swig_obj[0] = args;
11469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11470 if (!SWIG_IsOK(res1)) {
11471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11472 }
11473 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11474 {
11475 PyThreadState* __tstate = wxPyBeginAllowThreads();
11476 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11477 wxPyEndAllowThreads(__tstate);
11478 if (PyErr_Occurred()) SWIG_fail;
11479 }
11480 {
11481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11482 }
11483 return resultobj;
11484 fail:
11485 return NULL;
11486 }
11487
11488
11489 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11490 PyObject *resultobj = 0;
11491 wxTextAttr *arg1 = 0 ;
11492 wxTextAttr *arg2 = 0 ;
11493 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11494 wxTextAttr result;
11495 void *argp1 = 0 ;
11496 int res1 = 0 ;
11497 void *argp2 = 0 ;
11498 int res2 = 0 ;
11499 void *argp3 = 0 ;
11500 int res3 = 0 ;
11501 PyObject * obj0 = 0 ;
11502 PyObject * obj1 = 0 ;
11503 PyObject * obj2 = 0 ;
11504 char * kwnames[] = {
11505 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11506 };
11507
11508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11509 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11510 if (!SWIG_IsOK(res1)) {
11511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11512 }
11513 if (!argp1) {
11514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11515 }
11516 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11518 if (!SWIG_IsOK(res2)) {
11519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11520 }
11521 if (!argp2) {
11522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11523 }
11524 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11525 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11526 if (!SWIG_IsOK(res3)) {
11527 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11528 }
11529 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11537 return resultobj;
11538 fail:
11539 return NULL;
11540 }
11541
11542
11543 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11544 PyObject *obj;
11545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11546 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11547 return SWIG_Py_Void();
11548 }
11549
11550 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11551 return SWIG_Python_InitShadowInstance(args);
11552 }
11553
11554 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11555 PyObject *resultobj = 0;
11556 wxWindow *arg1 = (wxWindow *) 0 ;
11557 int arg2 = (int) -1 ;
11558 wxString const &arg3_defvalue = wxPyEmptyString ;
11559 wxString *arg3 = (wxString *) &arg3_defvalue ;
11560 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11561 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11562 wxSize const &arg5_defvalue = wxDefaultSize ;
11563 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11564 long arg6 = (long) 0 ;
11565 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11566 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11567 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11568 wxString *arg8 = (wxString *) &arg8_defvalue ;
11569 wxTextCtrl *result = 0 ;
11570 void *argp1 = 0 ;
11571 int res1 = 0 ;
11572 int val2 ;
11573 int ecode2 = 0 ;
11574 bool temp3 = false ;
11575 wxPoint temp4 ;
11576 wxSize temp5 ;
11577 long val6 ;
11578 int ecode6 = 0 ;
11579 void *argp7 = 0 ;
11580 int res7 = 0 ;
11581 bool temp8 = false ;
11582 PyObject * obj0 = 0 ;
11583 PyObject * obj1 = 0 ;
11584 PyObject * obj2 = 0 ;
11585 PyObject * obj3 = 0 ;
11586 PyObject * obj4 = 0 ;
11587 PyObject * obj5 = 0 ;
11588 PyObject * obj6 = 0 ;
11589 PyObject * obj7 = 0 ;
11590 char * kwnames[] = {
11591 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11592 };
11593
11594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11596 if (!SWIG_IsOK(res1)) {
11597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11598 }
11599 arg1 = reinterpret_cast< wxWindow * >(argp1);
11600 if (obj1) {
11601 ecode2 = SWIG_AsVal_int(obj1, &val2);
11602 if (!SWIG_IsOK(ecode2)) {
11603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11604 }
11605 arg2 = static_cast< int >(val2);
11606 }
11607 if (obj2) {
11608 {
11609 arg3 = wxString_in_helper(obj2);
11610 if (arg3 == NULL) SWIG_fail;
11611 temp3 = true;
11612 }
11613 }
11614 if (obj3) {
11615 {
11616 arg4 = &temp4;
11617 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11618 }
11619 }
11620 if (obj4) {
11621 {
11622 arg5 = &temp5;
11623 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11624 }
11625 }
11626 if (obj5) {
11627 ecode6 = SWIG_AsVal_long(obj5, &val6);
11628 if (!SWIG_IsOK(ecode6)) {
11629 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11630 }
11631 arg6 = static_cast< long >(val6);
11632 }
11633 if (obj6) {
11634 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11635 if (!SWIG_IsOK(res7)) {
11636 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11637 }
11638 if (!argp7) {
11639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11640 }
11641 arg7 = reinterpret_cast< wxValidator * >(argp7);
11642 }
11643 if (obj7) {
11644 {
11645 arg8 = wxString_in_helper(obj7);
11646 if (arg8 == NULL) SWIG_fail;
11647 temp8 = true;
11648 }
11649 }
11650 {
11651 if (!wxPyCheckForApp()) SWIG_fail;
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11654 wxPyEndAllowThreads(__tstate);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 }
11657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11658 {
11659 if (temp3)
11660 delete arg3;
11661 }
11662 {
11663 if (temp8)
11664 delete arg8;
11665 }
11666 return resultobj;
11667 fail:
11668 {
11669 if (temp3)
11670 delete arg3;
11671 }
11672 {
11673 if (temp8)
11674 delete arg8;
11675 }
11676 return NULL;
11677 }
11678
11679
11680 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11681 PyObject *resultobj = 0;
11682 wxTextCtrl *result = 0 ;
11683
11684 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11685 {
11686 if (!wxPyCheckForApp()) SWIG_fail;
11687 PyThreadState* __tstate = wxPyBeginAllowThreads();
11688 result = (wxTextCtrl *)new wxTextCtrl();
11689 wxPyEndAllowThreads(__tstate);
11690 if (PyErr_Occurred()) SWIG_fail;
11691 }
11692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11693 return resultobj;
11694 fail:
11695 return NULL;
11696 }
11697
11698
11699 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11700 PyObject *resultobj = 0;
11701 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11702 wxWindow *arg2 = (wxWindow *) 0 ;
11703 int arg3 = (int) -1 ;
11704 wxString const &arg4_defvalue = wxPyEmptyString ;
11705 wxString *arg4 = (wxString *) &arg4_defvalue ;
11706 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11707 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11708 wxSize const &arg6_defvalue = wxDefaultSize ;
11709 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11710 long arg7 = (long) 0 ;
11711 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11712 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11713 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11714 wxString *arg9 = (wxString *) &arg9_defvalue ;
11715 bool result;
11716 void *argp1 = 0 ;
11717 int res1 = 0 ;
11718 void *argp2 = 0 ;
11719 int res2 = 0 ;
11720 int val3 ;
11721 int ecode3 = 0 ;
11722 bool temp4 = false ;
11723 wxPoint temp5 ;
11724 wxSize temp6 ;
11725 long val7 ;
11726 int ecode7 = 0 ;
11727 void *argp8 = 0 ;
11728 int res8 = 0 ;
11729 bool temp9 = false ;
11730 PyObject * obj0 = 0 ;
11731 PyObject * obj1 = 0 ;
11732 PyObject * obj2 = 0 ;
11733 PyObject * obj3 = 0 ;
11734 PyObject * obj4 = 0 ;
11735 PyObject * obj5 = 0 ;
11736 PyObject * obj6 = 0 ;
11737 PyObject * obj7 = 0 ;
11738 PyObject * obj8 = 0 ;
11739 char * kwnames[] = {
11740 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11741 };
11742
11743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11745 if (!SWIG_IsOK(res1)) {
11746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11747 }
11748 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11749 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11750 if (!SWIG_IsOK(res2)) {
11751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11752 }
11753 arg2 = reinterpret_cast< wxWindow * >(argp2);
11754 if (obj2) {
11755 ecode3 = SWIG_AsVal_int(obj2, &val3);
11756 if (!SWIG_IsOK(ecode3)) {
11757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11758 }
11759 arg3 = static_cast< int >(val3);
11760 }
11761 if (obj3) {
11762 {
11763 arg4 = wxString_in_helper(obj3);
11764 if (arg4 == NULL) SWIG_fail;
11765 temp4 = true;
11766 }
11767 }
11768 if (obj4) {
11769 {
11770 arg5 = &temp5;
11771 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11772 }
11773 }
11774 if (obj5) {
11775 {
11776 arg6 = &temp6;
11777 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11778 }
11779 }
11780 if (obj6) {
11781 ecode7 = SWIG_AsVal_long(obj6, &val7);
11782 if (!SWIG_IsOK(ecode7)) {
11783 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11784 }
11785 arg7 = static_cast< long >(val7);
11786 }
11787 if (obj7) {
11788 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11789 if (!SWIG_IsOK(res8)) {
11790 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11791 }
11792 if (!argp8) {
11793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11794 }
11795 arg8 = reinterpret_cast< wxValidator * >(argp8);
11796 }
11797 if (obj8) {
11798 {
11799 arg9 = wxString_in_helper(obj8);
11800 if (arg9 == NULL) SWIG_fail;
11801 temp9 = true;
11802 }
11803 }
11804 {
11805 PyThreadState* __tstate = wxPyBeginAllowThreads();
11806 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11807 wxPyEndAllowThreads(__tstate);
11808 if (PyErr_Occurred()) SWIG_fail;
11809 }
11810 {
11811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11812 }
11813 {
11814 if (temp4)
11815 delete arg4;
11816 }
11817 {
11818 if (temp9)
11819 delete arg9;
11820 }
11821 return resultobj;
11822 fail:
11823 {
11824 if (temp4)
11825 delete arg4;
11826 }
11827 {
11828 if (temp9)
11829 delete arg9;
11830 }
11831 return NULL;
11832 }
11833
11834
11835 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11836 PyObject *resultobj = 0;
11837 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11838 wxString result;
11839 void *argp1 = 0 ;
11840 int res1 = 0 ;
11841 PyObject *swig_obj[1] ;
11842
11843 if (!args) SWIG_fail;
11844 swig_obj[0] = args;
11845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11846 if (!SWIG_IsOK(res1)) {
11847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11848 }
11849 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11850 {
11851 PyThreadState* __tstate = wxPyBeginAllowThreads();
11852 result = ((wxTextCtrl const *)arg1)->GetValue();
11853 wxPyEndAllowThreads(__tstate);
11854 if (PyErr_Occurred()) SWIG_fail;
11855 }
11856 {
11857 #if wxUSE_UNICODE
11858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11859 #else
11860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11861 #endif
11862 }
11863 return resultobj;
11864 fail:
11865 return NULL;
11866 }
11867
11868
11869 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11870 PyObject *resultobj = 0;
11871 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11872 wxString *arg2 = 0 ;
11873 void *argp1 = 0 ;
11874 int res1 = 0 ;
11875 bool temp2 = false ;
11876 PyObject * obj0 = 0 ;
11877 PyObject * obj1 = 0 ;
11878 char * kwnames[] = {
11879 (char *) "self",(char *) "value", NULL
11880 };
11881
11882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11884 if (!SWIG_IsOK(res1)) {
11885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11886 }
11887 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11888 {
11889 arg2 = wxString_in_helper(obj1);
11890 if (arg2 == NULL) SWIG_fail;
11891 temp2 = true;
11892 }
11893 {
11894 PyThreadState* __tstate = wxPyBeginAllowThreads();
11895 (arg1)->SetValue((wxString const &)*arg2);
11896 wxPyEndAllowThreads(__tstate);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 }
11899 resultobj = SWIG_Py_Void();
11900 {
11901 if (temp2)
11902 delete arg2;
11903 }
11904 return resultobj;
11905 fail:
11906 {
11907 if (temp2)
11908 delete arg2;
11909 }
11910 return NULL;
11911 }
11912
11913
11914 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11915 PyObject *resultobj = 0;
11916 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11917 long arg2 ;
11918 long arg3 ;
11919 wxString result;
11920 void *argp1 = 0 ;
11921 int res1 = 0 ;
11922 long val2 ;
11923 int ecode2 = 0 ;
11924 long val3 ;
11925 int ecode3 = 0 ;
11926 PyObject * obj0 = 0 ;
11927 PyObject * obj1 = 0 ;
11928 PyObject * obj2 = 0 ;
11929 char * kwnames[] = {
11930 (char *) "self",(char *) "from",(char *) "to", NULL
11931 };
11932
11933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11935 if (!SWIG_IsOK(res1)) {
11936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11937 }
11938 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11939 ecode2 = SWIG_AsVal_long(obj1, &val2);
11940 if (!SWIG_IsOK(ecode2)) {
11941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11942 }
11943 arg2 = static_cast< long >(val2);
11944 ecode3 = SWIG_AsVal_long(obj2, &val3);
11945 if (!SWIG_IsOK(ecode3)) {
11946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11947 }
11948 arg3 = static_cast< long >(val3);
11949 {
11950 PyThreadState* __tstate = wxPyBeginAllowThreads();
11951 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11952 wxPyEndAllowThreads(__tstate);
11953 if (PyErr_Occurred()) SWIG_fail;
11954 }
11955 {
11956 #if wxUSE_UNICODE
11957 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11958 #else
11959 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11960 #endif
11961 }
11962 return resultobj;
11963 fail:
11964 return NULL;
11965 }
11966
11967
11968 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11969 PyObject *resultobj = 0;
11970 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11971 long arg2 ;
11972 int result;
11973 void *argp1 = 0 ;
11974 int res1 = 0 ;
11975 long val2 ;
11976 int ecode2 = 0 ;
11977 PyObject * obj0 = 0 ;
11978 PyObject * obj1 = 0 ;
11979 char * kwnames[] = {
11980 (char *) "self",(char *) "lineNo", NULL
11981 };
11982
11983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11985 if (!SWIG_IsOK(res1)) {
11986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11987 }
11988 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11989 ecode2 = SWIG_AsVal_long(obj1, &val2);
11990 if (!SWIG_IsOK(ecode2)) {
11991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11992 }
11993 arg2 = static_cast< long >(val2);
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11997 wxPyEndAllowThreads(__tstate);
11998 if (PyErr_Occurred()) SWIG_fail;
11999 }
12000 resultobj = SWIG_From_int(static_cast< int >(result));
12001 return resultobj;
12002 fail:
12003 return NULL;
12004 }
12005
12006
12007 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12008 PyObject *resultobj = 0;
12009 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12010 long arg2 ;
12011 wxString result;
12012 void *argp1 = 0 ;
12013 int res1 = 0 ;
12014 long val2 ;
12015 int ecode2 = 0 ;
12016 PyObject * obj0 = 0 ;
12017 PyObject * obj1 = 0 ;
12018 char * kwnames[] = {
12019 (char *) "self",(char *) "lineNo", NULL
12020 };
12021
12022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12024 if (!SWIG_IsOK(res1)) {
12025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12026 }
12027 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12028 ecode2 = SWIG_AsVal_long(obj1, &val2);
12029 if (!SWIG_IsOK(ecode2)) {
12030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12031 }
12032 arg2 = static_cast< long >(val2);
12033 {
12034 PyThreadState* __tstate = wxPyBeginAllowThreads();
12035 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12036 wxPyEndAllowThreads(__tstate);
12037 if (PyErr_Occurred()) SWIG_fail;
12038 }
12039 {
12040 #if wxUSE_UNICODE
12041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12042 #else
12043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12044 #endif
12045 }
12046 return resultobj;
12047 fail:
12048 return NULL;
12049 }
12050
12051
12052 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12053 PyObject *resultobj = 0;
12054 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12055 int result;
12056 void *argp1 = 0 ;
12057 int res1 = 0 ;
12058 PyObject *swig_obj[1] ;
12059
12060 if (!args) SWIG_fail;
12061 swig_obj[0] = args;
12062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12063 if (!SWIG_IsOK(res1)) {
12064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12065 }
12066 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12067 {
12068 PyThreadState* __tstate = wxPyBeginAllowThreads();
12069 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12070 wxPyEndAllowThreads(__tstate);
12071 if (PyErr_Occurred()) SWIG_fail;
12072 }
12073 resultobj = SWIG_From_int(static_cast< int >(result));
12074 return resultobj;
12075 fail:
12076 return NULL;
12077 }
12078
12079
12080 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12081 PyObject *resultobj = 0;
12082 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12083 bool result;
12084 void *argp1 = 0 ;
12085 int res1 = 0 ;
12086 PyObject *swig_obj[1] ;
12087
12088 if (!args) SWIG_fail;
12089 swig_obj[0] = args;
12090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12091 if (!SWIG_IsOK(res1)) {
12092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12093 }
12094 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12095 {
12096 PyThreadState* __tstate = wxPyBeginAllowThreads();
12097 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 }
12101 {
12102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12103 }
12104 return resultobj;
12105 fail:
12106 return NULL;
12107 }
12108
12109
12110 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12111 PyObject *resultobj = 0;
12112 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12113 bool result;
12114 void *argp1 = 0 ;
12115 int res1 = 0 ;
12116 PyObject *swig_obj[1] ;
12117
12118 if (!args) SWIG_fail;
12119 swig_obj[0] = args;
12120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12121 if (!SWIG_IsOK(res1)) {
12122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12123 }
12124 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12125 {
12126 PyThreadState* __tstate = wxPyBeginAllowThreads();
12127 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12128 wxPyEndAllowThreads(__tstate);
12129 if (PyErr_Occurred()) SWIG_fail;
12130 }
12131 {
12132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12133 }
12134 return resultobj;
12135 fail:
12136 return NULL;
12137 }
12138
12139
12140 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12141 PyObject *resultobj = 0;
12142 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12143 bool result;
12144 void *argp1 = 0 ;
12145 int res1 = 0 ;
12146 PyObject *swig_obj[1] ;
12147
12148 if (!args) SWIG_fail;
12149 swig_obj[0] = args;
12150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12151 if (!SWIG_IsOK(res1)) {
12152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12153 }
12154 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 {
12162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12163 }
12164 return resultobj;
12165 fail:
12166 return NULL;
12167 }
12168
12169
12170 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12171 PyObject *resultobj = 0;
12172 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12173 bool result;
12174 void *argp1 = 0 ;
12175 int res1 = 0 ;
12176 PyObject *swig_obj[1] ;
12177
12178 if (!args) SWIG_fail;
12179 swig_obj[0] = args;
12180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12181 if (!SWIG_IsOK(res1)) {
12182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12183 }
12184 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12185 {
12186 PyThreadState* __tstate = wxPyBeginAllowThreads();
12187 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12188 wxPyEndAllowThreads(__tstate);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 {
12192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12193 }
12194 return resultobj;
12195 fail:
12196 return NULL;
12197 }
12198
12199
12200 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12201 PyObject *resultobj = 0;
12202 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12203 long *arg2 = (long *) 0 ;
12204 long *arg3 = (long *) 0 ;
12205 void *argp1 = 0 ;
12206 int res1 = 0 ;
12207 long temp2 ;
12208 int res2 = SWIG_TMPOBJ ;
12209 long temp3 ;
12210 int res3 = SWIG_TMPOBJ ;
12211 PyObject *swig_obj[1] ;
12212
12213 arg2 = &temp2;
12214 arg3 = &temp3;
12215 if (!args) SWIG_fail;
12216 swig_obj[0] = args;
12217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12218 if (!SWIG_IsOK(res1)) {
12219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12220 }
12221 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12222 {
12223 PyThreadState* __tstate = wxPyBeginAllowThreads();
12224 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12225 wxPyEndAllowThreads(__tstate);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 }
12228 resultobj = SWIG_Py_Void();
12229 if (SWIG_IsTmpObj(res2)) {
12230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12231 } else {
12232 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12234 }
12235 if (SWIG_IsTmpObj(res3)) {
12236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12237 } else {
12238 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12239 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12240 }
12241 return resultobj;
12242 fail:
12243 return NULL;
12244 }
12245
12246
12247 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12248 PyObject *resultobj = 0;
12249 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12250 wxString result;
12251 void *argp1 = 0 ;
12252 int res1 = 0 ;
12253 PyObject *swig_obj[1] ;
12254
12255 if (!args) SWIG_fail;
12256 swig_obj[0] = args;
12257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12258 if (!SWIG_IsOK(res1)) {
12259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12260 }
12261 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12262 {
12263 PyThreadState* __tstate = wxPyBeginAllowThreads();
12264 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12265 wxPyEndAllowThreads(__tstate);
12266 if (PyErr_Occurred()) SWIG_fail;
12267 }
12268 {
12269 #if wxUSE_UNICODE
12270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12271 #else
12272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12273 #endif
12274 }
12275 return resultobj;
12276 fail:
12277 return NULL;
12278 }
12279
12280
12281 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12282 PyObject *resultobj = 0;
12283 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12284 void *argp1 = 0 ;
12285 int res1 = 0 ;
12286 PyObject *swig_obj[1] ;
12287
12288 if (!args) SWIG_fail;
12289 swig_obj[0] = args;
12290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12291 if (!SWIG_IsOK(res1)) {
12292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12293 }
12294 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12295 {
12296 PyThreadState* __tstate = wxPyBeginAllowThreads();
12297 (arg1)->Clear();
12298 wxPyEndAllowThreads(__tstate);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 }
12301 resultobj = SWIG_Py_Void();
12302 return resultobj;
12303 fail:
12304 return NULL;
12305 }
12306
12307
12308 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12309 PyObject *resultobj = 0;
12310 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12311 long arg2 ;
12312 long arg3 ;
12313 wxString *arg4 = 0 ;
12314 void *argp1 = 0 ;
12315 int res1 = 0 ;
12316 long val2 ;
12317 int ecode2 = 0 ;
12318 long val3 ;
12319 int ecode3 = 0 ;
12320 bool temp4 = false ;
12321 PyObject * obj0 = 0 ;
12322 PyObject * obj1 = 0 ;
12323 PyObject * obj2 = 0 ;
12324 PyObject * obj3 = 0 ;
12325 char * kwnames[] = {
12326 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12327 };
12328
12329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12331 if (!SWIG_IsOK(res1)) {
12332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12333 }
12334 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12335 ecode2 = SWIG_AsVal_long(obj1, &val2);
12336 if (!SWIG_IsOK(ecode2)) {
12337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12338 }
12339 arg2 = static_cast< long >(val2);
12340 ecode3 = SWIG_AsVal_long(obj2, &val3);
12341 if (!SWIG_IsOK(ecode3)) {
12342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12343 }
12344 arg3 = static_cast< long >(val3);
12345 {
12346 arg4 = wxString_in_helper(obj3);
12347 if (arg4 == NULL) SWIG_fail;
12348 temp4 = true;
12349 }
12350 {
12351 PyThreadState* __tstate = wxPyBeginAllowThreads();
12352 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12353 wxPyEndAllowThreads(__tstate);
12354 if (PyErr_Occurred()) SWIG_fail;
12355 }
12356 resultobj = SWIG_Py_Void();
12357 {
12358 if (temp4)
12359 delete arg4;
12360 }
12361 return resultobj;
12362 fail:
12363 {
12364 if (temp4)
12365 delete arg4;
12366 }
12367 return NULL;
12368 }
12369
12370
12371 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12372 PyObject *resultobj = 0;
12373 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12374 long arg2 ;
12375 long arg3 ;
12376 void *argp1 = 0 ;
12377 int res1 = 0 ;
12378 long val2 ;
12379 int ecode2 = 0 ;
12380 long val3 ;
12381 int ecode3 = 0 ;
12382 PyObject * obj0 = 0 ;
12383 PyObject * obj1 = 0 ;
12384 PyObject * obj2 = 0 ;
12385 char * kwnames[] = {
12386 (char *) "self",(char *) "from",(char *) "to", NULL
12387 };
12388
12389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12391 if (!SWIG_IsOK(res1)) {
12392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12393 }
12394 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12395 ecode2 = SWIG_AsVal_long(obj1, &val2);
12396 if (!SWIG_IsOK(ecode2)) {
12397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12398 }
12399 arg2 = static_cast< long >(val2);
12400 ecode3 = SWIG_AsVal_long(obj2, &val3);
12401 if (!SWIG_IsOK(ecode3)) {
12402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12403 }
12404 arg3 = static_cast< long >(val3);
12405 {
12406 PyThreadState* __tstate = wxPyBeginAllowThreads();
12407 (arg1)->Remove(arg2,arg3);
12408 wxPyEndAllowThreads(__tstate);
12409 if (PyErr_Occurred()) SWIG_fail;
12410 }
12411 resultobj = SWIG_Py_Void();
12412 return resultobj;
12413 fail:
12414 return NULL;
12415 }
12416
12417
12418 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12419 PyObject *resultobj = 0;
12420 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12421 wxString *arg2 = 0 ;
12422 bool result;
12423 void *argp1 = 0 ;
12424 int res1 = 0 ;
12425 bool temp2 = false ;
12426 PyObject * obj0 = 0 ;
12427 PyObject * obj1 = 0 ;
12428 char * kwnames[] = {
12429 (char *) "self",(char *) "file", NULL
12430 };
12431
12432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12434 if (!SWIG_IsOK(res1)) {
12435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12436 }
12437 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12438 {
12439 arg2 = wxString_in_helper(obj1);
12440 if (arg2 == NULL) SWIG_fail;
12441 temp2 = true;
12442 }
12443 {
12444 PyThreadState* __tstate = wxPyBeginAllowThreads();
12445 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12446 wxPyEndAllowThreads(__tstate);
12447 if (PyErr_Occurred()) SWIG_fail;
12448 }
12449 {
12450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12451 }
12452 {
12453 if (temp2)
12454 delete arg2;
12455 }
12456 return resultobj;
12457 fail:
12458 {
12459 if (temp2)
12460 delete arg2;
12461 }
12462 return NULL;
12463 }
12464
12465
12466 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12467 PyObject *resultobj = 0;
12468 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12469 wxString const &arg2_defvalue = wxPyEmptyString ;
12470 wxString *arg2 = (wxString *) &arg2_defvalue ;
12471 bool result;
12472 void *argp1 = 0 ;
12473 int res1 = 0 ;
12474 bool temp2 = false ;
12475 PyObject * obj0 = 0 ;
12476 PyObject * obj1 = 0 ;
12477 char * kwnames[] = {
12478 (char *) "self",(char *) "file", NULL
12479 };
12480
12481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12483 if (!SWIG_IsOK(res1)) {
12484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12485 }
12486 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12487 if (obj1) {
12488 {
12489 arg2 = wxString_in_helper(obj1);
12490 if (arg2 == NULL) SWIG_fail;
12491 temp2 = true;
12492 }
12493 }
12494 {
12495 PyThreadState* __tstate = wxPyBeginAllowThreads();
12496 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12497 wxPyEndAllowThreads(__tstate);
12498 if (PyErr_Occurred()) SWIG_fail;
12499 }
12500 {
12501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12502 }
12503 {
12504 if (temp2)
12505 delete arg2;
12506 }
12507 return resultobj;
12508 fail:
12509 {
12510 if (temp2)
12511 delete arg2;
12512 }
12513 return NULL;
12514 }
12515
12516
12517 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12518 PyObject *resultobj = 0;
12519 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12520 void *argp1 = 0 ;
12521 int res1 = 0 ;
12522 PyObject *swig_obj[1] ;
12523
12524 if (!args) SWIG_fail;
12525 swig_obj[0] = args;
12526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12527 if (!SWIG_IsOK(res1)) {
12528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12529 }
12530 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12531 {
12532 PyThreadState* __tstate = wxPyBeginAllowThreads();
12533 (arg1)->MarkDirty();
12534 wxPyEndAllowThreads(__tstate);
12535 if (PyErr_Occurred()) SWIG_fail;
12536 }
12537 resultobj = SWIG_Py_Void();
12538 return resultobj;
12539 fail:
12540 return NULL;
12541 }
12542
12543
12544 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12545 PyObject *resultobj = 0;
12546 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12547 void *argp1 = 0 ;
12548 int res1 = 0 ;
12549 PyObject *swig_obj[1] ;
12550
12551 if (!args) SWIG_fail;
12552 swig_obj[0] = args;
12553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12554 if (!SWIG_IsOK(res1)) {
12555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12556 }
12557 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12558 {
12559 PyThreadState* __tstate = wxPyBeginAllowThreads();
12560 (arg1)->DiscardEdits();
12561 wxPyEndAllowThreads(__tstate);
12562 if (PyErr_Occurred()) SWIG_fail;
12563 }
12564 resultobj = SWIG_Py_Void();
12565 return resultobj;
12566 fail:
12567 return NULL;
12568 }
12569
12570
12571 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12572 PyObject *resultobj = 0;
12573 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12574 unsigned long arg2 ;
12575 void *argp1 = 0 ;
12576 int res1 = 0 ;
12577 unsigned long val2 ;
12578 int ecode2 = 0 ;
12579 PyObject * obj0 = 0 ;
12580 PyObject * obj1 = 0 ;
12581 char * kwnames[] = {
12582 (char *) "self",(char *) "len", NULL
12583 };
12584
12585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12587 if (!SWIG_IsOK(res1)) {
12588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12589 }
12590 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12591 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12592 if (!SWIG_IsOK(ecode2)) {
12593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12594 }
12595 arg2 = static_cast< unsigned long >(val2);
12596 {
12597 PyThreadState* __tstate = wxPyBeginAllowThreads();
12598 (arg1)->SetMaxLength(arg2);
12599 wxPyEndAllowThreads(__tstate);
12600 if (PyErr_Occurred()) SWIG_fail;
12601 }
12602 resultobj = SWIG_Py_Void();
12603 return resultobj;
12604 fail:
12605 return NULL;
12606 }
12607
12608
12609 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12610 PyObject *resultobj = 0;
12611 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12612 wxString *arg2 = 0 ;
12613 void *argp1 = 0 ;
12614 int res1 = 0 ;
12615 bool temp2 = false ;
12616 PyObject * obj0 = 0 ;
12617 PyObject * obj1 = 0 ;
12618 char * kwnames[] = {
12619 (char *) "self",(char *) "text", NULL
12620 };
12621
12622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12624 if (!SWIG_IsOK(res1)) {
12625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12626 }
12627 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12628 {
12629 arg2 = wxString_in_helper(obj1);
12630 if (arg2 == NULL) SWIG_fail;
12631 temp2 = true;
12632 }
12633 {
12634 PyThreadState* __tstate = wxPyBeginAllowThreads();
12635 (arg1)->WriteText((wxString const &)*arg2);
12636 wxPyEndAllowThreads(__tstate);
12637 if (PyErr_Occurred()) SWIG_fail;
12638 }
12639 resultobj = SWIG_Py_Void();
12640 {
12641 if (temp2)
12642 delete arg2;
12643 }
12644 return resultobj;
12645 fail:
12646 {
12647 if (temp2)
12648 delete arg2;
12649 }
12650 return NULL;
12651 }
12652
12653
12654 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12655 PyObject *resultobj = 0;
12656 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12657 wxString *arg2 = 0 ;
12658 void *argp1 = 0 ;
12659 int res1 = 0 ;
12660 bool temp2 = false ;
12661 PyObject * obj0 = 0 ;
12662 PyObject * obj1 = 0 ;
12663 char * kwnames[] = {
12664 (char *) "self",(char *) "text", NULL
12665 };
12666
12667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12669 if (!SWIG_IsOK(res1)) {
12670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12671 }
12672 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12673 {
12674 arg2 = wxString_in_helper(obj1);
12675 if (arg2 == NULL) SWIG_fail;
12676 temp2 = true;
12677 }
12678 {
12679 PyThreadState* __tstate = wxPyBeginAllowThreads();
12680 (arg1)->AppendText((wxString const &)*arg2);
12681 wxPyEndAllowThreads(__tstate);
12682 if (PyErr_Occurred()) SWIG_fail;
12683 }
12684 resultobj = SWIG_Py_Void();
12685 {
12686 if (temp2)
12687 delete arg2;
12688 }
12689 return resultobj;
12690 fail:
12691 {
12692 if (temp2)
12693 delete arg2;
12694 }
12695 return NULL;
12696 }
12697
12698
12699 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12700 PyObject *resultobj = 0;
12701 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12702 wxKeyEvent *arg2 = 0 ;
12703 bool result;
12704 void *argp1 = 0 ;
12705 int res1 = 0 ;
12706 void *argp2 = 0 ;
12707 int res2 = 0 ;
12708 PyObject * obj0 = 0 ;
12709 PyObject * obj1 = 0 ;
12710 char * kwnames[] = {
12711 (char *) "self",(char *) "event", NULL
12712 };
12713
12714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12716 if (!SWIG_IsOK(res1)) {
12717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12718 }
12719 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12720 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12721 if (!SWIG_IsOK(res2)) {
12722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12723 }
12724 if (!argp2) {
12725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12726 }
12727 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12728 {
12729 PyThreadState* __tstate = wxPyBeginAllowThreads();
12730 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12731 wxPyEndAllowThreads(__tstate);
12732 if (PyErr_Occurred()) SWIG_fail;
12733 }
12734 {
12735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12736 }
12737 return resultobj;
12738 fail:
12739 return NULL;
12740 }
12741
12742
12743 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12744 PyObject *resultobj = 0;
12745 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12746 long arg2 ;
12747 long arg3 ;
12748 wxTextAttr *arg4 = 0 ;
12749 bool result;
12750 void *argp1 = 0 ;
12751 int res1 = 0 ;
12752 long val2 ;
12753 int ecode2 = 0 ;
12754 long val3 ;
12755 int ecode3 = 0 ;
12756 void *argp4 = 0 ;
12757 int res4 = 0 ;
12758 PyObject * obj0 = 0 ;
12759 PyObject * obj1 = 0 ;
12760 PyObject * obj2 = 0 ;
12761 PyObject * obj3 = 0 ;
12762 char * kwnames[] = {
12763 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12764 };
12765
12766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12768 if (!SWIG_IsOK(res1)) {
12769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12770 }
12771 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12772 ecode2 = SWIG_AsVal_long(obj1, &val2);
12773 if (!SWIG_IsOK(ecode2)) {
12774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12775 }
12776 arg2 = static_cast< long >(val2);
12777 ecode3 = SWIG_AsVal_long(obj2, &val3);
12778 if (!SWIG_IsOK(ecode3)) {
12779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12780 }
12781 arg3 = static_cast< long >(val3);
12782 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12783 if (!SWIG_IsOK(res4)) {
12784 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12785 }
12786 if (!argp4) {
12787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12788 }
12789 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12790 {
12791 PyThreadState* __tstate = wxPyBeginAllowThreads();
12792 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12793 wxPyEndAllowThreads(__tstate);
12794 if (PyErr_Occurred()) SWIG_fail;
12795 }
12796 {
12797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12798 }
12799 return resultobj;
12800 fail:
12801 return NULL;
12802 }
12803
12804
12805 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12806 PyObject *resultobj = 0;
12807 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12808 long arg2 ;
12809 wxTextAttr *arg3 = 0 ;
12810 bool result;
12811 void *argp1 = 0 ;
12812 int res1 = 0 ;
12813 long val2 ;
12814 int ecode2 = 0 ;
12815 void *argp3 = 0 ;
12816 int res3 = 0 ;
12817 PyObject * obj0 = 0 ;
12818 PyObject * obj1 = 0 ;
12819 PyObject * obj2 = 0 ;
12820 char * kwnames[] = {
12821 (char *) "self",(char *) "position",(char *) "style", NULL
12822 };
12823
12824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12826 if (!SWIG_IsOK(res1)) {
12827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12828 }
12829 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12830 ecode2 = SWIG_AsVal_long(obj1, &val2);
12831 if (!SWIG_IsOK(ecode2)) {
12832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12833 }
12834 arg2 = static_cast< long >(val2);
12835 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12836 if (!SWIG_IsOK(res3)) {
12837 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12838 }
12839 if (!argp3) {
12840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12841 }
12842 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12843 {
12844 PyThreadState* __tstate = wxPyBeginAllowThreads();
12845 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12846 wxPyEndAllowThreads(__tstate);
12847 if (PyErr_Occurred()) SWIG_fail;
12848 }
12849 {
12850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12851 }
12852 return resultobj;
12853 fail:
12854 return NULL;
12855 }
12856
12857
12858 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12859 PyObject *resultobj = 0;
12860 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12861 wxTextAttr *arg2 = 0 ;
12862 bool result;
12863 void *argp1 = 0 ;
12864 int res1 = 0 ;
12865 void *argp2 = 0 ;
12866 int res2 = 0 ;
12867 PyObject * obj0 = 0 ;
12868 PyObject * obj1 = 0 ;
12869 char * kwnames[] = {
12870 (char *) "self",(char *) "style", NULL
12871 };
12872
12873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12875 if (!SWIG_IsOK(res1)) {
12876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12877 }
12878 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12880 if (!SWIG_IsOK(res2)) {
12881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12882 }
12883 if (!argp2) {
12884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12885 }
12886 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12887 {
12888 PyThreadState* __tstate = wxPyBeginAllowThreads();
12889 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12890 wxPyEndAllowThreads(__tstate);
12891 if (PyErr_Occurred()) SWIG_fail;
12892 }
12893 {
12894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12895 }
12896 return resultobj;
12897 fail:
12898 return NULL;
12899 }
12900
12901
12902 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12903 PyObject *resultobj = 0;
12904 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12905 wxTextAttr *result = 0 ;
12906 void *argp1 = 0 ;
12907 int res1 = 0 ;
12908 PyObject *swig_obj[1] ;
12909
12910 if (!args) SWIG_fail;
12911 swig_obj[0] = args;
12912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12913 if (!SWIG_IsOK(res1)) {
12914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12915 }
12916 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12917 {
12918 PyThreadState* __tstate = wxPyBeginAllowThreads();
12919 {
12920 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12921 result = (wxTextAttr *) &_result_ref;
12922 }
12923 wxPyEndAllowThreads(__tstate);
12924 if (PyErr_Occurred()) SWIG_fail;
12925 }
12926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12927 return resultobj;
12928 fail:
12929 return NULL;
12930 }
12931
12932
12933 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12934 PyObject *resultobj = 0;
12935 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12936 long arg2 ;
12937 long arg3 ;
12938 long result;
12939 void *argp1 = 0 ;
12940 int res1 = 0 ;
12941 long val2 ;
12942 int ecode2 = 0 ;
12943 long val3 ;
12944 int ecode3 = 0 ;
12945 PyObject * obj0 = 0 ;
12946 PyObject * obj1 = 0 ;
12947 PyObject * obj2 = 0 ;
12948 char * kwnames[] = {
12949 (char *) "self",(char *) "x",(char *) "y", NULL
12950 };
12951
12952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12954 if (!SWIG_IsOK(res1)) {
12955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12956 }
12957 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12958 ecode2 = SWIG_AsVal_long(obj1, &val2);
12959 if (!SWIG_IsOK(ecode2)) {
12960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12961 }
12962 arg2 = static_cast< long >(val2);
12963 ecode3 = SWIG_AsVal_long(obj2, &val3);
12964 if (!SWIG_IsOK(ecode3)) {
12965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12966 }
12967 arg3 = static_cast< long >(val3);
12968 {
12969 PyThreadState* __tstate = wxPyBeginAllowThreads();
12970 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12971 wxPyEndAllowThreads(__tstate);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
12974 resultobj = SWIG_From_long(static_cast< long >(result));
12975 return resultobj;
12976 fail:
12977 return NULL;
12978 }
12979
12980
12981 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12982 PyObject *resultobj = 0;
12983 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12984 long arg2 ;
12985 long *arg3 = (long *) 0 ;
12986 long *arg4 = (long *) 0 ;
12987 void *argp1 = 0 ;
12988 int res1 = 0 ;
12989 long val2 ;
12990 int ecode2 = 0 ;
12991 long temp3 ;
12992 int res3 = SWIG_TMPOBJ ;
12993 long temp4 ;
12994 int res4 = SWIG_TMPOBJ ;
12995 PyObject * obj0 = 0 ;
12996 PyObject * obj1 = 0 ;
12997 char * kwnames[] = {
12998 (char *) "self",(char *) "pos", NULL
12999 };
13000
13001 arg3 = &temp3;
13002 arg4 = &temp4;
13003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13005 if (!SWIG_IsOK(res1)) {
13006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13007 }
13008 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13009 ecode2 = SWIG_AsVal_long(obj1, &val2);
13010 if (!SWIG_IsOK(ecode2)) {
13011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13012 }
13013 arg2 = static_cast< long >(val2);
13014 {
13015 PyThreadState* __tstate = wxPyBeginAllowThreads();
13016 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13017 wxPyEndAllowThreads(__tstate);
13018 if (PyErr_Occurred()) SWIG_fail;
13019 }
13020 resultobj = SWIG_Py_Void();
13021 if (SWIG_IsTmpObj(res3)) {
13022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13023 } else {
13024 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13026 }
13027 if (SWIG_IsTmpObj(res4)) {
13028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13029 } else {
13030 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13032 }
13033 return resultobj;
13034 fail:
13035 return NULL;
13036 }
13037
13038
13039 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13040 PyObject *resultobj = 0;
13041 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13042 long arg2 ;
13043 void *argp1 = 0 ;
13044 int res1 = 0 ;
13045 long val2 ;
13046 int ecode2 = 0 ;
13047 PyObject * obj0 = 0 ;
13048 PyObject * obj1 = 0 ;
13049 char * kwnames[] = {
13050 (char *) "self",(char *) "pos", NULL
13051 };
13052
13053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13055 if (!SWIG_IsOK(res1)) {
13056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13057 }
13058 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13059 ecode2 = SWIG_AsVal_long(obj1, &val2);
13060 if (!SWIG_IsOK(ecode2)) {
13061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13062 }
13063 arg2 = static_cast< long >(val2);
13064 {
13065 PyThreadState* __tstate = wxPyBeginAllowThreads();
13066 (arg1)->ShowPosition(arg2);
13067 wxPyEndAllowThreads(__tstate);
13068 if (PyErr_Occurred()) SWIG_fail;
13069 }
13070 resultobj = SWIG_Py_Void();
13071 return resultobj;
13072 fail:
13073 return NULL;
13074 }
13075
13076
13077 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13078 PyObject *resultobj = 0;
13079 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13080 wxPoint *arg2 = 0 ;
13081 long *arg3 = (long *) 0 ;
13082 long *arg4 = (long *) 0 ;
13083 wxTextCtrlHitTestResult result;
13084 void *argp1 = 0 ;
13085 int res1 = 0 ;
13086 wxPoint temp2 ;
13087 long temp3 ;
13088 int res3 = SWIG_TMPOBJ ;
13089 long temp4 ;
13090 int res4 = SWIG_TMPOBJ ;
13091 PyObject * obj0 = 0 ;
13092 PyObject * obj1 = 0 ;
13093 char * kwnames[] = {
13094 (char *) "self",(char *) "pt", NULL
13095 };
13096
13097 arg3 = &temp3;
13098 arg4 = &temp4;
13099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13101 if (!SWIG_IsOK(res1)) {
13102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13103 }
13104 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13105 {
13106 arg2 = &temp2;
13107 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13108 }
13109 {
13110 PyThreadState* __tstate = wxPyBeginAllowThreads();
13111 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13112 wxPyEndAllowThreads(__tstate);
13113 if (PyErr_Occurred()) SWIG_fail;
13114 }
13115 resultobj = SWIG_From_int(static_cast< int >(result));
13116 if (SWIG_IsTmpObj(res3)) {
13117 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13118 } else {
13119 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13121 }
13122 if (SWIG_IsTmpObj(res4)) {
13123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13124 } else {
13125 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13127 }
13128 return resultobj;
13129 fail:
13130 return NULL;
13131 }
13132
13133
13134 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13135 PyObject *resultobj = 0;
13136 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13137 wxPoint *arg2 = 0 ;
13138 long *arg3 = (long *) 0 ;
13139 wxTextCtrlHitTestResult result;
13140 void *argp1 = 0 ;
13141 int res1 = 0 ;
13142 wxPoint temp2 ;
13143 long temp3 ;
13144 int res3 = SWIG_TMPOBJ ;
13145 PyObject * obj0 = 0 ;
13146 PyObject * obj1 = 0 ;
13147 char * kwnames[] = {
13148 (char *) "self",(char *) "pt", NULL
13149 };
13150
13151 arg3 = &temp3;
13152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13154 if (!SWIG_IsOK(res1)) {
13155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13156 }
13157 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13158 {
13159 arg2 = &temp2;
13160 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13161 }
13162 {
13163 PyThreadState* __tstate = wxPyBeginAllowThreads();
13164 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13165 wxPyEndAllowThreads(__tstate);
13166 if (PyErr_Occurred()) SWIG_fail;
13167 }
13168 resultobj = SWIG_From_int(static_cast< int >(result));
13169 if (SWIG_IsTmpObj(res3)) {
13170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13171 } else {
13172 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13173 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13174 }
13175 return resultobj;
13176 fail:
13177 return NULL;
13178 }
13179
13180
13181 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13182 PyObject *resultobj = 0;
13183 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13184 void *argp1 = 0 ;
13185 int res1 = 0 ;
13186 PyObject *swig_obj[1] ;
13187
13188 if (!args) SWIG_fail;
13189 swig_obj[0] = args;
13190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13191 if (!SWIG_IsOK(res1)) {
13192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13193 }
13194 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13195 {
13196 PyThreadState* __tstate = wxPyBeginAllowThreads();
13197 (arg1)->Copy();
13198 wxPyEndAllowThreads(__tstate);
13199 if (PyErr_Occurred()) SWIG_fail;
13200 }
13201 resultobj = SWIG_Py_Void();
13202 return resultobj;
13203 fail:
13204 return NULL;
13205 }
13206
13207
13208 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13209 PyObject *resultobj = 0;
13210 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13211 void *argp1 = 0 ;
13212 int res1 = 0 ;
13213 PyObject *swig_obj[1] ;
13214
13215 if (!args) SWIG_fail;
13216 swig_obj[0] = args;
13217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13218 if (!SWIG_IsOK(res1)) {
13219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13220 }
13221 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 (arg1)->Cut();
13225 wxPyEndAllowThreads(__tstate);
13226 if (PyErr_Occurred()) SWIG_fail;
13227 }
13228 resultobj = SWIG_Py_Void();
13229 return resultobj;
13230 fail:
13231 return NULL;
13232 }
13233
13234
13235 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13236 PyObject *resultobj = 0;
13237 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13238 void *argp1 = 0 ;
13239 int res1 = 0 ;
13240 PyObject *swig_obj[1] ;
13241
13242 if (!args) SWIG_fail;
13243 swig_obj[0] = args;
13244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13245 if (!SWIG_IsOK(res1)) {
13246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13247 }
13248 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13249 {
13250 PyThreadState* __tstate = wxPyBeginAllowThreads();
13251 (arg1)->Paste();
13252 wxPyEndAllowThreads(__tstate);
13253 if (PyErr_Occurred()) SWIG_fail;
13254 }
13255 resultobj = SWIG_Py_Void();
13256 return resultobj;
13257 fail:
13258 return NULL;
13259 }
13260
13261
13262 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13263 PyObject *resultobj = 0;
13264 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13265 bool result;
13266 void *argp1 = 0 ;
13267 int res1 = 0 ;
13268 PyObject *swig_obj[1] ;
13269
13270 if (!args) SWIG_fail;
13271 swig_obj[0] = args;
13272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13273 if (!SWIG_IsOK(res1)) {
13274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13275 }
13276 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13277 {
13278 PyThreadState* __tstate = wxPyBeginAllowThreads();
13279 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13280 wxPyEndAllowThreads(__tstate);
13281 if (PyErr_Occurred()) SWIG_fail;
13282 }
13283 {
13284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13285 }
13286 return resultobj;
13287 fail:
13288 return NULL;
13289 }
13290
13291
13292 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13293 PyObject *resultobj = 0;
13294 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13295 bool result;
13296 void *argp1 = 0 ;
13297 int res1 = 0 ;
13298 PyObject *swig_obj[1] ;
13299
13300 if (!args) SWIG_fail;
13301 swig_obj[0] = args;
13302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13303 if (!SWIG_IsOK(res1)) {
13304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13305 }
13306 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13307 {
13308 PyThreadState* __tstate = wxPyBeginAllowThreads();
13309 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13310 wxPyEndAllowThreads(__tstate);
13311 if (PyErr_Occurred()) SWIG_fail;
13312 }
13313 {
13314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13315 }
13316 return resultobj;
13317 fail:
13318 return NULL;
13319 }
13320
13321
13322 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13323 PyObject *resultobj = 0;
13324 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13325 bool result;
13326 void *argp1 = 0 ;
13327 int res1 = 0 ;
13328 PyObject *swig_obj[1] ;
13329
13330 if (!args) SWIG_fail;
13331 swig_obj[0] = args;
13332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13333 if (!SWIG_IsOK(res1)) {
13334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13335 }
13336 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 {
13344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13345 }
13346 return resultobj;
13347 fail:
13348 return NULL;
13349 }
13350
13351
13352 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13353 PyObject *resultobj = 0;
13354 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13355 void *argp1 = 0 ;
13356 int res1 = 0 ;
13357 PyObject *swig_obj[1] ;
13358
13359 if (!args) SWIG_fail;
13360 swig_obj[0] = args;
13361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13362 if (!SWIG_IsOK(res1)) {
13363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13364 }
13365 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13366 {
13367 PyThreadState* __tstate = wxPyBeginAllowThreads();
13368 (arg1)->Undo();
13369 wxPyEndAllowThreads(__tstate);
13370 if (PyErr_Occurred()) SWIG_fail;
13371 }
13372 resultobj = SWIG_Py_Void();
13373 return resultobj;
13374 fail:
13375 return NULL;
13376 }
13377
13378
13379 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13380 PyObject *resultobj = 0;
13381 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13382 void *argp1 = 0 ;
13383 int res1 = 0 ;
13384 PyObject *swig_obj[1] ;
13385
13386 if (!args) SWIG_fail;
13387 swig_obj[0] = args;
13388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13389 if (!SWIG_IsOK(res1)) {
13390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13391 }
13392 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13393 {
13394 PyThreadState* __tstate = wxPyBeginAllowThreads();
13395 (arg1)->Redo();
13396 wxPyEndAllowThreads(__tstate);
13397 if (PyErr_Occurred()) SWIG_fail;
13398 }
13399 resultobj = SWIG_Py_Void();
13400 return resultobj;
13401 fail:
13402 return NULL;
13403 }
13404
13405
13406 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13407 PyObject *resultobj = 0;
13408 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13409 bool result;
13410 void *argp1 = 0 ;
13411 int res1 = 0 ;
13412 PyObject *swig_obj[1] ;
13413
13414 if (!args) SWIG_fail;
13415 swig_obj[0] = args;
13416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13417 if (!SWIG_IsOK(res1)) {
13418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13419 }
13420 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13421 {
13422 PyThreadState* __tstate = wxPyBeginAllowThreads();
13423 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13424 wxPyEndAllowThreads(__tstate);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 }
13427 {
13428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13429 }
13430 return resultobj;
13431 fail:
13432 return NULL;
13433 }
13434
13435
13436 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13437 PyObject *resultobj = 0;
13438 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13439 bool result;
13440 void *argp1 = 0 ;
13441 int res1 = 0 ;
13442 PyObject *swig_obj[1] ;
13443
13444 if (!args) SWIG_fail;
13445 swig_obj[0] = args;
13446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13447 if (!SWIG_IsOK(res1)) {
13448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13449 }
13450 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13451 {
13452 PyThreadState* __tstate = wxPyBeginAllowThreads();
13453 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13454 wxPyEndAllowThreads(__tstate);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 {
13458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13459 }
13460 return resultobj;
13461 fail:
13462 return NULL;
13463 }
13464
13465
13466 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13467 PyObject *resultobj = 0;
13468 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13469 long arg2 ;
13470 void *argp1 = 0 ;
13471 int res1 = 0 ;
13472 long val2 ;
13473 int ecode2 = 0 ;
13474 PyObject * obj0 = 0 ;
13475 PyObject * obj1 = 0 ;
13476 char * kwnames[] = {
13477 (char *) "self",(char *) "pos", NULL
13478 };
13479
13480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13482 if (!SWIG_IsOK(res1)) {
13483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13484 }
13485 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13486 ecode2 = SWIG_AsVal_long(obj1, &val2);
13487 if (!SWIG_IsOK(ecode2)) {
13488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13489 }
13490 arg2 = static_cast< long >(val2);
13491 {
13492 PyThreadState* __tstate = wxPyBeginAllowThreads();
13493 (arg1)->SetInsertionPoint(arg2);
13494 wxPyEndAllowThreads(__tstate);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 }
13497 resultobj = SWIG_Py_Void();
13498 return resultobj;
13499 fail:
13500 return NULL;
13501 }
13502
13503
13504 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13505 PyObject *resultobj = 0;
13506 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13507 void *argp1 = 0 ;
13508 int res1 = 0 ;
13509 PyObject *swig_obj[1] ;
13510
13511 if (!args) SWIG_fail;
13512 swig_obj[0] = args;
13513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13514 if (!SWIG_IsOK(res1)) {
13515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13516 }
13517 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13518 {
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 (arg1)->SetInsertionPointEnd();
13521 wxPyEndAllowThreads(__tstate);
13522 if (PyErr_Occurred()) SWIG_fail;
13523 }
13524 resultobj = SWIG_Py_Void();
13525 return resultobj;
13526 fail:
13527 return NULL;
13528 }
13529
13530
13531 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13532 PyObject *resultobj = 0;
13533 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13534 long result;
13535 void *argp1 = 0 ;
13536 int res1 = 0 ;
13537 PyObject *swig_obj[1] ;
13538
13539 if (!args) SWIG_fail;
13540 swig_obj[0] = args;
13541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13542 if (!SWIG_IsOK(res1)) {
13543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13544 }
13545 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13546 {
13547 PyThreadState* __tstate = wxPyBeginAllowThreads();
13548 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 resultobj = SWIG_From_long(static_cast< long >(result));
13553 return resultobj;
13554 fail:
13555 return NULL;
13556 }
13557
13558
13559 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13560 PyObject *resultobj = 0;
13561 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13562 long result;
13563 void *argp1 = 0 ;
13564 int res1 = 0 ;
13565 PyObject *swig_obj[1] ;
13566
13567 if (!args) SWIG_fail;
13568 swig_obj[0] = args;
13569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13570 if (!SWIG_IsOK(res1)) {
13571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13572 }
13573 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13574 {
13575 PyThreadState* __tstate = wxPyBeginAllowThreads();
13576 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 resultobj = SWIG_From_long(static_cast< long >(result));
13581 return resultobj;
13582 fail:
13583 return NULL;
13584 }
13585
13586
13587 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13588 PyObject *resultobj = 0;
13589 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13590 long arg2 ;
13591 long arg3 ;
13592 void *argp1 = 0 ;
13593 int res1 = 0 ;
13594 long val2 ;
13595 int ecode2 = 0 ;
13596 long val3 ;
13597 int ecode3 = 0 ;
13598 PyObject * obj0 = 0 ;
13599 PyObject * obj1 = 0 ;
13600 PyObject * obj2 = 0 ;
13601 char * kwnames[] = {
13602 (char *) "self",(char *) "from",(char *) "to", NULL
13603 };
13604
13605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13607 if (!SWIG_IsOK(res1)) {
13608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13609 }
13610 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13611 ecode2 = SWIG_AsVal_long(obj1, &val2);
13612 if (!SWIG_IsOK(ecode2)) {
13613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13614 }
13615 arg2 = static_cast< long >(val2);
13616 ecode3 = SWIG_AsVal_long(obj2, &val3);
13617 if (!SWIG_IsOK(ecode3)) {
13618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13619 }
13620 arg3 = static_cast< long >(val3);
13621 {
13622 PyThreadState* __tstate = wxPyBeginAllowThreads();
13623 (arg1)->SetSelection(arg2,arg3);
13624 wxPyEndAllowThreads(__tstate);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 }
13627 resultobj = SWIG_Py_Void();
13628 return resultobj;
13629 fail:
13630 return NULL;
13631 }
13632
13633
13634 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13635 PyObject *resultobj = 0;
13636 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13637 void *argp1 = 0 ;
13638 int res1 = 0 ;
13639 PyObject *swig_obj[1] ;
13640
13641 if (!args) SWIG_fail;
13642 swig_obj[0] = args;
13643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13644 if (!SWIG_IsOK(res1)) {
13645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13646 }
13647 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13648 {
13649 PyThreadState* __tstate = wxPyBeginAllowThreads();
13650 (arg1)->SelectAll();
13651 wxPyEndAllowThreads(__tstate);
13652 if (PyErr_Occurred()) SWIG_fail;
13653 }
13654 resultobj = SWIG_Py_Void();
13655 return resultobj;
13656 fail:
13657 return NULL;
13658 }
13659
13660
13661 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13662 PyObject *resultobj = 0;
13663 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13664 bool arg2 ;
13665 void *argp1 = 0 ;
13666 int res1 = 0 ;
13667 bool val2 ;
13668 int ecode2 = 0 ;
13669 PyObject * obj0 = 0 ;
13670 PyObject * obj1 = 0 ;
13671 char * kwnames[] = {
13672 (char *) "self",(char *) "editable", NULL
13673 };
13674
13675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13677 if (!SWIG_IsOK(res1)) {
13678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13679 }
13680 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13681 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13682 if (!SWIG_IsOK(ecode2)) {
13683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13684 }
13685 arg2 = static_cast< bool >(val2);
13686 {
13687 PyThreadState* __tstate = wxPyBeginAllowThreads();
13688 (arg1)->SetEditable(arg2);
13689 wxPyEndAllowThreads(__tstate);
13690 if (PyErr_Occurred()) SWIG_fail;
13691 }
13692 resultobj = SWIG_Py_Void();
13693 return resultobj;
13694 fail:
13695 return NULL;
13696 }
13697
13698
13699 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13700 PyObject *resultobj = 0;
13701 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13702 wxString *arg2 = 0 ;
13703 void *argp1 = 0 ;
13704 int res1 = 0 ;
13705 bool temp2 = false ;
13706 PyObject * obj0 = 0 ;
13707 PyObject * obj1 = 0 ;
13708 char * kwnames[] = {
13709 (char *) "self",(char *) "text", NULL
13710 };
13711
13712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13714 if (!SWIG_IsOK(res1)) {
13715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13716 }
13717 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13718 {
13719 arg2 = wxString_in_helper(obj1);
13720 if (arg2 == NULL) SWIG_fail;
13721 temp2 = true;
13722 }
13723 {
13724 PyThreadState* __tstate = wxPyBeginAllowThreads();
13725 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13726 wxPyEndAllowThreads(__tstate);
13727 if (PyErr_Occurred()) SWIG_fail;
13728 }
13729 resultobj = SWIG_Py_Void();
13730 {
13731 if (temp2)
13732 delete arg2;
13733 }
13734 return resultobj;
13735 fail:
13736 {
13737 if (temp2)
13738 delete arg2;
13739 }
13740 return NULL;
13741 }
13742
13743
13744 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13745 PyObject *resultobj = 0;
13746 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13747 long arg2 ;
13748 long arg3 ;
13749 wxString result;
13750 void *argp1 = 0 ;
13751 int res1 = 0 ;
13752 long val2 ;
13753 int ecode2 = 0 ;
13754 long val3 ;
13755 int ecode3 = 0 ;
13756 PyObject * obj0 = 0 ;
13757 PyObject * obj1 = 0 ;
13758 PyObject * obj2 = 0 ;
13759 char * kwnames[] = {
13760 (char *) "self",(char *) "from",(char *) "to", NULL
13761 };
13762
13763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13765 if (!SWIG_IsOK(res1)) {
13766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13767 }
13768 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13769 ecode2 = SWIG_AsVal_long(obj1, &val2);
13770 if (!SWIG_IsOK(ecode2)) {
13771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13772 }
13773 arg2 = static_cast< long >(val2);
13774 ecode3 = SWIG_AsVal_long(obj2, &val3);
13775 if (!SWIG_IsOK(ecode3)) {
13776 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13777 }
13778 arg3 = static_cast< long >(val3);
13779 {
13780 PyThreadState* __tstate = wxPyBeginAllowThreads();
13781 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13782 wxPyEndAllowThreads(__tstate);
13783 if (PyErr_Occurred()) SWIG_fail;
13784 }
13785 {
13786 #if wxUSE_UNICODE
13787 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13788 #else
13789 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13790 #endif
13791 }
13792 return resultobj;
13793 fail:
13794 return NULL;
13795 }
13796
13797
13798 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13799 PyObject *resultobj = 0;
13800 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13801 SwigValueWrapper<wxVisualAttributes > result;
13802 int val1 ;
13803 int ecode1 = 0 ;
13804 PyObject * obj0 = 0 ;
13805 char * kwnames[] = {
13806 (char *) "variant", NULL
13807 };
13808
13809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13810 if (obj0) {
13811 ecode1 = SWIG_AsVal_int(obj0, &val1);
13812 if (!SWIG_IsOK(ecode1)) {
13813 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13814 }
13815 arg1 = static_cast< wxWindowVariant >(val1);
13816 }
13817 {
13818 if (!wxPyCheckForApp()) SWIG_fail;
13819 PyThreadState* __tstate = wxPyBeginAllowThreads();
13820 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13821 wxPyEndAllowThreads(__tstate);
13822 if (PyErr_Occurred()) SWIG_fail;
13823 }
13824 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13825 return resultobj;
13826 fail:
13827 return NULL;
13828 }
13829
13830
13831 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13832 PyObject *obj;
13833 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13834 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13835 return SWIG_Py_Void();
13836 }
13837
13838 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13839 return SWIG_Python_InitShadowInstance(args);
13840 }
13841
13842 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13843 PyObject *resultobj = 0;
13844 int arg1 ;
13845 wxMouseEvent *arg2 = 0 ;
13846 long arg3 ;
13847 long arg4 ;
13848 wxTextUrlEvent *result = 0 ;
13849 int val1 ;
13850 int ecode1 = 0 ;
13851 void *argp2 = 0 ;
13852 int res2 = 0 ;
13853 long val3 ;
13854 int ecode3 = 0 ;
13855 long val4 ;
13856 int ecode4 = 0 ;
13857 PyObject * obj0 = 0 ;
13858 PyObject * obj1 = 0 ;
13859 PyObject * obj2 = 0 ;
13860 PyObject * obj3 = 0 ;
13861 char * kwnames[] = {
13862 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13863 };
13864
13865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13866 ecode1 = SWIG_AsVal_int(obj0, &val1);
13867 if (!SWIG_IsOK(ecode1)) {
13868 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13869 }
13870 arg1 = static_cast< int >(val1);
13871 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13872 if (!SWIG_IsOK(res2)) {
13873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13874 }
13875 if (!argp2) {
13876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13877 }
13878 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13879 ecode3 = SWIG_AsVal_long(obj2, &val3);
13880 if (!SWIG_IsOK(ecode3)) {
13881 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13882 }
13883 arg3 = static_cast< long >(val3);
13884 ecode4 = SWIG_AsVal_long(obj3, &val4);
13885 if (!SWIG_IsOK(ecode4)) {
13886 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13887 }
13888 arg4 = static_cast< long >(val4);
13889 {
13890 PyThreadState* __tstate = wxPyBeginAllowThreads();
13891 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13892 wxPyEndAllowThreads(__tstate);
13893 if (PyErr_Occurred()) SWIG_fail;
13894 }
13895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13896 return resultobj;
13897 fail:
13898 return NULL;
13899 }
13900
13901
13902 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13903 PyObject *resultobj = 0;
13904 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13905 wxMouseEvent *result = 0 ;
13906 void *argp1 = 0 ;
13907 int res1 = 0 ;
13908 PyObject *swig_obj[1] ;
13909
13910 if (!args) SWIG_fail;
13911 swig_obj[0] = args;
13912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13913 if (!SWIG_IsOK(res1)) {
13914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13915 }
13916 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13917 {
13918 PyThreadState* __tstate = wxPyBeginAllowThreads();
13919 {
13920 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13921 result = (wxMouseEvent *) &_result_ref;
13922 }
13923 wxPyEndAllowThreads(__tstate);
13924 if (PyErr_Occurred()) SWIG_fail;
13925 }
13926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13927 return resultobj;
13928 fail:
13929 return NULL;
13930 }
13931
13932
13933 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13934 PyObject *resultobj = 0;
13935 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13936 long result;
13937 void *argp1 = 0 ;
13938 int res1 = 0 ;
13939 PyObject *swig_obj[1] ;
13940
13941 if (!args) SWIG_fail;
13942 swig_obj[0] = args;
13943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13944 if (!SWIG_IsOK(res1)) {
13945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13946 }
13947 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13948 {
13949 PyThreadState* __tstate = wxPyBeginAllowThreads();
13950 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13951 wxPyEndAllowThreads(__tstate);
13952 if (PyErr_Occurred()) SWIG_fail;
13953 }
13954 resultobj = SWIG_From_long(static_cast< long >(result));
13955 return resultobj;
13956 fail:
13957 return NULL;
13958 }
13959
13960
13961 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13962 PyObject *resultobj = 0;
13963 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13964 long result;
13965 void *argp1 = 0 ;
13966 int res1 = 0 ;
13967 PyObject *swig_obj[1] ;
13968
13969 if (!args) SWIG_fail;
13970 swig_obj[0] = args;
13971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13972 if (!SWIG_IsOK(res1)) {
13973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13974 }
13975 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13976 {
13977 PyThreadState* __tstate = wxPyBeginAllowThreads();
13978 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13979 wxPyEndAllowThreads(__tstate);
13980 if (PyErr_Occurred()) SWIG_fail;
13981 }
13982 resultobj = SWIG_From_long(static_cast< long >(result));
13983 return resultobj;
13984 fail:
13985 return NULL;
13986 }
13987
13988
13989 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13990 PyObject *obj;
13991 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13992 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13993 return SWIG_Py_Void();
13994 }
13995
13996 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13997 return SWIG_Python_InitShadowInstance(args);
13998 }
13999
14000 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14001 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14002 return 1;
14003 }
14004
14005
14006 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14007 PyObject *pyobj = 0;
14008
14009 {
14010 #if wxUSE_UNICODE
14011 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14012 #else
14013 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14014 #endif
14015 }
14016 return pyobj;
14017 }
14018
14019
14020 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14021 PyObject *resultobj = 0;
14022 wxWindow *arg1 = (wxWindow *) 0 ;
14023 int arg2 = (int) -1 ;
14024 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14025 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14026 wxSize const &arg4_defvalue = wxDefaultSize ;
14027 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14028 long arg5 = (long) wxSB_HORIZONTAL ;
14029 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14030 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14031 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14032 wxString *arg7 = (wxString *) &arg7_defvalue ;
14033 wxScrollBar *result = 0 ;
14034 void *argp1 = 0 ;
14035 int res1 = 0 ;
14036 int val2 ;
14037 int ecode2 = 0 ;
14038 wxPoint temp3 ;
14039 wxSize temp4 ;
14040 long val5 ;
14041 int ecode5 = 0 ;
14042 void *argp6 = 0 ;
14043 int res6 = 0 ;
14044 bool temp7 = false ;
14045 PyObject * obj0 = 0 ;
14046 PyObject * obj1 = 0 ;
14047 PyObject * obj2 = 0 ;
14048 PyObject * obj3 = 0 ;
14049 PyObject * obj4 = 0 ;
14050 PyObject * obj5 = 0 ;
14051 PyObject * obj6 = 0 ;
14052 char * kwnames[] = {
14053 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14054 };
14055
14056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14058 if (!SWIG_IsOK(res1)) {
14059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14060 }
14061 arg1 = reinterpret_cast< wxWindow * >(argp1);
14062 if (obj1) {
14063 ecode2 = SWIG_AsVal_int(obj1, &val2);
14064 if (!SWIG_IsOK(ecode2)) {
14065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14066 }
14067 arg2 = static_cast< int >(val2);
14068 }
14069 if (obj2) {
14070 {
14071 arg3 = &temp3;
14072 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14073 }
14074 }
14075 if (obj3) {
14076 {
14077 arg4 = &temp4;
14078 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14079 }
14080 }
14081 if (obj4) {
14082 ecode5 = SWIG_AsVal_long(obj4, &val5);
14083 if (!SWIG_IsOK(ecode5)) {
14084 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14085 }
14086 arg5 = static_cast< long >(val5);
14087 }
14088 if (obj5) {
14089 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14090 if (!SWIG_IsOK(res6)) {
14091 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14092 }
14093 if (!argp6) {
14094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14095 }
14096 arg6 = reinterpret_cast< wxValidator * >(argp6);
14097 }
14098 if (obj6) {
14099 {
14100 arg7 = wxString_in_helper(obj6);
14101 if (arg7 == NULL) SWIG_fail;
14102 temp7 = true;
14103 }
14104 }
14105 {
14106 if (!wxPyCheckForApp()) SWIG_fail;
14107 PyThreadState* __tstate = wxPyBeginAllowThreads();
14108 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14109 wxPyEndAllowThreads(__tstate);
14110 if (PyErr_Occurred()) SWIG_fail;
14111 }
14112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14113 {
14114 if (temp7)
14115 delete arg7;
14116 }
14117 return resultobj;
14118 fail:
14119 {
14120 if (temp7)
14121 delete arg7;
14122 }
14123 return NULL;
14124 }
14125
14126
14127 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14128 PyObject *resultobj = 0;
14129 wxScrollBar *result = 0 ;
14130
14131 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14132 {
14133 if (!wxPyCheckForApp()) SWIG_fail;
14134 PyThreadState* __tstate = wxPyBeginAllowThreads();
14135 result = (wxScrollBar *)new wxScrollBar();
14136 wxPyEndAllowThreads(__tstate);
14137 if (PyErr_Occurred()) SWIG_fail;
14138 }
14139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14140 return resultobj;
14141 fail:
14142 return NULL;
14143 }
14144
14145
14146 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14147 PyObject *resultobj = 0;
14148 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14149 wxWindow *arg2 = (wxWindow *) 0 ;
14150 int arg3 = (int) -1 ;
14151 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14152 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14153 wxSize const &arg5_defvalue = wxDefaultSize ;
14154 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14155 long arg6 = (long) wxSB_HORIZONTAL ;
14156 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14157 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14158 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14159 wxString *arg8 = (wxString *) &arg8_defvalue ;
14160 bool result;
14161 void *argp1 = 0 ;
14162 int res1 = 0 ;
14163 void *argp2 = 0 ;
14164 int res2 = 0 ;
14165 int val3 ;
14166 int ecode3 = 0 ;
14167 wxPoint temp4 ;
14168 wxSize temp5 ;
14169 long val6 ;
14170 int ecode6 = 0 ;
14171 void *argp7 = 0 ;
14172 int res7 = 0 ;
14173 bool temp8 = false ;
14174 PyObject * obj0 = 0 ;
14175 PyObject * obj1 = 0 ;
14176 PyObject * obj2 = 0 ;
14177 PyObject * obj3 = 0 ;
14178 PyObject * obj4 = 0 ;
14179 PyObject * obj5 = 0 ;
14180 PyObject * obj6 = 0 ;
14181 PyObject * obj7 = 0 ;
14182 char * kwnames[] = {
14183 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14184 };
14185
14186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14188 if (!SWIG_IsOK(res1)) {
14189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14190 }
14191 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14192 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14193 if (!SWIG_IsOK(res2)) {
14194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14195 }
14196 arg2 = reinterpret_cast< wxWindow * >(argp2);
14197 if (obj2) {
14198 ecode3 = SWIG_AsVal_int(obj2, &val3);
14199 if (!SWIG_IsOK(ecode3)) {
14200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14201 }
14202 arg3 = static_cast< int >(val3);
14203 }
14204 if (obj3) {
14205 {
14206 arg4 = &temp4;
14207 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14208 }
14209 }
14210 if (obj4) {
14211 {
14212 arg5 = &temp5;
14213 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14214 }
14215 }
14216 if (obj5) {
14217 ecode6 = SWIG_AsVal_long(obj5, &val6);
14218 if (!SWIG_IsOK(ecode6)) {
14219 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14220 }
14221 arg6 = static_cast< long >(val6);
14222 }
14223 if (obj6) {
14224 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14225 if (!SWIG_IsOK(res7)) {
14226 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14227 }
14228 if (!argp7) {
14229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14230 }
14231 arg7 = reinterpret_cast< wxValidator * >(argp7);
14232 }
14233 if (obj7) {
14234 {
14235 arg8 = wxString_in_helper(obj7);
14236 if (arg8 == NULL) SWIG_fail;
14237 temp8 = true;
14238 }
14239 }
14240 {
14241 PyThreadState* __tstate = wxPyBeginAllowThreads();
14242 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14243 wxPyEndAllowThreads(__tstate);
14244 if (PyErr_Occurred()) SWIG_fail;
14245 }
14246 {
14247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14248 }
14249 {
14250 if (temp8)
14251 delete arg8;
14252 }
14253 return resultobj;
14254 fail:
14255 {
14256 if (temp8)
14257 delete arg8;
14258 }
14259 return NULL;
14260 }
14261
14262
14263 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14264 PyObject *resultobj = 0;
14265 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14266 int result;
14267 void *argp1 = 0 ;
14268 int res1 = 0 ;
14269 PyObject *swig_obj[1] ;
14270
14271 if (!args) SWIG_fail;
14272 swig_obj[0] = args;
14273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14274 if (!SWIG_IsOK(res1)) {
14275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14276 }
14277 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14278 {
14279 PyThreadState* __tstate = wxPyBeginAllowThreads();
14280 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14281 wxPyEndAllowThreads(__tstate);
14282 if (PyErr_Occurred()) SWIG_fail;
14283 }
14284 resultobj = SWIG_From_int(static_cast< int >(result));
14285 return resultobj;
14286 fail:
14287 return NULL;
14288 }
14289
14290
14291 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14292 PyObject *resultobj = 0;
14293 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14294 int result;
14295 void *argp1 = 0 ;
14296 int res1 = 0 ;
14297 PyObject *swig_obj[1] ;
14298
14299 if (!args) SWIG_fail;
14300 swig_obj[0] = args;
14301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14302 if (!SWIG_IsOK(res1)) {
14303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14304 }
14305 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14306 {
14307 PyThreadState* __tstate = wxPyBeginAllowThreads();
14308 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14309 wxPyEndAllowThreads(__tstate);
14310 if (PyErr_Occurred()) SWIG_fail;
14311 }
14312 resultobj = SWIG_From_int(static_cast< int >(result));
14313 return resultobj;
14314 fail:
14315 return NULL;
14316 }
14317
14318
14319 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14320 PyObject *resultobj = 0;
14321 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14322 int result;
14323 void *argp1 = 0 ;
14324 int res1 = 0 ;
14325 PyObject *swig_obj[1] ;
14326
14327 if (!args) SWIG_fail;
14328 swig_obj[0] = args;
14329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14330 if (!SWIG_IsOK(res1)) {
14331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14332 }
14333 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14334 {
14335 PyThreadState* __tstate = wxPyBeginAllowThreads();
14336 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14337 wxPyEndAllowThreads(__tstate);
14338 if (PyErr_Occurred()) SWIG_fail;
14339 }
14340 resultobj = SWIG_From_int(static_cast< int >(result));
14341 return resultobj;
14342 fail:
14343 return NULL;
14344 }
14345
14346
14347 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14348 PyObject *resultobj = 0;
14349 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14350 int result;
14351 void *argp1 = 0 ;
14352 int res1 = 0 ;
14353 PyObject *swig_obj[1] ;
14354
14355 if (!args) SWIG_fail;
14356 swig_obj[0] = args;
14357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14358 if (!SWIG_IsOK(res1)) {
14359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14360 }
14361 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14362 {
14363 PyThreadState* __tstate = wxPyBeginAllowThreads();
14364 result = (int)((wxScrollBar const *)arg1)->GetRange();
14365 wxPyEndAllowThreads(__tstate);
14366 if (PyErr_Occurred()) SWIG_fail;
14367 }
14368 resultobj = SWIG_From_int(static_cast< int >(result));
14369 return resultobj;
14370 fail:
14371 return NULL;
14372 }
14373
14374
14375 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14376 PyObject *resultobj = 0;
14377 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14378 bool result;
14379 void *argp1 = 0 ;
14380 int res1 = 0 ;
14381 PyObject *swig_obj[1] ;
14382
14383 if (!args) SWIG_fail;
14384 swig_obj[0] = args;
14385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14386 if (!SWIG_IsOK(res1)) {
14387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14388 }
14389 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14390 {
14391 PyThreadState* __tstate = wxPyBeginAllowThreads();
14392 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14393 wxPyEndAllowThreads(__tstate);
14394 if (PyErr_Occurred()) SWIG_fail;
14395 }
14396 {
14397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14398 }
14399 return resultobj;
14400 fail:
14401 return NULL;
14402 }
14403
14404
14405 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14406 PyObject *resultobj = 0;
14407 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14408 int arg2 ;
14409 void *argp1 = 0 ;
14410 int res1 = 0 ;
14411 int val2 ;
14412 int ecode2 = 0 ;
14413 PyObject * obj0 = 0 ;
14414 PyObject * obj1 = 0 ;
14415 char * kwnames[] = {
14416 (char *) "self",(char *) "viewStart", NULL
14417 };
14418
14419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14421 if (!SWIG_IsOK(res1)) {
14422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14423 }
14424 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14425 ecode2 = SWIG_AsVal_int(obj1, &val2);
14426 if (!SWIG_IsOK(ecode2)) {
14427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14428 }
14429 arg2 = static_cast< int >(val2);
14430 {
14431 PyThreadState* __tstate = wxPyBeginAllowThreads();
14432 (arg1)->SetThumbPosition(arg2);
14433 wxPyEndAllowThreads(__tstate);
14434 if (PyErr_Occurred()) SWIG_fail;
14435 }
14436 resultobj = SWIG_Py_Void();
14437 return resultobj;
14438 fail:
14439 return NULL;
14440 }
14441
14442
14443 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14444 PyObject *resultobj = 0;
14445 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14446 SwigValueWrapper<wxVisualAttributes > result;
14447 int val1 ;
14448 int ecode1 = 0 ;
14449 PyObject * obj0 = 0 ;
14450 char * kwnames[] = {
14451 (char *) "variant", NULL
14452 };
14453
14454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14455 if (obj0) {
14456 ecode1 = SWIG_AsVal_int(obj0, &val1);
14457 if (!SWIG_IsOK(ecode1)) {
14458 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14459 }
14460 arg1 = static_cast< wxWindowVariant >(val1);
14461 }
14462 {
14463 if (!wxPyCheckForApp()) SWIG_fail;
14464 PyThreadState* __tstate = wxPyBeginAllowThreads();
14465 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14466 wxPyEndAllowThreads(__tstate);
14467 if (PyErr_Occurred()) SWIG_fail;
14468 }
14469 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14470 return resultobj;
14471 fail:
14472 return NULL;
14473 }
14474
14475
14476 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14477 PyObject *obj;
14478 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14479 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14480 return SWIG_Py_Void();
14481 }
14482
14483 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14484 return SWIG_Python_InitShadowInstance(args);
14485 }
14486
14487 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14488 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14489 return 1;
14490 }
14491
14492
14493 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14494 PyObject *pyobj = 0;
14495
14496 {
14497 #if wxUSE_UNICODE
14498 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14499 #else
14500 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14501 #endif
14502 }
14503 return pyobj;
14504 }
14505
14506
14507 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14508 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14509 return 1;
14510 }
14511
14512
14513 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14514 PyObject *pyobj = 0;
14515
14516 {
14517 #if wxUSE_UNICODE
14518 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14519 #else
14520 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14521 #endif
14522 }
14523 return pyobj;
14524 }
14525
14526
14527 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14528 PyObject *resultobj = 0;
14529 wxWindow *arg1 = (wxWindow *) 0 ;
14530 int arg2 = (int) -1 ;
14531 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14532 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14533 wxSize const &arg4_defvalue = wxDefaultSize ;
14534 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14535 long arg5 = (long) wxSP_HORIZONTAL ;
14536 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14537 wxString *arg6 = (wxString *) &arg6_defvalue ;
14538 wxSpinButton *result = 0 ;
14539 void *argp1 = 0 ;
14540 int res1 = 0 ;
14541 int val2 ;
14542 int ecode2 = 0 ;
14543 wxPoint temp3 ;
14544 wxSize temp4 ;
14545 long val5 ;
14546 int ecode5 = 0 ;
14547 bool temp6 = false ;
14548 PyObject * obj0 = 0 ;
14549 PyObject * obj1 = 0 ;
14550 PyObject * obj2 = 0 ;
14551 PyObject * obj3 = 0 ;
14552 PyObject * obj4 = 0 ;
14553 PyObject * obj5 = 0 ;
14554 char * kwnames[] = {
14555 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14556 };
14557
14558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14560 if (!SWIG_IsOK(res1)) {
14561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14562 }
14563 arg1 = reinterpret_cast< wxWindow * >(argp1);
14564 if (obj1) {
14565 ecode2 = SWIG_AsVal_int(obj1, &val2);
14566 if (!SWIG_IsOK(ecode2)) {
14567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14568 }
14569 arg2 = static_cast< int >(val2);
14570 }
14571 if (obj2) {
14572 {
14573 arg3 = &temp3;
14574 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14575 }
14576 }
14577 if (obj3) {
14578 {
14579 arg4 = &temp4;
14580 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14581 }
14582 }
14583 if (obj4) {
14584 ecode5 = SWIG_AsVal_long(obj4, &val5);
14585 if (!SWIG_IsOK(ecode5)) {
14586 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14587 }
14588 arg5 = static_cast< long >(val5);
14589 }
14590 if (obj5) {
14591 {
14592 arg6 = wxString_in_helper(obj5);
14593 if (arg6 == NULL) SWIG_fail;
14594 temp6 = true;
14595 }
14596 }
14597 {
14598 if (!wxPyCheckForApp()) SWIG_fail;
14599 PyThreadState* __tstate = wxPyBeginAllowThreads();
14600 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14601 wxPyEndAllowThreads(__tstate);
14602 if (PyErr_Occurred()) SWIG_fail;
14603 }
14604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14605 {
14606 if (temp6)
14607 delete arg6;
14608 }
14609 return resultobj;
14610 fail:
14611 {
14612 if (temp6)
14613 delete arg6;
14614 }
14615 return NULL;
14616 }
14617
14618
14619 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14620 PyObject *resultobj = 0;
14621 wxSpinButton *result = 0 ;
14622
14623 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14624 {
14625 if (!wxPyCheckForApp()) SWIG_fail;
14626 PyThreadState* __tstate = wxPyBeginAllowThreads();
14627 result = (wxSpinButton *)new wxSpinButton();
14628 wxPyEndAllowThreads(__tstate);
14629 if (PyErr_Occurred()) SWIG_fail;
14630 }
14631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14632 return resultobj;
14633 fail:
14634 return NULL;
14635 }
14636
14637
14638 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14639 PyObject *resultobj = 0;
14640 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14641 wxWindow *arg2 = (wxWindow *) 0 ;
14642 int arg3 = (int) -1 ;
14643 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14644 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14645 wxSize const &arg5_defvalue = wxDefaultSize ;
14646 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14647 long arg6 = (long) wxSP_HORIZONTAL ;
14648 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14649 wxString *arg7 = (wxString *) &arg7_defvalue ;
14650 bool result;
14651 void *argp1 = 0 ;
14652 int res1 = 0 ;
14653 void *argp2 = 0 ;
14654 int res2 = 0 ;
14655 int val3 ;
14656 int ecode3 = 0 ;
14657 wxPoint temp4 ;
14658 wxSize temp5 ;
14659 long val6 ;
14660 int ecode6 = 0 ;
14661 bool temp7 = false ;
14662 PyObject * obj0 = 0 ;
14663 PyObject * obj1 = 0 ;
14664 PyObject * obj2 = 0 ;
14665 PyObject * obj3 = 0 ;
14666 PyObject * obj4 = 0 ;
14667 PyObject * obj5 = 0 ;
14668 PyObject * obj6 = 0 ;
14669 char * kwnames[] = {
14670 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14671 };
14672
14673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14675 if (!SWIG_IsOK(res1)) {
14676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14677 }
14678 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14679 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14680 if (!SWIG_IsOK(res2)) {
14681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14682 }
14683 arg2 = reinterpret_cast< wxWindow * >(argp2);
14684 if (obj2) {
14685 ecode3 = SWIG_AsVal_int(obj2, &val3);
14686 if (!SWIG_IsOK(ecode3)) {
14687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14688 }
14689 arg3 = static_cast< int >(val3);
14690 }
14691 if (obj3) {
14692 {
14693 arg4 = &temp4;
14694 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14695 }
14696 }
14697 if (obj4) {
14698 {
14699 arg5 = &temp5;
14700 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14701 }
14702 }
14703 if (obj5) {
14704 ecode6 = SWIG_AsVal_long(obj5, &val6);
14705 if (!SWIG_IsOK(ecode6)) {
14706 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14707 }
14708 arg6 = static_cast< long >(val6);
14709 }
14710 if (obj6) {
14711 {
14712 arg7 = wxString_in_helper(obj6);
14713 if (arg7 == NULL) SWIG_fail;
14714 temp7 = true;
14715 }
14716 }
14717 {
14718 PyThreadState* __tstate = wxPyBeginAllowThreads();
14719 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14720 wxPyEndAllowThreads(__tstate);
14721 if (PyErr_Occurred()) SWIG_fail;
14722 }
14723 {
14724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14725 }
14726 {
14727 if (temp7)
14728 delete arg7;
14729 }
14730 return resultobj;
14731 fail:
14732 {
14733 if (temp7)
14734 delete arg7;
14735 }
14736 return NULL;
14737 }
14738
14739
14740 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14741 PyObject *resultobj = 0;
14742 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14743 int result;
14744 void *argp1 = 0 ;
14745 int res1 = 0 ;
14746 PyObject *swig_obj[1] ;
14747
14748 if (!args) SWIG_fail;
14749 swig_obj[0] = args;
14750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14751 if (!SWIG_IsOK(res1)) {
14752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14753 }
14754 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14755 {
14756 PyThreadState* __tstate = wxPyBeginAllowThreads();
14757 result = (int)((wxSpinButton const *)arg1)->GetValue();
14758 wxPyEndAllowThreads(__tstate);
14759 if (PyErr_Occurred()) SWIG_fail;
14760 }
14761 resultobj = SWIG_From_int(static_cast< int >(result));
14762 return resultobj;
14763 fail:
14764 return NULL;
14765 }
14766
14767
14768 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14769 PyObject *resultobj = 0;
14770 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14771 int result;
14772 void *argp1 = 0 ;
14773 int res1 = 0 ;
14774 PyObject *swig_obj[1] ;
14775
14776 if (!args) SWIG_fail;
14777 swig_obj[0] = args;
14778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14779 if (!SWIG_IsOK(res1)) {
14780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14781 }
14782 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14783 {
14784 PyThreadState* __tstate = wxPyBeginAllowThreads();
14785 result = (int)((wxSpinButton const *)arg1)->GetMin();
14786 wxPyEndAllowThreads(__tstate);
14787 if (PyErr_Occurred()) SWIG_fail;
14788 }
14789 resultobj = SWIG_From_int(static_cast< int >(result));
14790 return resultobj;
14791 fail:
14792 return NULL;
14793 }
14794
14795
14796 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14797 PyObject *resultobj = 0;
14798 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14799 int result;
14800 void *argp1 = 0 ;
14801 int res1 = 0 ;
14802 PyObject *swig_obj[1] ;
14803
14804 if (!args) SWIG_fail;
14805 swig_obj[0] = args;
14806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14807 if (!SWIG_IsOK(res1)) {
14808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14809 }
14810 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14811 {
14812 PyThreadState* __tstate = wxPyBeginAllowThreads();
14813 result = (int)((wxSpinButton const *)arg1)->GetMax();
14814 wxPyEndAllowThreads(__tstate);
14815 if (PyErr_Occurred()) SWIG_fail;
14816 }
14817 resultobj = SWIG_From_int(static_cast< int >(result));
14818 return resultobj;
14819 fail:
14820 return NULL;
14821 }
14822
14823
14824 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14825 PyObject *resultobj = 0;
14826 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14827 int arg2 ;
14828 void *argp1 = 0 ;
14829 int res1 = 0 ;
14830 int val2 ;
14831 int ecode2 = 0 ;
14832 PyObject * obj0 = 0 ;
14833 PyObject * obj1 = 0 ;
14834 char * kwnames[] = {
14835 (char *) "self",(char *) "val", NULL
14836 };
14837
14838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14840 if (!SWIG_IsOK(res1)) {
14841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14842 }
14843 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14844 ecode2 = SWIG_AsVal_int(obj1, &val2);
14845 if (!SWIG_IsOK(ecode2)) {
14846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14847 }
14848 arg2 = static_cast< int >(val2);
14849 {
14850 PyThreadState* __tstate = wxPyBeginAllowThreads();
14851 (arg1)->SetValue(arg2);
14852 wxPyEndAllowThreads(__tstate);
14853 if (PyErr_Occurred()) SWIG_fail;
14854 }
14855 resultobj = SWIG_Py_Void();
14856 return resultobj;
14857 fail:
14858 return NULL;
14859 }
14860
14861
14862 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14863 PyObject *resultobj = 0;
14864 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14865 int arg2 ;
14866 void *argp1 = 0 ;
14867 int res1 = 0 ;
14868 int val2 ;
14869 int ecode2 = 0 ;
14870 PyObject * obj0 = 0 ;
14871 PyObject * obj1 = 0 ;
14872 char * kwnames[] = {
14873 (char *) "self",(char *) "minVal", NULL
14874 };
14875
14876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14878 if (!SWIG_IsOK(res1)) {
14879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14880 }
14881 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14882 ecode2 = SWIG_AsVal_int(obj1, &val2);
14883 if (!SWIG_IsOK(ecode2)) {
14884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14885 }
14886 arg2 = static_cast< int >(val2);
14887 {
14888 PyThreadState* __tstate = wxPyBeginAllowThreads();
14889 (arg1)->SetMin(arg2);
14890 wxPyEndAllowThreads(__tstate);
14891 if (PyErr_Occurred()) SWIG_fail;
14892 }
14893 resultobj = SWIG_Py_Void();
14894 return resultobj;
14895 fail:
14896 return NULL;
14897 }
14898
14899
14900 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14901 PyObject *resultobj = 0;
14902 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14903 int arg2 ;
14904 void *argp1 = 0 ;
14905 int res1 = 0 ;
14906 int val2 ;
14907 int ecode2 = 0 ;
14908 PyObject * obj0 = 0 ;
14909 PyObject * obj1 = 0 ;
14910 char * kwnames[] = {
14911 (char *) "self",(char *) "maxVal", NULL
14912 };
14913
14914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14916 if (!SWIG_IsOK(res1)) {
14917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14918 }
14919 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14920 ecode2 = SWIG_AsVal_int(obj1, &val2);
14921 if (!SWIG_IsOK(ecode2)) {
14922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14923 }
14924 arg2 = static_cast< int >(val2);
14925 {
14926 PyThreadState* __tstate = wxPyBeginAllowThreads();
14927 (arg1)->SetMax(arg2);
14928 wxPyEndAllowThreads(__tstate);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 }
14931 resultobj = SWIG_Py_Void();
14932 return resultobj;
14933 fail:
14934 return NULL;
14935 }
14936
14937
14938 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14939 PyObject *resultobj = 0;
14940 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14941 int arg2 ;
14942 int arg3 ;
14943 void *argp1 = 0 ;
14944 int res1 = 0 ;
14945 int val2 ;
14946 int ecode2 = 0 ;
14947 int val3 ;
14948 int ecode3 = 0 ;
14949 PyObject * obj0 = 0 ;
14950 PyObject * obj1 = 0 ;
14951 PyObject * obj2 = 0 ;
14952 char * kwnames[] = {
14953 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14954 };
14955
14956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14958 if (!SWIG_IsOK(res1)) {
14959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14960 }
14961 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14962 ecode2 = SWIG_AsVal_int(obj1, &val2);
14963 if (!SWIG_IsOK(ecode2)) {
14964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14965 }
14966 arg2 = static_cast< int >(val2);
14967 ecode3 = SWIG_AsVal_int(obj2, &val3);
14968 if (!SWIG_IsOK(ecode3)) {
14969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14970 }
14971 arg3 = static_cast< int >(val3);
14972 {
14973 PyThreadState* __tstate = wxPyBeginAllowThreads();
14974 (arg1)->SetRange(arg2,arg3);
14975 wxPyEndAllowThreads(__tstate);
14976 if (PyErr_Occurred()) SWIG_fail;
14977 }
14978 resultobj = SWIG_Py_Void();
14979 return resultobj;
14980 fail:
14981 return NULL;
14982 }
14983
14984
14985 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14986 PyObject *resultobj = 0;
14987 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14988 bool result;
14989 void *argp1 = 0 ;
14990 int res1 = 0 ;
14991 PyObject *swig_obj[1] ;
14992
14993 if (!args) SWIG_fail;
14994 swig_obj[0] = args;
14995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14996 if (!SWIG_IsOK(res1)) {
14997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14998 }
14999 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15000 {
15001 PyThreadState* __tstate = wxPyBeginAllowThreads();
15002 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15003 wxPyEndAllowThreads(__tstate);
15004 if (PyErr_Occurred()) SWIG_fail;
15005 }
15006 {
15007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15008 }
15009 return resultobj;
15010 fail:
15011 return NULL;
15012 }
15013
15014
15015 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15016 PyObject *resultobj = 0;
15017 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15018 SwigValueWrapper<wxVisualAttributes > result;
15019 int val1 ;
15020 int ecode1 = 0 ;
15021 PyObject * obj0 = 0 ;
15022 char * kwnames[] = {
15023 (char *) "variant", NULL
15024 };
15025
15026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15027 if (obj0) {
15028 ecode1 = SWIG_AsVal_int(obj0, &val1);
15029 if (!SWIG_IsOK(ecode1)) {
15030 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15031 }
15032 arg1 = static_cast< wxWindowVariant >(val1);
15033 }
15034 {
15035 if (!wxPyCheckForApp()) SWIG_fail;
15036 PyThreadState* __tstate = wxPyBeginAllowThreads();
15037 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15038 wxPyEndAllowThreads(__tstate);
15039 if (PyErr_Occurred()) SWIG_fail;
15040 }
15041 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15042 return resultobj;
15043 fail:
15044 return NULL;
15045 }
15046
15047
15048 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15049 PyObject *obj;
15050 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15051 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15052 return SWIG_Py_Void();
15053 }
15054
15055 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15056 return SWIG_Python_InitShadowInstance(args);
15057 }
15058
15059 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15060 PyObject *resultobj = 0;
15061 wxWindow *arg1 = (wxWindow *) 0 ;
15062 int arg2 = (int) -1 ;
15063 wxString const &arg3_defvalue = wxPyEmptyString ;
15064 wxString *arg3 = (wxString *) &arg3_defvalue ;
15065 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15066 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15067 wxSize const &arg5_defvalue = wxDefaultSize ;
15068 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15069 long arg6 = (long) wxSP_ARROW_KEYS ;
15070 int arg7 = (int) 0 ;
15071 int arg8 = (int) 100 ;
15072 int arg9 = (int) 0 ;
15073 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15074 wxString *arg10 = (wxString *) &arg10_defvalue ;
15075 wxSpinCtrl *result = 0 ;
15076 void *argp1 = 0 ;
15077 int res1 = 0 ;
15078 int val2 ;
15079 int ecode2 = 0 ;
15080 bool temp3 = false ;
15081 wxPoint temp4 ;
15082 wxSize temp5 ;
15083 long val6 ;
15084 int ecode6 = 0 ;
15085 int val7 ;
15086 int ecode7 = 0 ;
15087 int val8 ;
15088 int ecode8 = 0 ;
15089 int val9 ;
15090 int ecode9 = 0 ;
15091 bool temp10 = false ;
15092 PyObject * obj0 = 0 ;
15093 PyObject * obj1 = 0 ;
15094 PyObject * obj2 = 0 ;
15095 PyObject * obj3 = 0 ;
15096 PyObject * obj4 = 0 ;
15097 PyObject * obj5 = 0 ;
15098 PyObject * obj6 = 0 ;
15099 PyObject * obj7 = 0 ;
15100 PyObject * obj8 = 0 ;
15101 PyObject * obj9 = 0 ;
15102 char * kwnames[] = {
15103 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15104 };
15105
15106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15108 if (!SWIG_IsOK(res1)) {
15109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15110 }
15111 arg1 = reinterpret_cast< wxWindow * >(argp1);
15112 if (obj1) {
15113 ecode2 = SWIG_AsVal_int(obj1, &val2);
15114 if (!SWIG_IsOK(ecode2)) {
15115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15116 }
15117 arg2 = static_cast< int >(val2);
15118 }
15119 if (obj2) {
15120 {
15121 arg3 = wxString_in_helper(obj2);
15122 if (arg3 == NULL) SWIG_fail;
15123 temp3 = true;
15124 }
15125 }
15126 if (obj3) {
15127 {
15128 arg4 = &temp4;
15129 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15130 }
15131 }
15132 if (obj4) {
15133 {
15134 arg5 = &temp5;
15135 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15136 }
15137 }
15138 if (obj5) {
15139 ecode6 = SWIG_AsVal_long(obj5, &val6);
15140 if (!SWIG_IsOK(ecode6)) {
15141 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15142 }
15143 arg6 = static_cast< long >(val6);
15144 }
15145 if (obj6) {
15146 ecode7 = SWIG_AsVal_int(obj6, &val7);
15147 if (!SWIG_IsOK(ecode7)) {
15148 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15149 }
15150 arg7 = static_cast< int >(val7);
15151 }
15152 if (obj7) {
15153 ecode8 = SWIG_AsVal_int(obj7, &val8);
15154 if (!SWIG_IsOK(ecode8)) {
15155 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15156 }
15157 arg8 = static_cast< int >(val8);
15158 }
15159 if (obj8) {
15160 ecode9 = SWIG_AsVal_int(obj8, &val9);
15161 if (!SWIG_IsOK(ecode9)) {
15162 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15163 }
15164 arg9 = static_cast< int >(val9);
15165 }
15166 if (obj9) {
15167 {
15168 arg10 = wxString_in_helper(obj9);
15169 if (arg10 == NULL) SWIG_fail;
15170 temp10 = true;
15171 }
15172 }
15173 {
15174 if (!wxPyCheckForApp()) SWIG_fail;
15175 PyThreadState* __tstate = wxPyBeginAllowThreads();
15176 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15177 wxPyEndAllowThreads(__tstate);
15178 if (PyErr_Occurred()) SWIG_fail;
15179 }
15180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15181 {
15182 if (temp3)
15183 delete arg3;
15184 }
15185 {
15186 if (temp10)
15187 delete arg10;
15188 }
15189 return resultobj;
15190 fail:
15191 {
15192 if (temp3)
15193 delete arg3;
15194 }
15195 {
15196 if (temp10)
15197 delete arg10;
15198 }
15199 return NULL;
15200 }
15201
15202
15203 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15204 PyObject *resultobj = 0;
15205 wxSpinCtrl *result = 0 ;
15206
15207 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15208 {
15209 if (!wxPyCheckForApp()) SWIG_fail;
15210 PyThreadState* __tstate = wxPyBeginAllowThreads();
15211 result = (wxSpinCtrl *)new wxSpinCtrl();
15212 wxPyEndAllowThreads(__tstate);
15213 if (PyErr_Occurred()) SWIG_fail;
15214 }
15215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15216 return resultobj;
15217 fail:
15218 return NULL;
15219 }
15220
15221
15222 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15223 PyObject *resultobj = 0;
15224 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15225 wxWindow *arg2 = (wxWindow *) 0 ;
15226 int arg3 = (int) -1 ;
15227 wxString const &arg4_defvalue = wxPyEmptyString ;
15228 wxString *arg4 = (wxString *) &arg4_defvalue ;
15229 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15230 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15231 wxSize const &arg6_defvalue = wxDefaultSize ;
15232 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15233 long arg7 = (long) wxSP_ARROW_KEYS ;
15234 int arg8 = (int) 0 ;
15235 int arg9 = (int) 100 ;
15236 int arg10 = (int) 0 ;
15237 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15238 wxString *arg11 = (wxString *) &arg11_defvalue ;
15239 bool result;
15240 void *argp1 = 0 ;
15241 int res1 = 0 ;
15242 void *argp2 = 0 ;
15243 int res2 = 0 ;
15244 int val3 ;
15245 int ecode3 = 0 ;
15246 bool temp4 = false ;
15247 wxPoint temp5 ;
15248 wxSize temp6 ;
15249 long val7 ;
15250 int ecode7 = 0 ;
15251 int val8 ;
15252 int ecode8 = 0 ;
15253 int val9 ;
15254 int ecode9 = 0 ;
15255 int val10 ;
15256 int ecode10 = 0 ;
15257 bool temp11 = false ;
15258 PyObject * obj0 = 0 ;
15259 PyObject * obj1 = 0 ;
15260 PyObject * obj2 = 0 ;
15261 PyObject * obj3 = 0 ;
15262 PyObject * obj4 = 0 ;
15263 PyObject * obj5 = 0 ;
15264 PyObject * obj6 = 0 ;
15265 PyObject * obj7 = 0 ;
15266 PyObject * obj8 = 0 ;
15267 PyObject * obj9 = 0 ;
15268 PyObject * obj10 = 0 ;
15269 char * kwnames[] = {
15270 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15271 };
15272
15273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15275 if (!SWIG_IsOK(res1)) {
15276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15277 }
15278 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15279 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15280 if (!SWIG_IsOK(res2)) {
15281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15282 }
15283 arg2 = reinterpret_cast< wxWindow * >(argp2);
15284 if (obj2) {
15285 ecode3 = SWIG_AsVal_int(obj2, &val3);
15286 if (!SWIG_IsOK(ecode3)) {
15287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15288 }
15289 arg3 = static_cast< int >(val3);
15290 }
15291 if (obj3) {
15292 {
15293 arg4 = wxString_in_helper(obj3);
15294 if (arg4 == NULL) SWIG_fail;
15295 temp4 = true;
15296 }
15297 }
15298 if (obj4) {
15299 {
15300 arg5 = &temp5;
15301 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15302 }
15303 }
15304 if (obj5) {
15305 {
15306 arg6 = &temp6;
15307 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15308 }
15309 }
15310 if (obj6) {
15311 ecode7 = SWIG_AsVal_long(obj6, &val7);
15312 if (!SWIG_IsOK(ecode7)) {
15313 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15314 }
15315 arg7 = static_cast< long >(val7);
15316 }
15317 if (obj7) {
15318 ecode8 = SWIG_AsVal_int(obj7, &val8);
15319 if (!SWIG_IsOK(ecode8)) {
15320 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15321 }
15322 arg8 = static_cast< int >(val8);
15323 }
15324 if (obj8) {
15325 ecode9 = SWIG_AsVal_int(obj8, &val9);
15326 if (!SWIG_IsOK(ecode9)) {
15327 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15328 }
15329 arg9 = static_cast< int >(val9);
15330 }
15331 if (obj9) {
15332 ecode10 = SWIG_AsVal_int(obj9, &val10);
15333 if (!SWIG_IsOK(ecode10)) {
15334 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15335 }
15336 arg10 = static_cast< int >(val10);
15337 }
15338 if (obj10) {
15339 {
15340 arg11 = wxString_in_helper(obj10);
15341 if (arg11 == NULL) SWIG_fail;
15342 temp11 = true;
15343 }
15344 }
15345 {
15346 PyThreadState* __tstate = wxPyBeginAllowThreads();
15347 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15348 wxPyEndAllowThreads(__tstate);
15349 if (PyErr_Occurred()) SWIG_fail;
15350 }
15351 {
15352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15353 }
15354 {
15355 if (temp4)
15356 delete arg4;
15357 }
15358 {
15359 if (temp11)
15360 delete arg11;
15361 }
15362 return resultobj;
15363 fail:
15364 {
15365 if (temp4)
15366 delete arg4;
15367 }
15368 {
15369 if (temp11)
15370 delete arg11;
15371 }
15372 return NULL;
15373 }
15374
15375
15376 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15377 PyObject *resultobj = 0;
15378 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15379 int result;
15380 void *argp1 = 0 ;
15381 int res1 = 0 ;
15382 PyObject *swig_obj[1] ;
15383
15384 if (!args) SWIG_fail;
15385 swig_obj[0] = args;
15386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15387 if (!SWIG_IsOK(res1)) {
15388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15389 }
15390 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15391 {
15392 PyThreadState* __tstate = wxPyBeginAllowThreads();
15393 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15394 wxPyEndAllowThreads(__tstate);
15395 if (PyErr_Occurred()) SWIG_fail;
15396 }
15397 resultobj = SWIG_From_int(static_cast< int >(result));
15398 return resultobj;
15399 fail:
15400 return NULL;
15401 }
15402
15403
15404 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15405 PyObject *resultobj = 0;
15406 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15407 int arg2 ;
15408 void *argp1 = 0 ;
15409 int res1 = 0 ;
15410 int val2 ;
15411 int ecode2 = 0 ;
15412 PyObject * obj0 = 0 ;
15413 PyObject * obj1 = 0 ;
15414 char * kwnames[] = {
15415 (char *) "self",(char *) "value", NULL
15416 };
15417
15418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15420 if (!SWIG_IsOK(res1)) {
15421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15422 }
15423 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15424 ecode2 = SWIG_AsVal_int(obj1, &val2);
15425 if (!SWIG_IsOK(ecode2)) {
15426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15427 }
15428 arg2 = static_cast< int >(val2);
15429 {
15430 PyThreadState* __tstate = wxPyBeginAllowThreads();
15431 (arg1)->SetValue(arg2);
15432 wxPyEndAllowThreads(__tstate);
15433 if (PyErr_Occurred()) SWIG_fail;
15434 }
15435 resultobj = SWIG_Py_Void();
15436 return resultobj;
15437 fail:
15438 return NULL;
15439 }
15440
15441
15442 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15443 PyObject *resultobj = 0;
15444 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15445 wxString *arg2 = 0 ;
15446 void *argp1 = 0 ;
15447 int res1 = 0 ;
15448 bool temp2 = false ;
15449 PyObject * obj0 = 0 ;
15450 PyObject * obj1 = 0 ;
15451 char * kwnames[] = {
15452 (char *) "self",(char *) "text", NULL
15453 };
15454
15455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15457 if (!SWIG_IsOK(res1)) {
15458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15459 }
15460 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15461 {
15462 arg2 = wxString_in_helper(obj1);
15463 if (arg2 == NULL) SWIG_fail;
15464 temp2 = true;
15465 }
15466 {
15467 PyThreadState* __tstate = wxPyBeginAllowThreads();
15468 (arg1)->SetValue((wxString const &)*arg2);
15469 wxPyEndAllowThreads(__tstate);
15470 if (PyErr_Occurred()) SWIG_fail;
15471 }
15472 resultobj = SWIG_Py_Void();
15473 {
15474 if (temp2)
15475 delete arg2;
15476 }
15477 return resultobj;
15478 fail:
15479 {
15480 if (temp2)
15481 delete arg2;
15482 }
15483 return NULL;
15484 }
15485
15486
15487 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15488 PyObject *resultobj = 0;
15489 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15490 int arg2 ;
15491 int arg3 ;
15492 void *argp1 = 0 ;
15493 int res1 = 0 ;
15494 int val2 ;
15495 int ecode2 = 0 ;
15496 int val3 ;
15497 int ecode3 = 0 ;
15498 PyObject * obj0 = 0 ;
15499 PyObject * obj1 = 0 ;
15500 PyObject * obj2 = 0 ;
15501 char * kwnames[] = {
15502 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15503 };
15504
15505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15507 if (!SWIG_IsOK(res1)) {
15508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15509 }
15510 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15511 ecode2 = SWIG_AsVal_int(obj1, &val2);
15512 if (!SWIG_IsOK(ecode2)) {
15513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15514 }
15515 arg2 = static_cast< int >(val2);
15516 ecode3 = SWIG_AsVal_int(obj2, &val3);
15517 if (!SWIG_IsOK(ecode3)) {
15518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15519 }
15520 arg3 = static_cast< int >(val3);
15521 {
15522 PyThreadState* __tstate = wxPyBeginAllowThreads();
15523 (arg1)->SetRange(arg2,arg3);
15524 wxPyEndAllowThreads(__tstate);
15525 if (PyErr_Occurred()) SWIG_fail;
15526 }
15527 resultobj = SWIG_Py_Void();
15528 return resultobj;
15529 fail:
15530 return NULL;
15531 }
15532
15533
15534 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15535 PyObject *resultobj = 0;
15536 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15537 int result;
15538 void *argp1 = 0 ;
15539 int res1 = 0 ;
15540 PyObject *swig_obj[1] ;
15541
15542 if (!args) SWIG_fail;
15543 swig_obj[0] = args;
15544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15545 if (!SWIG_IsOK(res1)) {
15546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15547 }
15548 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15549 {
15550 PyThreadState* __tstate = wxPyBeginAllowThreads();
15551 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15552 wxPyEndAllowThreads(__tstate);
15553 if (PyErr_Occurred()) SWIG_fail;
15554 }
15555 resultobj = SWIG_From_int(static_cast< int >(result));
15556 return resultobj;
15557 fail:
15558 return NULL;
15559 }
15560
15561
15562 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15563 PyObject *resultobj = 0;
15564 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15565 int result;
15566 void *argp1 = 0 ;
15567 int res1 = 0 ;
15568 PyObject *swig_obj[1] ;
15569
15570 if (!args) SWIG_fail;
15571 swig_obj[0] = args;
15572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15573 if (!SWIG_IsOK(res1)) {
15574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15575 }
15576 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15577 {
15578 PyThreadState* __tstate = wxPyBeginAllowThreads();
15579 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15580 wxPyEndAllowThreads(__tstate);
15581 if (PyErr_Occurred()) SWIG_fail;
15582 }
15583 resultobj = SWIG_From_int(static_cast< int >(result));
15584 return resultobj;
15585 fail:
15586 return NULL;
15587 }
15588
15589
15590 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15591 PyObject *resultobj = 0;
15592 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15593 long arg2 ;
15594 long arg3 ;
15595 void *argp1 = 0 ;
15596 int res1 = 0 ;
15597 long val2 ;
15598 int ecode2 = 0 ;
15599 long val3 ;
15600 int ecode3 = 0 ;
15601 PyObject * obj0 = 0 ;
15602 PyObject * obj1 = 0 ;
15603 PyObject * obj2 = 0 ;
15604 char * kwnames[] = {
15605 (char *) "self",(char *) "from",(char *) "to", NULL
15606 };
15607
15608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15610 if (!SWIG_IsOK(res1)) {
15611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15612 }
15613 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15614 ecode2 = SWIG_AsVal_long(obj1, &val2);
15615 if (!SWIG_IsOK(ecode2)) {
15616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15617 }
15618 arg2 = static_cast< long >(val2);
15619 ecode3 = SWIG_AsVal_long(obj2, &val3);
15620 if (!SWIG_IsOK(ecode3)) {
15621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15622 }
15623 arg3 = static_cast< long >(val3);
15624 {
15625 PyThreadState* __tstate = wxPyBeginAllowThreads();
15626 (arg1)->SetSelection(arg2,arg3);
15627 wxPyEndAllowThreads(__tstate);
15628 if (PyErr_Occurred()) SWIG_fail;
15629 }
15630 resultobj = SWIG_Py_Void();
15631 return resultobj;
15632 fail:
15633 return NULL;
15634 }
15635
15636
15637 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15638 PyObject *resultobj = 0;
15639 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15640 SwigValueWrapper<wxVisualAttributes > result;
15641 int val1 ;
15642 int ecode1 = 0 ;
15643 PyObject * obj0 = 0 ;
15644 char * kwnames[] = {
15645 (char *) "variant", NULL
15646 };
15647
15648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15649 if (obj0) {
15650 ecode1 = SWIG_AsVal_int(obj0, &val1);
15651 if (!SWIG_IsOK(ecode1)) {
15652 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15653 }
15654 arg1 = static_cast< wxWindowVariant >(val1);
15655 }
15656 {
15657 if (!wxPyCheckForApp()) SWIG_fail;
15658 PyThreadState* __tstate = wxPyBeginAllowThreads();
15659 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15660 wxPyEndAllowThreads(__tstate);
15661 if (PyErr_Occurred()) SWIG_fail;
15662 }
15663 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15664 return resultobj;
15665 fail:
15666 return NULL;
15667 }
15668
15669
15670 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15671 PyObject *obj;
15672 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15673 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15674 return SWIG_Py_Void();
15675 }
15676
15677 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15678 return SWIG_Python_InitShadowInstance(args);
15679 }
15680
15681 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15682 PyObject *resultobj = 0;
15683 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15684 int arg2 = (int) 0 ;
15685 wxSpinEvent *result = 0 ;
15686 int val1 ;
15687 int ecode1 = 0 ;
15688 int val2 ;
15689 int ecode2 = 0 ;
15690 PyObject * obj0 = 0 ;
15691 PyObject * obj1 = 0 ;
15692 char * kwnames[] = {
15693 (char *) "commandType",(char *) "winid", NULL
15694 };
15695
15696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15697 if (obj0) {
15698 ecode1 = SWIG_AsVal_int(obj0, &val1);
15699 if (!SWIG_IsOK(ecode1)) {
15700 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15701 }
15702 arg1 = static_cast< wxEventType >(val1);
15703 }
15704 if (obj1) {
15705 ecode2 = SWIG_AsVal_int(obj1, &val2);
15706 if (!SWIG_IsOK(ecode2)) {
15707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15708 }
15709 arg2 = static_cast< int >(val2);
15710 }
15711 {
15712 PyThreadState* __tstate = wxPyBeginAllowThreads();
15713 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15714 wxPyEndAllowThreads(__tstate);
15715 if (PyErr_Occurred()) SWIG_fail;
15716 }
15717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15718 return resultobj;
15719 fail:
15720 return NULL;
15721 }
15722
15723
15724 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15725 PyObject *resultobj = 0;
15726 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15727 int result;
15728 void *argp1 = 0 ;
15729 int res1 = 0 ;
15730 PyObject *swig_obj[1] ;
15731
15732 if (!args) SWIG_fail;
15733 swig_obj[0] = args;
15734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15735 if (!SWIG_IsOK(res1)) {
15736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15737 }
15738 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15739 {
15740 PyThreadState* __tstate = wxPyBeginAllowThreads();
15741 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15742 wxPyEndAllowThreads(__tstate);
15743 if (PyErr_Occurred()) SWIG_fail;
15744 }
15745 resultobj = SWIG_From_int(static_cast< int >(result));
15746 return resultobj;
15747 fail:
15748 return NULL;
15749 }
15750
15751
15752 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15753 PyObject *resultobj = 0;
15754 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15755 int arg2 ;
15756 void *argp1 = 0 ;
15757 int res1 = 0 ;
15758 int val2 ;
15759 int ecode2 = 0 ;
15760 PyObject * obj0 = 0 ;
15761 PyObject * obj1 = 0 ;
15762 char * kwnames[] = {
15763 (char *) "self",(char *) "pos", NULL
15764 };
15765
15766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15768 if (!SWIG_IsOK(res1)) {
15769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15770 }
15771 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15772 ecode2 = SWIG_AsVal_int(obj1, &val2);
15773 if (!SWIG_IsOK(ecode2)) {
15774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15775 }
15776 arg2 = static_cast< int >(val2);
15777 {
15778 PyThreadState* __tstate = wxPyBeginAllowThreads();
15779 (arg1)->SetPosition(arg2);
15780 wxPyEndAllowThreads(__tstate);
15781 if (PyErr_Occurred()) SWIG_fail;
15782 }
15783 resultobj = SWIG_Py_Void();
15784 return resultobj;
15785 fail:
15786 return NULL;
15787 }
15788
15789
15790 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15791 PyObject *obj;
15792 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15793 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15794 return SWIG_Py_Void();
15795 }
15796
15797 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15798 return SWIG_Python_InitShadowInstance(args);
15799 }
15800
15801 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15802 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15803 return 1;
15804 }
15805
15806
15807 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15808 PyObject *pyobj = 0;
15809
15810 {
15811 #if wxUSE_UNICODE
15812 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15813 #else
15814 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15815 #endif
15816 }
15817 return pyobj;
15818 }
15819
15820
15821 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15822 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15823 return 1;
15824 }
15825
15826
15827 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15828 PyObject *pyobj = 0;
15829
15830 {
15831 #if wxUSE_UNICODE
15832 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15833 #else
15834 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15835 #endif
15836 }
15837 return pyobj;
15838 }
15839
15840
15841 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15842 PyObject *resultobj = 0;
15843 wxWindow *arg1 = (wxWindow *) 0 ;
15844 int arg2 = (int) -1 ;
15845 wxString const &arg3_defvalue = wxPyEmptyString ;
15846 wxString *arg3 = (wxString *) &arg3_defvalue ;
15847 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15848 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15849 wxSize const &arg5_defvalue = wxDefaultSize ;
15850 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15851 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15852 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15853 int arg7 = (int) 0 ;
15854 long arg8 = (long) wxRA_HORIZONTAL ;
15855 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15856 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15857 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15858 wxString *arg10 = (wxString *) &arg10_defvalue ;
15859 wxRadioBox *result = 0 ;
15860 void *argp1 = 0 ;
15861 int res1 = 0 ;
15862 int val2 ;
15863 int ecode2 = 0 ;
15864 bool temp3 = false ;
15865 wxPoint temp4 ;
15866 wxSize temp5 ;
15867 bool temp6 = false ;
15868 int val7 ;
15869 int ecode7 = 0 ;
15870 long val8 ;
15871 int ecode8 = 0 ;
15872 void *argp9 = 0 ;
15873 int res9 = 0 ;
15874 bool temp10 = false ;
15875 PyObject * obj0 = 0 ;
15876 PyObject * obj1 = 0 ;
15877 PyObject * obj2 = 0 ;
15878 PyObject * obj3 = 0 ;
15879 PyObject * obj4 = 0 ;
15880 PyObject * obj5 = 0 ;
15881 PyObject * obj6 = 0 ;
15882 PyObject * obj7 = 0 ;
15883 PyObject * obj8 = 0 ;
15884 PyObject * obj9 = 0 ;
15885 char * kwnames[] = {
15886 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15887 };
15888
15889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15891 if (!SWIG_IsOK(res1)) {
15892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15893 }
15894 arg1 = reinterpret_cast< wxWindow * >(argp1);
15895 if (obj1) {
15896 ecode2 = SWIG_AsVal_int(obj1, &val2);
15897 if (!SWIG_IsOK(ecode2)) {
15898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15899 }
15900 arg2 = static_cast< int >(val2);
15901 }
15902 if (obj2) {
15903 {
15904 arg3 = wxString_in_helper(obj2);
15905 if (arg3 == NULL) SWIG_fail;
15906 temp3 = true;
15907 }
15908 }
15909 if (obj3) {
15910 {
15911 arg4 = &temp4;
15912 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15913 }
15914 }
15915 if (obj4) {
15916 {
15917 arg5 = &temp5;
15918 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15919 }
15920 }
15921 if (obj5) {
15922 {
15923 if (! PySequence_Check(obj5)) {
15924 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15925 SWIG_fail;
15926 }
15927 arg6 = new wxArrayString;
15928 temp6 = true;
15929 int i, len=PySequence_Length(obj5);
15930 for (i=0; i<len; i++) {
15931 PyObject* item = PySequence_GetItem(obj5, i);
15932 wxString* s = wxString_in_helper(item);
15933 if (PyErr_Occurred()) SWIG_fail;
15934 arg6->Add(*s);
15935 delete s;
15936 Py_DECREF(item);
15937 }
15938 }
15939 }
15940 if (obj6) {
15941 ecode7 = SWIG_AsVal_int(obj6, &val7);
15942 if (!SWIG_IsOK(ecode7)) {
15943 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15944 }
15945 arg7 = static_cast< int >(val7);
15946 }
15947 if (obj7) {
15948 ecode8 = SWIG_AsVal_long(obj7, &val8);
15949 if (!SWIG_IsOK(ecode8)) {
15950 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15951 }
15952 arg8 = static_cast< long >(val8);
15953 }
15954 if (obj8) {
15955 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15956 if (!SWIG_IsOK(res9)) {
15957 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15958 }
15959 if (!argp9) {
15960 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15961 }
15962 arg9 = reinterpret_cast< wxValidator * >(argp9);
15963 }
15964 if (obj9) {
15965 {
15966 arg10 = wxString_in_helper(obj9);
15967 if (arg10 == NULL) SWIG_fail;
15968 temp10 = true;
15969 }
15970 }
15971 {
15972 if (!wxPyCheckForApp()) SWIG_fail;
15973 PyThreadState* __tstate = wxPyBeginAllowThreads();
15974 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);
15975 wxPyEndAllowThreads(__tstate);
15976 if (PyErr_Occurred()) SWIG_fail;
15977 }
15978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15979 {
15980 if (temp3)
15981 delete arg3;
15982 }
15983 {
15984 if (temp6) delete arg6;
15985 }
15986 {
15987 if (temp10)
15988 delete arg10;
15989 }
15990 return resultobj;
15991 fail:
15992 {
15993 if (temp3)
15994 delete arg3;
15995 }
15996 {
15997 if (temp6) delete arg6;
15998 }
15999 {
16000 if (temp10)
16001 delete arg10;
16002 }
16003 return NULL;
16004 }
16005
16006
16007 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16008 PyObject *resultobj = 0;
16009 wxRadioBox *result = 0 ;
16010
16011 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16012 {
16013 if (!wxPyCheckForApp()) SWIG_fail;
16014 PyThreadState* __tstate = wxPyBeginAllowThreads();
16015 result = (wxRadioBox *)new wxRadioBox();
16016 wxPyEndAllowThreads(__tstate);
16017 if (PyErr_Occurred()) SWIG_fail;
16018 }
16019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16020 return resultobj;
16021 fail:
16022 return NULL;
16023 }
16024
16025
16026 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16027 PyObject *resultobj = 0;
16028 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16029 wxWindow *arg2 = (wxWindow *) 0 ;
16030 int arg3 = (int) -1 ;
16031 wxString const &arg4_defvalue = wxPyEmptyString ;
16032 wxString *arg4 = (wxString *) &arg4_defvalue ;
16033 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16034 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16035 wxSize const &arg6_defvalue = wxDefaultSize ;
16036 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16037 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16038 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16039 int arg8 = (int) 0 ;
16040 long arg9 = (long) wxRA_HORIZONTAL ;
16041 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16042 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16043 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16044 wxString *arg11 = (wxString *) &arg11_defvalue ;
16045 bool result;
16046 void *argp1 = 0 ;
16047 int res1 = 0 ;
16048 void *argp2 = 0 ;
16049 int res2 = 0 ;
16050 int val3 ;
16051 int ecode3 = 0 ;
16052 bool temp4 = false ;
16053 wxPoint temp5 ;
16054 wxSize temp6 ;
16055 bool temp7 = false ;
16056 int val8 ;
16057 int ecode8 = 0 ;
16058 long val9 ;
16059 int ecode9 = 0 ;
16060 void *argp10 = 0 ;
16061 int res10 = 0 ;
16062 bool temp11 = false ;
16063 PyObject * obj0 = 0 ;
16064 PyObject * obj1 = 0 ;
16065 PyObject * obj2 = 0 ;
16066 PyObject * obj3 = 0 ;
16067 PyObject * obj4 = 0 ;
16068 PyObject * obj5 = 0 ;
16069 PyObject * obj6 = 0 ;
16070 PyObject * obj7 = 0 ;
16071 PyObject * obj8 = 0 ;
16072 PyObject * obj9 = 0 ;
16073 PyObject * obj10 = 0 ;
16074 char * kwnames[] = {
16075 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16076 };
16077
16078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16080 if (!SWIG_IsOK(res1)) {
16081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16082 }
16083 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16084 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16085 if (!SWIG_IsOK(res2)) {
16086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16087 }
16088 arg2 = reinterpret_cast< wxWindow * >(argp2);
16089 if (obj2) {
16090 ecode3 = SWIG_AsVal_int(obj2, &val3);
16091 if (!SWIG_IsOK(ecode3)) {
16092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16093 }
16094 arg3 = static_cast< int >(val3);
16095 }
16096 if (obj3) {
16097 {
16098 arg4 = wxString_in_helper(obj3);
16099 if (arg4 == NULL) SWIG_fail;
16100 temp4 = true;
16101 }
16102 }
16103 if (obj4) {
16104 {
16105 arg5 = &temp5;
16106 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16107 }
16108 }
16109 if (obj5) {
16110 {
16111 arg6 = &temp6;
16112 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16113 }
16114 }
16115 if (obj6) {
16116 {
16117 if (! PySequence_Check(obj6)) {
16118 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16119 SWIG_fail;
16120 }
16121 arg7 = new wxArrayString;
16122 temp7 = true;
16123 int i, len=PySequence_Length(obj6);
16124 for (i=0; i<len; i++) {
16125 PyObject* item = PySequence_GetItem(obj6, i);
16126 wxString* s = wxString_in_helper(item);
16127 if (PyErr_Occurred()) SWIG_fail;
16128 arg7->Add(*s);
16129 delete s;
16130 Py_DECREF(item);
16131 }
16132 }
16133 }
16134 if (obj7) {
16135 ecode8 = SWIG_AsVal_int(obj7, &val8);
16136 if (!SWIG_IsOK(ecode8)) {
16137 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16138 }
16139 arg8 = static_cast< int >(val8);
16140 }
16141 if (obj8) {
16142 ecode9 = SWIG_AsVal_long(obj8, &val9);
16143 if (!SWIG_IsOK(ecode9)) {
16144 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16145 }
16146 arg9 = static_cast< long >(val9);
16147 }
16148 if (obj9) {
16149 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16150 if (!SWIG_IsOK(res10)) {
16151 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16152 }
16153 if (!argp10) {
16154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16155 }
16156 arg10 = reinterpret_cast< wxValidator * >(argp10);
16157 }
16158 if (obj10) {
16159 {
16160 arg11 = wxString_in_helper(obj10);
16161 if (arg11 == NULL) SWIG_fail;
16162 temp11 = true;
16163 }
16164 }
16165 {
16166 PyThreadState* __tstate = wxPyBeginAllowThreads();
16167 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);
16168 wxPyEndAllowThreads(__tstate);
16169 if (PyErr_Occurred()) SWIG_fail;
16170 }
16171 {
16172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16173 }
16174 {
16175 if (temp4)
16176 delete arg4;
16177 }
16178 {
16179 if (temp7) delete arg7;
16180 }
16181 {
16182 if (temp11)
16183 delete arg11;
16184 }
16185 return resultobj;
16186 fail:
16187 {
16188 if (temp4)
16189 delete arg4;
16190 }
16191 {
16192 if (temp7) delete arg7;
16193 }
16194 {
16195 if (temp11)
16196 delete arg11;
16197 }
16198 return NULL;
16199 }
16200
16201
16202 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16203 PyObject *resultobj = 0;
16204 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16205 int arg2 ;
16206 void *argp1 = 0 ;
16207 int res1 = 0 ;
16208 int val2 ;
16209 int ecode2 = 0 ;
16210 PyObject * obj0 = 0 ;
16211 PyObject * obj1 = 0 ;
16212 char * kwnames[] = {
16213 (char *) "self",(char *) "n", NULL
16214 };
16215
16216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16218 if (!SWIG_IsOK(res1)) {
16219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16220 }
16221 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16222 ecode2 = SWIG_AsVal_int(obj1, &val2);
16223 if (!SWIG_IsOK(ecode2)) {
16224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16225 }
16226 arg2 = static_cast< int >(val2);
16227 {
16228 PyThreadState* __tstate = wxPyBeginAllowThreads();
16229 (arg1)->SetSelection(arg2);
16230 wxPyEndAllowThreads(__tstate);
16231 if (PyErr_Occurred()) SWIG_fail;
16232 }
16233 resultobj = SWIG_Py_Void();
16234 return resultobj;
16235 fail:
16236 return NULL;
16237 }
16238
16239
16240 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16241 PyObject *resultobj = 0;
16242 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16243 int result;
16244 void *argp1 = 0 ;
16245 int res1 = 0 ;
16246 PyObject *swig_obj[1] ;
16247
16248 if (!args) SWIG_fail;
16249 swig_obj[0] = args;
16250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16251 if (!SWIG_IsOK(res1)) {
16252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16253 }
16254 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16255 {
16256 PyThreadState* __tstate = wxPyBeginAllowThreads();
16257 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16258 wxPyEndAllowThreads(__tstate);
16259 if (PyErr_Occurred()) SWIG_fail;
16260 }
16261 resultobj = SWIG_From_int(static_cast< int >(result));
16262 return resultobj;
16263 fail:
16264 return NULL;
16265 }
16266
16267
16268 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16269 PyObject *resultobj = 0;
16270 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16271 wxString result;
16272 void *argp1 = 0 ;
16273 int res1 = 0 ;
16274 PyObject *swig_obj[1] ;
16275
16276 if (!args) SWIG_fail;
16277 swig_obj[0] = args;
16278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16279 if (!SWIG_IsOK(res1)) {
16280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16281 }
16282 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16283 {
16284 PyThreadState* __tstate = wxPyBeginAllowThreads();
16285 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16286 wxPyEndAllowThreads(__tstate);
16287 if (PyErr_Occurred()) SWIG_fail;
16288 }
16289 {
16290 #if wxUSE_UNICODE
16291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16292 #else
16293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16294 #endif
16295 }
16296 return resultobj;
16297 fail:
16298 return NULL;
16299 }
16300
16301
16302 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16303 PyObject *resultobj = 0;
16304 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16305 wxString *arg2 = 0 ;
16306 bool result;
16307 void *argp1 = 0 ;
16308 int res1 = 0 ;
16309 bool temp2 = false ;
16310 PyObject * obj0 = 0 ;
16311 PyObject * obj1 = 0 ;
16312 char * kwnames[] = {
16313 (char *) "self",(char *) "s", NULL
16314 };
16315
16316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16318 if (!SWIG_IsOK(res1)) {
16319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16320 }
16321 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16322 {
16323 arg2 = wxString_in_helper(obj1);
16324 if (arg2 == NULL) SWIG_fail;
16325 temp2 = true;
16326 }
16327 {
16328 PyThreadState* __tstate = wxPyBeginAllowThreads();
16329 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16330 wxPyEndAllowThreads(__tstate);
16331 if (PyErr_Occurred()) SWIG_fail;
16332 }
16333 {
16334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16335 }
16336 {
16337 if (temp2)
16338 delete arg2;
16339 }
16340 return resultobj;
16341 fail:
16342 {
16343 if (temp2)
16344 delete arg2;
16345 }
16346 return NULL;
16347 }
16348
16349
16350 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16351 PyObject *resultobj = 0;
16352 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16353 size_t result;
16354 void *argp1 = 0 ;
16355 int res1 = 0 ;
16356 PyObject *swig_obj[1] ;
16357
16358 if (!args) SWIG_fail;
16359 swig_obj[0] = args;
16360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16361 if (!SWIG_IsOK(res1)) {
16362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16363 }
16364 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16365 {
16366 PyThreadState* __tstate = wxPyBeginAllowThreads();
16367 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16368 wxPyEndAllowThreads(__tstate);
16369 if (PyErr_Occurred()) SWIG_fail;
16370 }
16371 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16372 return resultobj;
16373 fail:
16374 return NULL;
16375 }
16376
16377
16378 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16379 PyObject *resultobj = 0;
16380 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16381 wxString *arg2 = 0 ;
16382 int result;
16383 void *argp1 = 0 ;
16384 int res1 = 0 ;
16385 bool temp2 = false ;
16386 PyObject * obj0 = 0 ;
16387 PyObject * obj1 = 0 ;
16388 char * kwnames[] = {
16389 (char *) "self",(char *) "s", NULL
16390 };
16391
16392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16394 if (!SWIG_IsOK(res1)) {
16395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16396 }
16397 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16398 {
16399 arg2 = wxString_in_helper(obj1);
16400 if (arg2 == NULL) SWIG_fail;
16401 temp2 = true;
16402 }
16403 {
16404 PyThreadState* __tstate = wxPyBeginAllowThreads();
16405 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16406 wxPyEndAllowThreads(__tstate);
16407 if (PyErr_Occurred()) SWIG_fail;
16408 }
16409 resultobj = SWIG_From_int(static_cast< int >(result));
16410 {
16411 if (temp2)
16412 delete arg2;
16413 }
16414 return resultobj;
16415 fail:
16416 {
16417 if (temp2)
16418 delete arg2;
16419 }
16420 return NULL;
16421 }
16422
16423
16424 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16425 PyObject *resultobj = 0;
16426 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16427 int arg2 ;
16428 wxString result;
16429 void *argp1 = 0 ;
16430 int res1 = 0 ;
16431 int val2 ;
16432 int ecode2 = 0 ;
16433 PyObject * obj0 = 0 ;
16434 PyObject * obj1 = 0 ;
16435 char * kwnames[] = {
16436 (char *) "self",(char *) "n", NULL
16437 };
16438
16439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16441 if (!SWIG_IsOK(res1)) {
16442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16443 }
16444 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16445 ecode2 = SWIG_AsVal_int(obj1, &val2);
16446 if (!SWIG_IsOK(ecode2)) {
16447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16448 }
16449 arg2 = static_cast< int >(val2);
16450 {
16451 PyThreadState* __tstate = wxPyBeginAllowThreads();
16452 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16453 wxPyEndAllowThreads(__tstate);
16454 if (PyErr_Occurred()) SWIG_fail;
16455 }
16456 {
16457 #if wxUSE_UNICODE
16458 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16459 #else
16460 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16461 #endif
16462 }
16463 return resultobj;
16464 fail:
16465 return NULL;
16466 }
16467
16468
16469 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16470 PyObject *resultobj = 0;
16471 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16472 int arg2 ;
16473 wxString *arg3 = 0 ;
16474 void *argp1 = 0 ;
16475 int res1 = 0 ;
16476 int val2 ;
16477 int ecode2 = 0 ;
16478 bool temp3 = false ;
16479 PyObject * obj0 = 0 ;
16480 PyObject * obj1 = 0 ;
16481 PyObject * obj2 = 0 ;
16482 char * kwnames[] = {
16483 (char *) "self",(char *) "n",(char *) "label", NULL
16484 };
16485
16486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16488 if (!SWIG_IsOK(res1)) {
16489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16490 }
16491 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16492 ecode2 = SWIG_AsVal_int(obj1, &val2);
16493 if (!SWIG_IsOK(ecode2)) {
16494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16495 }
16496 arg2 = static_cast< int >(val2);
16497 {
16498 arg3 = wxString_in_helper(obj2);
16499 if (arg3 == NULL) SWIG_fail;
16500 temp3 = true;
16501 }
16502 {
16503 PyThreadState* __tstate = wxPyBeginAllowThreads();
16504 (arg1)->SetString(arg2,(wxString const &)*arg3);
16505 wxPyEndAllowThreads(__tstate);
16506 if (PyErr_Occurred()) SWIG_fail;
16507 }
16508 resultobj = SWIG_Py_Void();
16509 {
16510 if (temp3)
16511 delete arg3;
16512 }
16513 return resultobj;
16514 fail:
16515 {
16516 if (temp3)
16517 delete arg3;
16518 }
16519 return NULL;
16520 }
16521
16522
16523 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16524 PyObject *resultobj = 0;
16525 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16526 unsigned int arg2 ;
16527 bool arg3 = (bool) true ;
16528 void *argp1 = 0 ;
16529 int res1 = 0 ;
16530 unsigned int val2 ;
16531 int ecode2 = 0 ;
16532 bool val3 ;
16533 int ecode3 = 0 ;
16534 PyObject * obj0 = 0 ;
16535 PyObject * obj1 = 0 ;
16536 PyObject * obj2 = 0 ;
16537 char * kwnames[] = {
16538 (char *) "self",(char *) "n",(char *) "enable", NULL
16539 };
16540
16541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16543 if (!SWIG_IsOK(res1)) {
16544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16545 }
16546 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16547 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16548 if (!SWIG_IsOK(ecode2)) {
16549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16550 }
16551 arg2 = static_cast< unsigned int >(val2);
16552 if (obj2) {
16553 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16554 if (!SWIG_IsOK(ecode3)) {
16555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16556 }
16557 arg3 = static_cast< bool >(val3);
16558 }
16559 {
16560 PyThreadState* __tstate = wxPyBeginAllowThreads();
16561 (arg1)->Enable(arg2,arg3);
16562 wxPyEndAllowThreads(__tstate);
16563 if (PyErr_Occurred()) SWIG_fail;
16564 }
16565 resultobj = SWIG_Py_Void();
16566 return resultobj;
16567 fail:
16568 return NULL;
16569 }
16570
16571
16572 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16573 PyObject *resultobj = 0;
16574 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16575 unsigned int arg2 ;
16576 bool arg3 = (bool) true ;
16577 void *argp1 = 0 ;
16578 int res1 = 0 ;
16579 unsigned int val2 ;
16580 int ecode2 = 0 ;
16581 bool val3 ;
16582 int ecode3 = 0 ;
16583 PyObject * obj0 = 0 ;
16584 PyObject * obj1 = 0 ;
16585 PyObject * obj2 = 0 ;
16586 char * kwnames[] = {
16587 (char *) "self",(char *) "n",(char *) "show", NULL
16588 };
16589
16590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16592 if (!SWIG_IsOK(res1)) {
16593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16594 }
16595 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16596 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16597 if (!SWIG_IsOK(ecode2)) {
16598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16599 }
16600 arg2 = static_cast< unsigned int >(val2);
16601 if (obj2) {
16602 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16603 if (!SWIG_IsOK(ecode3)) {
16604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16605 }
16606 arg3 = static_cast< bool >(val3);
16607 }
16608 {
16609 PyThreadState* __tstate = wxPyBeginAllowThreads();
16610 (arg1)->Show(arg2,arg3);
16611 wxPyEndAllowThreads(__tstate);
16612 if (PyErr_Occurred()) SWIG_fail;
16613 }
16614 resultobj = SWIG_Py_Void();
16615 return resultobj;
16616 fail:
16617 return NULL;
16618 }
16619
16620
16621 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16622 PyObject *resultobj = 0;
16623 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16624 unsigned int arg2 ;
16625 bool result;
16626 void *argp1 = 0 ;
16627 int res1 = 0 ;
16628 unsigned int val2 ;
16629 int ecode2 = 0 ;
16630 PyObject * obj0 = 0 ;
16631 PyObject * obj1 = 0 ;
16632 char * kwnames[] = {
16633 (char *) "self",(char *) "n", NULL
16634 };
16635
16636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16638 if (!SWIG_IsOK(res1)) {
16639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16640 }
16641 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16642 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16643 if (!SWIG_IsOK(ecode2)) {
16644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16645 }
16646 arg2 = static_cast< unsigned int >(val2);
16647 {
16648 PyThreadState* __tstate = wxPyBeginAllowThreads();
16649 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16650 wxPyEndAllowThreads(__tstate);
16651 if (PyErr_Occurred()) SWIG_fail;
16652 }
16653 {
16654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16655 }
16656 return resultobj;
16657 fail:
16658 return NULL;
16659 }
16660
16661
16662 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16663 PyObject *resultobj = 0;
16664 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16665 unsigned int arg2 ;
16666 bool result;
16667 void *argp1 = 0 ;
16668 int res1 = 0 ;
16669 unsigned int val2 ;
16670 int ecode2 = 0 ;
16671 PyObject * obj0 = 0 ;
16672 PyObject * obj1 = 0 ;
16673 char * kwnames[] = {
16674 (char *) "self",(char *) "n", NULL
16675 };
16676
16677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16679 if (!SWIG_IsOK(res1)) {
16680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16681 }
16682 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16683 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16684 if (!SWIG_IsOK(ecode2)) {
16685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16686 }
16687 arg2 = static_cast< unsigned int >(val2);
16688 {
16689 PyThreadState* __tstate = wxPyBeginAllowThreads();
16690 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16691 wxPyEndAllowThreads(__tstate);
16692 if (PyErr_Occurred()) SWIG_fail;
16693 }
16694 {
16695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16696 }
16697 return resultobj;
16698 fail:
16699 return NULL;
16700 }
16701
16702
16703 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16704 PyObject *resultobj = 0;
16705 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16706 unsigned int result;
16707 void *argp1 = 0 ;
16708 int res1 = 0 ;
16709 PyObject *swig_obj[1] ;
16710
16711 if (!args) SWIG_fail;
16712 swig_obj[0] = args;
16713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16714 if (!SWIG_IsOK(res1)) {
16715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16716 }
16717 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16718 {
16719 PyThreadState* __tstate = wxPyBeginAllowThreads();
16720 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16721 wxPyEndAllowThreads(__tstate);
16722 if (PyErr_Occurred()) SWIG_fail;
16723 }
16724 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16725 return resultobj;
16726 fail:
16727 return NULL;
16728 }
16729
16730
16731 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16732 PyObject *resultobj = 0;
16733 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16734 unsigned int result;
16735 void *argp1 = 0 ;
16736 int res1 = 0 ;
16737 PyObject *swig_obj[1] ;
16738
16739 if (!args) SWIG_fail;
16740 swig_obj[0] = args;
16741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16742 if (!SWIG_IsOK(res1)) {
16743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16744 }
16745 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16746 {
16747 PyThreadState* __tstate = wxPyBeginAllowThreads();
16748 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16749 wxPyEndAllowThreads(__tstate);
16750 if (PyErr_Occurred()) SWIG_fail;
16751 }
16752 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16753 return resultobj;
16754 fail:
16755 return NULL;
16756 }
16757
16758
16759 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16760 PyObject *resultobj = 0;
16761 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16762 int arg2 ;
16763 wxDirection arg3 ;
16764 long arg4 ;
16765 int result;
16766 void *argp1 = 0 ;
16767 int res1 = 0 ;
16768 int val2 ;
16769 int ecode2 = 0 ;
16770 int val3 ;
16771 int ecode3 = 0 ;
16772 long val4 ;
16773 int ecode4 = 0 ;
16774 PyObject * obj0 = 0 ;
16775 PyObject * obj1 = 0 ;
16776 PyObject * obj2 = 0 ;
16777 PyObject * obj3 = 0 ;
16778 char * kwnames[] = {
16779 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16780 };
16781
16782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16784 if (!SWIG_IsOK(res1)) {
16785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16786 }
16787 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16788 ecode2 = SWIG_AsVal_int(obj1, &val2);
16789 if (!SWIG_IsOK(ecode2)) {
16790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16791 }
16792 arg2 = static_cast< int >(val2);
16793 ecode3 = SWIG_AsVal_int(obj2, &val3);
16794 if (!SWIG_IsOK(ecode3)) {
16795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16796 }
16797 arg3 = static_cast< wxDirection >(val3);
16798 ecode4 = SWIG_AsVal_long(obj3, &val4);
16799 if (!SWIG_IsOK(ecode4)) {
16800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16801 }
16802 arg4 = static_cast< long >(val4);
16803 {
16804 PyThreadState* __tstate = wxPyBeginAllowThreads();
16805 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16806 wxPyEndAllowThreads(__tstate);
16807 if (PyErr_Occurred()) SWIG_fail;
16808 }
16809 resultobj = SWIG_From_int(static_cast< int >(result));
16810 return resultobj;
16811 fail:
16812 return NULL;
16813 }
16814
16815
16816 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16817 PyObject *resultobj = 0;
16818 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16819 unsigned int arg2 ;
16820 wxString *arg3 = 0 ;
16821 void *argp1 = 0 ;
16822 int res1 = 0 ;
16823 unsigned int val2 ;
16824 int ecode2 = 0 ;
16825 bool temp3 = false ;
16826 PyObject * obj0 = 0 ;
16827 PyObject * obj1 = 0 ;
16828 PyObject * obj2 = 0 ;
16829 char * kwnames[] = {
16830 (char *) "self",(char *) "item",(char *) "text", NULL
16831 };
16832
16833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16835 if (!SWIG_IsOK(res1)) {
16836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16837 }
16838 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16839 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16840 if (!SWIG_IsOK(ecode2)) {
16841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16842 }
16843 arg2 = static_cast< unsigned int >(val2);
16844 {
16845 arg3 = wxString_in_helper(obj2);
16846 if (arg3 == NULL) SWIG_fail;
16847 temp3 = true;
16848 }
16849 {
16850 PyThreadState* __tstate = wxPyBeginAllowThreads();
16851 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16852 wxPyEndAllowThreads(__tstate);
16853 if (PyErr_Occurred()) SWIG_fail;
16854 }
16855 resultobj = SWIG_Py_Void();
16856 {
16857 if (temp3)
16858 delete arg3;
16859 }
16860 return resultobj;
16861 fail:
16862 {
16863 if (temp3)
16864 delete arg3;
16865 }
16866 return NULL;
16867 }
16868
16869
16870 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16871 PyObject *resultobj = 0;
16872 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16873 unsigned int arg2 ;
16874 wxToolTip *result = 0 ;
16875 void *argp1 = 0 ;
16876 int res1 = 0 ;
16877 unsigned int val2 ;
16878 int ecode2 = 0 ;
16879 PyObject * obj0 = 0 ;
16880 PyObject * obj1 = 0 ;
16881 char * kwnames[] = {
16882 (char *) "self",(char *) "item", NULL
16883 };
16884
16885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16887 if (!SWIG_IsOK(res1)) {
16888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16889 }
16890 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16891 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16892 if (!SWIG_IsOK(ecode2)) {
16893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16894 }
16895 arg2 = static_cast< unsigned int >(val2);
16896 {
16897 PyThreadState* __tstate = wxPyBeginAllowThreads();
16898 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16899 wxPyEndAllowThreads(__tstate);
16900 if (PyErr_Occurred()) SWIG_fail;
16901 }
16902 {
16903 resultobj = wxPyMake_wxObject(result, (bool)0);
16904 }
16905 return resultobj;
16906 fail:
16907 return NULL;
16908 }
16909
16910
16911 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16912 PyObject *resultobj = 0;
16913 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16914 SwigValueWrapper<wxVisualAttributes > result;
16915 int val1 ;
16916 int ecode1 = 0 ;
16917 PyObject * obj0 = 0 ;
16918 char * kwnames[] = {
16919 (char *) "variant", NULL
16920 };
16921
16922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16923 if (obj0) {
16924 ecode1 = SWIG_AsVal_int(obj0, &val1);
16925 if (!SWIG_IsOK(ecode1)) {
16926 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16927 }
16928 arg1 = static_cast< wxWindowVariant >(val1);
16929 }
16930 {
16931 if (!wxPyCheckForApp()) SWIG_fail;
16932 PyThreadState* __tstate = wxPyBeginAllowThreads();
16933 result = wxRadioBox::GetClassDefaultAttributes(arg1);
16934 wxPyEndAllowThreads(__tstate);
16935 if (PyErr_Occurred()) SWIG_fail;
16936 }
16937 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16938 return resultobj;
16939 fail:
16940 return NULL;
16941 }
16942
16943
16944 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16945 PyObject *obj;
16946 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16947 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
16948 return SWIG_Py_Void();
16949 }
16950
16951 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16952 return SWIG_Python_InitShadowInstance(args);
16953 }
16954
16955 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16956 PyObject *resultobj = 0;
16957 wxWindow *arg1 = (wxWindow *) 0 ;
16958 int arg2 = (int) -1 ;
16959 wxString const &arg3_defvalue = wxPyEmptyString ;
16960 wxString *arg3 = (wxString *) &arg3_defvalue ;
16961 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16962 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16963 wxSize const &arg5_defvalue = wxDefaultSize ;
16964 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16965 long arg6 = (long) 0 ;
16966 wxValidator const &arg7_defvalue = wxDefaultValidator ;
16967 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
16968 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
16969 wxString *arg8 = (wxString *) &arg8_defvalue ;
16970 wxRadioButton *result = 0 ;
16971 void *argp1 = 0 ;
16972 int res1 = 0 ;
16973 int val2 ;
16974 int ecode2 = 0 ;
16975 bool temp3 = false ;
16976 wxPoint temp4 ;
16977 wxSize temp5 ;
16978 long val6 ;
16979 int ecode6 = 0 ;
16980 void *argp7 = 0 ;
16981 int res7 = 0 ;
16982 bool temp8 = false ;
16983 PyObject * obj0 = 0 ;
16984 PyObject * obj1 = 0 ;
16985 PyObject * obj2 = 0 ;
16986 PyObject * obj3 = 0 ;
16987 PyObject * obj4 = 0 ;
16988 PyObject * obj5 = 0 ;
16989 PyObject * obj6 = 0 ;
16990 PyObject * obj7 = 0 ;
16991 char * kwnames[] = {
16992 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16993 };
16994
16995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16997 if (!SWIG_IsOK(res1)) {
16998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
16999 }
17000 arg1 = reinterpret_cast< wxWindow * >(argp1);
17001 if (obj1) {
17002 ecode2 = SWIG_AsVal_int(obj1, &val2);
17003 if (!SWIG_IsOK(ecode2)) {
17004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17005 }
17006 arg2 = static_cast< int >(val2);
17007 }
17008 if (obj2) {
17009 {
17010 arg3 = wxString_in_helper(obj2);
17011 if (arg3 == NULL) SWIG_fail;
17012 temp3 = true;
17013 }
17014 }
17015 if (obj3) {
17016 {
17017 arg4 = &temp4;
17018 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17019 }
17020 }
17021 if (obj4) {
17022 {
17023 arg5 = &temp5;
17024 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17025 }
17026 }
17027 if (obj5) {
17028 ecode6 = SWIG_AsVal_long(obj5, &val6);
17029 if (!SWIG_IsOK(ecode6)) {
17030 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17031 }
17032 arg6 = static_cast< long >(val6);
17033 }
17034 if (obj6) {
17035 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17036 if (!SWIG_IsOK(res7)) {
17037 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17038 }
17039 if (!argp7) {
17040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17041 }
17042 arg7 = reinterpret_cast< wxValidator * >(argp7);
17043 }
17044 if (obj7) {
17045 {
17046 arg8 = wxString_in_helper(obj7);
17047 if (arg8 == NULL) SWIG_fail;
17048 temp8 = true;
17049 }
17050 }
17051 {
17052 if (!wxPyCheckForApp()) SWIG_fail;
17053 PyThreadState* __tstate = wxPyBeginAllowThreads();
17054 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17055 wxPyEndAllowThreads(__tstate);
17056 if (PyErr_Occurred()) SWIG_fail;
17057 }
17058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17059 {
17060 if (temp3)
17061 delete arg3;
17062 }
17063 {
17064 if (temp8)
17065 delete arg8;
17066 }
17067 return resultobj;
17068 fail:
17069 {
17070 if (temp3)
17071 delete arg3;
17072 }
17073 {
17074 if (temp8)
17075 delete arg8;
17076 }
17077 return NULL;
17078 }
17079
17080
17081 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17082 PyObject *resultobj = 0;
17083 wxRadioButton *result = 0 ;
17084
17085 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17086 {
17087 if (!wxPyCheckForApp()) SWIG_fail;
17088 PyThreadState* __tstate = wxPyBeginAllowThreads();
17089 result = (wxRadioButton *)new wxRadioButton();
17090 wxPyEndAllowThreads(__tstate);
17091 if (PyErr_Occurred()) SWIG_fail;
17092 }
17093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17094 return resultobj;
17095 fail:
17096 return NULL;
17097 }
17098
17099
17100 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17101 PyObject *resultobj = 0;
17102 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17103 wxWindow *arg2 = (wxWindow *) 0 ;
17104 int arg3 = (int) -1 ;
17105 wxString const &arg4_defvalue = wxPyEmptyString ;
17106 wxString *arg4 = (wxString *) &arg4_defvalue ;
17107 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17108 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17109 wxSize const &arg6_defvalue = wxDefaultSize ;
17110 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17111 long arg7 = (long) 0 ;
17112 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17113 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17114 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17115 wxString *arg9 = (wxString *) &arg9_defvalue ;
17116 bool result;
17117 void *argp1 = 0 ;
17118 int res1 = 0 ;
17119 void *argp2 = 0 ;
17120 int res2 = 0 ;
17121 int val3 ;
17122 int ecode3 = 0 ;
17123 bool temp4 = false ;
17124 wxPoint temp5 ;
17125 wxSize temp6 ;
17126 long val7 ;
17127 int ecode7 = 0 ;
17128 void *argp8 = 0 ;
17129 int res8 = 0 ;
17130 bool temp9 = false ;
17131 PyObject * obj0 = 0 ;
17132 PyObject * obj1 = 0 ;
17133 PyObject * obj2 = 0 ;
17134 PyObject * obj3 = 0 ;
17135 PyObject * obj4 = 0 ;
17136 PyObject * obj5 = 0 ;
17137 PyObject * obj6 = 0 ;
17138 PyObject * obj7 = 0 ;
17139 PyObject * obj8 = 0 ;
17140 char * kwnames[] = {
17141 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17142 };
17143
17144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17146 if (!SWIG_IsOK(res1)) {
17147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17148 }
17149 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17150 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17151 if (!SWIG_IsOK(res2)) {
17152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17153 }
17154 arg2 = reinterpret_cast< wxWindow * >(argp2);
17155 if (obj2) {
17156 ecode3 = SWIG_AsVal_int(obj2, &val3);
17157 if (!SWIG_IsOK(ecode3)) {
17158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17159 }
17160 arg3 = static_cast< int >(val3);
17161 }
17162 if (obj3) {
17163 {
17164 arg4 = wxString_in_helper(obj3);
17165 if (arg4 == NULL) SWIG_fail;
17166 temp4 = true;
17167 }
17168 }
17169 if (obj4) {
17170 {
17171 arg5 = &temp5;
17172 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17173 }
17174 }
17175 if (obj5) {
17176 {
17177 arg6 = &temp6;
17178 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17179 }
17180 }
17181 if (obj6) {
17182 ecode7 = SWIG_AsVal_long(obj6, &val7);
17183 if (!SWIG_IsOK(ecode7)) {
17184 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17185 }
17186 arg7 = static_cast< long >(val7);
17187 }
17188 if (obj7) {
17189 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17190 if (!SWIG_IsOK(res8)) {
17191 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17192 }
17193 if (!argp8) {
17194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17195 }
17196 arg8 = reinterpret_cast< wxValidator * >(argp8);
17197 }
17198 if (obj8) {
17199 {
17200 arg9 = wxString_in_helper(obj8);
17201 if (arg9 == NULL) SWIG_fail;
17202 temp9 = true;
17203 }
17204 }
17205 {
17206 PyThreadState* __tstate = wxPyBeginAllowThreads();
17207 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17208 wxPyEndAllowThreads(__tstate);
17209 if (PyErr_Occurred()) SWIG_fail;
17210 }
17211 {
17212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17213 }
17214 {
17215 if (temp4)
17216 delete arg4;
17217 }
17218 {
17219 if (temp9)
17220 delete arg9;
17221 }
17222 return resultobj;
17223 fail:
17224 {
17225 if (temp4)
17226 delete arg4;
17227 }
17228 {
17229 if (temp9)
17230 delete arg9;
17231 }
17232 return NULL;
17233 }
17234
17235
17236 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17237 PyObject *resultobj = 0;
17238 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17239 bool result;
17240 void *argp1 = 0 ;
17241 int res1 = 0 ;
17242 PyObject *swig_obj[1] ;
17243
17244 if (!args) SWIG_fail;
17245 swig_obj[0] = args;
17246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17247 if (!SWIG_IsOK(res1)) {
17248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17249 }
17250 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17251 {
17252 PyThreadState* __tstate = wxPyBeginAllowThreads();
17253 result = (bool)(arg1)->GetValue();
17254 wxPyEndAllowThreads(__tstate);
17255 if (PyErr_Occurred()) SWIG_fail;
17256 }
17257 {
17258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17259 }
17260 return resultobj;
17261 fail:
17262 return NULL;
17263 }
17264
17265
17266 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17267 PyObject *resultobj = 0;
17268 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17269 bool arg2 ;
17270 void *argp1 = 0 ;
17271 int res1 = 0 ;
17272 bool val2 ;
17273 int ecode2 = 0 ;
17274 PyObject * obj0 = 0 ;
17275 PyObject * obj1 = 0 ;
17276 char * kwnames[] = {
17277 (char *) "self",(char *) "value", NULL
17278 };
17279
17280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17282 if (!SWIG_IsOK(res1)) {
17283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17284 }
17285 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17286 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17287 if (!SWIG_IsOK(ecode2)) {
17288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17289 }
17290 arg2 = static_cast< bool >(val2);
17291 {
17292 PyThreadState* __tstate = wxPyBeginAllowThreads();
17293 (arg1)->SetValue(arg2);
17294 wxPyEndAllowThreads(__tstate);
17295 if (PyErr_Occurred()) SWIG_fail;
17296 }
17297 resultobj = SWIG_Py_Void();
17298 return resultobj;
17299 fail:
17300 return NULL;
17301 }
17302
17303
17304 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17305 PyObject *resultobj = 0;
17306 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17307 SwigValueWrapper<wxVisualAttributes > result;
17308 int val1 ;
17309 int ecode1 = 0 ;
17310 PyObject * obj0 = 0 ;
17311 char * kwnames[] = {
17312 (char *) "variant", NULL
17313 };
17314
17315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17316 if (obj0) {
17317 ecode1 = SWIG_AsVal_int(obj0, &val1);
17318 if (!SWIG_IsOK(ecode1)) {
17319 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17320 }
17321 arg1 = static_cast< wxWindowVariant >(val1);
17322 }
17323 {
17324 if (!wxPyCheckForApp()) SWIG_fail;
17325 PyThreadState* __tstate = wxPyBeginAllowThreads();
17326 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17327 wxPyEndAllowThreads(__tstate);
17328 if (PyErr_Occurred()) SWIG_fail;
17329 }
17330 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17331 return resultobj;
17332 fail:
17333 return NULL;
17334 }
17335
17336
17337 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17338 PyObject *obj;
17339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17340 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17341 return SWIG_Py_Void();
17342 }
17343
17344 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17345 return SWIG_Python_InitShadowInstance(args);
17346 }
17347
17348 SWIGINTERN int SliderNameStr_set(PyObject *) {
17349 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17350 return 1;
17351 }
17352
17353
17354 SWIGINTERN PyObject *SliderNameStr_get(void) {
17355 PyObject *pyobj = 0;
17356
17357 {
17358 #if wxUSE_UNICODE
17359 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17360 #else
17361 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17362 #endif
17363 }
17364 return pyobj;
17365 }
17366
17367
17368 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17369 PyObject *resultobj = 0;
17370 wxWindow *arg1 = (wxWindow *) 0 ;
17371 int arg2 = (int) -1 ;
17372 int arg3 = (int) 0 ;
17373 int arg4 = (int) 0 ;
17374 int arg5 = (int) 100 ;
17375 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17376 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17377 wxSize const &arg7_defvalue = wxDefaultSize ;
17378 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17379 long arg8 = (long) wxSL_HORIZONTAL ;
17380 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17381 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17382 wxString const &arg10_defvalue = wxPySliderNameStr ;
17383 wxString *arg10 = (wxString *) &arg10_defvalue ;
17384 wxSlider *result = 0 ;
17385 void *argp1 = 0 ;
17386 int res1 = 0 ;
17387 int val2 ;
17388 int ecode2 = 0 ;
17389 int val3 ;
17390 int ecode3 = 0 ;
17391 int val4 ;
17392 int ecode4 = 0 ;
17393 int val5 ;
17394 int ecode5 = 0 ;
17395 wxPoint temp6 ;
17396 wxSize temp7 ;
17397 long val8 ;
17398 int ecode8 = 0 ;
17399 void *argp9 = 0 ;
17400 int res9 = 0 ;
17401 bool temp10 = false ;
17402 PyObject * obj0 = 0 ;
17403 PyObject * obj1 = 0 ;
17404 PyObject * obj2 = 0 ;
17405 PyObject * obj3 = 0 ;
17406 PyObject * obj4 = 0 ;
17407 PyObject * obj5 = 0 ;
17408 PyObject * obj6 = 0 ;
17409 PyObject * obj7 = 0 ;
17410 PyObject * obj8 = 0 ;
17411 PyObject * obj9 = 0 ;
17412 char * kwnames[] = {
17413 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17414 };
17415
17416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17418 if (!SWIG_IsOK(res1)) {
17419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17420 }
17421 arg1 = reinterpret_cast< wxWindow * >(argp1);
17422 if (obj1) {
17423 ecode2 = SWIG_AsVal_int(obj1, &val2);
17424 if (!SWIG_IsOK(ecode2)) {
17425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17426 }
17427 arg2 = static_cast< int >(val2);
17428 }
17429 if (obj2) {
17430 ecode3 = SWIG_AsVal_int(obj2, &val3);
17431 if (!SWIG_IsOK(ecode3)) {
17432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17433 }
17434 arg3 = static_cast< int >(val3);
17435 }
17436 if (obj3) {
17437 ecode4 = SWIG_AsVal_int(obj3, &val4);
17438 if (!SWIG_IsOK(ecode4)) {
17439 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17440 }
17441 arg4 = static_cast< int >(val4);
17442 }
17443 if (obj4) {
17444 ecode5 = SWIG_AsVal_int(obj4, &val5);
17445 if (!SWIG_IsOK(ecode5)) {
17446 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17447 }
17448 arg5 = static_cast< int >(val5);
17449 }
17450 if (obj5) {
17451 {
17452 arg6 = &temp6;
17453 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17454 }
17455 }
17456 if (obj6) {
17457 {
17458 arg7 = &temp7;
17459 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17460 }
17461 }
17462 if (obj7) {
17463 ecode8 = SWIG_AsVal_long(obj7, &val8);
17464 if (!SWIG_IsOK(ecode8)) {
17465 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17466 }
17467 arg8 = static_cast< long >(val8);
17468 }
17469 if (obj8) {
17470 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17471 if (!SWIG_IsOK(res9)) {
17472 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17473 }
17474 if (!argp9) {
17475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17476 }
17477 arg9 = reinterpret_cast< wxValidator * >(argp9);
17478 }
17479 if (obj9) {
17480 {
17481 arg10 = wxString_in_helper(obj9);
17482 if (arg10 == NULL) SWIG_fail;
17483 temp10 = true;
17484 }
17485 }
17486 {
17487 if (!wxPyCheckForApp()) SWIG_fail;
17488 PyThreadState* __tstate = wxPyBeginAllowThreads();
17489 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17490 wxPyEndAllowThreads(__tstate);
17491 if (PyErr_Occurred()) SWIG_fail;
17492 }
17493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17494 {
17495 if (temp10)
17496 delete arg10;
17497 }
17498 return resultobj;
17499 fail:
17500 {
17501 if (temp10)
17502 delete arg10;
17503 }
17504 return NULL;
17505 }
17506
17507
17508 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17509 PyObject *resultobj = 0;
17510 wxSlider *result = 0 ;
17511
17512 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17513 {
17514 if (!wxPyCheckForApp()) SWIG_fail;
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 result = (wxSlider *)new wxSlider();
17517 wxPyEndAllowThreads(__tstate);
17518 if (PyErr_Occurred()) SWIG_fail;
17519 }
17520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17521 return resultobj;
17522 fail:
17523 return NULL;
17524 }
17525
17526
17527 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17528 PyObject *resultobj = 0;
17529 wxSlider *arg1 = (wxSlider *) 0 ;
17530 wxWindow *arg2 = (wxWindow *) 0 ;
17531 int arg3 = (int) -1 ;
17532 int arg4 = (int) 0 ;
17533 int arg5 = (int) 0 ;
17534 int arg6 = (int) 100 ;
17535 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17536 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17537 wxSize const &arg8_defvalue = wxDefaultSize ;
17538 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17539 long arg9 = (long) wxSL_HORIZONTAL ;
17540 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17541 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17542 wxString const &arg11_defvalue = wxPySliderNameStr ;
17543 wxString *arg11 = (wxString *) &arg11_defvalue ;
17544 bool result;
17545 void *argp1 = 0 ;
17546 int res1 = 0 ;
17547 void *argp2 = 0 ;
17548 int res2 = 0 ;
17549 int val3 ;
17550 int ecode3 = 0 ;
17551 int val4 ;
17552 int ecode4 = 0 ;
17553 int val5 ;
17554 int ecode5 = 0 ;
17555 int val6 ;
17556 int ecode6 = 0 ;
17557 wxPoint temp7 ;
17558 wxSize temp8 ;
17559 long val9 ;
17560 int ecode9 = 0 ;
17561 void *argp10 = 0 ;
17562 int res10 = 0 ;
17563 bool temp11 = false ;
17564 PyObject * obj0 = 0 ;
17565 PyObject * obj1 = 0 ;
17566 PyObject * obj2 = 0 ;
17567 PyObject * obj3 = 0 ;
17568 PyObject * obj4 = 0 ;
17569 PyObject * obj5 = 0 ;
17570 PyObject * obj6 = 0 ;
17571 PyObject * obj7 = 0 ;
17572 PyObject * obj8 = 0 ;
17573 PyObject * obj9 = 0 ;
17574 PyObject * obj10 = 0 ;
17575 char * kwnames[] = {
17576 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17577 };
17578
17579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17581 if (!SWIG_IsOK(res1)) {
17582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17583 }
17584 arg1 = reinterpret_cast< wxSlider * >(argp1);
17585 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17586 if (!SWIG_IsOK(res2)) {
17587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17588 }
17589 arg2 = reinterpret_cast< wxWindow * >(argp2);
17590 if (obj2) {
17591 ecode3 = SWIG_AsVal_int(obj2, &val3);
17592 if (!SWIG_IsOK(ecode3)) {
17593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17594 }
17595 arg3 = static_cast< int >(val3);
17596 }
17597 if (obj3) {
17598 ecode4 = SWIG_AsVal_int(obj3, &val4);
17599 if (!SWIG_IsOK(ecode4)) {
17600 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17601 }
17602 arg4 = static_cast< int >(val4);
17603 }
17604 if (obj4) {
17605 ecode5 = SWIG_AsVal_int(obj4, &val5);
17606 if (!SWIG_IsOK(ecode5)) {
17607 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17608 }
17609 arg5 = static_cast< int >(val5);
17610 }
17611 if (obj5) {
17612 ecode6 = SWIG_AsVal_int(obj5, &val6);
17613 if (!SWIG_IsOK(ecode6)) {
17614 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17615 }
17616 arg6 = static_cast< int >(val6);
17617 }
17618 if (obj6) {
17619 {
17620 arg7 = &temp7;
17621 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17622 }
17623 }
17624 if (obj7) {
17625 {
17626 arg8 = &temp8;
17627 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17628 }
17629 }
17630 if (obj8) {
17631 ecode9 = SWIG_AsVal_long(obj8, &val9);
17632 if (!SWIG_IsOK(ecode9)) {
17633 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17634 }
17635 arg9 = static_cast< long >(val9);
17636 }
17637 if (obj9) {
17638 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17639 if (!SWIG_IsOK(res10)) {
17640 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17641 }
17642 if (!argp10) {
17643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17644 }
17645 arg10 = reinterpret_cast< wxValidator * >(argp10);
17646 }
17647 if (obj10) {
17648 {
17649 arg11 = wxString_in_helper(obj10);
17650 if (arg11 == NULL) SWIG_fail;
17651 temp11 = true;
17652 }
17653 }
17654 {
17655 PyThreadState* __tstate = wxPyBeginAllowThreads();
17656 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17657 wxPyEndAllowThreads(__tstate);
17658 if (PyErr_Occurred()) SWIG_fail;
17659 }
17660 {
17661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17662 }
17663 {
17664 if (temp11)
17665 delete arg11;
17666 }
17667 return resultobj;
17668 fail:
17669 {
17670 if (temp11)
17671 delete arg11;
17672 }
17673 return NULL;
17674 }
17675
17676
17677 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17678 PyObject *resultobj = 0;
17679 wxSlider *arg1 = (wxSlider *) 0 ;
17680 int result;
17681 void *argp1 = 0 ;
17682 int res1 = 0 ;
17683 PyObject *swig_obj[1] ;
17684
17685 if (!args) SWIG_fail;
17686 swig_obj[0] = args;
17687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17688 if (!SWIG_IsOK(res1)) {
17689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17690 }
17691 arg1 = reinterpret_cast< wxSlider * >(argp1);
17692 {
17693 PyThreadState* __tstate = wxPyBeginAllowThreads();
17694 result = (int)((wxSlider const *)arg1)->GetValue();
17695 wxPyEndAllowThreads(__tstate);
17696 if (PyErr_Occurred()) SWIG_fail;
17697 }
17698 resultobj = SWIG_From_int(static_cast< int >(result));
17699 return resultobj;
17700 fail:
17701 return NULL;
17702 }
17703
17704
17705 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17706 PyObject *resultobj = 0;
17707 wxSlider *arg1 = (wxSlider *) 0 ;
17708 int arg2 ;
17709 void *argp1 = 0 ;
17710 int res1 = 0 ;
17711 int val2 ;
17712 int ecode2 = 0 ;
17713 PyObject * obj0 = 0 ;
17714 PyObject * obj1 = 0 ;
17715 char * kwnames[] = {
17716 (char *) "self",(char *) "value", NULL
17717 };
17718
17719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17721 if (!SWIG_IsOK(res1)) {
17722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17723 }
17724 arg1 = reinterpret_cast< wxSlider * >(argp1);
17725 ecode2 = SWIG_AsVal_int(obj1, &val2);
17726 if (!SWIG_IsOK(ecode2)) {
17727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17728 }
17729 arg2 = static_cast< int >(val2);
17730 {
17731 PyThreadState* __tstate = wxPyBeginAllowThreads();
17732 (arg1)->SetValue(arg2);
17733 wxPyEndAllowThreads(__tstate);
17734 if (PyErr_Occurred()) SWIG_fail;
17735 }
17736 resultobj = SWIG_Py_Void();
17737 return resultobj;
17738 fail:
17739 return NULL;
17740 }
17741
17742
17743 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17744 PyObject *resultobj = 0;
17745 wxSlider *arg1 = (wxSlider *) 0 ;
17746 int arg2 ;
17747 int arg3 ;
17748 void *argp1 = 0 ;
17749 int res1 = 0 ;
17750 int val2 ;
17751 int ecode2 = 0 ;
17752 int val3 ;
17753 int ecode3 = 0 ;
17754 PyObject * obj0 = 0 ;
17755 PyObject * obj1 = 0 ;
17756 PyObject * obj2 = 0 ;
17757 char * kwnames[] = {
17758 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17759 };
17760
17761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17763 if (!SWIG_IsOK(res1)) {
17764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17765 }
17766 arg1 = reinterpret_cast< wxSlider * >(argp1);
17767 ecode2 = SWIG_AsVal_int(obj1, &val2);
17768 if (!SWIG_IsOK(ecode2)) {
17769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17770 }
17771 arg2 = static_cast< int >(val2);
17772 ecode3 = SWIG_AsVal_int(obj2, &val3);
17773 if (!SWIG_IsOK(ecode3)) {
17774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17775 }
17776 arg3 = static_cast< int >(val3);
17777 {
17778 PyThreadState* __tstate = wxPyBeginAllowThreads();
17779 (arg1)->SetRange(arg2,arg3);
17780 wxPyEndAllowThreads(__tstate);
17781 if (PyErr_Occurred()) SWIG_fail;
17782 }
17783 resultobj = SWIG_Py_Void();
17784 return resultobj;
17785 fail:
17786 return NULL;
17787 }
17788
17789
17790 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17791 PyObject *resultobj = 0;
17792 wxSlider *arg1 = (wxSlider *) 0 ;
17793 int result;
17794 void *argp1 = 0 ;
17795 int res1 = 0 ;
17796 PyObject *swig_obj[1] ;
17797
17798 if (!args) SWIG_fail;
17799 swig_obj[0] = args;
17800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17801 if (!SWIG_IsOK(res1)) {
17802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17803 }
17804 arg1 = reinterpret_cast< wxSlider * >(argp1);
17805 {
17806 PyThreadState* __tstate = wxPyBeginAllowThreads();
17807 result = (int)((wxSlider const *)arg1)->GetMin();
17808 wxPyEndAllowThreads(__tstate);
17809 if (PyErr_Occurred()) SWIG_fail;
17810 }
17811 resultobj = SWIG_From_int(static_cast< int >(result));
17812 return resultobj;
17813 fail:
17814 return NULL;
17815 }
17816
17817
17818 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17819 PyObject *resultobj = 0;
17820 wxSlider *arg1 = (wxSlider *) 0 ;
17821 int result;
17822 void *argp1 = 0 ;
17823 int res1 = 0 ;
17824 PyObject *swig_obj[1] ;
17825
17826 if (!args) SWIG_fail;
17827 swig_obj[0] = args;
17828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17829 if (!SWIG_IsOK(res1)) {
17830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17831 }
17832 arg1 = reinterpret_cast< wxSlider * >(argp1);
17833 {
17834 PyThreadState* __tstate = wxPyBeginAllowThreads();
17835 result = (int)((wxSlider const *)arg1)->GetMax();
17836 wxPyEndAllowThreads(__tstate);
17837 if (PyErr_Occurred()) SWIG_fail;
17838 }
17839 resultobj = SWIG_From_int(static_cast< int >(result));
17840 return resultobj;
17841 fail:
17842 return NULL;
17843 }
17844
17845
17846 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17847 PyObject *resultobj = 0;
17848 wxSlider *arg1 = (wxSlider *) 0 ;
17849 int arg2 ;
17850 void *argp1 = 0 ;
17851 int res1 = 0 ;
17852 int val2 ;
17853 int ecode2 = 0 ;
17854 PyObject * obj0 = 0 ;
17855 PyObject * obj1 = 0 ;
17856 char * kwnames[] = {
17857 (char *) "self",(char *) "minValue", NULL
17858 };
17859
17860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17862 if (!SWIG_IsOK(res1)) {
17863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17864 }
17865 arg1 = reinterpret_cast< wxSlider * >(argp1);
17866 ecode2 = SWIG_AsVal_int(obj1, &val2);
17867 if (!SWIG_IsOK(ecode2)) {
17868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17869 }
17870 arg2 = static_cast< int >(val2);
17871 {
17872 PyThreadState* __tstate = wxPyBeginAllowThreads();
17873 (arg1)->SetMin(arg2);
17874 wxPyEndAllowThreads(__tstate);
17875 if (PyErr_Occurred()) SWIG_fail;
17876 }
17877 resultobj = SWIG_Py_Void();
17878 return resultobj;
17879 fail:
17880 return NULL;
17881 }
17882
17883
17884 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17885 PyObject *resultobj = 0;
17886 wxSlider *arg1 = (wxSlider *) 0 ;
17887 int arg2 ;
17888 void *argp1 = 0 ;
17889 int res1 = 0 ;
17890 int val2 ;
17891 int ecode2 = 0 ;
17892 PyObject * obj0 = 0 ;
17893 PyObject * obj1 = 0 ;
17894 char * kwnames[] = {
17895 (char *) "self",(char *) "maxValue", NULL
17896 };
17897
17898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17900 if (!SWIG_IsOK(res1)) {
17901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17902 }
17903 arg1 = reinterpret_cast< wxSlider * >(argp1);
17904 ecode2 = SWIG_AsVal_int(obj1, &val2);
17905 if (!SWIG_IsOK(ecode2)) {
17906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17907 }
17908 arg2 = static_cast< int >(val2);
17909 {
17910 PyThreadState* __tstate = wxPyBeginAllowThreads();
17911 (arg1)->SetMax(arg2);
17912 wxPyEndAllowThreads(__tstate);
17913 if (PyErr_Occurred()) SWIG_fail;
17914 }
17915 resultobj = SWIG_Py_Void();
17916 return resultobj;
17917 fail:
17918 return NULL;
17919 }
17920
17921
17922 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17923 PyObject *resultobj = 0;
17924 wxSlider *arg1 = (wxSlider *) 0 ;
17925 int arg2 ;
17926 void *argp1 = 0 ;
17927 int res1 = 0 ;
17928 int val2 ;
17929 int ecode2 = 0 ;
17930 PyObject * obj0 = 0 ;
17931 PyObject * obj1 = 0 ;
17932 char * kwnames[] = {
17933 (char *) "self",(char *) "lineSize", NULL
17934 };
17935
17936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
17937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17938 if (!SWIG_IsOK(res1)) {
17939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17940 }
17941 arg1 = reinterpret_cast< wxSlider * >(argp1);
17942 ecode2 = SWIG_AsVal_int(obj1, &val2);
17943 if (!SWIG_IsOK(ecode2)) {
17944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
17945 }
17946 arg2 = static_cast< int >(val2);
17947 {
17948 PyThreadState* __tstate = wxPyBeginAllowThreads();
17949 (arg1)->SetLineSize(arg2);
17950 wxPyEndAllowThreads(__tstate);
17951 if (PyErr_Occurred()) SWIG_fail;
17952 }
17953 resultobj = SWIG_Py_Void();
17954 return resultobj;
17955 fail:
17956 return NULL;
17957 }
17958
17959
17960 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17961 PyObject *resultobj = 0;
17962 wxSlider *arg1 = (wxSlider *) 0 ;
17963 int arg2 ;
17964 void *argp1 = 0 ;
17965 int res1 = 0 ;
17966 int val2 ;
17967 int ecode2 = 0 ;
17968 PyObject * obj0 = 0 ;
17969 PyObject * obj1 = 0 ;
17970 char * kwnames[] = {
17971 (char *) "self",(char *) "pageSize", NULL
17972 };
17973
17974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
17975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17976 if (!SWIG_IsOK(res1)) {
17977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17978 }
17979 arg1 = reinterpret_cast< wxSlider * >(argp1);
17980 ecode2 = SWIG_AsVal_int(obj1, &val2);
17981 if (!SWIG_IsOK(ecode2)) {
17982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
17983 }
17984 arg2 = static_cast< int >(val2);
17985 {
17986 PyThreadState* __tstate = wxPyBeginAllowThreads();
17987 (arg1)->SetPageSize(arg2);
17988 wxPyEndAllowThreads(__tstate);
17989 if (PyErr_Occurred()) SWIG_fail;
17990 }
17991 resultobj = SWIG_Py_Void();
17992 return resultobj;
17993 fail:
17994 return NULL;
17995 }
17996
17997
17998 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17999 PyObject *resultobj = 0;
18000 wxSlider *arg1 = (wxSlider *) 0 ;
18001 int result;
18002 void *argp1 = 0 ;
18003 int res1 = 0 ;
18004 PyObject *swig_obj[1] ;
18005
18006 if (!args) SWIG_fail;
18007 swig_obj[0] = args;
18008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18009 if (!SWIG_IsOK(res1)) {
18010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18011 }
18012 arg1 = reinterpret_cast< wxSlider * >(argp1);
18013 {
18014 PyThreadState* __tstate = wxPyBeginAllowThreads();
18015 result = (int)((wxSlider const *)arg1)->GetLineSize();
18016 wxPyEndAllowThreads(__tstate);
18017 if (PyErr_Occurred()) SWIG_fail;
18018 }
18019 resultobj = SWIG_From_int(static_cast< int >(result));
18020 return resultobj;
18021 fail:
18022 return NULL;
18023 }
18024
18025
18026 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18027 PyObject *resultobj = 0;
18028 wxSlider *arg1 = (wxSlider *) 0 ;
18029 int result;
18030 void *argp1 = 0 ;
18031 int res1 = 0 ;
18032 PyObject *swig_obj[1] ;
18033
18034 if (!args) SWIG_fail;
18035 swig_obj[0] = args;
18036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18037 if (!SWIG_IsOK(res1)) {
18038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18039 }
18040 arg1 = reinterpret_cast< wxSlider * >(argp1);
18041 {
18042 PyThreadState* __tstate = wxPyBeginAllowThreads();
18043 result = (int)((wxSlider const *)arg1)->GetPageSize();
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 resultobj = SWIG_From_int(static_cast< int >(result));
18048 return resultobj;
18049 fail:
18050 return NULL;
18051 }
18052
18053
18054 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18055 PyObject *resultobj = 0;
18056 wxSlider *arg1 = (wxSlider *) 0 ;
18057 int arg2 ;
18058 void *argp1 = 0 ;
18059 int res1 = 0 ;
18060 int val2 ;
18061 int ecode2 = 0 ;
18062 PyObject * obj0 = 0 ;
18063 PyObject * obj1 = 0 ;
18064 char * kwnames[] = {
18065 (char *) "self",(char *) "lenPixels", NULL
18066 };
18067
18068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18070 if (!SWIG_IsOK(res1)) {
18071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18072 }
18073 arg1 = reinterpret_cast< wxSlider * >(argp1);
18074 ecode2 = SWIG_AsVal_int(obj1, &val2);
18075 if (!SWIG_IsOK(ecode2)) {
18076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18077 }
18078 arg2 = static_cast< int >(val2);
18079 {
18080 PyThreadState* __tstate = wxPyBeginAllowThreads();
18081 (arg1)->SetThumbLength(arg2);
18082 wxPyEndAllowThreads(__tstate);
18083 if (PyErr_Occurred()) SWIG_fail;
18084 }
18085 resultobj = SWIG_Py_Void();
18086 return resultobj;
18087 fail:
18088 return NULL;
18089 }
18090
18091
18092 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18093 PyObject *resultobj = 0;
18094 wxSlider *arg1 = (wxSlider *) 0 ;
18095 int result;
18096 void *argp1 = 0 ;
18097 int res1 = 0 ;
18098 PyObject *swig_obj[1] ;
18099
18100 if (!args) SWIG_fail;
18101 swig_obj[0] = args;
18102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18103 if (!SWIG_IsOK(res1)) {
18104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18105 }
18106 arg1 = reinterpret_cast< wxSlider * >(argp1);
18107 {
18108 PyThreadState* __tstate = wxPyBeginAllowThreads();
18109 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18110 wxPyEndAllowThreads(__tstate);
18111 if (PyErr_Occurred()) SWIG_fail;
18112 }
18113 resultobj = SWIG_From_int(static_cast< int >(result));
18114 return resultobj;
18115 fail:
18116 return NULL;
18117 }
18118
18119
18120 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18121 PyObject *resultobj = 0;
18122 wxSlider *arg1 = (wxSlider *) 0 ;
18123 int arg2 ;
18124 int arg3 = (int) 1 ;
18125 void *argp1 = 0 ;
18126 int res1 = 0 ;
18127 int val2 ;
18128 int ecode2 = 0 ;
18129 int val3 ;
18130 int ecode3 = 0 ;
18131 PyObject * obj0 = 0 ;
18132 PyObject * obj1 = 0 ;
18133 PyObject * obj2 = 0 ;
18134 char * kwnames[] = {
18135 (char *) "self",(char *) "n",(char *) "pos", NULL
18136 };
18137
18138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18140 if (!SWIG_IsOK(res1)) {
18141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18142 }
18143 arg1 = reinterpret_cast< wxSlider * >(argp1);
18144 ecode2 = SWIG_AsVal_int(obj1, &val2);
18145 if (!SWIG_IsOK(ecode2)) {
18146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18147 }
18148 arg2 = static_cast< int >(val2);
18149 if (obj2) {
18150 ecode3 = SWIG_AsVal_int(obj2, &val3);
18151 if (!SWIG_IsOK(ecode3)) {
18152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18153 }
18154 arg3 = static_cast< int >(val3);
18155 }
18156 {
18157 PyThreadState* __tstate = wxPyBeginAllowThreads();
18158 (arg1)->SetTickFreq(arg2,arg3);
18159 wxPyEndAllowThreads(__tstate);
18160 if (PyErr_Occurred()) SWIG_fail;
18161 }
18162 resultobj = SWIG_Py_Void();
18163 return resultobj;
18164 fail:
18165 return NULL;
18166 }
18167
18168
18169 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18170 PyObject *resultobj = 0;
18171 wxSlider *arg1 = (wxSlider *) 0 ;
18172 int result;
18173 void *argp1 = 0 ;
18174 int res1 = 0 ;
18175 PyObject *swig_obj[1] ;
18176
18177 if (!args) SWIG_fail;
18178 swig_obj[0] = args;
18179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18180 if (!SWIG_IsOK(res1)) {
18181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18182 }
18183 arg1 = reinterpret_cast< wxSlider * >(argp1);
18184 {
18185 PyThreadState* __tstate = wxPyBeginAllowThreads();
18186 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18187 wxPyEndAllowThreads(__tstate);
18188 if (PyErr_Occurred()) SWIG_fail;
18189 }
18190 resultobj = SWIG_From_int(static_cast< int >(result));
18191 return resultobj;
18192 fail:
18193 return NULL;
18194 }
18195
18196
18197 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18198 PyObject *resultobj = 0;
18199 wxSlider *arg1 = (wxSlider *) 0 ;
18200 void *argp1 = 0 ;
18201 int res1 = 0 ;
18202 PyObject *swig_obj[1] ;
18203
18204 if (!args) SWIG_fail;
18205 swig_obj[0] = args;
18206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18207 if (!SWIG_IsOK(res1)) {
18208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18209 }
18210 arg1 = reinterpret_cast< wxSlider * >(argp1);
18211 {
18212 PyThreadState* __tstate = wxPyBeginAllowThreads();
18213 (arg1)->ClearTicks();
18214 wxPyEndAllowThreads(__tstate);
18215 if (PyErr_Occurred()) SWIG_fail;
18216 }
18217 resultobj = SWIG_Py_Void();
18218 return resultobj;
18219 fail:
18220 return NULL;
18221 }
18222
18223
18224 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18225 PyObject *resultobj = 0;
18226 wxSlider *arg1 = (wxSlider *) 0 ;
18227 int arg2 ;
18228 void *argp1 = 0 ;
18229 int res1 = 0 ;
18230 int val2 ;
18231 int ecode2 = 0 ;
18232 PyObject * obj0 = 0 ;
18233 PyObject * obj1 = 0 ;
18234 char * kwnames[] = {
18235 (char *) "self",(char *) "tickPos", NULL
18236 };
18237
18238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18240 if (!SWIG_IsOK(res1)) {
18241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18242 }
18243 arg1 = reinterpret_cast< wxSlider * >(argp1);
18244 ecode2 = SWIG_AsVal_int(obj1, &val2);
18245 if (!SWIG_IsOK(ecode2)) {
18246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18247 }
18248 arg2 = static_cast< int >(val2);
18249 {
18250 PyThreadState* __tstate = wxPyBeginAllowThreads();
18251 (arg1)->SetTick(arg2);
18252 wxPyEndAllowThreads(__tstate);
18253 if (PyErr_Occurred()) SWIG_fail;
18254 }
18255 resultobj = SWIG_Py_Void();
18256 return resultobj;
18257 fail:
18258 return NULL;
18259 }
18260
18261
18262 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18263 PyObject *resultobj = 0;
18264 wxSlider *arg1 = (wxSlider *) 0 ;
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_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18274 }
18275 arg1 = reinterpret_cast< wxSlider * >(argp1);
18276 {
18277 PyThreadState* __tstate = wxPyBeginAllowThreads();
18278 (arg1)->ClearSel();
18279 wxPyEndAllowThreads(__tstate);
18280 if (PyErr_Occurred()) SWIG_fail;
18281 }
18282 resultobj = SWIG_Py_Void();
18283 return resultobj;
18284 fail:
18285 return NULL;
18286 }
18287
18288
18289 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(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_GetSelEnd" "', 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)->GetSelEnd();
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_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18318 PyObject *resultobj = 0;
18319 wxSlider *arg1 = (wxSlider *) 0 ;
18320 int result;
18321 void *argp1 = 0 ;
18322 int res1 = 0 ;
18323 PyObject *swig_obj[1] ;
18324
18325 if (!args) SWIG_fail;
18326 swig_obj[0] = args;
18327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18328 if (!SWIG_IsOK(res1)) {
18329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18330 }
18331 arg1 = reinterpret_cast< wxSlider * >(argp1);
18332 {
18333 PyThreadState* __tstate = wxPyBeginAllowThreads();
18334 result = (int)((wxSlider const *)arg1)->GetSelStart();
18335 wxPyEndAllowThreads(__tstate);
18336 if (PyErr_Occurred()) SWIG_fail;
18337 }
18338 resultobj = SWIG_From_int(static_cast< int >(result));
18339 return resultobj;
18340 fail:
18341 return NULL;
18342 }
18343
18344
18345 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18346 PyObject *resultobj = 0;
18347 wxSlider *arg1 = (wxSlider *) 0 ;
18348 int arg2 ;
18349 int arg3 ;
18350 void *argp1 = 0 ;
18351 int res1 = 0 ;
18352 int val2 ;
18353 int ecode2 = 0 ;
18354 int val3 ;
18355 int ecode3 = 0 ;
18356 PyObject * obj0 = 0 ;
18357 PyObject * obj1 = 0 ;
18358 PyObject * obj2 = 0 ;
18359 char * kwnames[] = {
18360 (char *) "self",(char *) "min",(char *) "max", NULL
18361 };
18362
18363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18365 if (!SWIG_IsOK(res1)) {
18366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18367 }
18368 arg1 = reinterpret_cast< wxSlider * >(argp1);
18369 ecode2 = SWIG_AsVal_int(obj1, &val2);
18370 if (!SWIG_IsOK(ecode2)) {
18371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18372 }
18373 arg2 = static_cast< int >(val2);
18374 ecode3 = SWIG_AsVal_int(obj2, &val3);
18375 if (!SWIG_IsOK(ecode3)) {
18376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18377 }
18378 arg3 = static_cast< int >(val3);
18379 {
18380 PyThreadState* __tstate = wxPyBeginAllowThreads();
18381 (arg1)->SetSelection(arg2,arg3);
18382 wxPyEndAllowThreads(__tstate);
18383 if (PyErr_Occurred()) SWIG_fail;
18384 }
18385 resultobj = SWIG_Py_Void();
18386 return resultobj;
18387 fail:
18388 return NULL;
18389 }
18390
18391
18392 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18393 PyObject *resultobj = 0;
18394 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18395 SwigValueWrapper<wxVisualAttributes > result;
18396 int val1 ;
18397 int ecode1 = 0 ;
18398 PyObject * obj0 = 0 ;
18399 char * kwnames[] = {
18400 (char *) "variant", NULL
18401 };
18402
18403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18404 if (obj0) {
18405 ecode1 = SWIG_AsVal_int(obj0, &val1);
18406 if (!SWIG_IsOK(ecode1)) {
18407 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18408 }
18409 arg1 = static_cast< wxWindowVariant >(val1);
18410 }
18411 {
18412 if (!wxPyCheckForApp()) SWIG_fail;
18413 PyThreadState* __tstate = wxPyBeginAllowThreads();
18414 result = wxSlider::GetClassDefaultAttributes(arg1);
18415 wxPyEndAllowThreads(__tstate);
18416 if (PyErr_Occurred()) SWIG_fail;
18417 }
18418 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18419 return resultobj;
18420 fail:
18421 return NULL;
18422 }
18423
18424
18425 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18426 PyObject *obj;
18427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18428 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18429 return SWIG_Py_Void();
18430 }
18431
18432 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18433 return SWIG_Python_InitShadowInstance(args);
18434 }
18435
18436 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18437 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18438 return 1;
18439 }
18440
18441
18442 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18443 PyObject *pyobj = 0;
18444
18445 {
18446 #if wxUSE_UNICODE
18447 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18448 #else
18449 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18450 #endif
18451 }
18452 return pyobj;
18453 }
18454
18455
18456 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18457 PyObject *resultobj = 0;
18458 wxWindow *arg1 = (wxWindow *) 0 ;
18459 int arg2 = (int) -1 ;
18460 wxString const &arg3_defvalue = wxPyEmptyString ;
18461 wxString *arg3 = (wxString *) &arg3_defvalue ;
18462 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18463 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18464 wxSize const &arg5_defvalue = wxDefaultSize ;
18465 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18466 long arg6 = (long) 0 ;
18467 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18468 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18469 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18470 wxString *arg8 = (wxString *) &arg8_defvalue ;
18471 wxToggleButton *result = 0 ;
18472 void *argp1 = 0 ;
18473 int res1 = 0 ;
18474 int val2 ;
18475 int ecode2 = 0 ;
18476 bool temp3 = false ;
18477 wxPoint temp4 ;
18478 wxSize temp5 ;
18479 long val6 ;
18480 int ecode6 = 0 ;
18481 void *argp7 = 0 ;
18482 int res7 = 0 ;
18483 bool temp8 = false ;
18484 PyObject * obj0 = 0 ;
18485 PyObject * obj1 = 0 ;
18486 PyObject * obj2 = 0 ;
18487 PyObject * obj3 = 0 ;
18488 PyObject * obj4 = 0 ;
18489 PyObject * obj5 = 0 ;
18490 PyObject * obj6 = 0 ;
18491 PyObject * obj7 = 0 ;
18492 char * kwnames[] = {
18493 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18494 };
18495
18496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18498 if (!SWIG_IsOK(res1)) {
18499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18500 }
18501 arg1 = reinterpret_cast< wxWindow * >(argp1);
18502 if (obj1) {
18503 ecode2 = SWIG_AsVal_int(obj1, &val2);
18504 if (!SWIG_IsOK(ecode2)) {
18505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18506 }
18507 arg2 = static_cast< int >(val2);
18508 }
18509 if (obj2) {
18510 {
18511 arg3 = wxString_in_helper(obj2);
18512 if (arg3 == NULL) SWIG_fail;
18513 temp3 = true;
18514 }
18515 }
18516 if (obj3) {
18517 {
18518 arg4 = &temp4;
18519 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18520 }
18521 }
18522 if (obj4) {
18523 {
18524 arg5 = &temp5;
18525 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18526 }
18527 }
18528 if (obj5) {
18529 ecode6 = SWIG_AsVal_long(obj5, &val6);
18530 if (!SWIG_IsOK(ecode6)) {
18531 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18532 }
18533 arg6 = static_cast< long >(val6);
18534 }
18535 if (obj6) {
18536 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18537 if (!SWIG_IsOK(res7)) {
18538 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18539 }
18540 if (!argp7) {
18541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18542 }
18543 arg7 = reinterpret_cast< wxValidator * >(argp7);
18544 }
18545 if (obj7) {
18546 {
18547 arg8 = wxString_in_helper(obj7);
18548 if (arg8 == NULL) SWIG_fail;
18549 temp8 = true;
18550 }
18551 }
18552 {
18553 if (!wxPyCheckForApp()) SWIG_fail;
18554 PyThreadState* __tstate = wxPyBeginAllowThreads();
18555 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18556 wxPyEndAllowThreads(__tstate);
18557 if (PyErr_Occurred()) SWIG_fail;
18558 }
18559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18560 {
18561 if (temp3)
18562 delete arg3;
18563 }
18564 {
18565 if (temp8)
18566 delete arg8;
18567 }
18568 return resultobj;
18569 fail:
18570 {
18571 if (temp3)
18572 delete arg3;
18573 }
18574 {
18575 if (temp8)
18576 delete arg8;
18577 }
18578 return NULL;
18579 }
18580
18581
18582 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18583 PyObject *resultobj = 0;
18584 wxToggleButton *result = 0 ;
18585
18586 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18587 {
18588 if (!wxPyCheckForApp()) SWIG_fail;
18589 PyThreadState* __tstate = wxPyBeginAllowThreads();
18590 result = (wxToggleButton *)new wxToggleButton();
18591 wxPyEndAllowThreads(__tstate);
18592 if (PyErr_Occurred()) SWIG_fail;
18593 }
18594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18595 return resultobj;
18596 fail:
18597 return NULL;
18598 }
18599
18600
18601 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18602 PyObject *resultobj = 0;
18603 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18604 wxWindow *arg2 = (wxWindow *) 0 ;
18605 int arg3 = (int) -1 ;
18606 wxString const &arg4_defvalue = wxPyEmptyString ;
18607 wxString *arg4 = (wxString *) &arg4_defvalue ;
18608 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18609 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18610 wxSize const &arg6_defvalue = wxDefaultSize ;
18611 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18612 long arg7 = (long) 0 ;
18613 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18614 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18615 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18616 wxString *arg9 = (wxString *) &arg9_defvalue ;
18617 bool result;
18618 void *argp1 = 0 ;
18619 int res1 = 0 ;
18620 void *argp2 = 0 ;
18621 int res2 = 0 ;
18622 int val3 ;
18623 int ecode3 = 0 ;
18624 bool temp4 = false ;
18625 wxPoint temp5 ;
18626 wxSize temp6 ;
18627 long val7 ;
18628 int ecode7 = 0 ;
18629 void *argp8 = 0 ;
18630 int res8 = 0 ;
18631 bool temp9 = false ;
18632 PyObject * obj0 = 0 ;
18633 PyObject * obj1 = 0 ;
18634 PyObject * obj2 = 0 ;
18635 PyObject * obj3 = 0 ;
18636 PyObject * obj4 = 0 ;
18637 PyObject * obj5 = 0 ;
18638 PyObject * obj6 = 0 ;
18639 PyObject * obj7 = 0 ;
18640 PyObject * obj8 = 0 ;
18641 char * kwnames[] = {
18642 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18643 };
18644
18645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18647 if (!SWIG_IsOK(res1)) {
18648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18649 }
18650 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18651 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18652 if (!SWIG_IsOK(res2)) {
18653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18654 }
18655 arg2 = reinterpret_cast< wxWindow * >(argp2);
18656 if (obj2) {
18657 ecode3 = SWIG_AsVal_int(obj2, &val3);
18658 if (!SWIG_IsOK(ecode3)) {
18659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18660 }
18661 arg3 = static_cast< int >(val3);
18662 }
18663 if (obj3) {
18664 {
18665 arg4 = wxString_in_helper(obj3);
18666 if (arg4 == NULL) SWIG_fail;
18667 temp4 = true;
18668 }
18669 }
18670 if (obj4) {
18671 {
18672 arg5 = &temp5;
18673 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18674 }
18675 }
18676 if (obj5) {
18677 {
18678 arg6 = &temp6;
18679 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18680 }
18681 }
18682 if (obj6) {
18683 ecode7 = SWIG_AsVal_long(obj6, &val7);
18684 if (!SWIG_IsOK(ecode7)) {
18685 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18686 }
18687 arg7 = static_cast< long >(val7);
18688 }
18689 if (obj7) {
18690 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18691 if (!SWIG_IsOK(res8)) {
18692 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18693 }
18694 if (!argp8) {
18695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18696 }
18697 arg8 = reinterpret_cast< wxValidator * >(argp8);
18698 }
18699 if (obj8) {
18700 {
18701 arg9 = wxString_in_helper(obj8);
18702 if (arg9 == NULL) SWIG_fail;
18703 temp9 = true;
18704 }
18705 }
18706 {
18707 PyThreadState* __tstate = wxPyBeginAllowThreads();
18708 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18709 wxPyEndAllowThreads(__tstate);
18710 if (PyErr_Occurred()) SWIG_fail;
18711 }
18712 {
18713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18714 }
18715 {
18716 if (temp4)
18717 delete arg4;
18718 }
18719 {
18720 if (temp9)
18721 delete arg9;
18722 }
18723 return resultobj;
18724 fail:
18725 {
18726 if (temp4)
18727 delete arg4;
18728 }
18729 {
18730 if (temp9)
18731 delete arg9;
18732 }
18733 return NULL;
18734 }
18735
18736
18737 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18738 PyObject *resultobj = 0;
18739 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18740 bool arg2 ;
18741 void *argp1 = 0 ;
18742 int res1 = 0 ;
18743 bool val2 ;
18744 int ecode2 = 0 ;
18745 PyObject * obj0 = 0 ;
18746 PyObject * obj1 = 0 ;
18747 char * kwnames[] = {
18748 (char *) "self",(char *) "value", NULL
18749 };
18750
18751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18753 if (!SWIG_IsOK(res1)) {
18754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18755 }
18756 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18757 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18758 if (!SWIG_IsOK(ecode2)) {
18759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18760 }
18761 arg2 = static_cast< bool >(val2);
18762 {
18763 PyThreadState* __tstate = wxPyBeginAllowThreads();
18764 (arg1)->SetValue(arg2);
18765 wxPyEndAllowThreads(__tstate);
18766 if (PyErr_Occurred()) SWIG_fail;
18767 }
18768 resultobj = SWIG_Py_Void();
18769 return resultobj;
18770 fail:
18771 return NULL;
18772 }
18773
18774
18775 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18776 PyObject *resultobj = 0;
18777 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18778 bool result;
18779 void *argp1 = 0 ;
18780 int res1 = 0 ;
18781 PyObject *swig_obj[1] ;
18782
18783 if (!args) SWIG_fail;
18784 swig_obj[0] = args;
18785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18786 if (!SWIG_IsOK(res1)) {
18787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18788 }
18789 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18790 {
18791 PyThreadState* __tstate = wxPyBeginAllowThreads();
18792 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18793 wxPyEndAllowThreads(__tstate);
18794 if (PyErr_Occurred()) SWIG_fail;
18795 }
18796 {
18797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18798 }
18799 return resultobj;
18800 fail:
18801 return NULL;
18802 }
18803
18804
18805 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18806 PyObject *resultobj = 0;
18807 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18808 SwigValueWrapper<wxVisualAttributes > result;
18809 int val1 ;
18810 int ecode1 = 0 ;
18811 PyObject * obj0 = 0 ;
18812 char * kwnames[] = {
18813 (char *) "variant", NULL
18814 };
18815
18816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18817 if (obj0) {
18818 ecode1 = SWIG_AsVal_int(obj0, &val1);
18819 if (!SWIG_IsOK(ecode1)) {
18820 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18821 }
18822 arg1 = static_cast< wxWindowVariant >(val1);
18823 }
18824 {
18825 if (!wxPyCheckForApp()) SWIG_fail;
18826 PyThreadState* __tstate = wxPyBeginAllowThreads();
18827 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18828 wxPyEndAllowThreads(__tstate);
18829 if (PyErr_Occurred()) SWIG_fail;
18830 }
18831 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18832 return resultobj;
18833 fail:
18834 return NULL;
18835 }
18836
18837
18838 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18839 PyObject *obj;
18840 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18841 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18842 return SWIG_Py_Void();
18843 }
18844
18845 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18846 return SWIG_Python_InitShadowInstance(args);
18847 }
18848
18849 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18850 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18851 return 1;
18852 }
18853
18854
18855 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18856 PyObject *pyobj = 0;
18857
18858 {
18859 #if wxUSE_UNICODE
18860 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18861 #else
18862 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18863 #endif
18864 }
18865 return pyobj;
18866 }
18867
18868
18869 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18870 PyObject *resultobj = 0;
18871 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18872 size_t result;
18873 void *argp1 = 0 ;
18874 int res1 = 0 ;
18875 PyObject *swig_obj[1] ;
18876
18877 if (!args) SWIG_fail;
18878 swig_obj[0] = args;
18879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18880 if (!SWIG_IsOK(res1)) {
18881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18882 }
18883 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18884 {
18885 PyThreadState* __tstate = wxPyBeginAllowThreads();
18886 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18887 wxPyEndAllowThreads(__tstate);
18888 if (PyErr_Occurred()) SWIG_fail;
18889 }
18890 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18891 return resultobj;
18892 fail:
18893 return NULL;
18894 }
18895
18896
18897 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18898 PyObject *resultobj = 0;
18899 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18900 size_t arg2 ;
18901 wxWindow *result = 0 ;
18902 void *argp1 = 0 ;
18903 int res1 = 0 ;
18904 size_t val2 ;
18905 int ecode2 = 0 ;
18906 PyObject * obj0 = 0 ;
18907 PyObject * obj1 = 0 ;
18908 char * kwnames[] = {
18909 (char *) "self",(char *) "n", NULL
18910 };
18911
18912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18914 if (!SWIG_IsOK(res1)) {
18915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18916 }
18917 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18918 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18919 if (!SWIG_IsOK(ecode2)) {
18920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18921 }
18922 arg2 = static_cast< size_t >(val2);
18923 {
18924 PyThreadState* __tstate = wxPyBeginAllowThreads();
18925 result = (wxWindow *)(arg1)->GetPage(arg2);
18926 wxPyEndAllowThreads(__tstate);
18927 if (PyErr_Occurred()) SWIG_fail;
18928 }
18929 {
18930 resultobj = wxPyMake_wxObject(result, 0);
18931 }
18932 return resultobj;
18933 fail:
18934 return NULL;
18935 }
18936
18937
18938 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18939 PyObject *resultobj = 0;
18940 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18941 wxWindow *result = 0 ;
18942 void *argp1 = 0 ;
18943 int res1 = 0 ;
18944 PyObject *swig_obj[1] ;
18945
18946 if (!args) SWIG_fail;
18947 swig_obj[0] = args;
18948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18949 if (!SWIG_IsOK(res1)) {
18950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18951 }
18952 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18953 {
18954 PyThreadState* __tstate = wxPyBeginAllowThreads();
18955 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
18956 wxPyEndAllowThreads(__tstate);
18957 if (PyErr_Occurred()) SWIG_fail;
18958 }
18959 {
18960 resultobj = wxPyMake_wxObject(result, 0);
18961 }
18962 return resultobj;
18963 fail:
18964 return NULL;
18965 }
18966
18967
18968 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18969 PyObject *resultobj = 0;
18970 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18971 int result;
18972 void *argp1 = 0 ;
18973 int res1 = 0 ;
18974 PyObject *swig_obj[1] ;
18975
18976 if (!args) SWIG_fail;
18977 swig_obj[0] = args;
18978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18979 if (!SWIG_IsOK(res1)) {
18980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18981 }
18982 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18983 {
18984 PyThreadState* __tstate = wxPyBeginAllowThreads();
18985 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
18986 wxPyEndAllowThreads(__tstate);
18987 if (PyErr_Occurred()) SWIG_fail;
18988 }
18989 resultobj = SWIG_From_int(static_cast< int >(result));
18990 return resultobj;
18991 fail:
18992 return NULL;
18993 }
18994
18995
18996 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18997 PyObject *resultobj = 0;
18998 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18999 size_t arg2 ;
19000 wxString *arg3 = 0 ;
19001 bool result;
19002 void *argp1 = 0 ;
19003 int res1 = 0 ;
19004 size_t val2 ;
19005 int ecode2 = 0 ;
19006 bool temp3 = false ;
19007 PyObject * obj0 = 0 ;
19008 PyObject * obj1 = 0 ;
19009 PyObject * obj2 = 0 ;
19010 char * kwnames[] = {
19011 (char *) "self",(char *) "n",(char *) "strText", NULL
19012 };
19013
19014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19016 if (!SWIG_IsOK(res1)) {
19017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19018 }
19019 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19020 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19021 if (!SWIG_IsOK(ecode2)) {
19022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19023 }
19024 arg2 = static_cast< size_t >(val2);
19025 {
19026 arg3 = wxString_in_helper(obj2);
19027 if (arg3 == NULL) SWIG_fail;
19028 temp3 = true;
19029 }
19030 {
19031 PyThreadState* __tstate = wxPyBeginAllowThreads();
19032 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19033 wxPyEndAllowThreads(__tstate);
19034 if (PyErr_Occurred()) SWIG_fail;
19035 }
19036 {
19037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19038 }
19039 {
19040 if (temp3)
19041 delete arg3;
19042 }
19043 return resultobj;
19044 fail:
19045 {
19046 if (temp3)
19047 delete arg3;
19048 }
19049 return NULL;
19050 }
19051
19052
19053 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19054 PyObject *resultobj = 0;
19055 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19056 size_t arg2 ;
19057 wxString result;
19058 void *argp1 = 0 ;
19059 int res1 = 0 ;
19060 size_t val2 ;
19061 int ecode2 = 0 ;
19062 PyObject * obj0 = 0 ;
19063 PyObject * obj1 = 0 ;
19064 char * kwnames[] = {
19065 (char *) "self",(char *) "n", NULL
19066 };
19067
19068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19070 if (!SWIG_IsOK(res1)) {
19071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19072 }
19073 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19074 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19075 if (!SWIG_IsOK(ecode2)) {
19076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19077 }
19078 arg2 = static_cast< size_t >(val2);
19079 {
19080 PyThreadState* __tstate = wxPyBeginAllowThreads();
19081 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19082 wxPyEndAllowThreads(__tstate);
19083 if (PyErr_Occurred()) SWIG_fail;
19084 }
19085 {
19086 #if wxUSE_UNICODE
19087 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19088 #else
19089 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19090 #endif
19091 }
19092 return resultobj;
19093 fail:
19094 return NULL;
19095 }
19096
19097
19098 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19099 PyObject *resultobj = 0;
19100 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19101 wxImageList *arg2 = (wxImageList *) 0 ;
19102 void *argp1 = 0 ;
19103 int res1 = 0 ;
19104 void *argp2 = 0 ;
19105 int res2 = 0 ;
19106 PyObject * obj0 = 0 ;
19107 PyObject * obj1 = 0 ;
19108 char * kwnames[] = {
19109 (char *) "self",(char *) "imageList", NULL
19110 };
19111
19112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19114 if (!SWIG_IsOK(res1)) {
19115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19116 }
19117 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19118 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19119 if (!SWIG_IsOK(res2)) {
19120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19121 }
19122 arg2 = reinterpret_cast< wxImageList * >(argp2);
19123 {
19124 PyThreadState* __tstate = wxPyBeginAllowThreads();
19125 (arg1)->SetImageList(arg2);
19126 wxPyEndAllowThreads(__tstate);
19127 if (PyErr_Occurred()) SWIG_fail;
19128 }
19129 resultobj = SWIG_Py_Void();
19130 return resultobj;
19131 fail:
19132 return NULL;
19133 }
19134
19135
19136 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19137 PyObject *resultobj = 0;
19138 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19139 wxImageList *arg2 = (wxImageList *) 0 ;
19140 void *argp1 = 0 ;
19141 int res1 = 0 ;
19142 int res2 = 0 ;
19143 PyObject * obj0 = 0 ;
19144 PyObject * obj1 = 0 ;
19145 char * kwnames[] = {
19146 (char *) "self",(char *) "imageList", NULL
19147 };
19148
19149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19151 if (!SWIG_IsOK(res1)) {
19152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19153 }
19154 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19155 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19156 if (!SWIG_IsOK(res2)) {
19157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19158 }
19159 {
19160 PyThreadState* __tstate = wxPyBeginAllowThreads();
19161 (arg1)->AssignImageList(arg2);
19162 wxPyEndAllowThreads(__tstate);
19163 if (PyErr_Occurred()) SWIG_fail;
19164 }
19165 resultobj = SWIG_Py_Void();
19166 return resultobj;
19167 fail:
19168 return NULL;
19169 }
19170
19171
19172 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19173 PyObject *resultobj = 0;
19174 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19175 wxImageList *result = 0 ;
19176 void *argp1 = 0 ;
19177 int res1 = 0 ;
19178 PyObject *swig_obj[1] ;
19179
19180 if (!args) SWIG_fail;
19181 swig_obj[0] = args;
19182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19183 if (!SWIG_IsOK(res1)) {
19184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19185 }
19186 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19187 {
19188 PyThreadState* __tstate = wxPyBeginAllowThreads();
19189 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19190 wxPyEndAllowThreads(__tstate);
19191 if (PyErr_Occurred()) SWIG_fail;
19192 }
19193 {
19194 resultobj = wxPyMake_wxObject(result, (bool)0);
19195 }
19196 return resultobj;
19197 fail:
19198 return NULL;
19199 }
19200
19201
19202 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19203 PyObject *resultobj = 0;
19204 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19205 size_t arg2 ;
19206 int result;
19207 void *argp1 = 0 ;
19208 int res1 = 0 ;
19209 size_t val2 ;
19210 int ecode2 = 0 ;
19211 PyObject * obj0 = 0 ;
19212 PyObject * obj1 = 0 ;
19213 char * kwnames[] = {
19214 (char *) "self",(char *) "n", NULL
19215 };
19216
19217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19219 if (!SWIG_IsOK(res1)) {
19220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19221 }
19222 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19223 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19224 if (!SWIG_IsOK(ecode2)) {
19225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19226 }
19227 arg2 = static_cast< size_t >(val2);
19228 {
19229 PyThreadState* __tstate = wxPyBeginAllowThreads();
19230 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19231 wxPyEndAllowThreads(__tstate);
19232 if (PyErr_Occurred()) SWIG_fail;
19233 }
19234 resultobj = SWIG_From_int(static_cast< int >(result));
19235 return resultobj;
19236 fail:
19237 return NULL;
19238 }
19239
19240
19241 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19242 PyObject *resultobj = 0;
19243 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19244 size_t arg2 ;
19245 int arg3 ;
19246 bool result;
19247 void *argp1 = 0 ;
19248 int res1 = 0 ;
19249 size_t val2 ;
19250 int ecode2 = 0 ;
19251 int val3 ;
19252 int ecode3 = 0 ;
19253 PyObject * obj0 = 0 ;
19254 PyObject * obj1 = 0 ;
19255 PyObject * obj2 = 0 ;
19256 char * kwnames[] = {
19257 (char *) "self",(char *) "n",(char *) "imageId", NULL
19258 };
19259
19260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19262 if (!SWIG_IsOK(res1)) {
19263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19264 }
19265 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19266 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19267 if (!SWIG_IsOK(ecode2)) {
19268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19269 }
19270 arg2 = static_cast< size_t >(val2);
19271 ecode3 = SWIG_AsVal_int(obj2, &val3);
19272 if (!SWIG_IsOK(ecode3)) {
19273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19274 }
19275 arg3 = static_cast< int >(val3);
19276 {
19277 PyThreadState* __tstate = wxPyBeginAllowThreads();
19278 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19279 wxPyEndAllowThreads(__tstate);
19280 if (PyErr_Occurred()) SWIG_fail;
19281 }
19282 {
19283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19284 }
19285 return resultobj;
19286 fail:
19287 return NULL;
19288 }
19289
19290
19291 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19292 PyObject *resultobj = 0;
19293 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19294 wxSize *arg2 = 0 ;
19295 void *argp1 = 0 ;
19296 int res1 = 0 ;
19297 wxSize temp2 ;
19298 PyObject * obj0 = 0 ;
19299 PyObject * obj1 = 0 ;
19300 char * kwnames[] = {
19301 (char *) "self",(char *) "size", NULL
19302 };
19303
19304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19306 if (!SWIG_IsOK(res1)) {
19307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19308 }
19309 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19310 {
19311 arg2 = &temp2;
19312 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19313 }
19314 {
19315 PyThreadState* __tstate = wxPyBeginAllowThreads();
19316 (arg1)->SetPageSize((wxSize const &)*arg2);
19317 wxPyEndAllowThreads(__tstate);
19318 if (PyErr_Occurred()) SWIG_fail;
19319 }
19320 resultobj = SWIG_Py_Void();
19321 return resultobj;
19322 fail:
19323 return NULL;
19324 }
19325
19326
19327 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19328 PyObject *resultobj = 0;
19329 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19330 wxSize *arg2 = 0 ;
19331 wxSize result;
19332 void *argp1 = 0 ;
19333 int res1 = 0 ;
19334 wxSize temp2 ;
19335 PyObject * obj0 = 0 ;
19336 PyObject * obj1 = 0 ;
19337 char * kwnames[] = {
19338 (char *) "self",(char *) "sizePage", NULL
19339 };
19340
19341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19343 if (!SWIG_IsOK(res1)) {
19344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19345 }
19346 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19347 {
19348 arg2 = &temp2;
19349 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19350 }
19351 {
19352 PyThreadState* __tstate = wxPyBeginAllowThreads();
19353 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19354 wxPyEndAllowThreads(__tstate);
19355 if (PyErr_Occurred()) SWIG_fail;
19356 }
19357 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19358 return resultobj;
19359 fail:
19360 return NULL;
19361 }
19362
19363
19364 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19365 PyObject *resultobj = 0;
19366 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19367 unsigned int result;
19368 void *argp1 = 0 ;
19369 int res1 = 0 ;
19370 PyObject *swig_obj[1] ;
19371
19372 if (!args) SWIG_fail;
19373 swig_obj[0] = args;
19374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19375 if (!SWIG_IsOK(res1)) {
19376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19377 }
19378 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19379 {
19380 PyThreadState* __tstate = wxPyBeginAllowThreads();
19381 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19382 wxPyEndAllowThreads(__tstate);
19383 if (PyErr_Occurred()) SWIG_fail;
19384 }
19385 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19386 return resultobj;
19387 fail:
19388 return NULL;
19389 }
19390
19391
19392 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19393 PyObject *resultobj = 0;
19394 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19395 unsigned int arg2 ;
19396 void *argp1 = 0 ;
19397 int res1 = 0 ;
19398 unsigned int val2 ;
19399 int ecode2 = 0 ;
19400 PyObject * obj0 = 0 ;
19401 PyObject * obj1 = 0 ;
19402 char * kwnames[] = {
19403 (char *) "self",(char *) "internalBorder", NULL
19404 };
19405
19406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19408 if (!SWIG_IsOK(res1)) {
19409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19410 }
19411 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19412 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19413 if (!SWIG_IsOK(ecode2)) {
19414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19415 }
19416 arg2 = static_cast< unsigned int >(val2);
19417 {
19418 PyThreadState* __tstate = wxPyBeginAllowThreads();
19419 (arg1)->SetInternalBorder(arg2);
19420 wxPyEndAllowThreads(__tstate);
19421 if (PyErr_Occurred()) SWIG_fail;
19422 }
19423 resultobj = SWIG_Py_Void();
19424 return resultobj;
19425 fail:
19426 return NULL;
19427 }
19428
19429
19430 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19431 PyObject *resultobj = 0;
19432 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19433 bool result;
19434 void *argp1 = 0 ;
19435 int res1 = 0 ;
19436 PyObject *swig_obj[1] ;
19437
19438 if (!args) SWIG_fail;
19439 swig_obj[0] = args;
19440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19441 if (!SWIG_IsOK(res1)) {
19442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19443 }
19444 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19445 {
19446 PyThreadState* __tstate = wxPyBeginAllowThreads();
19447 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19448 wxPyEndAllowThreads(__tstate);
19449 if (PyErr_Occurred()) SWIG_fail;
19450 }
19451 {
19452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19453 }
19454 return resultobj;
19455 fail:
19456 return NULL;
19457 }
19458
19459
19460 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19461 PyObject *resultobj = 0;
19462 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19463 int arg2 ;
19464 void *argp1 = 0 ;
19465 int res1 = 0 ;
19466 int val2 ;
19467 int ecode2 = 0 ;
19468 PyObject * obj0 = 0 ;
19469 PyObject * obj1 = 0 ;
19470 char * kwnames[] = {
19471 (char *) "self",(char *) "margin", NULL
19472 };
19473
19474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19476 if (!SWIG_IsOK(res1)) {
19477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19478 }
19479 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19480 ecode2 = SWIG_AsVal_int(obj1, &val2);
19481 if (!SWIG_IsOK(ecode2)) {
19482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19483 }
19484 arg2 = static_cast< int >(val2);
19485 {
19486 PyThreadState* __tstate = wxPyBeginAllowThreads();
19487 (arg1)->SetControlMargin(arg2);
19488 wxPyEndAllowThreads(__tstate);
19489 if (PyErr_Occurred()) SWIG_fail;
19490 }
19491 resultobj = SWIG_Py_Void();
19492 return resultobj;
19493 fail:
19494 return NULL;
19495 }
19496
19497
19498 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19499 PyObject *resultobj = 0;
19500 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19501 int result;
19502 void *argp1 = 0 ;
19503 int res1 = 0 ;
19504 PyObject *swig_obj[1] ;
19505
19506 if (!args) SWIG_fail;
19507 swig_obj[0] = args;
19508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19509 if (!SWIG_IsOK(res1)) {
19510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19511 }
19512 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19513 {
19514 PyThreadState* __tstate = wxPyBeginAllowThreads();
19515 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19516 wxPyEndAllowThreads(__tstate);
19517 if (PyErr_Occurred()) SWIG_fail;
19518 }
19519 resultobj = SWIG_From_int(static_cast< int >(result));
19520 return resultobj;
19521 fail:
19522 return NULL;
19523 }
19524
19525
19526 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19527 PyObject *resultobj = 0;
19528 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19529 bool arg2 ;
19530 void *argp1 = 0 ;
19531 int res1 = 0 ;
19532 bool val2 ;
19533 int ecode2 = 0 ;
19534 PyObject * obj0 = 0 ;
19535 PyObject * obj1 = 0 ;
19536 char * kwnames[] = {
19537 (char *) "self",(char *) "fit", NULL
19538 };
19539
19540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19542 if (!SWIG_IsOK(res1)) {
19543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19544 }
19545 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19546 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19547 if (!SWIG_IsOK(ecode2)) {
19548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19549 }
19550 arg2 = static_cast< bool >(val2);
19551 {
19552 PyThreadState* __tstate = wxPyBeginAllowThreads();
19553 (arg1)->SetFitToCurrentPage(arg2);
19554 wxPyEndAllowThreads(__tstate);
19555 if (PyErr_Occurred()) SWIG_fail;
19556 }
19557 resultobj = SWIG_Py_Void();
19558 return resultobj;
19559 fail:
19560 return NULL;
19561 }
19562
19563
19564 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19565 PyObject *resultobj = 0;
19566 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19567 bool result;
19568 void *argp1 = 0 ;
19569 int res1 = 0 ;
19570 PyObject *swig_obj[1] ;
19571
19572 if (!args) SWIG_fail;
19573 swig_obj[0] = args;
19574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19575 if (!SWIG_IsOK(res1)) {
19576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19577 }
19578 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19579 {
19580 PyThreadState* __tstate = wxPyBeginAllowThreads();
19581 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19582 wxPyEndAllowThreads(__tstate);
19583 if (PyErr_Occurred()) SWIG_fail;
19584 }
19585 {
19586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19587 }
19588 return resultobj;
19589 fail:
19590 return NULL;
19591 }
19592
19593
19594 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19595 PyObject *resultobj = 0;
19596 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19597 wxSizer *result = 0 ;
19598 void *argp1 = 0 ;
19599 int res1 = 0 ;
19600 PyObject *swig_obj[1] ;
19601
19602 if (!args) SWIG_fail;
19603 swig_obj[0] = args;
19604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19605 if (!SWIG_IsOK(res1)) {
19606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19607 }
19608 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19609 {
19610 PyThreadState* __tstate = wxPyBeginAllowThreads();
19611 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19612 wxPyEndAllowThreads(__tstate);
19613 if (PyErr_Occurred()) SWIG_fail;
19614 }
19615 {
19616 resultobj = wxPyMake_wxObject(result, (bool)0);
19617 }
19618 return resultobj;
19619 fail:
19620 return NULL;
19621 }
19622
19623
19624 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19625 PyObject *resultobj = 0;
19626 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19627 size_t arg2 ;
19628 bool result;
19629 void *argp1 = 0 ;
19630 int res1 = 0 ;
19631 size_t val2 ;
19632 int ecode2 = 0 ;
19633 PyObject * obj0 = 0 ;
19634 PyObject * obj1 = 0 ;
19635 char * kwnames[] = {
19636 (char *) "self",(char *) "n", NULL
19637 };
19638
19639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19641 if (!SWIG_IsOK(res1)) {
19642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19643 }
19644 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19645 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19646 if (!SWIG_IsOK(ecode2)) {
19647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19648 }
19649 arg2 = static_cast< size_t >(val2);
19650 {
19651 PyThreadState* __tstate = wxPyBeginAllowThreads();
19652 result = (bool)(arg1)->DeletePage(arg2);
19653 wxPyEndAllowThreads(__tstate);
19654 if (PyErr_Occurred()) SWIG_fail;
19655 }
19656 {
19657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19658 }
19659 return resultobj;
19660 fail:
19661 return NULL;
19662 }
19663
19664
19665 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19666 PyObject *resultobj = 0;
19667 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19668 size_t arg2 ;
19669 bool result;
19670 void *argp1 = 0 ;
19671 int res1 = 0 ;
19672 size_t val2 ;
19673 int ecode2 = 0 ;
19674 PyObject * obj0 = 0 ;
19675 PyObject * obj1 = 0 ;
19676 char * kwnames[] = {
19677 (char *) "self",(char *) "n", NULL
19678 };
19679
19680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19682 if (!SWIG_IsOK(res1)) {
19683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19684 }
19685 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19686 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19687 if (!SWIG_IsOK(ecode2)) {
19688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19689 }
19690 arg2 = static_cast< size_t >(val2);
19691 {
19692 PyThreadState* __tstate = wxPyBeginAllowThreads();
19693 result = (bool)(arg1)->RemovePage(arg2);
19694 wxPyEndAllowThreads(__tstate);
19695 if (PyErr_Occurred()) SWIG_fail;
19696 }
19697 {
19698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19699 }
19700 return resultobj;
19701 fail:
19702 return NULL;
19703 }
19704
19705
19706 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19707 PyObject *resultobj = 0;
19708 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19709 bool result;
19710 void *argp1 = 0 ;
19711 int res1 = 0 ;
19712 PyObject *swig_obj[1] ;
19713
19714 if (!args) SWIG_fail;
19715 swig_obj[0] = args;
19716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19717 if (!SWIG_IsOK(res1)) {
19718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19719 }
19720 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19721 {
19722 PyThreadState* __tstate = wxPyBeginAllowThreads();
19723 result = (bool)(arg1)->DeleteAllPages();
19724 wxPyEndAllowThreads(__tstate);
19725 if (PyErr_Occurred()) SWIG_fail;
19726 }
19727 {
19728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19729 }
19730 return resultobj;
19731 fail:
19732 return NULL;
19733 }
19734
19735
19736 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19737 PyObject *resultobj = 0;
19738 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19739 wxWindow *arg2 = (wxWindow *) 0 ;
19740 wxString *arg3 = 0 ;
19741 bool arg4 = (bool) false ;
19742 int arg5 = (int) -1 ;
19743 bool result;
19744 void *argp1 = 0 ;
19745 int res1 = 0 ;
19746 void *argp2 = 0 ;
19747 int res2 = 0 ;
19748 bool temp3 = false ;
19749 bool val4 ;
19750 int ecode4 = 0 ;
19751 int val5 ;
19752 int ecode5 = 0 ;
19753 PyObject * obj0 = 0 ;
19754 PyObject * obj1 = 0 ;
19755 PyObject * obj2 = 0 ;
19756 PyObject * obj3 = 0 ;
19757 PyObject * obj4 = 0 ;
19758 char * kwnames[] = {
19759 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19760 };
19761
19762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19764 if (!SWIG_IsOK(res1)) {
19765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19766 }
19767 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19768 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19769 if (!SWIG_IsOK(res2)) {
19770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19771 }
19772 arg2 = reinterpret_cast< wxWindow * >(argp2);
19773 {
19774 arg3 = wxString_in_helper(obj2);
19775 if (arg3 == NULL) SWIG_fail;
19776 temp3 = true;
19777 }
19778 if (obj3) {
19779 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19780 if (!SWIG_IsOK(ecode4)) {
19781 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19782 }
19783 arg4 = static_cast< bool >(val4);
19784 }
19785 if (obj4) {
19786 ecode5 = SWIG_AsVal_int(obj4, &val5);
19787 if (!SWIG_IsOK(ecode5)) {
19788 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19789 }
19790 arg5 = static_cast< int >(val5);
19791 }
19792 {
19793 PyThreadState* __tstate = wxPyBeginAllowThreads();
19794 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19795 wxPyEndAllowThreads(__tstate);
19796 if (PyErr_Occurred()) SWIG_fail;
19797 }
19798 {
19799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19800 }
19801 {
19802 if (temp3)
19803 delete arg3;
19804 }
19805 return resultobj;
19806 fail:
19807 {
19808 if (temp3)
19809 delete arg3;
19810 }
19811 return NULL;
19812 }
19813
19814
19815 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19816 PyObject *resultobj = 0;
19817 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19818 size_t arg2 ;
19819 wxWindow *arg3 = (wxWindow *) 0 ;
19820 wxString *arg4 = 0 ;
19821 bool arg5 = (bool) false ;
19822 int arg6 = (int) -1 ;
19823 bool result;
19824 void *argp1 = 0 ;
19825 int res1 = 0 ;
19826 size_t val2 ;
19827 int ecode2 = 0 ;
19828 void *argp3 = 0 ;
19829 int res3 = 0 ;
19830 bool temp4 = false ;
19831 bool val5 ;
19832 int ecode5 = 0 ;
19833 int val6 ;
19834 int ecode6 = 0 ;
19835 PyObject * obj0 = 0 ;
19836 PyObject * obj1 = 0 ;
19837 PyObject * obj2 = 0 ;
19838 PyObject * obj3 = 0 ;
19839 PyObject * obj4 = 0 ;
19840 PyObject * obj5 = 0 ;
19841 char * kwnames[] = {
19842 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19843 };
19844
19845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19847 if (!SWIG_IsOK(res1)) {
19848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19849 }
19850 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19851 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19852 if (!SWIG_IsOK(ecode2)) {
19853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19854 }
19855 arg2 = static_cast< size_t >(val2);
19856 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19857 if (!SWIG_IsOK(res3)) {
19858 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19859 }
19860 arg3 = reinterpret_cast< wxWindow * >(argp3);
19861 {
19862 arg4 = wxString_in_helper(obj3);
19863 if (arg4 == NULL) SWIG_fail;
19864 temp4 = true;
19865 }
19866 if (obj4) {
19867 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19868 if (!SWIG_IsOK(ecode5)) {
19869 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19870 }
19871 arg5 = static_cast< bool >(val5);
19872 }
19873 if (obj5) {
19874 ecode6 = SWIG_AsVal_int(obj5, &val6);
19875 if (!SWIG_IsOK(ecode6)) {
19876 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19877 }
19878 arg6 = static_cast< int >(val6);
19879 }
19880 {
19881 PyThreadState* __tstate = wxPyBeginAllowThreads();
19882 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19883 wxPyEndAllowThreads(__tstate);
19884 if (PyErr_Occurred()) SWIG_fail;
19885 }
19886 {
19887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19888 }
19889 {
19890 if (temp4)
19891 delete arg4;
19892 }
19893 return resultobj;
19894 fail:
19895 {
19896 if (temp4)
19897 delete arg4;
19898 }
19899 return NULL;
19900 }
19901
19902
19903 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19904 PyObject *resultobj = 0;
19905 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19906 size_t arg2 ;
19907 int result;
19908 void *argp1 = 0 ;
19909 int res1 = 0 ;
19910 size_t val2 ;
19911 int ecode2 = 0 ;
19912 PyObject * obj0 = 0 ;
19913 PyObject * obj1 = 0 ;
19914 char * kwnames[] = {
19915 (char *) "self",(char *) "n", NULL
19916 };
19917
19918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19920 if (!SWIG_IsOK(res1)) {
19921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19922 }
19923 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19924 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19925 if (!SWIG_IsOK(ecode2)) {
19926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19927 }
19928 arg2 = static_cast< size_t >(val2);
19929 {
19930 PyThreadState* __tstate = wxPyBeginAllowThreads();
19931 result = (int)(arg1)->SetSelection(arg2);
19932 wxPyEndAllowThreads(__tstate);
19933 if (PyErr_Occurred()) SWIG_fail;
19934 }
19935 resultobj = SWIG_From_int(static_cast< int >(result));
19936 return resultobj;
19937 fail:
19938 return NULL;
19939 }
19940
19941
19942 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19943 PyObject *resultobj = 0;
19944 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19945 bool arg2 = (bool) true ;
19946 void *argp1 = 0 ;
19947 int res1 = 0 ;
19948 bool val2 ;
19949 int ecode2 = 0 ;
19950 PyObject * obj0 = 0 ;
19951 PyObject * obj1 = 0 ;
19952 char * kwnames[] = {
19953 (char *) "self",(char *) "forward", NULL
19954 };
19955
19956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19958 if (!SWIG_IsOK(res1)) {
19959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19960 }
19961 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19962 if (obj1) {
19963 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19964 if (!SWIG_IsOK(ecode2)) {
19965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
19966 }
19967 arg2 = static_cast< bool >(val2);
19968 }
19969 {
19970 PyThreadState* __tstate = wxPyBeginAllowThreads();
19971 (arg1)->AdvanceSelection(arg2);
19972 wxPyEndAllowThreads(__tstate);
19973 if (PyErr_Occurred()) SWIG_fail;
19974 }
19975 resultobj = SWIG_Py_Void();
19976 return resultobj;
19977 fail:
19978 return NULL;
19979 }
19980
19981
19982 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19983 PyObject *resultobj = 0;
19984 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19985 SwigValueWrapper<wxVisualAttributes > result;
19986 int val1 ;
19987 int ecode1 = 0 ;
19988 PyObject * obj0 = 0 ;
19989 char * kwnames[] = {
19990 (char *) "variant", NULL
19991 };
19992
19993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19994 if (obj0) {
19995 ecode1 = SWIG_AsVal_int(obj0, &val1);
19996 if (!SWIG_IsOK(ecode1)) {
19997 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19998 }
19999 arg1 = static_cast< wxWindowVariant >(val1);
20000 }
20001 {
20002 if (!wxPyCheckForApp()) SWIG_fail;
20003 PyThreadState* __tstate = wxPyBeginAllowThreads();
20004 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20005 wxPyEndAllowThreads(__tstate);
20006 if (PyErr_Occurred()) SWIG_fail;
20007 }
20008 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20009 return resultobj;
20010 fail:
20011 return NULL;
20012 }
20013
20014
20015 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20016 PyObject *obj;
20017 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20018 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20019 return SWIG_Py_Void();
20020 }
20021
20022 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20023 PyObject *resultobj = 0;
20024 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20025 int arg2 = (int) 0 ;
20026 int arg3 = (int) -1 ;
20027 int arg4 = (int) -1 ;
20028 wxBookCtrlBaseEvent *result = 0 ;
20029 int val1 ;
20030 int ecode1 = 0 ;
20031 int val2 ;
20032 int ecode2 = 0 ;
20033 int val3 ;
20034 int ecode3 = 0 ;
20035 int val4 ;
20036 int ecode4 = 0 ;
20037 PyObject * obj0 = 0 ;
20038 PyObject * obj1 = 0 ;
20039 PyObject * obj2 = 0 ;
20040 PyObject * obj3 = 0 ;
20041 char * kwnames[] = {
20042 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20043 };
20044
20045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20046 if (obj0) {
20047 ecode1 = SWIG_AsVal_int(obj0, &val1);
20048 if (!SWIG_IsOK(ecode1)) {
20049 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20050 }
20051 arg1 = static_cast< wxEventType >(val1);
20052 }
20053 if (obj1) {
20054 ecode2 = SWIG_AsVal_int(obj1, &val2);
20055 if (!SWIG_IsOK(ecode2)) {
20056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20057 }
20058 arg2 = static_cast< int >(val2);
20059 }
20060 if (obj2) {
20061 ecode3 = SWIG_AsVal_int(obj2, &val3);
20062 if (!SWIG_IsOK(ecode3)) {
20063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20064 }
20065 arg3 = static_cast< int >(val3);
20066 }
20067 if (obj3) {
20068 ecode4 = SWIG_AsVal_int(obj3, &val4);
20069 if (!SWIG_IsOK(ecode4)) {
20070 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20071 }
20072 arg4 = static_cast< int >(val4);
20073 }
20074 {
20075 PyThreadState* __tstate = wxPyBeginAllowThreads();
20076 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20077 wxPyEndAllowThreads(__tstate);
20078 if (PyErr_Occurred()) SWIG_fail;
20079 }
20080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20081 return resultobj;
20082 fail:
20083 return NULL;
20084 }
20085
20086
20087 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20088 PyObject *resultobj = 0;
20089 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20090 int result;
20091 void *argp1 = 0 ;
20092 int res1 = 0 ;
20093 PyObject *swig_obj[1] ;
20094
20095 if (!args) SWIG_fail;
20096 swig_obj[0] = args;
20097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20098 if (!SWIG_IsOK(res1)) {
20099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20100 }
20101 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20102 {
20103 PyThreadState* __tstate = wxPyBeginAllowThreads();
20104 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20105 wxPyEndAllowThreads(__tstate);
20106 if (PyErr_Occurred()) SWIG_fail;
20107 }
20108 resultobj = SWIG_From_int(static_cast< int >(result));
20109 return resultobj;
20110 fail:
20111 return NULL;
20112 }
20113
20114
20115 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20116 PyObject *resultobj = 0;
20117 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20118 int arg2 ;
20119 void *argp1 = 0 ;
20120 int res1 = 0 ;
20121 int val2 ;
20122 int ecode2 = 0 ;
20123 PyObject * obj0 = 0 ;
20124 PyObject * obj1 = 0 ;
20125 char * kwnames[] = {
20126 (char *) "self",(char *) "nSel", NULL
20127 };
20128
20129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20131 if (!SWIG_IsOK(res1)) {
20132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20133 }
20134 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20135 ecode2 = SWIG_AsVal_int(obj1, &val2);
20136 if (!SWIG_IsOK(ecode2)) {
20137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20138 }
20139 arg2 = static_cast< int >(val2);
20140 {
20141 PyThreadState* __tstate = wxPyBeginAllowThreads();
20142 (arg1)->SetSelection(arg2);
20143 wxPyEndAllowThreads(__tstate);
20144 if (PyErr_Occurred()) SWIG_fail;
20145 }
20146 resultobj = SWIG_Py_Void();
20147 return resultobj;
20148 fail:
20149 return NULL;
20150 }
20151
20152
20153 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20154 PyObject *resultobj = 0;
20155 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20156 int result;
20157 void *argp1 = 0 ;
20158 int res1 = 0 ;
20159 PyObject *swig_obj[1] ;
20160
20161 if (!args) SWIG_fail;
20162 swig_obj[0] = args;
20163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20164 if (!SWIG_IsOK(res1)) {
20165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20166 }
20167 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20168 {
20169 PyThreadState* __tstate = wxPyBeginAllowThreads();
20170 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20171 wxPyEndAllowThreads(__tstate);
20172 if (PyErr_Occurred()) SWIG_fail;
20173 }
20174 resultobj = SWIG_From_int(static_cast< int >(result));
20175 return resultobj;
20176 fail:
20177 return NULL;
20178 }
20179
20180
20181 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20182 PyObject *resultobj = 0;
20183 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20184 int arg2 ;
20185 void *argp1 = 0 ;
20186 int res1 = 0 ;
20187 int val2 ;
20188 int ecode2 = 0 ;
20189 PyObject * obj0 = 0 ;
20190 PyObject * obj1 = 0 ;
20191 char * kwnames[] = {
20192 (char *) "self",(char *) "nOldSel", NULL
20193 };
20194
20195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20197 if (!SWIG_IsOK(res1)) {
20198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20199 }
20200 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20201 ecode2 = SWIG_AsVal_int(obj1, &val2);
20202 if (!SWIG_IsOK(ecode2)) {
20203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20204 }
20205 arg2 = static_cast< int >(val2);
20206 {
20207 PyThreadState* __tstate = wxPyBeginAllowThreads();
20208 (arg1)->SetOldSelection(arg2);
20209 wxPyEndAllowThreads(__tstate);
20210 if (PyErr_Occurred()) SWIG_fail;
20211 }
20212 resultobj = SWIG_Py_Void();
20213 return resultobj;
20214 fail:
20215 return NULL;
20216 }
20217
20218
20219 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20220 PyObject *obj;
20221 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20222 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20223 return SWIG_Py_Void();
20224 }
20225
20226 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20227 return SWIG_Python_InitShadowInstance(args);
20228 }
20229
20230 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20231 PyObject *resultobj = 0;
20232 wxWindow *arg1 = (wxWindow *) 0 ;
20233 int arg2 = (int) -1 ;
20234 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20235 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20236 wxSize const &arg4_defvalue = wxDefaultSize ;
20237 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20238 long arg5 = (long) 0 ;
20239 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20240 wxString *arg6 = (wxString *) &arg6_defvalue ;
20241 wxNotebook *result = 0 ;
20242 void *argp1 = 0 ;
20243 int res1 = 0 ;
20244 int val2 ;
20245 int ecode2 = 0 ;
20246 wxPoint temp3 ;
20247 wxSize temp4 ;
20248 long val5 ;
20249 int ecode5 = 0 ;
20250 bool temp6 = false ;
20251 PyObject * obj0 = 0 ;
20252 PyObject * obj1 = 0 ;
20253 PyObject * obj2 = 0 ;
20254 PyObject * obj3 = 0 ;
20255 PyObject * obj4 = 0 ;
20256 PyObject * obj5 = 0 ;
20257 char * kwnames[] = {
20258 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20259 };
20260
20261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20263 if (!SWIG_IsOK(res1)) {
20264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20265 }
20266 arg1 = reinterpret_cast< wxWindow * >(argp1);
20267 if (obj1) {
20268 ecode2 = SWIG_AsVal_int(obj1, &val2);
20269 if (!SWIG_IsOK(ecode2)) {
20270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20271 }
20272 arg2 = static_cast< int >(val2);
20273 }
20274 if (obj2) {
20275 {
20276 arg3 = &temp3;
20277 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20278 }
20279 }
20280 if (obj3) {
20281 {
20282 arg4 = &temp4;
20283 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20284 }
20285 }
20286 if (obj4) {
20287 ecode5 = SWIG_AsVal_long(obj4, &val5);
20288 if (!SWIG_IsOK(ecode5)) {
20289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20290 }
20291 arg5 = static_cast< long >(val5);
20292 }
20293 if (obj5) {
20294 {
20295 arg6 = wxString_in_helper(obj5);
20296 if (arg6 == NULL) SWIG_fail;
20297 temp6 = true;
20298 }
20299 }
20300 {
20301 if (!wxPyCheckForApp()) SWIG_fail;
20302 PyThreadState* __tstate = wxPyBeginAllowThreads();
20303 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20304 wxPyEndAllowThreads(__tstate);
20305 if (PyErr_Occurred()) SWIG_fail;
20306 }
20307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20308 {
20309 if (temp6)
20310 delete arg6;
20311 }
20312 return resultobj;
20313 fail:
20314 {
20315 if (temp6)
20316 delete arg6;
20317 }
20318 return NULL;
20319 }
20320
20321
20322 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20323 PyObject *resultobj = 0;
20324 wxNotebook *result = 0 ;
20325
20326 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20327 {
20328 if (!wxPyCheckForApp()) SWIG_fail;
20329 PyThreadState* __tstate = wxPyBeginAllowThreads();
20330 result = (wxNotebook *)new wxNotebook();
20331 wxPyEndAllowThreads(__tstate);
20332 if (PyErr_Occurred()) SWIG_fail;
20333 }
20334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20335 return resultobj;
20336 fail:
20337 return NULL;
20338 }
20339
20340
20341 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20342 PyObject *resultobj = 0;
20343 wxNotebook *arg1 = (wxNotebook *) 0 ;
20344 wxWindow *arg2 = (wxWindow *) 0 ;
20345 int arg3 = (int) -1 ;
20346 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20347 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20348 wxSize const &arg5_defvalue = wxDefaultSize ;
20349 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20350 long arg6 = (long) 0 ;
20351 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20352 wxString *arg7 = (wxString *) &arg7_defvalue ;
20353 bool result;
20354 void *argp1 = 0 ;
20355 int res1 = 0 ;
20356 void *argp2 = 0 ;
20357 int res2 = 0 ;
20358 int val3 ;
20359 int ecode3 = 0 ;
20360 wxPoint temp4 ;
20361 wxSize temp5 ;
20362 long val6 ;
20363 int ecode6 = 0 ;
20364 bool temp7 = false ;
20365 PyObject * obj0 = 0 ;
20366 PyObject * obj1 = 0 ;
20367 PyObject * obj2 = 0 ;
20368 PyObject * obj3 = 0 ;
20369 PyObject * obj4 = 0 ;
20370 PyObject * obj5 = 0 ;
20371 PyObject * obj6 = 0 ;
20372 char * kwnames[] = {
20373 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20374 };
20375
20376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20378 if (!SWIG_IsOK(res1)) {
20379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20380 }
20381 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20382 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20383 if (!SWIG_IsOK(res2)) {
20384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20385 }
20386 arg2 = reinterpret_cast< wxWindow * >(argp2);
20387 if (obj2) {
20388 ecode3 = SWIG_AsVal_int(obj2, &val3);
20389 if (!SWIG_IsOK(ecode3)) {
20390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20391 }
20392 arg3 = static_cast< int >(val3);
20393 }
20394 if (obj3) {
20395 {
20396 arg4 = &temp4;
20397 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20398 }
20399 }
20400 if (obj4) {
20401 {
20402 arg5 = &temp5;
20403 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20404 }
20405 }
20406 if (obj5) {
20407 ecode6 = SWIG_AsVal_long(obj5, &val6);
20408 if (!SWIG_IsOK(ecode6)) {
20409 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20410 }
20411 arg6 = static_cast< long >(val6);
20412 }
20413 if (obj6) {
20414 {
20415 arg7 = wxString_in_helper(obj6);
20416 if (arg7 == NULL) SWIG_fail;
20417 temp7 = true;
20418 }
20419 }
20420 {
20421 PyThreadState* __tstate = wxPyBeginAllowThreads();
20422 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20423 wxPyEndAllowThreads(__tstate);
20424 if (PyErr_Occurred()) SWIG_fail;
20425 }
20426 {
20427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20428 }
20429 {
20430 if (temp7)
20431 delete arg7;
20432 }
20433 return resultobj;
20434 fail:
20435 {
20436 if (temp7)
20437 delete arg7;
20438 }
20439 return NULL;
20440 }
20441
20442
20443 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20444 PyObject *resultobj = 0;
20445 wxNotebook *arg1 = (wxNotebook *) 0 ;
20446 int result;
20447 void *argp1 = 0 ;
20448 int res1 = 0 ;
20449 PyObject *swig_obj[1] ;
20450
20451 if (!args) SWIG_fail;
20452 swig_obj[0] = args;
20453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20454 if (!SWIG_IsOK(res1)) {
20455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20456 }
20457 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20458 {
20459 PyThreadState* __tstate = wxPyBeginAllowThreads();
20460 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20461 wxPyEndAllowThreads(__tstate);
20462 if (PyErr_Occurred()) SWIG_fail;
20463 }
20464 resultobj = SWIG_From_int(static_cast< int >(result));
20465 return resultobj;
20466 fail:
20467 return NULL;
20468 }
20469
20470
20471 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20472 PyObject *resultobj = 0;
20473 wxNotebook *arg1 = (wxNotebook *) 0 ;
20474 wxSize *arg2 = 0 ;
20475 void *argp1 = 0 ;
20476 int res1 = 0 ;
20477 wxSize temp2 ;
20478 PyObject * obj0 = 0 ;
20479 PyObject * obj1 = 0 ;
20480 char * kwnames[] = {
20481 (char *) "self",(char *) "padding", NULL
20482 };
20483
20484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20486 if (!SWIG_IsOK(res1)) {
20487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20488 }
20489 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20490 {
20491 arg2 = &temp2;
20492 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20493 }
20494 {
20495 PyThreadState* __tstate = wxPyBeginAllowThreads();
20496 (arg1)->SetPadding((wxSize const &)*arg2);
20497 wxPyEndAllowThreads(__tstate);
20498 if (PyErr_Occurred()) SWIG_fail;
20499 }
20500 resultobj = SWIG_Py_Void();
20501 return resultobj;
20502 fail:
20503 return NULL;
20504 }
20505
20506
20507 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20508 PyObject *resultobj = 0;
20509 wxNotebook *arg1 = (wxNotebook *) 0 ;
20510 wxSize *arg2 = 0 ;
20511 void *argp1 = 0 ;
20512 int res1 = 0 ;
20513 wxSize temp2 ;
20514 PyObject * obj0 = 0 ;
20515 PyObject * obj1 = 0 ;
20516 char * kwnames[] = {
20517 (char *) "self",(char *) "sz", NULL
20518 };
20519
20520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20522 if (!SWIG_IsOK(res1)) {
20523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20524 }
20525 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20526 {
20527 arg2 = &temp2;
20528 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20529 }
20530 {
20531 PyThreadState* __tstate = wxPyBeginAllowThreads();
20532 (arg1)->SetTabSize((wxSize const &)*arg2);
20533 wxPyEndAllowThreads(__tstate);
20534 if (PyErr_Occurred()) SWIG_fail;
20535 }
20536 resultobj = SWIG_Py_Void();
20537 return resultobj;
20538 fail:
20539 return NULL;
20540 }
20541
20542
20543 SWIGINTERN PyObject *_wrap_Notebook_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20544 PyObject *resultobj = 0;
20545 wxNotebook *arg1 = (wxNotebook *) 0 ;
20546 wxPoint *arg2 = 0 ;
20547 long *arg3 = (long *) 0 ;
20548 int result;
20549 void *argp1 = 0 ;
20550 int res1 = 0 ;
20551 wxPoint temp2 ;
20552 long temp3 ;
20553 int res3 = SWIG_TMPOBJ ;
20554 PyObject * obj0 = 0 ;
20555 PyObject * obj1 = 0 ;
20556 char * kwnames[] = {
20557 (char *) "self",(char *) "pt", NULL
20558 };
20559
20560 arg3 = &temp3;
20561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20563 if (!SWIG_IsOK(res1)) {
20564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_HitTest" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20565 }
20566 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20567 {
20568 arg2 = &temp2;
20569 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20570 }
20571 {
20572 PyThreadState* __tstate = wxPyBeginAllowThreads();
20573 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20574 wxPyEndAllowThreads(__tstate);
20575 if (PyErr_Occurred()) SWIG_fail;
20576 }
20577 resultobj = SWIG_From_int(static_cast< int >(result));
20578 if (SWIG_IsTmpObj(res3)) {
20579 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20580 } else {
20581 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20582 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20583 }
20584 return resultobj;
20585 fail:
20586 return NULL;
20587 }
20588
20589
20590 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20591 PyObject *resultobj = 0;
20592 wxNotebook *arg1 = (wxNotebook *) 0 ;
20593 wxColour result;
20594 void *argp1 = 0 ;
20595 int res1 = 0 ;
20596 PyObject *swig_obj[1] ;
20597
20598 if (!args) SWIG_fail;
20599 swig_obj[0] = args;
20600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20601 if (!SWIG_IsOK(res1)) {
20602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20603 }
20604 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20605 {
20606 PyThreadState* __tstate = wxPyBeginAllowThreads();
20607 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20608 wxPyEndAllowThreads(__tstate);
20609 if (PyErr_Occurred()) SWIG_fail;
20610 }
20611 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20612 return resultobj;
20613 fail:
20614 return NULL;
20615 }
20616
20617
20618 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20619 PyObject *resultobj = 0;
20620 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20621 SwigValueWrapper<wxVisualAttributes > result;
20622 int val1 ;
20623 int ecode1 = 0 ;
20624 PyObject * obj0 = 0 ;
20625 char * kwnames[] = {
20626 (char *) "variant", NULL
20627 };
20628
20629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20630 if (obj0) {
20631 ecode1 = SWIG_AsVal_int(obj0, &val1);
20632 if (!SWIG_IsOK(ecode1)) {
20633 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20634 }
20635 arg1 = static_cast< wxWindowVariant >(val1);
20636 }
20637 {
20638 if (!wxPyCheckForApp()) SWIG_fail;
20639 PyThreadState* __tstate = wxPyBeginAllowThreads();
20640 result = wxNotebook::GetClassDefaultAttributes(arg1);
20641 wxPyEndAllowThreads(__tstate);
20642 if (PyErr_Occurred()) SWIG_fail;
20643 }
20644 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20645 return resultobj;
20646 fail:
20647 return NULL;
20648 }
20649
20650
20651 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20652 PyObject *obj;
20653 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20654 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20655 return SWIG_Py_Void();
20656 }
20657
20658 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20659 return SWIG_Python_InitShadowInstance(args);
20660 }
20661
20662 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20663 PyObject *resultobj = 0;
20664 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20665 int arg2 = (int) 0 ;
20666 int arg3 = (int) -1 ;
20667 int arg4 = (int) -1 ;
20668 wxNotebookEvent *result = 0 ;
20669 int val1 ;
20670 int ecode1 = 0 ;
20671 int val2 ;
20672 int ecode2 = 0 ;
20673 int val3 ;
20674 int ecode3 = 0 ;
20675 int val4 ;
20676 int ecode4 = 0 ;
20677 PyObject * obj0 = 0 ;
20678 PyObject * obj1 = 0 ;
20679 PyObject * obj2 = 0 ;
20680 PyObject * obj3 = 0 ;
20681 char * kwnames[] = {
20682 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20683 };
20684
20685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20686 if (obj0) {
20687 ecode1 = SWIG_AsVal_int(obj0, &val1);
20688 if (!SWIG_IsOK(ecode1)) {
20689 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20690 }
20691 arg1 = static_cast< wxEventType >(val1);
20692 }
20693 if (obj1) {
20694 ecode2 = SWIG_AsVal_int(obj1, &val2);
20695 if (!SWIG_IsOK(ecode2)) {
20696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20697 }
20698 arg2 = static_cast< int >(val2);
20699 }
20700 if (obj2) {
20701 ecode3 = SWIG_AsVal_int(obj2, &val3);
20702 if (!SWIG_IsOK(ecode3)) {
20703 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20704 }
20705 arg3 = static_cast< int >(val3);
20706 }
20707 if (obj3) {
20708 ecode4 = SWIG_AsVal_int(obj3, &val4);
20709 if (!SWIG_IsOK(ecode4)) {
20710 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20711 }
20712 arg4 = static_cast< int >(val4);
20713 }
20714 {
20715 PyThreadState* __tstate = wxPyBeginAllowThreads();
20716 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20717 wxPyEndAllowThreads(__tstate);
20718 if (PyErr_Occurred()) SWIG_fail;
20719 }
20720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20721 return resultobj;
20722 fail:
20723 return NULL;
20724 }
20725
20726
20727 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20728 PyObject *obj;
20729 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20730 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20731 return SWIG_Py_Void();
20732 }
20733
20734 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20735 return SWIG_Python_InitShadowInstance(args);
20736 }
20737
20738 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20739 PyObject *resultobj = 0;
20740 wxWindow *arg1 = (wxWindow *) 0 ;
20741 int arg2 = (int) -1 ;
20742 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20743 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20744 wxSize const &arg4_defvalue = wxDefaultSize ;
20745 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20746 long arg5 = (long) 0 ;
20747 wxString const &arg6_defvalue = wxPyEmptyString ;
20748 wxString *arg6 = (wxString *) &arg6_defvalue ;
20749 wxListbook *result = 0 ;
20750 void *argp1 = 0 ;
20751 int res1 = 0 ;
20752 int val2 ;
20753 int ecode2 = 0 ;
20754 wxPoint temp3 ;
20755 wxSize temp4 ;
20756 long val5 ;
20757 int ecode5 = 0 ;
20758 bool temp6 = false ;
20759 PyObject * obj0 = 0 ;
20760 PyObject * obj1 = 0 ;
20761 PyObject * obj2 = 0 ;
20762 PyObject * obj3 = 0 ;
20763 PyObject * obj4 = 0 ;
20764 PyObject * obj5 = 0 ;
20765 char * kwnames[] = {
20766 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20767 };
20768
20769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20771 if (!SWIG_IsOK(res1)) {
20772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20773 }
20774 arg1 = reinterpret_cast< wxWindow * >(argp1);
20775 if (obj1) {
20776 ecode2 = SWIG_AsVal_int(obj1, &val2);
20777 if (!SWIG_IsOK(ecode2)) {
20778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20779 }
20780 arg2 = static_cast< int >(val2);
20781 }
20782 if (obj2) {
20783 {
20784 arg3 = &temp3;
20785 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20786 }
20787 }
20788 if (obj3) {
20789 {
20790 arg4 = &temp4;
20791 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20792 }
20793 }
20794 if (obj4) {
20795 ecode5 = SWIG_AsVal_long(obj4, &val5);
20796 if (!SWIG_IsOK(ecode5)) {
20797 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20798 }
20799 arg5 = static_cast< long >(val5);
20800 }
20801 if (obj5) {
20802 {
20803 arg6 = wxString_in_helper(obj5);
20804 if (arg6 == NULL) SWIG_fail;
20805 temp6 = true;
20806 }
20807 }
20808 {
20809 if (!wxPyCheckForApp()) SWIG_fail;
20810 PyThreadState* __tstate = wxPyBeginAllowThreads();
20811 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20812 wxPyEndAllowThreads(__tstate);
20813 if (PyErr_Occurred()) SWIG_fail;
20814 }
20815 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20816 {
20817 if (temp6)
20818 delete arg6;
20819 }
20820 return resultobj;
20821 fail:
20822 {
20823 if (temp6)
20824 delete arg6;
20825 }
20826 return NULL;
20827 }
20828
20829
20830 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20831 PyObject *resultobj = 0;
20832 wxListbook *result = 0 ;
20833
20834 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20835 {
20836 if (!wxPyCheckForApp()) SWIG_fail;
20837 PyThreadState* __tstate = wxPyBeginAllowThreads();
20838 result = (wxListbook *)new wxListbook();
20839 wxPyEndAllowThreads(__tstate);
20840 if (PyErr_Occurred()) SWIG_fail;
20841 }
20842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20843 return resultobj;
20844 fail:
20845 return NULL;
20846 }
20847
20848
20849 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20850 PyObject *resultobj = 0;
20851 wxListbook *arg1 = (wxListbook *) 0 ;
20852 wxWindow *arg2 = (wxWindow *) 0 ;
20853 int arg3 = (int) -1 ;
20854 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20855 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20856 wxSize const &arg5_defvalue = wxDefaultSize ;
20857 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20858 long arg6 = (long) 0 ;
20859 wxString const &arg7_defvalue = wxPyEmptyString ;
20860 wxString *arg7 = (wxString *) &arg7_defvalue ;
20861 bool result;
20862 void *argp1 = 0 ;
20863 int res1 = 0 ;
20864 void *argp2 = 0 ;
20865 int res2 = 0 ;
20866 int val3 ;
20867 int ecode3 = 0 ;
20868 wxPoint temp4 ;
20869 wxSize temp5 ;
20870 long val6 ;
20871 int ecode6 = 0 ;
20872 bool temp7 = false ;
20873 PyObject * obj0 = 0 ;
20874 PyObject * obj1 = 0 ;
20875 PyObject * obj2 = 0 ;
20876 PyObject * obj3 = 0 ;
20877 PyObject * obj4 = 0 ;
20878 PyObject * obj5 = 0 ;
20879 PyObject * obj6 = 0 ;
20880 char * kwnames[] = {
20881 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20882 };
20883
20884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20886 if (!SWIG_IsOK(res1)) {
20887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20888 }
20889 arg1 = reinterpret_cast< wxListbook * >(argp1);
20890 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20891 if (!SWIG_IsOK(res2)) {
20892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20893 }
20894 arg2 = reinterpret_cast< wxWindow * >(argp2);
20895 if (obj2) {
20896 ecode3 = SWIG_AsVal_int(obj2, &val3);
20897 if (!SWIG_IsOK(ecode3)) {
20898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20899 }
20900 arg3 = static_cast< int >(val3);
20901 }
20902 if (obj3) {
20903 {
20904 arg4 = &temp4;
20905 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20906 }
20907 }
20908 if (obj4) {
20909 {
20910 arg5 = &temp5;
20911 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20912 }
20913 }
20914 if (obj5) {
20915 ecode6 = SWIG_AsVal_long(obj5, &val6);
20916 if (!SWIG_IsOK(ecode6)) {
20917 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20918 }
20919 arg6 = static_cast< long >(val6);
20920 }
20921 if (obj6) {
20922 {
20923 arg7 = wxString_in_helper(obj6);
20924 if (arg7 == NULL) SWIG_fail;
20925 temp7 = true;
20926 }
20927 }
20928 {
20929 PyThreadState* __tstate = wxPyBeginAllowThreads();
20930 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20931 wxPyEndAllowThreads(__tstate);
20932 if (PyErr_Occurred()) SWIG_fail;
20933 }
20934 {
20935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20936 }
20937 {
20938 if (temp7)
20939 delete arg7;
20940 }
20941 return resultobj;
20942 fail:
20943 {
20944 if (temp7)
20945 delete arg7;
20946 }
20947 return NULL;
20948 }
20949
20950
20951 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20952 PyObject *resultobj = 0;
20953 wxListbook *arg1 = (wxListbook *) 0 ;
20954 wxListView *result = 0 ;
20955 void *argp1 = 0 ;
20956 int res1 = 0 ;
20957 PyObject *swig_obj[1] ;
20958
20959 if (!args) SWIG_fail;
20960 swig_obj[0] = args;
20961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20962 if (!SWIG_IsOK(res1)) {
20963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
20964 }
20965 arg1 = reinterpret_cast< wxListbook * >(argp1);
20966 {
20967 PyThreadState* __tstate = wxPyBeginAllowThreads();
20968 result = (wxListView *)(arg1)->GetListView();
20969 wxPyEndAllowThreads(__tstate);
20970 if (PyErr_Occurred()) SWIG_fail;
20971 }
20972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
20973 return resultobj;
20974 fail:
20975 return NULL;
20976 }
20977
20978
20979 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20980 PyObject *obj;
20981 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20982 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
20983 return SWIG_Py_Void();
20984 }
20985
20986 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20987 return SWIG_Python_InitShadowInstance(args);
20988 }
20989
20990 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20991 PyObject *resultobj = 0;
20992 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20993 int arg2 = (int) 0 ;
20994 int arg3 = (int) -1 ;
20995 int arg4 = (int) -1 ;
20996 wxListbookEvent *result = 0 ;
20997 int val1 ;
20998 int ecode1 = 0 ;
20999 int val2 ;
21000 int ecode2 = 0 ;
21001 int val3 ;
21002 int ecode3 = 0 ;
21003 int val4 ;
21004 int ecode4 = 0 ;
21005 PyObject * obj0 = 0 ;
21006 PyObject * obj1 = 0 ;
21007 PyObject * obj2 = 0 ;
21008 PyObject * obj3 = 0 ;
21009 char * kwnames[] = {
21010 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21011 };
21012
21013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21014 if (obj0) {
21015 ecode1 = SWIG_AsVal_int(obj0, &val1);
21016 if (!SWIG_IsOK(ecode1)) {
21017 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21018 }
21019 arg1 = static_cast< wxEventType >(val1);
21020 }
21021 if (obj1) {
21022 ecode2 = SWIG_AsVal_int(obj1, &val2);
21023 if (!SWIG_IsOK(ecode2)) {
21024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21025 }
21026 arg2 = static_cast< int >(val2);
21027 }
21028 if (obj2) {
21029 ecode3 = SWIG_AsVal_int(obj2, &val3);
21030 if (!SWIG_IsOK(ecode3)) {
21031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21032 }
21033 arg3 = static_cast< int >(val3);
21034 }
21035 if (obj3) {
21036 ecode4 = SWIG_AsVal_int(obj3, &val4);
21037 if (!SWIG_IsOK(ecode4)) {
21038 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21039 }
21040 arg4 = static_cast< int >(val4);
21041 }
21042 {
21043 PyThreadState* __tstate = wxPyBeginAllowThreads();
21044 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21045 wxPyEndAllowThreads(__tstate);
21046 if (PyErr_Occurred()) SWIG_fail;
21047 }
21048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21049 return resultobj;
21050 fail:
21051 return NULL;
21052 }
21053
21054
21055 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21056 PyObject *obj;
21057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21058 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21059 return SWIG_Py_Void();
21060 }
21061
21062 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21063 return SWIG_Python_InitShadowInstance(args);
21064 }
21065
21066 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21067 PyObject *resultobj = 0;
21068 wxWindow *arg1 = (wxWindow *) 0 ;
21069 int arg2 ;
21070 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21071 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21072 wxSize const &arg4_defvalue = wxDefaultSize ;
21073 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21074 long arg5 = (long) 0 ;
21075 wxString const &arg6_defvalue = wxPyEmptyString ;
21076 wxString *arg6 = (wxString *) &arg6_defvalue ;
21077 wxChoicebook *result = 0 ;
21078 void *argp1 = 0 ;
21079 int res1 = 0 ;
21080 int val2 ;
21081 int ecode2 = 0 ;
21082 wxPoint temp3 ;
21083 wxSize temp4 ;
21084 long val5 ;
21085 int ecode5 = 0 ;
21086 bool temp6 = false ;
21087 PyObject * obj0 = 0 ;
21088 PyObject * obj1 = 0 ;
21089 PyObject * obj2 = 0 ;
21090 PyObject * obj3 = 0 ;
21091 PyObject * obj4 = 0 ;
21092 PyObject * obj5 = 0 ;
21093 char * kwnames[] = {
21094 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21095 };
21096
21097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21099 if (!SWIG_IsOK(res1)) {
21100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21101 }
21102 arg1 = reinterpret_cast< wxWindow * >(argp1);
21103 ecode2 = SWIG_AsVal_int(obj1, &val2);
21104 if (!SWIG_IsOK(ecode2)) {
21105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21106 }
21107 arg2 = static_cast< int >(val2);
21108 if (obj2) {
21109 {
21110 arg3 = &temp3;
21111 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21112 }
21113 }
21114 if (obj3) {
21115 {
21116 arg4 = &temp4;
21117 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21118 }
21119 }
21120 if (obj4) {
21121 ecode5 = SWIG_AsVal_long(obj4, &val5);
21122 if (!SWIG_IsOK(ecode5)) {
21123 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21124 }
21125 arg5 = static_cast< long >(val5);
21126 }
21127 if (obj5) {
21128 {
21129 arg6 = wxString_in_helper(obj5);
21130 if (arg6 == NULL) SWIG_fail;
21131 temp6 = true;
21132 }
21133 }
21134 {
21135 if (!wxPyCheckForApp()) SWIG_fail;
21136 PyThreadState* __tstate = wxPyBeginAllowThreads();
21137 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21138 wxPyEndAllowThreads(__tstate);
21139 if (PyErr_Occurred()) SWIG_fail;
21140 }
21141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21142 {
21143 if (temp6)
21144 delete arg6;
21145 }
21146 return resultobj;
21147 fail:
21148 {
21149 if (temp6)
21150 delete arg6;
21151 }
21152 return NULL;
21153 }
21154
21155
21156 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21157 PyObject *resultobj = 0;
21158 wxChoicebook *result = 0 ;
21159
21160 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21161 {
21162 if (!wxPyCheckForApp()) SWIG_fail;
21163 PyThreadState* __tstate = wxPyBeginAllowThreads();
21164 result = (wxChoicebook *)new wxChoicebook();
21165 wxPyEndAllowThreads(__tstate);
21166 if (PyErr_Occurred()) SWIG_fail;
21167 }
21168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21169 return resultobj;
21170 fail:
21171 return NULL;
21172 }
21173
21174
21175 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21176 PyObject *resultobj = 0;
21177 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21178 wxWindow *arg2 = (wxWindow *) 0 ;
21179 int arg3 ;
21180 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21181 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21182 wxSize const &arg5_defvalue = wxDefaultSize ;
21183 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21184 long arg6 = (long) 0 ;
21185 wxString const &arg7_defvalue = wxPyEmptyString ;
21186 wxString *arg7 = (wxString *) &arg7_defvalue ;
21187 bool result;
21188 void *argp1 = 0 ;
21189 int res1 = 0 ;
21190 void *argp2 = 0 ;
21191 int res2 = 0 ;
21192 int val3 ;
21193 int ecode3 = 0 ;
21194 wxPoint temp4 ;
21195 wxSize temp5 ;
21196 long val6 ;
21197 int ecode6 = 0 ;
21198 bool temp7 = false ;
21199 PyObject * obj0 = 0 ;
21200 PyObject * obj1 = 0 ;
21201 PyObject * obj2 = 0 ;
21202 PyObject * obj3 = 0 ;
21203 PyObject * obj4 = 0 ;
21204 PyObject * obj5 = 0 ;
21205 PyObject * obj6 = 0 ;
21206 char * kwnames[] = {
21207 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21208 };
21209
21210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21212 if (!SWIG_IsOK(res1)) {
21213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21214 }
21215 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21216 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21217 if (!SWIG_IsOK(res2)) {
21218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21219 }
21220 arg2 = reinterpret_cast< wxWindow * >(argp2);
21221 ecode3 = SWIG_AsVal_int(obj2, &val3);
21222 if (!SWIG_IsOK(ecode3)) {
21223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21224 }
21225 arg3 = static_cast< int >(val3);
21226 if (obj3) {
21227 {
21228 arg4 = &temp4;
21229 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21230 }
21231 }
21232 if (obj4) {
21233 {
21234 arg5 = &temp5;
21235 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21236 }
21237 }
21238 if (obj5) {
21239 ecode6 = SWIG_AsVal_long(obj5, &val6);
21240 if (!SWIG_IsOK(ecode6)) {
21241 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21242 }
21243 arg6 = static_cast< long >(val6);
21244 }
21245 if (obj6) {
21246 {
21247 arg7 = wxString_in_helper(obj6);
21248 if (arg7 == NULL) SWIG_fail;
21249 temp7 = true;
21250 }
21251 }
21252 {
21253 PyThreadState* __tstate = wxPyBeginAllowThreads();
21254 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21255 wxPyEndAllowThreads(__tstate);
21256 if (PyErr_Occurred()) SWIG_fail;
21257 }
21258 {
21259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21260 }
21261 {
21262 if (temp7)
21263 delete arg7;
21264 }
21265 return resultobj;
21266 fail:
21267 {
21268 if (temp7)
21269 delete arg7;
21270 }
21271 return NULL;
21272 }
21273
21274
21275 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21276 PyObject *resultobj = 0;
21277 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21278 wxChoice *result = 0 ;
21279 void *argp1 = 0 ;
21280 int res1 = 0 ;
21281 PyObject *swig_obj[1] ;
21282
21283 if (!args) SWIG_fail;
21284 swig_obj[0] = args;
21285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21286 if (!SWIG_IsOK(res1)) {
21287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21288 }
21289 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21290 {
21291 PyThreadState* __tstate = wxPyBeginAllowThreads();
21292 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21293 wxPyEndAllowThreads(__tstate);
21294 if (PyErr_Occurred()) SWIG_fail;
21295 }
21296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21297 return resultobj;
21298 fail:
21299 return NULL;
21300 }
21301
21302
21303 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21304 PyObject *obj;
21305 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21306 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21307 return SWIG_Py_Void();
21308 }
21309
21310 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21311 return SWIG_Python_InitShadowInstance(args);
21312 }
21313
21314 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21315 PyObject *resultobj = 0;
21316 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21317 int arg2 = (int) 0 ;
21318 int arg3 = (int) -1 ;
21319 int arg4 = (int) -1 ;
21320 wxChoicebookEvent *result = 0 ;
21321 int val1 ;
21322 int ecode1 = 0 ;
21323 int val2 ;
21324 int ecode2 = 0 ;
21325 int val3 ;
21326 int ecode3 = 0 ;
21327 int val4 ;
21328 int ecode4 = 0 ;
21329 PyObject * obj0 = 0 ;
21330 PyObject * obj1 = 0 ;
21331 PyObject * obj2 = 0 ;
21332 PyObject * obj3 = 0 ;
21333 char * kwnames[] = {
21334 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21335 };
21336
21337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21338 if (obj0) {
21339 ecode1 = SWIG_AsVal_int(obj0, &val1);
21340 if (!SWIG_IsOK(ecode1)) {
21341 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21342 }
21343 arg1 = static_cast< wxEventType >(val1);
21344 }
21345 if (obj1) {
21346 ecode2 = SWIG_AsVal_int(obj1, &val2);
21347 if (!SWIG_IsOK(ecode2)) {
21348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21349 }
21350 arg2 = static_cast< int >(val2);
21351 }
21352 if (obj2) {
21353 ecode3 = SWIG_AsVal_int(obj2, &val3);
21354 if (!SWIG_IsOK(ecode3)) {
21355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21356 }
21357 arg3 = static_cast< int >(val3);
21358 }
21359 if (obj3) {
21360 ecode4 = SWIG_AsVal_int(obj3, &val4);
21361 if (!SWIG_IsOK(ecode4)) {
21362 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21363 }
21364 arg4 = static_cast< int >(val4);
21365 }
21366 {
21367 PyThreadState* __tstate = wxPyBeginAllowThreads();
21368 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21369 wxPyEndAllowThreads(__tstate);
21370 if (PyErr_Occurred()) SWIG_fail;
21371 }
21372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21373 return resultobj;
21374 fail:
21375 return NULL;
21376 }
21377
21378
21379 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21380 PyObject *obj;
21381 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21382 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21383 return SWIG_Py_Void();
21384 }
21385
21386 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21387 return SWIG_Python_InitShadowInstance(args);
21388 }
21389
21390 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21391 PyObject *resultobj = 0;
21392 wxWindow *arg1 = (wxWindow *) 0 ;
21393 int arg2 ;
21394 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21395 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21396 wxSize const &arg4_defvalue = wxDefaultSize ;
21397 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21398 long arg5 = (long) wxBK_DEFAULT ;
21399 wxString const &arg6_defvalue = wxPyEmptyString ;
21400 wxString *arg6 = (wxString *) &arg6_defvalue ;
21401 wxTreebook *result = 0 ;
21402 void *argp1 = 0 ;
21403 int res1 = 0 ;
21404 int val2 ;
21405 int ecode2 = 0 ;
21406 wxPoint temp3 ;
21407 wxSize temp4 ;
21408 long val5 ;
21409 int ecode5 = 0 ;
21410 bool temp6 = false ;
21411 PyObject * obj0 = 0 ;
21412 PyObject * obj1 = 0 ;
21413 PyObject * obj2 = 0 ;
21414 PyObject * obj3 = 0 ;
21415 PyObject * obj4 = 0 ;
21416 PyObject * obj5 = 0 ;
21417 char * kwnames[] = {
21418 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21419 };
21420
21421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21423 if (!SWIG_IsOK(res1)) {
21424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21425 }
21426 arg1 = reinterpret_cast< wxWindow * >(argp1);
21427 ecode2 = SWIG_AsVal_int(obj1, &val2);
21428 if (!SWIG_IsOK(ecode2)) {
21429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21430 }
21431 arg2 = static_cast< int >(val2);
21432 if (obj2) {
21433 {
21434 arg3 = &temp3;
21435 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21436 }
21437 }
21438 if (obj3) {
21439 {
21440 arg4 = &temp4;
21441 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21442 }
21443 }
21444 if (obj4) {
21445 ecode5 = SWIG_AsVal_long(obj4, &val5);
21446 if (!SWIG_IsOK(ecode5)) {
21447 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21448 }
21449 arg5 = static_cast< long >(val5);
21450 }
21451 if (obj5) {
21452 {
21453 arg6 = wxString_in_helper(obj5);
21454 if (arg6 == NULL) SWIG_fail;
21455 temp6 = true;
21456 }
21457 }
21458 {
21459 if (!wxPyCheckForApp()) SWIG_fail;
21460 PyThreadState* __tstate = wxPyBeginAllowThreads();
21461 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21462 wxPyEndAllowThreads(__tstate);
21463 if (PyErr_Occurred()) SWIG_fail;
21464 }
21465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21466 {
21467 if (temp6)
21468 delete arg6;
21469 }
21470 return resultobj;
21471 fail:
21472 {
21473 if (temp6)
21474 delete arg6;
21475 }
21476 return NULL;
21477 }
21478
21479
21480 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21481 PyObject *resultobj = 0;
21482 wxTreebook *result = 0 ;
21483
21484 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21485 {
21486 if (!wxPyCheckForApp()) SWIG_fail;
21487 PyThreadState* __tstate = wxPyBeginAllowThreads();
21488 result = (wxTreebook *)new wxTreebook();
21489 wxPyEndAllowThreads(__tstate);
21490 if (PyErr_Occurred()) SWIG_fail;
21491 }
21492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21493 return resultobj;
21494 fail:
21495 return NULL;
21496 }
21497
21498
21499 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21500 PyObject *resultobj = 0;
21501 wxTreebook *arg1 = (wxTreebook *) 0 ;
21502 wxWindow *arg2 = (wxWindow *) 0 ;
21503 int arg3 ;
21504 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21505 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21506 wxSize const &arg5_defvalue = wxDefaultSize ;
21507 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21508 long arg6 = (long) wxBK_DEFAULT ;
21509 wxString const &arg7_defvalue = wxPyEmptyString ;
21510 wxString *arg7 = (wxString *) &arg7_defvalue ;
21511 bool result;
21512 void *argp1 = 0 ;
21513 int res1 = 0 ;
21514 void *argp2 = 0 ;
21515 int res2 = 0 ;
21516 int val3 ;
21517 int ecode3 = 0 ;
21518 wxPoint temp4 ;
21519 wxSize temp5 ;
21520 long val6 ;
21521 int ecode6 = 0 ;
21522 bool temp7 = false ;
21523 PyObject * obj0 = 0 ;
21524 PyObject * obj1 = 0 ;
21525 PyObject * obj2 = 0 ;
21526 PyObject * obj3 = 0 ;
21527 PyObject * obj4 = 0 ;
21528 PyObject * obj5 = 0 ;
21529 PyObject * obj6 = 0 ;
21530 char * kwnames[] = {
21531 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21532 };
21533
21534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21536 if (!SWIG_IsOK(res1)) {
21537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21538 }
21539 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21540 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21541 if (!SWIG_IsOK(res2)) {
21542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21543 }
21544 arg2 = reinterpret_cast< wxWindow * >(argp2);
21545 ecode3 = SWIG_AsVal_int(obj2, &val3);
21546 if (!SWIG_IsOK(ecode3)) {
21547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21548 }
21549 arg3 = static_cast< int >(val3);
21550 if (obj3) {
21551 {
21552 arg4 = &temp4;
21553 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21554 }
21555 }
21556 if (obj4) {
21557 {
21558 arg5 = &temp5;
21559 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21560 }
21561 }
21562 if (obj5) {
21563 ecode6 = SWIG_AsVal_long(obj5, &val6);
21564 if (!SWIG_IsOK(ecode6)) {
21565 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21566 }
21567 arg6 = static_cast< long >(val6);
21568 }
21569 if (obj6) {
21570 {
21571 arg7 = wxString_in_helper(obj6);
21572 if (arg7 == NULL) SWIG_fail;
21573 temp7 = true;
21574 }
21575 }
21576 {
21577 PyThreadState* __tstate = wxPyBeginAllowThreads();
21578 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21579 wxPyEndAllowThreads(__tstate);
21580 if (PyErr_Occurred()) SWIG_fail;
21581 }
21582 {
21583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21584 }
21585 {
21586 if (temp7)
21587 delete arg7;
21588 }
21589 return resultobj;
21590 fail:
21591 {
21592 if (temp7)
21593 delete arg7;
21594 }
21595 return NULL;
21596 }
21597
21598
21599 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21600 PyObject *resultobj = 0;
21601 wxTreebook *arg1 = (wxTreebook *) 0 ;
21602 size_t arg2 ;
21603 wxWindow *arg3 = (wxWindow *) 0 ;
21604 wxString *arg4 = 0 ;
21605 bool arg5 = (bool) false ;
21606 int arg6 = (int) wxNOT_FOUND ;
21607 bool result;
21608 void *argp1 = 0 ;
21609 int res1 = 0 ;
21610 size_t val2 ;
21611 int ecode2 = 0 ;
21612 void *argp3 = 0 ;
21613 int res3 = 0 ;
21614 bool temp4 = false ;
21615 bool val5 ;
21616 int ecode5 = 0 ;
21617 int val6 ;
21618 int ecode6 = 0 ;
21619 PyObject * obj0 = 0 ;
21620 PyObject * obj1 = 0 ;
21621 PyObject * obj2 = 0 ;
21622 PyObject * obj3 = 0 ;
21623 PyObject * obj4 = 0 ;
21624 PyObject * obj5 = 0 ;
21625 char * kwnames[] = {
21626 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21627 };
21628
21629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21631 if (!SWIG_IsOK(res1)) {
21632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21633 }
21634 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21635 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21636 if (!SWIG_IsOK(ecode2)) {
21637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21638 }
21639 arg2 = static_cast< size_t >(val2);
21640 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21641 if (!SWIG_IsOK(res3)) {
21642 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21643 }
21644 arg3 = reinterpret_cast< wxWindow * >(argp3);
21645 {
21646 arg4 = wxString_in_helper(obj3);
21647 if (arg4 == NULL) SWIG_fail;
21648 temp4 = true;
21649 }
21650 if (obj4) {
21651 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21652 if (!SWIG_IsOK(ecode5)) {
21653 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21654 }
21655 arg5 = static_cast< bool >(val5);
21656 }
21657 if (obj5) {
21658 ecode6 = SWIG_AsVal_int(obj5, &val6);
21659 if (!SWIG_IsOK(ecode6)) {
21660 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21661 }
21662 arg6 = static_cast< int >(val6);
21663 }
21664 {
21665 PyThreadState* __tstate = wxPyBeginAllowThreads();
21666 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21667 wxPyEndAllowThreads(__tstate);
21668 if (PyErr_Occurred()) SWIG_fail;
21669 }
21670 {
21671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21672 }
21673 {
21674 if (temp4)
21675 delete arg4;
21676 }
21677 return resultobj;
21678 fail:
21679 {
21680 if (temp4)
21681 delete arg4;
21682 }
21683 return NULL;
21684 }
21685
21686
21687 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21688 PyObject *resultobj = 0;
21689 wxTreebook *arg1 = (wxTreebook *) 0 ;
21690 wxWindow *arg2 = (wxWindow *) 0 ;
21691 wxString *arg3 = 0 ;
21692 bool arg4 = (bool) false ;
21693 int arg5 = (int) wxNOT_FOUND ;
21694 bool result;
21695 void *argp1 = 0 ;
21696 int res1 = 0 ;
21697 void *argp2 = 0 ;
21698 int res2 = 0 ;
21699 bool temp3 = false ;
21700 bool val4 ;
21701 int ecode4 = 0 ;
21702 int val5 ;
21703 int ecode5 = 0 ;
21704 PyObject * obj0 = 0 ;
21705 PyObject * obj1 = 0 ;
21706 PyObject * obj2 = 0 ;
21707 PyObject * obj3 = 0 ;
21708 PyObject * obj4 = 0 ;
21709 char * kwnames[] = {
21710 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21711 };
21712
21713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21715 if (!SWIG_IsOK(res1)) {
21716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21717 }
21718 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21719 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21720 if (!SWIG_IsOK(res2)) {
21721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21722 }
21723 arg2 = reinterpret_cast< wxWindow * >(argp2);
21724 {
21725 arg3 = wxString_in_helper(obj2);
21726 if (arg3 == NULL) SWIG_fail;
21727 temp3 = true;
21728 }
21729 if (obj3) {
21730 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21731 if (!SWIG_IsOK(ecode4)) {
21732 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21733 }
21734 arg4 = static_cast< bool >(val4);
21735 }
21736 if (obj4) {
21737 ecode5 = SWIG_AsVal_int(obj4, &val5);
21738 if (!SWIG_IsOK(ecode5)) {
21739 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21740 }
21741 arg5 = static_cast< int >(val5);
21742 }
21743 {
21744 PyThreadState* __tstate = wxPyBeginAllowThreads();
21745 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21746 wxPyEndAllowThreads(__tstate);
21747 if (PyErr_Occurred()) SWIG_fail;
21748 }
21749 {
21750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21751 }
21752 {
21753 if (temp3)
21754 delete arg3;
21755 }
21756 return resultobj;
21757 fail:
21758 {
21759 if (temp3)
21760 delete arg3;
21761 }
21762 return NULL;
21763 }
21764
21765
21766 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21767 PyObject *resultobj = 0;
21768 wxTreebook *arg1 = (wxTreebook *) 0 ;
21769 size_t arg2 ;
21770 bool result;
21771 void *argp1 = 0 ;
21772 int res1 = 0 ;
21773 size_t val2 ;
21774 int ecode2 = 0 ;
21775 PyObject * obj0 = 0 ;
21776 PyObject * obj1 = 0 ;
21777 char * kwnames[] = {
21778 (char *) "self",(char *) "pos", NULL
21779 };
21780
21781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21783 if (!SWIG_IsOK(res1)) {
21784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21785 }
21786 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21787 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21788 if (!SWIG_IsOK(ecode2)) {
21789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21790 }
21791 arg2 = static_cast< size_t >(val2);
21792 {
21793 PyThreadState* __tstate = wxPyBeginAllowThreads();
21794 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21795 wxPyEndAllowThreads(__tstate);
21796 if (PyErr_Occurred()) SWIG_fail;
21797 }
21798 {
21799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21800 }
21801 return resultobj;
21802 fail:
21803 return NULL;
21804 }
21805
21806
21807 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21808 PyObject *resultobj = 0;
21809 wxTreebook *arg1 = (wxTreebook *) 0 ;
21810 size_t arg2 ;
21811 bool arg3 = (bool) true ;
21812 bool result;
21813 void *argp1 = 0 ;
21814 int res1 = 0 ;
21815 size_t val2 ;
21816 int ecode2 = 0 ;
21817 bool val3 ;
21818 int ecode3 = 0 ;
21819 PyObject * obj0 = 0 ;
21820 PyObject * obj1 = 0 ;
21821 PyObject * obj2 = 0 ;
21822 char * kwnames[] = {
21823 (char *) "self",(char *) "pos",(char *) "expand", NULL
21824 };
21825
21826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21828 if (!SWIG_IsOK(res1)) {
21829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21830 }
21831 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21832 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21833 if (!SWIG_IsOK(ecode2)) {
21834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21835 }
21836 arg2 = static_cast< size_t >(val2);
21837 if (obj2) {
21838 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21839 if (!SWIG_IsOK(ecode3)) {
21840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21841 }
21842 arg3 = static_cast< bool >(val3);
21843 }
21844 {
21845 PyThreadState* __tstate = wxPyBeginAllowThreads();
21846 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21847 wxPyEndAllowThreads(__tstate);
21848 if (PyErr_Occurred()) SWIG_fail;
21849 }
21850 {
21851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21852 }
21853 return resultobj;
21854 fail:
21855 return NULL;
21856 }
21857
21858
21859 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21860 PyObject *resultobj = 0;
21861 wxTreebook *arg1 = (wxTreebook *) 0 ;
21862 size_t arg2 ;
21863 bool result;
21864 void *argp1 = 0 ;
21865 int res1 = 0 ;
21866 size_t val2 ;
21867 int ecode2 = 0 ;
21868 PyObject * obj0 = 0 ;
21869 PyObject * obj1 = 0 ;
21870 char * kwnames[] = {
21871 (char *) "self",(char *) "pos", NULL
21872 };
21873
21874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21876 if (!SWIG_IsOK(res1)) {
21877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21878 }
21879 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21880 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21881 if (!SWIG_IsOK(ecode2)) {
21882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21883 }
21884 arg2 = static_cast< size_t >(val2);
21885 {
21886 PyThreadState* __tstate = wxPyBeginAllowThreads();
21887 result = (bool)(arg1)->CollapseNode(arg2);
21888 wxPyEndAllowThreads(__tstate);
21889 if (PyErr_Occurred()) SWIG_fail;
21890 }
21891 {
21892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21893 }
21894 return resultobj;
21895 fail:
21896 return NULL;
21897 }
21898
21899
21900 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21901 PyObject *resultobj = 0;
21902 wxTreebook *arg1 = (wxTreebook *) 0 ;
21903 size_t arg2 ;
21904 int result;
21905 void *argp1 = 0 ;
21906 int res1 = 0 ;
21907 size_t val2 ;
21908 int ecode2 = 0 ;
21909 PyObject * obj0 = 0 ;
21910 PyObject * obj1 = 0 ;
21911 char * kwnames[] = {
21912 (char *) "self",(char *) "pos", NULL
21913 };
21914
21915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21917 if (!SWIG_IsOK(res1)) {
21918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21919 }
21920 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21921 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21922 if (!SWIG_IsOK(ecode2)) {
21923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21924 }
21925 arg2 = static_cast< size_t >(val2);
21926 {
21927 PyThreadState* __tstate = wxPyBeginAllowThreads();
21928 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
21929 wxPyEndAllowThreads(__tstate);
21930 if (PyErr_Occurred()) SWIG_fail;
21931 }
21932 resultobj = SWIG_From_int(static_cast< int >(result));
21933 return resultobj;
21934 fail:
21935 return NULL;
21936 }
21937
21938
21939 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21940 PyObject *resultobj = 0;
21941 wxTreebook *arg1 = (wxTreebook *) 0 ;
21942 wxTreeCtrl *result = 0 ;
21943 void *argp1 = 0 ;
21944 int res1 = 0 ;
21945 PyObject *swig_obj[1] ;
21946
21947 if (!args) SWIG_fail;
21948 swig_obj[0] = args;
21949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21950 if (!SWIG_IsOK(res1)) {
21951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21952 }
21953 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21954 {
21955 PyThreadState* __tstate = wxPyBeginAllowThreads();
21956 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
21957 wxPyEndAllowThreads(__tstate);
21958 if (PyErr_Occurred()) SWIG_fail;
21959 }
21960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
21961 return resultobj;
21962 fail:
21963 return NULL;
21964 }
21965
21966
21967 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21968 PyObject *obj;
21969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21970 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
21971 return SWIG_Py_Void();
21972 }
21973
21974 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21975 return SWIG_Python_InitShadowInstance(args);
21976 }
21977
21978 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21979 PyObject *resultobj = 0;
21980 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21981 int arg2 = (int) 0 ;
21982 int arg3 = (int) wxNOT_FOUND ;
21983 int arg4 = (int) wxNOT_FOUND ;
21984 wxTreebookEvent *result = 0 ;
21985 int val1 ;
21986 int ecode1 = 0 ;
21987 int val2 ;
21988 int ecode2 = 0 ;
21989 int val3 ;
21990 int ecode3 = 0 ;
21991 int val4 ;
21992 int ecode4 = 0 ;
21993 PyObject * obj0 = 0 ;
21994 PyObject * obj1 = 0 ;
21995 PyObject * obj2 = 0 ;
21996 PyObject * obj3 = 0 ;
21997 char * kwnames[] = {
21998 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21999 };
22000
22001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22002 if (obj0) {
22003 ecode1 = SWIG_AsVal_int(obj0, &val1);
22004 if (!SWIG_IsOK(ecode1)) {
22005 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22006 }
22007 arg1 = static_cast< wxEventType >(val1);
22008 }
22009 if (obj1) {
22010 ecode2 = SWIG_AsVal_int(obj1, &val2);
22011 if (!SWIG_IsOK(ecode2)) {
22012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22013 }
22014 arg2 = static_cast< int >(val2);
22015 }
22016 if (obj2) {
22017 ecode3 = SWIG_AsVal_int(obj2, &val3);
22018 if (!SWIG_IsOK(ecode3)) {
22019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22020 }
22021 arg3 = static_cast< int >(val3);
22022 }
22023 if (obj3) {
22024 ecode4 = SWIG_AsVal_int(obj3, &val4);
22025 if (!SWIG_IsOK(ecode4)) {
22026 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22027 }
22028 arg4 = static_cast< int >(val4);
22029 }
22030 {
22031 PyThreadState* __tstate = wxPyBeginAllowThreads();
22032 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22033 wxPyEndAllowThreads(__tstate);
22034 if (PyErr_Occurred()) SWIG_fail;
22035 }
22036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22037 return resultobj;
22038 fail:
22039 return NULL;
22040 }
22041
22042
22043 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22044 PyObject *obj;
22045 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22046 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22047 return SWIG_Py_Void();
22048 }
22049
22050 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22051 return SWIG_Python_InitShadowInstance(args);
22052 }
22053
22054 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22055 PyObject *resultobj = 0;
22056 wxWindow *arg1 = (wxWindow *) 0 ;
22057 int arg2 ;
22058 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22059 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22060 wxSize const &arg4_defvalue = wxDefaultSize ;
22061 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22062 long arg5 = (long) wxBK_DEFAULT ;
22063 wxString const &arg6_defvalue = wxPyEmptyString ;
22064 wxString *arg6 = (wxString *) &arg6_defvalue ;
22065 wxToolbook *result = 0 ;
22066 void *argp1 = 0 ;
22067 int res1 = 0 ;
22068 int val2 ;
22069 int ecode2 = 0 ;
22070 wxPoint temp3 ;
22071 wxSize temp4 ;
22072 long val5 ;
22073 int ecode5 = 0 ;
22074 bool temp6 = false ;
22075 PyObject * obj0 = 0 ;
22076 PyObject * obj1 = 0 ;
22077 PyObject * obj2 = 0 ;
22078 PyObject * obj3 = 0 ;
22079 PyObject * obj4 = 0 ;
22080 PyObject * obj5 = 0 ;
22081 char * kwnames[] = {
22082 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22083 };
22084
22085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22087 if (!SWIG_IsOK(res1)) {
22088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22089 }
22090 arg1 = reinterpret_cast< wxWindow * >(argp1);
22091 ecode2 = SWIG_AsVal_int(obj1, &val2);
22092 if (!SWIG_IsOK(ecode2)) {
22093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22094 }
22095 arg2 = static_cast< int >(val2);
22096 if (obj2) {
22097 {
22098 arg3 = &temp3;
22099 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22100 }
22101 }
22102 if (obj3) {
22103 {
22104 arg4 = &temp4;
22105 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22106 }
22107 }
22108 if (obj4) {
22109 ecode5 = SWIG_AsVal_long(obj4, &val5);
22110 if (!SWIG_IsOK(ecode5)) {
22111 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22112 }
22113 arg5 = static_cast< long >(val5);
22114 }
22115 if (obj5) {
22116 {
22117 arg6 = wxString_in_helper(obj5);
22118 if (arg6 == NULL) SWIG_fail;
22119 temp6 = true;
22120 }
22121 }
22122 {
22123 PyThreadState* __tstate = wxPyBeginAllowThreads();
22124 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22125 wxPyEndAllowThreads(__tstate);
22126 if (PyErr_Occurred()) SWIG_fail;
22127 }
22128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22129 {
22130 if (temp6)
22131 delete arg6;
22132 }
22133 return resultobj;
22134 fail:
22135 {
22136 if (temp6)
22137 delete arg6;
22138 }
22139 return NULL;
22140 }
22141
22142
22143 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22144 PyObject *resultobj = 0;
22145 wxToolbook *result = 0 ;
22146
22147 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22148 {
22149 PyThreadState* __tstate = wxPyBeginAllowThreads();
22150 result = (wxToolbook *)new wxToolbook();
22151 wxPyEndAllowThreads(__tstate);
22152 if (PyErr_Occurred()) SWIG_fail;
22153 }
22154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22155 return resultobj;
22156 fail:
22157 return NULL;
22158 }
22159
22160
22161 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22162 PyObject *resultobj = 0;
22163 wxToolbook *arg1 = (wxToolbook *) 0 ;
22164 wxWindow *arg2 = (wxWindow *) 0 ;
22165 int arg3 ;
22166 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22167 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22168 wxSize const &arg5_defvalue = wxDefaultSize ;
22169 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22170 long arg6 = (long) 0 ;
22171 wxString const &arg7_defvalue = wxEmptyString ;
22172 wxString *arg7 = (wxString *) &arg7_defvalue ;
22173 bool result;
22174 void *argp1 = 0 ;
22175 int res1 = 0 ;
22176 void *argp2 = 0 ;
22177 int res2 = 0 ;
22178 int val3 ;
22179 int ecode3 = 0 ;
22180 wxPoint temp4 ;
22181 wxSize temp5 ;
22182 long val6 ;
22183 int ecode6 = 0 ;
22184 bool temp7 = false ;
22185 PyObject * obj0 = 0 ;
22186 PyObject * obj1 = 0 ;
22187 PyObject * obj2 = 0 ;
22188 PyObject * obj3 = 0 ;
22189 PyObject * obj4 = 0 ;
22190 PyObject * obj5 = 0 ;
22191 PyObject * obj6 = 0 ;
22192 char * kwnames[] = {
22193 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22194 };
22195
22196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22198 if (!SWIG_IsOK(res1)) {
22199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22200 }
22201 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22202 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22203 if (!SWIG_IsOK(res2)) {
22204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22205 }
22206 arg2 = reinterpret_cast< wxWindow * >(argp2);
22207 ecode3 = SWIG_AsVal_int(obj2, &val3);
22208 if (!SWIG_IsOK(ecode3)) {
22209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22210 }
22211 arg3 = static_cast< int >(val3);
22212 if (obj3) {
22213 {
22214 arg4 = &temp4;
22215 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22216 }
22217 }
22218 if (obj4) {
22219 {
22220 arg5 = &temp5;
22221 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22222 }
22223 }
22224 if (obj5) {
22225 ecode6 = SWIG_AsVal_long(obj5, &val6);
22226 if (!SWIG_IsOK(ecode6)) {
22227 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22228 }
22229 arg6 = static_cast< long >(val6);
22230 }
22231 if (obj6) {
22232 {
22233 arg7 = wxString_in_helper(obj6);
22234 if (arg7 == NULL) SWIG_fail;
22235 temp7 = true;
22236 }
22237 }
22238 {
22239 PyThreadState* __tstate = wxPyBeginAllowThreads();
22240 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22241 wxPyEndAllowThreads(__tstate);
22242 if (PyErr_Occurred()) SWIG_fail;
22243 }
22244 {
22245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22246 }
22247 {
22248 if (temp7)
22249 delete arg7;
22250 }
22251 return resultobj;
22252 fail:
22253 {
22254 if (temp7)
22255 delete arg7;
22256 }
22257 return NULL;
22258 }
22259
22260
22261 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22262 PyObject *resultobj = 0;
22263 wxToolbook *arg1 = (wxToolbook *) 0 ;
22264 wxToolBarBase *result = 0 ;
22265 void *argp1 = 0 ;
22266 int res1 = 0 ;
22267 PyObject *swig_obj[1] ;
22268
22269 if (!args) SWIG_fail;
22270 swig_obj[0] = args;
22271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22272 if (!SWIG_IsOK(res1)) {
22273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22274 }
22275 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22276 {
22277 PyThreadState* __tstate = wxPyBeginAllowThreads();
22278 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22279 wxPyEndAllowThreads(__tstate);
22280 if (PyErr_Occurred()) SWIG_fail;
22281 }
22282 {
22283 resultobj = wxPyMake_wxObject(result, (bool)0);
22284 }
22285 return resultobj;
22286 fail:
22287 return NULL;
22288 }
22289
22290
22291 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22292 PyObject *resultobj = 0;
22293 wxToolbook *arg1 = (wxToolbook *) 0 ;
22294 void *argp1 = 0 ;
22295 int res1 = 0 ;
22296 PyObject *swig_obj[1] ;
22297
22298 if (!args) SWIG_fail;
22299 swig_obj[0] = args;
22300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22301 if (!SWIG_IsOK(res1)) {
22302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22303 }
22304 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22305 {
22306 PyThreadState* __tstate = wxPyBeginAllowThreads();
22307 (arg1)->Realize();
22308 wxPyEndAllowThreads(__tstate);
22309 if (PyErr_Occurred()) SWIG_fail;
22310 }
22311 resultobj = SWIG_Py_Void();
22312 return resultobj;
22313 fail:
22314 return NULL;
22315 }
22316
22317
22318 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22319 PyObject *obj;
22320 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22321 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22322 return SWIG_Py_Void();
22323 }
22324
22325 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22326 return SWIG_Python_InitShadowInstance(args);
22327 }
22328
22329 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22330 PyObject *resultobj = 0;
22331 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22332 int arg2 = (int) 0 ;
22333 int arg3 = (int) wxNOT_FOUND ;
22334 int arg4 = (int) wxNOT_FOUND ;
22335 wxToolbookEvent *result = 0 ;
22336 int val1 ;
22337 int ecode1 = 0 ;
22338 int val2 ;
22339 int ecode2 = 0 ;
22340 int val3 ;
22341 int ecode3 = 0 ;
22342 int val4 ;
22343 int ecode4 = 0 ;
22344 PyObject * obj0 = 0 ;
22345 PyObject * obj1 = 0 ;
22346 PyObject * obj2 = 0 ;
22347 PyObject * obj3 = 0 ;
22348 char * kwnames[] = {
22349 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22350 };
22351
22352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22353 if (obj0) {
22354 ecode1 = SWIG_AsVal_int(obj0, &val1);
22355 if (!SWIG_IsOK(ecode1)) {
22356 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22357 }
22358 arg1 = static_cast< wxEventType >(val1);
22359 }
22360 if (obj1) {
22361 ecode2 = SWIG_AsVal_int(obj1, &val2);
22362 if (!SWIG_IsOK(ecode2)) {
22363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22364 }
22365 arg2 = static_cast< int >(val2);
22366 }
22367 if (obj2) {
22368 ecode3 = SWIG_AsVal_int(obj2, &val3);
22369 if (!SWIG_IsOK(ecode3)) {
22370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22371 }
22372 arg3 = static_cast< int >(val3);
22373 }
22374 if (obj3) {
22375 ecode4 = SWIG_AsVal_int(obj3, &val4);
22376 if (!SWIG_IsOK(ecode4)) {
22377 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22378 }
22379 arg4 = static_cast< int >(val4);
22380 }
22381 {
22382 PyThreadState* __tstate = wxPyBeginAllowThreads();
22383 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22384 wxPyEndAllowThreads(__tstate);
22385 if (PyErr_Occurred()) SWIG_fail;
22386 }
22387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22388 return resultobj;
22389 fail:
22390 return NULL;
22391 }
22392
22393
22394 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22395 PyObject *obj;
22396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22397 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22398 return SWIG_Py_Void();
22399 }
22400
22401 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22402 return SWIG_Python_InitShadowInstance(args);
22403 }
22404
22405 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22406 PyObject *resultobj = 0;
22407 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22408 int result;
22409 void *argp1 = 0 ;
22410 int res1 = 0 ;
22411 PyObject *swig_obj[1] ;
22412
22413 if (!args) SWIG_fail;
22414 swig_obj[0] = args;
22415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22416 if (!SWIG_IsOK(res1)) {
22417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22418 }
22419 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22420 {
22421 PyThreadState* __tstate = wxPyBeginAllowThreads();
22422 result = (int)(arg1)->GetId();
22423 wxPyEndAllowThreads(__tstate);
22424 if (PyErr_Occurred()) SWIG_fail;
22425 }
22426 resultobj = SWIG_From_int(static_cast< int >(result));
22427 return resultobj;
22428 fail:
22429 return NULL;
22430 }
22431
22432
22433 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22434 PyObject *resultobj = 0;
22435 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22436 wxControl *result = 0 ;
22437 void *argp1 = 0 ;
22438 int res1 = 0 ;
22439 PyObject *swig_obj[1] ;
22440
22441 if (!args) SWIG_fail;
22442 swig_obj[0] = args;
22443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22444 if (!SWIG_IsOK(res1)) {
22445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22446 }
22447 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22448 {
22449 PyThreadState* __tstate = wxPyBeginAllowThreads();
22450 result = (wxControl *)(arg1)->GetControl();
22451 wxPyEndAllowThreads(__tstate);
22452 if (PyErr_Occurred()) SWIG_fail;
22453 }
22454 {
22455 resultobj = wxPyMake_wxObject(result, 0);
22456 }
22457 return resultobj;
22458 fail:
22459 return NULL;
22460 }
22461
22462
22463 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22464 PyObject *resultobj = 0;
22465 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22466 wxToolBarBase *result = 0 ;
22467 void *argp1 = 0 ;
22468 int res1 = 0 ;
22469 PyObject *swig_obj[1] ;
22470
22471 if (!args) SWIG_fail;
22472 swig_obj[0] = args;
22473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22474 if (!SWIG_IsOK(res1)) {
22475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22476 }
22477 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22478 {
22479 PyThreadState* __tstate = wxPyBeginAllowThreads();
22480 result = (wxToolBarBase *)(arg1)->GetToolBar();
22481 wxPyEndAllowThreads(__tstate);
22482 if (PyErr_Occurred()) SWIG_fail;
22483 }
22484 {
22485 resultobj = wxPyMake_wxObject(result, (bool)0);
22486 }
22487 return resultobj;
22488 fail:
22489 return NULL;
22490 }
22491
22492
22493 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22494 PyObject *resultobj = 0;
22495 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22496 int result;
22497 void *argp1 = 0 ;
22498 int res1 = 0 ;
22499 PyObject *swig_obj[1] ;
22500
22501 if (!args) SWIG_fail;
22502 swig_obj[0] = args;
22503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22504 if (!SWIG_IsOK(res1)) {
22505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22506 }
22507 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22508 {
22509 PyThreadState* __tstate = wxPyBeginAllowThreads();
22510 result = (int)(arg1)->IsButton();
22511 wxPyEndAllowThreads(__tstate);
22512 if (PyErr_Occurred()) SWIG_fail;
22513 }
22514 resultobj = SWIG_From_int(static_cast< int >(result));
22515 return resultobj;
22516 fail:
22517 return NULL;
22518 }
22519
22520
22521 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22522 PyObject *resultobj = 0;
22523 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22524 int result;
22525 void *argp1 = 0 ;
22526 int res1 = 0 ;
22527 PyObject *swig_obj[1] ;
22528
22529 if (!args) SWIG_fail;
22530 swig_obj[0] = args;
22531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22532 if (!SWIG_IsOK(res1)) {
22533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22534 }
22535 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22536 {
22537 PyThreadState* __tstate = wxPyBeginAllowThreads();
22538 result = (int)(arg1)->IsControl();
22539 wxPyEndAllowThreads(__tstate);
22540 if (PyErr_Occurred()) SWIG_fail;
22541 }
22542 resultobj = SWIG_From_int(static_cast< int >(result));
22543 return resultobj;
22544 fail:
22545 return NULL;
22546 }
22547
22548
22549 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22550 PyObject *resultobj = 0;
22551 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22552 int result;
22553 void *argp1 = 0 ;
22554 int res1 = 0 ;
22555 PyObject *swig_obj[1] ;
22556
22557 if (!args) SWIG_fail;
22558 swig_obj[0] = args;
22559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22560 if (!SWIG_IsOK(res1)) {
22561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22562 }
22563 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22564 {
22565 PyThreadState* __tstate = wxPyBeginAllowThreads();
22566 result = (int)(arg1)->IsSeparator();
22567 wxPyEndAllowThreads(__tstate);
22568 if (PyErr_Occurred()) SWIG_fail;
22569 }
22570 resultobj = SWIG_From_int(static_cast< int >(result));
22571 return resultobj;
22572 fail:
22573 return NULL;
22574 }
22575
22576
22577 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22578 PyObject *resultobj = 0;
22579 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22580 int result;
22581 void *argp1 = 0 ;
22582 int res1 = 0 ;
22583 PyObject *swig_obj[1] ;
22584
22585 if (!args) SWIG_fail;
22586 swig_obj[0] = args;
22587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22588 if (!SWIG_IsOK(res1)) {
22589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22590 }
22591 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22592 {
22593 PyThreadState* __tstate = wxPyBeginAllowThreads();
22594 result = (int)(arg1)->GetStyle();
22595 wxPyEndAllowThreads(__tstate);
22596 if (PyErr_Occurred()) SWIG_fail;
22597 }
22598 resultobj = SWIG_From_int(static_cast< int >(result));
22599 return resultobj;
22600 fail:
22601 return NULL;
22602 }
22603
22604
22605 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22606 PyObject *resultobj = 0;
22607 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22608 wxItemKind result;
22609 void *argp1 = 0 ;
22610 int res1 = 0 ;
22611 PyObject *swig_obj[1] ;
22612
22613 if (!args) SWIG_fail;
22614 swig_obj[0] = args;
22615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22616 if (!SWIG_IsOK(res1)) {
22617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22618 }
22619 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22620 {
22621 PyThreadState* __tstate = wxPyBeginAllowThreads();
22622 result = (wxItemKind)(arg1)->GetKind();
22623 wxPyEndAllowThreads(__tstate);
22624 if (PyErr_Occurred()) SWIG_fail;
22625 }
22626 resultobj = SWIG_From_int(static_cast< int >(result));
22627 return resultobj;
22628 fail:
22629 return NULL;
22630 }
22631
22632
22633 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22634 PyObject *resultobj = 0;
22635 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22636 bool result;
22637 void *argp1 = 0 ;
22638 int res1 = 0 ;
22639 PyObject *swig_obj[1] ;
22640
22641 if (!args) SWIG_fail;
22642 swig_obj[0] = args;
22643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22644 if (!SWIG_IsOK(res1)) {
22645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22646 }
22647 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22648 {
22649 PyThreadState* __tstate = wxPyBeginAllowThreads();
22650 result = (bool)(arg1)->IsEnabled();
22651 wxPyEndAllowThreads(__tstate);
22652 if (PyErr_Occurred()) SWIG_fail;
22653 }
22654 {
22655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22656 }
22657 return resultobj;
22658 fail:
22659 return NULL;
22660 }
22661
22662
22663 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22664 PyObject *resultobj = 0;
22665 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22666 bool result;
22667 void *argp1 = 0 ;
22668 int res1 = 0 ;
22669 PyObject *swig_obj[1] ;
22670
22671 if (!args) SWIG_fail;
22672 swig_obj[0] = args;
22673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22674 if (!SWIG_IsOK(res1)) {
22675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22676 }
22677 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22678 {
22679 PyThreadState* __tstate = wxPyBeginAllowThreads();
22680 result = (bool)(arg1)->IsToggled();
22681 wxPyEndAllowThreads(__tstate);
22682 if (PyErr_Occurred()) SWIG_fail;
22683 }
22684 {
22685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22686 }
22687 return resultobj;
22688 fail:
22689 return NULL;
22690 }
22691
22692
22693 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22694 PyObject *resultobj = 0;
22695 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22696 bool result;
22697 void *argp1 = 0 ;
22698 int res1 = 0 ;
22699 PyObject *swig_obj[1] ;
22700
22701 if (!args) SWIG_fail;
22702 swig_obj[0] = args;
22703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22704 if (!SWIG_IsOK(res1)) {
22705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22706 }
22707 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22708 {
22709 PyThreadState* __tstate = wxPyBeginAllowThreads();
22710 result = (bool)(arg1)->CanBeToggled();
22711 wxPyEndAllowThreads(__tstate);
22712 if (PyErr_Occurred()) SWIG_fail;
22713 }
22714 {
22715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22716 }
22717 return resultobj;
22718 fail:
22719 return NULL;
22720 }
22721
22722
22723 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22724 PyObject *resultobj = 0;
22725 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22726 wxBitmap *result = 0 ;
22727 void *argp1 = 0 ;
22728 int res1 = 0 ;
22729 PyObject *swig_obj[1] ;
22730
22731 if (!args) SWIG_fail;
22732 swig_obj[0] = args;
22733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22734 if (!SWIG_IsOK(res1)) {
22735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22736 }
22737 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22738 {
22739 PyThreadState* __tstate = wxPyBeginAllowThreads();
22740 {
22741 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22742 result = (wxBitmap *) &_result_ref;
22743 }
22744 wxPyEndAllowThreads(__tstate);
22745 if (PyErr_Occurred()) SWIG_fail;
22746 }
22747 {
22748 wxBitmap* resultptr = new wxBitmap(*result);
22749 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22750 }
22751 return resultobj;
22752 fail:
22753 return NULL;
22754 }
22755
22756
22757 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22758 PyObject *resultobj = 0;
22759 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22760 wxBitmap *result = 0 ;
22761 void *argp1 = 0 ;
22762 int res1 = 0 ;
22763 PyObject *swig_obj[1] ;
22764
22765 if (!args) SWIG_fail;
22766 swig_obj[0] = args;
22767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22768 if (!SWIG_IsOK(res1)) {
22769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22770 }
22771 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22772 {
22773 PyThreadState* __tstate = wxPyBeginAllowThreads();
22774 {
22775 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22776 result = (wxBitmap *) &_result_ref;
22777 }
22778 wxPyEndAllowThreads(__tstate);
22779 if (PyErr_Occurred()) SWIG_fail;
22780 }
22781 {
22782 wxBitmap* resultptr = new wxBitmap(*result);
22783 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22784 }
22785 return resultobj;
22786 fail:
22787 return NULL;
22788 }
22789
22790
22791 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22792 PyObject *resultobj = 0;
22793 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22794 wxBitmap result;
22795 void *argp1 = 0 ;
22796 int res1 = 0 ;
22797 PyObject *swig_obj[1] ;
22798
22799 if (!args) SWIG_fail;
22800 swig_obj[0] = args;
22801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22802 if (!SWIG_IsOK(res1)) {
22803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22804 }
22805 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22806 {
22807 PyThreadState* __tstate = wxPyBeginAllowThreads();
22808 result = (arg1)->GetBitmap();
22809 wxPyEndAllowThreads(__tstate);
22810 if (PyErr_Occurred()) SWIG_fail;
22811 }
22812 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22813 return resultobj;
22814 fail:
22815 return NULL;
22816 }
22817
22818
22819 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22820 PyObject *resultobj = 0;
22821 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22822 wxString result;
22823 void *argp1 = 0 ;
22824 int res1 = 0 ;
22825 PyObject *swig_obj[1] ;
22826
22827 if (!args) SWIG_fail;
22828 swig_obj[0] = args;
22829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22830 if (!SWIG_IsOK(res1)) {
22831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22832 }
22833 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22834 {
22835 PyThreadState* __tstate = wxPyBeginAllowThreads();
22836 result = (arg1)->GetLabel();
22837 wxPyEndAllowThreads(__tstate);
22838 if (PyErr_Occurred()) SWIG_fail;
22839 }
22840 {
22841 #if wxUSE_UNICODE
22842 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22843 #else
22844 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22845 #endif
22846 }
22847 return resultobj;
22848 fail:
22849 return NULL;
22850 }
22851
22852
22853 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22854 PyObject *resultobj = 0;
22855 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22856 wxString result;
22857 void *argp1 = 0 ;
22858 int res1 = 0 ;
22859 PyObject *swig_obj[1] ;
22860
22861 if (!args) SWIG_fail;
22862 swig_obj[0] = args;
22863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22864 if (!SWIG_IsOK(res1)) {
22865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22866 }
22867 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22868 {
22869 PyThreadState* __tstate = wxPyBeginAllowThreads();
22870 result = (arg1)->GetShortHelp();
22871 wxPyEndAllowThreads(__tstate);
22872 if (PyErr_Occurred()) SWIG_fail;
22873 }
22874 {
22875 #if wxUSE_UNICODE
22876 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22877 #else
22878 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22879 #endif
22880 }
22881 return resultobj;
22882 fail:
22883 return NULL;
22884 }
22885
22886
22887 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22888 PyObject *resultobj = 0;
22889 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22890 wxString result;
22891 void *argp1 = 0 ;
22892 int res1 = 0 ;
22893 PyObject *swig_obj[1] ;
22894
22895 if (!args) SWIG_fail;
22896 swig_obj[0] = args;
22897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22898 if (!SWIG_IsOK(res1)) {
22899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22900 }
22901 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22902 {
22903 PyThreadState* __tstate = wxPyBeginAllowThreads();
22904 result = (arg1)->GetLongHelp();
22905 wxPyEndAllowThreads(__tstate);
22906 if (PyErr_Occurred()) SWIG_fail;
22907 }
22908 {
22909 #if wxUSE_UNICODE
22910 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22911 #else
22912 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22913 #endif
22914 }
22915 return resultobj;
22916 fail:
22917 return NULL;
22918 }
22919
22920
22921 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22922 PyObject *resultobj = 0;
22923 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22924 bool arg2 ;
22925 bool result;
22926 void *argp1 = 0 ;
22927 int res1 = 0 ;
22928 bool val2 ;
22929 int ecode2 = 0 ;
22930 PyObject * obj0 = 0 ;
22931 PyObject * obj1 = 0 ;
22932 char * kwnames[] = {
22933 (char *) "self",(char *) "enable", NULL
22934 };
22935
22936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
22937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22938 if (!SWIG_IsOK(res1)) {
22939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22940 }
22941 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22942 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22943 if (!SWIG_IsOK(ecode2)) {
22944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
22945 }
22946 arg2 = static_cast< bool >(val2);
22947 {
22948 PyThreadState* __tstate = wxPyBeginAllowThreads();
22949 result = (bool)(arg1)->Enable(arg2);
22950 wxPyEndAllowThreads(__tstate);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 }
22953 {
22954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22955 }
22956 return resultobj;
22957 fail:
22958 return NULL;
22959 }
22960
22961
22962 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22963 PyObject *resultobj = 0;
22964 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22965 void *argp1 = 0 ;
22966 int res1 = 0 ;
22967 PyObject *swig_obj[1] ;
22968
22969 if (!args) SWIG_fail;
22970 swig_obj[0] = args;
22971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22972 if (!SWIG_IsOK(res1)) {
22973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22974 }
22975 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22976 {
22977 PyThreadState* __tstate = wxPyBeginAllowThreads();
22978 (arg1)->Toggle();
22979 wxPyEndAllowThreads(__tstate);
22980 if (PyErr_Occurred()) SWIG_fail;
22981 }
22982 resultobj = SWIG_Py_Void();
22983 return resultobj;
22984 fail:
22985 return NULL;
22986 }
22987
22988
22989 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22990 PyObject *resultobj = 0;
22991 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22992 bool arg2 ;
22993 bool result;
22994 void *argp1 = 0 ;
22995 int res1 = 0 ;
22996 bool val2 ;
22997 int ecode2 = 0 ;
22998 PyObject * obj0 = 0 ;
22999 PyObject * obj1 = 0 ;
23000 char * kwnames[] = {
23001 (char *) "self",(char *) "toggle", NULL
23002 };
23003
23004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23006 if (!SWIG_IsOK(res1)) {
23007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23008 }
23009 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23010 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23011 if (!SWIG_IsOK(ecode2)) {
23012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23013 }
23014 arg2 = static_cast< bool >(val2);
23015 {
23016 PyThreadState* __tstate = wxPyBeginAllowThreads();
23017 result = (bool)(arg1)->SetToggle(arg2);
23018 wxPyEndAllowThreads(__tstate);
23019 if (PyErr_Occurred()) SWIG_fail;
23020 }
23021 {
23022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23023 }
23024 return resultobj;
23025 fail:
23026 return NULL;
23027 }
23028
23029
23030 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23031 PyObject *resultobj = 0;
23032 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23033 wxString *arg2 = 0 ;
23034 bool result;
23035 void *argp1 = 0 ;
23036 int res1 = 0 ;
23037 bool temp2 = false ;
23038 PyObject * obj0 = 0 ;
23039 PyObject * obj1 = 0 ;
23040 char * kwnames[] = {
23041 (char *) "self",(char *) "help", NULL
23042 };
23043
23044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23046 if (!SWIG_IsOK(res1)) {
23047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23048 }
23049 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23050 {
23051 arg2 = wxString_in_helper(obj1);
23052 if (arg2 == NULL) SWIG_fail;
23053 temp2 = true;
23054 }
23055 {
23056 PyThreadState* __tstate = wxPyBeginAllowThreads();
23057 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23058 wxPyEndAllowThreads(__tstate);
23059 if (PyErr_Occurred()) SWIG_fail;
23060 }
23061 {
23062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23063 }
23064 {
23065 if (temp2)
23066 delete arg2;
23067 }
23068 return resultobj;
23069 fail:
23070 {
23071 if (temp2)
23072 delete arg2;
23073 }
23074 return NULL;
23075 }
23076
23077
23078 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23079 PyObject *resultobj = 0;
23080 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23081 wxString *arg2 = 0 ;
23082 bool result;
23083 void *argp1 = 0 ;
23084 int res1 = 0 ;
23085 bool temp2 = false ;
23086 PyObject * obj0 = 0 ;
23087 PyObject * obj1 = 0 ;
23088 char * kwnames[] = {
23089 (char *) "self",(char *) "help", NULL
23090 };
23091
23092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23094 if (!SWIG_IsOK(res1)) {
23095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23096 }
23097 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23098 {
23099 arg2 = wxString_in_helper(obj1);
23100 if (arg2 == NULL) SWIG_fail;
23101 temp2 = true;
23102 }
23103 {
23104 PyThreadState* __tstate = wxPyBeginAllowThreads();
23105 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23106 wxPyEndAllowThreads(__tstate);
23107 if (PyErr_Occurred()) SWIG_fail;
23108 }
23109 {
23110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23111 }
23112 {
23113 if (temp2)
23114 delete arg2;
23115 }
23116 return resultobj;
23117 fail:
23118 {
23119 if (temp2)
23120 delete arg2;
23121 }
23122 return NULL;
23123 }
23124
23125
23126 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23127 PyObject *resultobj = 0;
23128 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23129 wxBitmap *arg2 = 0 ;
23130 void *argp1 = 0 ;
23131 int res1 = 0 ;
23132 void *argp2 = 0 ;
23133 int res2 = 0 ;
23134 PyObject * obj0 = 0 ;
23135 PyObject * obj1 = 0 ;
23136 char * kwnames[] = {
23137 (char *) "self",(char *) "bmp", NULL
23138 };
23139
23140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23142 if (!SWIG_IsOK(res1)) {
23143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23144 }
23145 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23146 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23147 if (!SWIG_IsOK(res2)) {
23148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23149 }
23150 if (!argp2) {
23151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23152 }
23153 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23154 {
23155 PyThreadState* __tstate = wxPyBeginAllowThreads();
23156 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23157 wxPyEndAllowThreads(__tstate);
23158 if (PyErr_Occurred()) SWIG_fail;
23159 }
23160 resultobj = SWIG_Py_Void();
23161 return resultobj;
23162 fail:
23163 return NULL;
23164 }
23165
23166
23167 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23168 PyObject *resultobj = 0;
23169 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23170 wxBitmap *arg2 = 0 ;
23171 void *argp1 = 0 ;
23172 int res1 = 0 ;
23173 void *argp2 = 0 ;
23174 int res2 = 0 ;
23175 PyObject * obj0 = 0 ;
23176 PyObject * obj1 = 0 ;
23177 char * kwnames[] = {
23178 (char *) "self",(char *) "bmp", NULL
23179 };
23180
23181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23183 if (!SWIG_IsOK(res1)) {
23184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23185 }
23186 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23187 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23188 if (!SWIG_IsOK(res2)) {
23189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23190 }
23191 if (!argp2) {
23192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23193 }
23194 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23195 {
23196 PyThreadState* __tstate = wxPyBeginAllowThreads();
23197 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23198 wxPyEndAllowThreads(__tstate);
23199 if (PyErr_Occurred()) SWIG_fail;
23200 }
23201 resultobj = SWIG_Py_Void();
23202 return resultobj;
23203 fail:
23204 return NULL;
23205 }
23206
23207
23208 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23209 PyObject *resultobj = 0;
23210 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23211 wxString *arg2 = 0 ;
23212 void *argp1 = 0 ;
23213 int res1 = 0 ;
23214 bool temp2 = false ;
23215 PyObject * obj0 = 0 ;
23216 PyObject * obj1 = 0 ;
23217 char * kwnames[] = {
23218 (char *) "self",(char *) "label", NULL
23219 };
23220
23221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23223 if (!SWIG_IsOK(res1)) {
23224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23225 }
23226 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23227 {
23228 arg2 = wxString_in_helper(obj1);
23229 if (arg2 == NULL) SWIG_fail;
23230 temp2 = true;
23231 }
23232 {
23233 PyThreadState* __tstate = wxPyBeginAllowThreads();
23234 (arg1)->SetLabel((wxString const &)*arg2);
23235 wxPyEndAllowThreads(__tstate);
23236 if (PyErr_Occurred()) SWIG_fail;
23237 }
23238 resultobj = SWIG_Py_Void();
23239 {
23240 if (temp2)
23241 delete arg2;
23242 }
23243 return resultobj;
23244 fail:
23245 {
23246 if (temp2)
23247 delete arg2;
23248 }
23249 return NULL;
23250 }
23251
23252
23253 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23254 PyObject *resultobj = 0;
23255 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23256 void *argp1 = 0 ;
23257 int res1 = 0 ;
23258 PyObject *swig_obj[1] ;
23259
23260 if (!args) SWIG_fail;
23261 swig_obj[0] = args;
23262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23263 if (!SWIG_IsOK(res1)) {
23264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23265 }
23266 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23267 {
23268 PyThreadState* __tstate = wxPyBeginAllowThreads();
23269 (arg1)->Detach();
23270 wxPyEndAllowThreads(__tstate);
23271 if (PyErr_Occurred()) SWIG_fail;
23272 }
23273 resultobj = SWIG_Py_Void();
23274 return resultobj;
23275 fail:
23276 return NULL;
23277 }
23278
23279
23280 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23281 PyObject *resultobj = 0;
23282 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23283 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23284 void *argp1 = 0 ;
23285 int res1 = 0 ;
23286 void *argp2 = 0 ;
23287 int res2 = 0 ;
23288 PyObject * obj0 = 0 ;
23289 PyObject * obj1 = 0 ;
23290 char * kwnames[] = {
23291 (char *) "self",(char *) "tbar", NULL
23292 };
23293
23294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23296 if (!SWIG_IsOK(res1)) {
23297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23298 }
23299 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23300 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23301 if (!SWIG_IsOK(res2)) {
23302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23303 }
23304 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23305 {
23306 PyThreadState* __tstate = wxPyBeginAllowThreads();
23307 (arg1)->Attach(arg2);
23308 wxPyEndAllowThreads(__tstate);
23309 if (PyErr_Occurred()) SWIG_fail;
23310 }
23311 resultobj = SWIG_Py_Void();
23312 return resultobj;
23313 fail:
23314 return NULL;
23315 }
23316
23317
23318 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23319 PyObject *resultobj = 0;
23320 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23321 PyObject *result = 0 ;
23322 void *argp1 = 0 ;
23323 int res1 = 0 ;
23324 PyObject *swig_obj[1] ;
23325
23326 if (!args) SWIG_fail;
23327 swig_obj[0] = args;
23328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23329 if (!SWIG_IsOK(res1)) {
23330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23331 }
23332 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23333 {
23334 PyThreadState* __tstate = wxPyBeginAllowThreads();
23335 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23336 wxPyEndAllowThreads(__tstate);
23337 if (PyErr_Occurred()) SWIG_fail;
23338 }
23339 resultobj = result;
23340 return resultobj;
23341 fail:
23342 return NULL;
23343 }
23344
23345
23346 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23347 PyObject *resultobj = 0;
23348 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23349 PyObject *arg2 = (PyObject *) 0 ;
23350 void *argp1 = 0 ;
23351 int res1 = 0 ;
23352 PyObject * obj0 = 0 ;
23353 PyObject * obj1 = 0 ;
23354 char * kwnames[] = {
23355 (char *) "self",(char *) "clientData", NULL
23356 };
23357
23358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23360 if (!SWIG_IsOK(res1)) {
23361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23362 }
23363 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23364 arg2 = obj1;
23365 {
23366 PyThreadState* __tstate = wxPyBeginAllowThreads();
23367 wxToolBarToolBase_SetClientData(arg1,arg2);
23368 wxPyEndAllowThreads(__tstate);
23369 if (PyErr_Occurred()) SWIG_fail;
23370 }
23371 resultobj = SWIG_Py_Void();
23372 return resultobj;
23373 fail:
23374 return NULL;
23375 }
23376
23377
23378 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23379 PyObject *obj;
23380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23381 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23382 return SWIG_Py_Void();
23383 }
23384
23385 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23386 PyObject *resultobj = 0;
23387 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23388 int arg2 ;
23389 wxString *arg3 = 0 ;
23390 wxBitmap *arg4 = 0 ;
23391 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23392 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23393 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23394 wxString const &arg7_defvalue = wxPyEmptyString ;
23395 wxString *arg7 = (wxString *) &arg7_defvalue ;
23396 wxString const &arg8_defvalue = wxPyEmptyString ;
23397 wxString *arg8 = (wxString *) &arg8_defvalue ;
23398 PyObject *arg9 = (PyObject *) NULL ;
23399 wxToolBarToolBase *result = 0 ;
23400 void *argp1 = 0 ;
23401 int res1 = 0 ;
23402 int val2 ;
23403 int ecode2 = 0 ;
23404 bool temp3 = false ;
23405 void *argp4 = 0 ;
23406 int res4 = 0 ;
23407 void *argp5 = 0 ;
23408 int res5 = 0 ;
23409 int val6 ;
23410 int ecode6 = 0 ;
23411 bool temp7 = false ;
23412 bool temp8 = false ;
23413 PyObject * obj0 = 0 ;
23414 PyObject * obj1 = 0 ;
23415 PyObject * obj2 = 0 ;
23416 PyObject * obj3 = 0 ;
23417 PyObject * obj4 = 0 ;
23418 PyObject * obj5 = 0 ;
23419 PyObject * obj6 = 0 ;
23420 PyObject * obj7 = 0 ;
23421 PyObject * obj8 = 0 ;
23422 char * kwnames[] = {
23423 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23424 };
23425
23426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23428 if (!SWIG_IsOK(res1)) {
23429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23430 }
23431 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23432 ecode2 = SWIG_AsVal_int(obj1, &val2);
23433 if (!SWIG_IsOK(ecode2)) {
23434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23435 }
23436 arg2 = static_cast< int >(val2);
23437 {
23438 arg3 = wxString_in_helper(obj2);
23439 if (arg3 == NULL) SWIG_fail;
23440 temp3 = true;
23441 }
23442 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23443 if (!SWIG_IsOK(res4)) {
23444 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23445 }
23446 if (!argp4) {
23447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23448 }
23449 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23450 if (obj4) {
23451 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23452 if (!SWIG_IsOK(res5)) {
23453 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23454 }
23455 if (!argp5) {
23456 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23457 }
23458 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23459 }
23460 if (obj5) {
23461 ecode6 = SWIG_AsVal_int(obj5, &val6);
23462 if (!SWIG_IsOK(ecode6)) {
23463 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23464 }
23465 arg6 = static_cast< wxItemKind >(val6);
23466 }
23467 if (obj6) {
23468 {
23469 arg7 = wxString_in_helper(obj6);
23470 if (arg7 == NULL) SWIG_fail;
23471 temp7 = true;
23472 }
23473 }
23474 if (obj7) {
23475 {
23476 arg8 = wxString_in_helper(obj7);
23477 if (arg8 == NULL) SWIG_fail;
23478 temp8 = true;
23479 }
23480 }
23481 if (obj8) {
23482 arg9 = obj8;
23483 }
23484 {
23485 PyThreadState* __tstate = wxPyBeginAllowThreads();
23486 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23487 wxPyEndAllowThreads(__tstate);
23488 if (PyErr_Occurred()) SWIG_fail;
23489 }
23490 {
23491 resultobj = wxPyMake_wxObject(result, (bool)0);
23492 }
23493 {
23494 if (temp3)
23495 delete arg3;
23496 }
23497 {
23498 if (temp7)
23499 delete arg7;
23500 }
23501 {
23502 if (temp8)
23503 delete arg8;
23504 }
23505 return resultobj;
23506 fail:
23507 {
23508 if (temp3)
23509 delete arg3;
23510 }
23511 {
23512 if (temp7)
23513 delete arg7;
23514 }
23515 {
23516 if (temp8)
23517 delete arg8;
23518 }
23519 return NULL;
23520 }
23521
23522
23523 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23524 PyObject *resultobj = 0;
23525 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23526 size_t arg2 ;
23527 int arg3 ;
23528 wxString *arg4 = 0 ;
23529 wxBitmap *arg5 = 0 ;
23530 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23531 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23532 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23533 wxString const &arg8_defvalue = wxPyEmptyString ;
23534 wxString *arg8 = (wxString *) &arg8_defvalue ;
23535 wxString const &arg9_defvalue = wxPyEmptyString ;
23536 wxString *arg9 = (wxString *) &arg9_defvalue ;
23537 PyObject *arg10 = (PyObject *) NULL ;
23538 wxToolBarToolBase *result = 0 ;
23539 void *argp1 = 0 ;
23540 int res1 = 0 ;
23541 size_t val2 ;
23542 int ecode2 = 0 ;
23543 int val3 ;
23544 int ecode3 = 0 ;
23545 bool temp4 = false ;
23546 void *argp5 = 0 ;
23547 int res5 = 0 ;
23548 void *argp6 = 0 ;
23549 int res6 = 0 ;
23550 int val7 ;
23551 int ecode7 = 0 ;
23552 bool temp8 = false ;
23553 bool temp9 = false ;
23554 PyObject * obj0 = 0 ;
23555 PyObject * obj1 = 0 ;
23556 PyObject * obj2 = 0 ;
23557 PyObject * obj3 = 0 ;
23558 PyObject * obj4 = 0 ;
23559 PyObject * obj5 = 0 ;
23560 PyObject * obj6 = 0 ;
23561 PyObject * obj7 = 0 ;
23562 PyObject * obj8 = 0 ;
23563 PyObject * obj9 = 0 ;
23564 char * kwnames[] = {
23565 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23566 };
23567
23568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23570 if (!SWIG_IsOK(res1)) {
23571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23572 }
23573 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23574 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23575 if (!SWIG_IsOK(ecode2)) {
23576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23577 }
23578 arg2 = static_cast< size_t >(val2);
23579 ecode3 = SWIG_AsVal_int(obj2, &val3);
23580 if (!SWIG_IsOK(ecode3)) {
23581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23582 }
23583 arg3 = static_cast< int >(val3);
23584 {
23585 arg4 = wxString_in_helper(obj3);
23586 if (arg4 == NULL) SWIG_fail;
23587 temp4 = true;
23588 }
23589 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23590 if (!SWIG_IsOK(res5)) {
23591 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23592 }
23593 if (!argp5) {
23594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23595 }
23596 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23597 if (obj5) {
23598 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23599 if (!SWIG_IsOK(res6)) {
23600 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23601 }
23602 if (!argp6) {
23603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23604 }
23605 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23606 }
23607 if (obj6) {
23608 ecode7 = SWIG_AsVal_int(obj6, &val7);
23609 if (!SWIG_IsOK(ecode7)) {
23610 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23611 }
23612 arg7 = static_cast< wxItemKind >(val7);
23613 }
23614 if (obj7) {
23615 {
23616 arg8 = wxString_in_helper(obj7);
23617 if (arg8 == NULL) SWIG_fail;
23618 temp8 = true;
23619 }
23620 }
23621 if (obj8) {
23622 {
23623 arg9 = wxString_in_helper(obj8);
23624 if (arg9 == NULL) SWIG_fail;
23625 temp9 = true;
23626 }
23627 }
23628 if (obj9) {
23629 arg10 = obj9;
23630 }
23631 {
23632 PyThreadState* __tstate = wxPyBeginAllowThreads();
23633 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23634 wxPyEndAllowThreads(__tstate);
23635 if (PyErr_Occurred()) SWIG_fail;
23636 }
23637 {
23638 resultobj = wxPyMake_wxObject(result, (bool)0);
23639 }
23640 {
23641 if (temp4)
23642 delete arg4;
23643 }
23644 {
23645 if (temp8)
23646 delete arg8;
23647 }
23648 {
23649 if (temp9)
23650 delete arg9;
23651 }
23652 return resultobj;
23653 fail:
23654 {
23655 if (temp4)
23656 delete arg4;
23657 }
23658 {
23659 if (temp8)
23660 delete arg8;
23661 }
23662 {
23663 if (temp9)
23664 delete arg9;
23665 }
23666 return NULL;
23667 }
23668
23669
23670 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23671 PyObject *resultobj = 0;
23672 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23673 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23674 wxToolBarToolBase *result = 0 ;
23675 void *argp1 = 0 ;
23676 int res1 = 0 ;
23677 void *argp2 = 0 ;
23678 int res2 = 0 ;
23679 PyObject * obj0 = 0 ;
23680 PyObject * obj1 = 0 ;
23681 char * kwnames[] = {
23682 (char *) "self",(char *) "tool", NULL
23683 };
23684
23685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23687 if (!SWIG_IsOK(res1)) {
23688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23689 }
23690 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23691 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23692 if (!SWIG_IsOK(res2)) {
23693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23694 }
23695 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23696 {
23697 PyThreadState* __tstate = wxPyBeginAllowThreads();
23698 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23699 wxPyEndAllowThreads(__tstate);
23700 if (PyErr_Occurred()) SWIG_fail;
23701 }
23702 {
23703 resultobj = wxPyMake_wxObject(result, (bool)0);
23704 }
23705 return resultobj;
23706 fail:
23707 return NULL;
23708 }
23709
23710
23711 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23712 PyObject *resultobj = 0;
23713 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23714 size_t arg2 ;
23715 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23716 wxToolBarToolBase *result = 0 ;
23717 void *argp1 = 0 ;
23718 int res1 = 0 ;
23719 size_t val2 ;
23720 int ecode2 = 0 ;
23721 void *argp3 = 0 ;
23722 int res3 = 0 ;
23723 PyObject * obj0 = 0 ;
23724 PyObject * obj1 = 0 ;
23725 PyObject * obj2 = 0 ;
23726 char * kwnames[] = {
23727 (char *) "self",(char *) "pos",(char *) "tool", NULL
23728 };
23729
23730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23732 if (!SWIG_IsOK(res1)) {
23733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23734 }
23735 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23736 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23737 if (!SWIG_IsOK(ecode2)) {
23738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23739 }
23740 arg2 = static_cast< size_t >(val2);
23741 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23742 if (!SWIG_IsOK(res3)) {
23743 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23744 }
23745 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23746 {
23747 PyThreadState* __tstate = wxPyBeginAllowThreads();
23748 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23749 wxPyEndAllowThreads(__tstate);
23750 if (PyErr_Occurred()) SWIG_fail;
23751 }
23752 {
23753 resultobj = wxPyMake_wxObject(result, (bool)0);
23754 }
23755 return resultobj;
23756 fail:
23757 return NULL;
23758 }
23759
23760
23761 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23762 PyObject *resultobj = 0;
23763 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23764 wxControl *arg2 = (wxControl *) 0 ;
23765 wxToolBarToolBase *result = 0 ;
23766 void *argp1 = 0 ;
23767 int res1 = 0 ;
23768 void *argp2 = 0 ;
23769 int res2 = 0 ;
23770 PyObject * obj0 = 0 ;
23771 PyObject * obj1 = 0 ;
23772 char * kwnames[] = {
23773 (char *) "self",(char *) "control", NULL
23774 };
23775
23776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23778 if (!SWIG_IsOK(res1)) {
23779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23780 }
23781 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23782 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23783 if (!SWIG_IsOK(res2)) {
23784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23785 }
23786 arg2 = reinterpret_cast< wxControl * >(argp2);
23787 {
23788 PyThreadState* __tstate = wxPyBeginAllowThreads();
23789 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23790 wxPyEndAllowThreads(__tstate);
23791 if (PyErr_Occurred()) SWIG_fail;
23792 }
23793 {
23794 resultobj = wxPyMake_wxObject(result, (bool)0);
23795 }
23796 return resultobj;
23797 fail:
23798 return NULL;
23799 }
23800
23801
23802 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23803 PyObject *resultobj = 0;
23804 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23805 size_t arg2 ;
23806 wxControl *arg3 = (wxControl *) 0 ;
23807 wxToolBarToolBase *result = 0 ;
23808 void *argp1 = 0 ;
23809 int res1 = 0 ;
23810 size_t val2 ;
23811 int ecode2 = 0 ;
23812 void *argp3 = 0 ;
23813 int res3 = 0 ;
23814 PyObject * obj0 = 0 ;
23815 PyObject * obj1 = 0 ;
23816 PyObject * obj2 = 0 ;
23817 char * kwnames[] = {
23818 (char *) "self",(char *) "pos",(char *) "control", NULL
23819 };
23820
23821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23823 if (!SWIG_IsOK(res1)) {
23824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23825 }
23826 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23827 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23828 if (!SWIG_IsOK(ecode2)) {
23829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23830 }
23831 arg2 = static_cast< size_t >(val2);
23832 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23833 if (!SWIG_IsOK(res3)) {
23834 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23835 }
23836 arg3 = reinterpret_cast< wxControl * >(argp3);
23837 {
23838 PyThreadState* __tstate = wxPyBeginAllowThreads();
23839 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23840 wxPyEndAllowThreads(__tstate);
23841 if (PyErr_Occurred()) SWIG_fail;
23842 }
23843 {
23844 resultobj = wxPyMake_wxObject(result, (bool)0);
23845 }
23846 return resultobj;
23847 fail:
23848 return NULL;
23849 }
23850
23851
23852 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23853 PyObject *resultobj = 0;
23854 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23855 int arg2 ;
23856 wxControl *result = 0 ;
23857 void *argp1 = 0 ;
23858 int res1 = 0 ;
23859 int val2 ;
23860 int ecode2 = 0 ;
23861 PyObject * obj0 = 0 ;
23862 PyObject * obj1 = 0 ;
23863 char * kwnames[] = {
23864 (char *) "self",(char *) "id", NULL
23865 };
23866
23867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23869 if (!SWIG_IsOK(res1)) {
23870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23871 }
23872 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23873 ecode2 = SWIG_AsVal_int(obj1, &val2);
23874 if (!SWIG_IsOK(ecode2)) {
23875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23876 }
23877 arg2 = static_cast< int >(val2);
23878 {
23879 PyThreadState* __tstate = wxPyBeginAllowThreads();
23880 result = (wxControl *)(arg1)->FindControl(arg2);
23881 wxPyEndAllowThreads(__tstate);
23882 if (PyErr_Occurred()) SWIG_fail;
23883 }
23884 {
23885 resultobj = wxPyMake_wxObject(result, 0);
23886 }
23887 return resultobj;
23888 fail:
23889 return NULL;
23890 }
23891
23892
23893 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23894 PyObject *resultobj = 0;
23895 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23896 wxToolBarToolBase *result = 0 ;
23897 void *argp1 = 0 ;
23898 int res1 = 0 ;
23899 PyObject *swig_obj[1] ;
23900
23901 if (!args) SWIG_fail;
23902 swig_obj[0] = args;
23903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23904 if (!SWIG_IsOK(res1)) {
23905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23906 }
23907 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23908 {
23909 PyThreadState* __tstate = wxPyBeginAllowThreads();
23910 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23911 wxPyEndAllowThreads(__tstate);
23912 if (PyErr_Occurred()) SWIG_fail;
23913 }
23914 {
23915 resultobj = wxPyMake_wxObject(result, (bool)0);
23916 }
23917 return resultobj;
23918 fail:
23919 return NULL;
23920 }
23921
23922
23923 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23924 PyObject *resultobj = 0;
23925 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23926 size_t arg2 ;
23927 wxToolBarToolBase *result = 0 ;
23928 void *argp1 = 0 ;
23929 int res1 = 0 ;
23930 size_t val2 ;
23931 int ecode2 = 0 ;
23932 PyObject * obj0 = 0 ;
23933 PyObject * obj1 = 0 ;
23934 char * kwnames[] = {
23935 (char *) "self",(char *) "pos", NULL
23936 };
23937
23938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
23939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23940 if (!SWIG_IsOK(res1)) {
23941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23942 }
23943 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23944 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23945 if (!SWIG_IsOK(ecode2)) {
23946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
23947 }
23948 arg2 = static_cast< size_t >(val2);
23949 {
23950 PyThreadState* __tstate = wxPyBeginAllowThreads();
23951 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
23952 wxPyEndAllowThreads(__tstate);
23953 if (PyErr_Occurred()) SWIG_fail;
23954 }
23955 {
23956 resultobj = wxPyMake_wxObject(result, (bool)0);
23957 }
23958 return resultobj;
23959 fail:
23960 return NULL;
23961 }
23962
23963
23964 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23965 PyObject *resultobj = 0;
23966 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23967 int arg2 ;
23968 wxToolBarToolBase *result = 0 ;
23969 void *argp1 = 0 ;
23970 int res1 = 0 ;
23971 int val2 ;
23972 int ecode2 = 0 ;
23973 PyObject * obj0 = 0 ;
23974 PyObject * obj1 = 0 ;
23975 char * kwnames[] = {
23976 (char *) "self",(char *) "id", NULL
23977 };
23978
23979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
23980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23981 if (!SWIG_IsOK(res1)) {
23982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23983 }
23984 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23985 ecode2 = SWIG_AsVal_int(obj1, &val2);
23986 if (!SWIG_IsOK(ecode2)) {
23987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
23988 }
23989 arg2 = static_cast< int >(val2);
23990 {
23991 PyThreadState* __tstate = wxPyBeginAllowThreads();
23992 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
23993 wxPyEndAllowThreads(__tstate);
23994 if (PyErr_Occurred()) SWIG_fail;
23995 }
23996 {
23997 resultobj = wxPyMake_wxObject(result, (bool)0);
23998 }
23999 return resultobj;
24000 fail:
24001 return NULL;
24002 }
24003
24004
24005 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24006 PyObject *resultobj = 0;
24007 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24008 size_t arg2 ;
24009 bool result;
24010 void *argp1 = 0 ;
24011 int res1 = 0 ;
24012 size_t val2 ;
24013 int ecode2 = 0 ;
24014 PyObject * obj0 = 0 ;
24015 PyObject * obj1 = 0 ;
24016 char * kwnames[] = {
24017 (char *) "self",(char *) "pos", NULL
24018 };
24019
24020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24022 if (!SWIG_IsOK(res1)) {
24023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24024 }
24025 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24026 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24027 if (!SWIG_IsOK(ecode2)) {
24028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24029 }
24030 arg2 = static_cast< size_t >(val2);
24031 {
24032 PyThreadState* __tstate = wxPyBeginAllowThreads();
24033 result = (bool)(arg1)->DeleteToolByPos(arg2);
24034 wxPyEndAllowThreads(__tstate);
24035 if (PyErr_Occurred()) SWIG_fail;
24036 }
24037 {
24038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24039 }
24040 return resultobj;
24041 fail:
24042 return NULL;
24043 }
24044
24045
24046 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24047 PyObject *resultobj = 0;
24048 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24049 int arg2 ;
24050 bool result;
24051 void *argp1 = 0 ;
24052 int res1 = 0 ;
24053 int val2 ;
24054 int ecode2 = 0 ;
24055 PyObject * obj0 = 0 ;
24056 PyObject * obj1 = 0 ;
24057 char * kwnames[] = {
24058 (char *) "self",(char *) "id", NULL
24059 };
24060
24061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24063 if (!SWIG_IsOK(res1)) {
24064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24065 }
24066 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24067 ecode2 = SWIG_AsVal_int(obj1, &val2);
24068 if (!SWIG_IsOK(ecode2)) {
24069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24070 }
24071 arg2 = static_cast< int >(val2);
24072 {
24073 PyThreadState* __tstate = wxPyBeginAllowThreads();
24074 result = (bool)(arg1)->DeleteTool(arg2);
24075 wxPyEndAllowThreads(__tstate);
24076 if (PyErr_Occurred()) SWIG_fail;
24077 }
24078 {
24079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24080 }
24081 return resultobj;
24082 fail:
24083 return NULL;
24084 }
24085
24086
24087 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24088 PyObject *resultobj = 0;
24089 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24090 void *argp1 = 0 ;
24091 int res1 = 0 ;
24092 PyObject *swig_obj[1] ;
24093
24094 if (!args) SWIG_fail;
24095 swig_obj[0] = args;
24096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24097 if (!SWIG_IsOK(res1)) {
24098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24099 }
24100 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24101 {
24102 PyThreadState* __tstate = wxPyBeginAllowThreads();
24103 (arg1)->ClearTools();
24104 wxPyEndAllowThreads(__tstate);
24105 if (PyErr_Occurred()) SWIG_fail;
24106 }
24107 resultobj = SWIG_Py_Void();
24108 return resultobj;
24109 fail:
24110 return NULL;
24111 }
24112
24113
24114 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24115 PyObject *resultobj = 0;
24116 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24117 bool result;
24118 void *argp1 = 0 ;
24119 int res1 = 0 ;
24120 PyObject *swig_obj[1] ;
24121
24122 if (!args) SWIG_fail;
24123 swig_obj[0] = args;
24124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24125 if (!SWIG_IsOK(res1)) {
24126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24127 }
24128 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24129 {
24130 PyThreadState* __tstate = wxPyBeginAllowThreads();
24131 result = (bool)(arg1)->Realize();
24132 wxPyEndAllowThreads(__tstate);
24133 if (PyErr_Occurred()) SWIG_fail;
24134 }
24135 {
24136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24137 }
24138 return resultobj;
24139 fail:
24140 return NULL;
24141 }
24142
24143
24144 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24145 PyObject *resultobj = 0;
24146 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24147 int arg2 ;
24148 bool arg3 ;
24149 void *argp1 = 0 ;
24150 int res1 = 0 ;
24151 int val2 ;
24152 int ecode2 = 0 ;
24153 bool val3 ;
24154 int ecode3 = 0 ;
24155 PyObject * obj0 = 0 ;
24156 PyObject * obj1 = 0 ;
24157 PyObject * obj2 = 0 ;
24158 char * kwnames[] = {
24159 (char *) "self",(char *) "id",(char *) "enable", NULL
24160 };
24161
24162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24164 if (!SWIG_IsOK(res1)) {
24165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24166 }
24167 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24168 ecode2 = SWIG_AsVal_int(obj1, &val2);
24169 if (!SWIG_IsOK(ecode2)) {
24170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24171 }
24172 arg2 = static_cast< int >(val2);
24173 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24174 if (!SWIG_IsOK(ecode3)) {
24175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24176 }
24177 arg3 = static_cast< bool >(val3);
24178 {
24179 PyThreadState* __tstate = wxPyBeginAllowThreads();
24180 (arg1)->EnableTool(arg2,arg3);
24181 wxPyEndAllowThreads(__tstate);
24182 if (PyErr_Occurred()) SWIG_fail;
24183 }
24184 resultobj = SWIG_Py_Void();
24185 return resultobj;
24186 fail:
24187 return NULL;
24188 }
24189
24190
24191 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24192 PyObject *resultobj = 0;
24193 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24194 int arg2 ;
24195 bool arg3 ;
24196 void *argp1 = 0 ;
24197 int res1 = 0 ;
24198 int val2 ;
24199 int ecode2 = 0 ;
24200 bool val3 ;
24201 int ecode3 = 0 ;
24202 PyObject * obj0 = 0 ;
24203 PyObject * obj1 = 0 ;
24204 PyObject * obj2 = 0 ;
24205 char * kwnames[] = {
24206 (char *) "self",(char *) "id",(char *) "toggle", NULL
24207 };
24208
24209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24211 if (!SWIG_IsOK(res1)) {
24212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24213 }
24214 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24215 ecode2 = SWIG_AsVal_int(obj1, &val2);
24216 if (!SWIG_IsOK(ecode2)) {
24217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24218 }
24219 arg2 = static_cast< int >(val2);
24220 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24221 if (!SWIG_IsOK(ecode3)) {
24222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24223 }
24224 arg3 = static_cast< bool >(val3);
24225 {
24226 PyThreadState* __tstate = wxPyBeginAllowThreads();
24227 (arg1)->ToggleTool(arg2,arg3);
24228 wxPyEndAllowThreads(__tstate);
24229 if (PyErr_Occurred()) SWIG_fail;
24230 }
24231 resultobj = SWIG_Py_Void();
24232 return resultobj;
24233 fail:
24234 return NULL;
24235 }
24236
24237
24238 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24239 PyObject *resultobj = 0;
24240 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24241 int arg2 ;
24242 bool arg3 ;
24243 void *argp1 = 0 ;
24244 int res1 = 0 ;
24245 int val2 ;
24246 int ecode2 = 0 ;
24247 bool val3 ;
24248 int ecode3 = 0 ;
24249 PyObject * obj0 = 0 ;
24250 PyObject * obj1 = 0 ;
24251 PyObject * obj2 = 0 ;
24252 char * kwnames[] = {
24253 (char *) "self",(char *) "id",(char *) "toggle", NULL
24254 };
24255
24256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24258 if (!SWIG_IsOK(res1)) {
24259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24260 }
24261 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24262 ecode2 = SWIG_AsVal_int(obj1, &val2);
24263 if (!SWIG_IsOK(ecode2)) {
24264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24265 }
24266 arg2 = static_cast< int >(val2);
24267 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24268 if (!SWIG_IsOK(ecode3)) {
24269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24270 }
24271 arg3 = static_cast< bool >(val3);
24272 {
24273 PyThreadState* __tstate = wxPyBeginAllowThreads();
24274 (arg1)->SetToggle(arg2,arg3);
24275 wxPyEndAllowThreads(__tstate);
24276 if (PyErr_Occurred()) SWIG_fail;
24277 }
24278 resultobj = SWIG_Py_Void();
24279 return resultobj;
24280 fail:
24281 return NULL;
24282 }
24283
24284
24285 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24286 PyObject *resultobj = 0;
24287 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24288 int arg2 ;
24289 PyObject *result = 0 ;
24290 void *argp1 = 0 ;
24291 int res1 = 0 ;
24292 int val2 ;
24293 int ecode2 = 0 ;
24294 PyObject * obj0 = 0 ;
24295 PyObject * obj1 = 0 ;
24296 char * kwnames[] = {
24297 (char *) "self",(char *) "id", NULL
24298 };
24299
24300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24302 if (!SWIG_IsOK(res1)) {
24303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24304 }
24305 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24306 ecode2 = SWIG_AsVal_int(obj1, &val2);
24307 if (!SWIG_IsOK(ecode2)) {
24308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24309 }
24310 arg2 = static_cast< int >(val2);
24311 {
24312 PyThreadState* __tstate = wxPyBeginAllowThreads();
24313 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24314 wxPyEndAllowThreads(__tstate);
24315 if (PyErr_Occurred()) SWIG_fail;
24316 }
24317 resultobj = result;
24318 return resultobj;
24319 fail:
24320 return NULL;
24321 }
24322
24323
24324 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24325 PyObject *resultobj = 0;
24326 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24327 int arg2 ;
24328 PyObject *arg3 = (PyObject *) 0 ;
24329 void *argp1 = 0 ;
24330 int res1 = 0 ;
24331 int val2 ;
24332 int ecode2 = 0 ;
24333 PyObject * obj0 = 0 ;
24334 PyObject * obj1 = 0 ;
24335 PyObject * obj2 = 0 ;
24336 char * kwnames[] = {
24337 (char *) "self",(char *) "id",(char *) "clientData", NULL
24338 };
24339
24340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24342 if (!SWIG_IsOK(res1)) {
24343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24344 }
24345 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24346 ecode2 = SWIG_AsVal_int(obj1, &val2);
24347 if (!SWIG_IsOK(ecode2)) {
24348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24349 }
24350 arg2 = static_cast< int >(val2);
24351 arg3 = obj2;
24352 {
24353 PyThreadState* __tstate = wxPyBeginAllowThreads();
24354 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24355 wxPyEndAllowThreads(__tstate);
24356 if (PyErr_Occurred()) SWIG_fail;
24357 }
24358 resultobj = SWIG_Py_Void();
24359 return resultobj;
24360 fail:
24361 return NULL;
24362 }
24363
24364
24365 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24366 PyObject *resultobj = 0;
24367 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24368 int arg2 ;
24369 int result;
24370 void *argp1 = 0 ;
24371 int res1 = 0 ;
24372 int val2 ;
24373 int ecode2 = 0 ;
24374 PyObject * obj0 = 0 ;
24375 PyObject * obj1 = 0 ;
24376 char * kwnames[] = {
24377 (char *) "self",(char *) "id", NULL
24378 };
24379
24380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24382 if (!SWIG_IsOK(res1)) {
24383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24384 }
24385 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24386 ecode2 = SWIG_AsVal_int(obj1, &val2);
24387 if (!SWIG_IsOK(ecode2)) {
24388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24389 }
24390 arg2 = static_cast< int >(val2);
24391 {
24392 PyThreadState* __tstate = wxPyBeginAllowThreads();
24393 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24394 wxPyEndAllowThreads(__tstate);
24395 if (PyErr_Occurred()) SWIG_fail;
24396 }
24397 resultobj = SWIG_From_int(static_cast< int >(result));
24398 return resultobj;
24399 fail:
24400 return NULL;
24401 }
24402
24403
24404 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24405 PyObject *resultobj = 0;
24406 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24407 int arg2 ;
24408 bool result;
24409 void *argp1 = 0 ;
24410 int res1 = 0 ;
24411 int val2 ;
24412 int ecode2 = 0 ;
24413 PyObject * obj0 = 0 ;
24414 PyObject * obj1 = 0 ;
24415 char * kwnames[] = {
24416 (char *) "self",(char *) "id", NULL
24417 };
24418
24419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24421 if (!SWIG_IsOK(res1)) {
24422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24423 }
24424 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24425 ecode2 = SWIG_AsVal_int(obj1, &val2);
24426 if (!SWIG_IsOK(ecode2)) {
24427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24428 }
24429 arg2 = static_cast< int >(val2);
24430 {
24431 PyThreadState* __tstate = wxPyBeginAllowThreads();
24432 result = (bool)(arg1)->GetToolState(arg2);
24433 wxPyEndAllowThreads(__tstate);
24434 if (PyErr_Occurred()) SWIG_fail;
24435 }
24436 {
24437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24438 }
24439 return resultobj;
24440 fail:
24441 return NULL;
24442 }
24443
24444
24445 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24446 PyObject *resultobj = 0;
24447 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24448 int arg2 ;
24449 bool result;
24450 void *argp1 = 0 ;
24451 int res1 = 0 ;
24452 int val2 ;
24453 int ecode2 = 0 ;
24454 PyObject * obj0 = 0 ;
24455 PyObject * obj1 = 0 ;
24456 char * kwnames[] = {
24457 (char *) "self",(char *) "id", NULL
24458 };
24459
24460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24462 if (!SWIG_IsOK(res1)) {
24463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24464 }
24465 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24466 ecode2 = SWIG_AsVal_int(obj1, &val2);
24467 if (!SWIG_IsOK(ecode2)) {
24468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24469 }
24470 arg2 = static_cast< int >(val2);
24471 {
24472 PyThreadState* __tstate = wxPyBeginAllowThreads();
24473 result = (bool)(arg1)->GetToolEnabled(arg2);
24474 wxPyEndAllowThreads(__tstate);
24475 if (PyErr_Occurred()) SWIG_fail;
24476 }
24477 {
24478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24479 }
24480 return resultobj;
24481 fail:
24482 return NULL;
24483 }
24484
24485
24486 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24487 PyObject *resultobj = 0;
24488 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24489 int arg2 ;
24490 wxString *arg3 = 0 ;
24491 void *argp1 = 0 ;
24492 int res1 = 0 ;
24493 int val2 ;
24494 int ecode2 = 0 ;
24495 bool temp3 = false ;
24496 PyObject * obj0 = 0 ;
24497 PyObject * obj1 = 0 ;
24498 PyObject * obj2 = 0 ;
24499 char * kwnames[] = {
24500 (char *) "self",(char *) "id",(char *) "helpString", NULL
24501 };
24502
24503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24505 if (!SWIG_IsOK(res1)) {
24506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24507 }
24508 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24509 ecode2 = SWIG_AsVal_int(obj1, &val2);
24510 if (!SWIG_IsOK(ecode2)) {
24511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24512 }
24513 arg2 = static_cast< int >(val2);
24514 {
24515 arg3 = wxString_in_helper(obj2);
24516 if (arg3 == NULL) SWIG_fail;
24517 temp3 = true;
24518 }
24519 {
24520 PyThreadState* __tstate = wxPyBeginAllowThreads();
24521 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24522 wxPyEndAllowThreads(__tstate);
24523 if (PyErr_Occurred()) SWIG_fail;
24524 }
24525 resultobj = SWIG_Py_Void();
24526 {
24527 if (temp3)
24528 delete arg3;
24529 }
24530 return resultobj;
24531 fail:
24532 {
24533 if (temp3)
24534 delete arg3;
24535 }
24536 return NULL;
24537 }
24538
24539
24540 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24541 PyObject *resultobj = 0;
24542 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24543 int arg2 ;
24544 wxString result;
24545 void *argp1 = 0 ;
24546 int res1 = 0 ;
24547 int val2 ;
24548 int ecode2 = 0 ;
24549 PyObject * obj0 = 0 ;
24550 PyObject * obj1 = 0 ;
24551 char * kwnames[] = {
24552 (char *) "self",(char *) "id", NULL
24553 };
24554
24555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24557 if (!SWIG_IsOK(res1)) {
24558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24559 }
24560 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24561 ecode2 = SWIG_AsVal_int(obj1, &val2);
24562 if (!SWIG_IsOK(ecode2)) {
24563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24564 }
24565 arg2 = static_cast< int >(val2);
24566 {
24567 PyThreadState* __tstate = wxPyBeginAllowThreads();
24568 result = (arg1)->GetToolShortHelp(arg2);
24569 wxPyEndAllowThreads(__tstate);
24570 if (PyErr_Occurred()) SWIG_fail;
24571 }
24572 {
24573 #if wxUSE_UNICODE
24574 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24575 #else
24576 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24577 #endif
24578 }
24579 return resultobj;
24580 fail:
24581 return NULL;
24582 }
24583
24584
24585 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24586 PyObject *resultobj = 0;
24587 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24588 int arg2 ;
24589 wxString *arg3 = 0 ;
24590 void *argp1 = 0 ;
24591 int res1 = 0 ;
24592 int val2 ;
24593 int ecode2 = 0 ;
24594 bool temp3 = false ;
24595 PyObject * obj0 = 0 ;
24596 PyObject * obj1 = 0 ;
24597 PyObject * obj2 = 0 ;
24598 char * kwnames[] = {
24599 (char *) "self",(char *) "id",(char *) "helpString", NULL
24600 };
24601
24602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24604 if (!SWIG_IsOK(res1)) {
24605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24606 }
24607 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24608 ecode2 = SWIG_AsVal_int(obj1, &val2);
24609 if (!SWIG_IsOK(ecode2)) {
24610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24611 }
24612 arg2 = static_cast< int >(val2);
24613 {
24614 arg3 = wxString_in_helper(obj2);
24615 if (arg3 == NULL) SWIG_fail;
24616 temp3 = true;
24617 }
24618 {
24619 PyThreadState* __tstate = wxPyBeginAllowThreads();
24620 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24621 wxPyEndAllowThreads(__tstate);
24622 if (PyErr_Occurred()) SWIG_fail;
24623 }
24624 resultobj = SWIG_Py_Void();
24625 {
24626 if (temp3)
24627 delete arg3;
24628 }
24629 return resultobj;
24630 fail:
24631 {
24632 if (temp3)
24633 delete arg3;
24634 }
24635 return NULL;
24636 }
24637
24638
24639 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24640 PyObject *resultobj = 0;
24641 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24642 int arg2 ;
24643 wxString result;
24644 void *argp1 = 0 ;
24645 int res1 = 0 ;
24646 int val2 ;
24647 int ecode2 = 0 ;
24648 PyObject * obj0 = 0 ;
24649 PyObject * obj1 = 0 ;
24650 char * kwnames[] = {
24651 (char *) "self",(char *) "id", NULL
24652 };
24653
24654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24656 if (!SWIG_IsOK(res1)) {
24657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24658 }
24659 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24660 ecode2 = SWIG_AsVal_int(obj1, &val2);
24661 if (!SWIG_IsOK(ecode2)) {
24662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24663 }
24664 arg2 = static_cast< int >(val2);
24665 {
24666 PyThreadState* __tstate = wxPyBeginAllowThreads();
24667 result = (arg1)->GetToolLongHelp(arg2);
24668 wxPyEndAllowThreads(__tstate);
24669 if (PyErr_Occurred()) SWIG_fail;
24670 }
24671 {
24672 #if wxUSE_UNICODE
24673 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24674 #else
24675 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24676 #endif
24677 }
24678 return resultobj;
24679 fail:
24680 return NULL;
24681 }
24682
24683
24684 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24685 PyObject *resultobj = 0;
24686 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24687 int arg2 ;
24688 int arg3 ;
24689 void *argp1 = 0 ;
24690 int res1 = 0 ;
24691 int val2 ;
24692 int ecode2 = 0 ;
24693 int val3 ;
24694 int ecode3 = 0 ;
24695 PyObject * obj0 = 0 ;
24696 PyObject * obj1 = 0 ;
24697 PyObject * obj2 = 0 ;
24698 char * kwnames[] = {
24699 (char *) "self",(char *) "x",(char *) "y", NULL
24700 };
24701
24702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24704 if (!SWIG_IsOK(res1)) {
24705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24706 }
24707 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24708 ecode2 = SWIG_AsVal_int(obj1, &val2);
24709 if (!SWIG_IsOK(ecode2)) {
24710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24711 }
24712 arg2 = static_cast< int >(val2);
24713 ecode3 = SWIG_AsVal_int(obj2, &val3);
24714 if (!SWIG_IsOK(ecode3)) {
24715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24716 }
24717 arg3 = static_cast< int >(val3);
24718 {
24719 PyThreadState* __tstate = wxPyBeginAllowThreads();
24720 (arg1)->SetMargins(arg2,arg3);
24721 wxPyEndAllowThreads(__tstate);
24722 if (PyErr_Occurred()) SWIG_fail;
24723 }
24724 resultobj = SWIG_Py_Void();
24725 return resultobj;
24726 fail:
24727 return NULL;
24728 }
24729
24730
24731 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24732 PyObject *resultobj = 0;
24733 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24734 wxSize *arg2 = 0 ;
24735 void *argp1 = 0 ;
24736 int res1 = 0 ;
24737 wxSize temp2 ;
24738 PyObject * obj0 = 0 ;
24739 PyObject * obj1 = 0 ;
24740 char * kwnames[] = {
24741 (char *) "self",(char *) "size", NULL
24742 };
24743
24744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24746 if (!SWIG_IsOK(res1)) {
24747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24748 }
24749 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24750 {
24751 arg2 = &temp2;
24752 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24753 }
24754 {
24755 PyThreadState* __tstate = wxPyBeginAllowThreads();
24756 (arg1)->SetMargins((wxSize const &)*arg2);
24757 wxPyEndAllowThreads(__tstate);
24758 if (PyErr_Occurred()) SWIG_fail;
24759 }
24760 resultobj = SWIG_Py_Void();
24761 return resultobj;
24762 fail:
24763 return NULL;
24764 }
24765
24766
24767 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24768 PyObject *resultobj = 0;
24769 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24770 int arg2 ;
24771 void *argp1 = 0 ;
24772 int res1 = 0 ;
24773 int val2 ;
24774 int ecode2 = 0 ;
24775 PyObject * obj0 = 0 ;
24776 PyObject * obj1 = 0 ;
24777 char * kwnames[] = {
24778 (char *) "self",(char *) "packing", NULL
24779 };
24780
24781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24783 if (!SWIG_IsOK(res1)) {
24784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24785 }
24786 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24787 ecode2 = SWIG_AsVal_int(obj1, &val2);
24788 if (!SWIG_IsOK(ecode2)) {
24789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24790 }
24791 arg2 = static_cast< int >(val2);
24792 {
24793 PyThreadState* __tstate = wxPyBeginAllowThreads();
24794 (arg1)->SetToolPacking(arg2);
24795 wxPyEndAllowThreads(__tstate);
24796 if (PyErr_Occurred()) SWIG_fail;
24797 }
24798 resultobj = SWIG_Py_Void();
24799 return resultobj;
24800 fail:
24801 return NULL;
24802 }
24803
24804
24805 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24806 PyObject *resultobj = 0;
24807 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24808 int arg2 ;
24809 void *argp1 = 0 ;
24810 int res1 = 0 ;
24811 int val2 ;
24812 int ecode2 = 0 ;
24813 PyObject * obj0 = 0 ;
24814 PyObject * obj1 = 0 ;
24815 char * kwnames[] = {
24816 (char *) "self",(char *) "separation", NULL
24817 };
24818
24819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24821 if (!SWIG_IsOK(res1)) {
24822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24823 }
24824 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24825 ecode2 = SWIG_AsVal_int(obj1, &val2);
24826 if (!SWIG_IsOK(ecode2)) {
24827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24828 }
24829 arg2 = static_cast< int >(val2);
24830 {
24831 PyThreadState* __tstate = wxPyBeginAllowThreads();
24832 (arg1)->SetToolSeparation(arg2);
24833 wxPyEndAllowThreads(__tstate);
24834 if (PyErr_Occurred()) SWIG_fail;
24835 }
24836 resultobj = SWIG_Py_Void();
24837 return resultobj;
24838 fail:
24839 return NULL;
24840 }
24841
24842
24843 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24844 PyObject *resultobj = 0;
24845 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24846 wxSize result;
24847 void *argp1 = 0 ;
24848 int res1 = 0 ;
24849 PyObject *swig_obj[1] ;
24850
24851 if (!args) SWIG_fail;
24852 swig_obj[0] = args;
24853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24854 if (!SWIG_IsOK(res1)) {
24855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24856 }
24857 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24858 {
24859 PyThreadState* __tstate = wxPyBeginAllowThreads();
24860 result = (arg1)->GetToolMargins();
24861 wxPyEndAllowThreads(__tstate);
24862 if (PyErr_Occurred()) SWIG_fail;
24863 }
24864 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24865 return resultobj;
24866 fail:
24867 return NULL;
24868 }
24869
24870
24871 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24872 PyObject *resultobj = 0;
24873 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24874 wxSize result;
24875 void *argp1 = 0 ;
24876 int res1 = 0 ;
24877 PyObject *swig_obj[1] ;
24878
24879 if (!args) SWIG_fail;
24880 swig_obj[0] = args;
24881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24882 if (!SWIG_IsOK(res1)) {
24883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24884 }
24885 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24886 {
24887 PyThreadState* __tstate = wxPyBeginAllowThreads();
24888 result = (arg1)->GetMargins();
24889 wxPyEndAllowThreads(__tstate);
24890 if (PyErr_Occurred()) SWIG_fail;
24891 }
24892 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24893 return resultobj;
24894 fail:
24895 return NULL;
24896 }
24897
24898
24899 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24900 PyObject *resultobj = 0;
24901 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24902 int result;
24903 void *argp1 = 0 ;
24904 int res1 = 0 ;
24905 PyObject *swig_obj[1] ;
24906
24907 if (!args) SWIG_fail;
24908 swig_obj[0] = args;
24909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24910 if (!SWIG_IsOK(res1)) {
24911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24912 }
24913 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24914 {
24915 PyThreadState* __tstate = wxPyBeginAllowThreads();
24916 result = (int)(arg1)->GetToolPacking();
24917 wxPyEndAllowThreads(__tstate);
24918 if (PyErr_Occurred()) SWIG_fail;
24919 }
24920 resultobj = SWIG_From_int(static_cast< int >(result));
24921 return resultobj;
24922 fail:
24923 return NULL;
24924 }
24925
24926
24927 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24928 PyObject *resultobj = 0;
24929 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24930 int result;
24931 void *argp1 = 0 ;
24932 int res1 = 0 ;
24933 PyObject *swig_obj[1] ;
24934
24935 if (!args) SWIG_fail;
24936 swig_obj[0] = args;
24937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24938 if (!SWIG_IsOK(res1)) {
24939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24940 }
24941 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24942 {
24943 PyThreadState* __tstate = wxPyBeginAllowThreads();
24944 result = (int)(arg1)->GetToolSeparation();
24945 wxPyEndAllowThreads(__tstate);
24946 if (PyErr_Occurred()) SWIG_fail;
24947 }
24948 resultobj = SWIG_From_int(static_cast< int >(result));
24949 return resultobj;
24950 fail:
24951 return NULL;
24952 }
24953
24954
24955 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24956 PyObject *resultobj = 0;
24957 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24958 int arg2 ;
24959 void *argp1 = 0 ;
24960 int res1 = 0 ;
24961 int val2 ;
24962 int ecode2 = 0 ;
24963 PyObject * obj0 = 0 ;
24964 PyObject * obj1 = 0 ;
24965 char * kwnames[] = {
24966 (char *) "self",(char *) "nRows", NULL
24967 };
24968
24969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
24970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24971 if (!SWIG_IsOK(res1)) {
24972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24973 }
24974 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24975 ecode2 = SWIG_AsVal_int(obj1, &val2);
24976 if (!SWIG_IsOK(ecode2)) {
24977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
24978 }
24979 arg2 = static_cast< int >(val2);
24980 {
24981 PyThreadState* __tstate = wxPyBeginAllowThreads();
24982 (arg1)->SetRows(arg2);
24983 wxPyEndAllowThreads(__tstate);
24984 if (PyErr_Occurred()) SWIG_fail;
24985 }
24986 resultobj = SWIG_Py_Void();
24987 return resultobj;
24988 fail:
24989 return NULL;
24990 }
24991
24992
24993 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24994 PyObject *resultobj = 0;
24995 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24996 int arg2 ;
24997 int arg3 ;
24998 void *argp1 = 0 ;
24999 int res1 = 0 ;
25000 int val2 ;
25001 int ecode2 = 0 ;
25002 int val3 ;
25003 int ecode3 = 0 ;
25004 PyObject * obj0 = 0 ;
25005 PyObject * obj1 = 0 ;
25006 PyObject * obj2 = 0 ;
25007 char * kwnames[] = {
25008 (char *) "self",(char *) "rows",(char *) "cols", NULL
25009 };
25010
25011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25013 if (!SWIG_IsOK(res1)) {
25014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25015 }
25016 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25017 ecode2 = SWIG_AsVal_int(obj1, &val2);
25018 if (!SWIG_IsOK(ecode2)) {
25019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25020 }
25021 arg2 = static_cast< int >(val2);
25022 ecode3 = SWIG_AsVal_int(obj2, &val3);
25023 if (!SWIG_IsOK(ecode3)) {
25024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25025 }
25026 arg3 = static_cast< int >(val3);
25027 {
25028 PyThreadState* __tstate = wxPyBeginAllowThreads();
25029 (arg1)->SetMaxRowsCols(arg2,arg3);
25030 wxPyEndAllowThreads(__tstate);
25031 if (PyErr_Occurred()) SWIG_fail;
25032 }
25033 resultobj = SWIG_Py_Void();
25034 return resultobj;
25035 fail:
25036 return NULL;
25037 }
25038
25039
25040 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25041 PyObject *resultobj = 0;
25042 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25043 int result;
25044 void *argp1 = 0 ;
25045 int res1 = 0 ;
25046 PyObject *swig_obj[1] ;
25047
25048 if (!args) SWIG_fail;
25049 swig_obj[0] = args;
25050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25051 if (!SWIG_IsOK(res1)) {
25052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25053 }
25054 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25055 {
25056 PyThreadState* __tstate = wxPyBeginAllowThreads();
25057 result = (int)(arg1)->GetMaxRows();
25058 wxPyEndAllowThreads(__tstate);
25059 if (PyErr_Occurred()) SWIG_fail;
25060 }
25061 resultobj = SWIG_From_int(static_cast< int >(result));
25062 return resultobj;
25063 fail:
25064 return NULL;
25065 }
25066
25067
25068 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25069 PyObject *resultobj = 0;
25070 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25071 int result;
25072 void *argp1 = 0 ;
25073 int res1 = 0 ;
25074 PyObject *swig_obj[1] ;
25075
25076 if (!args) SWIG_fail;
25077 swig_obj[0] = args;
25078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25079 if (!SWIG_IsOK(res1)) {
25080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25081 }
25082 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25083 {
25084 PyThreadState* __tstate = wxPyBeginAllowThreads();
25085 result = (int)(arg1)->GetMaxCols();
25086 wxPyEndAllowThreads(__tstate);
25087 if (PyErr_Occurred()) SWIG_fail;
25088 }
25089 resultobj = SWIG_From_int(static_cast< int >(result));
25090 return resultobj;
25091 fail:
25092 return NULL;
25093 }
25094
25095
25096 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25097 PyObject *resultobj = 0;
25098 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25099 wxSize *arg2 = 0 ;
25100 void *argp1 = 0 ;
25101 int res1 = 0 ;
25102 wxSize temp2 ;
25103 PyObject * obj0 = 0 ;
25104 PyObject * obj1 = 0 ;
25105 char * kwnames[] = {
25106 (char *) "self",(char *) "size", NULL
25107 };
25108
25109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25111 if (!SWIG_IsOK(res1)) {
25112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25113 }
25114 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25115 {
25116 arg2 = &temp2;
25117 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25118 }
25119 {
25120 PyThreadState* __tstate = wxPyBeginAllowThreads();
25121 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25122 wxPyEndAllowThreads(__tstate);
25123 if (PyErr_Occurred()) SWIG_fail;
25124 }
25125 resultobj = SWIG_Py_Void();
25126 return resultobj;
25127 fail:
25128 return NULL;
25129 }
25130
25131
25132 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25133 PyObject *resultobj = 0;
25134 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25135 wxSize result;
25136 void *argp1 = 0 ;
25137 int res1 = 0 ;
25138 PyObject *swig_obj[1] ;
25139
25140 if (!args) SWIG_fail;
25141 swig_obj[0] = args;
25142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25143 if (!SWIG_IsOK(res1)) {
25144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25145 }
25146 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25147 {
25148 PyThreadState* __tstate = wxPyBeginAllowThreads();
25149 result = (arg1)->GetToolBitmapSize();
25150 wxPyEndAllowThreads(__tstate);
25151 if (PyErr_Occurred()) SWIG_fail;
25152 }
25153 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25154 return resultobj;
25155 fail:
25156 return NULL;
25157 }
25158
25159
25160 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25161 PyObject *resultobj = 0;
25162 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25163 wxSize result;
25164 void *argp1 = 0 ;
25165 int res1 = 0 ;
25166 PyObject *swig_obj[1] ;
25167
25168 if (!args) SWIG_fail;
25169 swig_obj[0] = args;
25170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25171 if (!SWIG_IsOK(res1)) {
25172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25173 }
25174 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25175 {
25176 PyThreadState* __tstate = wxPyBeginAllowThreads();
25177 result = (arg1)->GetToolSize();
25178 wxPyEndAllowThreads(__tstate);
25179 if (PyErr_Occurred()) SWIG_fail;
25180 }
25181 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25182 return resultobj;
25183 fail:
25184 return NULL;
25185 }
25186
25187
25188 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25189 PyObject *resultobj = 0;
25190 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25191 int arg2 ;
25192 int arg3 ;
25193 wxToolBarToolBase *result = 0 ;
25194 void *argp1 = 0 ;
25195 int res1 = 0 ;
25196 int val2 ;
25197 int ecode2 = 0 ;
25198 int val3 ;
25199 int ecode3 = 0 ;
25200 PyObject * obj0 = 0 ;
25201 PyObject * obj1 = 0 ;
25202 PyObject * obj2 = 0 ;
25203 char * kwnames[] = {
25204 (char *) "self",(char *) "x",(char *) "y", NULL
25205 };
25206
25207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25209 if (!SWIG_IsOK(res1)) {
25210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25211 }
25212 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25213 ecode2 = SWIG_AsVal_int(obj1, &val2);
25214 if (!SWIG_IsOK(ecode2)) {
25215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25216 }
25217 arg2 = static_cast< int >(val2);
25218 ecode3 = SWIG_AsVal_int(obj2, &val3);
25219 if (!SWIG_IsOK(ecode3)) {
25220 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25221 }
25222 arg3 = static_cast< int >(val3);
25223 {
25224 PyThreadState* __tstate = wxPyBeginAllowThreads();
25225 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25226 wxPyEndAllowThreads(__tstate);
25227 if (PyErr_Occurred()) SWIG_fail;
25228 }
25229 {
25230 resultobj = wxPyMake_wxObject(result, (bool)0);
25231 }
25232 return resultobj;
25233 fail:
25234 return NULL;
25235 }
25236
25237
25238 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25239 PyObject *resultobj = 0;
25240 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25241 int arg2 ;
25242 wxToolBarToolBase *result = 0 ;
25243 void *argp1 = 0 ;
25244 int res1 = 0 ;
25245 int val2 ;
25246 int ecode2 = 0 ;
25247 PyObject * obj0 = 0 ;
25248 PyObject * obj1 = 0 ;
25249 char * kwnames[] = {
25250 (char *) "self",(char *) "toolid", NULL
25251 };
25252
25253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25255 if (!SWIG_IsOK(res1)) {
25256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25257 }
25258 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25259 ecode2 = SWIG_AsVal_int(obj1, &val2);
25260 if (!SWIG_IsOK(ecode2)) {
25261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25262 }
25263 arg2 = static_cast< int >(val2);
25264 {
25265 PyThreadState* __tstate = wxPyBeginAllowThreads();
25266 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25267 wxPyEndAllowThreads(__tstate);
25268 if (PyErr_Occurred()) SWIG_fail;
25269 }
25270 {
25271 resultobj = wxPyMake_wxObject(result, (bool)0);
25272 }
25273 return resultobj;
25274 fail:
25275 return NULL;
25276 }
25277
25278
25279 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25280 PyObject *resultobj = 0;
25281 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25282 bool result;
25283 void *argp1 = 0 ;
25284 int res1 = 0 ;
25285 PyObject *swig_obj[1] ;
25286
25287 if (!args) SWIG_fail;
25288 swig_obj[0] = args;
25289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25290 if (!SWIG_IsOK(res1)) {
25291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25292 }
25293 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25294 {
25295 PyThreadState* __tstate = wxPyBeginAllowThreads();
25296 result = (bool)(arg1)->IsVertical();
25297 wxPyEndAllowThreads(__tstate);
25298 if (PyErr_Occurred()) SWIG_fail;
25299 }
25300 {
25301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25302 }
25303 return resultobj;
25304 fail:
25305 return NULL;
25306 }
25307
25308
25309 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25310 PyObject *resultobj = 0;
25311 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25312 size_t result;
25313 void *argp1 = 0 ;
25314 int res1 = 0 ;
25315 PyObject *swig_obj[1] ;
25316
25317 if (!args) SWIG_fail;
25318 swig_obj[0] = args;
25319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25320 if (!SWIG_IsOK(res1)) {
25321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25322 }
25323 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25324 {
25325 PyThreadState* __tstate = wxPyBeginAllowThreads();
25326 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25327 wxPyEndAllowThreads(__tstate);
25328 if (PyErr_Occurred()) SWIG_fail;
25329 }
25330 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25331 return resultobj;
25332 fail:
25333 return NULL;
25334 }
25335
25336
25337 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25338 PyObject *obj;
25339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25340 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25341 return SWIG_Py_Void();
25342 }
25343
25344 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25345 PyObject *resultobj = 0;
25346 wxWindow *arg1 = (wxWindow *) 0 ;
25347 int arg2 = (int) -1 ;
25348 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25349 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25350 wxSize const &arg4_defvalue = wxDefaultSize ;
25351 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25352 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25353 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25354 wxString *arg6 = (wxString *) &arg6_defvalue ;
25355 wxToolBar *result = 0 ;
25356 void *argp1 = 0 ;
25357 int res1 = 0 ;
25358 int val2 ;
25359 int ecode2 = 0 ;
25360 wxPoint temp3 ;
25361 wxSize temp4 ;
25362 long val5 ;
25363 int ecode5 = 0 ;
25364 bool temp6 = false ;
25365 PyObject * obj0 = 0 ;
25366 PyObject * obj1 = 0 ;
25367 PyObject * obj2 = 0 ;
25368 PyObject * obj3 = 0 ;
25369 PyObject * obj4 = 0 ;
25370 PyObject * obj5 = 0 ;
25371 char * kwnames[] = {
25372 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25373 };
25374
25375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25377 if (!SWIG_IsOK(res1)) {
25378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25379 }
25380 arg1 = reinterpret_cast< wxWindow * >(argp1);
25381 if (obj1) {
25382 ecode2 = SWIG_AsVal_int(obj1, &val2);
25383 if (!SWIG_IsOK(ecode2)) {
25384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25385 }
25386 arg2 = static_cast< int >(val2);
25387 }
25388 if (obj2) {
25389 {
25390 arg3 = &temp3;
25391 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25392 }
25393 }
25394 if (obj3) {
25395 {
25396 arg4 = &temp4;
25397 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25398 }
25399 }
25400 if (obj4) {
25401 ecode5 = SWIG_AsVal_long(obj4, &val5);
25402 if (!SWIG_IsOK(ecode5)) {
25403 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25404 }
25405 arg5 = static_cast< long >(val5);
25406 }
25407 if (obj5) {
25408 {
25409 arg6 = wxString_in_helper(obj5);
25410 if (arg6 == NULL) SWIG_fail;
25411 temp6 = true;
25412 }
25413 }
25414 {
25415 if (!wxPyCheckForApp()) SWIG_fail;
25416 PyThreadState* __tstate = wxPyBeginAllowThreads();
25417 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25418 wxPyEndAllowThreads(__tstate);
25419 if (PyErr_Occurred()) SWIG_fail;
25420 }
25421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25422 {
25423 if (temp6)
25424 delete arg6;
25425 }
25426 return resultobj;
25427 fail:
25428 {
25429 if (temp6)
25430 delete arg6;
25431 }
25432 return NULL;
25433 }
25434
25435
25436 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25437 PyObject *resultobj = 0;
25438 wxToolBar *result = 0 ;
25439
25440 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25441 {
25442 if (!wxPyCheckForApp()) SWIG_fail;
25443 PyThreadState* __tstate = wxPyBeginAllowThreads();
25444 result = (wxToolBar *)new wxToolBar();
25445 wxPyEndAllowThreads(__tstate);
25446 if (PyErr_Occurred()) SWIG_fail;
25447 }
25448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25449 return resultobj;
25450 fail:
25451 return NULL;
25452 }
25453
25454
25455 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25456 PyObject *resultobj = 0;
25457 wxToolBar *arg1 = (wxToolBar *) 0 ;
25458 wxWindow *arg2 = (wxWindow *) 0 ;
25459 int arg3 = (int) -1 ;
25460 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25461 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25462 wxSize const &arg5_defvalue = wxDefaultSize ;
25463 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25464 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25465 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25466 wxString *arg7 = (wxString *) &arg7_defvalue ;
25467 bool result;
25468 void *argp1 = 0 ;
25469 int res1 = 0 ;
25470 void *argp2 = 0 ;
25471 int res2 = 0 ;
25472 int val3 ;
25473 int ecode3 = 0 ;
25474 wxPoint temp4 ;
25475 wxSize temp5 ;
25476 long val6 ;
25477 int ecode6 = 0 ;
25478 bool temp7 = false ;
25479 PyObject * obj0 = 0 ;
25480 PyObject * obj1 = 0 ;
25481 PyObject * obj2 = 0 ;
25482 PyObject * obj3 = 0 ;
25483 PyObject * obj4 = 0 ;
25484 PyObject * obj5 = 0 ;
25485 PyObject * obj6 = 0 ;
25486 char * kwnames[] = {
25487 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25488 };
25489
25490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25492 if (!SWIG_IsOK(res1)) {
25493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25494 }
25495 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25496 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25497 if (!SWIG_IsOK(res2)) {
25498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25499 }
25500 arg2 = reinterpret_cast< wxWindow * >(argp2);
25501 if (obj2) {
25502 ecode3 = SWIG_AsVal_int(obj2, &val3);
25503 if (!SWIG_IsOK(ecode3)) {
25504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25505 }
25506 arg3 = static_cast< int >(val3);
25507 }
25508 if (obj3) {
25509 {
25510 arg4 = &temp4;
25511 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25512 }
25513 }
25514 if (obj4) {
25515 {
25516 arg5 = &temp5;
25517 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25518 }
25519 }
25520 if (obj5) {
25521 ecode6 = SWIG_AsVal_long(obj5, &val6);
25522 if (!SWIG_IsOK(ecode6)) {
25523 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25524 }
25525 arg6 = static_cast< long >(val6);
25526 }
25527 if (obj6) {
25528 {
25529 arg7 = wxString_in_helper(obj6);
25530 if (arg7 == NULL) SWIG_fail;
25531 temp7 = true;
25532 }
25533 }
25534 {
25535 PyThreadState* __tstate = wxPyBeginAllowThreads();
25536 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25537 wxPyEndAllowThreads(__tstate);
25538 if (PyErr_Occurred()) SWIG_fail;
25539 }
25540 {
25541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25542 }
25543 {
25544 if (temp7)
25545 delete arg7;
25546 }
25547 return resultobj;
25548 fail:
25549 {
25550 if (temp7)
25551 delete arg7;
25552 }
25553 return NULL;
25554 }
25555
25556
25557 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25558 PyObject *resultobj = 0;
25559 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25560 SwigValueWrapper<wxVisualAttributes > result;
25561 int val1 ;
25562 int ecode1 = 0 ;
25563 PyObject * obj0 = 0 ;
25564 char * kwnames[] = {
25565 (char *) "variant", NULL
25566 };
25567
25568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25569 if (obj0) {
25570 ecode1 = SWIG_AsVal_int(obj0, &val1);
25571 if (!SWIG_IsOK(ecode1)) {
25572 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25573 }
25574 arg1 = static_cast< wxWindowVariant >(val1);
25575 }
25576 {
25577 if (!wxPyCheckForApp()) SWIG_fail;
25578 PyThreadState* __tstate = wxPyBeginAllowThreads();
25579 result = wxToolBar::GetClassDefaultAttributes(arg1);
25580 wxPyEndAllowThreads(__tstate);
25581 if (PyErr_Occurred()) SWIG_fail;
25582 }
25583 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25584 return resultobj;
25585 fail:
25586 return NULL;
25587 }
25588
25589
25590 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25591 PyObject *obj;
25592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25593 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25594 return SWIG_Py_Void();
25595 }
25596
25597 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25598 return SWIG_Python_InitShadowInstance(args);
25599 }
25600
25601 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25602 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25603 return 1;
25604 }
25605
25606
25607 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25608 PyObject *pyobj = 0;
25609
25610 {
25611 #if wxUSE_UNICODE
25612 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25613 #else
25614 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25615 #endif
25616 }
25617 return pyobj;
25618 }
25619
25620
25621 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25622 PyObject *resultobj = 0;
25623 wxColour const &arg1_defvalue = wxNullColour ;
25624 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25625 wxColour const &arg2_defvalue = wxNullColour ;
25626 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25627 wxFont const &arg3_defvalue = wxNullFont ;
25628 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25629 wxListItemAttr *result = 0 ;
25630 wxColour temp1 ;
25631 wxColour temp2 ;
25632 void *argp3 = 0 ;
25633 int res3 = 0 ;
25634 PyObject * obj0 = 0 ;
25635 PyObject * obj1 = 0 ;
25636 PyObject * obj2 = 0 ;
25637 char * kwnames[] = {
25638 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25639 };
25640
25641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25642 if (obj0) {
25643 {
25644 arg1 = &temp1;
25645 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25646 }
25647 }
25648 if (obj1) {
25649 {
25650 arg2 = &temp2;
25651 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25652 }
25653 }
25654 if (obj2) {
25655 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25656 if (!SWIG_IsOK(res3)) {
25657 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25658 }
25659 if (!argp3) {
25660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25661 }
25662 arg3 = reinterpret_cast< wxFont * >(argp3);
25663 }
25664 {
25665 PyThreadState* __tstate = wxPyBeginAllowThreads();
25666 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25667 wxPyEndAllowThreads(__tstate);
25668 if (PyErr_Occurred()) SWIG_fail;
25669 }
25670 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25671 return resultobj;
25672 fail:
25673 return NULL;
25674 }
25675
25676
25677 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25678 PyObject *resultobj = 0;
25679 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25680 void *argp1 = 0 ;
25681 int res1 = 0 ;
25682 PyObject *swig_obj[1] ;
25683
25684 if (!args) SWIG_fail;
25685 swig_obj[0] = args;
25686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25687 if (!SWIG_IsOK(res1)) {
25688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25689 }
25690 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25691 {
25692 PyThreadState* __tstate = wxPyBeginAllowThreads();
25693 delete arg1;
25694
25695 wxPyEndAllowThreads(__tstate);
25696 if (PyErr_Occurred()) SWIG_fail;
25697 }
25698 resultobj = SWIG_Py_Void();
25699 return resultobj;
25700 fail:
25701 return NULL;
25702 }
25703
25704
25705 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25706 PyObject *resultobj = 0;
25707 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25708 wxColour *arg2 = 0 ;
25709 void *argp1 = 0 ;
25710 int res1 = 0 ;
25711 wxColour temp2 ;
25712 PyObject * obj0 = 0 ;
25713 PyObject * obj1 = 0 ;
25714 char * kwnames[] = {
25715 (char *) "self",(char *) "colText", NULL
25716 };
25717
25718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25720 if (!SWIG_IsOK(res1)) {
25721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25722 }
25723 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25724 {
25725 arg2 = &temp2;
25726 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25727 }
25728 {
25729 PyThreadState* __tstate = wxPyBeginAllowThreads();
25730 (arg1)->SetTextColour((wxColour const &)*arg2);
25731 wxPyEndAllowThreads(__tstate);
25732 if (PyErr_Occurred()) SWIG_fail;
25733 }
25734 resultobj = SWIG_Py_Void();
25735 return resultobj;
25736 fail:
25737 return NULL;
25738 }
25739
25740
25741 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25742 PyObject *resultobj = 0;
25743 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25744 wxColour *arg2 = 0 ;
25745 void *argp1 = 0 ;
25746 int res1 = 0 ;
25747 wxColour temp2 ;
25748 PyObject * obj0 = 0 ;
25749 PyObject * obj1 = 0 ;
25750 char * kwnames[] = {
25751 (char *) "self",(char *) "colBack", NULL
25752 };
25753
25754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25756 if (!SWIG_IsOK(res1)) {
25757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25758 }
25759 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25760 {
25761 arg2 = &temp2;
25762 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25763 }
25764 {
25765 PyThreadState* __tstate = wxPyBeginAllowThreads();
25766 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25767 wxPyEndAllowThreads(__tstate);
25768 if (PyErr_Occurred()) SWIG_fail;
25769 }
25770 resultobj = SWIG_Py_Void();
25771 return resultobj;
25772 fail:
25773 return NULL;
25774 }
25775
25776
25777 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25778 PyObject *resultobj = 0;
25779 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25780 wxFont *arg2 = 0 ;
25781 void *argp1 = 0 ;
25782 int res1 = 0 ;
25783 void *argp2 = 0 ;
25784 int res2 = 0 ;
25785 PyObject * obj0 = 0 ;
25786 PyObject * obj1 = 0 ;
25787 char * kwnames[] = {
25788 (char *) "self",(char *) "font", NULL
25789 };
25790
25791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25793 if (!SWIG_IsOK(res1)) {
25794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25795 }
25796 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25797 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25798 if (!SWIG_IsOK(res2)) {
25799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25800 }
25801 if (!argp2) {
25802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25803 }
25804 arg2 = reinterpret_cast< wxFont * >(argp2);
25805 {
25806 PyThreadState* __tstate = wxPyBeginAllowThreads();
25807 (arg1)->SetFont((wxFont const &)*arg2);
25808 wxPyEndAllowThreads(__tstate);
25809 if (PyErr_Occurred()) SWIG_fail;
25810 }
25811 resultobj = SWIG_Py_Void();
25812 return resultobj;
25813 fail:
25814 return NULL;
25815 }
25816
25817
25818 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25819 PyObject *resultobj = 0;
25820 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25821 bool result;
25822 void *argp1 = 0 ;
25823 int res1 = 0 ;
25824 PyObject *swig_obj[1] ;
25825
25826 if (!args) SWIG_fail;
25827 swig_obj[0] = args;
25828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25829 if (!SWIG_IsOK(res1)) {
25830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25831 }
25832 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25833 {
25834 PyThreadState* __tstate = wxPyBeginAllowThreads();
25835 result = (bool)(arg1)->HasTextColour();
25836 wxPyEndAllowThreads(__tstate);
25837 if (PyErr_Occurred()) SWIG_fail;
25838 }
25839 {
25840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25841 }
25842 return resultobj;
25843 fail:
25844 return NULL;
25845 }
25846
25847
25848 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25849 PyObject *resultobj = 0;
25850 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25851 bool result;
25852 void *argp1 = 0 ;
25853 int res1 = 0 ;
25854 PyObject *swig_obj[1] ;
25855
25856 if (!args) SWIG_fail;
25857 swig_obj[0] = args;
25858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25859 if (!SWIG_IsOK(res1)) {
25860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25861 }
25862 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25863 {
25864 PyThreadState* __tstate = wxPyBeginAllowThreads();
25865 result = (bool)(arg1)->HasBackgroundColour();
25866 wxPyEndAllowThreads(__tstate);
25867 if (PyErr_Occurred()) SWIG_fail;
25868 }
25869 {
25870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25871 }
25872 return resultobj;
25873 fail:
25874 return NULL;
25875 }
25876
25877
25878 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25879 PyObject *resultobj = 0;
25880 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25881 bool result;
25882 void *argp1 = 0 ;
25883 int res1 = 0 ;
25884 PyObject *swig_obj[1] ;
25885
25886 if (!args) SWIG_fail;
25887 swig_obj[0] = args;
25888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25889 if (!SWIG_IsOK(res1)) {
25890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25891 }
25892 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25893 {
25894 PyThreadState* __tstate = wxPyBeginAllowThreads();
25895 result = (bool)(arg1)->HasFont();
25896 wxPyEndAllowThreads(__tstate);
25897 if (PyErr_Occurred()) SWIG_fail;
25898 }
25899 {
25900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25901 }
25902 return resultobj;
25903 fail:
25904 return NULL;
25905 }
25906
25907
25908 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25909 PyObject *resultobj = 0;
25910 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25911 wxColour result;
25912 void *argp1 = 0 ;
25913 int res1 = 0 ;
25914 PyObject *swig_obj[1] ;
25915
25916 if (!args) SWIG_fail;
25917 swig_obj[0] = args;
25918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25919 if (!SWIG_IsOK(res1)) {
25920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25921 }
25922 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25923 {
25924 PyThreadState* __tstate = wxPyBeginAllowThreads();
25925 result = (arg1)->GetTextColour();
25926 wxPyEndAllowThreads(__tstate);
25927 if (PyErr_Occurred()) SWIG_fail;
25928 }
25929 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25930 return resultobj;
25931 fail:
25932 return NULL;
25933 }
25934
25935
25936 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25937 PyObject *resultobj = 0;
25938 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25939 wxColour result;
25940 void *argp1 = 0 ;
25941 int res1 = 0 ;
25942 PyObject *swig_obj[1] ;
25943
25944 if (!args) SWIG_fail;
25945 swig_obj[0] = args;
25946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25947 if (!SWIG_IsOK(res1)) {
25948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25949 }
25950 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25951 {
25952 PyThreadState* __tstate = wxPyBeginAllowThreads();
25953 result = (arg1)->GetBackgroundColour();
25954 wxPyEndAllowThreads(__tstate);
25955 if (PyErr_Occurred()) SWIG_fail;
25956 }
25957 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25958 return resultobj;
25959 fail:
25960 return NULL;
25961 }
25962
25963
25964 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25965 PyObject *resultobj = 0;
25966 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25967 wxFont result;
25968 void *argp1 = 0 ;
25969 int res1 = 0 ;
25970 PyObject *swig_obj[1] ;
25971
25972 if (!args) SWIG_fail;
25973 swig_obj[0] = args;
25974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25975 if (!SWIG_IsOK(res1)) {
25976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25977 }
25978 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25979 {
25980 PyThreadState* __tstate = wxPyBeginAllowThreads();
25981 result = (arg1)->GetFont();
25982 wxPyEndAllowThreads(__tstate);
25983 if (PyErr_Occurred()) SWIG_fail;
25984 }
25985 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
25986 return resultobj;
25987 fail:
25988 return NULL;
25989 }
25990
25991
25992 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25993 PyObject *resultobj = 0;
25994 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25995 wxListItemAttr *arg2 = 0 ;
25996 void *argp1 = 0 ;
25997 int res1 = 0 ;
25998 void *argp2 = 0 ;
25999 int res2 = 0 ;
26000 PyObject * obj0 = 0 ;
26001 PyObject * obj1 = 0 ;
26002 char * kwnames[] = {
26003 (char *) "self",(char *) "source", NULL
26004 };
26005
26006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26008 if (!SWIG_IsOK(res1)) {
26009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26010 }
26011 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26013 if (!SWIG_IsOK(res2)) {
26014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26015 }
26016 if (!argp2) {
26017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26018 }
26019 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26020 {
26021 PyThreadState* __tstate = wxPyBeginAllowThreads();
26022 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26023 wxPyEndAllowThreads(__tstate);
26024 if (PyErr_Occurred()) SWIG_fail;
26025 }
26026 resultobj = SWIG_Py_Void();
26027 return resultobj;
26028 fail:
26029 return NULL;
26030 }
26031
26032
26033 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26034 PyObject *resultobj = 0;
26035 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26036 void *argp1 = 0 ;
26037 int res1 = 0 ;
26038 PyObject *swig_obj[1] ;
26039
26040 if (!args) SWIG_fail;
26041 swig_obj[0] = args;
26042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26043 if (!SWIG_IsOK(res1)) {
26044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26045 }
26046 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26047 {
26048 PyThreadState* __tstate = wxPyBeginAllowThreads();
26049 wxListItemAttr_Destroy(arg1);
26050 wxPyEndAllowThreads(__tstate);
26051 if (PyErr_Occurred()) SWIG_fail;
26052 }
26053 resultobj = SWIG_Py_Void();
26054 return resultobj;
26055 fail:
26056 return NULL;
26057 }
26058
26059
26060 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26061 PyObject *obj;
26062 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26063 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26064 return SWIG_Py_Void();
26065 }
26066
26067 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26068 return SWIG_Python_InitShadowInstance(args);
26069 }
26070
26071 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26072 PyObject *resultobj = 0;
26073 wxListItem *result = 0 ;
26074
26075 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26076 {
26077 PyThreadState* __tstate = wxPyBeginAllowThreads();
26078 result = (wxListItem *)new wxListItem();
26079 wxPyEndAllowThreads(__tstate);
26080 if (PyErr_Occurred()) SWIG_fail;
26081 }
26082 {
26083 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26084 }
26085 return resultobj;
26086 fail:
26087 return NULL;
26088 }
26089
26090
26091 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26092 PyObject *resultobj = 0;
26093 wxListItem *arg1 = (wxListItem *) 0 ;
26094 void *argp1 = 0 ;
26095 int res1 = 0 ;
26096 PyObject *swig_obj[1] ;
26097
26098 if (!args) SWIG_fail;
26099 swig_obj[0] = args;
26100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26101 if (!SWIG_IsOK(res1)) {
26102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26103 }
26104 arg1 = reinterpret_cast< wxListItem * >(argp1);
26105 {
26106 PyThreadState* __tstate = wxPyBeginAllowThreads();
26107 delete arg1;
26108
26109 wxPyEndAllowThreads(__tstate);
26110 if (PyErr_Occurred()) SWIG_fail;
26111 }
26112 resultobj = SWIG_Py_Void();
26113 return resultobj;
26114 fail:
26115 return NULL;
26116 }
26117
26118
26119 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26120 PyObject *resultobj = 0;
26121 wxListItem *arg1 = (wxListItem *) 0 ;
26122 void *argp1 = 0 ;
26123 int res1 = 0 ;
26124 PyObject *swig_obj[1] ;
26125
26126 if (!args) SWIG_fail;
26127 swig_obj[0] = args;
26128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26129 if (!SWIG_IsOK(res1)) {
26130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26131 }
26132 arg1 = reinterpret_cast< wxListItem * >(argp1);
26133 {
26134 PyThreadState* __tstate = wxPyBeginAllowThreads();
26135 (arg1)->Clear();
26136 wxPyEndAllowThreads(__tstate);
26137 if (PyErr_Occurred()) SWIG_fail;
26138 }
26139 resultobj = SWIG_Py_Void();
26140 return resultobj;
26141 fail:
26142 return NULL;
26143 }
26144
26145
26146 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26147 PyObject *resultobj = 0;
26148 wxListItem *arg1 = (wxListItem *) 0 ;
26149 void *argp1 = 0 ;
26150 int res1 = 0 ;
26151 PyObject *swig_obj[1] ;
26152
26153 if (!args) SWIG_fail;
26154 swig_obj[0] = args;
26155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26156 if (!SWIG_IsOK(res1)) {
26157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26158 }
26159 arg1 = reinterpret_cast< wxListItem * >(argp1);
26160 {
26161 PyThreadState* __tstate = wxPyBeginAllowThreads();
26162 (arg1)->ClearAttributes();
26163 wxPyEndAllowThreads(__tstate);
26164 if (PyErr_Occurred()) SWIG_fail;
26165 }
26166 resultobj = SWIG_Py_Void();
26167 return resultobj;
26168 fail:
26169 return NULL;
26170 }
26171
26172
26173 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26174 PyObject *resultobj = 0;
26175 wxListItem *arg1 = (wxListItem *) 0 ;
26176 long arg2 ;
26177 void *argp1 = 0 ;
26178 int res1 = 0 ;
26179 long val2 ;
26180 int ecode2 = 0 ;
26181 PyObject * obj0 = 0 ;
26182 PyObject * obj1 = 0 ;
26183 char * kwnames[] = {
26184 (char *) "self",(char *) "mask", NULL
26185 };
26186
26187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26189 if (!SWIG_IsOK(res1)) {
26190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26191 }
26192 arg1 = reinterpret_cast< wxListItem * >(argp1);
26193 ecode2 = SWIG_AsVal_long(obj1, &val2);
26194 if (!SWIG_IsOK(ecode2)) {
26195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26196 }
26197 arg2 = static_cast< long >(val2);
26198 {
26199 PyThreadState* __tstate = wxPyBeginAllowThreads();
26200 (arg1)->SetMask(arg2);
26201 wxPyEndAllowThreads(__tstate);
26202 if (PyErr_Occurred()) SWIG_fail;
26203 }
26204 resultobj = SWIG_Py_Void();
26205 return resultobj;
26206 fail:
26207 return NULL;
26208 }
26209
26210
26211 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26212 PyObject *resultobj = 0;
26213 wxListItem *arg1 = (wxListItem *) 0 ;
26214 long arg2 ;
26215 void *argp1 = 0 ;
26216 int res1 = 0 ;
26217 long val2 ;
26218 int ecode2 = 0 ;
26219 PyObject * obj0 = 0 ;
26220 PyObject * obj1 = 0 ;
26221 char * kwnames[] = {
26222 (char *) "self",(char *) "id", NULL
26223 };
26224
26225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26227 if (!SWIG_IsOK(res1)) {
26228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26229 }
26230 arg1 = reinterpret_cast< wxListItem * >(argp1);
26231 ecode2 = SWIG_AsVal_long(obj1, &val2);
26232 if (!SWIG_IsOK(ecode2)) {
26233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26234 }
26235 arg2 = static_cast< long >(val2);
26236 {
26237 PyThreadState* __tstate = wxPyBeginAllowThreads();
26238 (arg1)->SetId(arg2);
26239 wxPyEndAllowThreads(__tstate);
26240 if (PyErr_Occurred()) SWIG_fail;
26241 }
26242 resultobj = SWIG_Py_Void();
26243 return resultobj;
26244 fail:
26245 return NULL;
26246 }
26247
26248
26249 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26250 PyObject *resultobj = 0;
26251 wxListItem *arg1 = (wxListItem *) 0 ;
26252 int arg2 ;
26253 void *argp1 = 0 ;
26254 int res1 = 0 ;
26255 int val2 ;
26256 int ecode2 = 0 ;
26257 PyObject * obj0 = 0 ;
26258 PyObject * obj1 = 0 ;
26259 char * kwnames[] = {
26260 (char *) "self",(char *) "col", NULL
26261 };
26262
26263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26265 if (!SWIG_IsOK(res1)) {
26266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26267 }
26268 arg1 = reinterpret_cast< wxListItem * >(argp1);
26269 ecode2 = SWIG_AsVal_int(obj1, &val2);
26270 if (!SWIG_IsOK(ecode2)) {
26271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26272 }
26273 arg2 = static_cast< int >(val2);
26274 {
26275 PyThreadState* __tstate = wxPyBeginAllowThreads();
26276 (arg1)->SetColumn(arg2);
26277 wxPyEndAllowThreads(__tstate);
26278 if (PyErr_Occurred()) SWIG_fail;
26279 }
26280 resultobj = SWIG_Py_Void();
26281 return resultobj;
26282 fail:
26283 return NULL;
26284 }
26285
26286
26287 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26288 PyObject *resultobj = 0;
26289 wxListItem *arg1 = (wxListItem *) 0 ;
26290 long arg2 ;
26291 void *argp1 = 0 ;
26292 int res1 = 0 ;
26293 long val2 ;
26294 int ecode2 = 0 ;
26295 PyObject * obj0 = 0 ;
26296 PyObject * obj1 = 0 ;
26297 char * kwnames[] = {
26298 (char *) "self",(char *) "state", NULL
26299 };
26300
26301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26303 if (!SWIG_IsOK(res1)) {
26304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26305 }
26306 arg1 = reinterpret_cast< wxListItem * >(argp1);
26307 ecode2 = SWIG_AsVal_long(obj1, &val2);
26308 if (!SWIG_IsOK(ecode2)) {
26309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26310 }
26311 arg2 = static_cast< long >(val2);
26312 {
26313 PyThreadState* __tstate = wxPyBeginAllowThreads();
26314 (arg1)->SetState(arg2);
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 *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26326 PyObject *resultobj = 0;
26327 wxListItem *arg1 = (wxListItem *) 0 ;
26328 long arg2 ;
26329 void *argp1 = 0 ;
26330 int res1 = 0 ;
26331 long val2 ;
26332 int ecode2 = 0 ;
26333 PyObject * obj0 = 0 ;
26334 PyObject * obj1 = 0 ;
26335 char * kwnames[] = {
26336 (char *) "self",(char *) "stateMask", NULL
26337 };
26338
26339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26341 if (!SWIG_IsOK(res1)) {
26342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26343 }
26344 arg1 = reinterpret_cast< wxListItem * >(argp1);
26345 ecode2 = SWIG_AsVal_long(obj1, &val2);
26346 if (!SWIG_IsOK(ecode2)) {
26347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26348 }
26349 arg2 = static_cast< long >(val2);
26350 {
26351 PyThreadState* __tstate = wxPyBeginAllowThreads();
26352 (arg1)->SetStateMask(arg2);
26353 wxPyEndAllowThreads(__tstate);
26354 if (PyErr_Occurred()) SWIG_fail;
26355 }
26356 resultobj = SWIG_Py_Void();
26357 return resultobj;
26358 fail:
26359 return NULL;
26360 }
26361
26362
26363 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26364 PyObject *resultobj = 0;
26365 wxListItem *arg1 = (wxListItem *) 0 ;
26366 wxString *arg2 = 0 ;
26367 void *argp1 = 0 ;
26368 int res1 = 0 ;
26369 bool temp2 = false ;
26370 PyObject * obj0 = 0 ;
26371 PyObject * obj1 = 0 ;
26372 char * kwnames[] = {
26373 (char *) "self",(char *) "text", NULL
26374 };
26375
26376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26378 if (!SWIG_IsOK(res1)) {
26379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26380 }
26381 arg1 = reinterpret_cast< wxListItem * >(argp1);
26382 {
26383 arg2 = wxString_in_helper(obj1);
26384 if (arg2 == NULL) SWIG_fail;
26385 temp2 = true;
26386 }
26387 {
26388 PyThreadState* __tstate = wxPyBeginAllowThreads();
26389 (arg1)->SetText((wxString const &)*arg2);
26390 wxPyEndAllowThreads(__tstate);
26391 if (PyErr_Occurred()) SWIG_fail;
26392 }
26393 resultobj = SWIG_Py_Void();
26394 {
26395 if (temp2)
26396 delete arg2;
26397 }
26398 return resultobj;
26399 fail:
26400 {
26401 if (temp2)
26402 delete arg2;
26403 }
26404 return NULL;
26405 }
26406
26407
26408 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26409 PyObject *resultobj = 0;
26410 wxListItem *arg1 = (wxListItem *) 0 ;
26411 int arg2 ;
26412 void *argp1 = 0 ;
26413 int res1 = 0 ;
26414 int val2 ;
26415 int ecode2 = 0 ;
26416 PyObject * obj0 = 0 ;
26417 PyObject * obj1 = 0 ;
26418 char * kwnames[] = {
26419 (char *) "self",(char *) "image", NULL
26420 };
26421
26422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26424 if (!SWIG_IsOK(res1)) {
26425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26426 }
26427 arg1 = reinterpret_cast< wxListItem * >(argp1);
26428 ecode2 = SWIG_AsVal_int(obj1, &val2);
26429 if (!SWIG_IsOK(ecode2)) {
26430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26431 }
26432 arg2 = static_cast< int >(val2);
26433 {
26434 PyThreadState* __tstate = wxPyBeginAllowThreads();
26435 (arg1)->SetImage(arg2);
26436 wxPyEndAllowThreads(__tstate);
26437 if (PyErr_Occurred()) SWIG_fail;
26438 }
26439 resultobj = SWIG_Py_Void();
26440 return resultobj;
26441 fail:
26442 return NULL;
26443 }
26444
26445
26446 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26447 PyObject *resultobj = 0;
26448 wxListItem *arg1 = (wxListItem *) 0 ;
26449 long arg2 ;
26450 void *argp1 = 0 ;
26451 int res1 = 0 ;
26452 long val2 ;
26453 int ecode2 = 0 ;
26454 PyObject * obj0 = 0 ;
26455 PyObject * obj1 = 0 ;
26456 char * kwnames[] = {
26457 (char *) "self",(char *) "data", NULL
26458 };
26459
26460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26462 if (!SWIG_IsOK(res1)) {
26463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26464 }
26465 arg1 = reinterpret_cast< wxListItem * >(argp1);
26466 ecode2 = SWIG_AsVal_long(obj1, &val2);
26467 if (!SWIG_IsOK(ecode2)) {
26468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26469 }
26470 arg2 = static_cast< long >(val2);
26471 {
26472 PyThreadState* __tstate = wxPyBeginAllowThreads();
26473 (arg1)->SetData(arg2);
26474 wxPyEndAllowThreads(__tstate);
26475 if (PyErr_Occurred()) SWIG_fail;
26476 }
26477 resultobj = SWIG_Py_Void();
26478 return resultobj;
26479 fail:
26480 return NULL;
26481 }
26482
26483
26484 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26485 PyObject *resultobj = 0;
26486 wxListItem *arg1 = (wxListItem *) 0 ;
26487 int arg2 ;
26488 void *argp1 = 0 ;
26489 int res1 = 0 ;
26490 int val2 ;
26491 int ecode2 = 0 ;
26492 PyObject * obj0 = 0 ;
26493 PyObject * obj1 = 0 ;
26494 char * kwnames[] = {
26495 (char *) "self",(char *) "width", NULL
26496 };
26497
26498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26500 if (!SWIG_IsOK(res1)) {
26501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26502 }
26503 arg1 = reinterpret_cast< wxListItem * >(argp1);
26504 ecode2 = SWIG_AsVal_int(obj1, &val2);
26505 if (!SWIG_IsOK(ecode2)) {
26506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26507 }
26508 arg2 = static_cast< int >(val2);
26509 {
26510 PyThreadState* __tstate = wxPyBeginAllowThreads();
26511 (arg1)->SetWidth(arg2);
26512 wxPyEndAllowThreads(__tstate);
26513 if (PyErr_Occurred()) SWIG_fail;
26514 }
26515 resultobj = SWIG_Py_Void();
26516 return resultobj;
26517 fail:
26518 return NULL;
26519 }
26520
26521
26522 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26523 PyObject *resultobj = 0;
26524 wxListItem *arg1 = (wxListItem *) 0 ;
26525 wxListColumnFormat arg2 ;
26526 void *argp1 = 0 ;
26527 int res1 = 0 ;
26528 int val2 ;
26529 int ecode2 = 0 ;
26530 PyObject * obj0 = 0 ;
26531 PyObject * obj1 = 0 ;
26532 char * kwnames[] = {
26533 (char *) "self",(char *) "align", NULL
26534 };
26535
26536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26538 if (!SWIG_IsOK(res1)) {
26539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26540 }
26541 arg1 = reinterpret_cast< wxListItem * >(argp1);
26542 ecode2 = SWIG_AsVal_int(obj1, &val2);
26543 if (!SWIG_IsOK(ecode2)) {
26544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26545 }
26546 arg2 = static_cast< wxListColumnFormat >(val2);
26547 {
26548 PyThreadState* __tstate = wxPyBeginAllowThreads();
26549 (arg1)->SetAlign(arg2);
26550 wxPyEndAllowThreads(__tstate);
26551 if (PyErr_Occurred()) SWIG_fail;
26552 }
26553 resultobj = SWIG_Py_Void();
26554 return resultobj;
26555 fail:
26556 return NULL;
26557 }
26558
26559
26560 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26561 PyObject *resultobj = 0;
26562 wxListItem *arg1 = (wxListItem *) 0 ;
26563 wxColour *arg2 = 0 ;
26564 void *argp1 = 0 ;
26565 int res1 = 0 ;
26566 wxColour temp2 ;
26567 PyObject * obj0 = 0 ;
26568 PyObject * obj1 = 0 ;
26569 char * kwnames[] = {
26570 (char *) "self",(char *) "colText", NULL
26571 };
26572
26573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26575 if (!SWIG_IsOK(res1)) {
26576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26577 }
26578 arg1 = reinterpret_cast< wxListItem * >(argp1);
26579 {
26580 arg2 = &temp2;
26581 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26582 }
26583 {
26584 PyThreadState* __tstate = wxPyBeginAllowThreads();
26585 (arg1)->SetTextColour((wxColour const &)*arg2);
26586 wxPyEndAllowThreads(__tstate);
26587 if (PyErr_Occurred()) SWIG_fail;
26588 }
26589 resultobj = SWIG_Py_Void();
26590 return resultobj;
26591 fail:
26592 return NULL;
26593 }
26594
26595
26596 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26597 PyObject *resultobj = 0;
26598 wxListItem *arg1 = (wxListItem *) 0 ;
26599 wxColour *arg2 = 0 ;
26600 void *argp1 = 0 ;
26601 int res1 = 0 ;
26602 wxColour temp2 ;
26603 PyObject * obj0 = 0 ;
26604 PyObject * obj1 = 0 ;
26605 char * kwnames[] = {
26606 (char *) "self",(char *) "colBack", NULL
26607 };
26608
26609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26611 if (!SWIG_IsOK(res1)) {
26612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26613 }
26614 arg1 = reinterpret_cast< wxListItem * >(argp1);
26615 {
26616 arg2 = &temp2;
26617 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26618 }
26619 {
26620 PyThreadState* __tstate = wxPyBeginAllowThreads();
26621 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26622 wxPyEndAllowThreads(__tstate);
26623 if (PyErr_Occurred()) SWIG_fail;
26624 }
26625 resultobj = SWIG_Py_Void();
26626 return resultobj;
26627 fail:
26628 return NULL;
26629 }
26630
26631
26632 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26633 PyObject *resultobj = 0;
26634 wxListItem *arg1 = (wxListItem *) 0 ;
26635 wxFont *arg2 = 0 ;
26636 void *argp1 = 0 ;
26637 int res1 = 0 ;
26638 void *argp2 = 0 ;
26639 int res2 = 0 ;
26640 PyObject * obj0 = 0 ;
26641 PyObject * obj1 = 0 ;
26642 char * kwnames[] = {
26643 (char *) "self",(char *) "font", NULL
26644 };
26645
26646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26648 if (!SWIG_IsOK(res1)) {
26649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26650 }
26651 arg1 = reinterpret_cast< wxListItem * >(argp1);
26652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26653 if (!SWIG_IsOK(res2)) {
26654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26655 }
26656 if (!argp2) {
26657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26658 }
26659 arg2 = reinterpret_cast< wxFont * >(argp2);
26660 {
26661 PyThreadState* __tstate = wxPyBeginAllowThreads();
26662 (arg1)->SetFont((wxFont const &)*arg2);
26663 wxPyEndAllowThreads(__tstate);
26664 if (PyErr_Occurred()) SWIG_fail;
26665 }
26666 resultobj = SWIG_Py_Void();
26667 return resultobj;
26668 fail:
26669 return NULL;
26670 }
26671
26672
26673 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26674 PyObject *resultobj = 0;
26675 wxListItem *arg1 = (wxListItem *) 0 ;
26676 long result;
26677 void *argp1 = 0 ;
26678 int res1 = 0 ;
26679 PyObject *swig_obj[1] ;
26680
26681 if (!args) SWIG_fail;
26682 swig_obj[0] = args;
26683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26684 if (!SWIG_IsOK(res1)) {
26685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26686 }
26687 arg1 = reinterpret_cast< wxListItem * >(argp1);
26688 {
26689 PyThreadState* __tstate = wxPyBeginAllowThreads();
26690 result = (long)(arg1)->GetMask();
26691 wxPyEndAllowThreads(__tstate);
26692 if (PyErr_Occurred()) SWIG_fail;
26693 }
26694 resultobj = SWIG_From_long(static_cast< long >(result));
26695 return resultobj;
26696 fail:
26697 return NULL;
26698 }
26699
26700
26701 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26702 PyObject *resultobj = 0;
26703 wxListItem *arg1 = (wxListItem *) 0 ;
26704 long result;
26705 void *argp1 = 0 ;
26706 int res1 = 0 ;
26707 PyObject *swig_obj[1] ;
26708
26709 if (!args) SWIG_fail;
26710 swig_obj[0] = args;
26711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26712 if (!SWIG_IsOK(res1)) {
26713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26714 }
26715 arg1 = reinterpret_cast< wxListItem * >(argp1);
26716 {
26717 PyThreadState* __tstate = wxPyBeginAllowThreads();
26718 result = (long)(arg1)->GetId();
26719 wxPyEndAllowThreads(__tstate);
26720 if (PyErr_Occurred()) SWIG_fail;
26721 }
26722 resultobj = SWIG_From_long(static_cast< long >(result));
26723 return resultobj;
26724 fail:
26725 return NULL;
26726 }
26727
26728
26729 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26730 PyObject *resultobj = 0;
26731 wxListItem *arg1 = (wxListItem *) 0 ;
26732 int result;
26733 void *argp1 = 0 ;
26734 int res1 = 0 ;
26735 PyObject *swig_obj[1] ;
26736
26737 if (!args) SWIG_fail;
26738 swig_obj[0] = args;
26739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26740 if (!SWIG_IsOK(res1)) {
26741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26742 }
26743 arg1 = reinterpret_cast< wxListItem * >(argp1);
26744 {
26745 PyThreadState* __tstate = wxPyBeginAllowThreads();
26746 result = (int)(arg1)->GetColumn();
26747 wxPyEndAllowThreads(__tstate);
26748 if (PyErr_Occurred()) SWIG_fail;
26749 }
26750 resultobj = SWIG_From_int(static_cast< int >(result));
26751 return resultobj;
26752 fail:
26753 return NULL;
26754 }
26755
26756
26757 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26758 PyObject *resultobj = 0;
26759 wxListItem *arg1 = (wxListItem *) 0 ;
26760 long result;
26761 void *argp1 = 0 ;
26762 int res1 = 0 ;
26763 PyObject *swig_obj[1] ;
26764
26765 if (!args) SWIG_fail;
26766 swig_obj[0] = args;
26767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26768 if (!SWIG_IsOK(res1)) {
26769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26770 }
26771 arg1 = reinterpret_cast< wxListItem * >(argp1);
26772 {
26773 PyThreadState* __tstate = wxPyBeginAllowThreads();
26774 result = (long)(arg1)->GetState();
26775 wxPyEndAllowThreads(__tstate);
26776 if (PyErr_Occurred()) SWIG_fail;
26777 }
26778 resultobj = SWIG_From_long(static_cast< long >(result));
26779 return resultobj;
26780 fail:
26781 return NULL;
26782 }
26783
26784
26785 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26786 PyObject *resultobj = 0;
26787 wxListItem *arg1 = (wxListItem *) 0 ;
26788 wxString *result = 0 ;
26789 void *argp1 = 0 ;
26790 int res1 = 0 ;
26791 PyObject *swig_obj[1] ;
26792
26793 if (!args) SWIG_fail;
26794 swig_obj[0] = args;
26795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26796 if (!SWIG_IsOK(res1)) {
26797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26798 }
26799 arg1 = reinterpret_cast< wxListItem * >(argp1);
26800 {
26801 PyThreadState* __tstate = wxPyBeginAllowThreads();
26802 {
26803 wxString const &_result_ref = (arg1)->GetText();
26804 result = (wxString *) &_result_ref;
26805 }
26806 wxPyEndAllowThreads(__tstate);
26807 if (PyErr_Occurred()) SWIG_fail;
26808 }
26809 {
26810 #if wxUSE_UNICODE
26811 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26812 #else
26813 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26814 #endif
26815 }
26816 return resultobj;
26817 fail:
26818 return NULL;
26819 }
26820
26821
26822 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26823 PyObject *resultobj = 0;
26824 wxListItem *arg1 = (wxListItem *) 0 ;
26825 int result;
26826 void *argp1 = 0 ;
26827 int res1 = 0 ;
26828 PyObject *swig_obj[1] ;
26829
26830 if (!args) SWIG_fail;
26831 swig_obj[0] = args;
26832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26833 if (!SWIG_IsOK(res1)) {
26834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26835 }
26836 arg1 = reinterpret_cast< wxListItem * >(argp1);
26837 {
26838 PyThreadState* __tstate = wxPyBeginAllowThreads();
26839 result = (int)(arg1)->GetImage();
26840 wxPyEndAllowThreads(__tstate);
26841 if (PyErr_Occurred()) SWIG_fail;
26842 }
26843 resultobj = SWIG_From_int(static_cast< int >(result));
26844 return resultobj;
26845 fail:
26846 return NULL;
26847 }
26848
26849
26850 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26851 PyObject *resultobj = 0;
26852 wxListItem *arg1 = (wxListItem *) 0 ;
26853 long result;
26854 void *argp1 = 0 ;
26855 int res1 = 0 ;
26856 PyObject *swig_obj[1] ;
26857
26858 if (!args) SWIG_fail;
26859 swig_obj[0] = args;
26860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26861 if (!SWIG_IsOK(res1)) {
26862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26863 }
26864 arg1 = reinterpret_cast< wxListItem * >(argp1);
26865 {
26866 PyThreadState* __tstate = wxPyBeginAllowThreads();
26867 result = (long)(arg1)->GetData();
26868 wxPyEndAllowThreads(__tstate);
26869 if (PyErr_Occurred()) SWIG_fail;
26870 }
26871 resultobj = SWIG_From_long(static_cast< long >(result));
26872 return resultobj;
26873 fail:
26874 return NULL;
26875 }
26876
26877
26878 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26879 PyObject *resultobj = 0;
26880 wxListItem *arg1 = (wxListItem *) 0 ;
26881 int result;
26882 void *argp1 = 0 ;
26883 int res1 = 0 ;
26884 PyObject *swig_obj[1] ;
26885
26886 if (!args) SWIG_fail;
26887 swig_obj[0] = args;
26888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26889 if (!SWIG_IsOK(res1)) {
26890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26891 }
26892 arg1 = reinterpret_cast< wxListItem * >(argp1);
26893 {
26894 PyThreadState* __tstate = wxPyBeginAllowThreads();
26895 result = (int)(arg1)->GetWidth();
26896 wxPyEndAllowThreads(__tstate);
26897 if (PyErr_Occurred()) SWIG_fail;
26898 }
26899 resultobj = SWIG_From_int(static_cast< int >(result));
26900 return resultobj;
26901 fail:
26902 return NULL;
26903 }
26904
26905
26906 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26907 PyObject *resultobj = 0;
26908 wxListItem *arg1 = (wxListItem *) 0 ;
26909 wxListColumnFormat result;
26910 void *argp1 = 0 ;
26911 int res1 = 0 ;
26912 PyObject *swig_obj[1] ;
26913
26914 if (!args) SWIG_fail;
26915 swig_obj[0] = args;
26916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26917 if (!SWIG_IsOK(res1)) {
26918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26919 }
26920 arg1 = reinterpret_cast< wxListItem * >(argp1);
26921 {
26922 PyThreadState* __tstate = wxPyBeginAllowThreads();
26923 result = (wxListColumnFormat)(arg1)->GetAlign();
26924 wxPyEndAllowThreads(__tstate);
26925 if (PyErr_Occurred()) SWIG_fail;
26926 }
26927 resultobj = SWIG_From_int(static_cast< int >(result));
26928 return resultobj;
26929 fail:
26930 return NULL;
26931 }
26932
26933
26934 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26935 PyObject *resultobj = 0;
26936 wxListItem *arg1 = (wxListItem *) 0 ;
26937 wxListItemAttr *result = 0 ;
26938 void *argp1 = 0 ;
26939 int res1 = 0 ;
26940 PyObject *swig_obj[1] ;
26941
26942 if (!args) SWIG_fail;
26943 swig_obj[0] = args;
26944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26945 if (!SWIG_IsOK(res1)) {
26946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26947 }
26948 arg1 = reinterpret_cast< wxListItem * >(argp1);
26949 {
26950 PyThreadState* __tstate = wxPyBeginAllowThreads();
26951 result = (wxListItemAttr *)(arg1)->GetAttributes();
26952 wxPyEndAllowThreads(__tstate);
26953 if (PyErr_Occurred()) SWIG_fail;
26954 }
26955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26956 return resultobj;
26957 fail:
26958 return NULL;
26959 }
26960
26961
26962 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26963 PyObject *resultobj = 0;
26964 wxListItem *arg1 = (wxListItem *) 0 ;
26965 bool result;
26966 void *argp1 = 0 ;
26967 int res1 = 0 ;
26968 PyObject *swig_obj[1] ;
26969
26970 if (!args) SWIG_fail;
26971 swig_obj[0] = args;
26972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26973 if (!SWIG_IsOK(res1)) {
26974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26975 }
26976 arg1 = reinterpret_cast< wxListItem * >(argp1);
26977 {
26978 PyThreadState* __tstate = wxPyBeginAllowThreads();
26979 result = (bool)(arg1)->HasAttributes();
26980 wxPyEndAllowThreads(__tstate);
26981 if (PyErr_Occurred()) SWIG_fail;
26982 }
26983 {
26984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26985 }
26986 return resultobj;
26987 fail:
26988 return NULL;
26989 }
26990
26991
26992 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26993 PyObject *resultobj = 0;
26994 wxListItem *arg1 = (wxListItem *) 0 ;
26995 wxColour result;
26996 void *argp1 = 0 ;
26997 int res1 = 0 ;
26998 PyObject *swig_obj[1] ;
26999
27000 if (!args) SWIG_fail;
27001 swig_obj[0] = args;
27002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27003 if (!SWIG_IsOK(res1)) {
27004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27005 }
27006 arg1 = reinterpret_cast< wxListItem * >(argp1);
27007 {
27008 PyThreadState* __tstate = wxPyBeginAllowThreads();
27009 result = ((wxListItem const *)arg1)->GetTextColour();
27010 wxPyEndAllowThreads(__tstate);
27011 if (PyErr_Occurred()) SWIG_fail;
27012 }
27013 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27014 return resultobj;
27015 fail:
27016 return NULL;
27017 }
27018
27019
27020 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27021 PyObject *resultobj = 0;
27022 wxListItem *arg1 = (wxListItem *) 0 ;
27023 wxColour result;
27024 void *argp1 = 0 ;
27025 int res1 = 0 ;
27026 PyObject *swig_obj[1] ;
27027
27028 if (!args) SWIG_fail;
27029 swig_obj[0] = args;
27030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27031 if (!SWIG_IsOK(res1)) {
27032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27033 }
27034 arg1 = reinterpret_cast< wxListItem * >(argp1);
27035 {
27036 PyThreadState* __tstate = wxPyBeginAllowThreads();
27037 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27038 wxPyEndAllowThreads(__tstate);
27039 if (PyErr_Occurred()) SWIG_fail;
27040 }
27041 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27042 return resultobj;
27043 fail:
27044 return NULL;
27045 }
27046
27047
27048 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27049 PyObject *resultobj = 0;
27050 wxListItem *arg1 = (wxListItem *) 0 ;
27051 wxFont result;
27052 void *argp1 = 0 ;
27053 int res1 = 0 ;
27054 PyObject *swig_obj[1] ;
27055
27056 if (!args) SWIG_fail;
27057 swig_obj[0] = args;
27058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27059 if (!SWIG_IsOK(res1)) {
27060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27061 }
27062 arg1 = reinterpret_cast< wxListItem * >(argp1);
27063 {
27064 PyThreadState* __tstate = wxPyBeginAllowThreads();
27065 result = ((wxListItem const *)arg1)->GetFont();
27066 wxPyEndAllowThreads(__tstate);
27067 if (PyErr_Occurred()) SWIG_fail;
27068 }
27069 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27070 return resultobj;
27071 fail:
27072 return NULL;
27073 }
27074
27075
27076 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27077 PyObject *resultobj = 0;
27078 wxListItem *arg1 = (wxListItem *) 0 ;
27079 long arg2 ;
27080 void *argp1 = 0 ;
27081 int res1 = 0 ;
27082 long val2 ;
27083 int ecode2 = 0 ;
27084 PyObject *swig_obj[2] ;
27085
27086 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27088 if (!SWIG_IsOK(res1)) {
27089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27090 }
27091 arg1 = reinterpret_cast< wxListItem * >(argp1);
27092 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27093 if (!SWIG_IsOK(ecode2)) {
27094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27095 }
27096 arg2 = static_cast< long >(val2);
27097 if (arg1) (arg1)->m_mask = arg2;
27098
27099 resultobj = SWIG_Py_Void();
27100 return resultobj;
27101 fail:
27102 return NULL;
27103 }
27104
27105
27106 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27107 PyObject *resultobj = 0;
27108 wxListItem *arg1 = (wxListItem *) 0 ;
27109 long result;
27110 void *argp1 = 0 ;
27111 int res1 = 0 ;
27112 PyObject *swig_obj[1] ;
27113
27114 if (!args) SWIG_fail;
27115 swig_obj[0] = args;
27116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27117 if (!SWIG_IsOK(res1)) {
27118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27119 }
27120 arg1 = reinterpret_cast< wxListItem * >(argp1);
27121 result = (long) ((arg1)->m_mask);
27122 resultobj = SWIG_From_long(static_cast< long >(result));
27123 return resultobj;
27124 fail:
27125 return NULL;
27126 }
27127
27128
27129 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27130 PyObject *resultobj = 0;
27131 wxListItem *arg1 = (wxListItem *) 0 ;
27132 long arg2 ;
27133 void *argp1 = 0 ;
27134 int res1 = 0 ;
27135 long val2 ;
27136 int ecode2 = 0 ;
27137 PyObject *swig_obj[2] ;
27138
27139 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27141 if (!SWIG_IsOK(res1)) {
27142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27143 }
27144 arg1 = reinterpret_cast< wxListItem * >(argp1);
27145 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27146 if (!SWIG_IsOK(ecode2)) {
27147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27148 }
27149 arg2 = static_cast< long >(val2);
27150 if (arg1) (arg1)->m_itemId = arg2;
27151
27152 resultobj = SWIG_Py_Void();
27153 return resultobj;
27154 fail:
27155 return NULL;
27156 }
27157
27158
27159 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27160 PyObject *resultobj = 0;
27161 wxListItem *arg1 = (wxListItem *) 0 ;
27162 long result;
27163 void *argp1 = 0 ;
27164 int res1 = 0 ;
27165 PyObject *swig_obj[1] ;
27166
27167 if (!args) SWIG_fail;
27168 swig_obj[0] = args;
27169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27170 if (!SWIG_IsOK(res1)) {
27171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27172 }
27173 arg1 = reinterpret_cast< wxListItem * >(argp1);
27174 result = (long) ((arg1)->m_itemId);
27175 resultobj = SWIG_From_long(static_cast< long >(result));
27176 return resultobj;
27177 fail:
27178 return NULL;
27179 }
27180
27181
27182 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27183 PyObject *resultobj = 0;
27184 wxListItem *arg1 = (wxListItem *) 0 ;
27185 int arg2 ;
27186 void *argp1 = 0 ;
27187 int res1 = 0 ;
27188 int val2 ;
27189 int ecode2 = 0 ;
27190 PyObject *swig_obj[2] ;
27191
27192 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27194 if (!SWIG_IsOK(res1)) {
27195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27196 }
27197 arg1 = reinterpret_cast< wxListItem * >(argp1);
27198 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27199 if (!SWIG_IsOK(ecode2)) {
27200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27201 }
27202 arg2 = static_cast< int >(val2);
27203 if (arg1) (arg1)->m_col = arg2;
27204
27205 resultobj = SWIG_Py_Void();
27206 return resultobj;
27207 fail:
27208 return NULL;
27209 }
27210
27211
27212 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27213 PyObject *resultobj = 0;
27214 wxListItem *arg1 = (wxListItem *) 0 ;
27215 int result;
27216 void *argp1 = 0 ;
27217 int res1 = 0 ;
27218 PyObject *swig_obj[1] ;
27219
27220 if (!args) SWIG_fail;
27221 swig_obj[0] = args;
27222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27223 if (!SWIG_IsOK(res1)) {
27224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27225 }
27226 arg1 = reinterpret_cast< wxListItem * >(argp1);
27227 result = (int) ((arg1)->m_col);
27228 resultobj = SWIG_From_int(static_cast< int >(result));
27229 return resultobj;
27230 fail:
27231 return NULL;
27232 }
27233
27234
27235 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27236 PyObject *resultobj = 0;
27237 wxListItem *arg1 = (wxListItem *) 0 ;
27238 long arg2 ;
27239 void *argp1 = 0 ;
27240 int res1 = 0 ;
27241 long val2 ;
27242 int ecode2 = 0 ;
27243 PyObject *swig_obj[2] ;
27244
27245 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27247 if (!SWIG_IsOK(res1)) {
27248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27249 }
27250 arg1 = reinterpret_cast< wxListItem * >(argp1);
27251 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27252 if (!SWIG_IsOK(ecode2)) {
27253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27254 }
27255 arg2 = static_cast< long >(val2);
27256 if (arg1) (arg1)->m_state = arg2;
27257
27258 resultobj = SWIG_Py_Void();
27259 return resultobj;
27260 fail:
27261 return NULL;
27262 }
27263
27264
27265 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27266 PyObject *resultobj = 0;
27267 wxListItem *arg1 = (wxListItem *) 0 ;
27268 long result;
27269 void *argp1 = 0 ;
27270 int res1 = 0 ;
27271 PyObject *swig_obj[1] ;
27272
27273 if (!args) SWIG_fail;
27274 swig_obj[0] = args;
27275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27276 if (!SWIG_IsOK(res1)) {
27277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27278 }
27279 arg1 = reinterpret_cast< wxListItem * >(argp1);
27280 result = (long) ((arg1)->m_state);
27281 resultobj = SWIG_From_long(static_cast< long >(result));
27282 return resultobj;
27283 fail:
27284 return NULL;
27285 }
27286
27287
27288 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27289 PyObject *resultobj = 0;
27290 wxListItem *arg1 = (wxListItem *) 0 ;
27291 long arg2 ;
27292 void *argp1 = 0 ;
27293 int res1 = 0 ;
27294 long val2 ;
27295 int ecode2 = 0 ;
27296 PyObject *swig_obj[2] ;
27297
27298 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27300 if (!SWIG_IsOK(res1)) {
27301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27302 }
27303 arg1 = reinterpret_cast< wxListItem * >(argp1);
27304 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27305 if (!SWIG_IsOK(ecode2)) {
27306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27307 }
27308 arg2 = static_cast< long >(val2);
27309 if (arg1) (arg1)->m_stateMask = arg2;
27310
27311 resultobj = SWIG_Py_Void();
27312 return resultobj;
27313 fail:
27314 return NULL;
27315 }
27316
27317
27318 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27319 PyObject *resultobj = 0;
27320 wxListItem *arg1 = (wxListItem *) 0 ;
27321 long result;
27322 void *argp1 = 0 ;
27323 int res1 = 0 ;
27324 PyObject *swig_obj[1] ;
27325
27326 if (!args) SWIG_fail;
27327 swig_obj[0] = args;
27328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27329 if (!SWIG_IsOK(res1)) {
27330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27331 }
27332 arg1 = reinterpret_cast< wxListItem * >(argp1);
27333 result = (long) ((arg1)->m_stateMask);
27334 resultobj = SWIG_From_long(static_cast< long >(result));
27335 return resultobj;
27336 fail:
27337 return NULL;
27338 }
27339
27340
27341 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27342 PyObject *resultobj = 0;
27343 wxListItem *arg1 = (wxListItem *) 0 ;
27344 wxString *arg2 = (wxString *) 0 ;
27345 void *argp1 = 0 ;
27346 int res1 = 0 ;
27347 bool temp2 = false ;
27348 PyObject *swig_obj[2] ;
27349
27350 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27352 if (!SWIG_IsOK(res1)) {
27353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27354 }
27355 arg1 = reinterpret_cast< wxListItem * >(argp1);
27356 {
27357 arg2 = wxString_in_helper(swig_obj[1]);
27358 if (arg2 == NULL) SWIG_fail;
27359 temp2 = true;
27360 }
27361 if (arg1) (arg1)->m_text = *arg2;
27362
27363 resultobj = SWIG_Py_Void();
27364 {
27365 if (temp2)
27366 delete arg2;
27367 }
27368 return resultobj;
27369 fail:
27370 {
27371 if (temp2)
27372 delete arg2;
27373 }
27374 return NULL;
27375 }
27376
27377
27378 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27379 PyObject *resultobj = 0;
27380 wxListItem *arg1 = (wxListItem *) 0 ;
27381 wxString *result = 0 ;
27382 void *argp1 = 0 ;
27383 int res1 = 0 ;
27384 PyObject *swig_obj[1] ;
27385
27386 if (!args) SWIG_fail;
27387 swig_obj[0] = args;
27388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27389 if (!SWIG_IsOK(res1)) {
27390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27391 }
27392 arg1 = reinterpret_cast< wxListItem * >(argp1);
27393 result = (wxString *)& ((arg1)->m_text);
27394 {
27395 #if wxUSE_UNICODE
27396 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27397 #else
27398 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27399 #endif
27400 }
27401 return resultobj;
27402 fail:
27403 return NULL;
27404 }
27405
27406
27407 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27408 PyObject *resultobj = 0;
27409 wxListItem *arg1 = (wxListItem *) 0 ;
27410 int arg2 ;
27411 void *argp1 = 0 ;
27412 int res1 = 0 ;
27413 int val2 ;
27414 int ecode2 = 0 ;
27415 PyObject *swig_obj[2] ;
27416
27417 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27419 if (!SWIG_IsOK(res1)) {
27420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27421 }
27422 arg1 = reinterpret_cast< wxListItem * >(argp1);
27423 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27424 if (!SWIG_IsOK(ecode2)) {
27425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27426 }
27427 arg2 = static_cast< int >(val2);
27428 if (arg1) (arg1)->m_image = arg2;
27429
27430 resultobj = SWIG_Py_Void();
27431 return resultobj;
27432 fail:
27433 return NULL;
27434 }
27435
27436
27437 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27438 PyObject *resultobj = 0;
27439 wxListItem *arg1 = (wxListItem *) 0 ;
27440 int result;
27441 void *argp1 = 0 ;
27442 int res1 = 0 ;
27443 PyObject *swig_obj[1] ;
27444
27445 if (!args) SWIG_fail;
27446 swig_obj[0] = args;
27447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27448 if (!SWIG_IsOK(res1)) {
27449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27450 }
27451 arg1 = reinterpret_cast< wxListItem * >(argp1);
27452 result = (int) ((arg1)->m_image);
27453 resultobj = SWIG_From_int(static_cast< int >(result));
27454 return resultobj;
27455 fail:
27456 return NULL;
27457 }
27458
27459
27460 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27461 PyObject *resultobj = 0;
27462 wxListItem *arg1 = (wxListItem *) 0 ;
27463 long arg2 ;
27464 void *argp1 = 0 ;
27465 int res1 = 0 ;
27466 long val2 ;
27467 int ecode2 = 0 ;
27468 PyObject *swig_obj[2] ;
27469
27470 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27472 if (!SWIG_IsOK(res1)) {
27473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27474 }
27475 arg1 = reinterpret_cast< wxListItem * >(argp1);
27476 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27477 if (!SWIG_IsOK(ecode2)) {
27478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27479 }
27480 arg2 = static_cast< long >(val2);
27481 if (arg1) (arg1)->m_data = arg2;
27482
27483 resultobj = SWIG_Py_Void();
27484 return resultobj;
27485 fail:
27486 return NULL;
27487 }
27488
27489
27490 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27491 PyObject *resultobj = 0;
27492 wxListItem *arg1 = (wxListItem *) 0 ;
27493 long result;
27494 void *argp1 = 0 ;
27495 int res1 = 0 ;
27496 PyObject *swig_obj[1] ;
27497
27498 if (!args) SWIG_fail;
27499 swig_obj[0] = args;
27500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27501 if (!SWIG_IsOK(res1)) {
27502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27503 }
27504 arg1 = reinterpret_cast< wxListItem * >(argp1);
27505 result = (long) ((arg1)->m_data);
27506 resultobj = SWIG_From_long(static_cast< long >(result));
27507 return resultobj;
27508 fail:
27509 return NULL;
27510 }
27511
27512
27513 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27514 PyObject *resultobj = 0;
27515 wxListItem *arg1 = (wxListItem *) 0 ;
27516 int arg2 ;
27517 void *argp1 = 0 ;
27518 int res1 = 0 ;
27519 int val2 ;
27520 int ecode2 = 0 ;
27521 PyObject *swig_obj[2] ;
27522
27523 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27525 if (!SWIG_IsOK(res1)) {
27526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27527 }
27528 arg1 = reinterpret_cast< wxListItem * >(argp1);
27529 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27530 if (!SWIG_IsOK(ecode2)) {
27531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27532 }
27533 arg2 = static_cast< int >(val2);
27534 if (arg1) (arg1)->m_format = arg2;
27535
27536 resultobj = SWIG_Py_Void();
27537 return resultobj;
27538 fail:
27539 return NULL;
27540 }
27541
27542
27543 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27544 PyObject *resultobj = 0;
27545 wxListItem *arg1 = (wxListItem *) 0 ;
27546 int result;
27547 void *argp1 = 0 ;
27548 int res1 = 0 ;
27549 PyObject *swig_obj[1] ;
27550
27551 if (!args) SWIG_fail;
27552 swig_obj[0] = args;
27553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27554 if (!SWIG_IsOK(res1)) {
27555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27556 }
27557 arg1 = reinterpret_cast< wxListItem * >(argp1);
27558 result = (int) ((arg1)->m_format);
27559 resultobj = SWIG_From_int(static_cast< int >(result));
27560 return resultobj;
27561 fail:
27562 return NULL;
27563 }
27564
27565
27566 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27567 PyObject *resultobj = 0;
27568 wxListItem *arg1 = (wxListItem *) 0 ;
27569 int arg2 ;
27570 void *argp1 = 0 ;
27571 int res1 = 0 ;
27572 int val2 ;
27573 int ecode2 = 0 ;
27574 PyObject *swig_obj[2] ;
27575
27576 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27578 if (!SWIG_IsOK(res1)) {
27579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27580 }
27581 arg1 = reinterpret_cast< wxListItem * >(argp1);
27582 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27583 if (!SWIG_IsOK(ecode2)) {
27584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27585 }
27586 arg2 = static_cast< int >(val2);
27587 if (arg1) (arg1)->m_width = arg2;
27588
27589 resultobj = SWIG_Py_Void();
27590 return resultobj;
27591 fail:
27592 return NULL;
27593 }
27594
27595
27596 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27597 PyObject *resultobj = 0;
27598 wxListItem *arg1 = (wxListItem *) 0 ;
27599 int result;
27600 void *argp1 = 0 ;
27601 int res1 = 0 ;
27602 PyObject *swig_obj[1] ;
27603
27604 if (!args) SWIG_fail;
27605 swig_obj[0] = args;
27606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27607 if (!SWIG_IsOK(res1)) {
27608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27609 }
27610 arg1 = reinterpret_cast< wxListItem * >(argp1);
27611 result = (int) ((arg1)->m_width);
27612 resultobj = SWIG_From_int(static_cast< int >(result));
27613 return resultobj;
27614 fail:
27615 return NULL;
27616 }
27617
27618
27619 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27620 PyObject *obj;
27621 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27622 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27623 return SWIG_Py_Void();
27624 }
27625
27626 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27627 return SWIG_Python_InitShadowInstance(args);
27628 }
27629
27630 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27631 PyObject *resultobj = 0;
27632 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27633 int arg2 = (int) 0 ;
27634 wxListEvent *result = 0 ;
27635 int val1 ;
27636 int ecode1 = 0 ;
27637 int val2 ;
27638 int ecode2 = 0 ;
27639 PyObject * obj0 = 0 ;
27640 PyObject * obj1 = 0 ;
27641 char * kwnames[] = {
27642 (char *) "commandType",(char *) "id", NULL
27643 };
27644
27645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27646 if (obj0) {
27647 ecode1 = SWIG_AsVal_int(obj0, &val1);
27648 if (!SWIG_IsOK(ecode1)) {
27649 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27650 }
27651 arg1 = static_cast< wxEventType >(val1);
27652 }
27653 if (obj1) {
27654 ecode2 = SWIG_AsVal_int(obj1, &val2);
27655 if (!SWIG_IsOK(ecode2)) {
27656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27657 }
27658 arg2 = static_cast< int >(val2);
27659 }
27660 {
27661 PyThreadState* __tstate = wxPyBeginAllowThreads();
27662 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27663 wxPyEndAllowThreads(__tstate);
27664 if (PyErr_Occurred()) SWIG_fail;
27665 }
27666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27667 return resultobj;
27668 fail:
27669 return NULL;
27670 }
27671
27672
27673 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27674 PyObject *resultobj = 0;
27675 wxListEvent *arg1 = (wxListEvent *) 0 ;
27676 int arg2 ;
27677 void *argp1 = 0 ;
27678 int res1 = 0 ;
27679 int val2 ;
27680 int ecode2 = 0 ;
27681 PyObject *swig_obj[2] ;
27682
27683 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27685 if (!SWIG_IsOK(res1)) {
27686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27687 }
27688 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27689 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27690 if (!SWIG_IsOK(ecode2)) {
27691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27692 }
27693 arg2 = static_cast< int >(val2);
27694 if (arg1) (arg1)->m_code = arg2;
27695
27696 resultobj = SWIG_Py_Void();
27697 return resultobj;
27698 fail:
27699 return NULL;
27700 }
27701
27702
27703 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27704 PyObject *resultobj = 0;
27705 wxListEvent *arg1 = (wxListEvent *) 0 ;
27706 int result;
27707 void *argp1 = 0 ;
27708 int res1 = 0 ;
27709 PyObject *swig_obj[1] ;
27710
27711 if (!args) SWIG_fail;
27712 swig_obj[0] = args;
27713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27714 if (!SWIG_IsOK(res1)) {
27715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27716 }
27717 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27718 result = (int) ((arg1)->m_code);
27719 resultobj = SWIG_From_int(static_cast< int >(result));
27720 return resultobj;
27721 fail:
27722 return NULL;
27723 }
27724
27725
27726 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27727 PyObject *resultobj = 0;
27728 wxListEvent *arg1 = (wxListEvent *) 0 ;
27729 long arg2 ;
27730 void *argp1 = 0 ;
27731 int res1 = 0 ;
27732 long val2 ;
27733 int ecode2 = 0 ;
27734 PyObject *swig_obj[2] ;
27735
27736 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27738 if (!SWIG_IsOK(res1)) {
27739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27740 }
27741 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27742 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27743 if (!SWIG_IsOK(ecode2)) {
27744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27745 }
27746 arg2 = static_cast< long >(val2);
27747 if (arg1) (arg1)->m_oldItemIndex = arg2;
27748
27749 resultobj = SWIG_Py_Void();
27750 return resultobj;
27751 fail:
27752 return NULL;
27753 }
27754
27755
27756 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27757 PyObject *resultobj = 0;
27758 wxListEvent *arg1 = (wxListEvent *) 0 ;
27759 long result;
27760 void *argp1 = 0 ;
27761 int res1 = 0 ;
27762 PyObject *swig_obj[1] ;
27763
27764 if (!args) SWIG_fail;
27765 swig_obj[0] = args;
27766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27767 if (!SWIG_IsOK(res1)) {
27768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27769 }
27770 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27771 result = (long) ((arg1)->m_oldItemIndex);
27772 resultobj = SWIG_From_long(static_cast< long >(result));
27773 return resultobj;
27774 fail:
27775 return NULL;
27776 }
27777
27778
27779 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27780 PyObject *resultobj = 0;
27781 wxListEvent *arg1 = (wxListEvent *) 0 ;
27782 long arg2 ;
27783 void *argp1 = 0 ;
27784 int res1 = 0 ;
27785 long val2 ;
27786 int ecode2 = 0 ;
27787 PyObject *swig_obj[2] ;
27788
27789 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27791 if (!SWIG_IsOK(res1)) {
27792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27793 }
27794 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27795 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27796 if (!SWIG_IsOK(ecode2)) {
27797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27798 }
27799 arg2 = static_cast< long >(val2);
27800 if (arg1) (arg1)->m_itemIndex = arg2;
27801
27802 resultobj = SWIG_Py_Void();
27803 return resultobj;
27804 fail:
27805 return NULL;
27806 }
27807
27808
27809 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27810 PyObject *resultobj = 0;
27811 wxListEvent *arg1 = (wxListEvent *) 0 ;
27812 long result;
27813 void *argp1 = 0 ;
27814 int res1 = 0 ;
27815 PyObject *swig_obj[1] ;
27816
27817 if (!args) SWIG_fail;
27818 swig_obj[0] = args;
27819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27820 if (!SWIG_IsOK(res1)) {
27821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27822 }
27823 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27824 result = (long) ((arg1)->m_itemIndex);
27825 resultobj = SWIG_From_long(static_cast< long >(result));
27826 return resultobj;
27827 fail:
27828 return NULL;
27829 }
27830
27831
27832 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27833 PyObject *resultobj = 0;
27834 wxListEvent *arg1 = (wxListEvent *) 0 ;
27835 int arg2 ;
27836 void *argp1 = 0 ;
27837 int res1 = 0 ;
27838 int val2 ;
27839 int ecode2 = 0 ;
27840 PyObject *swig_obj[2] ;
27841
27842 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27844 if (!SWIG_IsOK(res1)) {
27845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27846 }
27847 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27848 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27849 if (!SWIG_IsOK(ecode2)) {
27850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27851 }
27852 arg2 = static_cast< int >(val2);
27853 if (arg1) (arg1)->m_col = arg2;
27854
27855 resultobj = SWIG_Py_Void();
27856 return resultobj;
27857 fail:
27858 return NULL;
27859 }
27860
27861
27862 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27863 PyObject *resultobj = 0;
27864 wxListEvent *arg1 = (wxListEvent *) 0 ;
27865 int result;
27866 void *argp1 = 0 ;
27867 int res1 = 0 ;
27868 PyObject *swig_obj[1] ;
27869
27870 if (!args) SWIG_fail;
27871 swig_obj[0] = args;
27872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27873 if (!SWIG_IsOK(res1)) {
27874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27875 }
27876 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27877 result = (int) ((arg1)->m_col);
27878 resultobj = SWIG_From_int(static_cast< int >(result));
27879 return resultobj;
27880 fail:
27881 return NULL;
27882 }
27883
27884
27885 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27886 PyObject *resultobj = 0;
27887 wxListEvent *arg1 = (wxListEvent *) 0 ;
27888 wxPoint *arg2 = (wxPoint *) 0 ;
27889 void *argp1 = 0 ;
27890 int res1 = 0 ;
27891 void *argp2 = 0 ;
27892 int res2 = 0 ;
27893 PyObject *swig_obj[2] ;
27894
27895 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27897 if (!SWIG_IsOK(res1)) {
27898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27899 }
27900 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27901 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27902 if (!SWIG_IsOK(res2)) {
27903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27904 }
27905 arg2 = reinterpret_cast< wxPoint * >(argp2);
27906 if (arg1) (arg1)->m_pointDrag = *arg2;
27907
27908 resultobj = SWIG_Py_Void();
27909 return resultobj;
27910 fail:
27911 return NULL;
27912 }
27913
27914
27915 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27916 PyObject *resultobj = 0;
27917 wxListEvent *arg1 = (wxListEvent *) 0 ;
27918 wxPoint *result = 0 ;
27919 void *argp1 = 0 ;
27920 int res1 = 0 ;
27921 PyObject *swig_obj[1] ;
27922
27923 if (!args) SWIG_fail;
27924 swig_obj[0] = args;
27925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27926 if (!SWIG_IsOK(res1)) {
27927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27928 }
27929 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27930 result = (wxPoint *)& ((arg1)->m_pointDrag);
27931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
27932 return resultobj;
27933 fail:
27934 return NULL;
27935 }
27936
27937
27938 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27939 PyObject *resultobj = 0;
27940 wxListEvent *arg1 = (wxListEvent *) 0 ;
27941 wxListItem *result = 0 ;
27942 void *argp1 = 0 ;
27943 int res1 = 0 ;
27944 PyObject *swig_obj[1] ;
27945
27946 if (!args) SWIG_fail;
27947 swig_obj[0] = args;
27948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27949 if (!SWIG_IsOK(res1)) {
27950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27951 }
27952 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27953 result = (wxListItem *)& ((arg1)->m_item);
27954 {
27955 resultobj = wxPyMake_wxObject(result, (bool)0);
27956 }
27957 return resultobj;
27958 fail:
27959 return NULL;
27960 }
27961
27962
27963 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27964 PyObject *resultobj = 0;
27965 wxListEvent *arg1 = (wxListEvent *) 0 ;
27966 int result;
27967 void *argp1 = 0 ;
27968 int res1 = 0 ;
27969 PyObject *swig_obj[1] ;
27970
27971 if (!args) SWIG_fail;
27972 swig_obj[0] = args;
27973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27974 if (!SWIG_IsOK(res1)) {
27975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
27976 }
27977 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27978 {
27979 PyThreadState* __tstate = wxPyBeginAllowThreads();
27980 result = (int)(arg1)->GetKeyCode();
27981 wxPyEndAllowThreads(__tstate);
27982 if (PyErr_Occurred()) SWIG_fail;
27983 }
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_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27992 PyObject *resultobj = 0;
27993 wxListEvent *arg1 = (wxListEvent *) 0 ;
27994 long result;
27995 void *argp1 = 0 ;
27996 int res1 = 0 ;
27997 PyObject *swig_obj[1] ;
27998
27999 if (!args) SWIG_fail;
28000 swig_obj[0] = args;
28001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28002 if (!SWIG_IsOK(res1)) {
28003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28004 }
28005 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28006 {
28007 PyThreadState* __tstate = wxPyBeginAllowThreads();
28008 result = (long)(arg1)->GetIndex();
28009 wxPyEndAllowThreads(__tstate);
28010 if (PyErr_Occurred()) SWIG_fail;
28011 }
28012 resultobj = SWIG_From_long(static_cast< long >(result));
28013 return resultobj;
28014 fail:
28015 return NULL;
28016 }
28017
28018
28019 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28020 PyObject *resultobj = 0;
28021 wxListEvent *arg1 = (wxListEvent *) 0 ;
28022 int result;
28023 void *argp1 = 0 ;
28024 int res1 = 0 ;
28025 PyObject *swig_obj[1] ;
28026
28027 if (!args) SWIG_fail;
28028 swig_obj[0] = args;
28029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28030 if (!SWIG_IsOK(res1)) {
28031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28032 }
28033 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28034 {
28035 PyThreadState* __tstate = wxPyBeginAllowThreads();
28036 result = (int)(arg1)->GetColumn();
28037 wxPyEndAllowThreads(__tstate);
28038 if (PyErr_Occurred()) SWIG_fail;
28039 }
28040 resultobj = SWIG_From_int(static_cast< int >(result));
28041 return resultobj;
28042 fail:
28043 return NULL;
28044 }
28045
28046
28047 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28048 PyObject *resultobj = 0;
28049 wxListEvent *arg1 = (wxListEvent *) 0 ;
28050 wxPoint result;
28051 void *argp1 = 0 ;
28052 int res1 = 0 ;
28053 PyObject *swig_obj[1] ;
28054
28055 if (!args) SWIG_fail;
28056 swig_obj[0] = args;
28057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28058 if (!SWIG_IsOK(res1)) {
28059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28060 }
28061 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28062 {
28063 PyThreadState* __tstate = wxPyBeginAllowThreads();
28064 result = (arg1)->GetPoint();
28065 wxPyEndAllowThreads(__tstate);
28066 if (PyErr_Occurred()) SWIG_fail;
28067 }
28068 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28069 return resultobj;
28070 fail:
28071 return NULL;
28072 }
28073
28074
28075 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28076 PyObject *resultobj = 0;
28077 wxListEvent *arg1 = (wxListEvent *) 0 ;
28078 wxString *result = 0 ;
28079 void *argp1 = 0 ;
28080 int res1 = 0 ;
28081 PyObject *swig_obj[1] ;
28082
28083 if (!args) SWIG_fail;
28084 swig_obj[0] = args;
28085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28086 if (!SWIG_IsOK(res1)) {
28087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28088 }
28089 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28090 {
28091 PyThreadState* __tstate = wxPyBeginAllowThreads();
28092 {
28093 wxString const &_result_ref = (arg1)->GetLabel();
28094 result = (wxString *) &_result_ref;
28095 }
28096 wxPyEndAllowThreads(__tstate);
28097 if (PyErr_Occurred()) SWIG_fail;
28098 }
28099 {
28100 #if wxUSE_UNICODE
28101 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28102 #else
28103 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28104 #endif
28105 }
28106 return resultobj;
28107 fail:
28108 return NULL;
28109 }
28110
28111
28112 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28113 PyObject *resultobj = 0;
28114 wxListEvent *arg1 = (wxListEvent *) 0 ;
28115 wxString *result = 0 ;
28116 void *argp1 = 0 ;
28117 int res1 = 0 ;
28118 PyObject *swig_obj[1] ;
28119
28120 if (!args) SWIG_fail;
28121 swig_obj[0] = args;
28122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28123 if (!SWIG_IsOK(res1)) {
28124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28125 }
28126 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28127 {
28128 PyThreadState* __tstate = wxPyBeginAllowThreads();
28129 {
28130 wxString const &_result_ref = (arg1)->GetText();
28131 result = (wxString *) &_result_ref;
28132 }
28133 wxPyEndAllowThreads(__tstate);
28134 if (PyErr_Occurred()) SWIG_fail;
28135 }
28136 {
28137 #if wxUSE_UNICODE
28138 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28139 #else
28140 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28141 #endif
28142 }
28143 return resultobj;
28144 fail:
28145 return NULL;
28146 }
28147
28148
28149 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28150 PyObject *resultobj = 0;
28151 wxListEvent *arg1 = (wxListEvent *) 0 ;
28152 int result;
28153 void *argp1 = 0 ;
28154 int res1 = 0 ;
28155 PyObject *swig_obj[1] ;
28156
28157 if (!args) SWIG_fail;
28158 swig_obj[0] = args;
28159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28160 if (!SWIG_IsOK(res1)) {
28161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28162 }
28163 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28164 {
28165 PyThreadState* __tstate = wxPyBeginAllowThreads();
28166 result = (int)(arg1)->GetImage();
28167 wxPyEndAllowThreads(__tstate);
28168 if (PyErr_Occurred()) SWIG_fail;
28169 }
28170 resultobj = SWIG_From_int(static_cast< int >(result));
28171 return resultobj;
28172 fail:
28173 return NULL;
28174 }
28175
28176
28177 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28178 PyObject *resultobj = 0;
28179 wxListEvent *arg1 = (wxListEvent *) 0 ;
28180 long result;
28181 void *argp1 = 0 ;
28182 int res1 = 0 ;
28183 PyObject *swig_obj[1] ;
28184
28185 if (!args) SWIG_fail;
28186 swig_obj[0] = args;
28187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28188 if (!SWIG_IsOK(res1)) {
28189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28190 }
28191 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28192 {
28193 PyThreadState* __tstate = wxPyBeginAllowThreads();
28194 result = (long)(arg1)->GetData();
28195 wxPyEndAllowThreads(__tstate);
28196 if (PyErr_Occurred()) SWIG_fail;
28197 }
28198 resultobj = SWIG_From_long(static_cast< long >(result));
28199 return resultobj;
28200 fail:
28201 return NULL;
28202 }
28203
28204
28205 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28206 PyObject *resultobj = 0;
28207 wxListEvent *arg1 = (wxListEvent *) 0 ;
28208 long result;
28209 void *argp1 = 0 ;
28210 int res1 = 0 ;
28211 PyObject *swig_obj[1] ;
28212
28213 if (!args) SWIG_fail;
28214 swig_obj[0] = args;
28215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28216 if (!SWIG_IsOK(res1)) {
28217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28218 }
28219 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28220 {
28221 PyThreadState* __tstate = wxPyBeginAllowThreads();
28222 result = (long)(arg1)->GetMask();
28223 wxPyEndAllowThreads(__tstate);
28224 if (PyErr_Occurred()) SWIG_fail;
28225 }
28226 resultobj = SWIG_From_long(static_cast< long >(result));
28227 return resultobj;
28228 fail:
28229 return NULL;
28230 }
28231
28232
28233 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28234 PyObject *resultobj = 0;
28235 wxListEvent *arg1 = (wxListEvent *) 0 ;
28236 wxListItem *result = 0 ;
28237 void *argp1 = 0 ;
28238 int res1 = 0 ;
28239 PyObject *swig_obj[1] ;
28240
28241 if (!args) SWIG_fail;
28242 swig_obj[0] = args;
28243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28244 if (!SWIG_IsOK(res1)) {
28245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28246 }
28247 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28248 {
28249 PyThreadState* __tstate = wxPyBeginAllowThreads();
28250 {
28251 wxListItem const &_result_ref = (arg1)->GetItem();
28252 result = (wxListItem *) &_result_ref;
28253 }
28254 wxPyEndAllowThreads(__tstate);
28255 if (PyErr_Occurred()) SWIG_fail;
28256 }
28257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28258 return resultobj;
28259 fail:
28260 return NULL;
28261 }
28262
28263
28264 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28265 PyObject *resultobj = 0;
28266 wxListEvent *arg1 = (wxListEvent *) 0 ;
28267 long result;
28268 void *argp1 = 0 ;
28269 int res1 = 0 ;
28270 PyObject *swig_obj[1] ;
28271
28272 if (!args) SWIG_fail;
28273 swig_obj[0] = args;
28274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28275 if (!SWIG_IsOK(res1)) {
28276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28277 }
28278 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28279 {
28280 PyThreadState* __tstate = wxPyBeginAllowThreads();
28281 result = (long)(arg1)->GetCacheFrom();
28282 wxPyEndAllowThreads(__tstate);
28283 if (PyErr_Occurred()) SWIG_fail;
28284 }
28285 resultobj = SWIG_From_long(static_cast< long >(result));
28286 return resultobj;
28287 fail:
28288 return NULL;
28289 }
28290
28291
28292 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28293 PyObject *resultobj = 0;
28294 wxListEvent *arg1 = (wxListEvent *) 0 ;
28295 long result;
28296 void *argp1 = 0 ;
28297 int res1 = 0 ;
28298 PyObject *swig_obj[1] ;
28299
28300 if (!args) SWIG_fail;
28301 swig_obj[0] = args;
28302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28303 if (!SWIG_IsOK(res1)) {
28304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28305 }
28306 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28307 {
28308 PyThreadState* __tstate = wxPyBeginAllowThreads();
28309 result = (long)(arg1)->GetCacheTo();
28310 wxPyEndAllowThreads(__tstate);
28311 if (PyErr_Occurred()) SWIG_fail;
28312 }
28313 resultobj = SWIG_From_long(static_cast< long >(result));
28314 return resultobj;
28315 fail:
28316 return NULL;
28317 }
28318
28319
28320 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28321 PyObject *resultobj = 0;
28322 wxListEvent *arg1 = (wxListEvent *) 0 ;
28323 bool result;
28324 void *argp1 = 0 ;
28325 int res1 = 0 ;
28326 PyObject *swig_obj[1] ;
28327
28328 if (!args) SWIG_fail;
28329 swig_obj[0] = args;
28330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28331 if (!SWIG_IsOK(res1)) {
28332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28333 }
28334 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28335 {
28336 PyThreadState* __tstate = wxPyBeginAllowThreads();
28337 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28338 wxPyEndAllowThreads(__tstate);
28339 if (PyErr_Occurred()) SWIG_fail;
28340 }
28341 {
28342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28343 }
28344 return resultobj;
28345 fail:
28346 return NULL;
28347 }
28348
28349
28350 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28351 PyObject *resultobj = 0;
28352 wxListEvent *arg1 = (wxListEvent *) 0 ;
28353 bool arg2 ;
28354 void *argp1 = 0 ;
28355 int res1 = 0 ;
28356 bool val2 ;
28357 int ecode2 = 0 ;
28358 PyObject * obj0 = 0 ;
28359 PyObject * obj1 = 0 ;
28360 char * kwnames[] = {
28361 (char *) "self",(char *) "editCancelled", NULL
28362 };
28363
28364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28366 if (!SWIG_IsOK(res1)) {
28367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28368 }
28369 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28370 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28371 if (!SWIG_IsOK(ecode2)) {
28372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28373 }
28374 arg2 = static_cast< bool >(val2);
28375 {
28376 PyThreadState* __tstate = wxPyBeginAllowThreads();
28377 (arg1)->SetEditCanceled(arg2);
28378 wxPyEndAllowThreads(__tstate);
28379 if (PyErr_Occurred()) SWIG_fail;
28380 }
28381 resultobj = SWIG_Py_Void();
28382 return resultobj;
28383 fail:
28384 return NULL;
28385 }
28386
28387
28388 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28389 PyObject *obj;
28390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28391 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28392 return SWIG_Py_Void();
28393 }
28394
28395 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28396 return SWIG_Python_InitShadowInstance(args);
28397 }
28398
28399 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28400 PyObject *resultobj = 0;
28401 wxWindow *arg1 = (wxWindow *) 0 ;
28402 int arg2 = (int) -1 ;
28403 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28404 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28405 wxSize const &arg4_defvalue = wxDefaultSize ;
28406 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28407 long arg5 = (long) wxLC_ICON ;
28408 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28409 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28410 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28411 wxString *arg7 = (wxString *) &arg7_defvalue ;
28412 wxPyListCtrl *result = 0 ;
28413 void *argp1 = 0 ;
28414 int res1 = 0 ;
28415 int val2 ;
28416 int ecode2 = 0 ;
28417 wxPoint temp3 ;
28418 wxSize temp4 ;
28419 long val5 ;
28420 int ecode5 = 0 ;
28421 void *argp6 = 0 ;
28422 int res6 = 0 ;
28423 bool temp7 = false ;
28424 PyObject * obj0 = 0 ;
28425 PyObject * obj1 = 0 ;
28426 PyObject * obj2 = 0 ;
28427 PyObject * obj3 = 0 ;
28428 PyObject * obj4 = 0 ;
28429 PyObject * obj5 = 0 ;
28430 PyObject * obj6 = 0 ;
28431 char * kwnames[] = {
28432 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28433 };
28434
28435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28437 if (!SWIG_IsOK(res1)) {
28438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28439 }
28440 arg1 = reinterpret_cast< wxWindow * >(argp1);
28441 if (obj1) {
28442 ecode2 = SWIG_AsVal_int(obj1, &val2);
28443 if (!SWIG_IsOK(ecode2)) {
28444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28445 }
28446 arg2 = static_cast< int >(val2);
28447 }
28448 if (obj2) {
28449 {
28450 arg3 = &temp3;
28451 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28452 }
28453 }
28454 if (obj3) {
28455 {
28456 arg4 = &temp4;
28457 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28458 }
28459 }
28460 if (obj4) {
28461 ecode5 = SWIG_AsVal_long(obj4, &val5);
28462 if (!SWIG_IsOK(ecode5)) {
28463 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28464 }
28465 arg5 = static_cast< long >(val5);
28466 }
28467 if (obj5) {
28468 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28469 if (!SWIG_IsOK(res6)) {
28470 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28471 }
28472 if (!argp6) {
28473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28474 }
28475 arg6 = reinterpret_cast< wxValidator * >(argp6);
28476 }
28477 if (obj6) {
28478 {
28479 arg7 = wxString_in_helper(obj6);
28480 if (arg7 == NULL) SWIG_fail;
28481 temp7 = true;
28482 }
28483 }
28484 {
28485 if (!wxPyCheckForApp()) SWIG_fail;
28486 PyThreadState* __tstate = wxPyBeginAllowThreads();
28487 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28488 wxPyEndAllowThreads(__tstate);
28489 if (PyErr_Occurred()) SWIG_fail;
28490 }
28491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28492 {
28493 if (temp7)
28494 delete arg7;
28495 }
28496 return resultobj;
28497 fail:
28498 {
28499 if (temp7)
28500 delete arg7;
28501 }
28502 return NULL;
28503 }
28504
28505
28506 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28507 PyObject *resultobj = 0;
28508 wxPyListCtrl *result = 0 ;
28509
28510 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28511 {
28512 if (!wxPyCheckForApp()) SWIG_fail;
28513 PyThreadState* __tstate = wxPyBeginAllowThreads();
28514 result = (wxPyListCtrl *)new wxPyListCtrl();
28515 wxPyEndAllowThreads(__tstate);
28516 if (PyErr_Occurred()) SWIG_fail;
28517 }
28518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28519 return resultobj;
28520 fail:
28521 return NULL;
28522 }
28523
28524
28525 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28526 PyObject *resultobj = 0;
28527 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28528 wxWindow *arg2 = (wxWindow *) 0 ;
28529 int arg3 = (int) -1 ;
28530 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28531 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28532 wxSize const &arg5_defvalue = wxDefaultSize ;
28533 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28534 long arg6 = (long) wxLC_ICON ;
28535 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28536 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28537 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28538 wxString *arg8 = (wxString *) &arg8_defvalue ;
28539 bool result;
28540 void *argp1 = 0 ;
28541 int res1 = 0 ;
28542 void *argp2 = 0 ;
28543 int res2 = 0 ;
28544 int val3 ;
28545 int ecode3 = 0 ;
28546 wxPoint temp4 ;
28547 wxSize temp5 ;
28548 long val6 ;
28549 int ecode6 = 0 ;
28550 void *argp7 = 0 ;
28551 int res7 = 0 ;
28552 bool temp8 = false ;
28553 PyObject * obj0 = 0 ;
28554 PyObject * obj1 = 0 ;
28555 PyObject * obj2 = 0 ;
28556 PyObject * obj3 = 0 ;
28557 PyObject * obj4 = 0 ;
28558 PyObject * obj5 = 0 ;
28559 PyObject * obj6 = 0 ;
28560 PyObject * obj7 = 0 ;
28561 char * kwnames[] = {
28562 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28563 };
28564
28565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28567 if (!SWIG_IsOK(res1)) {
28568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28569 }
28570 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28571 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28572 if (!SWIG_IsOK(res2)) {
28573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28574 }
28575 arg2 = reinterpret_cast< wxWindow * >(argp2);
28576 if (obj2) {
28577 ecode3 = SWIG_AsVal_int(obj2, &val3);
28578 if (!SWIG_IsOK(ecode3)) {
28579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28580 }
28581 arg3 = static_cast< int >(val3);
28582 }
28583 if (obj3) {
28584 {
28585 arg4 = &temp4;
28586 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28587 }
28588 }
28589 if (obj4) {
28590 {
28591 arg5 = &temp5;
28592 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28593 }
28594 }
28595 if (obj5) {
28596 ecode6 = SWIG_AsVal_long(obj5, &val6);
28597 if (!SWIG_IsOK(ecode6)) {
28598 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28599 }
28600 arg6 = static_cast< long >(val6);
28601 }
28602 if (obj6) {
28603 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28604 if (!SWIG_IsOK(res7)) {
28605 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28606 }
28607 if (!argp7) {
28608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28609 }
28610 arg7 = reinterpret_cast< wxValidator * >(argp7);
28611 }
28612 if (obj7) {
28613 {
28614 arg8 = wxString_in_helper(obj7);
28615 if (arg8 == NULL) SWIG_fail;
28616 temp8 = true;
28617 }
28618 }
28619 {
28620 PyThreadState* __tstate = wxPyBeginAllowThreads();
28621 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28622 wxPyEndAllowThreads(__tstate);
28623 if (PyErr_Occurred()) SWIG_fail;
28624 }
28625 {
28626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28627 }
28628 {
28629 if (temp8)
28630 delete arg8;
28631 }
28632 return resultobj;
28633 fail:
28634 {
28635 if (temp8)
28636 delete arg8;
28637 }
28638 return NULL;
28639 }
28640
28641
28642 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28643 PyObject *resultobj = 0;
28644 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28645 PyObject *arg2 = (PyObject *) 0 ;
28646 PyObject *arg3 = (PyObject *) 0 ;
28647 void *argp1 = 0 ;
28648 int res1 = 0 ;
28649 PyObject * obj0 = 0 ;
28650 PyObject * obj1 = 0 ;
28651 PyObject * obj2 = 0 ;
28652 char * kwnames[] = {
28653 (char *) "self",(char *) "self",(char *) "_class", NULL
28654 };
28655
28656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28658 if (!SWIG_IsOK(res1)) {
28659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28660 }
28661 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28662 arg2 = obj1;
28663 arg3 = obj2;
28664 {
28665 PyThreadState* __tstate = wxPyBeginAllowThreads();
28666 (arg1)->_setCallbackInfo(arg2,arg3);
28667 wxPyEndAllowThreads(__tstate);
28668 if (PyErr_Occurred()) SWIG_fail;
28669 }
28670 resultobj = SWIG_Py_Void();
28671 return resultobj;
28672 fail:
28673 return NULL;
28674 }
28675
28676
28677 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28678 PyObject *resultobj = 0;
28679 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28680 int arg2 ;
28681 wxListItem *result = 0 ;
28682 void *argp1 = 0 ;
28683 int res1 = 0 ;
28684 int val2 ;
28685 int ecode2 = 0 ;
28686 PyObject * obj0 = 0 ;
28687 PyObject * obj1 = 0 ;
28688 char * kwnames[] = {
28689 (char *) "self",(char *) "col", NULL
28690 };
28691
28692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28694 if (!SWIG_IsOK(res1)) {
28695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28696 }
28697 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28698 ecode2 = SWIG_AsVal_int(obj1, &val2);
28699 if (!SWIG_IsOK(ecode2)) {
28700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28701 }
28702 arg2 = static_cast< int >(val2);
28703 {
28704 PyThreadState* __tstate = wxPyBeginAllowThreads();
28705 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28706 wxPyEndAllowThreads(__tstate);
28707 if (PyErr_Occurred()) SWIG_fail;
28708 }
28709 {
28710 resultobj = wxPyMake_wxObject(result, (bool)0);
28711 }
28712 return resultobj;
28713 fail:
28714 return NULL;
28715 }
28716
28717
28718 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28719 PyObject *resultobj = 0;
28720 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28721 int arg2 ;
28722 wxListItem *arg3 = 0 ;
28723 bool result;
28724 void *argp1 = 0 ;
28725 int res1 = 0 ;
28726 int val2 ;
28727 int ecode2 = 0 ;
28728 void *argp3 = 0 ;
28729 int res3 = 0 ;
28730 PyObject * obj0 = 0 ;
28731 PyObject * obj1 = 0 ;
28732 PyObject * obj2 = 0 ;
28733 char * kwnames[] = {
28734 (char *) "self",(char *) "col",(char *) "item", NULL
28735 };
28736
28737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28739 if (!SWIG_IsOK(res1)) {
28740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28741 }
28742 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28743 ecode2 = SWIG_AsVal_int(obj1, &val2);
28744 if (!SWIG_IsOK(ecode2)) {
28745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28746 }
28747 arg2 = static_cast< int >(val2);
28748 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28749 if (!SWIG_IsOK(res3)) {
28750 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28751 }
28752 if (!argp3) {
28753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28754 }
28755 arg3 = reinterpret_cast< wxListItem * >(argp3);
28756 {
28757 PyThreadState* __tstate = wxPyBeginAllowThreads();
28758 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28759 wxPyEndAllowThreads(__tstate);
28760 if (PyErr_Occurred()) SWIG_fail;
28761 }
28762 {
28763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28764 }
28765 return resultobj;
28766 fail:
28767 return NULL;
28768 }
28769
28770
28771 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28772 PyObject *resultobj = 0;
28773 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28774 int arg2 ;
28775 int result;
28776 void *argp1 = 0 ;
28777 int res1 = 0 ;
28778 int val2 ;
28779 int ecode2 = 0 ;
28780 PyObject * obj0 = 0 ;
28781 PyObject * obj1 = 0 ;
28782 char * kwnames[] = {
28783 (char *) "self",(char *) "col", NULL
28784 };
28785
28786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28788 if (!SWIG_IsOK(res1)) {
28789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28790 }
28791 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28792 ecode2 = SWIG_AsVal_int(obj1, &val2);
28793 if (!SWIG_IsOK(ecode2)) {
28794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28795 }
28796 arg2 = static_cast< int >(val2);
28797 {
28798 PyThreadState* __tstate = wxPyBeginAllowThreads();
28799 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28800 wxPyEndAllowThreads(__tstate);
28801 if (PyErr_Occurred()) SWIG_fail;
28802 }
28803 resultobj = SWIG_From_int(static_cast< int >(result));
28804 return resultobj;
28805 fail:
28806 return NULL;
28807 }
28808
28809
28810 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28811 PyObject *resultobj = 0;
28812 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28813 int arg2 ;
28814 int arg3 ;
28815 bool result;
28816 void *argp1 = 0 ;
28817 int res1 = 0 ;
28818 int val2 ;
28819 int ecode2 = 0 ;
28820 int val3 ;
28821 int ecode3 = 0 ;
28822 PyObject * obj0 = 0 ;
28823 PyObject * obj1 = 0 ;
28824 PyObject * obj2 = 0 ;
28825 char * kwnames[] = {
28826 (char *) "self",(char *) "col",(char *) "width", NULL
28827 };
28828
28829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28831 if (!SWIG_IsOK(res1)) {
28832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28833 }
28834 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28835 ecode2 = SWIG_AsVal_int(obj1, &val2);
28836 if (!SWIG_IsOK(ecode2)) {
28837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28838 }
28839 arg2 = static_cast< int >(val2);
28840 ecode3 = SWIG_AsVal_int(obj2, &val3);
28841 if (!SWIG_IsOK(ecode3)) {
28842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28843 }
28844 arg3 = static_cast< int >(val3);
28845 {
28846 PyThreadState* __tstate = wxPyBeginAllowThreads();
28847 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28848 wxPyEndAllowThreads(__tstate);
28849 if (PyErr_Occurred()) SWIG_fail;
28850 }
28851 {
28852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28853 }
28854 return resultobj;
28855 fail:
28856 return NULL;
28857 }
28858
28859
28860 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28861 PyObject *resultobj = 0;
28862 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28863 int result;
28864 void *argp1 = 0 ;
28865 int res1 = 0 ;
28866 PyObject *swig_obj[1] ;
28867
28868 if (!args) SWIG_fail;
28869 swig_obj[0] = args;
28870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28871 if (!SWIG_IsOK(res1)) {
28872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28873 }
28874 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28875 {
28876 PyThreadState* __tstate = wxPyBeginAllowThreads();
28877 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28878 wxPyEndAllowThreads(__tstate);
28879 if (PyErr_Occurred()) SWIG_fail;
28880 }
28881 resultobj = SWIG_From_int(static_cast< int >(result));
28882 return resultobj;
28883 fail:
28884 return NULL;
28885 }
28886
28887
28888 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28889 PyObject *resultobj = 0;
28890 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28891 wxRect result;
28892 void *argp1 = 0 ;
28893 int res1 = 0 ;
28894 PyObject *swig_obj[1] ;
28895
28896 if (!args) SWIG_fail;
28897 swig_obj[0] = args;
28898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28899 if (!SWIG_IsOK(res1)) {
28900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28901 }
28902 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28903 {
28904 PyThreadState* __tstate = wxPyBeginAllowThreads();
28905 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28906 wxPyEndAllowThreads(__tstate);
28907 if (PyErr_Occurred()) SWIG_fail;
28908 }
28909 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28910 return resultobj;
28911 fail:
28912 return NULL;
28913 }
28914
28915
28916 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28917 PyObject *resultobj = 0;
28918 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28919 wxTextCtrl *result = 0 ;
28920 void *argp1 = 0 ;
28921 int res1 = 0 ;
28922 PyObject *swig_obj[1] ;
28923
28924 if (!args) SWIG_fail;
28925 swig_obj[0] = args;
28926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28927 if (!SWIG_IsOK(res1)) {
28928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28929 }
28930 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28931 {
28932 PyThreadState* __tstate = wxPyBeginAllowThreads();
28933 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
28934 wxPyEndAllowThreads(__tstate);
28935 if (PyErr_Occurred()) SWIG_fail;
28936 }
28937 {
28938 resultobj = wxPyMake_wxObject(result, 0);
28939 }
28940 return resultobj;
28941 fail:
28942 return NULL;
28943 }
28944
28945
28946 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28947 PyObject *resultobj = 0;
28948 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28949 long arg2 ;
28950 int arg3 = (int) 0 ;
28951 wxListItem *result = 0 ;
28952 void *argp1 = 0 ;
28953 int res1 = 0 ;
28954 long val2 ;
28955 int ecode2 = 0 ;
28956 int val3 ;
28957 int ecode3 = 0 ;
28958 PyObject * obj0 = 0 ;
28959 PyObject * obj1 = 0 ;
28960 PyObject * obj2 = 0 ;
28961 char * kwnames[] = {
28962 (char *) "self",(char *) "itemId",(char *) "col", NULL
28963 };
28964
28965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28967 if (!SWIG_IsOK(res1)) {
28968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28969 }
28970 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28971 ecode2 = SWIG_AsVal_long(obj1, &val2);
28972 if (!SWIG_IsOK(ecode2)) {
28973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
28974 }
28975 arg2 = static_cast< long >(val2);
28976 if (obj2) {
28977 ecode3 = SWIG_AsVal_int(obj2, &val3);
28978 if (!SWIG_IsOK(ecode3)) {
28979 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
28980 }
28981 arg3 = static_cast< int >(val3);
28982 }
28983 {
28984 PyThreadState* __tstate = wxPyBeginAllowThreads();
28985 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
28986 wxPyEndAllowThreads(__tstate);
28987 if (PyErr_Occurred()) SWIG_fail;
28988 }
28989 {
28990 resultobj = wxPyMake_wxObject(result, (bool)0);
28991 }
28992 return resultobj;
28993 fail:
28994 return NULL;
28995 }
28996
28997
28998 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28999 PyObject *resultobj = 0;
29000 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29001 wxListItem *arg2 = 0 ;
29002 bool result;
29003 void *argp1 = 0 ;
29004 int res1 = 0 ;
29005 void *argp2 = 0 ;
29006 int res2 = 0 ;
29007 PyObject * obj0 = 0 ;
29008 PyObject * obj1 = 0 ;
29009 char * kwnames[] = {
29010 (char *) "self",(char *) "info", NULL
29011 };
29012
29013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29015 if (!SWIG_IsOK(res1)) {
29016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29017 }
29018 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29019 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29020 if (!SWIG_IsOK(res2)) {
29021 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29022 }
29023 if (!argp2) {
29024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29025 }
29026 arg2 = reinterpret_cast< wxListItem * >(argp2);
29027 {
29028 PyThreadState* __tstate = wxPyBeginAllowThreads();
29029 result = (bool)(arg1)->SetItem(*arg2);
29030 wxPyEndAllowThreads(__tstate);
29031 if (PyErr_Occurred()) SWIG_fail;
29032 }
29033 {
29034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29035 }
29036 return resultobj;
29037 fail:
29038 return NULL;
29039 }
29040
29041
29042 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29043 PyObject *resultobj = 0;
29044 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29045 long arg2 ;
29046 int arg3 ;
29047 wxString *arg4 = 0 ;
29048 int arg5 = (int) -1 ;
29049 long result;
29050 void *argp1 = 0 ;
29051 int res1 = 0 ;
29052 long val2 ;
29053 int ecode2 = 0 ;
29054 int val3 ;
29055 int ecode3 = 0 ;
29056 bool temp4 = false ;
29057 int val5 ;
29058 int ecode5 = 0 ;
29059 PyObject * obj0 = 0 ;
29060 PyObject * obj1 = 0 ;
29061 PyObject * obj2 = 0 ;
29062 PyObject * obj3 = 0 ;
29063 PyObject * obj4 = 0 ;
29064 char * kwnames[] = {
29065 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29066 };
29067
29068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29070 if (!SWIG_IsOK(res1)) {
29071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29072 }
29073 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29074 ecode2 = SWIG_AsVal_long(obj1, &val2);
29075 if (!SWIG_IsOK(ecode2)) {
29076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29077 }
29078 arg2 = static_cast< long >(val2);
29079 ecode3 = SWIG_AsVal_int(obj2, &val3);
29080 if (!SWIG_IsOK(ecode3)) {
29081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29082 }
29083 arg3 = static_cast< int >(val3);
29084 {
29085 arg4 = wxString_in_helper(obj3);
29086 if (arg4 == NULL) SWIG_fail;
29087 temp4 = true;
29088 }
29089 if (obj4) {
29090 ecode5 = SWIG_AsVal_int(obj4, &val5);
29091 if (!SWIG_IsOK(ecode5)) {
29092 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29093 }
29094 arg5 = static_cast< int >(val5);
29095 }
29096 {
29097 PyThreadState* __tstate = wxPyBeginAllowThreads();
29098 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29099 wxPyEndAllowThreads(__tstate);
29100 if (PyErr_Occurred()) SWIG_fail;
29101 }
29102 resultobj = SWIG_From_long(static_cast< long >(result));
29103 {
29104 if (temp4)
29105 delete arg4;
29106 }
29107 return resultobj;
29108 fail:
29109 {
29110 if (temp4)
29111 delete arg4;
29112 }
29113 return NULL;
29114 }
29115
29116
29117 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29118 PyObject *resultobj = 0;
29119 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29120 long arg2 ;
29121 long arg3 ;
29122 int result;
29123 void *argp1 = 0 ;
29124 int res1 = 0 ;
29125 long val2 ;
29126 int ecode2 = 0 ;
29127 long val3 ;
29128 int ecode3 = 0 ;
29129 PyObject * obj0 = 0 ;
29130 PyObject * obj1 = 0 ;
29131 PyObject * obj2 = 0 ;
29132 char * kwnames[] = {
29133 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29134 };
29135
29136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29138 if (!SWIG_IsOK(res1)) {
29139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29140 }
29141 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29142 ecode2 = SWIG_AsVal_long(obj1, &val2);
29143 if (!SWIG_IsOK(ecode2)) {
29144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29145 }
29146 arg2 = static_cast< long >(val2);
29147 ecode3 = SWIG_AsVal_long(obj2, &val3);
29148 if (!SWIG_IsOK(ecode3)) {
29149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29150 }
29151 arg3 = static_cast< long >(val3);
29152 {
29153 PyThreadState* __tstate = wxPyBeginAllowThreads();
29154 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29155 wxPyEndAllowThreads(__tstate);
29156 if (PyErr_Occurred()) SWIG_fail;
29157 }
29158 resultobj = SWIG_From_int(static_cast< int >(result));
29159 return resultobj;
29160 fail:
29161 return NULL;
29162 }
29163
29164
29165 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29166 PyObject *resultobj = 0;
29167 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29168 long arg2 ;
29169 long arg3 ;
29170 long arg4 ;
29171 bool result;
29172 void *argp1 = 0 ;
29173 int res1 = 0 ;
29174 long val2 ;
29175 int ecode2 = 0 ;
29176 long val3 ;
29177 int ecode3 = 0 ;
29178 long val4 ;
29179 int ecode4 = 0 ;
29180 PyObject * obj0 = 0 ;
29181 PyObject * obj1 = 0 ;
29182 PyObject * obj2 = 0 ;
29183 PyObject * obj3 = 0 ;
29184 char * kwnames[] = {
29185 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29186 };
29187
29188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29190 if (!SWIG_IsOK(res1)) {
29191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29192 }
29193 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29194 ecode2 = SWIG_AsVal_long(obj1, &val2);
29195 if (!SWIG_IsOK(ecode2)) {
29196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29197 }
29198 arg2 = static_cast< long >(val2);
29199 ecode3 = SWIG_AsVal_long(obj2, &val3);
29200 if (!SWIG_IsOK(ecode3)) {
29201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29202 }
29203 arg3 = static_cast< long >(val3);
29204 ecode4 = SWIG_AsVal_long(obj3, &val4);
29205 if (!SWIG_IsOK(ecode4)) {
29206 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29207 }
29208 arg4 = static_cast< long >(val4);
29209 {
29210 PyThreadState* __tstate = wxPyBeginAllowThreads();
29211 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29212 wxPyEndAllowThreads(__tstate);
29213 if (PyErr_Occurred()) SWIG_fail;
29214 }
29215 {
29216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29217 }
29218 return resultobj;
29219 fail:
29220 return NULL;
29221 }
29222
29223
29224 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29225 PyObject *resultobj = 0;
29226 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29227 long arg2 ;
29228 int arg3 ;
29229 int arg4 = (int) -1 ;
29230 bool result;
29231 void *argp1 = 0 ;
29232 int res1 = 0 ;
29233 long val2 ;
29234 int ecode2 = 0 ;
29235 int val3 ;
29236 int ecode3 = 0 ;
29237 int val4 ;
29238 int ecode4 = 0 ;
29239 PyObject * obj0 = 0 ;
29240 PyObject * obj1 = 0 ;
29241 PyObject * obj2 = 0 ;
29242 PyObject * obj3 = 0 ;
29243 char * kwnames[] = {
29244 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29245 };
29246
29247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29249 if (!SWIG_IsOK(res1)) {
29250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29251 }
29252 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29253 ecode2 = SWIG_AsVal_long(obj1, &val2);
29254 if (!SWIG_IsOK(ecode2)) {
29255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29256 }
29257 arg2 = static_cast< long >(val2);
29258 ecode3 = SWIG_AsVal_int(obj2, &val3);
29259 if (!SWIG_IsOK(ecode3)) {
29260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29261 }
29262 arg3 = static_cast< int >(val3);
29263 if (obj3) {
29264 ecode4 = SWIG_AsVal_int(obj3, &val4);
29265 if (!SWIG_IsOK(ecode4)) {
29266 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29267 }
29268 arg4 = static_cast< int >(val4);
29269 }
29270 {
29271 PyThreadState* __tstate = wxPyBeginAllowThreads();
29272 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29273 wxPyEndAllowThreads(__tstate);
29274 if (PyErr_Occurred()) SWIG_fail;
29275 }
29276 {
29277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29278 }
29279 return resultobj;
29280 fail:
29281 return NULL;
29282 }
29283
29284
29285 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29286 PyObject *resultobj = 0;
29287 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29288 long arg2 ;
29289 long arg3 ;
29290 int arg4 ;
29291 bool result;
29292 void *argp1 = 0 ;
29293 int res1 = 0 ;
29294 long val2 ;
29295 int ecode2 = 0 ;
29296 long val3 ;
29297 int ecode3 = 0 ;
29298 int val4 ;
29299 int ecode4 = 0 ;
29300 PyObject * obj0 = 0 ;
29301 PyObject * obj1 = 0 ;
29302 PyObject * obj2 = 0 ;
29303 PyObject * obj3 = 0 ;
29304 char * kwnames[] = {
29305 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29306 };
29307
29308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29310 if (!SWIG_IsOK(res1)) {
29311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29312 }
29313 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29314 ecode2 = SWIG_AsVal_long(obj1, &val2);
29315 if (!SWIG_IsOK(ecode2)) {
29316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29317 }
29318 arg2 = static_cast< long >(val2);
29319 ecode3 = SWIG_AsVal_long(obj2, &val3);
29320 if (!SWIG_IsOK(ecode3)) {
29321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29322 }
29323 arg3 = static_cast< long >(val3);
29324 ecode4 = SWIG_AsVal_int(obj3, &val4);
29325 if (!SWIG_IsOK(ecode4)) {
29326 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29327 }
29328 arg4 = static_cast< int >(val4);
29329 {
29330 PyThreadState* __tstate = wxPyBeginAllowThreads();
29331 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29332 wxPyEndAllowThreads(__tstate);
29333 if (PyErr_Occurred()) SWIG_fail;
29334 }
29335 {
29336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29337 }
29338 return resultobj;
29339 fail:
29340 return NULL;
29341 }
29342
29343
29344 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29345 PyObject *resultobj = 0;
29346 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29347 long arg2 ;
29348 wxString result;
29349 void *argp1 = 0 ;
29350 int res1 = 0 ;
29351 long val2 ;
29352 int ecode2 = 0 ;
29353 PyObject * obj0 = 0 ;
29354 PyObject * obj1 = 0 ;
29355 char * kwnames[] = {
29356 (char *) "self",(char *) "item", NULL
29357 };
29358
29359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29361 if (!SWIG_IsOK(res1)) {
29362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29363 }
29364 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29365 ecode2 = SWIG_AsVal_long(obj1, &val2);
29366 if (!SWIG_IsOK(ecode2)) {
29367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29368 }
29369 arg2 = static_cast< long >(val2);
29370 {
29371 PyThreadState* __tstate = wxPyBeginAllowThreads();
29372 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29373 wxPyEndAllowThreads(__tstate);
29374 if (PyErr_Occurred()) SWIG_fail;
29375 }
29376 {
29377 #if wxUSE_UNICODE
29378 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29379 #else
29380 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29381 #endif
29382 }
29383 return resultobj;
29384 fail:
29385 return NULL;
29386 }
29387
29388
29389 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29390 PyObject *resultobj = 0;
29391 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29392 long arg2 ;
29393 wxString *arg3 = 0 ;
29394 void *argp1 = 0 ;
29395 int res1 = 0 ;
29396 long val2 ;
29397 int ecode2 = 0 ;
29398 bool temp3 = false ;
29399 PyObject * obj0 = 0 ;
29400 PyObject * obj1 = 0 ;
29401 PyObject * obj2 = 0 ;
29402 char * kwnames[] = {
29403 (char *) "self",(char *) "item",(char *) "str", NULL
29404 };
29405
29406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29408 if (!SWIG_IsOK(res1)) {
29409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29410 }
29411 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29412 ecode2 = SWIG_AsVal_long(obj1, &val2);
29413 if (!SWIG_IsOK(ecode2)) {
29414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29415 }
29416 arg2 = static_cast< long >(val2);
29417 {
29418 arg3 = wxString_in_helper(obj2);
29419 if (arg3 == NULL) SWIG_fail;
29420 temp3 = true;
29421 }
29422 {
29423 PyThreadState* __tstate = wxPyBeginAllowThreads();
29424 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29425 wxPyEndAllowThreads(__tstate);
29426 if (PyErr_Occurred()) SWIG_fail;
29427 }
29428 resultobj = SWIG_Py_Void();
29429 {
29430 if (temp3)
29431 delete arg3;
29432 }
29433 return resultobj;
29434 fail:
29435 {
29436 if (temp3)
29437 delete arg3;
29438 }
29439 return NULL;
29440 }
29441
29442
29443 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29444 PyObject *resultobj = 0;
29445 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29446 long arg2 ;
29447 long result;
29448 void *argp1 = 0 ;
29449 int res1 = 0 ;
29450 long val2 ;
29451 int ecode2 = 0 ;
29452 PyObject * obj0 = 0 ;
29453 PyObject * obj1 = 0 ;
29454 char * kwnames[] = {
29455 (char *) "self",(char *) "item", NULL
29456 };
29457
29458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29460 if (!SWIG_IsOK(res1)) {
29461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29462 }
29463 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29464 ecode2 = SWIG_AsVal_long(obj1, &val2);
29465 if (!SWIG_IsOK(ecode2)) {
29466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29467 }
29468 arg2 = static_cast< long >(val2);
29469 {
29470 PyThreadState* __tstate = wxPyBeginAllowThreads();
29471 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29472 wxPyEndAllowThreads(__tstate);
29473 if (PyErr_Occurred()) SWIG_fail;
29474 }
29475 resultobj = SWIG_From_long(static_cast< long >(result));
29476 return resultobj;
29477 fail:
29478 return NULL;
29479 }
29480
29481
29482 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29483 PyObject *resultobj = 0;
29484 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29485 long arg2 ;
29486 long arg3 ;
29487 bool result;
29488 void *argp1 = 0 ;
29489 int res1 = 0 ;
29490 long val2 ;
29491 int ecode2 = 0 ;
29492 long val3 ;
29493 int ecode3 = 0 ;
29494 PyObject * obj0 = 0 ;
29495 PyObject * obj1 = 0 ;
29496 PyObject * obj2 = 0 ;
29497 char * kwnames[] = {
29498 (char *) "self",(char *) "item",(char *) "data", NULL
29499 };
29500
29501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29503 if (!SWIG_IsOK(res1)) {
29504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29505 }
29506 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29507 ecode2 = SWIG_AsVal_long(obj1, &val2);
29508 if (!SWIG_IsOK(ecode2)) {
29509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29510 }
29511 arg2 = static_cast< long >(val2);
29512 ecode3 = SWIG_AsVal_long(obj2, &val3);
29513 if (!SWIG_IsOK(ecode3)) {
29514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29515 }
29516 arg3 = static_cast< long >(val3);
29517 {
29518 PyThreadState* __tstate = wxPyBeginAllowThreads();
29519 result = (bool)(arg1)->SetItemData(arg2,arg3);
29520 wxPyEndAllowThreads(__tstate);
29521 if (PyErr_Occurred()) SWIG_fail;
29522 }
29523 {
29524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29525 }
29526 return resultobj;
29527 fail:
29528 return NULL;
29529 }
29530
29531
29532 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29533 PyObject *resultobj = 0;
29534 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29535 long arg2 ;
29536 wxPoint result;
29537 void *argp1 = 0 ;
29538 int res1 = 0 ;
29539 long val2 ;
29540 int ecode2 = 0 ;
29541 PyObject * obj0 = 0 ;
29542 PyObject * obj1 = 0 ;
29543 char * kwnames[] = {
29544 (char *) "self",(char *) "item", NULL
29545 };
29546
29547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29549 if (!SWIG_IsOK(res1)) {
29550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29551 }
29552 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29553 ecode2 = SWIG_AsVal_long(obj1, &val2);
29554 if (!SWIG_IsOK(ecode2)) {
29555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29556 }
29557 arg2 = static_cast< long >(val2);
29558 {
29559 PyThreadState* __tstate = wxPyBeginAllowThreads();
29560 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29561 wxPyEndAllowThreads(__tstate);
29562 if (PyErr_Occurred()) SWIG_fail;
29563 }
29564 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29565 return resultobj;
29566 fail:
29567 return NULL;
29568 }
29569
29570
29571 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29572 PyObject *resultobj = 0;
29573 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29574 long arg2 ;
29575 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29576 wxRect result;
29577 void *argp1 = 0 ;
29578 int res1 = 0 ;
29579 long val2 ;
29580 int ecode2 = 0 ;
29581 int val3 ;
29582 int ecode3 = 0 ;
29583 PyObject * obj0 = 0 ;
29584 PyObject * obj1 = 0 ;
29585 PyObject * obj2 = 0 ;
29586 char * kwnames[] = {
29587 (char *) "self",(char *) "item",(char *) "code", NULL
29588 };
29589
29590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29592 if (!SWIG_IsOK(res1)) {
29593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29594 }
29595 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29596 ecode2 = SWIG_AsVal_long(obj1, &val2);
29597 if (!SWIG_IsOK(ecode2)) {
29598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29599 }
29600 arg2 = static_cast< long >(val2);
29601 if (obj2) {
29602 ecode3 = SWIG_AsVal_int(obj2, &val3);
29603 if (!SWIG_IsOK(ecode3)) {
29604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29605 }
29606 arg3 = static_cast< int >(val3);
29607 }
29608 {
29609 PyThreadState* __tstate = wxPyBeginAllowThreads();
29610 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29611 wxPyEndAllowThreads(__tstate);
29612 if (PyErr_Occurred()) SWIG_fail;
29613 }
29614 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29615 return resultobj;
29616 fail:
29617 return NULL;
29618 }
29619
29620
29621 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29622 PyObject *resultobj = 0;
29623 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29624 long arg2 ;
29625 wxPoint *arg3 = 0 ;
29626 bool result;
29627 void *argp1 = 0 ;
29628 int res1 = 0 ;
29629 long val2 ;
29630 int ecode2 = 0 ;
29631 wxPoint temp3 ;
29632 PyObject * obj0 = 0 ;
29633 PyObject * obj1 = 0 ;
29634 PyObject * obj2 = 0 ;
29635 char * kwnames[] = {
29636 (char *) "self",(char *) "item",(char *) "pos", NULL
29637 };
29638
29639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29641 if (!SWIG_IsOK(res1)) {
29642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29643 }
29644 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29645 ecode2 = SWIG_AsVal_long(obj1, &val2);
29646 if (!SWIG_IsOK(ecode2)) {
29647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29648 }
29649 arg2 = static_cast< long >(val2);
29650 {
29651 arg3 = &temp3;
29652 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29653 }
29654 {
29655 PyThreadState* __tstate = wxPyBeginAllowThreads();
29656 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29657 wxPyEndAllowThreads(__tstate);
29658 if (PyErr_Occurred()) SWIG_fail;
29659 }
29660 {
29661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29662 }
29663 return resultobj;
29664 fail:
29665 return NULL;
29666 }
29667
29668
29669 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29670 PyObject *resultobj = 0;
29671 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29672 int result;
29673 void *argp1 = 0 ;
29674 int res1 = 0 ;
29675 PyObject *swig_obj[1] ;
29676
29677 if (!args) SWIG_fail;
29678 swig_obj[0] = args;
29679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29680 if (!SWIG_IsOK(res1)) {
29681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29682 }
29683 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29684 {
29685 PyThreadState* __tstate = wxPyBeginAllowThreads();
29686 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29687 wxPyEndAllowThreads(__tstate);
29688 if (PyErr_Occurred()) SWIG_fail;
29689 }
29690 resultobj = SWIG_From_int(static_cast< int >(result));
29691 return resultobj;
29692 fail:
29693 return NULL;
29694 }
29695
29696
29697 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29698 PyObject *resultobj = 0;
29699 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29700 int result;
29701 void *argp1 = 0 ;
29702 int res1 = 0 ;
29703 PyObject *swig_obj[1] ;
29704
29705 if (!args) SWIG_fail;
29706 swig_obj[0] = args;
29707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29708 if (!SWIG_IsOK(res1)) {
29709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29710 }
29711 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29712 {
29713 PyThreadState* __tstate = wxPyBeginAllowThreads();
29714 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29715 wxPyEndAllowThreads(__tstate);
29716 if (PyErr_Occurred()) SWIG_fail;
29717 }
29718 resultobj = SWIG_From_int(static_cast< int >(result));
29719 return resultobj;
29720 fail:
29721 return NULL;
29722 }
29723
29724
29725 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29726 PyObject *resultobj = 0;
29727 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29728 wxSize result;
29729 void *argp1 = 0 ;
29730 int res1 = 0 ;
29731 PyObject *swig_obj[1] ;
29732
29733 if (!args) SWIG_fail;
29734 swig_obj[0] = args;
29735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29736 if (!SWIG_IsOK(res1)) {
29737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29738 }
29739 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29740 {
29741 PyThreadState* __tstate = wxPyBeginAllowThreads();
29742 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29743 wxPyEndAllowThreads(__tstate);
29744 if (PyErr_Occurred()) SWIG_fail;
29745 }
29746 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29747 return resultobj;
29748 fail:
29749 return NULL;
29750 }
29751
29752
29753 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29754 PyObject *resultobj = 0;
29755 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29756 int arg2 ;
29757 bool arg3 = (bool) false ;
29758 void *argp1 = 0 ;
29759 int res1 = 0 ;
29760 int val2 ;
29761 int ecode2 = 0 ;
29762 bool val3 ;
29763 int ecode3 = 0 ;
29764 PyObject * obj0 = 0 ;
29765 PyObject * obj1 = 0 ;
29766 PyObject * obj2 = 0 ;
29767 char * kwnames[] = {
29768 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29769 };
29770
29771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29773 if (!SWIG_IsOK(res1)) {
29774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29775 }
29776 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29777 ecode2 = SWIG_AsVal_int(obj1, &val2);
29778 if (!SWIG_IsOK(ecode2)) {
29779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29780 }
29781 arg2 = static_cast< int >(val2);
29782 if (obj2) {
29783 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29784 if (!SWIG_IsOK(ecode3)) {
29785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29786 }
29787 arg3 = static_cast< bool >(val3);
29788 }
29789 {
29790 PyThreadState* __tstate = wxPyBeginAllowThreads();
29791 (arg1)->SetItemSpacing(arg2,arg3);
29792 wxPyEndAllowThreads(__tstate);
29793 if (PyErr_Occurred()) SWIG_fail;
29794 }
29795 resultobj = SWIG_Py_Void();
29796 return resultobj;
29797 fail:
29798 return NULL;
29799 }
29800
29801
29802 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29803 PyObject *resultobj = 0;
29804 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29805 int result;
29806 void *argp1 = 0 ;
29807 int res1 = 0 ;
29808 PyObject *swig_obj[1] ;
29809
29810 if (!args) SWIG_fail;
29811 swig_obj[0] = args;
29812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29813 if (!SWIG_IsOK(res1)) {
29814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29815 }
29816 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29817 {
29818 PyThreadState* __tstate = wxPyBeginAllowThreads();
29819 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29820 wxPyEndAllowThreads(__tstate);
29821 if (PyErr_Occurred()) SWIG_fail;
29822 }
29823 resultobj = SWIG_From_int(static_cast< int >(result));
29824 return resultobj;
29825 fail:
29826 return NULL;
29827 }
29828
29829
29830 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29831 PyObject *resultobj = 0;
29832 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29833 wxColour result;
29834 void *argp1 = 0 ;
29835 int res1 = 0 ;
29836 PyObject *swig_obj[1] ;
29837
29838 if (!args) SWIG_fail;
29839 swig_obj[0] = args;
29840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29841 if (!SWIG_IsOK(res1)) {
29842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29843 }
29844 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29845 {
29846 PyThreadState* __tstate = wxPyBeginAllowThreads();
29847 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29848 wxPyEndAllowThreads(__tstate);
29849 if (PyErr_Occurred()) SWIG_fail;
29850 }
29851 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29852 return resultobj;
29853 fail:
29854 return NULL;
29855 }
29856
29857
29858 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29859 PyObject *resultobj = 0;
29860 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29861 wxColour *arg2 = 0 ;
29862 void *argp1 = 0 ;
29863 int res1 = 0 ;
29864 wxColour temp2 ;
29865 PyObject * obj0 = 0 ;
29866 PyObject * obj1 = 0 ;
29867 char * kwnames[] = {
29868 (char *) "self",(char *) "col", NULL
29869 };
29870
29871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29873 if (!SWIG_IsOK(res1)) {
29874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29875 }
29876 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29877 {
29878 arg2 = &temp2;
29879 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29880 }
29881 {
29882 PyThreadState* __tstate = wxPyBeginAllowThreads();
29883 (arg1)->SetTextColour((wxColour const &)*arg2);
29884 wxPyEndAllowThreads(__tstate);
29885 if (PyErr_Occurred()) SWIG_fail;
29886 }
29887 resultobj = SWIG_Py_Void();
29888 return resultobj;
29889 fail:
29890 return NULL;
29891 }
29892
29893
29894 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29895 PyObject *resultobj = 0;
29896 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29897 long result;
29898 void *argp1 = 0 ;
29899 int res1 = 0 ;
29900 PyObject *swig_obj[1] ;
29901
29902 if (!args) SWIG_fail;
29903 swig_obj[0] = args;
29904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29905 if (!SWIG_IsOK(res1)) {
29906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29907 }
29908 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29909 {
29910 PyThreadState* __tstate = wxPyBeginAllowThreads();
29911 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29912 wxPyEndAllowThreads(__tstate);
29913 if (PyErr_Occurred()) SWIG_fail;
29914 }
29915 resultobj = SWIG_From_long(static_cast< long >(result));
29916 return resultobj;
29917 fail:
29918 return NULL;
29919 }
29920
29921
29922 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29923 PyObject *resultobj = 0;
29924 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29925 long arg2 ;
29926 bool arg3 = (bool) true ;
29927 void *argp1 = 0 ;
29928 int res1 = 0 ;
29929 long val2 ;
29930 int ecode2 = 0 ;
29931 bool val3 ;
29932 int ecode3 = 0 ;
29933 PyObject * obj0 = 0 ;
29934 PyObject * obj1 = 0 ;
29935 PyObject * obj2 = 0 ;
29936 char * kwnames[] = {
29937 (char *) "self",(char *) "style",(char *) "add", NULL
29938 };
29939
29940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29942 if (!SWIG_IsOK(res1)) {
29943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29944 }
29945 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29946 ecode2 = SWIG_AsVal_long(obj1, &val2);
29947 if (!SWIG_IsOK(ecode2)) {
29948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29949 }
29950 arg2 = static_cast< long >(val2);
29951 if (obj2) {
29952 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29953 if (!SWIG_IsOK(ecode3)) {
29954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29955 }
29956 arg3 = static_cast< bool >(val3);
29957 }
29958 {
29959 PyThreadState* __tstate = wxPyBeginAllowThreads();
29960 (arg1)->SetSingleStyle(arg2,arg3);
29961 wxPyEndAllowThreads(__tstate);
29962 if (PyErr_Occurred()) SWIG_fail;
29963 }
29964 resultobj = SWIG_Py_Void();
29965 return resultobj;
29966 fail:
29967 return NULL;
29968 }
29969
29970
29971 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29972 PyObject *resultobj = 0;
29973 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29974 long arg2 ;
29975 int arg3 = (int) wxLIST_NEXT_ALL ;
29976 int arg4 = (int) wxLIST_STATE_DONTCARE ;
29977 long result;
29978 void *argp1 = 0 ;
29979 int res1 = 0 ;
29980 long val2 ;
29981 int ecode2 = 0 ;
29982 int val3 ;
29983 int ecode3 = 0 ;
29984 int val4 ;
29985 int ecode4 = 0 ;
29986 PyObject * obj0 = 0 ;
29987 PyObject * obj1 = 0 ;
29988 PyObject * obj2 = 0 ;
29989 PyObject * obj3 = 0 ;
29990 char * kwnames[] = {
29991 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
29992 };
29993
29994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29996 if (!SWIG_IsOK(res1)) {
29997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29998 }
29999 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30000 ecode2 = SWIG_AsVal_long(obj1, &val2);
30001 if (!SWIG_IsOK(ecode2)) {
30002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30003 }
30004 arg2 = static_cast< long >(val2);
30005 if (obj2) {
30006 ecode3 = SWIG_AsVal_int(obj2, &val3);
30007 if (!SWIG_IsOK(ecode3)) {
30008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30009 }
30010 arg3 = static_cast< int >(val3);
30011 }
30012 if (obj3) {
30013 ecode4 = SWIG_AsVal_int(obj3, &val4);
30014 if (!SWIG_IsOK(ecode4)) {
30015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30016 }
30017 arg4 = static_cast< int >(val4);
30018 }
30019 {
30020 PyThreadState* __tstate = wxPyBeginAllowThreads();
30021 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30022 wxPyEndAllowThreads(__tstate);
30023 if (PyErr_Occurred()) SWIG_fail;
30024 }
30025 resultobj = SWIG_From_long(static_cast< long >(result));
30026 return resultobj;
30027 fail:
30028 return NULL;
30029 }
30030
30031
30032 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30033 PyObject *resultobj = 0;
30034 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30035 int arg2 ;
30036 wxImageList *result = 0 ;
30037 void *argp1 = 0 ;
30038 int res1 = 0 ;
30039 int val2 ;
30040 int ecode2 = 0 ;
30041 PyObject * obj0 = 0 ;
30042 PyObject * obj1 = 0 ;
30043 char * kwnames[] = {
30044 (char *) "self",(char *) "which", NULL
30045 };
30046
30047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30049 if (!SWIG_IsOK(res1)) {
30050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30051 }
30052 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30053 ecode2 = SWIG_AsVal_int(obj1, &val2);
30054 if (!SWIG_IsOK(ecode2)) {
30055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30056 }
30057 arg2 = static_cast< int >(val2);
30058 {
30059 PyThreadState* __tstate = wxPyBeginAllowThreads();
30060 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30061 wxPyEndAllowThreads(__tstate);
30062 if (PyErr_Occurred()) SWIG_fail;
30063 }
30064 {
30065 resultobj = wxPyMake_wxObject(result, (bool)0);
30066 }
30067 return resultobj;
30068 fail:
30069 return NULL;
30070 }
30071
30072
30073 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30074 PyObject *resultobj = 0;
30075 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30076 wxImageList *arg2 = (wxImageList *) 0 ;
30077 int arg3 ;
30078 void *argp1 = 0 ;
30079 int res1 = 0 ;
30080 void *argp2 = 0 ;
30081 int res2 = 0 ;
30082 int val3 ;
30083 int ecode3 = 0 ;
30084 PyObject * obj0 = 0 ;
30085 PyObject * obj1 = 0 ;
30086 PyObject * obj2 = 0 ;
30087 char * kwnames[] = {
30088 (char *) "self",(char *) "imageList",(char *) "which", NULL
30089 };
30090
30091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30093 if (!SWIG_IsOK(res1)) {
30094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30095 }
30096 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30097 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30098 if (!SWIG_IsOK(res2)) {
30099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30100 }
30101 arg2 = reinterpret_cast< wxImageList * >(argp2);
30102 ecode3 = SWIG_AsVal_int(obj2, &val3);
30103 if (!SWIG_IsOK(ecode3)) {
30104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30105 }
30106 arg3 = static_cast< int >(val3);
30107 {
30108 PyThreadState* __tstate = wxPyBeginAllowThreads();
30109 (arg1)->SetImageList(arg2,arg3);
30110 wxPyEndAllowThreads(__tstate);
30111 if (PyErr_Occurred()) SWIG_fail;
30112 }
30113 resultobj = SWIG_Py_Void();
30114 return resultobj;
30115 fail:
30116 return NULL;
30117 }
30118
30119
30120 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30121 PyObject *resultobj = 0;
30122 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30123 wxImageList *arg2 = (wxImageList *) 0 ;
30124 int arg3 ;
30125 void *argp1 = 0 ;
30126 int res1 = 0 ;
30127 int res2 = 0 ;
30128 int val3 ;
30129 int ecode3 = 0 ;
30130 PyObject * obj0 = 0 ;
30131 PyObject * obj1 = 0 ;
30132 PyObject * obj2 = 0 ;
30133 char * kwnames[] = {
30134 (char *) "self",(char *) "imageList",(char *) "which", NULL
30135 };
30136
30137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30139 if (!SWIG_IsOK(res1)) {
30140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30141 }
30142 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30143 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30144 if (!SWIG_IsOK(res2)) {
30145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30146 }
30147 ecode3 = SWIG_AsVal_int(obj2, &val3);
30148 if (!SWIG_IsOK(ecode3)) {
30149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30150 }
30151 arg3 = static_cast< int >(val3);
30152 {
30153 PyThreadState* __tstate = wxPyBeginAllowThreads();
30154 (arg1)->AssignImageList(arg2,arg3);
30155 wxPyEndAllowThreads(__tstate);
30156 if (PyErr_Occurred()) SWIG_fail;
30157 }
30158 resultobj = SWIG_Py_Void();
30159 return resultobj;
30160 fail:
30161 return NULL;
30162 }
30163
30164
30165 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30166 PyObject *resultobj = 0;
30167 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30168 bool result;
30169 void *argp1 = 0 ;
30170 int res1 = 0 ;
30171 PyObject *swig_obj[1] ;
30172
30173 if (!args) SWIG_fail;
30174 swig_obj[0] = args;
30175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30176 if (!SWIG_IsOK(res1)) {
30177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30178 }
30179 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30180 {
30181 PyThreadState* __tstate = wxPyBeginAllowThreads();
30182 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30183 wxPyEndAllowThreads(__tstate);
30184 if (PyErr_Occurred()) SWIG_fail;
30185 }
30186 {
30187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30188 }
30189 return resultobj;
30190 fail:
30191 return NULL;
30192 }
30193
30194
30195 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30196 PyObject *resultobj = 0;
30197 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30198 bool result;
30199 void *argp1 = 0 ;
30200 int res1 = 0 ;
30201 PyObject *swig_obj[1] ;
30202
30203 if (!args) SWIG_fail;
30204 swig_obj[0] = args;
30205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30206 if (!SWIG_IsOK(res1)) {
30207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30208 }
30209 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30210 {
30211 PyThreadState* __tstate = wxPyBeginAllowThreads();
30212 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30213 wxPyEndAllowThreads(__tstate);
30214 if (PyErr_Occurred()) SWIG_fail;
30215 }
30216 {
30217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30218 }
30219 return resultobj;
30220 fail:
30221 return NULL;
30222 }
30223
30224
30225 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30226 PyObject *resultobj = 0;
30227 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30228 long arg2 ;
30229 void *argp1 = 0 ;
30230 int res1 = 0 ;
30231 long val2 ;
30232 int ecode2 = 0 ;
30233 PyObject * obj0 = 0 ;
30234 PyObject * obj1 = 0 ;
30235 char * kwnames[] = {
30236 (char *) "self",(char *) "item", NULL
30237 };
30238
30239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30241 if (!SWIG_IsOK(res1)) {
30242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30243 }
30244 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30245 ecode2 = SWIG_AsVal_long(obj1, &val2);
30246 if (!SWIG_IsOK(ecode2)) {
30247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30248 }
30249 arg2 = static_cast< long >(val2);
30250 {
30251 PyThreadState* __tstate = wxPyBeginAllowThreads();
30252 (arg1)->RefreshItem(arg2);
30253 wxPyEndAllowThreads(__tstate);
30254 if (PyErr_Occurred()) SWIG_fail;
30255 }
30256 resultobj = SWIG_Py_Void();
30257 return resultobj;
30258 fail:
30259 return NULL;
30260 }
30261
30262
30263 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30264 PyObject *resultobj = 0;
30265 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30266 long arg2 ;
30267 long arg3 ;
30268 void *argp1 = 0 ;
30269 int res1 = 0 ;
30270 long val2 ;
30271 int ecode2 = 0 ;
30272 long val3 ;
30273 int ecode3 = 0 ;
30274 PyObject * obj0 = 0 ;
30275 PyObject * obj1 = 0 ;
30276 PyObject * obj2 = 0 ;
30277 char * kwnames[] = {
30278 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30279 };
30280
30281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30283 if (!SWIG_IsOK(res1)) {
30284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30285 }
30286 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30287 ecode2 = SWIG_AsVal_long(obj1, &val2);
30288 if (!SWIG_IsOK(ecode2)) {
30289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30290 }
30291 arg2 = static_cast< long >(val2);
30292 ecode3 = SWIG_AsVal_long(obj2, &val3);
30293 if (!SWIG_IsOK(ecode3)) {
30294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30295 }
30296 arg3 = static_cast< long >(val3);
30297 {
30298 PyThreadState* __tstate = wxPyBeginAllowThreads();
30299 (arg1)->RefreshItems(arg2,arg3);
30300 wxPyEndAllowThreads(__tstate);
30301 if (PyErr_Occurred()) SWIG_fail;
30302 }
30303 resultobj = SWIG_Py_Void();
30304 return resultobj;
30305 fail:
30306 return NULL;
30307 }
30308
30309
30310 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30311 PyObject *resultobj = 0;
30312 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30313 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30314 bool result;
30315 void *argp1 = 0 ;
30316 int res1 = 0 ;
30317 int val2 ;
30318 int ecode2 = 0 ;
30319 PyObject * obj0 = 0 ;
30320 PyObject * obj1 = 0 ;
30321 char * kwnames[] = {
30322 (char *) "self",(char *) "flag", NULL
30323 };
30324
30325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30327 if (!SWIG_IsOK(res1)) {
30328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30329 }
30330 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30331 if (obj1) {
30332 ecode2 = SWIG_AsVal_int(obj1, &val2);
30333 if (!SWIG_IsOK(ecode2)) {
30334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30335 }
30336 arg2 = static_cast< int >(val2);
30337 }
30338 {
30339 PyThreadState* __tstate = wxPyBeginAllowThreads();
30340 result = (bool)(arg1)->Arrange(arg2);
30341 wxPyEndAllowThreads(__tstate);
30342 if (PyErr_Occurred()) SWIG_fail;
30343 }
30344 {
30345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30346 }
30347 return resultobj;
30348 fail:
30349 return NULL;
30350 }
30351
30352
30353 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30354 PyObject *resultobj = 0;
30355 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30356 long arg2 ;
30357 bool result;
30358 void *argp1 = 0 ;
30359 int res1 = 0 ;
30360 long val2 ;
30361 int ecode2 = 0 ;
30362 PyObject * obj0 = 0 ;
30363 PyObject * obj1 = 0 ;
30364 char * kwnames[] = {
30365 (char *) "self",(char *) "item", NULL
30366 };
30367
30368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30370 if (!SWIG_IsOK(res1)) {
30371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30372 }
30373 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30374 ecode2 = SWIG_AsVal_long(obj1, &val2);
30375 if (!SWIG_IsOK(ecode2)) {
30376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30377 }
30378 arg2 = static_cast< long >(val2);
30379 {
30380 PyThreadState* __tstate = wxPyBeginAllowThreads();
30381 result = (bool)(arg1)->DeleteItem(arg2);
30382 wxPyEndAllowThreads(__tstate);
30383 if (PyErr_Occurred()) SWIG_fail;
30384 }
30385 {
30386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30387 }
30388 return resultobj;
30389 fail:
30390 return NULL;
30391 }
30392
30393
30394 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30395 PyObject *resultobj = 0;
30396 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30397 bool result;
30398 void *argp1 = 0 ;
30399 int res1 = 0 ;
30400 PyObject *swig_obj[1] ;
30401
30402 if (!args) SWIG_fail;
30403 swig_obj[0] = args;
30404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30405 if (!SWIG_IsOK(res1)) {
30406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30407 }
30408 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30409 {
30410 PyThreadState* __tstate = wxPyBeginAllowThreads();
30411 result = (bool)(arg1)->DeleteAllItems();
30412 wxPyEndAllowThreads(__tstate);
30413 if (PyErr_Occurred()) SWIG_fail;
30414 }
30415 {
30416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30417 }
30418 return resultobj;
30419 fail:
30420 return NULL;
30421 }
30422
30423
30424 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30425 PyObject *resultobj = 0;
30426 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30427 int arg2 ;
30428 bool result;
30429 void *argp1 = 0 ;
30430 int res1 = 0 ;
30431 int val2 ;
30432 int ecode2 = 0 ;
30433 PyObject * obj0 = 0 ;
30434 PyObject * obj1 = 0 ;
30435 char * kwnames[] = {
30436 (char *) "self",(char *) "col", NULL
30437 };
30438
30439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30441 if (!SWIG_IsOK(res1)) {
30442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30443 }
30444 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30445 ecode2 = SWIG_AsVal_int(obj1, &val2);
30446 if (!SWIG_IsOK(ecode2)) {
30447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30448 }
30449 arg2 = static_cast< int >(val2);
30450 {
30451 PyThreadState* __tstate = wxPyBeginAllowThreads();
30452 result = (bool)(arg1)->DeleteColumn(arg2);
30453 wxPyEndAllowThreads(__tstate);
30454 if (PyErr_Occurred()) SWIG_fail;
30455 }
30456 {
30457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30458 }
30459 return resultobj;
30460 fail:
30461 return NULL;
30462 }
30463
30464
30465 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30466 PyObject *resultobj = 0;
30467 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30468 bool result;
30469 void *argp1 = 0 ;
30470 int res1 = 0 ;
30471 PyObject *swig_obj[1] ;
30472
30473 if (!args) SWIG_fail;
30474 swig_obj[0] = args;
30475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30476 if (!SWIG_IsOK(res1)) {
30477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30478 }
30479 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30480 {
30481 PyThreadState* __tstate = wxPyBeginAllowThreads();
30482 result = (bool)(arg1)->DeleteAllColumns();
30483 wxPyEndAllowThreads(__tstate);
30484 if (PyErr_Occurred()) SWIG_fail;
30485 }
30486 {
30487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30488 }
30489 return resultobj;
30490 fail:
30491 return NULL;
30492 }
30493
30494
30495 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30496 PyObject *resultobj = 0;
30497 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30498 void *argp1 = 0 ;
30499 int res1 = 0 ;
30500 PyObject *swig_obj[1] ;
30501
30502 if (!args) SWIG_fail;
30503 swig_obj[0] = args;
30504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30505 if (!SWIG_IsOK(res1)) {
30506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30507 }
30508 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30509 {
30510 PyThreadState* __tstate = wxPyBeginAllowThreads();
30511 (arg1)->ClearAll();
30512 wxPyEndAllowThreads(__tstate);
30513 if (PyErr_Occurred()) SWIG_fail;
30514 }
30515 resultobj = SWIG_Py_Void();
30516 return resultobj;
30517 fail:
30518 return NULL;
30519 }
30520
30521
30522 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30523 PyObject *resultobj = 0;
30524 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30525 long arg2 ;
30526 void *argp1 = 0 ;
30527 int res1 = 0 ;
30528 long val2 ;
30529 int ecode2 = 0 ;
30530 PyObject * obj0 = 0 ;
30531 PyObject * obj1 = 0 ;
30532 char * kwnames[] = {
30533 (char *) "self",(char *) "item", NULL
30534 };
30535
30536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30538 if (!SWIG_IsOK(res1)) {
30539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30540 }
30541 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30542 ecode2 = SWIG_AsVal_long(obj1, &val2);
30543 if (!SWIG_IsOK(ecode2)) {
30544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30545 }
30546 arg2 = static_cast< long >(val2);
30547 {
30548 PyThreadState* __tstate = wxPyBeginAllowThreads();
30549 (arg1)->EditLabel(arg2);
30550 wxPyEndAllowThreads(__tstate);
30551 if (PyErr_Occurred()) SWIG_fail;
30552 }
30553 resultobj = SWIG_Py_Void();
30554 return resultobj;
30555 fail:
30556 return NULL;
30557 }
30558
30559
30560 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30561 PyObject *resultobj = 0;
30562 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30563 long arg2 ;
30564 bool result;
30565 void *argp1 = 0 ;
30566 int res1 = 0 ;
30567 long val2 ;
30568 int ecode2 = 0 ;
30569 PyObject * obj0 = 0 ;
30570 PyObject * obj1 = 0 ;
30571 char * kwnames[] = {
30572 (char *) "self",(char *) "item", NULL
30573 };
30574
30575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30577 if (!SWIG_IsOK(res1)) {
30578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30579 }
30580 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30581 ecode2 = SWIG_AsVal_long(obj1, &val2);
30582 if (!SWIG_IsOK(ecode2)) {
30583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30584 }
30585 arg2 = static_cast< long >(val2);
30586 {
30587 PyThreadState* __tstate = wxPyBeginAllowThreads();
30588 result = (bool)(arg1)->EnsureVisible(arg2);
30589 wxPyEndAllowThreads(__tstate);
30590 if (PyErr_Occurred()) SWIG_fail;
30591 }
30592 {
30593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30594 }
30595 return resultobj;
30596 fail:
30597 return NULL;
30598 }
30599
30600
30601 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30602 PyObject *resultobj = 0;
30603 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30604 long arg2 ;
30605 wxString *arg3 = 0 ;
30606 bool arg4 = (bool) false ;
30607 long result;
30608 void *argp1 = 0 ;
30609 int res1 = 0 ;
30610 long val2 ;
30611 int ecode2 = 0 ;
30612 bool temp3 = false ;
30613 bool val4 ;
30614 int ecode4 = 0 ;
30615 PyObject * obj0 = 0 ;
30616 PyObject * obj1 = 0 ;
30617 PyObject * obj2 = 0 ;
30618 PyObject * obj3 = 0 ;
30619 char * kwnames[] = {
30620 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30621 };
30622
30623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30625 if (!SWIG_IsOK(res1)) {
30626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30627 }
30628 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30629 ecode2 = SWIG_AsVal_long(obj1, &val2);
30630 if (!SWIG_IsOK(ecode2)) {
30631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30632 }
30633 arg2 = static_cast< long >(val2);
30634 {
30635 arg3 = wxString_in_helper(obj2);
30636 if (arg3 == NULL) SWIG_fail;
30637 temp3 = true;
30638 }
30639 if (obj3) {
30640 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30641 if (!SWIG_IsOK(ecode4)) {
30642 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30643 }
30644 arg4 = static_cast< bool >(val4);
30645 }
30646 {
30647 PyThreadState* __tstate = wxPyBeginAllowThreads();
30648 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30649 wxPyEndAllowThreads(__tstate);
30650 if (PyErr_Occurred()) SWIG_fail;
30651 }
30652 resultobj = SWIG_From_long(static_cast< long >(result));
30653 {
30654 if (temp3)
30655 delete arg3;
30656 }
30657 return resultobj;
30658 fail:
30659 {
30660 if (temp3)
30661 delete arg3;
30662 }
30663 return NULL;
30664 }
30665
30666
30667 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30668 PyObject *resultobj = 0;
30669 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30670 long arg2 ;
30671 long arg3 ;
30672 long result;
30673 void *argp1 = 0 ;
30674 int res1 = 0 ;
30675 long val2 ;
30676 int ecode2 = 0 ;
30677 long val3 ;
30678 int ecode3 = 0 ;
30679 PyObject * obj0 = 0 ;
30680 PyObject * obj1 = 0 ;
30681 PyObject * obj2 = 0 ;
30682 char * kwnames[] = {
30683 (char *) "self",(char *) "start",(char *) "data", NULL
30684 };
30685
30686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30688 if (!SWIG_IsOK(res1)) {
30689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30690 }
30691 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30692 ecode2 = SWIG_AsVal_long(obj1, &val2);
30693 if (!SWIG_IsOK(ecode2)) {
30694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30695 }
30696 arg2 = static_cast< long >(val2);
30697 ecode3 = SWIG_AsVal_long(obj2, &val3);
30698 if (!SWIG_IsOK(ecode3)) {
30699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30700 }
30701 arg3 = static_cast< long >(val3);
30702 {
30703 PyThreadState* __tstate = wxPyBeginAllowThreads();
30704 result = (long)(arg1)->FindItem(arg2,arg3);
30705 wxPyEndAllowThreads(__tstate);
30706 if (PyErr_Occurred()) SWIG_fail;
30707 }
30708 resultobj = SWIG_From_long(static_cast< long >(result));
30709 return resultobj;
30710 fail:
30711 return NULL;
30712 }
30713
30714
30715 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30716 PyObject *resultobj = 0;
30717 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30718 long arg2 ;
30719 wxPoint *arg3 = 0 ;
30720 int arg4 ;
30721 long result;
30722 void *argp1 = 0 ;
30723 int res1 = 0 ;
30724 long val2 ;
30725 int ecode2 = 0 ;
30726 wxPoint temp3 ;
30727 int val4 ;
30728 int ecode4 = 0 ;
30729 PyObject * obj0 = 0 ;
30730 PyObject * obj1 = 0 ;
30731 PyObject * obj2 = 0 ;
30732 PyObject * obj3 = 0 ;
30733 char * kwnames[] = {
30734 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30735 };
30736
30737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30739 if (!SWIG_IsOK(res1)) {
30740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30741 }
30742 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30743 ecode2 = SWIG_AsVal_long(obj1, &val2);
30744 if (!SWIG_IsOK(ecode2)) {
30745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30746 }
30747 arg2 = static_cast< long >(val2);
30748 {
30749 arg3 = &temp3;
30750 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30751 }
30752 ecode4 = SWIG_AsVal_int(obj3, &val4);
30753 if (!SWIG_IsOK(ecode4)) {
30754 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30755 }
30756 arg4 = static_cast< int >(val4);
30757 {
30758 PyThreadState* __tstate = wxPyBeginAllowThreads();
30759 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30760 wxPyEndAllowThreads(__tstate);
30761 if (PyErr_Occurred()) SWIG_fail;
30762 }
30763 resultobj = SWIG_From_long(static_cast< long >(result));
30764 return resultobj;
30765 fail:
30766 return NULL;
30767 }
30768
30769
30770 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30771 PyObject *resultobj = 0;
30772 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30773 wxPoint *arg2 = 0 ;
30774 int *arg3 = 0 ;
30775 long result;
30776 void *argp1 = 0 ;
30777 int res1 = 0 ;
30778 wxPoint temp2 ;
30779 int temp3 ;
30780 int res3 = SWIG_TMPOBJ ;
30781 PyObject * obj0 = 0 ;
30782 PyObject * obj1 = 0 ;
30783 char * kwnames[] = {
30784 (char *) "self",(char *) "point", NULL
30785 };
30786
30787 arg3 = &temp3;
30788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30790 if (!SWIG_IsOK(res1)) {
30791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30792 }
30793 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30794 {
30795 arg2 = &temp2;
30796 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30797 }
30798 {
30799 PyThreadState* __tstate = wxPyBeginAllowThreads();
30800 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30801 wxPyEndAllowThreads(__tstate);
30802 if (PyErr_Occurred()) SWIG_fail;
30803 }
30804 resultobj = SWIG_From_long(static_cast< long >(result));
30805 if (SWIG_IsTmpObj(res3)) {
30806 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30807 } else {
30808 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30810 }
30811 return resultobj;
30812 fail:
30813 return NULL;
30814 }
30815
30816
30817 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30818 PyObject *resultobj = 0;
30819 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30820 wxListItem *arg2 = 0 ;
30821 long result;
30822 void *argp1 = 0 ;
30823 int res1 = 0 ;
30824 void *argp2 = 0 ;
30825 int res2 = 0 ;
30826 PyObject * obj0 = 0 ;
30827 PyObject * obj1 = 0 ;
30828 char * kwnames[] = {
30829 (char *) "self",(char *) "info", NULL
30830 };
30831
30832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30834 if (!SWIG_IsOK(res1)) {
30835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30836 }
30837 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30838 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30839 if (!SWIG_IsOK(res2)) {
30840 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30841 }
30842 if (!argp2) {
30843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30844 }
30845 arg2 = reinterpret_cast< wxListItem * >(argp2);
30846 {
30847 PyThreadState* __tstate = wxPyBeginAllowThreads();
30848 result = (long)(arg1)->InsertItem(*arg2);
30849 wxPyEndAllowThreads(__tstate);
30850 if (PyErr_Occurred()) SWIG_fail;
30851 }
30852 resultobj = SWIG_From_long(static_cast< long >(result));
30853 return resultobj;
30854 fail:
30855 return NULL;
30856 }
30857
30858
30859 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30860 PyObject *resultobj = 0;
30861 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30862 long arg2 ;
30863 wxString *arg3 = 0 ;
30864 int arg4 = (int) -1 ;
30865 long result;
30866 void *argp1 = 0 ;
30867 int res1 = 0 ;
30868 long val2 ;
30869 int ecode2 = 0 ;
30870 bool temp3 = false ;
30871 int val4 ;
30872 int ecode4 = 0 ;
30873 PyObject * obj0 = 0 ;
30874 PyObject * obj1 = 0 ;
30875 PyObject * obj2 = 0 ;
30876 PyObject * obj3 = 0 ;
30877 char * kwnames[] = {
30878 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30879 };
30880
30881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30883 if (!SWIG_IsOK(res1)) {
30884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30885 }
30886 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30887 ecode2 = SWIG_AsVal_long(obj1, &val2);
30888 if (!SWIG_IsOK(ecode2)) {
30889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30890 }
30891 arg2 = static_cast< long >(val2);
30892 {
30893 arg3 = wxString_in_helper(obj2);
30894 if (arg3 == NULL) SWIG_fail;
30895 temp3 = true;
30896 }
30897 if (obj3) {
30898 ecode4 = SWIG_AsVal_int(obj3, &val4);
30899 if (!SWIG_IsOK(ecode4)) {
30900 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30901 }
30902 arg4 = static_cast< int >(val4);
30903 }
30904 {
30905 PyThreadState* __tstate = wxPyBeginAllowThreads();
30906 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30907 wxPyEndAllowThreads(__tstate);
30908 if (PyErr_Occurred()) SWIG_fail;
30909 }
30910 resultobj = SWIG_From_long(static_cast< long >(result));
30911 {
30912 if (temp3)
30913 delete arg3;
30914 }
30915 return resultobj;
30916 fail:
30917 {
30918 if (temp3)
30919 delete arg3;
30920 }
30921 return NULL;
30922 }
30923
30924
30925 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30926 PyObject *resultobj = 0;
30927 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30928 long arg2 ;
30929 int arg3 ;
30930 long result;
30931 void *argp1 = 0 ;
30932 int res1 = 0 ;
30933 long val2 ;
30934 int ecode2 = 0 ;
30935 int val3 ;
30936 int ecode3 = 0 ;
30937 PyObject * obj0 = 0 ;
30938 PyObject * obj1 = 0 ;
30939 PyObject * obj2 = 0 ;
30940 char * kwnames[] = {
30941 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
30942 };
30943
30944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30946 if (!SWIG_IsOK(res1)) {
30947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30948 }
30949 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30950 ecode2 = SWIG_AsVal_long(obj1, &val2);
30951 if (!SWIG_IsOK(ecode2)) {
30952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
30953 }
30954 arg2 = static_cast< long >(val2);
30955 ecode3 = SWIG_AsVal_int(obj2, &val3);
30956 if (!SWIG_IsOK(ecode3)) {
30957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
30958 }
30959 arg3 = static_cast< int >(val3);
30960 {
30961 PyThreadState* __tstate = wxPyBeginAllowThreads();
30962 result = (long)(arg1)->InsertItem(arg2,arg3);
30963 wxPyEndAllowThreads(__tstate);
30964 if (PyErr_Occurred()) SWIG_fail;
30965 }
30966 resultobj = SWIG_From_long(static_cast< long >(result));
30967 return resultobj;
30968 fail:
30969 return NULL;
30970 }
30971
30972
30973 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30974 PyObject *resultobj = 0;
30975 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30976 long arg2 ;
30977 wxString *arg3 = 0 ;
30978 int arg4 ;
30979 long result;
30980 void *argp1 = 0 ;
30981 int res1 = 0 ;
30982 long val2 ;
30983 int ecode2 = 0 ;
30984 bool temp3 = false ;
30985 int val4 ;
30986 int ecode4 = 0 ;
30987 PyObject * obj0 = 0 ;
30988 PyObject * obj1 = 0 ;
30989 PyObject * obj2 = 0 ;
30990 PyObject * obj3 = 0 ;
30991 char * kwnames[] = {
30992 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30993 };
30994
30995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30997 if (!SWIG_IsOK(res1)) {
30998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30999 }
31000 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31001 ecode2 = SWIG_AsVal_long(obj1, &val2);
31002 if (!SWIG_IsOK(ecode2)) {
31003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31004 }
31005 arg2 = static_cast< long >(val2);
31006 {
31007 arg3 = wxString_in_helper(obj2);
31008 if (arg3 == NULL) SWIG_fail;
31009 temp3 = true;
31010 }
31011 ecode4 = SWIG_AsVal_int(obj3, &val4);
31012 if (!SWIG_IsOK(ecode4)) {
31013 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31014 }
31015 arg4 = static_cast< int >(val4);
31016 {
31017 PyThreadState* __tstate = wxPyBeginAllowThreads();
31018 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31019 wxPyEndAllowThreads(__tstate);
31020 if (PyErr_Occurred()) SWIG_fail;
31021 }
31022 resultobj = SWIG_From_long(static_cast< long >(result));
31023 {
31024 if (temp3)
31025 delete arg3;
31026 }
31027 return resultobj;
31028 fail:
31029 {
31030 if (temp3)
31031 delete arg3;
31032 }
31033 return NULL;
31034 }
31035
31036
31037 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31038 PyObject *resultobj = 0;
31039 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31040 long arg2 ;
31041 wxListItem *arg3 = 0 ;
31042 long result;
31043 void *argp1 = 0 ;
31044 int res1 = 0 ;
31045 long val2 ;
31046 int ecode2 = 0 ;
31047 void *argp3 = 0 ;
31048 int res3 = 0 ;
31049 PyObject * obj0 = 0 ;
31050 PyObject * obj1 = 0 ;
31051 PyObject * obj2 = 0 ;
31052 char * kwnames[] = {
31053 (char *) "self",(char *) "col",(char *) "info", NULL
31054 };
31055
31056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31058 if (!SWIG_IsOK(res1)) {
31059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31060 }
31061 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31062 ecode2 = SWIG_AsVal_long(obj1, &val2);
31063 if (!SWIG_IsOK(ecode2)) {
31064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31065 }
31066 arg2 = static_cast< long >(val2);
31067 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31068 if (!SWIG_IsOK(res3)) {
31069 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31070 }
31071 if (!argp3) {
31072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31073 }
31074 arg3 = reinterpret_cast< wxListItem * >(argp3);
31075 {
31076 PyThreadState* __tstate = wxPyBeginAllowThreads();
31077 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31078 wxPyEndAllowThreads(__tstate);
31079 if (PyErr_Occurred()) SWIG_fail;
31080 }
31081 resultobj = SWIG_From_long(static_cast< long >(result));
31082 return resultobj;
31083 fail:
31084 return NULL;
31085 }
31086
31087
31088 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31089 PyObject *resultobj = 0;
31090 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31091 long arg2 ;
31092 wxString *arg3 = 0 ;
31093 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31094 int arg5 = (int) -1 ;
31095 long result;
31096 void *argp1 = 0 ;
31097 int res1 = 0 ;
31098 long val2 ;
31099 int ecode2 = 0 ;
31100 bool temp3 = false ;
31101 int val4 ;
31102 int ecode4 = 0 ;
31103 int val5 ;
31104 int ecode5 = 0 ;
31105 PyObject * obj0 = 0 ;
31106 PyObject * obj1 = 0 ;
31107 PyObject * obj2 = 0 ;
31108 PyObject * obj3 = 0 ;
31109 PyObject * obj4 = 0 ;
31110 char * kwnames[] = {
31111 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31112 };
31113
31114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31116 if (!SWIG_IsOK(res1)) {
31117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31118 }
31119 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31120 ecode2 = SWIG_AsVal_long(obj1, &val2);
31121 if (!SWIG_IsOK(ecode2)) {
31122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31123 }
31124 arg2 = static_cast< long >(val2);
31125 {
31126 arg3 = wxString_in_helper(obj2);
31127 if (arg3 == NULL) SWIG_fail;
31128 temp3 = true;
31129 }
31130 if (obj3) {
31131 ecode4 = SWIG_AsVal_int(obj3, &val4);
31132 if (!SWIG_IsOK(ecode4)) {
31133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31134 }
31135 arg4 = static_cast< int >(val4);
31136 }
31137 if (obj4) {
31138 ecode5 = SWIG_AsVal_int(obj4, &val5);
31139 if (!SWIG_IsOK(ecode5)) {
31140 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31141 }
31142 arg5 = static_cast< int >(val5);
31143 }
31144 {
31145 PyThreadState* __tstate = wxPyBeginAllowThreads();
31146 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31147 wxPyEndAllowThreads(__tstate);
31148 if (PyErr_Occurred()) SWIG_fail;
31149 }
31150 resultobj = SWIG_From_long(static_cast< long >(result));
31151 {
31152 if (temp3)
31153 delete arg3;
31154 }
31155 return resultobj;
31156 fail:
31157 {
31158 if (temp3)
31159 delete arg3;
31160 }
31161 return NULL;
31162 }
31163
31164
31165 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31166 PyObject *resultobj = 0;
31167 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31168 long arg2 ;
31169 void *argp1 = 0 ;
31170 int res1 = 0 ;
31171 long val2 ;
31172 int ecode2 = 0 ;
31173 PyObject * obj0 = 0 ;
31174 PyObject * obj1 = 0 ;
31175 char * kwnames[] = {
31176 (char *) "self",(char *) "count", NULL
31177 };
31178
31179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31181 if (!SWIG_IsOK(res1)) {
31182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31183 }
31184 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31185 ecode2 = SWIG_AsVal_long(obj1, &val2);
31186 if (!SWIG_IsOK(ecode2)) {
31187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31188 }
31189 arg2 = static_cast< long >(val2);
31190 {
31191 PyThreadState* __tstate = wxPyBeginAllowThreads();
31192 (arg1)->SetItemCount(arg2);
31193 wxPyEndAllowThreads(__tstate);
31194 if (PyErr_Occurred()) SWIG_fail;
31195 }
31196 resultobj = SWIG_Py_Void();
31197 return resultobj;
31198 fail:
31199 return NULL;
31200 }
31201
31202
31203 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31204 PyObject *resultobj = 0;
31205 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31206 int arg2 ;
31207 int arg3 ;
31208 bool result;
31209 void *argp1 = 0 ;
31210 int res1 = 0 ;
31211 int val2 ;
31212 int ecode2 = 0 ;
31213 int val3 ;
31214 int ecode3 = 0 ;
31215 PyObject * obj0 = 0 ;
31216 PyObject * obj1 = 0 ;
31217 PyObject * obj2 = 0 ;
31218 char * kwnames[] = {
31219 (char *) "self",(char *) "dx",(char *) "dy", NULL
31220 };
31221
31222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31224 if (!SWIG_IsOK(res1)) {
31225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31226 }
31227 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31228 ecode2 = SWIG_AsVal_int(obj1, &val2);
31229 if (!SWIG_IsOK(ecode2)) {
31230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31231 }
31232 arg2 = static_cast< int >(val2);
31233 ecode3 = SWIG_AsVal_int(obj2, &val3);
31234 if (!SWIG_IsOK(ecode3)) {
31235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31236 }
31237 arg3 = static_cast< int >(val3);
31238 {
31239 PyThreadState* __tstate = wxPyBeginAllowThreads();
31240 result = (bool)(arg1)->ScrollList(arg2,arg3);
31241 wxPyEndAllowThreads(__tstate);
31242 if (PyErr_Occurred()) SWIG_fail;
31243 }
31244 {
31245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31246 }
31247 return resultobj;
31248 fail:
31249 return NULL;
31250 }
31251
31252
31253 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31254 PyObject *resultobj = 0;
31255 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31256 long arg2 ;
31257 wxColour *arg3 = 0 ;
31258 void *argp1 = 0 ;
31259 int res1 = 0 ;
31260 long val2 ;
31261 int ecode2 = 0 ;
31262 wxColour temp3 ;
31263 PyObject * obj0 = 0 ;
31264 PyObject * obj1 = 0 ;
31265 PyObject * obj2 = 0 ;
31266 char * kwnames[] = {
31267 (char *) "self",(char *) "item",(char *) "col", NULL
31268 };
31269
31270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31272 if (!SWIG_IsOK(res1)) {
31273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31274 }
31275 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31276 ecode2 = SWIG_AsVal_long(obj1, &val2);
31277 if (!SWIG_IsOK(ecode2)) {
31278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31279 }
31280 arg2 = static_cast< long >(val2);
31281 {
31282 arg3 = &temp3;
31283 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31284 }
31285 {
31286 PyThreadState* __tstate = wxPyBeginAllowThreads();
31287 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31288 wxPyEndAllowThreads(__tstate);
31289 if (PyErr_Occurred()) SWIG_fail;
31290 }
31291 resultobj = SWIG_Py_Void();
31292 return resultobj;
31293 fail:
31294 return NULL;
31295 }
31296
31297
31298 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31299 PyObject *resultobj = 0;
31300 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31301 long arg2 ;
31302 wxColour result;
31303 void *argp1 = 0 ;
31304 int res1 = 0 ;
31305 long val2 ;
31306 int ecode2 = 0 ;
31307 PyObject * obj0 = 0 ;
31308 PyObject * obj1 = 0 ;
31309 char * kwnames[] = {
31310 (char *) "self",(char *) "item", NULL
31311 };
31312
31313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31315 if (!SWIG_IsOK(res1)) {
31316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31317 }
31318 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31319 ecode2 = SWIG_AsVal_long(obj1, &val2);
31320 if (!SWIG_IsOK(ecode2)) {
31321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31322 }
31323 arg2 = static_cast< long >(val2);
31324 {
31325 PyThreadState* __tstate = wxPyBeginAllowThreads();
31326 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31327 wxPyEndAllowThreads(__tstate);
31328 if (PyErr_Occurred()) SWIG_fail;
31329 }
31330 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31331 return resultobj;
31332 fail:
31333 return NULL;
31334 }
31335
31336
31337 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31338 PyObject *resultobj = 0;
31339 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31340 long arg2 ;
31341 wxColour *arg3 = 0 ;
31342 void *argp1 = 0 ;
31343 int res1 = 0 ;
31344 long val2 ;
31345 int ecode2 = 0 ;
31346 wxColour temp3 ;
31347 PyObject * obj0 = 0 ;
31348 PyObject * obj1 = 0 ;
31349 PyObject * obj2 = 0 ;
31350 char * kwnames[] = {
31351 (char *) "self",(char *) "item",(char *) "col", NULL
31352 };
31353
31354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31356 if (!SWIG_IsOK(res1)) {
31357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31358 }
31359 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31360 ecode2 = SWIG_AsVal_long(obj1, &val2);
31361 if (!SWIG_IsOK(ecode2)) {
31362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31363 }
31364 arg2 = static_cast< long >(val2);
31365 {
31366 arg3 = &temp3;
31367 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31368 }
31369 {
31370 PyThreadState* __tstate = wxPyBeginAllowThreads();
31371 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31372 wxPyEndAllowThreads(__tstate);
31373 if (PyErr_Occurred()) SWIG_fail;
31374 }
31375 resultobj = SWIG_Py_Void();
31376 return resultobj;
31377 fail:
31378 return NULL;
31379 }
31380
31381
31382 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31383 PyObject *resultobj = 0;
31384 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31385 long arg2 ;
31386 wxColour result;
31387 void *argp1 = 0 ;
31388 int res1 = 0 ;
31389 long val2 ;
31390 int ecode2 = 0 ;
31391 PyObject * obj0 = 0 ;
31392 PyObject * obj1 = 0 ;
31393 char * kwnames[] = {
31394 (char *) "self",(char *) "item", NULL
31395 };
31396
31397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31399 if (!SWIG_IsOK(res1)) {
31400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31401 }
31402 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31403 ecode2 = SWIG_AsVal_long(obj1, &val2);
31404 if (!SWIG_IsOK(ecode2)) {
31405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31406 }
31407 arg2 = static_cast< long >(val2);
31408 {
31409 PyThreadState* __tstate = wxPyBeginAllowThreads();
31410 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31411 wxPyEndAllowThreads(__tstate);
31412 if (PyErr_Occurred()) SWIG_fail;
31413 }
31414 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31415 return resultobj;
31416 fail:
31417 return NULL;
31418 }
31419
31420
31421 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31422 PyObject *resultobj = 0;
31423 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31424 long arg2 ;
31425 wxFont *arg3 = 0 ;
31426 void *argp1 = 0 ;
31427 int res1 = 0 ;
31428 long val2 ;
31429 int ecode2 = 0 ;
31430 void *argp3 = 0 ;
31431 int res3 = 0 ;
31432 PyObject * obj0 = 0 ;
31433 PyObject * obj1 = 0 ;
31434 PyObject * obj2 = 0 ;
31435 char * kwnames[] = {
31436 (char *) "self",(char *) "item",(char *) "f", NULL
31437 };
31438
31439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31441 if (!SWIG_IsOK(res1)) {
31442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31443 }
31444 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31445 ecode2 = SWIG_AsVal_long(obj1, &val2);
31446 if (!SWIG_IsOK(ecode2)) {
31447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31448 }
31449 arg2 = static_cast< long >(val2);
31450 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31451 if (!SWIG_IsOK(res3)) {
31452 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31453 }
31454 if (!argp3) {
31455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31456 }
31457 arg3 = reinterpret_cast< wxFont * >(argp3);
31458 {
31459 PyThreadState* __tstate = wxPyBeginAllowThreads();
31460 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31461 wxPyEndAllowThreads(__tstate);
31462 if (PyErr_Occurred()) SWIG_fail;
31463 }
31464 resultobj = SWIG_Py_Void();
31465 return resultobj;
31466 fail:
31467 return NULL;
31468 }
31469
31470
31471 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31472 PyObject *resultobj = 0;
31473 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31474 long arg2 ;
31475 wxFont result;
31476 void *argp1 = 0 ;
31477 int res1 = 0 ;
31478 long val2 ;
31479 int ecode2 = 0 ;
31480 PyObject * obj0 = 0 ;
31481 PyObject * obj1 = 0 ;
31482 char * kwnames[] = {
31483 (char *) "self",(char *) "item", NULL
31484 };
31485
31486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31488 if (!SWIG_IsOK(res1)) {
31489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31490 }
31491 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31492 ecode2 = SWIG_AsVal_long(obj1, &val2);
31493 if (!SWIG_IsOK(ecode2)) {
31494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31495 }
31496 arg2 = static_cast< long >(val2);
31497 {
31498 PyThreadState* __tstate = wxPyBeginAllowThreads();
31499 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31500 wxPyEndAllowThreads(__tstate);
31501 if (PyErr_Occurred()) SWIG_fail;
31502 }
31503 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31504 return resultobj;
31505 fail:
31506 return NULL;
31507 }
31508
31509
31510 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31511 PyObject *resultobj = 0;
31512 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31513 PyObject *arg2 = (PyObject *) 0 ;
31514 bool result;
31515 void *argp1 = 0 ;
31516 int res1 = 0 ;
31517 PyObject * obj0 = 0 ;
31518 PyObject * obj1 = 0 ;
31519 char * kwnames[] = {
31520 (char *) "self",(char *) "func", NULL
31521 };
31522
31523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31525 if (!SWIG_IsOK(res1)) {
31526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31527 }
31528 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31529 arg2 = obj1;
31530 {
31531 PyThreadState* __tstate = wxPyBeginAllowThreads();
31532 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31533 wxPyEndAllowThreads(__tstate);
31534 if (PyErr_Occurred()) SWIG_fail;
31535 }
31536 {
31537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31538 }
31539 return resultobj;
31540 fail:
31541 return NULL;
31542 }
31543
31544
31545 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31546 PyObject *resultobj = 0;
31547 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31548 wxWindow *result = 0 ;
31549 void *argp1 = 0 ;
31550 int res1 = 0 ;
31551 PyObject *swig_obj[1] ;
31552
31553 if (!args) SWIG_fail;
31554 swig_obj[0] = args;
31555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31556 if (!SWIG_IsOK(res1)) {
31557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31558 }
31559 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31560 {
31561 PyThreadState* __tstate = wxPyBeginAllowThreads();
31562 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31563 wxPyEndAllowThreads(__tstate);
31564 if (PyErr_Occurred()) SWIG_fail;
31565 }
31566 {
31567 resultobj = wxPyMake_wxObject(result, 0);
31568 }
31569 return resultobj;
31570 fail:
31571 return NULL;
31572 }
31573
31574
31575 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31576 PyObject *resultobj = 0;
31577 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31578 SwigValueWrapper<wxVisualAttributes > result;
31579 int val1 ;
31580 int ecode1 = 0 ;
31581 PyObject * obj0 = 0 ;
31582 char * kwnames[] = {
31583 (char *) "variant", NULL
31584 };
31585
31586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31587 if (obj0) {
31588 ecode1 = SWIG_AsVal_int(obj0, &val1);
31589 if (!SWIG_IsOK(ecode1)) {
31590 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31591 }
31592 arg1 = static_cast< wxWindowVariant >(val1);
31593 }
31594 {
31595 if (!wxPyCheckForApp()) SWIG_fail;
31596 PyThreadState* __tstate = wxPyBeginAllowThreads();
31597 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31598 wxPyEndAllowThreads(__tstate);
31599 if (PyErr_Occurred()) SWIG_fail;
31600 }
31601 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31602 return resultobj;
31603 fail:
31604 return NULL;
31605 }
31606
31607
31608 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31609 PyObject *obj;
31610 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31611 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31612 return SWIG_Py_Void();
31613 }
31614
31615 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31616 return SWIG_Python_InitShadowInstance(args);
31617 }
31618
31619 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31620 PyObject *resultobj = 0;
31621 wxWindow *arg1 = (wxWindow *) 0 ;
31622 int arg2 = (int) -1 ;
31623 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31624 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31625 wxSize const &arg4_defvalue = wxDefaultSize ;
31626 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31627 long arg5 = (long) wxLC_REPORT ;
31628 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31629 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31630 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31631 wxString *arg7 = (wxString *) &arg7_defvalue ;
31632 wxListView *result = 0 ;
31633 void *argp1 = 0 ;
31634 int res1 = 0 ;
31635 int val2 ;
31636 int ecode2 = 0 ;
31637 wxPoint temp3 ;
31638 wxSize temp4 ;
31639 long val5 ;
31640 int ecode5 = 0 ;
31641 void *argp6 = 0 ;
31642 int res6 = 0 ;
31643 bool temp7 = false ;
31644 PyObject * obj0 = 0 ;
31645 PyObject * obj1 = 0 ;
31646 PyObject * obj2 = 0 ;
31647 PyObject * obj3 = 0 ;
31648 PyObject * obj4 = 0 ;
31649 PyObject * obj5 = 0 ;
31650 PyObject * obj6 = 0 ;
31651 char * kwnames[] = {
31652 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31653 };
31654
31655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31657 if (!SWIG_IsOK(res1)) {
31658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31659 }
31660 arg1 = reinterpret_cast< wxWindow * >(argp1);
31661 if (obj1) {
31662 ecode2 = SWIG_AsVal_int(obj1, &val2);
31663 if (!SWIG_IsOK(ecode2)) {
31664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31665 }
31666 arg2 = static_cast< int >(val2);
31667 }
31668 if (obj2) {
31669 {
31670 arg3 = &temp3;
31671 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31672 }
31673 }
31674 if (obj3) {
31675 {
31676 arg4 = &temp4;
31677 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31678 }
31679 }
31680 if (obj4) {
31681 ecode5 = SWIG_AsVal_long(obj4, &val5);
31682 if (!SWIG_IsOK(ecode5)) {
31683 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31684 }
31685 arg5 = static_cast< long >(val5);
31686 }
31687 if (obj5) {
31688 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31689 if (!SWIG_IsOK(res6)) {
31690 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31691 }
31692 if (!argp6) {
31693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31694 }
31695 arg6 = reinterpret_cast< wxValidator * >(argp6);
31696 }
31697 if (obj6) {
31698 {
31699 arg7 = wxString_in_helper(obj6);
31700 if (arg7 == NULL) SWIG_fail;
31701 temp7 = true;
31702 }
31703 }
31704 {
31705 if (!wxPyCheckForApp()) SWIG_fail;
31706 PyThreadState* __tstate = wxPyBeginAllowThreads();
31707 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31708 wxPyEndAllowThreads(__tstate);
31709 if (PyErr_Occurred()) SWIG_fail;
31710 }
31711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31712 {
31713 if (temp7)
31714 delete arg7;
31715 }
31716 return resultobj;
31717 fail:
31718 {
31719 if (temp7)
31720 delete arg7;
31721 }
31722 return NULL;
31723 }
31724
31725
31726 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31727 PyObject *resultobj = 0;
31728 wxListView *result = 0 ;
31729
31730 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31731 {
31732 if (!wxPyCheckForApp()) SWIG_fail;
31733 PyThreadState* __tstate = wxPyBeginAllowThreads();
31734 result = (wxListView *)new wxListView();
31735 wxPyEndAllowThreads(__tstate);
31736 if (PyErr_Occurred()) SWIG_fail;
31737 }
31738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31739 return resultobj;
31740 fail:
31741 return NULL;
31742 }
31743
31744
31745 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31746 PyObject *resultobj = 0;
31747 wxListView *arg1 = (wxListView *) 0 ;
31748 wxWindow *arg2 = (wxWindow *) 0 ;
31749 int arg3 = (int) -1 ;
31750 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31751 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31752 wxSize const &arg5_defvalue = wxDefaultSize ;
31753 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31754 long arg6 = (long) wxLC_REPORT ;
31755 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31756 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31757 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31758 wxString *arg8 = (wxString *) &arg8_defvalue ;
31759 bool result;
31760 void *argp1 = 0 ;
31761 int res1 = 0 ;
31762 void *argp2 = 0 ;
31763 int res2 = 0 ;
31764 int val3 ;
31765 int ecode3 = 0 ;
31766 wxPoint temp4 ;
31767 wxSize temp5 ;
31768 long val6 ;
31769 int ecode6 = 0 ;
31770 void *argp7 = 0 ;
31771 int res7 = 0 ;
31772 bool temp8 = false ;
31773 PyObject * obj0 = 0 ;
31774 PyObject * obj1 = 0 ;
31775 PyObject * obj2 = 0 ;
31776 PyObject * obj3 = 0 ;
31777 PyObject * obj4 = 0 ;
31778 PyObject * obj5 = 0 ;
31779 PyObject * obj6 = 0 ;
31780 PyObject * obj7 = 0 ;
31781 char * kwnames[] = {
31782 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31783 };
31784
31785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31787 if (!SWIG_IsOK(res1)) {
31788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31789 }
31790 arg1 = reinterpret_cast< wxListView * >(argp1);
31791 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31792 if (!SWIG_IsOK(res2)) {
31793 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31794 }
31795 arg2 = reinterpret_cast< wxWindow * >(argp2);
31796 if (obj2) {
31797 ecode3 = SWIG_AsVal_int(obj2, &val3);
31798 if (!SWIG_IsOK(ecode3)) {
31799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31800 }
31801 arg3 = static_cast< int >(val3);
31802 }
31803 if (obj3) {
31804 {
31805 arg4 = &temp4;
31806 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31807 }
31808 }
31809 if (obj4) {
31810 {
31811 arg5 = &temp5;
31812 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31813 }
31814 }
31815 if (obj5) {
31816 ecode6 = SWIG_AsVal_long(obj5, &val6);
31817 if (!SWIG_IsOK(ecode6)) {
31818 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31819 }
31820 arg6 = static_cast< long >(val6);
31821 }
31822 if (obj6) {
31823 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31824 if (!SWIG_IsOK(res7)) {
31825 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31826 }
31827 if (!argp7) {
31828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31829 }
31830 arg7 = reinterpret_cast< wxValidator * >(argp7);
31831 }
31832 if (obj7) {
31833 {
31834 arg8 = wxString_in_helper(obj7);
31835 if (arg8 == NULL) SWIG_fail;
31836 temp8 = true;
31837 }
31838 }
31839 {
31840 PyThreadState* __tstate = wxPyBeginAllowThreads();
31841 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31842 wxPyEndAllowThreads(__tstate);
31843 if (PyErr_Occurred()) SWIG_fail;
31844 }
31845 {
31846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31847 }
31848 {
31849 if (temp8)
31850 delete arg8;
31851 }
31852 return resultobj;
31853 fail:
31854 {
31855 if (temp8)
31856 delete arg8;
31857 }
31858 return NULL;
31859 }
31860
31861
31862 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31863 PyObject *resultobj = 0;
31864 wxListView *arg1 = (wxListView *) 0 ;
31865 long arg2 ;
31866 bool arg3 = (bool) true ;
31867 void *argp1 = 0 ;
31868 int res1 = 0 ;
31869 long val2 ;
31870 int ecode2 = 0 ;
31871 bool val3 ;
31872 int ecode3 = 0 ;
31873 PyObject * obj0 = 0 ;
31874 PyObject * obj1 = 0 ;
31875 PyObject * obj2 = 0 ;
31876 char * kwnames[] = {
31877 (char *) "self",(char *) "n",(char *) "on", NULL
31878 };
31879
31880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31882 if (!SWIG_IsOK(res1)) {
31883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31884 }
31885 arg1 = reinterpret_cast< wxListView * >(argp1);
31886 ecode2 = SWIG_AsVal_long(obj1, &val2);
31887 if (!SWIG_IsOK(ecode2)) {
31888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31889 }
31890 arg2 = static_cast< long >(val2);
31891 if (obj2) {
31892 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31893 if (!SWIG_IsOK(ecode3)) {
31894 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31895 }
31896 arg3 = static_cast< bool >(val3);
31897 }
31898 {
31899 PyThreadState* __tstate = wxPyBeginAllowThreads();
31900 (arg1)->Select(arg2,arg3);
31901 wxPyEndAllowThreads(__tstate);
31902 if (PyErr_Occurred()) SWIG_fail;
31903 }
31904 resultobj = SWIG_Py_Void();
31905 return resultobj;
31906 fail:
31907 return NULL;
31908 }
31909
31910
31911 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31912 PyObject *resultobj = 0;
31913 wxListView *arg1 = (wxListView *) 0 ;
31914 long arg2 ;
31915 void *argp1 = 0 ;
31916 int res1 = 0 ;
31917 long val2 ;
31918 int ecode2 = 0 ;
31919 PyObject * obj0 = 0 ;
31920 PyObject * obj1 = 0 ;
31921 char * kwnames[] = {
31922 (char *) "self",(char *) "index", NULL
31923 };
31924
31925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31927 if (!SWIG_IsOK(res1)) {
31928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31929 }
31930 arg1 = reinterpret_cast< wxListView * >(argp1);
31931 ecode2 = SWIG_AsVal_long(obj1, &val2);
31932 if (!SWIG_IsOK(ecode2)) {
31933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
31934 }
31935 arg2 = static_cast< long >(val2);
31936 {
31937 PyThreadState* __tstate = wxPyBeginAllowThreads();
31938 (arg1)->Focus(arg2);
31939 wxPyEndAllowThreads(__tstate);
31940 if (PyErr_Occurred()) SWIG_fail;
31941 }
31942 resultobj = SWIG_Py_Void();
31943 return resultobj;
31944 fail:
31945 return NULL;
31946 }
31947
31948
31949 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31950 PyObject *resultobj = 0;
31951 wxListView *arg1 = (wxListView *) 0 ;
31952 long result;
31953 void *argp1 = 0 ;
31954 int res1 = 0 ;
31955 PyObject *swig_obj[1] ;
31956
31957 if (!args) SWIG_fail;
31958 swig_obj[0] = args;
31959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31960 if (!SWIG_IsOK(res1)) {
31961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
31962 }
31963 arg1 = reinterpret_cast< wxListView * >(argp1);
31964 {
31965 PyThreadState* __tstate = wxPyBeginAllowThreads();
31966 result = (long)((wxListView const *)arg1)->GetFocusedItem();
31967 wxPyEndAllowThreads(__tstate);
31968 if (PyErr_Occurred()) SWIG_fail;
31969 }
31970 resultobj = SWIG_From_long(static_cast< long >(result));
31971 return resultobj;
31972 fail:
31973 return NULL;
31974 }
31975
31976
31977 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31978 PyObject *resultobj = 0;
31979 wxListView *arg1 = (wxListView *) 0 ;
31980 long arg2 ;
31981 long result;
31982 void *argp1 = 0 ;
31983 int res1 = 0 ;
31984 long val2 ;
31985 int ecode2 = 0 ;
31986 PyObject * obj0 = 0 ;
31987 PyObject * obj1 = 0 ;
31988 char * kwnames[] = {
31989 (char *) "self",(char *) "item", NULL
31990 };
31991
31992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31994 if (!SWIG_IsOK(res1)) {
31995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31996 }
31997 arg1 = reinterpret_cast< wxListView * >(argp1);
31998 ecode2 = SWIG_AsVal_long(obj1, &val2);
31999 if (!SWIG_IsOK(ecode2)) {
32000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32001 }
32002 arg2 = static_cast< long >(val2);
32003 {
32004 PyThreadState* __tstate = wxPyBeginAllowThreads();
32005 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32006 wxPyEndAllowThreads(__tstate);
32007 if (PyErr_Occurred()) SWIG_fail;
32008 }
32009 resultobj = SWIG_From_long(static_cast< long >(result));
32010 return resultobj;
32011 fail:
32012 return NULL;
32013 }
32014
32015
32016 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32017 PyObject *resultobj = 0;
32018 wxListView *arg1 = (wxListView *) 0 ;
32019 long result;
32020 void *argp1 = 0 ;
32021 int res1 = 0 ;
32022 PyObject *swig_obj[1] ;
32023
32024 if (!args) SWIG_fail;
32025 swig_obj[0] = args;
32026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32027 if (!SWIG_IsOK(res1)) {
32028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32029 }
32030 arg1 = reinterpret_cast< wxListView * >(argp1);
32031 {
32032 PyThreadState* __tstate = wxPyBeginAllowThreads();
32033 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32034 wxPyEndAllowThreads(__tstate);
32035 if (PyErr_Occurred()) SWIG_fail;
32036 }
32037 resultobj = SWIG_From_long(static_cast< long >(result));
32038 return resultobj;
32039 fail:
32040 return NULL;
32041 }
32042
32043
32044 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32045 PyObject *resultobj = 0;
32046 wxListView *arg1 = (wxListView *) 0 ;
32047 long arg2 ;
32048 bool result;
32049 void *argp1 = 0 ;
32050 int res1 = 0 ;
32051 long val2 ;
32052 int ecode2 = 0 ;
32053 PyObject * obj0 = 0 ;
32054 PyObject * obj1 = 0 ;
32055 char * kwnames[] = {
32056 (char *) "self",(char *) "index", NULL
32057 };
32058
32059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32061 if (!SWIG_IsOK(res1)) {
32062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32063 }
32064 arg1 = reinterpret_cast< wxListView * >(argp1);
32065 ecode2 = SWIG_AsVal_long(obj1, &val2);
32066 if (!SWIG_IsOK(ecode2)) {
32067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32068 }
32069 arg2 = static_cast< long >(val2);
32070 {
32071 PyThreadState* __tstate = wxPyBeginAllowThreads();
32072 result = (bool)(arg1)->IsSelected(arg2);
32073 wxPyEndAllowThreads(__tstate);
32074 if (PyErr_Occurred()) SWIG_fail;
32075 }
32076 {
32077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32078 }
32079 return resultobj;
32080 fail:
32081 return NULL;
32082 }
32083
32084
32085 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32086 PyObject *resultobj = 0;
32087 wxListView *arg1 = (wxListView *) 0 ;
32088 int arg2 ;
32089 int arg3 ;
32090 void *argp1 = 0 ;
32091 int res1 = 0 ;
32092 int val2 ;
32093 int ecode2 = 0 ;
32094 int val3 ;
32095 int ecode3 = 0 ;
32096 PyObject * obj0 = 0 ;
32097 PyObject * obj1 = 0 ;
32098 PyObject * obj2 = 0 ;
32099 char * kwnames[] = {
32100 (char *) "self",(char *) "col",(char *) "image", NULL
32101 };
32102
32103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32105 if (!SWIG_IsOK(res1)) {
32106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32107 }
32108 arg1 = reinterpret_cast< wxListView * >(argp1);
32109 ecode2 = SWIG_AsVal_int(obj1, &val2);
32110 if (!SWIG_IsOK(ecode2)) {
32111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32112 }
32113 arg2 = static_cast< int >(val2);
32114 ecode3 = SWIG_AsVal_int(obj2, &val3);
32115 if (!SWIG_IsOK(ecode3)) {
32116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32117 }
32118 arg3 = static_cast< int >(val3);
32119 {
32120 PyThreadState* __tstate = wxPyBeginAllowThreads();
32121 (arg1)->SetColumnImage(arg2,arg3);
32122 wxPyEndAllowThreads(__tstate);
32123 if (PyErr_Occurred()) SWIG_fail;
32124 }
32125 resultobj = SWIG_Py_Void();
32126 return resultobj;
32127 fail:
32128 return NULL;
32129 }
32130
32131
32132 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32133 PyObject *resultobj = 0;
32134 wxListView *arg1 = (wxListView *) 0 ;
32135 int arg2 ;
32136 void *argp1 = 0 ;
32137 int res1 = 0 ;
32138 int val2 ;
32139 int ecode2 = 0 ;
32140 PyObject * obj0 = 0 ;
32141 PyObject * obj1 = 0 ;
32142 char * kwnames[] = {
32143 (char *) "self",(char *) "col", NULL
32144 };
32145
32146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32148 if (!SWIG_IsOK(res1)) {
32149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32150 }
32151 arg1 = reinterpret_cast< wxListView * >(argp1);
32152 ecode2 = SWIG_AsVal_int(obj1, &val2);
32153 if (!SWIG_IsOK(ecode2)) {
32154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32155 }
32156 arg2 = static_cast< int >(val2);
32157 {
32158 PyThreadState* __tstate = wxPyBeginAllowThreads();
32159 (arg1)->ClearColumnImage(arg2);
32160 wxPyEndAllowThreads(__tstate);
32161 if (PyErr_Occurred()) SWIG_fail;
32162 }
32163 resultobj = SWIG_Py_Void();
32164 return resultobj;
32165 fail:
32166 return NULL;
32167 }
32168
32169
32170 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32171 PyObject *obj;
32172 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32173 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32174 return SWIG_Py_Void();
32175 }
32176
32177 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32178 return SWIG_Python_InitShadowInstance(args);
32179 }
32180
32181 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32182 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32183 return 1;
32184 }
32185
32186
32187 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32188 PyObject *pyobj = 0;
32189
32190 {
32191 #if wxUSE_UNICODE
32192 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32193 #else
32194 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32195 #endif
32196 }
32197 return pyobj;
32198 }
32199
32200
32201 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32202 PyObject *resultobj = 0;
32203 wxTreeItemId *result = 0 ;
32204
32205 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32206 {
32207 PyThreadState* __tstate = wxPyBeginAllowThreads();
32208 result = (wxTreeItemId *)new wxTreeItemId();
32209 wxPyEndAllowThreads(__tstate);
32210 if (PyErr_Occurred()) SWIG_fail;
32211 }
32212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32213 return resultobj;
32214 fail:
32215 return NULL;
32216 }
32217
32218
32219 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32220 PyObject *resultobj = 0;
32221 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32222 void *argp1 = 0 ;
32223 int res1 = 0 ;
32224 PyObject *swig_obj[1] ;
32225
32226 if (!args) SWIG_fail;
32227 swig_obj[0] = args;
32228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32229 if (!SWIG_IsOK(res1)) {
32230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32231 }
32232 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32233 {
32234 PyThreadState* __tstate = wxPyBeginAllowThreads();
32235 delete arg1;
32236
32237 wxPyEndAllowThreads(__tstate);
32238 if (PyErr_Occurred()) SWIG_fail;
32239 }
32240 resultobj = SWIG_Py_Void();
32241 return resultobj;
32242 fail:
32243 return NULL;
32244 }
32245
32246
32247 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32248 PyObject *resultobj = 0;
32249 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32250 bool result;
32251 void *argp1 = 0 ;
32252 int res1 = 0 ;
32253 PyObject *swig_obj[1] ;
32254
32255 if (!args) SWIG_fail;
32256 swig_obj[0] = args;
32257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32258 if (!SWIG_IsOK(res1)) {
32259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32260 }
32261 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32262 {
32263 PyThreadState* __tstate = wxPyBeginAllowThreads();
32264 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32265 wxPyEndAllowThreads(__tstate);
32266 if (PyErr_Occurred()) SWIG_fail;
32267 }
32268 {
32269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32270 }
32271 return resultobj;
32272 fail:
32273 return NULL;
32274 }
32275
32276
32277 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32278 PyObject *resultobj = 0;
32279 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32280 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32281 bool result;
32282 void *argp1 = 0 ;
32283 int res1 = 0 ;
32284 void *argp2 = 0 ;
32285 int res2 = 0 ;
32286 PyObject * obj0 = 0 ;
32287 PyObject * obj1 = 0 ;
32288 char * kwnames[] = {
32289 (char *) "self",(char *) "other", NULL
32290 };
32291
32292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32294 if (!SWIG_IsOK(res1)) {
32295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32296 }
32297 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32298 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32299 if (!SWIG_IsOK(res2)) {
32300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32301 }
32302 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32303 {
32304 PyThreadState* __tstate = wxPyBeginAllowThreads();
32305 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32306 wxPyEndAllowThreads(__tstate);
32307 if (PyErr_Occurred()) SWIG_fail;
32308 }
32309 {
32310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32311 }
32312 return resultobj;
32313 fail:
32314 return NULL;
32315 }
32316
32317
32318 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32319 PyObject *resultobj = 0;
32320 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32321 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32322 bool result;
32323 void *argp1 = 0 ;
32324 int res1 = 0 ;
32325 void *argp2 = 0 ;
32326 int res2 = 0 ;
32327 PyObject * obj0 = 0 ;
32328 PyObject * obj1 = 0 ;
32329 char * kwnames[] = {
32330 (char *) "self",(char *) "other", NULL
32331 };
32332
32333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32335 if (!SWIG_IsOK(res1)) {
32336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32337 }
32338 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32339 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32340 if (!SWIG_IsOK(res2)) {
32341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32342 }
32343 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32344 {
32345 PyThreadState* __tstate = wxPyBeginAllowThreads();
32346 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32347 wxPyEndAllowThreads(__tstate);
32348 if (PyErr_Occurred()) SWIG_fail;
32349 }
32350 {
32351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32352 }
32353 return resultobj;
32354 fail:
32355 return NULL;
32356 }
32357
32358
32359 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32360 PyObject *resultobj = 0;
32361 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32362 void *arg2 = (void *) 0 ;
32363 void *argp1 = 0 ;
32364 int res1 = 0 ;
32365 int res2 ;
32366 PyObject *swig_obj[2] ;
32367
32368 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32370 if (!SWIG_IsOK(res1)) {
32371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32372 }
32373 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32374 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32375 if (!SWIG_IsOK(res2)) {
32376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32377 }
32378 if (arg1) (arg1)->m_pItem = arg2;
32379
32380 resultobj = SWIG_Py_Void();
32381 return resultobj;
32382 fail:
32383 return NULL;
32384 }
32385
32386
32387 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32388 PyObject *resultobj = 0;
32389 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32390 void *result = 0 ;
32391 void *argp1 = 0 ;
32392 int res1 = 0 ;
32393 PyObject *swig_obj[1] ;
32394
32395 if (!args) SWIG_fail;
32396 swig_obj[0] = args;
32397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32398 if (!SWIG_IsOK(res1)) {
32399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32400 }
32401 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32402 result = (void *) ((arg1)->m_pItem);
32403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32404 return resultobj;
32405 fail:
32406 return NULL;
32407 }
32408
32409
32410 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32411 PyObject *obj;
32412 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32413 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32414 return SWIG_Py_Void();
32415 }
32416
32417 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32418 return SWIG_Python_InitShadowInstance(args);
32419 }
32420
32421 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32422 PyObject *resultobj = 0;
32423 PyObject *arg1 = (PyObject *) NULL ;
32424 wxPyTreeItemData *result = 0 ;
32425 PyObject * obj0 = 0 ;
32426 char * kwnames[] = {
32427 (char *) "obj", NULL
32428 };
32429
32430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32431 if (obj0) {
32432 arg1 = obj0;
32433 }
32434 {
32435 PyThreadState* __tstate = wxPyBeginAllowThreads();
32436 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32437 wxPyEndAllowThreads(__tstate);
32438 if (PyErr_Occurred()) SWIG_fail;
32439 }
32440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32441 return resultobj;
32442 fail:
32443 return NULL;
32444 }
32445
32446
32447 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32448 PyObject *resultobj = 0;
32449 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32450 void *argp1 = 0 ;
32451 int res1 = 0 ;
32452 PyObject *swig_obj[1] ;
32453
32454 if (!args) SWIG_fail;
32455 swig_obj[0] = args;
32456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32457 if (!SWIG_IsOK(res1)) {
32458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32459 }
32460 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32461 {
32462 PyThreadState* __tstate = wxPyBeginAllowThreads();
32463 delete arg1;
32464
32465 wxPyEndAllowThreads(__tstate);
32466 if (PyErr_Occurred()) SWIG_fail;
32467 }
32468 resultobj = SWIG_Py_Void();
32469 return resultobj;
32470 fail:
32471 return NULL;
32472 }
32473
32474
32475 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32476 PyObject *resultobj = 0;
32477 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32478 PyObject *result = 0 ;
32479 void *argp1 = 0 ;
32480 int res1 = 0 ;
32481 PyObject *swig_obj[1] ;
32482
32483 if (!args) SWIG_fail;
32484 swig_obj[0] = args;
32485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32486 if (!SWIG_IsOK(res1)) {
32487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32488 }
32489 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32490 {
32491 PyThreadState* __tstate = wxPyBeginAllowThreads();
32492 result = (PyObject *)(arg1)->GetData();
32493 wxPyEndAllowThreads(__tstate);
32494 if (PyErr_Occurred()) SWIG_fail;
32495 }
32496 resultobj = result;
32497 return resultobj;
32498 fail:
32499 return NULL;
32500 }
32501
32502
32503 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32504 PyObject *resultobj = 0;
32505 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32506 PyObject *arg2 = (PyObject *) 0 ;
32507 void *argp1 = 0 ;
32508 int res1 = 0 ;
32509 PyObject * obj0 = 0 ;
32510 PyObject * obj1 = 0 ;
32511 char * kwnames[] = {
32512 (char *) "self",(char *) "obj", NULL
32513 };
32514
32515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32517 if (!SWIG_IsOK(res1)) {
32518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32519 }
32520 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32521 arg2 = obj1;
32522 {
32523 PyThreadState* __tstate = wxPyBeginAllowThreads();
32524 (arg1)->SetData(arg2);
32525 wxPyEndAllowThreads(__tstate);
32526 if (PyErr_Occurred()) SWIG_fail;
32527 }
32528 resultobj = SWIG_Py_Void();
32529 return resultobj;
32530 fail:
32531 return NULL;
32532 }
32533
32534
32535 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32536 PyObject *resultobj = 0;
32537 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32538 wxTreeItemId *result = 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_wxPyTreeItemData, 0 | 0 );
32546 if (!SWIG_IsOK(res1)) {
32547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32548 }
32549 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32550 {
32551 PyThreadState* __tstate = wxPyBeginAllowThreads();
32552 {
32553 wxTreeItemId const &_result_ref = (arg1)->GetId();
32554 result = (wxTreeItemId *) &_result_ref;
32555 }
32556 wxPyEndAllowThreads(__tstate);
32557 if (PyErr_Occurred()) SWIG_fail;
32558 }
32559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32560 return resultobj;
32561 fail:
32562 return NULL;
32563 }
32564
32565
32566 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32567 PyObject *resultobj = 0;
32568 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32569 wxTreeItemId *arg2 = 0 ;
32570 void *argp1 = 0 ;
32571 int res1 = 0 ;
32572 void *argp2 = 0 ;
32573 int res2 = 0 ;
32574 PyObject * obj0 = 0 ;
32575 PyObject * obj1 = 0 ;
32576 char * kwnames[] = {
32577 (char *) "self",(char *) "id", NULL
32578 };
32579
32580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32582 if (!SWIG_IsOK(res1)) {
32583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32584 }
32585 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32586 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32587 if (!SWIG_IsOK(res2)) {
32588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32589 }
32590 if (!argp2) {
32591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32592 }
32593 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32594 {
32595 PyThreadState* __tstate = wxPyBeginAllowThreads();
32596 (arg1)->SetId((wxTreeItemId const &)*arg2);
32597 wxPyEndAllowThreads(__tstate);
32598 if (PyErr_Occurred()) SWIG_fail;
32599 }
32600 resultobj = SWIG_Py_Void();
32601 return resultobj;
32602 fail:
32603 return NULL;
32604 }
32605
32606
32607 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32608 PyObject *resultobj = 0;
32609 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32610 void *argp1 = 0 ;
32611 int res1 = 0 ;
32612 PyObject *swig_obj[1] ;
32613
32614 if (!args) SWIG_fail;
32615 swig_obj[0] = args;
32616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32617 if (!SWIG_IsOK(res1)) {
32618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32619 }
32620 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32621 {
32622 PyThreadState* __tstate = wxPyBeginAllowThreads();
32623 wxPyTreeItemData_Destroy(arg1);
32624 wxPyEndAllowThreads(__tstate);
32625 if (PyErr_Occurred()) SWIG_fail;
32626 }
32627 resultobj = SWIG_Py_Void();
32628 return resultobj;
32629 fail:
32630 return NULL;
32631 }
32632
32633
32634 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32635 PyObject *obj;
32636 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32637 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32638 return SWIG_Py_Void();
32639 }
32640
32641 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32642 return SWIG_Python_InitShadowInstance(args);
32643 }
32644
32645 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32646 PyObject *resultobj = 0;
32647 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32648 int arg2 = (int) 0 ;
32649 wxTreeEvent *result = 0 ;
32650 int val1 ;
32651 int ecode1 = 0 ;
32652 int val2 ;
32653 int ecode2 = 0 ;
32654 PyObject * obj0 = 0 ;
32655 PyObject * obj1 = 0 ;
32656 char * kwnames[] = {
32657 (char *) "commandType",(char *) "id", NULL
32658 };
32659
32660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32661 if (obj0) {
32662 ecode1 = SWIG_AsVal_int(obj0, &val1);
32663 if (!SWIG_IsOK(ecode1)) {
32664 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32665 }
32666 arg1 = static_cast< wxEventType >(val1);
32667 }
32668 if (obj1) {
32669 ecode2 = SWIG_AsVal_int(obj1, &val2);
32670 if (!SWIG_IsOK(ecode2)) {
32671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32672 }
32673 arg2 = static_cast< int >(val2);
32674 }
32675 {
32676 PyThreadState* __tstate = wxPyBeginAllowThreads();
32677 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32678 wxPyEndAllowThreads(__tstate);
32679 if (PyErr_Occurred()) SWIG_fail;
32680 }
32681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32682 return resultobj;
32683 fail:
32684 return NULL;
32685 }
32686
32687
32688 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32689 PyObject *resultobj = 0;
32690 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32691 wxTreeItemId result;
32692 void *argp1 = 0 ;
32693 int res1 = 0 ;
32694 PyObject *swig_obj[1] ;
32695
32696 if (!args) SWIG_fail;
32697 swig_obj[0] = args;
32698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32699 if (!SWIG_IsOK(res1)) {
32700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32701 }
32702 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32703 {
32704 PyThreadState* __tstate = wxPyBeginAllowThreads();
32705 result = ((wxTreeEvent const *)arg1)->GetItem();
32706 wxPyEndAllowThreads(__tstate);
32707 if (PyErr_Occurred()) SWIG_fail;
32708 }
32709 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32710 return resultobj;
32711 fail:
32712 return NULL;
32713 }
32714
32715
32716 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32717 PyObject *resultobj = 0;
32718 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32719 wxTreeItemId *arg2 = 0 ;
32720 void *argp1 = 0 ;
32721 int res1 = 0 ;
32722 void *argp2 = 0 ;
32723 int res2 = 0 ;
32724 PyObject * obj0 = 0 ;
32725 PyObject * obj1 = 0 ;
32726 char * kwnames[] = {
32727 (char *) "self",(char *) "item", NULL
32728 };
32729
32730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32732 if (!SWIG_IsOK(res1)) {
32733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32734 }
32735 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32736 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32737 if (!SWIG_IsOK(res2)) {
32738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32739 }
32740 if (!argp2) {
32741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32742 }
32743 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32744 {
32745 PyThreadState* __tstate = wxPyBeginAllowThreads();
32746 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32747 wxPyEndAllowThreads(__tstate);
32748 if (PyErr_Occurred()) SWIG_fail;
32749 }
32750 resultobj = SWIG_Py_Void();
32751 return resultobj;
32752 fail:
32753 return NULL;
32754 }
32755
32756
32757 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32758 PyObject *resultobj = 0;
32759 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32760 wxTreeItemId result;
32761 void *argp1 = 0 ;
32762 int res1 = 0 ;
32763 PyObject *swig_obj[1] ;
32764
32765 if (!args) SWIG_fail;
32766 swig_obj[0] = args;
32767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32768 if (!SWIG_IsOK(res1)) {
32769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32770 }
32771 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32772 {
32773 PyThreadState* __tstate = wxPyBeginAllowThreads();
32774 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32775 wxPyEndAllowThreads(__tstate);
32776 if (PyErr_Occurred()) SWIG_fail;
32777 }
32778 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32779 return resultobj;
32780 fail:
32781 return NULL;
32782 }
32783
32784
32785 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32786 PyObject *resultobj = 0;
32787 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32788 wxTreeItemId *arg2 = 0 ;
32789 void *argp1 = 0 ;
32790 int res1 = 0 ;
32791 void *argp2 = 0 ;
32792 int res2 = 0 ;
32793 PyObject * obj0 = 0 ;
32794 PyObject * obj1 = 0 ;
32795 char * kwnames[] = {
32796 (char *) "self",(char *) "item", NULL
32797 };
32798
32799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32801 if (!SWIG_IsOK(res1)) {
32802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32803 }
32804 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32805 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32806 if (!SWIG_IsOK(res2)) {
32807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32808 }
32809 if (!argp2) {
32810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32811 }
32812 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32813 {
32814 PyThreadState* __tstate = wxPyBeginAllowThreads();
32815 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32816 wxPyEndAllowThreads(__tstate);
32817 if (PyErr_Occurred()) SWIG_fail;
32818 }
32819 resultobj = SWIG_Py_Void();
32820 return resultobj;
32821 fail:
32822 return NULL;
32823 }
32824
32825
32826 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32827 PyObject *resultobj = 0;
32828 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32829 wxPoint result;
32830 void *argp1 = 0 ;
32831 int res1 = 0 ;
32832 PyObject *swig_obj[1] ;
32833
32834 if (!args) SWIG_fail;
32835 swig_obj[0] = args;
32836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32837 if (!SWIG_IsOK(res1)) {
32838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32839 }
32840 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32841 {
32842 PyThreadState* __tstate = wxPyBeginAllowThreads();
32843 result = ((wxTreeEvent const *)arg1)->GetPoint();
32844 wxPyEndAllowThreads(__tstate);
32845 if (PyErr_Occurred()) SWIG_fail;
32846 }
32847 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32848 return resultobj;
32849 fail:
32850 return NULL;
32851 }
32852
32853
32854 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32855 PyObject *resultobj = 0;
32856 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32857 wxPoint *arg2 = 0 ;
32858 void *argp1 = 0 ;
32859 int res1 = 0 ;
32860 wxPoint temp2 ;
32861 PyObject * obj0 = 0 ;
32862 PyObject * obj1 = 0 ;
32863 char * kwnames[] = {
32864 (char *) "self",(char *) "pt", NULL
32865 };
32866
32867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32869 if (!SWIG_IsOK(res1)) {
32870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32871 }
32872 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32873 {
32874 arg2 = &temp2;
32875 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32876 }
32877 {
32878 PyThreadState* __tstate = wxPyBeginAllowThreads();
32879 (arg1)->SetPoint((wxPoint const &)*arg2);
32880 wxPyEndAllowThreads(__tstate);
32881 if (PyErr_Occurred()) SWIG_fail;
32882 }
32883 resultobj = SWIG_Py_Void();
32884 return resultobj;
32885 fail:
32886 return NULL;
32887 }
32888
32889
32890 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32891 PyObject *resultobj = 0;
32892 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32893 wxKeyEvent *result = 0 ;
32894 void *argp1 = 0 ;
32895 int res1 = 0 ;
32896 PyObject *swig_obj[1] ;
32897
32898 if (!args) SWIG_fail;
32899 swig_obj[0] = args;
32900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32901 if (!SWIG_IsOK(res1)) {
32902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32903 }
32904 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32905 {
32906 PyThreadState* __tstate = wxPyBeginAllowThreads();
32907 {
32908 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32909 result = (wxKeyEvent *) &_result_ref;
32910 }
32911 wxPyEndAllowThreads(__tstate);
32912 if (PyErr_Occurred()) SWIG_fail;
32913 }
32914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32915 return resultobj;
32916 fail:
32917 return NULL;
32918 }
32919
32920
32921 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32922 PyObject *resultobj = 0;
32923 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32924 int result;
32925 void *argp1 = 0 ;
32926 int res1 = 0 ;
32927 PyObject *swig_obj[1] ;
32928
32929 if (!args) SWIG_fail;
32930 swig_obj[0] = args;
32931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32932 if (!SWIG_IsOK(res1)) {
32933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32934 }
32935 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32936 {
32937 PyThreadState* __tstate = wxPyBeginAllowThreads();
32938 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
32939 wxPyEndAllowThreads(__tstate);
32940 if (PyErr_Occurred()) SWIG_fail;
32941 }
32942 resultobj = SWIG_From_int(static_cast< int >(result));
32943 return resultobj;
32944 fail:
32945 return NULL;
32946 }
32947
32948
32949 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32950 PyObject *resultobj = 0;
32951 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32952 wxKeyEvent *arg2 = 0 ;
32953 void *argp1 = 0 ;
32954 int res1 = 0 ;
32955 void *argp2 = 0 ;
32956 int res2 = 0 ;
32957 PyObject * obj0 = 0 ;
32958 PyObject * obj1 = 0 ;
32959 char * kwnames[] = {
32960 (char *) "self",(char *) "evt", NULL
32961 };
32962
32963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32965 if (!SWIG_IsOK(res1)) {
32966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32967 }
32968 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32969 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
32970 if (!SWIG_IsOK(res2)) {
32971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32972 }
32973 if (!argp2) {
32974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32975 }
32976 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
32977 {
32978 PyThreadState* __tstate = wxPyBeginAllowThreads();
32979 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
32980 wxPyEndAllowThreads(__tstate);
32981 if (PyErr_Occurred()) SWIG_fail;
32982 }
32983 resultobj = SWIG_Py_Void();
32984 return resultobj;
32985 fail:
32986 return NULL;
32987 }
32988
32989
32990 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32991 PyObject *resultobj = 0;
32992 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32993 wxString *result = 0 ;
32994 void *argp1 = 0 ;
32995 int res1 = 0 ;
32996 PyObject *swig_obj[1] ;
32997
32998 if (!args) SWIG_fail;
32999 swig_obj[0] = args;
33000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33001 if (!SWIG_IsOK(res1)) {
33002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33003 }
33004 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33005 {
33006 PyThreadState* __tstate = wxPyBeginAllowThreads();
33007 {
33008 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33009 result = (wxString *) &_result_ref;
33010 }
33011 wxPyEndAllowThreads(__tstate);
33012 if (PyErr_Occurred()) SWIG_fail;
33013 }
33014 {
33015 #if wxUSE_UNICODE
33016 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33017 #else
33018 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33019 #endif
33020 }
33021 return resultobj;
33022 fail:
33023 return NULL;
33024 }
33025
33026
33027 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33028 PyObject *resultobj = 0;
33029 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33030 wxString *arg2 = 0 ;
33031 void *argp1 = 0 ;
33032 int res1 = 0 ;
33033 bool temp2 = false ;
33034 PyObject * obj0 = 0 ;
33035 PyObject * obj1 = 0 ;
33036 char * kwnames[] = {
33037 (char *) "self",(char *) "label", NULL
33038 };
33039
33040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33042 if (!SWIG_IsOK(res1)) {
33043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33044 }
33045 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33046 {
33047 arg2 = wxString_in_helper(obj1);
33048 if (arg2 == NULL) SWIG_fail;
33049 temp2 = true;
33050 }
33051 {
33052 PyThreadState* __tstate = wxPyBeginAllowThreads();
33053 (arg1)->SetLabel((wxString const &)*arg2);
33054 wxPyEndAllowThreads(__tstate);
33055 if (PyErr_Occurred()) SWIG_fail;
33056 }
33057 resultobj = SWIG_Py_Void();
33058 {
33059 if (temp2)
33060 delete arg2;
33061 }
33062 return resultobj;
33063 fail:
33064 {
33065 if (temp2)
33066 delete arg2;
33067 }
33068 return NULL;
33069 }
33070
33071
33072 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33073 PyObject *resultobj = 0;
33074 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33075 bool result;
33076 void *argp1 = 0 ;
33077 int res1 = 0 ;
33078 PyObject *swig_obj[1] ;
33079
33080 if (!args) SWIG_fail;
33081 swig_obj[0] = args;
33082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33083 if (!SWIG_IsOK(res1)) {
33084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33085 }
33086 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33087 {
33088 PyThreadState* __tstate = wxPyBeginAllowThreads();
33089 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33090 wxPyEndAllowThreads(__tstate);
33091 if (PyErr_Occurred()) SWIG_fail;
33092 }
33093 {
33094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33095 }
33096 return resultobj;
33097 fail:
33098 return NULL;
33099 }
33100
33101
33102 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33103 PyObject *resultobj = 0;
33104 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33105 bool arg2 ;
33106 void *argp1 = 0 ;
33107 int res1 = 0 ;
33108 bool val2 ;
33109 int ecode2 = 0 ;
33110 PyObject * obj0 = 0 ;
33111 PyObject * obj1 = 0 ;
33112 char * kwnames[] = {
33113 (char *) "self",(char *) "editCancelled", NULL
33114 };
33115
33116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33118 if (!SWIG_IsOK(res1)) {
33119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33120 }
33121 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33122 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33123 if (!SWIG_IsOK(ecode2)) {
33124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33125 }
33126 arg2 = static_cast< bool >(val2);
33127 {
33128 PyThreadState* __tstate = wxPyBeginAllowThreads();
33129 (arg1)->SetEditCanceled(arg2);
33130 wxPyEndAllowThreads(__tstate);
33131 if (PyErr_Occurred()) SWIG_fail;
33132 }
33133 resultobj = SWIG_Py_Void();
33134 return resultobj;
33135 fail:
33136 return NULL;
33137 }
33138
33139
33140 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33141 PyObject *resultobj = 0;
33142 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33143 wxString *arg2 = 0 ;
33144 void *argp1 = 0 ;
33145 int res1 = 0 ;
33146 bool temp2 = false ;
33147 PyObject * obj0 = 0 ;
33148 PyObject * obj1 = 0 ;
33149 char * kwnames[] = {
33150 (char *) "self",(char *) "toolTip", NULL
33151 };
33152
33153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33155 if (!SWIG_IsOK(res1)) {
33156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33157 }
33158 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33159 {
33160 arg2 = wxString_in_helper(obj1);
33161 if (arg2 == NULL) SWIG_fail;
33162 temp2 = true;
33163 }
33164 {
33165 PyThreadState* __tstate = wxPyBeginAllowThreads();
33166 (arg1)->SetToolTip((wxString const &)*arg2);
33167 wxPyEndAllowThreads(__tstate);
33168 if (PyErr_Occurred()) SWIG_fail;
33169 }
33170 resultobj = SWIG_Py_Void();
33171 {
33172 if (temp2)
33173 delete arg2;
33174 }
33175 return resultobj;
33176 fail:
33177 {
33178 if (temp2)
33179 delete arg2;
33180 }
33181 return NULL;
33182 }
33183
33184
33185 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33186 PyObject *resultobj = 0;
33187 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33188 wxString result;
33189 void *argp1 = 0 ;
33190 int res1 = 0 ;
33191 PyObject *swig_obj[1] ;
33192
33193 if (!args) SWIG_fail;
33194 swig_obj[0] = args;
33195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33196 if (!SWIG_IsOK(res1)) {
33197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33198 }
33199 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33200 {
33201 PyThreadState* __tstate = wxPyBeginAllowThreads();
33202 result = (arg1)->GetToolTip();
33203 wxPyEndAllowThreads(__tstate);
33204 if (PyErr_Occurred()) SWIG_fail;
33205 }
33206 {
33207 #if wxUSE_UNICODE
33208 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33209 #else
33210 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33211 #endif
33212 }
33213 return resultobj;
33214 fail:
33215 return NULL;
33216 }
33217
33218
33219 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33220 PyObject *obj;
33221 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33222 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33223 return SWIG_Py_Void();
33224 }
33225
33226 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33227 return SWIG_Python_InitShadowInstance(args);
33228 }
33229
33230 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33231 PyObject *resultobj = 0;
33232 wxWindow *arg1 = (wxWindow *) 0 ;
33233 int arg2 = (int) -1 ;
33234 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33235 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33236 wxSize const &arg4_defvalue = wxDefaultSize ;
33237 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33238 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33239 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33240 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33241 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33242 wxString *arg7 = (wxString *) &arg7_defvalue ;
33243 wxPyTreeCtrl *result = 0 ;
33244 void *argp1 = 0 ;
33245 int res1 = 0 ;
33246 int val2 ;
33247 int ecode2 = 0 ;
33248 wxPoint temp3 ;
33249 wxSize temp4 ;
33250 long val5 ;
33251 int ecode5 = 0 ;
33252 void *argp6 = 0 ;
33253 int res6 = 0 ;
33254 bool temp7 = false ;
33255 PyObject * obj0 = 0 ;
33256 PyObject * obj1 = 0 ;
33257 PyObject * obj2 = 0 ;
33258 PyObject * obj3 = 0 ;
33259 PyObject * obj4 = 0 ;
33260 PyObject * obj5 = 0 ;
33261 PyObject * obj6 = 0 ;
33262 char * kwnames[] = {
33263 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33264 };
33265
33266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33268 if (!SWIG_IsOK(res1)) {
33269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33270 }
33271 arg1 = reinterpret_cast< wxWindow * >(argp1);
33272 if (obj1) {
33273 ecode2 = SWIG_AsVal_int(obj1, &val2);
33274 if (!SWIG_IsOK(ecode2)) {
33275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33276 }
33277 arg2 = static_cast< int >(val2);
33278 }
33279 if (obj2) {
33280 {
33281 arg3 = &temp3;
33282 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33283 }
33284 }
33285 if (obj3) {
33286 {
33287 arg4 = &temp4;
33288 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33289 }
33290 }
33291 if (obj4) {
33292 ecode5 = SWIG_AsVal_long(obj4, &val5);
33293 if (!SWIG_IsOK(ecode5)) {
33294 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33295 }
33296 arg5 = static_cast< long >(val5);
33297 }
33298 if (obj5) {
33299 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33300 if (!SWIG_IsOK(res6)) {
33301 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33302 }
33303 if (!argp6) {
33304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33305 }
33306 arg6 = reinterpret_cast< wxValidator * >(argp6);
33307 }
33308 if (obj6) {
33309 {
33310 arg7 = wxString_in_helper(obj6);
33311 if (arg7 == NULL) SWIG_fail;
33312 temp7 = true;
33313 }
33314 }
33315 {
33316 if (!wxPyCheckForApp()) SWIG_fail;
33317 PyThreadState* __tstate = wxPyBeginAllowThreads();
33318 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33319 wxPyEndAllowThreads(__tstate);
33320 if (PyErr_Occurred()) SWIG_fail;
33321 }
33322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33323 {
33324 if (temp7)
33325 delete arg7;
33326 }
33327 return resultobj;
33328 fail:
33329 {
33330 if (temp7)
33331 delete arg7;
33332 }
33333 return NULL;
33334 }
33335
33336
33337 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33338 PyObject *resultobj = 0;
33339 wxPyTreeCtrl *result = 0 ;
33340
33341 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33342 {
33343 if (!wxPyCheckForApp()) SWIG_fail;
33344 PyThreadState* __tstate = wxPyBeginAllowThreads();
33345 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33346 wxPyEndAllowThreads(__tstate);
33347 if (PyErr_Occurred()) SWIG_fail;
33348 }
33349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33350 return resultobj;
33351 fail:
33352 return NULL;
33353 }
33354
33355
33356 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33357 PyObject *resultobj = 0;
33358 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33359 wxWindow *arg2 = (wxWindow *) 0 ;
33360 int arg3 = (int) -1 ;
33361 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33362 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33363 wxSize const &arg5_defvalue = wxDefaultSize ;
33364 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33365 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33366 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33367 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33368 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33369 wxString *arg8 = (wxString *) &arg8_defvalue ;
33370 bool result;
33371 void *argp1 = 0 ;
33372 int res1 = 0 ;
33373 void *argp2 = 0 ;
33374 int res2 = 0 ;
33375 int val3 ;
33376 int ecode3 = 0 ;
33377 wxPoint temp4 ;
33378 wxSize temp5 ;
33379 long val6 ;
33380 int ecode6 = 0 ;
33381 void *argp7 = 0 ;
33382 int res7 = 0 ;
33383 bool temp8 = false ;
33384 PyObject * obj0 = 0 ;
33385 PyObject * obj1 = 0 ;
33386 PyObject * obj2 = 0 ;
33387 PyObject * obj3 = 0 ;
33388 PyObject * obj4 = 0 ;
33389 PyObject * obj5 = 0 ;
33390 PyObject * obj6 = 0 ;
33391 PyObject * obj7 = 0 ;
33392 char * kwnames[] = {
33393 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33394 };
33395
33396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33398 if (!SWIG_IsOK(res1)) {
33399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33400 }
33401 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33402 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33403 if (!SWIG_IsOK(res2)) {
33404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33405 }
33406 arg2 = reinterpret_cast< wxWindow * >(argp2);
33407 if (obj2) {
33408 ecode3 = SWIG_AsVal_int(obj2, &val3);
33409 if (!SWIG_IsOK(ecode3)) {
33410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33411 }
33412 arg3 = static_cast< int >(val3);
33413 }
33414 if (obj3) {
33415 {
33416 arg4 = &temp4;
33417 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33418 }
33419 }
33420 if (obj4) {
33421 {
33422 arg5 = &temp5;
33423 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33424 }
33425 }
33426 if (obj5) {
33427 ecode6 = SWIG_AsVal_long(obj5, &val6);
33428 if (!SWIG_IsOK(ecode6)) {
33429 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33430 }
33431 arg6 = static_cast< long >(val6);
33432 }
33433 if (obj6) {
33434 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33435 if (!SWIG_IsOK(res7)) {
33436 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33437 }
33438 if (!argp7) {
33439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33440 }
33441 arg7 = reinterpret_cast< wxValidator * >(argp7);
33442 }
33443 if (obj7) {
33444 {
33445 arg8 = wxString_in_helper(obj7);
33446 if (arg8 == NULL) SWIG_fail;
33447 temp8 = true;
33448 }
33449 }
33450 {
33451 PyThreadState* __tstate = wxPyBeginAllowThreads();
33452 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33453 wxPyEndAllowThreads(__tstate);
33454 if (PyErr_Occurred()) SWIG_fail;
33455 }
33456 {
33457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33458 }
33459 {
33460 if (temp8)
33461 delete arg8;
33462 }
33463 return resultobj;
33464 fail:
33465 {
33466 if (temp8)
33467 delete arg8;
33468 }
33469 return NULL;
33470 }
33471
33472
33473 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33474 PyObject *resultobj = 0;
33475 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33476 PyObject *arg2 = (PyObject *) 0 ;
33477 PyObject *arg3 = (PyObject *) 0 ;
33478 void *argp1 = 0 ;
33479 int res1 = 0 ;
33480 PyObject * obj0 = 0 ;
33481 PyObject * obj1 = 0 ;
33482 PyObject * obj2 = 0 ;
33483 char * kwnames[] = {
33484 (char *) "self",(char *) "self",(char *) "_class", NULL
33485 };
33486
33487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33489 if (!SWIG_IsOK(res1)) {
33490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33491 }
33492 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33493 arg2 = obj1;
33494 arg3 = obj2;
33495 {
33496 PyThreadState* __tstate = wxPyBeginAllowThreads();
33497 (arg1)->_setCallbackInfo(arg2,arg3);
33498 wxPyEndAllowThreads(__tstate);
33499 if (PyErr_Occurred()) SWIG_fail;
33500 }
33501 resultobj = SWIG_Py_Void();
33502 return resultobj;
33503 fail:
33504 return NULL;
33505 }
33506
33507
33508 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33509 PyObject *resultobj = 0;
33510 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33511 unsigned int result;
33512 void *argp1 = 0 ;
33513 int res1 = 0 ;
33514 PyObject *swig_obj[1] ;
33515
33516 if (!args) SWIG_fail;
33517 swig_obj[0] = args;
33518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33519 if (!SWIG_IsOK(res1)) {
33520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33521 }
33522 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33523 {
33524 PyThreadState* __tstate = wxPyBeginAllowThreads();
33525 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33526 wxPyEndAllowThreads(__tstate);
33527 if (PyErr_Occurred()) SWIG_fail;
33528 }
33529 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33530 return resultobj;
33531 fail:
33532 return NULL;
33533 }
33534
33535
33536 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33537 PyObject *resultobj = 0;
33538 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33539 unsigned int result;
33540 void *argp1 = 0 ;
33541 int res1 = 0 ;
33542 PyObject *swig_obj[1] ;
33543
33544 if (!args) SWIG_fail;
33545 swig_obj[0] = args;
33546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33547 if (!SWIG_IsOK(res1)) {
33548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33549 }
33550 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33551 {
33552 PyThreadState* __tstate = wxPyBeginAllowThreads();
33553 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33554 wxPyEndAllowThreads(__tstate);
33555 if (PyErr_Occurred()) SWIG_fail;
33556 }
33557 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33558 return resultobj;
33559 fail:
33560 return NULL;
33561 }
33562
33563
33564 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33565 PyObject *resultobj = 0;
33566 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33567 unsigned int arg2 ;
33568 void *argp1 = 0 ;
33569 int res1 = 0 ;
33570 unsigned int val2 ;
33571 int ecode2 = 0 ;
33572 PyObject * obj0 = 0 ;
33573 PyObject * obj1 = 0 ;
33574 char * kwnames[] = {
33575 (char *) "self",(char *) "indent", NULL
33576 };
33577
33578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33580 if (!SWIG_IsOK(res1)) {
33581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33582 }
33583 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33584 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33585 if (!SWIG_IsOK(ecode2)) {
33586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33587 }
33588 arg2 = static_cast< unsigned int >(val2);
33589 {
33590 PyThreadState* __tstate = wxPyBeginAllowThreads();
33591 (arg1)->SetIndent(arg2);
33592 wxPyEndAllowThreads(__tstate);
33593 if (PyErr_Occurred()) SWIG_fail;
33594 }
33595 resultobj = SWIG_Py_Void();
33596 return resultobj;
33597 fail:
33598 return NULL;
33599 }
33600
33601
33602 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33603 PyObject *resultobj = 0;
33604 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33605 unsigned int result;
33606 void *argp1 = 0 ;
33607 int res1 = 0 ;
33608 PyObject *swig_obj[1] ;
33609
33610 if (!args) SWIG_fail;
33611 swig_obj[0] = args;
33612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33613 if (!SWIG_IsOK(res1)) {
33614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33615 }
33616 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33617 {
33618 PyThreadState* __tstate = wxPyBeginAllowThreads();
33619 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33620 wxPyEndAllowThreads(__tstate);
33621 if (PyErr_Occurred()) SWIG_fail;
33622 }
33623 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33624 return resultobj;
33625 fail:
33626 return NULL;
33627 }
33628
33629
33630 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33631 PyObject *resultobj = 0;
33632 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33633 unsigned int arg2 ;
33634 void *argp1 = 0 ;
33635 int res1 = 0 ;
33636 unsigned int val2 ;
33637 int ecode2 = 0 ;
33638 PyObject * obj0 = 0 ;
33639 PyObject * obj1 = 0 ;
33640 char * kwnames[] = {
33641 (char *) "self",(char *) "spacing", NULL
33642 };
33643
33644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33646 if (!SWIG_IsOK(res1)) {
33647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33648 }
33649 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33650 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33651 if (!SWIG_IsOK(ecode2)) {
33652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33653 }
33654 arg2 = static_cast< unsigned int >(val2);
33655 {
33656 PyThreadState* __tstate = wxPyBeginAllowThreads();
33657 (arg1)->SetSpacing(arg2);
33658 wxPyEndAllowThreads(__tstate);
33659 if (PyErr_Occurred()) SWIG_fail;
33660 }
33661 resultobj = SWIG_Py_Void();
33662 return resultobj;
33663 fail:
33664 return NULL;
33665 }
33666
33667
33668 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33669 PyObject *resultobj = 0;
33670 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33671 wxImageList *result = 0 ;
33672 void *argp1 = 0 ;
33673 int res1 = 0 ;
33674 PyObject *swig_obj[1] ;
33675
33676 if (!args) SWIG_fail;
33677 swig_obj[0] = args;
33678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33679 if (!SWIG_IsOK(res1)) {
33680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33681 }
33682 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33683 {
33684 PyThreadState* __tstate = wxPyBeginAllowThreads();
33685 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33686 wxPyEndAllowThreads(__tstate);
33687 if (PyErr_Occurred()) SWIG_fail;
33688 }
33689 {
33690 resultobj = wxPyMake_wxObject(result, (bool)0);
33691 }
33692 return resultobj;
33693 fail:
33694 return NULL;
33695 }
33696
33697
33698 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33699 PyObject *resultobj = 0;
33700 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33701 wxImageList *result = 0 ;
33702 void *argp1 = 0 ;
33703 int res1 = 0 ;
33704 PyObject *swig_obj[1] ;
33705
33706 if (!args) SWIG_fail;
33707 swig_obj[0] = args;
33708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33709 if (!SWIG_IsOK(res1)) {
33710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33711 }
33712 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33713 {
33714 PyThreadState* __tstate = wxPyBeginAllowThreads();
33715 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33716 wxPyEndAllowThreads(__tstate);
33717 if (PyErr_Occurred()) SWIG_fail;
33718 }
33719 {
33720 resultobj = wxPyMake_wxObject(result, (bool)0);
33721 }
33722 return resultobj;
33723 fail:
33724 return NULL;
33725 }
33726
33727
33728 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33729 PyObject *resultobj = 0;
33730 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33731 wxImageList *arg2 = (wxImageList *) 0 ;
33732 void *argp1 = 0 ;
33733 int res1 = 0 ;
33734 void *argp2 = 0 ;
33735 int res2 = 0 ;
33736 PyObject * obj0 = 0 ;
33737 PyObject * obj1 = 0 ;
33738 char * kwnames[] = {
33739 (char *) "self",(char *) "imageList", NULL
33740 };
33741
33742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33744 if (!SWIG_IsOK(res1)) {
33745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33746 }
33747 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33748 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33749 if (!SWIG_IsOK(res2)) {
33750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33751 }
33752 arg2 = reinterpret_cast< wxImageList * >(argp2);
33753 {
33754 PyThreadState* __tstate = wxPyBeginAllowThreads();
33755 (arg1)->SetImageList(arg2);
33756 wxPyEndAllowThreads(__tstate);
33757 if (PyErr_Occurred()) SWIG_fail;
33758 }
33759 resultobj = SWIG_Py_Void();
33760 return resultobj;
33761 fail:
33762 return NULL;
33763 }
33764
33765
33766 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33767 PyObject *resultobj = 0;
33768 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33769 wxImageList *arg2 = (wxImageList *) 0 ;
33770 void *argp1 = 0 ;
33771 int res1 = 0 ;
33772 void *argp2 = 0 ;
33773 int res2 = 0 ;
33774 PyObject * obj0 = 0 ;
33775 PyObject * obj1 = 0 ;
33776 char * kwnames[] = {
33777 (char *) "self",(char *) "imageList", NULL
33778 };
33779
33780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33782 if (!SWIG_IsOK(res1)) {
33783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33784 }
33785 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33786 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33787 if (!SWIG_IsOK(res2)) {
33788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33789 }
33790 arg2 = reinterpret_cast< wxImageList * >(argp2);
33791 {
33792 PyThreadState* __tstate = wxPyBeginAllowThreads();
33793 (arg1)->SetStateImageList(arg2);
33794 wxPyEndAllowThreads(__tstate);
33795 if (PyErr_Occurred()) SWIG_fail;
33796 }
33797 resultobj = SWIG_Py_Void();
33798 return resultobj;
33799 fail:
33800 return NULL;
33801 }
33802
33803
33804 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33805 PyObject *resultobj = 0;
33806 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33807 wxImageList *arg2 = (wxImageList *) 0 ;
33808 void *argp1 = 0 ;
33809 int res1 = 0 ;
33810 int res2 = 0 ;
33811 PyObject * obj0 = 0 ;
33812 PyObject * obj1 = 0 ;
33813 char * kwnames[] = {
33814 (char *) "self",(char *) "imageList", NULL
33815 };
33816
33817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) 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_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33821 }
33822 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33823 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33824 if (!SWIG_IsOK(res2)) {
33825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33826 }
33827 {
33828 PyThreadState* __tstate = wxPyBeginAllowThreads();
33829 (arg1)->AssignImageList(arg2);
33830 wxPyEndAllowThreads(__tstate);
33831 if (PyErr_Occurred()) SWIG_fail;
33832 }
33833 resultobj = SWIG_Py_Void();
33834 return resultobj;
33835 fail:
33836 return NULL;
33837 }
33838
33839
33840 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33841 PyObject *resultobj = 0;
33842 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33843 wxImageList *arg2 = (wxImageList *) 0 ;
33844 void *argp1 = 0 ;
33845 int res1 = 0 ;
33846 int res2 = 0 ;
33847 PyObject * obj0 = 0 ;
33848 PyObject * obj1 = 0 ;
33849 char * kwnames[] = {
33850 (char *) "self",(char *) "imageList", NULL
33851 };
33852
33853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33855 if (!SWIG_IsOK(res1)) {
33856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33857 }
33858 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33859 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33860 if (!SWIG_IsOK(res2)) {
33861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33862 }
33863 {
33864 PyThreadState* __tstate = wxPyBeginAllowThreads();
33865 (arg1)->AssignStateImageList(arg2);
33866 wxPyEndAllowThreads(__tstate);
33867 if (PyErr_Occurred()) SWIG_fail;
33868 }
33869 resultobj = SWIG_Py_Void();
33870 return resultobj;
33871 fail:
33872 return NULL;
33873 }
33874
33875
33876 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33877 PyObject *resultobj = 0;
33878 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33879 wxTreeItemId *arg2 = 0 ;
33880 wxString result;
33881 void *argp1 = 0 ;
33882 int res1 = 0 ;
33883 void *argp2 = 0 ;
33884 int res2 = 0 ;
33885 PyObject * obj0 = 0 ;
33886 PyObject * obj1 = 0 ;
33887 char * kwnames[] = {
33888 (char *) "self",(char *) "item", NULL
33889 };
33890
33891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33893 if (!SWIG_IsOK(res1)) {
33894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33895 }
33896 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33897 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33898 if (!SWIG_IsOK(res2)) {
33899 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33900 }
33901 if (!argp2) {
33902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33903 }
33904 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33905 {
33906 PyThreadState* __tstate = wxPyBeginAllowThreads();
33907 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33908 wxPyEndAllowThreads(__tstate);
33909 if (PyErr_Occurred()) SWIG_fail;
33910 }
33911 {
33912 #if wxUSE_UNICODE
33913 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33914 #else
33915 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33916 #endif
33917 }
33918 return resultobj;
33919 fail:
33920 return NULL;
33921 }
33922
33923
33924 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33925 PyObject *resultobj = 0;
33926 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33927 wxTreeItemId *arg2 = 0 ;
33928 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33929 int result;
33930 void *argp1 = 0 ;
33931 int res1 = 0 ;
33932 void *argp2 = 0 ;
33933 int res2 = 0 ;
33934 int val3 ;
33935 int ecode3 = 0 ;
33936 PyObject * obj0 = 0 ;
33937 PyObject * obj1 = 0 ;
33938 PyObject * obj2 = 0 ;
33939 char * kwnames[] = {
33940 (char *) "self",(char *) "item",(char *) "which", NULL
33941 };
33942
33943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33945 if (!SWIG_IsOK(res1)) {
33946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33947 }
33948 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33949 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33950 if (!SWIG_IsOK(res2)) {
33951 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33952 }
33953 if (!argp2) {
33954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33955 }
33956 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33957 if (obj2) {
33958 ecode3 = SWIG_AsVal_int(obj2, &val3);
33959 if (!SWIG_IsOK(ecode3)) {
33960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
33961 }
33962 arg3 = static_cast< wxTreeItemIcon >(val3);
33963 }
33964 {
33965 PyThreadState* __tstate = wxPyBeginAllowThreads();
33966 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
33967 wxPyEndAllowThreads(__tstate);
33968 if (PyErr_Occurred()) SWIG_fail;
33969 }
33970 resultobj = SWIG_From_int(static_cast< int >(result));
33971 return resultobj;
33972 fail:
33973 return NULL;
33974 }
33975
33976
33977 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33978 PyObject *resultobj = 0;
33979 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33980 wxTreeItemId *arg2 = 0 ;
33981 wxPyTreeItemData *result = 0 ;
33982 void *argp1 = 0 ;
33983 int res1 = 0 ;
33984 void *argp2 = 0 ;
33985 int res2 = 0 ;
33986 PyObject * obj0 = 0 ;
33987 PyObject * obj1 = 0 ;
33988 char * kwnames[] = {
33989 (char *) "self",(char *) "item", NULL
33990 };
33991
33992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
33993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33994 if (!SWIG_IsOK(res1)) {
33995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33996 }
33997 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33998 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33999 if (!SWIG_IsOK(res2)) {
34000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34001 }
34002 if (!argp2) {
34003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34004 }
34005 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34006 {
34007 PyThreadState* __tstate = wxPyBeginAllowThreads();
34008 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34009 wxPyEndAllowThreads(__tstate);
34010 if (PyErr_Occurred()) SWIG_fail;
34011 }
34012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34013 return resultobj;
34014 fail:
34015 return NULL;
34016 }
34017
34018
34019 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34020 PyObject *resultobj = 0;
34021 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34022 wxTreeItemId *arg2 = 0 ;
34023 PyObject *result = 0 ;
34024 void *argp1 = 0 ;
34025 int res1 = 0 ;
34026 void *argp2 = 0 ;
34027 int res2 = 0 ;
34028 PyObject * obj0 = 0 ;
34029 PyObject * obj1 = 0 ;
34030 char * kwnames[] = {
34031 (char *) "self",(char *) "item", NULL
34032 };
34033
34034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34036 if (!SWIG_IsOK(res1)) {
34037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34038 }
34039 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34040 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34041 if (!SWIG_IsOK(res2)) {
34042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34043 }
34044 if (!argp2) {
34045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34046 }
34047 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34048 {
34049 PyThreadState* __tstate = wxPyBeginAllowThreads();
34050 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34051 wxPyEndAllowThreads(__tstate);
34052 if (PyErr_Occurred()) SWIG_fail;
34053 }
34054 resultobj = result;
34055 return resultobj;
34056 fail:
34057 return NULL;
34058 }
34059
34060
34061 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34062 PyObject *resultobj = 0;
34063 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34064 wxTreeItemId *arg2 = 0 ;
34065 wxColour result;
34066 void *argp1 = 0 ;
34067 int res1 = 0 ;
34068 void *argp2 = 0 ;
34069 int res2 = 0 ;
34070 PyObject * obj0 = 0 ;
34071 PyObject * obj1 = 0 ;
34072 char * kwnames[] = {
34073 (char *) "self",(char *) "item", NULL
34074 };
34075
34076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34078 if (!SWIG_IsOK(res1)) {
34079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34080 }
34081 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34082 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34083 if (!SWIG_IsOK(res2)) {
34084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34085 }
34086 if (!argp2) {
34087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34088 }
34089 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34090 {
34091 PyThreadState* __tstate = wxPyBeginAllowThreads();
34092 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34093 wxPyEndAllowThreads(__tstate);
34094 if (PyErr_Occurred()) SWIG_fail;
34095 }
34096 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34097 return resultobj;
34098 fail:
34099 return NULL;
34100 }
34101
34102
34103 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34104 PyObject *resultobj = 0;
34105 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34106 wxTreeItemId *arg2 = 0 ;
34107 wxColour result;
34108 void *argp1 = 0 ;
34109 int res1 = 0 ;
34110 void *argp2 = 0 ;
34111 int res2 = 0 ;
34112 PyObject * obj0 = 0 ;
34113 PyObject * obj1 = 0 ;
34114 char * kwnames[] = {
34115 (char *) "self",(char *) "item", NULL
34116 };
34117
34118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34120 if (!SWIG_IsOK(res1)) {
34121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34122 }
34123 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34124 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34125 if (!SWIG_IsOK(res2)) {
34126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34127 }
34128 if (!argp2) {
34129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34130 }
34131 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34132 {
34133 PyThreadState* __tstate = wxPyBeginAllowThreads();
34134 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34135 wxPyEndAllowThreads(__tstate);
34136 if (PyErr_Occurred()) SWIG_fail;
34137 }
34138 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34139 return resultobj;
34140 fail:
34141 return NULL;
34142 }
34143
34144
34145 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34146 PyObject *resultobj = 0;
34147 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34148 wxTreeItemId *arg2 = 0 ;
34149 wxFont result;
34150 void *argp1 = 0 ;
34151 int res1 = 0 ;
34152 void *argp2 = 0 ;
34153 int res2 = 0 ;
34154 PyObject * obj0 = 0 ;
34155 PyObject * obj1 = 0 ;
34156 char * kwnames[] = {
34157 (char *) "self",(char *) "item", NULL
34158 };
34159
34160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34162 if (!SWIG_IsOK(res1)) {
34163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34164 }
34165 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34167 if (!SWIG_IsOK(res2)) {
34168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34169 }
34170 if (!argp2) {
34171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34172 }
34173 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34174 {
34175 PyThreadState* __tstate = wxPyBeginAllowThreads();
34176 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34177 wxPyEndAllowThreads(__tstate);
34178 if (PyErr_Occurred()) SWIG_fail;
34179 }
34180 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34181 return resultobj;
34182 fail:
34183 return NULL;
34184 }
34185
34186
34187 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34188 PyObject *resultobj = 0;
34189 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34190 wxTreeItemId *arg2 = 0 ;
34191 wxString *arg3 = 0 ;
34192 void *argp1 = 0 ;
34193 int res1 = 0 ;
34194 void *argp2 = 0 ;
34195 int res2 = 0 ;
34196 bool temp3 = false ;
34197 PyObject * obj0 = 0 ;
34198 PyObject * obj1 = 0 ;
34199 PyObject * obj2 = 0 ;
34200 char * kwnames[] = {
34201 (char *) "self",(char *) "item",(char *) "text", NULL
34202 };
34203
34204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34206 if (!SWIG_IsOK(res1)) {
34207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34208 }
34209 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34210 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34211 if (!SWIG_IsOK(res2)) {
34212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34213 }
34214 if (!argp2) {
34215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34216 }
34217 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34218 {
34219 arg3 = wxString_in_helper(obj2);
34220 if (arg3 == NULL) SWIG_fail;
34221 temp3 = true;
34222 }
34223 {
34224 PyThreadState* __tstate = wxPyBeginAllowThreads();
34225 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34226 wxPyEndAllowThreads(__tstate);
34227 if (PyErr_Occurred()) SWIG_fail;
34228 }
34229 resultobj = SWIG_Py_Void();
34230 {
34231 if (temp3)
34232 delete arg3;
34233 }
34234 return resultobj;
34235 fail:
34236 {
34237 if (temp3)
34238 delete arg3;
34239 }
34240 return NULL;
34241 }
34242
34243
34244 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34245 PyObject *resultobj = 0;
34246 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34247 wxTreeItemId *arg2 = 0 ;
34248 int arg3 ;
34249 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34250 void *argp1 = 0 ;
34251 int res1 = 0 ;
34252 void *argp2 = 0 ;
34253 int res2 = 0 ;
34254 int val3 ;
34255 int ecode3 = 0 ;
34256 int val4 ;
34257 int ecode4 = 0 ;
34258 PyObject * obj0 = 0 ;
34259 PyObject * obj1 = 0 ;
34260 PyObject * obj2 = 0 ;
34261 PyObject * obj3 = 0 ;
34262 char * kwnames[] = {
34263 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34264 };
34265
34266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34268 if (!SWIG_IsOK(res1)) {
34269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34270 }
34271 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34272 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34273 if (!SWIG_IsOK(res2)) {
34274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34275 }
34276 if (!argp2) {
34277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34278 }
34279 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34280 ecode3 = SWIG_AsVal_int(obj2, &val3);
34281 if (!SWIG_IsOK(ecode3)) {
34282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34283 }
34284 arg3 = static_cast< int >(val3);
34285 if (obj3) {
34286 ecode4 = SWIG_AsVal_int(obj3, &val4);
34287 if (!SWIG_IsOK(ecode4)) {
34288 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34289 }
34290 arg4 = static_cast< wxTreeItemIcon >(val4);
34291 }
34292 {
34293 PyThreadState* __tstate = wxPyBeginAllowThreads();
34294 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34295 wxPyEndAllowThreads(__tstate);
34296 if (PyErr_Occurred()) SWIG_fail;
34297 }
34298 resultobj = SWIG_Py_Void();
34299 return resultobj;
34300 fail:
34301 return NULL;
34302 }
34303
34304
34305 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34306 PyObject *resultobj = 0;
34307 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34308 wxTreeItemId *arg2 = 0 ;
34309 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34310 void *argp1 = 0 ;
34311 int res1 = 0 ;
34312 void *argp2 = 0 ;
34313 int res2 = 0 ;
34314 int res3 = 0 ;
34315 PyObject * obj0 = 0 ;
34316 PyObject * obj1 = 0 ;
34317 PyObject * obj2 = 0 ;
34318 char * kwnames[] = {
34319 (char *) "self",(char *) "item",(char *) "data", NULL
34320 };
34321
34322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34324 if (!SWIG_IsOK(res1)) {
34325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34326 }
34327 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34328 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34329 if (!SWIG_IsOK(res2)) {
34330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34331 }
34332 if (!argp2) {
34333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34334 }
34335 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34336 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34337 if (!SWIG_IsOK(res3)) {
34338 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34339 }
34340 {
34341 PyThreadState* __tstate = wxPyBeginAllowThreads();
34342 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34343 wxPyEndAllowThreads(__tstate);
34344 if (PyErr_Occurred()) SWIG_fail;
34345 }
34346 resultobj = SWIG_Py_Void();
34347 return resultobj;
34348 fail:
34349 return NULL;
34350 }
34351
34352
34353 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34354 PyObject *resultobj = 0;
34355 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34356 wxTreeItemId *arg2 = 0 ;
34357 PyObject *arg3 = (PyObject *) 0 ;
34358 void *argp1 = 0 ;
34359 int res1 = 0 ;
34360 void *argp2 = 0 ;
34361 int res2 = 0 ;
34362 PyObject * obj0 = 0 ;
34363 PyObject * obj1 = 0 ;
34364 PyObject * obj2 = 0 ;
34365 char * kwnames[] = {
34366 (char *) "self",(char *) "item",(char *) "obj", NULL
34367 };
34368
34369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34371 if (!SWIG_IsOK(res1)) {
34372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34373 }
34374 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34375 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34376 if (!SWIG_IsOK(res2)) {
34377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34378 }
34379 if (!argp2) {
34380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34381 }
34382 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34383 arg3 = obj2;
34384 {
34385 PyThreadState* __tstate = wxPyBeginAllowThreads();
34386 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34387 wxPyEndAllowThreads(__tstate);
34388 if (PyErr_Occurred()) SWIG_fail;
34389 }
34390 resultobj = SWIG_Py_Void();
34391 return resultobj;
34392 fail:
34393 return NULL;
34394 }
34395
34396
34397 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34398 PyObject *resultobj = 0;
34399 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34400 wxTreeItemId *arg2 = 0 ;
34401 bool arg3 = (bool) true ;
34402 void *argp1 = 0 ;
34403 int res1 = 0 ;
34404 void *argp2 = 0 ;
34405 int res2 = 0 ;
34406 bool val3 ;
34407 int ecode3 = 0 ;
34408 PyObject * obj0 = 0 ;
34409 PyObject * obj1 = 0 ;
34410 PyObject * obj2 = 0 ;
34411 char * kwnames[] = {
34412 (char *) "self",(char *) "item",(char *) "has", NULL
34413 };
34414
34415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34417 if (!SWIG_IsOK(res1)) {
34418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34419 }
34420 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34421 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34422 if (!SWIG_IsOK(res2)) {
34423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34424 }
34425 if (!argp2) {
34426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34427 }
34428 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34429 if (obj2) {
34430 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34431 if (!SWIG_IsOK(ecode3)) {
34432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34433 }
34434 arg3 = static_cast< bool >(val3);
34435 }
34436 {
34437 PyThreadState* __tstate = wxPyBeginAllowThreads();
34438 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34439 wxPyEndAllowThreads(__tstate);
34440 if (PyErr_Occurred()) SWIG_fail;
34441 }
34442 resultobj = SWIG_Py_Void();
34443 return resultobj;
34444 fail:
34445 return NULL;
34446 }
34447
34448
34449 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34450 PyObject *resultobj = 0;
34451 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34452 wxTreeItemId *arg2 = 0 ;
34453 bool arg3 = (bool) true ;
34454 void *argp1 = 0 ;
34455 int res1 = 0 ;
34456 void *argp2 = 0 ;
34457 int res2 = 0 ;
34458 bool val3 ;
34459 int ecode3 = 0 ;
34460 PyObject * obj0 = 0 ;
34461 PyObject * obj1 = 0 ;
34462 PyObject * obj2 = 0 ;
34463 char * kwnames[] = {
34464 (char *) "self",(char *) "item",(char *) "bold", NULL
34465 };
34466
34467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34469 if (!SWIG_IsOK(res1)) {
34470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34471 }
34472 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34473 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34474 if (!SWIG_IsOK(res2)) {
34475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34476 }
34477 if (!argp2) {
34478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34479 }
34480 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34481 if (obj2) {
34482 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34483 if (!SWIG_IsOK(ecode3)) {
34484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34485 }
34486 arg3 = static_cast< bool >(val3);
34487 }
34488 {
34489 PyThreadState* __tstate = wxPyBeginAllowThreads();
34490 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34491 wxPyEndAllowThreads(__tstate);
34492 if (PyErr_Occurred()) SWIG_fail;
34493 }
34494 resultobj = SWIG_Py_Void();
34495 return resultobj;
34496 fail:
34497 return NULL;
34498 }
34499
34500
34501 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34502 PyObject *resultobj = 0;
34503 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34504 wxTreeItemId *arg2 = 0 ;
34505 bool arg3 = (bool) true ;
34506 void *argp1 = 0 ;
34507 int res1 = 0 ;
34508 void *argp2 = 0 ;
34509 int res2 = 0 ;
34510 bool val3 ;
34511 int ecode3 = 0 ;
34512 PyObject * obj0 = 0 ;
34513 PyObject * obj1 = 0 ;
34514 PyObject * obj2 = 0 ;
34515 char * kwnames[] = {
34516 (char *) "self",(char *) "item",(char *) "highlight", NULL
34517 };
34518
34519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34521 if (!SWIG_IsOK(res1)) {
34522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34523 }
34524 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34525 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34526 if (!SWIG_IsOK(res2)) {
34527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34528 }
34529 if (!argp2) {
34530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34531 }
34532 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34533 if (obj2) {
34534 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34535 if (!SWIG_IsOK(ecode3)) {
34536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34537 }
34538 arg3 = static_cast< bool >(val3);
34539 }
34540 {
34541 PyThreadState* __tstate = wxPyBeginAllowThreads();
34542 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34543 wxPyEndAllowThreads(__tstate);
34544 if (PyErr_Occurred()) SWIG_fail;
34545 }
34546 resultobj = SWIG_Py_Void();
34547 return resultobj;
34548 fail:
34549 return NULL;
34550 }
34551
34552
34553 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34554 PyObject *resultobj = 0;
34555 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34556 wxTreeItemId *arg2 = 0 ;
34557 wxColour *arg3 = 0 ;
34558 void *argp1 = 0 ;
34559 int res1 = 0 ;
34560 void *argp2 = 0 ;
34561 int res2 = 0 ;
34562 wxColour temp3 ;
34563 PyObject * obj0 = 0 ;
34564 PyObject * obj1 = 0 ;
34565 PyObject * obj2 = 0 ;
34566 char * kwnames[] = {
34567 (char *) "self",(char *) "item",(char *) "col", NULL
34568 };
34569
34570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34572 if (!SWIG_IsOK(res1)) {
34573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34574 }
34575 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34576 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34577 if (!SWIG_IsOK(res2)) {
34578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34579 }
34580 if (!argp2) {
34581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34582 }
34583 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34584 {
34585 arg3 = &temp3;
34586 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34587 }
34588 {
34589 PyThreadState* __tstate = wxPyBeginAllowThreads();
34590 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34591 wxPyEndAllowThreads(__tstate);
34592 if (PyErr_Occurred()) SWIG_fail;
34593 }
34594 resultobj = SWIG_Py_Void();
34595 return resultobj;
34596 fail:
34597 return NULL;
34598 }
34599
34600
34601 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34602 PyObject *resultobj = 0;
34603 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34604 wxTreeItemId *arg2 = 0 ;
34605 wxColour *arg3 = 0 ;
34606 void *argp1 = 0 ;
34607 int res1 = 0 ;
34608 void *argp2 = 0 ;
34609 int res2 = 0 ;
34610 wxColour temp3 ;
34611 PyObject * obj0 = 0 ;
34612 PyObject * obj1 = 0 ;
34613 PyObject * obj2 = 0 ;
34614 char * kwnames[] = {
34615 (char *) "self",(char *) "item",(char *) "col", NULL
34616 };
34617
34618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34620 if (!SWIG_IsOK(res1)) {
34621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34622 }
34623 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34624 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34625 if (!SWIG_IsOK(res2)) {
34626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34627 }
34628 if (!argp2) {
34629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34630 }
34631 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34632 {
34633 arg3 = &temp3;
34634 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34635 }
34636 {
34637 PyThreadState* __tstate = wxPyBeginAllowThreads();
34638 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34639 wxPyEndAllowThreads(__tstate);
34640 if (PyErr_Occurred()) SWIG_fail;
34641 }
34642 resultobj = SWIG_Py_Void();
34643 return resultobj;
34644 fail:
34645 return NULL;
34646 }
34647
34648
34649 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34650 PyObject *resultobj = 0;
34651 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34652 wxTreeItemId *arg2 = 0 ;
34653 wxFont *arg3 = 0 ;
34654 void *argp1 = 0 ;
34655 int res1 = 0 ;
34656 void *argp2 = 0 ;
34657 int res2 = 0 ;
34658 void *argp3 = 0 ;
34659 int res3 = 0 ;
34660 PyObject * obj0 = 0 ;
34661 PyObject * obj1 = 0 ;
34662 PyObject * obj2 = 0 ;
34663 char * kwnames[] = {
34664 (char *) "self",(char *) "item",(char *) "font", NULL
34665 };
34666
34667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34669 if (!SWIG_IsOK(res1)) {
34670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34671 }
34672 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34673 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34674 if (!SWIG_IsOK(res2)) {
34675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34676 }
34677 if (!argp2) {
34678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34679 }
34680 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34681 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34682 if (!SWIG_IsOK(res3)) {
34683 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34684 }
34685 if (!argp3) {
34686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34687 }
34688 arg3 = reinterpret_cast< wxFont * >(argp3);
34689 {
34690 PyThreadState* __tstate = wxPyBeginAllowThreads();
34691 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34692 wxPyEndAllowThreads(__tstate);
34693 if (PyErr_Occurred()) SWIG_fail;
34694 }
34695 resultobj = SWIG_Py_Void();
34696 return resultobj;
34697 fail:
34698 return NULL;
34699 }
34700
34701
34702 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34703 PyObject *resultobj = 0;
34704 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34705 wxTreeItemId *arg2 = 0 ;
34706 bool result;
34707 void *argp1 = 0 ;
34708 int res1 = 0 ;
34709 void *argp2 = 0 ;
34710 int res2 = 0 ;
34711 PyObject * obj0 = 0 ;
34712 PyObject * obj1 = 0 ;
34713 char * kwnames[] = {
34714 (char *) "self",(char *) "item", NULL
34715 };
34716
34717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34719 if (!SWIG_IsOK(res1)) {
34720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34721 }
34722 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34724 if (!SWIG_IsOK(res2)) {
34725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34726 }
34727 if (!argp2) {
34728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34729 }
34730 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34731 {
34732 PyThreadState* __tstate = wxPyBeginAllowThreads();
34733 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34734 wxPyEndAllowThreads(__tstate);
34735 if (PyErr_Occurred()) SWIG_fail;
34736 }
34737 {
34738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34739 }
34740 return resultobj;
34741 fail:
34742 return NULL;
34743 }
34744
34745
34746 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34747 PyObject *resultobj = 0;
34748 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34749 wxTreeItemId *arg2 = 0 ;
34750 bool result;
34751 void *argp1 = 0 ;
34752 int res1 = 0 ;
34753 void *argp2 = 0 ;
34754 int res2 = 0 ;
34755 PyObject * obj0 = 0 ;
34756 PyObject * obj1 = 0 ;
34757 char * kwnames[] = {
34758 (char *) "self",(char *) "item", NULL
34759 };
34760
34761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34763 if (!SWIG_IsOK(res1)) {
34764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34765 }
34766 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34767 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34768 if (!SWIG_IsOK(res2)) {
34769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34770 }
34771 if (!argp2) {
34772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34773 }
34774 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34775 {
34776 PyThreadState* __tstate = wxPyBeginAllowThreads();
34777 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34778 wxPyEndAllowThreads(__tstate);
34779 if (PyErr_Occurred()) SWIG_fail;
34780 }
34781 {
34782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34783 }
34784 return resultobj;
34785 fail:
34786 return NULL;
34787 }
34788
34789
34790 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34791 PyObject *resultobj = 0;
34792 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34793 wxTreeItemId *arg2 = 0 ;
34794 bool result;
34795 void *argp1 = 0 ;
34796 int res1 = 0 ;
34797 void *argp2 = 0 ;
34798 int res2 = 0 ;
34799 PyObject * obj0 = 0 ;
34800 PyObject * obj1 = 0 ;
34801 char * kwnames[] = {
34802 (char *) "self",(char *) "item", NULL
34803 };
34804
34805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34807 if (!SWIG_IsOK(res1)) {
34808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34809 }
34810 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34811 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34812 if (!SWIG_IsOK(res2)) {
34813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34814 }
34815 if (!argp2) {
34816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34817 }
34818 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34819 {
34820 PyThreadState* __tstate = wxPyBeginAllowThreads();
34821 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34822 wxPyEndAllowThreads(__tstate);
34823 if (PyErr_Occurred()) SWIG_fail;
34824 }
34825 {
34826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34827 }
34828 return resultobj;
34829 fail:
34830 return NULL;
34831 }
34832
34833
34834 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34835 PyObject *resultobj = 0;
34836 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34837 wxTreeItemId *arg2 = 0 ;
34838 bool result;
34839 void *argp1 = 0 ;
34840 int res1 = 0 ;
34841 void *argp2 = 0 ;
34842 int res2 = 0 ;
34843 PyObject * obj0 = 0 ;
34844 PyObject * obj1 = 0 ;
34845 char * kwnames[] = {
34846 (char *) "self",(char *) "item", NULL
34847 };
34848
34849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34851 if (!SWIG_IsOK(res1)) {
34852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34853 }
34854 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34856 if (!SWIG_IsOK(res2)) {
34857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34858 }
34859 if (!argp2) {
34860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34861 }
34862 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34863 {
34864 PyThreadState* __tstate = wxPyBeginAllowThreads();
34865 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34866 wxPyEndAllowThreads(__tstate);
34867 if (PyErr_Occurred()) SWIG_fail;
34868 }
34869 {
34870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34871 }
34872 return resultobj;
34873 fail:
34874 return NULL;
34875 }
34876
34877
34878 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34879 PyObject *resultobj = 0;
34880 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34881 wxTreeItemId *arg2 = 0 ;
34882 bool result;
34883 void *argp1 = 0 ;
34884 int res1 = 0 ;
34885 void *argp2 = 0 ;
34886 int res2 = 0 ;
34887 PyObject * obj0 = 0 ;
34888 PyObject * obj1 = 0 ;
34889 char * kwnames[] = {
34890 (char *) "self",(char *) "item", NULL
34891 };
34892
34893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34895 if (!SWIG_IsOK(res1)) {
34896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34897 }
34898 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34899 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34900 if (!SWIG_IsOK(res2)) {
34901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34902 }
34903 if (!argp2) {
34904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34905 }
34906 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34907 {
34908 PyThreadState* __tstate = wxPyBeginAllowThreads();
34909 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34910 wxPyEndAllowThreads(__tstate);
34911 if (PyErr_Occurred()) SWIG_fail;
34912 }
34913 {
34914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34915 }
34916 return resultobj;
34917 fail:
34918 return NULL;
34919 }
34920
34921
34922 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(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 size_t result;
34928 void *argp1 = 0 ;
34929 int res1 = 0 ;
34930 void *argp2 = 0 ;
34931 int res2 = 0 ;
34932 bool val3 ;
34933 int ecode3 = 0 ;
34934 PyObject * obj0 = 0 ;
34935 PyObject * obj1 = 0 ;
34936 PyObject * obj2 = 0 ;
34937 char * kwnames[] = {
34938 (char *) "self",(char *) "item",(char *) "recursively", NULL
34939 };
34940
34941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34943 if (!SWIG_IsOK(res1)) {
34944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34945 }
34946 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34947 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34948 if (!SWIG_IsOK(res2)) {
34949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34950 }
34951 if (!argp2) {
34952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34953 }
34954 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34955 if (obj2) {
34956 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34957 if (!SWIG_IsOK(ecode3)) {
34958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
34959 }
34960 arg3 = static_cast< bool >(val3);
34961 }
34962 {
34963 PyThreadState* __tstate = wxPyBeginAllowThreads();
34964 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
34965 wxPyEndAllowThreads(__tstate);
34966 if (PyErr_Occurred()) SWIG_fail;
34967 }
34968 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34969 return resultobj;
34970 fail:
34971 return NULL;
34972 }
34973
34974
34975 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34976 PyObject *resultobj = 0;
34977 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34978 wxTreeItemId result;
34979 void *argp1 = 0 ;
34980 int res1 = 0 ;
34981 PyObject *swig_obj[1] ;
34982
34983 if (!args) SWIG_fail;
34984 swig_obj[0] = args;
34985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34986 if (!SWIG_IsOK(res1)) {
34987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34988 }
34989 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34990 {
34991 PyThreadState* __tstate = wxPyBeginAllowThreads();
34992 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
34993 wxPyEndAllowThreads(__tstate);
34994 if (PyErr_Occurred()) SWIG_fail;
34995 }
34996 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34997 return resultobj;
34998 fail:
34999 return NULL;
35000 }
35001
35002
35003 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35004 PyObject *resultobj = 0;
35005 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35006 wxTreeItemId result;
35007 void *argp1 = 0 ;
35008 int res1 = 0 ;
35009 PyObject *swig_obj[1] ;
35010
35011 if (!args) SWIG_fail;
35012 swig_obj[0] = args;
35013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35014 if (!SWIG_IsOK(res1)) {
35015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35016 }
35017 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35018 {
35019 PyThreadState* __tstate = wxPyBeginAllowThreads();
35020 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35021 wxPyEndAllowThreads(__tstate);
35022 if (PyErr_Occurred()) SWIG_fail;
35023 }
35024 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35025 return resultobj;
35026 fail:
35027 return NULL;
35028 }
35029
35030
35031 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35032 PyObject *resultobj = 0;
35033 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35034 PyObject *result = 0 ;
35035 void *argp1 = 0 ;
35036 int res1 = 0 ;
35037 PyObject *swig_obj[1] ;
35038
35039 if (!args) SWIG_fail;
35040 swig_obj[0] = args;
35041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35042 if (!SWIG_IsOK(res1)) {
35043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35044 }
35045 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35046 {
35047 PyThreadState* __tstate = wxPyBeginAllowThreads();
35048 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35049 wxPyEndAllowThreads(__tstate);
35050 if (PyErr_Occurred()) SWIG_fail;
35051 }
35052 resultobj = result;
35053 return resultobj;
35054 fail:
35055 return NULL;
35056 }
35057
35058
35059 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35060 PyObject *resultobj = 0;
35061 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35062 wxTreeItemId *arg2 = 0 ;
35063 wxTreeItemId result;
35064 void *argp1 = 0 ;
35065 int res1 = 0 ;
35066 void *argp2 = 0 ;
35067 int res2 = 0 ;
35068 PyObject * obj0 = 0 ;
35069 PyObject * obj1 = 0 ;
35070 char * kwnames[] = {
35071 (char *) "self",(char *) "item", NULL
35072 };
35073
35074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35076 if (!SWIG_IsOK(res1)) {
35077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35078 }
35079 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35080 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35081 if (!SWIG_IsOK(res2)) {
35082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35083 }
35084 if (!argp2) {
35085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35086 }
35087 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35088 {
35089 PyThreadState* __tstate = wxPyBeginAllowThreads();
35090 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35091 wxPyEndAllowThreads(__tstate);
35092 if (PyErr_Occurred()) SWIG_fail;
35093 }
35094 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35095 return resultobj;
35096 fail:
35097 return NULL;
35098 }
35099
35100
35101 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35102 PyObject *resultobj = 0;
35103 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35104 wxTreeItemId *arg2 = 0 ;
35105 PyObject *result = 0 ;
35106 void *argp1 = 0 ;
35107 int res1 = 0 ;
35108 void *argp2 = 0 ;
35109 int res2 = 0 ;
35110 PyObject * obj0 = 0 ;
35111 PyObject * obj1 = 0 ;
35112 char * kwnames[] = {
35113 (char *) "self",(char *) "item", NULL
35114 };
35115
35116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35118 if (!SWIG_IsOK(res1)) {
35119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35120 }
35121 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35122 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35123 if (!SWIG_IsOK(res2)) {
35124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35125 }
35126 if (!argp2) {
35127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35128 }
35129 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35130 {
35131 PyThreadState* __tstate = wxPyBeginAllowThreads();
35132 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35133 wxPyEndAllowThreads(__tstate);
35134 if (PyErr_Occurred()) SWIG_fail;
35135 }
35136 resultobj = result;
35137 return resultobj;
35138 fail:
35139 return NULL;
35140 }
35141
35142
35143 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35144 PyObject *resultobj = 0;
35145 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35146 wxTreeItemId *arg2 = 0 ;
35147 void *arg3 = (void *) 0 ;
35148 PyObject *result = 0 ;
35149 void *argp1 = 0 ;
35150 int res1 = 0 ;
35151 void *argp2 = 0 ;
35152 int res2 = 0 ;
35153 int res3 ;
35154 PyObject * obj0 = 0 ;
35155 PyObject * obj1 = 0 ;
35156 PyObject * obj2 = 0 ;
35157 char * kwnames[] = {
35158 (char *) "self",(char *) "item",(char *) "cookie", NULL
35159 };
35160
35161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35163 if (!SWIG_IsOK(res1)) {
35164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35165 }
35166 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35167 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35168 if (!SWIG_IsOK(res2)) {
35169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35170 }
35171 if (!argp2) {
35172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35173 }
35174 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35175 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35176 if (!SWIG_IsOK(res3)) {
35177 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35178 }
35179 {
35180 PyThreadState* __tstate = wxPyBeginAllowThreads();
35181 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35182 wxPyEndAllowThreads(__tstate);
35183 if (PyErr_Occurred()) SWIG_fail;
35184 }
35185 resultobj = result;
35186 return resultobj;
35187 fail:
35188 return NULL;
35189 }
35190
35191
35192 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35193 PyObject *resultobj = 0;
35194 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35195 wxTreeItemId *arg2 = 0 ;
35196 wxTreeItemId result;
35197 void *argp1 = 0 ;
35198 int res1 = 0 ;
35199 void *argp2 = 0 ;
35200 int res2 = 0 ;
35201 PyObject * obj0 = 0 ;
35202 PyObject * obj1 = 0 ;
35203 char * kwnames[] = {
35204 (char *) "self",(char *) "item", NULL
35205 };
35206
35207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35209 if (!SWIG_IsOK(res1)) {
35210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35211 }
35212 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35213 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35214 if (!SWIG_IsOK(res2)) {
35215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35216 }
35217 if (!argp2) {
35218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35219 }
35220 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35221 {
35222 PyThreadState* __tstate = wxPyBeginAllowThreads();
35223 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35224 wxPyEndAllowThreads(__tstate);
35225 if (PyErr_Occurred()) SWIG_fail;
35226 }
35227 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35228 return resultobj;
35229 fail:
35230 return NULL;
35231 }
35232
35233
35234 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35235 PyObject *resultobj = 0;
35236 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35237 wxTreeItemId *arg2 = 0 ;
35238 wxTreeItemId result;
35239 void *argp1 = 0 ;
35240 int res1 = 0 ;
35241 void *argp2 = 0 ;
35242 int res2 = 0 ;
35243 PyObject * obj0 = 0 ;
35244 PyObject * obj1 = 0 ;
35245 char * kwnames[] = {
35246 (char *) "self",(char *) "item", NULL
35247 };
35248
35249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35251 if (!SWIG_IsOK(res1)) {
35252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35253 }
35254 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35256 if (!SWIG_IsOK(res2)) {
35257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35258 }
35259 if (!argp2) {
35260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35261 }
35262 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35263 {
35264 PyThreadState* __tstate = wxPyBeginAllowThreads();
35265 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35266 wxPyEndAllowThreads(__tstate);
35267 if (PyErr_Occurred()) SWIG_fail;
35268 }
35269 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35270 return resultobj;
35271 fail:
35272 return NULL;
35273 }
35274
35275
35276 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35277 PyObject *resultobj = 0;
35278 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35279 wxTreeItemId *arg2 = 0 ;
35280 wxTreeItemId result;
35281 void *argp1 = 0 ;
35282 int res1 = 0 ;
35283 void *argp2 = 0 ;
35284 int res2 = 0 ;
35285 PyObject * obj0 = 0 ;
35286 PyObject * obj1 = 0 ;
35287 char * kwnames[] = {
35288 (char *) "self",(char *) "item", NULL
35289 };
35290
35291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35293 if (!SWIG_IsOK(res1)) {
35294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35295 }
35296 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35298 if (!SWIG_IsOK(res2)) {
35299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35300 }
35301 if (!argp2) {
35302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35303 }
35304 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35305 {
35306 PyThreadState* __tstate = wxPyBeginAllowThreads();
35307 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35308 wxPyEndAllowThreads(__tstate);
35309 if (PyErr_Occurred()) SWIG_fail;
35310 }
35311 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35312 return resultobj;
35313 fail:
35314 return NULL;
35315 }
35316
35317
35318 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35319 PyObject *resultobj = 0;
35320 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35321 wxTreeItemId result;
35322 void *argp1 = 0 ;
35323 int res1 = 0 ;
35324 PyObject *swig_obj[1] ;
35325
35326 if (!args) SWIG_fail;
35327 swig_obj[0] = args;
35328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35329 if (!SWIG_IsOK(res1)) {
35330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35331 }
35332 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35333 {
35334 PyThreadState* __tstate = wxPyBeginAllowThreads();
35335 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35336 wxPyEndAllowThreads(__tstate);
35337 if (PyErr_Occurred()) SWIG_fail;
35338 }
35339 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35340 return resultobj;
35341 fail:
35342 return NULL;
35343 }
35344
35345
35346 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35347 PyObject *resultobj = 0;
35348 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35349 wxTreeItemId *arg2 = 0 ;
35350 wxTreeItemId result;
35351 void *argp1 = 0 ;
35352 int res1 = 0 ;
35353 void *argp2 = 0 ;
35354 int res2 = 0 ;
35355 PyObject * obj0 = 0 ;
35356 PyObject * obj1 = 0 ;
35357 char * kwnames[] = {
35358 (char *) "self",(char *) "item", NULL
35359 };
35360
35361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35363 if (!SWIG_IsOK(res1)) {
35364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35365 }
35366 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35367 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35368 if (!SWIG_IsOK(res2)) {
35369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35370 }
35371 if (!argp2) {
35372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35373 }
35374 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35375 {
35376 PyThreadState* __tstate = wxPyBeginAllowThreads();
35377 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35378 wxPyEndAllowThreads(__tstate);
35379 if (PyErr_Occurred()) SWIG_fail;
35380 }
35381 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35382 return resultobj;
35383 fail:
35384 return NULL;
35385 }
35386
35387
35388 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35389 PyObject *resultobj = 0;
35390 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35391 wxTreeItemId *arg2 = 0 ;
35392 wxTreeItemId result;
35393 void *argp1 = 0 ;
35394 int res1 = 0 ;
35395 void *argp2 = 0 ;
35396 int res2 = 0 ;
35397 PyObject * obj0 = 0 ;
35398 PyObject * obj1 = 0 ;
35399 char * kwnames[] = {
35400 (char *) "self",(char *) "item", NULL
35401 };
35402
35403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35405 if (!SWIG_IsOK(res1)) {
35406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35407 }
35408 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35409 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35410 if (!SWIG_IsOK(res2)) {
35411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35412 }
35413 if (!argp2) {
35414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35415 }
35416 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35417 {
35418 PyThreadState* __tstate = wxPyBeginAllowThreads();
35419 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35420 wxPyEndAllowThreads(__tstate);
35421 if (PyErr_Occurred()) SWIG_fail;
35422 }
35423 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35424 return resultobj;
35425 fail:
35426 return NULL;
35427 }
35428
35429
35430 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35431 PyObject *resultobj = 0;
35432 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35433 wxString *arg2 = 0 ;
35434 int arg3 = (int) -1 ;
35435 int arg4 = (int) -1 ;
35436 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35437 wxTreeItemId result;
35438 void *argp1 = 0 ;
35439 int res1 = 0 ;
35440 bool temp2 = false ;
35441 int val3 ;
35442 int ecode3 = 0 ;
35443 int val4 ;
35444 int ecode4 = 0 ;
35445 int res5 = 0 ;
35446 PyObject * obj0 = 0 ;
35447 PyObject * obj1 = 0 ;
35448 PyObject * obj2 = 0 ;
35449 PyObject * obj3 = 0 ;
35450 PyObject * obj4 = 0 ;
35451 char * kwnames[] = {
35452 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35453 };
35454
35455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35457 if (!SWIG_IsOK(res1)) {
35458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35459 }
35460 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35461 {
35462 arg2 = wxString_in_helper(obj1);
35463 if (arg2 == NULL) SWIG_fail;
35464 temp2 = true;
35465 }
35466 if (obj2) {
35467 ecode3 = SWIG_AsVal_int(obj2, &val3);
35468 if (!SWIG_IsOK(ecode3)) {
35469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35470 }
35471 arg3 = static_cast< int >(val3);
35472 }
35473 if (obj3) {
35474 ecode4 = SWIG_AsVal_int(obj3, &val4);
35475 if (!SWIG_IsOK(ecode4)) {
35476 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35477 }
35478 arg4 = static_cast< int >(val4);
35479 }
35480 if (obj4) {
35481 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35482 if (!SWIG_IsOK(res5)) {
35483 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35484 }
35485 }
35486 {
35487 PyThreadState* __tstate = wxPyBeginAllowThreads();
35488 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35489 wxPyEndAllowThreads(__tstate);
35490 if (PyErr_Occurred()) SWIG_fail;
35491 }
35492 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35493 {
35494 if (temp2)
35495 delete arg2;
35496 }
35497 return resultobj;
35498 fail:
35499 {
35500 if (temp2)
35501 delete arg2;
35502 }
35503 return NULL;
35504 }
35505
35506
35507 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35508 PyObject *resultobj = 0;
35509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35510 wxTreeItemId *arg2 = 0 ;
35511 wxString *arg3 = 0 ;
35512 int arg4 = (int) -1 ;
35513 int arg5 = (int) -1 ;
35514 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35515 wxTreeItemId result;
35516 void *argp1 = 0 ;
35517 int res1 = 0 ;
35518 void *argp2 = 0 ;
35519 int res2 = 0 ;
35520 bool temp3 = false ;
35521 int val4 ;
35522 int ecode4 = 0 ;
35523 int val5 ;
35524 int ecode5 = 0 ;
35525 int res6 = 0 ;
35526 PyObject * obj0 = 0 ;
35527 PyObject * obj1 = 0 ;
35528 PyObject * obj2 = 0 ;
35529 PyObject * obj3 = 0 ;
35530 PyObject * obj4 = 0 ;
35531 PyObject * obj5 = 0 ;
35532 char * kwnames[] = {
35533 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35534 };
35535
35536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35538 if (!SWIG_IsOK(res1)) {
35539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35540 }
35541 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35543 if (!SWIG_IsOK(res2)) {
35544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35545 }
35546 if (!argp2) {
35547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35548 }
35549 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35550 {
35551 arg3 = wxString_in_helper(obj2);
35552 if (arg3 == NULL) SWIG_fail;
35553 temp3 = true;
35554 }
35555 if (obj3) {
35556 ecode4 = SWIG_AsVal_int(obj3, &val4);
35557 if (!SWIG_IsOK(ecode4)) {
35558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35559 }
35560 arg4 = static_cast< int >(val4);
35561 }
35562 if (obj4) {
35563 ecode5 = SWIG_AsVal_int(obj4, &val5);
35564 if (!SWIG_IsOK(ecode5)) {
35565 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35566 }
35567 arg5 = static_cast< int >(val5);
35568 }
35569 if (obj5) {
35570 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35571 if (!SWIG_IsOK(res6)) {
35572 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35573 }
35574 }
35575 {
35576 PyThreadState* __tstate = wxPyBeginAllowThreads();
35577 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35578 wxPyEndAllowThreads(__tstate);
35579 if (PyErr_Occurred()) SWIG_fail;
35580 }
35581 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35582 {
35583 if (temp3)
35584 delete arg3;
35585 }
35586 return resultobj;
35587 fail:
35588 {
35589 if (temp3)
35590 delete arg3;
35591 }
35592 return NULL;
35593 }
35594
35595
35596 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35597 PyObject *resultobj = 0;
35598 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35599 wxTreeItemId *arg2 = 0 ;
35600 wxTreeItemId *arg3 = 0 ;
35601 wxString *arg4 = 0 ;
35602 int arg5 = (int) -1 ;
35603 int arg6 = (int) -1 ;
35604 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35605 wxTreeItemId result;
35606 void *argp1 = 0 ;
35607 int res1 = 0 ;
35608 void *argp2 = 0 ;
35609 int res2 = 0 ;
35610 void *argp3 = 0 ;
35611 int res3 = 0 ;
35612 bool temp4 = false ;
35613 int val5 ;
35614 int ecode5 = 0 ;
35615 int val6 ;
35616 int ecode6 = 0 ;
35617 int res7 = 0 ;
35618 PyObject * obj0 = 0 ;
35619 PyObject * obj1 = 0 ;
35620 PyObject * obj2 = 0 ;
35621 PyObject * obj3 = 0 ;
35622 PyObject * obj4 = 0 ;
35623 PyObject * obj5 = 0 ;
35624 PyObject * obj6 = 0 ;
35625 char * kwnames[] = {
35626 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35627 };
35628
35629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35631 if (!SWIG_IsOK(res1)) {
35632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35633 }
35634 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35635 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35636 if (!SWIG_IsOK(res2)) {
35637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35638 }
35639 if (!argp2) {
35640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35641 }
35642 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35643 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35644 if (!SWIG_IsOK(res3)) {
35645 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35646 }
35647 if (!argp3) {
35648 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35649 }
35650 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35651 {
35652 arg4 = wxString_in_helper(obj3);
35653 if (arg4 == NULL) SWIG_fail;
35654 temp4 = true;
35655 }
35656 if (obj4) {
35657 ecode5 = SWIG_AsVal_int(obj4, &val5);
35658 if (!SWIG_IsOK(ecode5)) {
35659 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35660 }
35661 arg5 = static_cast< int >(val5);
35662 }
35663 if (obj5) {
35664 ecode6 = SWIG_AsVal_int(obj5, &val6);
35665 if (!SWIG_IsOK(ecode6)) {
35666 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35667 }
35668 arg6 = static_cast< int >(val6);
35669 }
35670 if (obj6) {
35671 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35672 if (!SWIG_IsOK(res7)) {
35673 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35674 }
35675 }
35676 {
35677 PyThreadState* __tstate = wxPyBeginAllowThreads();
35678 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35679 wxPyEndAllowThreads(__tstate);
35680 if (PyErr_Occurred()) SWIG_fail;
35681 }
35682 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35683 {
35684 if (temp4)
35685 delete arg4;
35686 }
35687 return resultobj;
35688 fail:
35689 {
35690 if (temp4)
35691 delete arg4;
35692 }
35693 return NULL;
35694 }
35695
35696
35697 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35698 PyObject *resultobj = 0;
35699 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35700 wxTreeItemId *arg2 = 0 ;
35701 size_t arg3 ;
35702 wxString *arg4 = 0 ;
35703 int arg5 = (int) -1 ;
35704 int arg6 = (int) -1 ;
35705 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35706 wxTreeItemId result;
35707 void *argp1 = 0 ;
35708 int res1 = 0 ;
35709 void *argp2 = 0 ;
35710 int res2 = 0 ;
35711 size_t val3 ;
35712 int ecode3 = 0 ;
35713 bool temp4 = false ;
35714 int val5 ;
35715 int ecode5 = 0 ;
35716 int val6 ;
35717 int ecode6 = 0 ;
35718 int res7 = 0 ;
35719 PyObject * obj0 = 0 ;
35720 PyObject * obj1 = 0 ;
35721 PyObject * obj2 = 0 ;
35722 PyObject * obj3 = 0 ;
35723 PyObject * obj4 = 0 ;
35724 PyObject * obj5 = 0 ;
35725 PyObject * obj6 = 0 ;
35726 char * kwnames[] = {
35727 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35728 };
35729
35730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35732 if (!SWIG_IsOK(res1)) {
35733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35734 }
35735 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35736 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35737 if (!SWIG_IsOK(res2)) {
35738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35739 }
35740 if (!argp2) {
35741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35742 }
35743 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35744 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35745 if (!SWIG_IsOK(ecode3)) {
35746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35747 }
35748 arg3 = static_cast< size_t >(val3);
35749 {
35750 arg4 = wxString_in_helper(obj3);
35751 if (arg4 == NULL) SWIG_fail;
35752 temp4 = true;
35753 }
35754 if (obj4) {
35755 ecode5 = SWIG_AsVal_int(obj4, &val5);
35756 if (!SWIG_IsOK(ecode5)) {
35757 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35758 }
35759 arg5 = static_cast< int >(val5);
35760 }
35761 if (obj5) {
35762 ecode6 = SWIG_AsVal_int(obj5, &val6);
35763 if (!SWIG_IsOK(ecode6)) {
35764 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35765 }
35766 arg6 = static_cast< int >(val6);
35767 }
35768 if (obj6) {
35769 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35770 if (!SWIG_IsOK(res7)) {
35771 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35772 }
35773 }
35774 {
35775 PyThreadState* __tstate = wxPyBeginAllowThreads();
35776 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35777 wxPyEndAllowThreads(__tstate);
35778 if (PyErr_Occurred()) SWIG_fail;
35779 }
35780 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35781 {
35782 if (temp4)
35783 delete arg4;
35784 }
35785 return resultobj;
35786 fail:
35787 {
35788 if (temp4)
35789 delete arg4;
35790 }
35791 return NULL;
35792 }
35793
35794
35795 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35796 PyObject *resultobj = 0;
35797 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35798 wxTreeItemId *arg2 = 0 ;
35799 wxString *arg3 = 0 ;
35800 int arg4 = (int) -1 ;
35801 int arg5 = (int) -1 ;
35802 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35803 wxTreeItemId result;
35804 void *argp1 = 0 ;
35805 int res1 = 0 ;
35806 void *argp2 = 0 ;
35807 int res2 = 0 ;
35808 bool temp3 = false ;
35809 int val4 ;
35810 int ecode4 = 0 ;
35811 int val5 ;
35812 int ecode5 = 0 ;
35813 int res6 = 0 ;
35814 PyObject * obj0 = 0 ;
35815 PyObject * obj1 = 0 ;
35816 PyObject * obj2 = 0 ;
35817 PyObject * obj3 = 0 ;
35818 PyObject * obj4 = 0 ;
35819 PyObject * obj5 = 0 ;
35820 char * kwnames[] = {
35821 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35822 };
35823
35824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
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_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35833 }
35834 if (!argp2) {
35835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35836 }
35837 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35838 {
35839 arg3 = wxString_in_helper(obj2);
35840 if (arg3 == NULL) SWIG_fail;
35841 temp3 = true;
35842 }
35843 if (obj3) {
35844 ecode4 = SWIG_AsVal_int(obj3, &val4);
35845 if (!SWIG_IsOK(ecode4)) {
35846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35847 }
35848 arg4 = static_cast< int >(val4);
35849 }
35850 if (obj4) {
35851 ecode5 = SWIG_AsVal_int(obj4, &val5);
35852 if (!SWIG_IsOK(ecode5)) {
35853 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35854 }
35855 arg5 = static_cast< int >(val5);
35856 }
35857 if (obj5) {
35858 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35859 if (!SWIG_IsOK(res6)) {
35860 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35861 }
35862 }
35863 {
35864 PyThreadState* __tstate = wxPyBeginAllowThreads();
35865 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35866 wxPyEndAllowThreads(__tstate);
35867 if (PyErr_Occurred()) SWIG_fail;
35868 }
35869 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35870 {
35871 if (temp3)
35872 delete arg3;
35873 }
35874 return resultobj;
35875 fail:
35876 {
35877 if (temp3)
35878 delete arg3;
35879 }
35880 return NULL;
35881 }
35882
35883
35884 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35885 PyObject *resultobj = 0;
35886 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35887 wxTreeItemId *arg2 = 0 ;
35888 void *argp1 = 0 ;
35889 int res1 = 0 ;
35890 void *argp2 = 0 ;
35891 int res2 = 0 ;
35892 PyObject * obj0 = 0 ;
35893 PyObject * obj1 = 0 ;
35894 char * kwnames[] = {
35895 (char *) "self",(char *) "item", NULL
35896 };
35897
35898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35900 if (!SWIG_IsOK(res1)) {
35901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35902 }
35903 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35904 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35905 if (!SWIG_IsOK(res2)) {
35906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35907 }
35908 if (!argp2) {
35909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35910 }
35911 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35912 {
35913 PyThreadState* __tstate = wxPyBeginAllowThreads();
35914 (arg1)->Delete((wxTreeItemId const &)*arg2);
35915 wxPyEndAllowThreads(__tstate);
35916 if (PyErr_Occurred()) SWIG_fail;
35917 }
35918 resultobj = SWIG_Py_Void();
35919 return resultobj;
35920 fail:
35921 return NULL;
35922 }
35923
35924
35925 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35926 PyObject *resultobj = 0;
35927 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35928 wxTreeItemId *arg2 = 0 ;
35929 void *argp1 = 0 ;
35930 int res1 = 0 ;
35931 void *argp2 = 0 ;
35932 int res2 = 0 ;
35933 PyObject * obj0 = 0 ;
35934 PyObject * obj1 = 0 ;
35935 char * kwnames[] = {
35936 (char *) "self",(char *) "item", NULL
35937 };
35938
35939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35941 if (!SWIG_IsOK(res1)) {
35942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35943 }
35944 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35945 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35946 if (!SWIG_IsOK(res2)) {
35947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35948 }
35949 if (!argp2) {
35950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35951 }
35952 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35953 {
35954 PyThreadState* __tstate = wxPyBeginAllowThreads();
35955 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
35956 wxPyEndAllowThreads(__tstate);
35957 if (PyErr_Occurred()) SWIG_fail;
35958 }
35959 resultobj = SWIG_Py_Void();
35960 return resultobj;
35961 fail:
35962 return NULL;
35963 }
35964
35965
35966 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35967 PyObject *resultobj = 0;
35968 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35969 void *argp1 = 0 ;
35970 int res1 = 0 ;
35971 PyObject *swig_obj[1] ;
35972
35973 if (!args) SWIG_fail;
35974 swig_obj[0] = args;
35975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35976 if (!SWIG_IsOK(res1)) {
35977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35978 }
35979 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35980 {
35981 PyThreadState* __tstate = wxPyBeginAllowThreads();
35982 (arg1)->DeleteAllItems();
35983 wxPyEndAllowThreads(__tstate);
35984 if (PyErr_Occurred()) SWIG_fail;
35985 }
35986 resultobj = SWIG_Py_Void();
35987 return resultobj;
35988 fail:
35989 return NULL;
35990 }
35991
35992
35993 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35994 PyObject *resultobj = 0;
35995 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35996 wxTreeItemId *arg2 = 0 ;
35997 void *argp1 = 0 ;
35998 int res1 = 0 ;
35999 void *argp2 = 0 ;
36000 int res2 = 0 ;
36001 PyObject * obj0 = 0 ;
36002 PyObject * obj1 = 0 ;
36003 char * kwnames[] = {
36004 (char *) "self",(char *) "item", NULL
36005 };
36006
36007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36009 if (!SWIG_IsOK(res1)) {
36010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36011 }
36012 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36013 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36014 if (!SWIG_IsOK(res2)) {
36015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36016 }
36017 if (!argp2) {
36018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36019 }
36020 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36021 {
36022 PyThreadState* __tstate = wxPyBeginAllowThreads();
36023 (arg1)->Expand((wxTreeItemId const &)*arg2);
36024 wxPyEndAllowThreads(__tstate);
36025 if (PyErr_Occurred()) SWIG_fail;
36026 }
36027 resultobj = SWIG_Py_Void();
36028 return resultobj;
36029 fail:
36030 return NULL;
36031 }
36032
36033
36034 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36035 PyObject *resultobj = 0;
36036 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36037 wxTreeItemId *arg2 = 0 ;
36038 void *argp1 = 0 ;
36039 int res1 = 0 ;
36040 void *argp2 = 0 ;
36041 int res2 = 0 ;
36042 PyObject * obj0 = 0 ;
36043 PyObject * obj1 = 0 ;
36044 char * kwnames[] = {
36045 (char *) "self",(char *) "item", NULL
36046 };
36047
36048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36050 if (!SWIG_IsOK(res1)) {
36051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36052 }
36053 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36055 if (!SWIG_IsOK(res2)) {
36056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36057 }
36058 if (!argp2) {
36059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36060 }
36061 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36062 {
36063 PyThreadState* __tstate = wxPyBeginAllowThreads();
36064 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36065 wxPyEndAllowThreads(__tstate);
36066 if (PyErr_Occurred()) SWIG_fail;
36067 }
36068 resultobj = SWIG_Py_Void();
36069 return resultobj;
36070 fail:
36071 return NULL;
36072 }
36073
36074
36075 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36076 PyObject *resultobj = 0;
36077 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36078 wxTreeItemId *arg2 = 0 ;
36079 void *argp1 = 0 ;
36080 int res1 = 0 ;
36081 void *argp2 = 0 ;
36082 int res2 = 0 ;
36083 PyObject * obj0 = 0 ;
36084 PyObject * obj1 = 0 ;
36085 char * kwnames[] = {
36086 (char *) "self",(char *) "item", NULL
36087 };
36088
36089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36091 if (!SWIG_IsOK(res1)) {
36092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36093 }
36094 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36095 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36096 if (!SWIG_IsOK(res2)) {
36097 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36098 }
36099 if (!argp2) {
36100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36101 }
36102 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36103 {
36104 PyThreadState* __tstate = wxPyBeginAllowThreads();
36105 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36106 wxPyEndAllowThreads(__tstate);
36107 if (PyErr_Occurred()) SWIG_fail;
36108 }
36109 resultobj = SWIG_Py_Void();
36110 return resultobj;
36111 fail:
36112 return NULL;
36113 }
36114
36115
36116 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36117 PyObject *resultobj = 0;
36118 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36119 wxTreeItemId *arg2 = 0 ;
36120 void *argp1 = 0 ;
36121 int res1 = 0 ;
36122 void *argp2 = 0 ;
36123 int res2 = 0 ;
36124 PyObject * obj0 = 0 ;
36125 PyObject * obj1 = 0 ;
36126 char * kwnames[] = {
36127 (char *) "self",(char *) "item", NULL
36128 };
36129
36130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36132 if (!SWIG_IsOK(res1)) {
36133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36134 }
36135 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36136 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36137 if (!SWIG_IsOK(res2)) {
36138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36139 }
36140 if (!argp2) {
36141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36142 }
36143 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36144 {
36145 PyThreadState* __tstate = wxPyBeginAllowThreads();
36146 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36147 wxPyEndAllowThreads(__tstate);
36148 if (PyErr_Occurred()) SWIG_fail;
36149 }
36150 resultobj = SWIG_Py_Void();
36151 return resultobj;
36152 fail:
36153 return NULL;
36154 }
36155
36156
36157 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36158 PyObject *resultobj = 0;
36159 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36160 void *argp1 = 0 ;
36161 int res1 = 0 ;
36162 PyObject *swig_obj[1] ;
36163
36164 if (!args) SWIG_fail;
36165 swig_obj[0] = args;
36166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36167 if (!SWIG_IsOK(res1)) {
36168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36169 }
36170 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36171 {
36172 PyThreadState* __tstate = wxPyBeginAllowThreads();
36173 (arg1)->Unselect();
36174 wxPyEndAllowThreads(__tstate);
36175 if (PyErr_Occurred()) SWIG_fail;
36176 }
36177 resultobj = SWIG_Py_Void();
36178 return resultobj;
36179 fail:
36180 return NULL;
36181 }
36182
36183
36184 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36185 PyObject *resultobj = 0;
36186 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36187 wxTreeItemId *arg2 = 0 ;
36188 void *argp1 = 0 ;
36189 int res1 = 0 ;
36190 void *argp2 = 0 ;
36191 int res2 = 0 ;
36192 PyObject * obj0 = 0 ;
36193 PyObject * obj1 = 0 ;
36194 char * kwnames[] = {
36195 (char *) "self",(char *) "item", NULL
36196 };
36197
36198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36200 if (!SWIG_IsOK(res1)) {
36201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36202 }
36203 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36205 if (!SWIG_IsOK(res2)) {
36206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36207 }
36208 if (!argp2) {
36209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36210 }
36211 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36212 {
36213 PyThreadState* __tstate = wxPyBeginAllowThreads();
36214 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36215 wxPyEndAllowThreads(__tstate);
36216 if (PyErr_Occurred()) SWIG_fail;
36217 }
36218 resultobj = SWIG_Py_Void();
36219 return resultobj;
36220 fail:
36221 return NULL;
36222 }
36223
36224
36225 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36226 PyObject *resultobj = 0;
36227 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36228 void *argp1 = 0 ;
36229 int res1 = 0 ;
36230 PyObject *swig_obj[1] ;
36231
36232 if (!args) SWIG_fail;
36233 swig_obj[0] = args;
36234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36235 if (!SWIG_IsOK(res1)) {
36236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36237 }
36238 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36239 {
36240 PyThreadState* __tstate = wxPyBeginAllowThreads();
36241 (arg1)->UnselectAll();
36242 wxPyEndAllowThreads(__tstate);
36243 if (PyErr_Occurred()) SWIG_fail;
36244 }
36245 resultobj = SWIG_Py_Void();
36246 return resultobj;
36247 fail:
36248 return NULL;
36249 }
36250
36251
36252 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36253 PyObject *resultobj = 0;
36254 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36255 wxTreeItemId *arg2 = 0 ;
36256 bool arg3 = (bool) true ;
36257 void *argp1 = 0 ;
36258 int res1 = 0 ;
36259 void *argp2 = 0 ;
36260 int res2 = 0 ;
36261 bool val3 ;
36262 int ecode3 = 0 ;
36263 PyObject * obj0 = 0 ;
36264 PyObject * obj1 = 0 ;
36265 PyObject * obj2 = 0 ;
36266 char * kwnames[] = {
36267 (char *) "self",(char *) "item",(char *) "select", NULL
36268 };
36269
36270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36272 if (!SWIG_IsOK(res1)) {
36273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36274 }
36275 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36277 if (!SWIG_IsOK(res2)) {
36278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36279 }
36280 if (!argp2) {
36281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36282 }
36283 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36284 if (obj2) {
36285 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36286 if (!SWIG_IsOK(ecode3)) {
36287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36288 }
36289 arg3 = static_cast< bool >(val3);
36290 }
36291 {
36292 PyThreadState* __tstate = wxPyBeginAllowThreads();
36293 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36294 wxPyEndAllowThreads(__tstate);
36295 if (PyErr_Occurred()) SWIG_fail;
36296 }
36297 resultobj = SWIG_Py_Void();
36298 return resultobj;
36299 fail:
36300 return NULL;
36301 }
36302
36303
36304 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36305 PyObject *resultobj = 0;
36306 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36307 wxTreeItemId *arg2 = 0 ;
36308 void *argp1 = 0 ;
36309 int res1 = 0 ;
36310 void *argp2 = 0 ;
36311 int res2 = 0 ;
36312 PyObject * obj0 = 0 ;
36313 PyObject * obj1 = 0 ;
36314 char * kwnames[] = {
36315 (char *) "self",(char *) "item", NULL
36316 };
36317
36318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36320 if (!SWIG_IsOK(res1)) {
36321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36322 }
36323 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36325 if (!SWIG_IsOK(res2)) {
36326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36327 }
36328 if (!argp2) {
36329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36330 }
36331 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36332 {
36333 PyThreadState* __tstate = wxPyBeginAllowThreads();
36334 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36335 wxPyEndAllowThreads(__tstate);
36336 if (PyErr_Occurred()) SWIG_fail;
36337 }
36338 resultobj = SWIG_Py_Void();
36339 return resultobj;
36340 fail:
36341 return NULL;
36342 }
36343
36344
36345 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36346 PyObject *resultobj = 0;
36347 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36348 wxTreeItemId *arg2 = 0 ;
36349 void *argp1 = 0 ;
36350 int res1 = 0 ;
36351 void *argp2 = 0 ;
36352 int res2 = 0 ;
36353 PyObject * obj0 = 0 ;
36354 PyObject * obj1 = 0 ;
36355 char * kwnames[] = {
36356 (char *) "self",(char *) "item", NULL
36357 };
36358
36359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36361 if (!SWIG_IsOK(res1)) {
36362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36363 }
36364 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36366 if (!SWIG_IsOK(res2)) {
36367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36368 }
36369 if (!argp2) {
36370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36371 }
36372 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36373 {
36374 PyThreadState* __tstate = wxPyBeginAllowThreads();
36375 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36376 wxPyEndAllowThreads(__tstate);
36377 if (PyErr_Occurred()) SWIG_fail;
36378 }
36379 resultobj = SWIG_Py_Void();
36380 return resultobj;
36381 fail:
36382 return NULL;
36383 }
36384
36385
36386 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36387 PyObject *resultobj = 0;
36388 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36389 wxTreeItemId *arg2 = 0 ;
36390 void *argp1 = 0 ;
36391 int res1 = 0 ;
36392 void *argp2 = 0 ;
36393 int res2 = 0 ;
36394 PyObject * obj0 = 0 ;
36395 PyObject * obj1 = 0 ;
36396 char * kwnames[] = {
36397 (char *) "self",(char *) "item", NULL
36398 };
36399
36400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36402 if (!SWIG_IsOK(res1)) {
36403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36404 }
36405 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36406 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36407 if (!SWIG_IsOK(res2)) {
36408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36409 }
36410 if (!argp2) {
36411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36412 }
36413 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36414 {
36415 PyThreadState* __tstate = wxPyBeginAllowThreads();
36416 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36417 wxPyEndAllowThreads(__tstate);
36418 if (PyErr_Occurred()) SWIG_fail;
36419 }
36420 resultobj = SWIG_Py_Void();
36421 return resultobj;
36422 fail:
36423 return NULL;
36424 }
36425
36426
36427 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36428 PyObject *resultobj = 0;
36429 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36430 wxTreeItemId *arg2 = 0 ;
36431 void *argp1 = 0 ;
36432 int res1 = 0 ;
36433 void *argp2 = 0 ;
36434 int res2 = 0 ;
36435 PyObject * obj0 = 0 ;
36436 PyObject * obj1 = 0 ;
36437 char * kwnames[] = {
36438 (char *) "self",(char *) "item", NULL
36439 };
36440
36441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36443 if (!SWIG_IsOK(res1)) {
36444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36445 }
36446 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36447 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36448 if (!SWIG_IsOK(res2)) {
36449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36450 }
36451 if (!argp2) {
36452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36453 }
36454 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36455 {
36456 PyThreadState* __tstate = wxPyBeginAllowThreads();
36457 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36458 wxPyEndAllowThreads(__tstate);
36459 if (PyErr_Occurred()) SWIG_fail;
36460 }
36461 resultobj = SWIG_Py_Void();
36462 return resultobj;
36463 fail:
36464 return NULL;
36465 }
36466
36467
36468 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36469 PyObject *resultobj = 0;
36470 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36471 wxTextCtrl *result = 0 ;
36472 void *argp1 = 0 ;
36473 int res1 = 0 ;
36474 PyObject *swig_obj[1] ;
36475
36476 if (!args) SWIG_fail;
36477 swig_obj[0] = args;
36478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36479 if (!SWIG_IsOK(res1)) {
36480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36481 }
36482 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36483 {
36484 PyThreadState* __tstate = wxPyBeginAllowThreads();
36485 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36486 wxPyEndAllowThreads(__tstate);
36487 if (PyErr_Occurred()) SWIG_fail;
36488 }
36489 {
36490 resultobj = wxPyMake_wxObject(result, 0);
36491 }
36492 return resultobj;
36493 fail:
36494 return NULL;
36495 }
36496
36497
36498 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36499 PyObject *resultobj = 0;
36500 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36501 wxTreeItemId *arg2 = 0 ;
36502 void *argp1 = 0 ;
36503 int res1 = 0 ;
36504 void *argp2 = 0 ;
36505 int res2 = 0 ;
36506 PyObject * obj0 = 0 ;
36507 PyObject * obj1 = 0 ;
36508 char * kwnames[] = {
36509 (char *) "self",(char *) "item", NULL
36510 };
36511
36512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36514 if (!SWIG_IsOK(res1)) {
36515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36516 }
36517 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36519 if (!SWIG_IsOK(res2)) {
36520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36521 }
36522 if (!argp2) {
36523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36524 }
36525 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36526 {
36527 PyThreadState* __tstate = wxPyBeginAllowThreads();
36528 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36529 wxPyEndAllowThreads(__tstate);
36530 if (PyErr_Occurred()) SWIG_fail;
36531 }
36532 resultobj = SWIG_Py_Void();
36533 return resultobj;
36534 fail:
36535 return NULL;
36536 }
36537
36538
36539 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36540 PyObject *resultobj = 0;
36541 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36542 wxPoint *arg2 = 0 ;
36543 int *arg3 = 0 ;
36544 wxTreeItemId result;
36545 void *argp1 = 0 ;
36546 int res1 = 0 ;
36547 wxPoint temp2 ;
36548 int temp3 ;
36549 int res3 = SWIG_TMPOBJ ;
36550 PyObject * obj0 = 0 ;
36551 PyObject * obj1 = 0 ;
36552 char * kwnames[] = {
36553 (char *) "self",(char *) "point", NULL
36554 };
36555
36556 arg3 = &temp3;
36557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36559 if (!SWIG_IsOK(res1)) {
36560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36561 }
36562 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36563 {
36564 arg2 = &temp2;
36565 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36566 }
36567 {
36568 PyThreadState* __tstate = wxPyBeginAllowThreads();
36569 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36570 wxPyEndAllowThreads(__tstate);
36571 if (PyErr_Occurred()) SWIG_fail;
36572 }
36573 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36574 if (SWIG_IsTmpObj(res3)) {
36575 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36576 } else {
36577 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36578 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36579 }
36580 return resultobj;
36581 fail:
36582 return NULL;
36583 }
36584
36585
36586 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36587 PyObject *resultobj = 0;
36588 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36589 wxTreeItemId *arg2 = 0 ;
36590 bool arg3 = (bool) false ;
36591 PyObject *result = 0 ;
36592 void *argp1 = 0 ;
36593 int res1 = 0 ;
36594 void *argp2 = 0 ;
36595 int res2 = 0 ;
36596 bool val3 ;
36597 int ecode3 = 0 ;
36598 PyObject * obj0 = 0 ;
36599 PyObject * obj1 = 0 ;
36600 PyObject * obj2 = 0 ;
36601 char * kwnames[] = {
36602 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36603 };
36604
36605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36607 if (!SWIG_IsOK(res1)) {
36608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36609 }
36610 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36611 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36612 if (!SWIG_IsOK(res2)) {
36613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36614 }
36615 if (!argp2) {
36616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36617 }
36618 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36619 if (obj2) {
36620 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36621 if (!SWIG_IsOK(ecode3)) {
36622 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36623 }
36624 arg3 = static_cast< bool >(val3);
36625 }
36626 {
36627 PyThreadState* __tstate = wxPyBeginAllowThreads();
36628 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36629 wxPyEndAllowThreads(__tstate);
36630 if (PyErr_Occurred()) SWIG_fail;
36631 }
36632 resultobj = result;
36633 return resultobj;
36634 fail:
36635 return NULL;
36636 }
36637
36638
36639 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36640 PyObject *resultobj = 0;
36641 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36642 SwigValueWrapper<wxVisualAttributes > result;
36643 int val1 ;
36644 int ecode1 = 0 ;
36645 PyObject * obj0 = 0 ;
36646 char * kwnames[] = {
36647 (char *) "variant", NULL
36648 };
36649
36650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36651 if (obj0) {
36652 ecode1 = SWIG_AsVal_int(obj0, &val1);
36653 if (!SWIG_IsOK(ecode1)) {
36654 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36655 }
36656 arg1 = static_cast< wxWindowVariant >(val1);
36657 }
36658 {
36659 if (!wxPyCheckForApp()) SWIG_fail;
36660 PyThreadState* __tstate = wxPyBeginAllowThreads();
36661 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36662 wxPyEndAllowThreads(__tstate);
36663 if (PyErr_Occurred()) SWIG_fail;
36664 }
36665 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36666 return resultobj;
36667 fail:
36668 return NULL;
36669 }
36670
36671
36672 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36673 PyObject *resultobj = 0;
36674 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36675 bool arg2 ;
36676 void *argp1 = 0 ;
36677 int res1 = 0 ;
36678 bool val2 ;
36679 int ecode2 = 0 ;
36680 PyObject * obj0 = 0 ;
36681 PyObject * obj1 = 0 ;
36682 char * kwnames[] = {
36683 (char *) "self",(char *) "q", NULL
36684 };
36685
36686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
36687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36688 if (!SWIG_IsOK(res1)) {
36689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36690 }
36691 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36692 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36693 if (!SWIG_IsOK(ecode2)) {
36694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
36695 }
36696 arg2 = static_cast< bool >(val2);
36697 {
36698 PyThreadState* __tstate = wxPyBeginAllowThreads();
36699 (arg1)->SetQuickBestSize(arg2);
36700 wxPyEndAllowThreads(__tstate);
36701 if (PyErr_Occurred()) SWIG_fail;
36702 }
36703 resultobj = SWIG_Py_Void();
36704 return resultobj;
36705 fail:
36706 return NULL;
36707 }
36708
36709
36710 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36711 PyObject *resultobj = 0;
36712 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36713 bool result;
36714 void *argp1 = 0 ;
36715 int res1 = 0 ;
36716 PyObject *swig_obj[1] ;
36717
36718 if (!args) SWIG_fail;
36719 swig_obj[0] = args;
36720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36721 if (!SWIG_IsOK(res1)) {
36722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36723 }
36724 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36725 {
36726 PyThreadState* __tstate = wxPyBeginAllowThreads();
36727 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
36728 wxPyEndAllowThreads(__tstate);
36729 if (PyErr_Occurred()) SWIG_fail;
36730 }
36731 {
36732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36733 }
36734 return resultobj;
36735 fail:
36736 return NULL;
36737 }
36738
36739
36740 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36741 PyObject *obj;
36742 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36743 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36744 return SWIG_Py_Void();
36745 }
36746
36747 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36748 return SWIG_Python_InitShadowInstance(args);
36749 }
36750
36751 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36752 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36753 return 1;
36754 }
36755
36756
36757 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36758 PyObject *pyobj = 0;
36759
36760 {
36761 #if wxUSE_UNICODE
36762 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36763 #else
36764 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36765 #endif
36766 }
36767 return pyobj;
36768 }
36769
36770
36771 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36772 PyObject *resultobj = 0;
36773 wxWindow *arg1 = (wxWindow *) 0 ;
36774 int arg2 = (int) (int)-1 ;
36775 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36776 wxString *arg3 = (wxString *) &arg3_defvalue ;
36777 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36778 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36779 wxSize const &arg5_defvalue = wxDefaultSize ;
36780 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36781 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36782 wxString const &arg7_defvalue = wxPyEmptyString ;
36783 wxString *arg7 = (wxString *) &arg7_defvalue ;
36784 int arg8 = (int) 0 ;
36785 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36786 wxString *arg9 = (wxString *) &arg9_defvalue ;
36787 wxGenericDirCtrl *result = 0 ;
36788 void *argp1 = 0 ;
36789 int res1 = 0 ;
36790 int val2 ;
36791 int ecode2 = 0 ;
36792 bool temp3 = false ;
36793 wxPoint temp4 ;
36794 wxSize temp5 ;
36795 long val6 ;
36796 int ecode6 = 0 ;
36797 bool temp7 = false ;
36798 int val8 ;
36799 int ecode8 = 0 ;
36800 bool temp9 = false ;
36801 PyObject * obj0 = 0 ;
36802 PyObject * obj1 = 0 ;
36803 PyObject * obj2 = 0 ;
36804 PyObject * obj3 = 0 ;
36805 PyObject * obj4 = 0 ;
36806 PyObject * obj5 = 0 ;
36807 PyObject * obj6 = 0 ;
36808 PyObject * obj7 = 0 ;
36809 PyObject * obj8 = 0 ;
36810 char * kwnames[] = {
36811 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36812 };
36813
36814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36816 if (!SWIG_IsOK(res1)) {
36817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36818 }
36819 arg1 = reinterpret_cast< wxWindow * >(argp1);
36820 if (obj1) {
36821 ecode2 = SWIG_AsVal_int(obj1, &val2);
36822 if (!SWIG_IsOK(ecode2)) {
36823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36824 }
36825 arg2 = static_cast< int >(val2);
36826 }
36827 if (obj2) {
36828 {
36829 arg3 = wxString_in_helper(obj2);
36830 if (arg3 == NULL) SWIG_fail;
36831 temp3 = true;
36832 }
36833 }
36834 if (obj3) {
36835 {
36836 arg4 = &temp4;
36837 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36838 }
36839 }
36840 if (obj4) {
36841 {
36842 arg5 = &temp5;
36843 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36844 }
36845 }
36846 if (obj5) {
36847 ecode6 = SWIG_AsVal_long(obj5, &val6);
36848 if (!SWIG_IsOK(ecode6)) {
36849 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36850 }
36851 arg6 = static_cast< long >(val6);
36852 }
36853 if (obj6) {
36854 {
36855 arg7 = wxString_in_helper(obj6);
36856 if (arg7 == NULL) SWIG_fail;
36857 temp7 = true;
36858 }
36859 }
36860 if (obj7) {
36861 ecode8 = SWIG_AsVal_int(obj7, &val8);
36862 if (!SWIG_IsOK(ecode8)) {
36863 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
36864 }
36865 arg8 = static_cast< int >(val8);
36866 }
36867 if (obj8) {
36868 {
36869 arg9 = wxString_in_helper(obj8);
36870 if (arg9 == NULL) SWIG_fail;
36871 temp9 = true;
36872 }
36873 }
36874 {
36875 if (!wxPyCheckForApp()) SWIG_fail;
36876 PyThreadState* __tstate = wxPyBeginAllowThreads();
36877 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
36878 wxPyEndAllowThreads(__tstate);
36879 if (PyErr_Occurred()) SWIG_fail;
36880 }
36881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
36882 {
36883 if (temp3)
36884 delete arg3;
36885 }
36886 {
36887 if (temp7)
36888 delete arg7;
36889 }
36890 {
36891 if (temp9)
36892 delete arg9;
36893 }
36894 return resultobj;
36895 fail:
36896 {
36897 if (temp3)
36898 delete arg3;
36899 }
36900 {
36901 if (temp7)
36902 delete arg7;
36903 }
36904 {
36905 if (temp9)
36906 delete arg9;
36907 }
36908 return NULL;
36909 }
36910
36911
36912 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36913 PyObject *resultobj = 0;
36914 wxGenericDirCtrl *result = 0 ;
36915
36916 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
36917 {
36918 if (!wxPyCheckForApp()) SWIG_fail;
36919 PyThreadState* __tstate = wxPyBeginAllowThreads();
36920 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
36921 wxPyEndAllowThreads(__tstate);
36922 if (PyErr_Occurred()) SWIG_fail;
36923 }
36924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
36925 return resultobj;
36926 fail:
36927 return NULL;
36928 }
36929
36930
36931 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36932 PyObject *resultobj = 0;
36933 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36934 wxWindow *arg2 = (wxWindow *) 0 ;
36935 int arg3 = (int) (int)-1 ;
36936 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
36937 wxString *arg4 = (wxString *) &arg4_defvalue ;
36938 wxPoint const &arg5_defvalue = wxDefaultPosition ;
36939 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
36940 wxSize const &arg6_defvalue = wxDefaultSize ;
36941 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
36942 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36943 wxString const &arg8_defvalue = wxPyEmptyString ;
36944 wxString *arg8 = (wxString *) &arg8_defvalue ;
36945 int arg9 = (int) 0 ;
36946 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
36947 wxString *arg10 = (wxString *) &arg10_defvalue ;
36948 bool result;
36949 void *argp1 = 0 ;
36950 int res1 = 0 ;
36951 void *argp2 = 0 ;
36952 int res2 = 0 ;
36953 int val3 ;
36954 int ecode3 = 0 ;
36955 bool temp4 = false ;
36956 wxPoint temp5 ;
36957 wxSize temp6 ;
36958 long val7 ;
36959 int ecode7 = 0 ;
36960 bool temp8 = false ;
36961 int val9 ;
36962 int ecode9 = 0 ;
36963 bool temp10 = false ;
36964 PyObject * obj0 = 0 ;
36965 PyObject * obj1 = 0 ;
36966 PyObject * obj2 = 0 ;
36967 PyObject * obj3 = 0 ;
36968 PyObject * obj4 = 0 ;
36969 PyObject * obj5 = 0 ;
36970 PyObject * obj6 = 0 ;
36971 PyObject * obj7 = 0 ;
36972 PyObject * obj8 = 0 ;
36973 PyObject * obj9 = 0 ;
36974 char * kwnames[] = {
36975 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36976 };
36977
36978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
36979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36980 if (!SWIG_IsOK(res1)) {
36981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36982 }
36983 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36984 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36985 if (!SWIG_IsOK(res2)) {
36986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
36987 }
36988 arg2 = reinterpret_cast< wxWindow * >(argp2);
36989 if (obj2) {
36990 ecode3 = SWIG_AsVal_int(obj2, &val3);
36991 if (!SWIG_IsOK(ecode3)) {
36992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
36993 }
36994 arg3 = static_cast< int >(val3);
36995 }
36996 if (obj3) {
36997 {
36998 arg4 = wxString_in_helper(obj3);
36999 if (arg4 == NULL) SWIG_fail;
37000 temp4 = true;
37001 }
37002 }
37003 if (obj4) {
37004 {
37005 arg5 = &temp5;
37006 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37007 }
37008 }
37009 if (obj5) {
37010 {
37011 arg6 = &temp6;
37012 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37013 }
37014 }
37015 if (obj6) {
37016 ecode7 = SWIG_AsVal_long(obj6, &val7);
37017 if (!SWIG_IsOK(ecode7)) {
37018 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37019 }
37020 arg7 = static_cast< long >(val7);
37021 }
37022 if (obj7) {
37023 {
37024 arg8 = wxString_in_helper(obj7);
37025 if (arg8 == NULL) SWIG_fail;
37026 temp8 = true;
37027 }
37028 }
37029 if (obj8) {
37030 ecode9 = SWIG_AsVal_int(obj8, &val9);
37031 if (!SWIG_IsOK(ecode9)) {
37032 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37033 }
37034 arg9 = static_cast< int >(val9);
37035 }
37036 if (obj9) {
37037 {
37038 arg10 = wxString_in_helper(obj9);
37039 if (arg10 == NULL) SWIG_fail;
37040 temp10 = true;
37041 }
37042 }
37043 {
37044 PyThreadState* __tstate = wxPyBeginAllowThreads();
37045 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37046 wxPyEndAllowThreads(__tstate);
37047 if (PyErr_Occurred()) SWIG_fail;
37048 }
37049 {
37050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37051 }
37052 {
37053 if (temp4)
37054 delete arg4;
37055 }
37056 {
37057 if (temp8)
37058 delete arg8;
37059 }
37060 {
37061 if (temp10)
37062 delete arg10;
37063 }
37064 return resultobj;
37065 fail:
37066 {
37067 if (temp4)
37068 delete arg4;
37069 }
37070 {
37071 if (temp8)
37072 delete arg8;
37073 }
37074 {
37075 if (temp10)
37076 delete arg10;
37077 }
37078 return NULL;
37079 }
37080
37081
37082 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37083 PyObject *resultobj = 0;
37084 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37085 wxString *arg2 = 0 ;
37086 bool result;
37087 void *argp1 = 0 ;
37088 int res1 = 0 ;
37089 bool temp2 = false ;
37090 PyObject * obj0 = 0 ;
37091 PyObject * obj1 = 0 ;
37092 char * kwnames[] = {
37093 (char *) "self",(char *) "path", NULL
37094 };
37095
37096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37098 if (!SWIG_IsOK(res1)) {
37099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37100 }
37101 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37102 {
37103 arg2 = wxString_in_helper(obj1);
37104 if (arg2 == NULL) SWIG_fail;
37105 temp2 = true;
37106 }
37107 {
37108 PyThreadState* __tstate = wxPyBeginAllowThreads();
37109 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37110 wxPyEndAllowThreads(__tstate);
37111 if (PyErr_Occurred()) SWIG_fail;
37112 }
37113 {
37114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37115 }
37116 {
37117 if (temp2)
37118 delete arg2;
37119 }
37120 return resultobj;
37121 fail:
37122 {
37123 if (temp2)
37124 delete arg2;
37125 }
37126 return NULL;
37127 }
37128
37129
37130 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37131 PyObject *resultobj = 0;
37132 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37133 wxString result;
37134 void *argp1 = 0 ;
37135 int res1 = 0 ;
37136 PyObject *swig_obj[1] ;
37137
37138 if (!args) SWIG_fail;
37139 swig_obj[0] = args;
37140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37141 if (!SWIG_IsOK(res1)) {
37142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37143 }
37144 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37145 {
37146 PyThreadState* __tstate = wxPyBeginAllowThreads();
37147 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37148 wxPyEndAllowThreads(__tstate);
37149 if (PyErr_Occurred()) SWIG_fail;
37150 }
37151 {
37152 #if wxUSE_UNICODE
37153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37154 #else
37155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37156 #endif
37157 }
37158 return resultobj;
37159 fail:
37160 return NULL;
37161 }
37162
37163
37164 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37165 PyObject *resultobj = 0;
37166 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37167 wxString *arg2 = 0 ;
37168 void *argp1 = 0 ;
37169 int res1 = 0 ;
37170 bool temp2 = false ;
37171 PyObject * obj0 = 0 ;
37172 PyObject * obj1 = 0 ;
37173 char * kwnames[] = {
37174 (char *) "self",(char *) "path", NULL
37175 };
37176
37177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37179 if (!SWIG_IsOK(res1)) {
37180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37181 }
37182 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37183 {
37184 arg2 = wxString_in_helper(obj1);
37185 if (arg2 == NULL) SWIG_fail;
37186 temp2 = true;
37187 }
37188 {
37189 PyThreadState* __tstate = wxPyBeginAllowThreads();
37190 (arg1)->SetDefaultPath((wxString const &)*arg2);
37191 wxPyEndAllowThreads(__tstate);
37192 if (PyErr_Occurred()) SWIG_fail;
37193 }
37194 resultobj = SWIG_Py_Void();
37195 {
37196 if (temp2)
37197 delete arg2;
37198 }
37199 return resultobj;
37200 fail:
37201 {
37202 if (temp2)
37203 delete arg2;
37204 }
37205 return NULL;
37206 }
37207
37208
37209 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37210 PyObject *resultobj = 0;
37211 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37212 wxString result;
37213 void *argp1 = 0 ;
37214 int res1 = 0 ;
37215 PyObject *swig_obj[1] ;
37216
37217 if (!args) SWIG_fail;
37218 swig_obj[0] = args;
37219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37220 if (!SWIG_IsOK(res1)) {
37221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37222 }
37223 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37224 {
37225 PyThreadState* __tstate = wxPyBeginAllowThreads();
37226 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37227 wxPyEndAllowThreads(__tstate);
37228 if (PyErr_Occurred()) SWIG_fail;
37229 }
37230 {
37231 #if wxUSE_UNICODE
37232 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37233 #else
37234 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37235 #endif
37236 }
37237 return resultobj;
37238 fail:
37239 return NULL;
37240 }
37241
37242
37243 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37244 PyObject *resultobj = 0;
37245 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37246 wxString result;
37247 void *argp1 = 0 ;
37248 int res1 = 0 ;
37249 PyObject *swig_obj[1] ;
37250
37251 if (!args) SWIG_fail;
37252 swig_obj[0] = args;
37253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37254 if (!SWIG_IsOK(res1)) {
37255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37256 }
37257 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37258 {
37259 PyThreadState* __tstate = wxPyBeginAllowThreads();
37260 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37261 wxPyEndAllowThreads(__tstate);
37262 if (PyErr_Occurred()) SWIG_fail;
37263 }
37264 {
37265 #if wxUSE_UNICODE
37266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37267 #else
37268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37269 #endif
37270 }
37271 return resultobj;
37272 fail:
37273 return NULL;
37274 }
37275
37276
37277 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37278 PyObject *resultobj = 0;
37279 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37280 wxString *arg2 = 0 ;
37281 void *argp1 = 0 ;
37282 int res1 = 0 ;
37283 bool temp2 = false ;
37284 PyObject * obj0 = 0 ;
37285 PyObject * obj1 = 0 ;
37286 char * kwnames[] = {
37287 (char *) "self",(char *) "path", NULL
37288 };
37289
37290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37292 if (!SWIG_IsOK(res1)) {
37293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37294 }
37295 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37296 {
37297 arg2 = wxString_in_helper(obj1);
37298 if (arg2 == NULL) SWIG_fail;
37299 temp2 = true;
37300 }
37301 {
37302 PyThreadState* __tstate = wxPyBeginAllowThreads();
37303 (arg1)->SetPath((wxString const &)*arg2);
37304 wxPyEndAllowThreads(__tstate);
37305 if (PyErr_Occurred()) SWIG_fail;
37306 }
37307 resultobj = SWIG_Py_Void();
37308 {
37309 if (temp2)
37310 delete arg2;
37311 }
37312 return resultobj;
37313 fail:
37314 {
37315 if (temp2)
37316 delete arg2;
37317 }
37318 return NULL;
37319 }
37320
37321
37322 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37323 PyObject *resultobj = 0;
37324 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37325 bool arg2 ;
37326 void *argp1 = 0 ;
37327 int res1 = 0 ;
37328 bool val2 ;
37329 int ecode2 = 0 ;
37330 PyObject * obj0 = 0 ;
37331 PyObject * obj1 = 0 ;
37332 char * kwnames[] = {
37333 (char *) "self",(char *) "show", NULL
37334 };
37335
37336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37338 if (!SWIG_IsOK(res1)) {
37339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37340 }
37341 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37342 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37343 if (!SWIG_IsOK(ecode2)) {
37344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37345 }
37346 arg2 = static_cast< bool >(val2);
37347 {
37348 PyThreadState* __tstate = wxPyBeginAllowThreads();
37349 (arg1)->ShowHidden(arg2);
37350 wxPyEndAllowThreads(__tstate);
37351 if (PyErr_Occurred()) SWIG_fail;
37352 }
37353 resultobj = SWIG_Py_Void();
37354 return resultobj;
37355 fail:
37356 return NULL;
37357 }
37358
37359
37360 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37361 PyObject *resultobj = 0;
37362 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37363 bool result;
37364 void *argp1 = 0 ;
37365 int res1 = 0 ;
37366 PyObject *swig_obj[1] ;
37367
37368 if (!args) SWIG_fail;
37369 swig_obj[0] = args;
37370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37371 if (!SWIG_IsOK(res1)) {
37372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37373 }
37374 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37375 {
37376 PyThreadState* __tstate = wxPyBeginAllowThreads();
37377 result = (bool)(arg1)->GetShowHidden();
37378 wxPyEndAllowThreads(__tstate);
37379 if (PyErr_Occurred()) SWIG_fail;
37380 }
37381 {
37382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37383 }
37384 return resultobj;
37385 fail:
37386 return NULL;
37387 }
37388
37389
37390 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37391 PyObject *resultobj = 0;
37392 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37393 wxString result;
37394 void *argp1 = 0 ;
37395 int res1 = 0 ;
37396 PyObject *swig_obj[1] ;
37397
37398 if (!args) SWIG_fail;
37399 swig_obj[0] = args;
37400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37401 if (!SWIG_IsOK(res1)) {
37402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37403 }
37404 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37405 {
37406 PyThreadState* __tstate = wxPyBeginAllowThreads();
37407 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37408 wxPyEndAllowThreads(__tstate);
37409 if (PyErr_Occurred()) SWIG_fail;
37410 }
37411 {
37412 #if wxUSE_UNICODE
37413 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37414 #else
37415 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37416 #endif
37417 }
37418 return resultobj;
37419 fail:
37420 return NULL;
37421 }
37422
37423
37424 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37425 PyObject *resultobj = 0;
37426 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37427 wxString *arg2 = 0 ;
37428 void *argp1 = 0 ;
37429 int res1 = 0 ;
37430 bool temp2 = false ;
37431 PyObject * obj0 = 0 ;
37432 PyObject * obj1 = 0 ;
37433 char * kwnames[] = {
37434 (char *) "self",(char *) "filter", NULL
37435 };
37436
37437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37439 if (!SWIG_IsOK(res1)) {
37440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37441 }
37442 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37443 {
37444 arg2 = wxString_in_helper(obj1);
37445 if (arg2 == NULL) SWIG_fail;
37446 temp2 = true;
37447 }
37448 {
37449 PyThreadState* __tstate = wxPyBeginAllowThreads();
37450 (arg1)->SetFilter((wxString const &)*arg2);
37451 wxPyEndAllowThreads(__tstate);
37452 if (PyErr_Occurred()) SWIG_fail;
37453 }
37454 resultobj = SWIG_Py_Void();
37455 {
37456 if (temp2)
37457 delete arg2;
37458 }
37459 return resultobj;
37460 fail:
37461 {
37462 if (temp2)
37463 delete arg2;
37464 }
37465 return NULL;
37466 }
37467
37468
37469 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37470 PyObject *resultobj = 0;
37471 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37472 int result;
37473 void *argp1 = 0 ;
37474 int res1 = 0 ;
37475 PyObject *swig_obj[1] ;
37476
37477 if (!args) SWIG_fail;
37478 swig_obj[0] = args;
37479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37480 if (!SWIG_IsOK(res1)) {
37481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37482 }
37483 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37484 {
37485 PyThreadState* __tstate = wxPyBeginAllowThreads();
37486 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37487 wxPyEndAllowThreads(__tstate);
37488 if (PyErr_Occurred()) SWIG_fail;
37489 }
37490 resultobj = SWIG_From_int(static_cast< int >(result));
37491 return resultobj;
37492 fail:
37493 return NULL;
37494 }
37495
37496
37497 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37498 PyObject *resultobj = 0;
37499 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37500 int arg2 ;
37501 void *argp1 = 0 ;
37502 int res1 = 0 ;
37503 int val2 ;
37504 int ecode2 = 0 ;
37505 PyObject * obj0 = 0 ;
37506 PyObject * obj1 = 0 ;
37507 char * kwnames[] = {
37508 (char *) "self",(char *) "n", NULL
37509 };
37510
37511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37513 if (!SWIG_IsOK(res1)) {
37514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37515 }
37516 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37517 ecode2 = SWIG_AsVal_int(obj1, &val2);
37518 if (!SWIG_IsOK(ecode2)) {
37519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37520 }
37521 arg2 = static_cast< int >(val2);
37522 {
37523 PyThreadState* __tstate = wxPyBeginAllowThreads();
37524 (arg1)->SetFilterIndex(arg2);
37525 wxPyEndAllowThreads(__tstate);
37526 if (PyErr_Occurred()) SWIG_fail;
37527 }
37528 resultobj = SWIG_Py_Void();
37529 return resultobj;
37530 fail:
37531 return NULL;
37532 }
37533
37534
37535 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37536 PyObject *resultobj = 0;
37537 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37538 wxTreeItemId result;
37539 void *argp1 = 0 ;
37540 int res1 = 0 ;
37541 PyObject *swig_obj[1] ;
37542
37543 if (!args) SWIG_fail;
37544 swig_obj[0] = args;
37545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37546 if (!SWIG_IsOK(res1)) {
37547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37548 }
37549 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37550 {
37551 PyThreadState* __tstate = wxPyBeginAllowThreads();
37552 result = (arg1)->GetRootId();
37553 wxPyEndAllowThreads(__tstate);
37554 if (PyErr_Occurred()) SWIG_fail;
37555 }
37556 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37557 return resultobj;
37558 fail:
37559 return NULL;
37560 }
37561
37562
37563 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37564 PyObject *resultobj = 0;
37565 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37566 wxPyTreeCtrl *result = 0 ;
37567 void *argp1 = 0 ;
37568 int res1 = 0 ;
37569 PyObject *swig_obj[1] ;
37570
37571 if (!args) SWIG_fail;
37572 swig_obj[0] = args;
37573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37574 if (!SWIG_IsOK(res1)) {
37575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37576 }
37577 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37578 {
37579 PyThreadState* __tstate = wxPyBeginAllowThreads();
37580 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37581 wxPyEndAllowThreads(__tstate);
37582 if (PyErr_Occurred()) SWIG_fail;
37583 }
37584 {
37585 resultobj = wxPyMake_wxObject(result, 0);
37586 }
37587 return resultobj;
37588 fail:
37589 return NULL;
37590 }
37591
37592
37593 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37594 PyObject *resultobj = 0;
37595 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37596 wxDirFilterListCtrl *result = 0 ;
37597 void *argp1 = 0 ;
37598 int res1 = 0 ;
37599 PyObject *swig_obj[1] ;
37600
37601 if (!args) SWIG_fail;
37602 swig_obj[0] = args;
37603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37604 if (!SWIG_IsOK(res1)) {
37605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37606 }
37607 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37608 {
37609 PyThreadState* __tstate = wxPyBeginAllowThreads();
37610 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37611 wxPyEndAllowThreads(__tstate);
37612 if (PyErr_Occurred()) SWIG_fail;
37613 }
37614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37615 return resultobj;
37616 fail:
37617 return NULL;
37618 }
37619
37620
37621 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37622 PyObject *resultobj = 0;
37623 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37624 wxTreeItemId arg2 ;
37625 wxString *arg3 = 0 ;
37626 bool *arg4 = 0 ;
37627 wxTreeItemId result;
37628 void *argp1 = 0 ;
37629 int res1 = 0 ;
37630 void *argp2 ;
37631 int res2 = 0 ;
37632 bool temp3 = false ;
37633 bool temp4 ;
37634 int res4 = SWIG_TMPOBJ ;
37635 PyObject * obj0 = 0 ;
37636 PyObject * obj1 = 0 ;
37637 PyObject * obj2 = 0 ;
37638 char * kwnames[] = {
37639 (char *) "self",(char *) "parentId",(char *) "path", NULL
37640 };
37641
37642 arg4 = &temp4;
37643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37645 if (!SWIG_IsOK(res1)) {
37646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37647 }
37648 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37649 {
37650 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37651 if (!SWIG_IsOK(res2)) {
37652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37653 }
37654 if (!argp2) {
37655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37656 } else {
37657 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37658 arg2 = *temp;
37659 if (SWIG_IsNewObj(res2)) delete temp;
37660 }
37661 }
37662 {
37663 arg3 = wxString_in_helper(obj2);
37664 if (arg3 == NULL) SWIG_fail;
37665 temp3 = true;
37666 }
37667 {
37668 PyThreadState* __tstate = wxPyBeginAllowThreads();
37669 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37670 wxPyEndAllowThreads(__tstate);
37671 if (PyErr_Occurred()) SWIG_fail;
37672 }
37673 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37674 if (SWIG_IsTmpObj(res4)) {
37675 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37676 } else {
37677 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37678 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37679 }
37680 {
37681 if (temp3)
37682 delete arg3;
37683 }
37684 return resultobj;
37685 fail:
37686 {
37687 if (temp3)
37688 delete arg3;
37689 }
37690 return NULL;
37691 }
37692
37693
37694 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37695 PyObject *resultobj = 0;
37696 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37697 void *argp1 = 0 ;
37698 int res1 = 0 ;
37699 PyObject *swig_obj[1] ;
37700
37701 if (!args) SWIG_fail;
37702 swig_obj[0] = args;
37703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37704 if (!SWIG_IsOK(res1)) {
37705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37706 }
37707 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37708 {
37709 PyThreadState* __tstate = wxPyBeginAllowThreads();
37710 (arg1)->DoResize();
37711 wxPyEndAllowThreads(__tstate);
37712 if (PyErr_Occurred()) SWIG_fail;
37713 }
37714 resultobj = SWIG_Py_Void();
37715 return resultobj;
37716 fail:
37717 return NULL;
37718 }
37719
37720
37721 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37722 PyObject *resultobj = 0;
37723 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37724 void *argp1 = 0 ;
37725 int res1 = 0 ;
37726 PyObject *swig_obj[1] ;
37727
37728 if (!args) SWIG_fail;
37729 swig_obj[0] = args;
37730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37731 if (!SWIG_IsOK(res1)) {
37732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37733 }
37734 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37735 {
37736 PyThreadState* __tstate = wxPyBeginAllowThreads();
37737 (arg1)->ReCreateTree();
37738 wxPyEndAllowThreads(__tstate);
37739 if (PyErr_Occurred()) SWIG_fail;
37740 }
37741 resultobj = SWIG_Py_Void();
37742 return resultobj;
37743 fail:
37744 return NULL;
37745 }
37746
37747
37748 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37749 PyObject *obj;
37750 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37751 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37752 return SWIG_Py_Void();
37753 }
37754
37755 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37756 return SWIG_Python_InitShadowInstance(args);
37757 }
37758
37759 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37760 PyObject *resultobj = 0;
37761 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37762 int arg2 = (int) (int)-1 ;
37763 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37764 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37765 wxSize const &arg4_defvalue = wxDefaultSize ;
37766 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37767 long arg5 = (long) 0 ;
37768 wxDirFilterListCtrl *result = 0 ;
37769 void *argp1 = 0 ;
37770 int res1 = 0 ;
37771 int val2 ;
37772 int ecode2 = 0 ;
37773 wxPoint temp3 ;
37774 wxSize temp4 ;
37775 long val5 ;
37776 int ecode5 = 0 ;
37777 PyObject * obj0 = 0 ;
37778 PyObject * obj1 = 0 ;
37779 PyObject * obj2 = 0 ;
37780 PyObject * obj3 = 0 ;
37781 PyObject * obj4 = 0 ;
37782 char * kwnames[] = {
37783 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37784 };
37785
37786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37788 if (!SWIG_IsOK(res1)) {
37789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37790 }
37791 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37792 if (obj1) {
37793 ecode2 = SWIG_AsVal_int(obj1, &val2);
37794 if (!SWIG_IsOK(ecode2)) {
37795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37796 }
37797 arg2 = static_cast< int >(val2);
37798 }
37799 if (obj2) {
37800 {
37801 arg3 = &temp3;
37802 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37803 }
37804 }
37805 if (obj3) {
37806 {
37807 arg4 = &temp4;
37808 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37809 }
37810 }
37811 if (obj4) {
37812 ecode5 = SWIG_AsVal_long(obj4, &val5);
37813 if (!SWIG_IsOK(ecode5)) {
37814 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37815 }
37816 arg5 = static_cast< long >(val5);
37817 }
37818 {
37819 if (!wxPyCheckForApp()) SWIG_fail;
37820 PyThreadState* __tstate = wxPyBeginAllowThreads();
37821 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37822 wxPyEndAllowThreads(__tstate);
37823 if (PyErr_Occurred()) SWIG_fail;
37824 }
37825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37826 return resultobj;
37827 fail:
37828 return NULL;
37829 }
37830
37831
37832 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37833 PyObject *resultobj = 0;
37834 wxDirFilterListCtrl *result = 0 ;
37835
37836 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37837 {
37838 if (!wxPyCheckForApp()) SWIG_fail;
37839 PyThreadState* __tstate = wxPyBeginAllowThreads();
37840 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37841 wxPyEndAllowThreads(__tstate);
37842 if (PyErr_Occurred()) SWIG_fail;
37843 }
37844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37845 return resultobj;
37846 fail:
37847 return NULL;
37848 }
37849
37850
37851 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37852 PyObject *resultobj = 0;
37853 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37854 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37855 int arg3 = (int) (int)-1 ;
37856 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37857 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37858 wxSize const &arg5_defvalue = wxDefaultSize ;
37859 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37860 long arg6 = (long) 0 ;
37861 bool result;
37862 void *argp1 = 0 ;
37863 int res1 = 0 ;
37864 void *argp2 = 0 ;
37865 int res2 = 0 ;
37866 int val3 ;
37867 int ecode3 = 0 ;
37868 wxPoint temp4 ;
37869 wxSize temp5 ;
37870 long val6 ;
37871 int ecode6 = 0 ;
37872 PyObject * obj0 = 0 ;
37873 PyObject * obj1 = 0 ;
37874 PyObject * obj2 = 0 ;
37875 PyObject * obj3 = 0 ;
37876 PyObject * obj4 = 0 ;
37877 PyObject * obj5 = 0 ;
37878 char * kwnames[] = {
37879 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37880 };
37881
37882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37884 if (!SWIG_IsOK(res1)) {
37885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37886 }
37887 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37888 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37889 if (!SWIG_IsOK(res2)) {
37890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
37891 }
37892 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
37893 if (obj2) {
37894 ecode3 = SWIG_AsVal_int(obj2, &val3);
37895 if (!SWIG_IsOK(ecode3)) {
37896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37897 }
37898 arg3 = static_cast< int >(val3);
37899 }
37900 if (obj3) {
37901 {
37902 arg4 = &temp4;
37903 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37904 }
37905 }
37906 if (obj4) {
37907 {
37908 arg5 = &temp5;
37909 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37910 }
37911 }
37912 if (obj5) {
37913 ecode6 = SWIG_AsVal_long(obj5, &val6);
37914 if (!SWIG_IsOK(ecode6)) {
37915 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
37916 }
37917 arg6 = static_cast< long >(val6);
37918 }
37919 {
37920 PyThreadState* __tstate = wxPyBeginAllowThreads();
37921 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
37922 wxPyEndAllowThreads(__tstate);
37923 if (PyErr_Occurred()) SWIG_fail;
37924 }
37925 {
37926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37927 }
37928 return resultobj;
37929 fail:
37930 return NULL;
37931 }
37932
37933
37934 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37935 PyObject *resultobj = 0;
37936 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37937 wxString *arg2 = 0 ;
37938 int arg3 ;
37939 void *argp1 = 0 ;
37940 int res1 = 0 ;
37941 bool temp2 = false ;
37942 int val3 ;
37943 int ecode3 = 0 ;
37944 PyObject * obj0 = 0 ;
37945 PyObject * obj1 = 0 ;
37946 PyObject * obj2 = 0 ;
37947 char * kwnames[] = {
37948 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
37949 };
37950
37951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37953 if (!SWIG_IsOK(res1)) {
37954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37955 }
37956 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37957 {
37958 arg2 = wxString_in_helper(obj1);
37959 if (arg2 == NULL) SWIG_fail;
37960 temp2 = true;
37961 }
37962 ecode3 = SWIG_AsVal_int(obj2, &val3);
37963 if (!SWIG_IsOK(ecode3)) {
37964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
37965 }
37966 arg3 = static_cast< int >(val3);
37967 {
37968 PyThreadState* __tstate = wxPyBeginAllowThreads();
37969 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
37970 wxPyEndAllowThreads(__tstate);
37971 if (PyErr_Occurred()) SWIG_fail;
37972 }
37973 resultobj = SWIG_Py_Void();
37974 {
37975 if (temp2)
37976 delete arg2;
37977 }
37978 return resultobj;
37979 fail:
37980 {
37981 if (temp2)
37982 delete arg2;
37983 }
37984 return NULL;
37985 }
37986
37987
37988 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37989 PyObject *obj;
37990 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37991 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
37992 return SWIG_Py_Void();
37993 }
37994
37995 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37996 return SWIG_Python_InitShadowInstance(args);
37997 }
37998
37999 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38000 PyObject *resultobj = 0;
38001 wxWindow *arg1 = (wxWindow *) 0 ;
38002 int arg2 = (int) (int)-1 ;
38003 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38004 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38005 wxSize const &arg4_defvalue = wxDefaultSize ;
38006 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38007 long arg5 = (long) 0 ;
38008 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38009 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38010 wxString const &arg7_defvalue = wxPyControlNameStr ;
38011 wxString *arg7 = (wxString *) &arg7_defvalue ;
38012 wxPyControl *result = 0 ;
38013 void *argp1 = 0 ;
38014 int res1 = 0 ;
38015 int val2 ;
38016 int ecode2 = 0 ;
38017 wxPoint temp3 ;
38018 wxSize temp4 ;
38019 long val5 ;
38020 int ecode5 = 0 ;
38021 void *argp6 = 0 ;
38022 int res6 = 0 ;
38023 bool temp7 = false ;
38024 PyObject * obj0 = 0 ;
38025 PyObject * obj1 = 0 ;
38026 PyObject * obj2 = 0 ;
38027 PyObject * obj3 = 0 ;
38028 PyObject * obj4 = 0 ;
38029 PyObject * obj5 = 0 ;
38030 PyObject * obj6 = 0 ;
38031 char * kwnames[] = {
38032 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38033 };
38034
38035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38037 if (!SWIG_IsOK(res1)) {
38038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38039 }
38040 arg1 = reinterpret_cast< wxWindow * >(argp1);
38041 if (obj1) {
38042 ecode2 = SWIG_AsVal_int(obj1, &val2);
38043 if (!SWIG_IsOK(ecode2)) {
38044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38045 }
38046 arg2 = static_cast< int >(val2);
38047 }
38048 if (obj2) {
38049 {
38050 arg3 = &temp3;
38051 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38052 }
38053 }
38054 if (obj3) {
38055 {
38056 arg4 = &temp4;
38057 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38058 }
38059 }
38060 if (obj4) {
38061 ecode5 = SWIG_AsVal_long(obj4, &val5);
38062 if (!SWIG_IsOK(ecode5)) {
38063 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38064 }
38065 arg5 = static_cast< long >(val5);
38066 }
38067 if (obj5) {
38068 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38069 if (!SWIG_IsOK(res6)) {
38070 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38071 }
38072 if (!argp6) {
38073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38074 }
38075 arg6 = reinterpret_cast< wxValidator * >(argp6);
38076 }
38077 if (obj6) {
38078 {
38079 arg7 = wxString_in_helper(obj6);
38080 if (arg7 == NULL) SWIG_fail;
38081 temp7 = true;
38082 }
38083 }
38084 {
38085 if (!wxPyCheckForApp()) SWIG_fail;
38086 PyThreadState* __tstate = wxPyBeginAllowThreads();
38087 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38088 wxPyEndAllowThreads(__tstate);
38089 if (PyErr_Occurred()) SWIG_fail;
38090 }
38091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38092 {
38093 if (temp7)
38094 delete arg7;
38095 }
38096 return resultobj;
38097 fail:
38098 {
38099 if (temp7)
38100 delete arg7;
38101 }
38102 return NULL;
38103 }
38104
38105
38106 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38107 PyObject *resultobj = 0;
38108 wxPyControl *result = 0 ;
38109
38110 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38111 {
38112 if (!wxPyCheckForApp()) SWIG_fail;
38113 PyThreadState* __tstate = wxPyBeginAllowThreads();
38114 result = (wxPyControl *)new wxPyControl();
38115 wxPyEndAllowThreads(__tstate);
38116 if (PyErr_Occurred()) SWIG_fail;
38117 }
38118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38119 return resultobj;
38120 fail:
38121 return NULL;
38122 }
38123
38124
38125 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38126 PyObject *resultobj = 0;
38127 wxPyControl *arg1 = (wxPyControl *) 0 ;
38128 PyObject *arg2 = (PyObject *) 0 ;
38129 PyObject *arg3 = (PyObject *) 0 ;
38130 void *argp1 = 0 ;
38131 int res1 = 0 ;
38132 PyObject * obj0 = 0 ;
38133 PyObject * obj1 = 0 ;
38134 PyObject * obj2 = 0 ;
38135 char * kwnames[] = {
38136 (char *) "self",(char *) "self",(char *) "_class", NULL
38137 };
38138
38139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38141 if (!SWIG_IsOK(res1)) {
38142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38143 }
38144 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38145 arg2 = obj1;
38146 arg3 = obj2;
38147 {
38148 PyThreadState* __tstate = wxPyBeginAllowThreads();
38149 (arg1)->_setCallbackInfo(arg2,arg3);
38150 wxPyEndAllowThreads(__tstate);
38151 if (PyErr_Occurred()) SWIG_fail;
38152 }
38153 resultobj = SWIG_Py_Void();
38154 return resultobj;
38155 fail:
38156 return NULL;
38157 }
38158
38159
38160 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38161 PyObject *resultobj = 0;
38162 wxPyControl *arg1 = (wxPyControl *) 0 ;
38163 wxSize *arg2 = 0 ;
38164 void *argp1 = 0 ;
38165 int res1 = 0 ;
38166 wxSize temp2 ;
38167 PyObject * obj0 = 0 ;
38168 PyObject * obj1 = 0 ;
38169 char * kwnames[] = {
38170 (char *) "self",(char *) "size", NULL
38171 };
38172
38173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38175 if (!SWIG_IsOK(res1)) {
38176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38177 }
38178 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38179 {
38180 arg2 = &temp2;
38181 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38182 }
38183 {
38184 PyThreadState* __tstate = wxPyBeginAllowThreads();
38185 (arg1)->SetBestSize((wxSize const &)*arg2);
38186 wxPyEndAllowThreads(__tstate);
38187 if (PyErr_Occurred()) SWIG_fail;
38188 }
38189 resultobj = SWIG_Py_Void();
38190 return resultobj;
38191 fail:
38192 return NULL;
38193 }
38194
38195
38196 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38197 PyObject *resultobj = 0;
38198 wxPyControl *arg1 = (wxPyControl *) 0 ;
38199 wxDC *arg2 = (wxDC *) 0 ;
38200 bool result;
38201 void *argp1 = 0 ;
38202 int res1 = 0 ;
38203 void *argp2 = 0 ;
38204 int res2 = 0 ;
38205 PyObject * obj0 = 0 ;
38206 PyObject * obj1 = 0 ;
38207 char * kwnames[] = {
38208 (char *) "self",(char *) "dc", NULL
38209 };
38210
38211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38213 if (!SWIG_IsOK(res1)) {
38214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38215 }
38216 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38218 if (!SWIG_IsOK(res2)) {
38219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38220 }
38221 arg2 = reinterpret_cast< wxDC * >(argp2);
38222 {
38223 PyThreadState* __tstate = wxPyBeginAllowThreads();
38224 result = (bool)(arg1)->DoEraseBackground(arg2);
38225 wxPyEndAllowThreads(__tstate);
38226 if (PyErr_Occurred()) SWIG_fail;
38227 }
38228 {
38229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38230 }
38231 return resultobj;
38232 fail:
38233 return NULL;
38234 }
38235
38236
38237 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38238 PyObject *resultobj = 0;
38239 wxPyControl *arg1 = (wxPyControl *) 0 ;
38240 int arg2 ;
38241 int arg3 ;
38242 int arg4 ;
38243 int arg5 ;
38244 void *argp1 = 0 ;
38245 int res1 = 0 ;
38246 int val2 ;
38247 int ecode2 = 0 ;
38248 int val3 ;
38249 int ecode3 = 0 ;
38250 int val4 ;
38251 int ecode4 = 0 ;
38252 int val5 ;
38253 int ecode5 = 0 ;
38254 PyObject * obj0 = 0 ;
38255 PyObject * obj1 = 0 ;
38256 PyObject * obj2 = 0 ;
38257 PyObject * obj3 = 0 ;
38258 PyObject * obj4 = 0 ;
38259 char * kwnames[] = {
38260 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38261 };
38262
38263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38265 if (!SWIG_IsOK(res1)) {
38266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38267 }
38268 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38269 ecode2 = SWIG_AsVal_int(obj1, &val2);
38270 if (!SWIG_IsOK(ecode2)) {
38271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38272 }
38273 arg2 = static_cast< int >(val2);
38274 ecode3 = SWIG_AsVal_int(obj2, &val3);
38275 if (!SWIG_IsOK(ecode3)) {
38276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38277 }
38278 arg3 = static_cast< int >(val3);
38279 ecode4 = SWIG_AsVal_int(obj3, &val4);
38280 if (!SWIG_IsOK(ecode4)) {
38281 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38282 }
38283 arg4 = static_cast< int >(val4);
38284 ecode5 = SWIG_AsVal_int(obj4, &val5);
38285 if (!SWIG_IsOK(ecode5)) {
38286 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38287 }
38288 arg5 = static_cast< int >(val5);
38289 {
38290 PyThreadState* __tstate = wxPyBeginAllowThreads();
38291 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38292 wxPyEndAllowThreads(__tstate);
38293 if (PyErr_Occurred()) SWIG_fail;
38294 }
38295 resultobj = SWIG_Py_Void();
38296 return resultobj;
38297 fail:
38298 return NULL;
38299 }
38300
38301
38302 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38303 PyObject *resultobj = 0;
38304 wxPyControl *arg1 = (wxPyControl *) 0 ;
38305 int arg2 ;
38306 int arg3 ;
38307 int arg4 ;
38308 int arg5 ;
38309 int arg6 = (int) wxSIZE_AUTO ;
38310 void *argp1 = 0 ;
38311 int res1 = 0 ;
38312 int val2 ;
38313 int ecode2 = 0 ;
38314 int val3 ;
38315 int ecode3 = 0 ;
38316 int val4 ;
38317 int ecode4 = 0 ;
38318 int val5 ;
38319 int ecode5 = 0 ;
38320 int val6 ;
38321 int ecode6 = 0 ;
38322 PyObject * obj0 = 0 ;
38323 PyObject * obj1 = 0 ;
38324 PyObject * obj2 = 0 ;
38325 PyObject * obj3 = 0 ;
38326 PyObject * obj4 = 0 ;
38327 PyObject * obj5 = 0 ;
38328 char * kwnames[] = {
38329 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38330 };
38331
38332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38334 if (!SWIG_IsOK(res1)) {
38335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38336 }
38337 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38338 ecode2 = SWIG_AsVal_int(obj1, &val2);
38339 if (!SWIG_IsOK(ecode2)) {
38340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38341 }
38342 arg2 = static_cast< int >(val2);
38343 ecode3 = SWIG_AsVal_int(obj2, &val3);
38344 if (!SWIG_IsOK(ecode3)) {
38345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38346 }
38347 arg3 = static_cast< int >(val3);
38348 ecode4 = SWIG_AsVal_int(obj3, &val4);
38349 if (!SWIG_IsOK(ecode4)) {
38350 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38351 }
38352 arg4 = static_cast< int >(val4);
38353 ecode5 = SWIG_AsVal_int(obj4, &val5);
38354 if (!SWIG_IsOK(ecode5)) {
38355 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38356 }
38357 arg5 = static_cast< int >(val5);
38358 if (obj5) {
38359 ecode6 = SWIG_AsVal_int(obj5, &val6);
38360 if (!SWIG_IsOK(ecode6)) {
38361 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38362 }
38363 arg6 = static_cast< int >(val6);
38364 }
38365 {
38366 PyThreadState* __tstate = wxPyBeginAllowThreads();
38367 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38368 wxPyEndAllowThreads(__tstate);
38369 if (PyErr_Occurred()) SWIG_fail;
38370 }
38371 resultobj = SWIG_Py_Void();
38372 return resultobj;
38373 fail:
38374 return NULL;
38375 }
38376
38377
38378 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38379 PyObject *resultobj = 0;
38380 wxPyControl *arg1 = (wxPyControl *) 0 ;
38381 int arg2 ;
38382 int arg3 ;
38383 void *argp1 = 0 ;
38384 int res1 = 0 ;
38385 int val2 ;
38386 int ecode2 = 0 ;
38387 int val3 ;
38388 int ecode3 = 0 ;
38389 PyObject * obj0 = 0 ;
38390 PyObject * obj1 = 0 ;
38391 PyObject * obj2 = 0 ;
38392 char * kwnames[] = {
38393 (char *) "self",(char *) "width",(char *) "height", NULL
38394 };
38395
38396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38398 if (!SWIG_IsOK(res1)) {
38399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38400 }
38401 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38402 ecode2 = SWIG_AsVal_int(obj1, &val2);
38403 if (!SWIG_IsOK(ecode2)) {
38404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38405 }
38406 arg2 = static_cast< int >(val2);
38407 ecode3 = SWIG_AsVal_int(obj2, &val3);
38408 if (!SWIG_IsOK(ecode3)) {
38409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38410 }
38411 arg3 = static_cast< int >(val3);
38412 {
38413 PyThreadState* __tstate = wxPyBeginAllowThreads();
38414 (arg1)->DoSetClientSize(arg2,arg3);
38415 wxPyEndAllowThreads(__tstate);
38416 if (PyErr_Occurred()) SWIG_fail;
38417 }
38418 resultobj = SWIG_Py_Void();
38419 return resultobj;
38420 fail:
38421 return NULL;
38422 }
38423
38424
38425 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38426 PyObject *resultobj = 0;
38427 wxPyControl *arg1 = (wxPyControl *) 0 ;
38428 int arg2 ;
38429 int arg3 ;
38430 void *argp1 = 0 ;
38431 int res1 = 0 ;
38432 int val2 ;
38433 int ecode2 = 0 ;
38434 int val3 ;
38435 int ecode3 = 0 ;
38436 PyObject * obj0 = 0 ;
38437 PyObject * obj1 = 0 ;
38438 PyObject * obj2 = 0 ;
38439 char * kwnames[] = {
38440 (char *) "self",(char *) "x",(char *) "y", NULL
38441 };
38442
38443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38445 if (!SWIG_IsOK(res1)) {
38446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38447 }
38448 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38449 ecode2 = SWIG_AsVal_int(obj1, &val2);
38450 if (!SWIG_IsOK(ecode2)) {
38451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38452 }
38453 arg2 = static_cast< int >(val2);
38454 ecode3 = SWIG_AsVal_int(obj2, &val3);
38455 if (!SWIG_IsOK(ecode3)) {
38456 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38457 }
38458 arg3 = static_cast< int >(val3);
38459 {
38460 PyThreadState* __tstate = wxPyBeginAllowThreads();
38461 (arg1)->DoSetVirtualSize(arg2,arg3);
38462 wxPyEndAllowThreads(__tstate);
38463 if (PyErr_Occurred()) SWIG_fail;
38464 }
38465 resultobj = SWIG_Py_Void();
38466 return resultobj;
38467 fail:
38468 return NULL;
38469 }
38470
38471
38472 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38473 PyObject *resultobj = 0;
38474 wxPyControl *arg1 = (wxPyControl *) 0 ;
38475 int *arg2 = (int *) 0 ;
38476 int *arg3 = (int *) 0 ;
38477 void *argp1 = 0 ;
38478 int res1 = 0 ;
38479 int temp2 ;
38480 int res2 = SWIG_TMPOBJ ;
38481 int temp3 ;
38482 int res3 = SWIG_TMPOBJ ;
38483 PyObject *swig_obj[1] ;
38484
38485 arg2 = &temp2;
38486 arg3 = &temp3;
38487 if (!args) SWIG_fail;
38488 swig_obj[0] = args;
38489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38490 if (!SWIG_IsOK(res1)) {
38491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38492 }
38493 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38494 {
38495 PyThreadState* __tstate = wxPyBeginAllowThreads();
38496 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38497 wxPyEndAllowThreads(__tstate);
38498 if (PyErr_Occurred()) SWIG_fail;
38499 }
38500 resultobj = SWIG_Py_Void();
38501 if (SWIG_IsTmpObj(res2)) {
38502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38503 } else {
38504 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38506 }
38507 if (SWIG_IsTmpObj(res3)) {
38508 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38509 } else {
38510 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38511 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38512 }
38513 return resultobj;
38514 fail:
38515 return NULL;
38516 }
38517
38518
38519 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38520 PyObject *resultobj = 0;
38521 wxPyControl *arg1 = (wxPyControl *) 0 ;
38522 int *arg2 = (int *) 0 ;
38523 int *arg3 = (int *) 0 ;
38524 void *argp1 = 0 ;
38525 int res1 = 0 ;
38526 int temp2 ;
38527 int res2 = SWIG_TMPOBJ ;
38528 int temp3 ;
38529 int res3 = SWIG_TMPOBJ ;
38530 PyObject *swig_obj[1] ;
38531
38532 arg2 = &temp2;
38533 arg3 = &temp3;
38534 if (!args) SWIG_fail;
38535 swig_obj[0] = args;
38536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38537 if (!SWIG_IsOK(res1)) {
38538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38539 }
38540 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38541 {
38542 PyThreadState* __tstate = wxPyBeginAllowThreads();
38543 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38544 wxPyEndAllowThreads(__tstate);
38545 if (PyErr_Occurred()) SWIG_fail;
38546 }
38547 resultobj = SWIG_Py_Void();
38548 if (SWIG_IsTmpObj(res2)) {
38549 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38550 } else {
38551 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38552 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38553 }
38554 if (SWIG_IsTmpObj(res3)) {
38555 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38556 } else {
38557 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38558 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38559 }
38560 return resultobj;
38561 fail:
38562 return NULL;
38563 }
38564
38565
38566 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38567 PyObject *resultobj = 0;
38568 wxPyControl *arg1 = (wxPyControl *) 0 ;
38569 int *arg2 = (int *) 0 ;
38570 int *arg3 = (int *) 0 ;
38571 void *argp1 = 0 ;
38572 int res1 = 0 ;
38573 int temp2 ;
38574 int res2 = SWIG_TMPOBJ ;
38575 int temp3 ;
38576 int res3 = SWIG_TMPOBJ ;
38577 PyObject *swig_obj[1] ;
38578
38579 arg2 = &temp2;
38580 arg3 = &temp3;
38581 if (!args) SWIG_fail;
38582 swig_obj[0] = args;
38583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38584 if (!SWIG_IsOK(res1)) {
38585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38586 }
38587 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38588 {
38589 PyThreadState* __tstate = wxPyBeginAllowThreads();
38590 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38591 wxPyEndAllowThreads(__tstate);
38592 if (PyErr_Occurred()) SWIG_fail;
38593 }
38594 resultobj = SWIG_Py_Void();
38595 if (SWIG_IsTmpObj(res2)) {
38596 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38597 } else {
38598 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38599 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38600 }
38601 if (SWIG_IsTmpObj(res3)) {
38602 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38603 } else {
38604 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38605 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38606 }
38607 return resultobj;
38608 fail:
38609 return NULL;
38610 }
38611
38612
38613 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38614 PyObject *resultobj = 0;
38615 wxPyControl *arg1 = (wxPyControl *) 0 ;
38616 wxSize result;
38617 void *argp1 = 0 ;
38618 int res1 = 0 ;
38619 PyObject *swig_obj[1] ;
38620
38621 if (!args) SWIG_fail;
38622 swig_obj[0] = args;
38623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38624 if (!SWIG_IsOK(res1)) {
38625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38626 }
38627 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38628 {
38629 PyThreadState* __tstate = wxPyBeginAllowThreads();
38630 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38631 wxPyEndAllowThreads(__tstate);
38632 if (PyErr_Occurred()) SWIG_fail;
38633 }
38634 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38635 return resultobj;
38636 fail:
38637 return NULL;
38638 }
38639
38640
38641 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38642 PyObject *resultobj = 0;
38643 wxPyControl *arg1 = (wxPyControl *) 0 ;
38644 wxSize result;
38645 void *argp1 = 0 ;
38646 int res1 = 0 ;
38647 PyObject *swig_obj[1] ;
38648
38649 if (!args) SWIG_fail;
38650 swig_obj[0] = args;
38651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38652 if (!SWIG_IsOK(res1)) {
38653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38654 }
38655 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38656 {
38657 PyThreadState* __tstate = wxPyBeginAllowThreads();
38658 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38659 wxPyEndAllowThreads(__tstate);
38660 if (PyErr_Occurred()) SWIG_fail;
38661 }
38662 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38663 return resultobj;
38664 fail:
38665 return NULL;
38666 }
38667
38668
38669 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38670 PyObject *resultobj = 0;
38671 wxPyControl *arg1 = (wxPyControl *) 0 ;
38672 SwigValueWrapper<wxVisualAttributes > result;
38673 void *argp1 = 0 ;
38674 int res1 = 0 ;
38675 PyObject *swig_obj[1] ;
38676
38677 if (!args) SWIG_fail;
38678 swig_obj[0] = args;
38679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38680 if (!SWIG_IsOK(res1)) {
38681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38682 }
38683 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38684 {
38685 PyThreadState* __tstate = wxPyBeginAllowThreads();
38686 result = (arg1)->GetDefaultAttributes();
38687 wxPyEndAllowThreads(__tstate);
38688 if (PyErr_Occurred()) SWIG_fail;
38689 }
38690 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38691 return resultobj;
38692 fail:
38693 return NULL;
38694 }
38695
38696
38697 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38698 PyObject *resultobj = 0;
38699 wxPyControl *arg1 = (wxPyControl *) 0 ;
38700 void *argp1 = 0 ;
38701 int res1 = 0 ;
38702 PyObject *swig_obj[1] ;
38703
38704 if (!args) SWIG_fail;
38705 swig_obj[0] = args;
38706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38707 if (!SWIG_IsOK(res1)) {
38708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38709 }
38710 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38711 {
38712 PyThreadState* __tstate = wxPyBeginAllowThreads();
38713 (arg1)->OnInternalIdle();
38714 wxPyEndAllowThreads(__tstate);
38715 if (PyErr_Occurred()) SWIG_fail;
38716 }
38717 resultobj = SWIG_Py_Void();
38718 return resultobj;
38719 fail:
38720 return NULL;
38721 }
38722
38723
38724 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38725 PyObject *obj;
38726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38727 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38728 return SWIG_Py_Void();
38729 }
38730
38731 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38732 return SWIG_Python_InitShadowInstance(args);
38733 }
38734
38735 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38736 PyObject *resultobj = 0;
38737 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38738 int arg2 = (int) 0 ;
38739 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38740 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38741 wxHelpEvent *result = 0 ;
38742 int val1 ;
38743 int ecode1 = 0 ;
38744 int val2 ;
38745 int ecode2 = 0 ;
38746 wxPoint temp3 ;
38747 PyObject * obj0 = 0 ;
38748 PyObject * obj1 = 0 ;
38749 PyObject * obj2 = 0 ;
38750 char * kwnames[] = {
38751 (char *) "type",(char *) "winid",(char *) "pt", NULL
38752 };
38753
38754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38755 if (obj0) {
38756 ecode1 = SWIG_AsVal_int(obj0, &val1);
38757 if (!SWIG_IsOK(ecode1)) {
38758 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38759 }
38760 arg1 = static_cast< wxEventType >(val1);
38761 }
38762 if (obj1) {
38763 ecode2 = SWIG_AsVal_int(obj1, &val2);
38764 if (!SWIG_IsOK(ecode2)) {
38765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38766 }
38767 arg2 = static_cast< int >(val2);
38768 }
38769 if (obj2) {
38770 {
38771 arg3 = &temp3;
38772 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38773 }
38774 }
38775 {
38776 PyThreadState* __tstate = wxPyBeginAllowThreads();
38777 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
38778 wxPyEndAllowThreads(__tstate);
38779 if (PyErr_Occurred()) SWIG_fail;
38780 }
38781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38782 return resultobj;
38783 fail:
38784 return NULL;
38785 }
38786
38787
38788 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38789 PyObject *resultobj = 0;
38790 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38791 wxPoint result;
38792 void *argp1 = 0 ;
38793 int res1 = 0 ;
38794 PyObject *swig_obj[1] ;
38795
38796 if (!args) SWIG_fail;
38797 swig_obj[0] = args;
38798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38799 if (!SWIG_IsOK(res1)) {
38800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38801 }
38802 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38803 {
38804 PyThreadState* __tstate = wxPyBeginAllowThreads();
38805 result = ((wxHelpEvent const *)arg1)->GetPosition();
38806 wxPyEndAllowThreads(__tstate);
38807 if (PyErr_Occurred()) SWIG_fail;
38808 }
38809 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38810 return resultobj;
38811 fail:
38812 return NULL;
38813 }
38814
38815
38816 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38817 PyObject *resultobj = 0;
38818 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38819 wxPoint *arg2 = 0 ;
38820 void *argp1 = 0 ;
38821 int res1 = 0 ;
38822 wxPoint temp2 ;
38823 PyObject * obj0 = 0 ;
38824 PyObject * obj1 = 0 ;
38825 char * kwnames[] = {
38826 (char *) "self",(char *) "pos", NULL
38827 };
38828
38829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38831 if (!SWIG_IsOK(res1)) {
38832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38833 }
38834 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38835 {
38836 arg2 = &temp2;
38837 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38838 }
38839 {
38840 PyThreadState* __tstate = wxPyBeginAllowThreads();
38841 (arg1)->SetPosition((wxPoint const &)*arg2);
38842 wxPyEndAllowThreads(__tstate);
38843 if (PyErr_Occurred()) SWIG_fail;
38844 }
38845 resultobj = SWIG_Py_Void();
38846 return resultobj;
38847 fail:
38848 return NULL;
38849 }
38850
38851
38852 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38853 PyObject *resultobj = 0;
38854 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38855 wxString *result = 0 ;
38856 void *argp1 = 0 ;
38857 int res1 = 0 ;
38858 PyObject *swig_obj[1] ;
38859
38860 if (!args) SWIG_fail;
38861 swig_obj[0] = args;
38862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38863 if (!SWIG_IsOK(res1)) {
38864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38865 }
38866 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38867 {
38868 PyThreadState* __tstate = wxPyBeginAllowThreads();
38869 {
38870 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
38871 result = (wxString *) &_result_ref;
38872 }
38873 wxPyEndAllowThreads(__tstate);
38874 if (PyErr_Occurred()) SWIG_fail;
38875 }
38876 {
38877 #if wxUSE_UNICODE
38878 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38879 #else
38880 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38881 #endif
38882 }
38883 return resultobj;
38884 fail:
38885 return NULL;
38886 }
38887
38888
38889 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38890 PyObject *resultobj = 0;
38891 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38892 wxString *arg2 = 0 ;
38893 void *argp1 = 0 ;
38894 int res1 = 0 ;
38895 bool temp2 = false ;
38896 PyObject * obj0 = 0 ;
38897 PyObject * obj1 = 0 ;
38898 char * kwnames[] = {
38899 (char *) "self",(char *) "link", NULL
38900 };
38901
38902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
38903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38904 if (!SWIG_IsOK(res1)) {
38905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38906 }
38907 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38908 {
38909 arg2 = wxString_in_helper(obj1);
38910 if (arg2 == NULL) SWIG_fail;
38911 temp2 = true;
38912 }
38913 {
38914 PyThreadState* __tstate = wxPyBeginAllowThreads();
38915 (arg1)->SetLink((wxString const &)*arg2);
38916 wxPyEndAllowThreads(__tstate);
38917 if (PyErr_Occurred()) SWIG_fail;
38918 }
38919 resultobj = SWIG_Py_Void();
38920 {
38921 if (temp2)
38922 delete arg2;
38923 }
38924 return resultobj;
38925 fail:
38926 {
38927 if (temp2)
38928 delete arg2;
38929 }
38930 return NULL;
38931 }
38932
38933
38934 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38935 PyObject *resultobj = 0;
38936 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38937 wxString *result = 0 ;
38938 void *argp1 = 0 ;
38939 int res1 = 0 ;
38940 PyObject *swig_obj[1] ;
38941
38942 if (!args) SWIG_fail;
38943 swig_obj[0] = args;
38944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38945 if (!SWIG_IsOK(res1)) {
38946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38947 }
38948 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38949 {
38950 PyThreadState* __tstate = wxPyBeginAllowThreads();
38951 {
38952 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
38953 result = (wxString *) &_result_ref;
38954 }
38955 wxPyEndAllowThreads(__tstate);
38956 if (PyErr_Occurred()) SWIG_fail;
38957 }
38958 {
38959 #if wxUSE_UNICODE
38960 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38961 #else
38962 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38963 #endif
38964 }
38965 return resultobj;
38966 fail:
38967 return NULL;
38968 }
38969
38970
38971 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38972 PyObject *resultobj = 0;
38973 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38974 wxString *arg2 = 0 ;
38975 void *argp1 = 0 ;
38976 int res1 = 0 ;
38977 bool temp2 = false ;
38978 PyObject * obj0 = 0 ;
38979 PyObject * obj1 = 0 ;
38980 char * kwnames[] = {
38981 (char *) "self",(char *) "target", NULL
38982 };
38983
38984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
38985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38986 if (!SWIG_IsOK(res1)) {
38987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38988 }
38989 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38990 {
38991 arg2 = wxString_in_helper(obj1);
38992 if (arg2 == NULL) SWIG_fail;
38993 temp2 = true;
38994 }
38995 {
38996 PyThreadState* __tstate = wxPyBeginAllowThreads();
38997 (arg1)->SetTarget((wxString const &)*arg2);
38998 wxPyEndAllowThreads(__tstate);
38999 if (PyErr_Occurred()) SWIG_fail;
39000 }
39001 resultobj = SWIG_Py_Void();
39002 {
39003 if (temp2)
39004 delete arg2;
39005 }
39006 return resultobj;
39007 fail:
39008 {
39009 if (temp2)
39010 delete arg2;
39011 }
39012 return NULL;
39013 }
39014
39015
39016 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39017 PyObject *obj;
39018 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39019 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39020 return SWIG_Py_Void();
39021 }
39022
39023 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39024 return SWIG_Python_InitShadowInstance(args);
39025 }
39026
39027 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39028 PyObject *resultobj = 0;
39029 wxWindow *arg1 = (wxWindow *) NULL ;
39030 bool arg2 = (bool) true ;
39031 wxContextHelp *result = 0 ;
39032 void *argp1 = 0 ;
39033 int res1 = 0 ;
39034 bool val2 ;
39035 int ecode2 = 0 ;
39036 PyObject * obj0 = 0 ;
39037 PyObject * obj1 = 0 ;
39038 char * kwnames[] = {
39039 (char *) "window",(char *) "doNow", NULL
39040 };
39041
39042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39043 if (obj0) {
39044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39045 if (!SWIG_IsOK(res1)) {
39046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39047 }
39048 arg1 = reinterpret_cast< wxWindow * >(argp1);
39049 }
39050 if (obj1) {
39051 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39052 if (!SWIG_IsOK(ecode2)) {
39053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39054 }
39055 arg2 = static_cast< bool >(val2);
39056 }
39057 {
39058 if (!wxPyCheckForApp()) SWIG_fail;
39059 PyThreadState* __tstate = wxPyBeginAllowThreads();
39060 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39061 wxPyEndAllowThreads(__tstate);
39062 if (PyErr_Occurred()) SWIG_fail;
39063 }
39064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39065 return resultobj;
39066 fail:
39067 return NULL;
39068 }
39069
39070
39071 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39072 PyObject *resultobj = 0;
39073 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39074 void *argp1 = 0 ;
39075 int res1 = 0 ;
39076 PyObject *swig_obj[1] ;
39077
39078 if (!args) SWIG_fail;
39079 swig_obj[0] = args;
39080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39081 if (!SWIG_IsOK(res1)) {
39082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39083 }
39084 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39085 {
39086 PyThreadState* __tstate = wxPyBeginAllowThreads();
39087 delete arg1;
39088
39089 wxPyEndAllowThreads(__tstate);
39090 if (PyErr_Occurred()) SWIG_fail;
39091 }
39092 resultobj = SWIG_Py_Void();
39093 return resultobj;
39094 fail:
39095 return NULL;
39096 }
39097
39098
39099 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39100 PyObject *resultobj = 0;
39101 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39102 wxWindow *arg2 = (wxWindow *) NULL ;
39103 bool result;
39104 void *argp1 = 0 ;
39105 int res1 = 0 ;
39106 void *argp2 = 0 ;
39107 int res2 = 0 ;
39108 PyObject * obj0 = 0 ;
39109 PyObject * obj1 = 0 ;
39110 char * kwnames[] = {
39111 (char *) "self",(char *) "window", NULL
39112 };
39113
39114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39116 if (!SWIG_IsOK(res1)) {
39117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39118 }
39119 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39120 if (obj1) {
39121 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39122 if (!SWIG_IsOK(res2)) {
39123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39124 }
39125 arg2 = reinterpret_cast< wxWindow * >(argp2);
39126 }
39127 {
39128 PyThreadState* __tstate = wxPyBeginAllowThreads();
39129 result = (bool)(arg1)->BeginContextHelp(arg2);
39130 wxPyEndAllowThreads(__tstate);
39131 if (PyErr_Occurred()) SWIG_fail;
39132 }
39133 {
39134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39135 }
39136 return resultobj;
39137 fail:
39138 return NULL;
39139 }
39140
39141
39142 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39143 PyObject *resultobj = 0;
39144 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39145 bool result;
39146 void *argp1 = 0 ;
39147 int res1 = 0 ;
39148 PyObject *swig_obj[1] ;
39149
39150 if (!args) SWIG_fail;
39151 swig_obj[0] = args;
39152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39153 if (!SWIG_IsOK(res1)) {
39154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39155 }
39156 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39157 {
39158 PyThreadState* __tstate = wxPyBeginAllowThreads();
39159 result = (bool)(arg1)->EndContextHelp();
39160 wxPyEndAllowThreads(__tstate);
39161 if (PyErr_Occurred()) SWIG_fail;
39162 }
39163 {
39164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39165 }
39166 return resultobj;
39167 fail:
39168 return NULL;
39169 }
39170
39171
39172 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39173 PyObject *obj;
39174 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39175 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39176 return SWIG_Py_Void();
39177 }
39178
39179 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39180 return SWIG_Python_InitShadowInstance(args);
39181 }
39182
39183 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39184 PyObject *resultobj = 0;
39185 wxWindow *arg1 = (wxWindow *) 0 ;
39186 int arg2 = (int) wxID_CONTEXT_HELP ;
39187 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39188 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39189 wxSize const &arg4_defvalue = wxDefaultSize ;
39190 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39191 long arg5 = (long) wxBU_AUTODRAW ;
39192 wxContextHelpButton *result = 0 ;
39193 void *argp1 = 0 ;
39194 int res1 = 0 ;
39195 int val2 ;
39196 int ecode2 = 0 ;
39197 wxPoint temp3 ;
39198 wxSize temp4 ;
39199 long val5 ;
39200 int ecode5 = 0 ;
39201 PyObject * obj0 = 0 ;
39202 PyObject * obj1 = 0 ;
39203 PyObject * obj2 = 0 ;
39204 PyObject * obj3 = 0 ;
39205 PyObject * obj4 = 0 ;
39206 char * kwnames[] = {
39207 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39208 };
39209
39210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39212 if (!SWIG_IsOK(res1)) {
39213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39214 }
39215 arg1 = reinterpret_cast< wxWindow * >(argp1);
39216 if (obj1) {
39217 ecode2 = SWIG_AsVal_int(obj1, &val2);
39218 if (!SWIG_IsOK(ecode2)) {
39219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39220 }
39221 arg2 = static_cast< int >(val2);
39222 }
39223 if (obj2) {
39224 {
39225 arg3 = &temp3;
39226 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39227 }
39228 }
39229 if (obj3) {
39230 {
39231 arg4 = &temp4;
39232 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39233 }
39234 }
39235 if (obj4) {
39236 ecode5 = SWIG_AsVal_long(obj4, &val5);
39237 if (!SWIG_IsOK(ecode5)) {
39238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39239 }
39240 arg5 = static_cast< long >(val5);
39241 }
39242 {
39243 if (!wxPyCheckForApp()) SWIG_fail;
39244 PyThreadState* __tstate = wxPyBeginAllowThreads();
39245 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39246 wxPyEndAllowThreads(__tstate);
39247 if (PyErr_Occurred()) SWIG_fail;
39248 }
39249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39250 return resultobj;
39251 fail:
39252 return NULL;
39253 }
39254
39255
39256 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39257 PyObject *obj;
39258 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39259 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39260 return SWIG_Py_Void();
39261 }
39262
39263 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39264 return SWIG_Python_InitShadowInstance(args);
39265 }
39266
39267 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39268 PyObject *resultobj = 0;
39269 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39270 void *argp1 = 0 ;
39271 int res1 = 0 ;
39272 PyObject *swig_obj[1] ;
39273
39274 if (!args) SWIG_fail;
39275 swig_obj[0] = args;
39276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39277 if (!SWIG_IsOK(res1)) {
39278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39279 }
39280 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39281 {
39282 PyThreadState* __tstate = wxPyBeginAllowThreads();
39283 delete arg1;
39284
39285 wxPyEndAllowThreads(__tstate);
39286 if (PyErr_Occurred()) SWIG_fail;
39287 }
39288 resultobj = SWIG_Py_Void();
39289 return resultobj;
39290 fail:
39291 return NULL;
39292 }
39293
39294
39295 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39296 PyObject *resultobj = 0;
39297 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39298 wxHelpProvider *result = 0 ;
39299 int res1 = 0 ;
39300 PyObject * obj0 = 0 ;
39301 char * kwnames[] = {
39302 (char *) "helpProvider", NULL
39303 };
39304
39305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39306 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39307 if (!SWIG_IsOK(res1)) {
39308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39309 }
39310 {
39311 PyThreadState* __tstate = wxPyBeginAllowThreads();
39312 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39313 wxPyEndAllowThreads(__tstate);
39314 if (PyErr_Occurred()) SWIG_fail;
39315 }
39316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39317 return resultobj;
39318 fail:
39319 return NULL;
39320 }
39321
39322
39323 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39324 PyObject *resultobj = 0;
39325 wxHelpProvider *result = 0 ;
39326
39327 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39328 {
39329 PyThreadState* __tstate = wxPyBeginAllowThreads();
39330 result = (wxHelpProvider *)wxHelpProvider::Get();
39331 wxPyEndAllowThreads(__tstate);
39332 if (PyErr_Occurred()) SWIG_fail;
39333 }
39334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39335 return resultobj;
39336 fail:
39337 return NULL;
39338 }
39339
39340
39341 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39342 PyObject *resultobj = 0;
39343 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39344 wxWindow *arg2 = (wxWindow *) 0 ;
39345 wxString result;
39346 void *argp1 = 0 ;
39347 int res1 = 0 ;
39348 void *argp2 = 0 ;
39349 int res2 = 0 ;
39350 PyObject * obj0 = 0 ;
39351 PyObject * obj1 = 0 ;
39352 char * kwnames[] = {
39353 (char *) "self",(char *) "window", NULL
39354 };
39355
39356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39358 if (!SWIG_IsOK(res1)) {
39359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39360 }
39361 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39362 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39363 if (!SWIG_IsOK(res2)) {
39364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39365 }
39366 arg2 = reinterpret_cast< wxWindow * >(argp2);
39367 {
39368 PyThreadState* __tstate = wxPyBeginAllowThreads();
39369 result = (arg1)->GetHelp((wxWindow const *)arg2);
39370 wxPyEndAllowThreads(__tstate);
39371 if (PyErr_Occurred()) SWIG_fail;
39372 }
39373 {
39374 #if wxUSE_UNICODE
39375 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39376 #else
39377 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39378 #endif
39379 }
39380 return resultobj;
39381 fail:
39382 return NULL;
39383 }
39384
39385
39386 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39387 PyObject *resultobj = 0;
39388 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39389 wxWindow *arg2 = (wxWindow *) 0 ;
39390 bool result;
39391 void *argp1 = 0 ;
39392 int res1 = 0 ;
39393 void *argp2 = 0 ;
39394 int res2 = 0 ;
39395 PyObject * obj0 = 0 ;
39396 PyObject * obj1 = 0 ;
39397 char * kwnames[] = {
39398 (char *) "self",(char *) "window", NULL
39399 };
39400
39401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39403 if (!SWIG_IsOK(res1)) {
39404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39405 }
39406 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39407 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39408 if (!SWIG_IsOK(res2)) {
39409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39410 }
39411 arg2 = reinterpret_cast< wxWindow * >(argp2);
39412 {
39413 PyThreadState* __tstate = wxPyBeginAllowThreads();
39414 result = (bool)(arg1)->ShowHelp(arg2);
39415 wxPyEndAllowThreads(__tstate);
39416 if (PyErr_Occurred()) SWIG_fail;
39417 }
39418 {
39419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39420 }
39421 return resultobj;
39422 fail:
39423 return NULL;
39424 }
39425
39426
39427 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39428 PyObject *resultobj = 0;
39429 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39430 wxWindow *arg2 = (wxWindow *) 0 ;
39431 wxString *arg3 = 0 ;
39432 void *argp1 = 0 ;
39433 int res1 = 0 ;
39434 void *argp2 = 0 ;
39435 int res2 = 0 ;
39436 bool temp3 = false ;
39437 PyObject * obj0 = 0 ;
39438 PyObject * obj1 = 0 ;
39439 PyObject * obj2 = 0 ;
39440 char * kwnames[] = {
39441 (char *) "self",(char *) "window",(char *) "text", NULL
39442 };
39443
39444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39446 if (!SWIG_IsOK(res1)) {
39447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39448 }
39449 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39450 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39451 if (!SWIG_IsOK(res2)) {
39452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39453 }
39454 arg2 = reinterpret_cast< wxWindow * >(argp2);
39455 {
39456 arg3 = wxString_in_helper(obj2);
39457 if (arg3 == NULL) SWIG_fail;
39458 temp3 = true;
39459 }
39460 {
39461 PyThreadState* __tstate = wxPyBeginAllowThreads();
39462 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39463 wxPyEndAllowThreads(__tstate);
39464 if (PyErr_Occurred()) SWIG_fail;
39465 }
39466 resultobj = SWIG_Py_Void();
39467 {
39468 if (temp3)
39469 delete arg3;
39470 }
39471 return resultobj;
39472 fail:
39473 {
39474 if (temp3)
39475 delete arg3;
39476 }
39477 return NULL;
39478 }
39479
39480
39481 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39482 PyObject *resultobj = 0;
39483 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39484 int arg2 ;
39485 wxString *arg3 = 0 ;
39486 void *argp1 = 0 ;
39487 int res1 = 0 ;
39488 int val2 ;
39489 int ecode2 = 0 ;
39490 bool temp3 = false ;
39491 PyObject * obj0 = 0 ;
39492 PyObject * obj1 = 0 ;
39493 PyObject * obj2 = 0 ;
39494 char * kwnames[] = {
39495 (char *) "self",(char *) "id",(char *) "text", NULL
39496 };
39497
39498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39500 if (!SWIG_IsOK(res1)) {
39501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39502 }
39503 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39504 ecode2 = SWIG_AsVal_int(obj1, &val2);
39505 if (!SWIG_IsOK(ecode2)) {
39506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39507 }
39508 arg2 = static_cast< int >(val2);
39509 {
39510 arg3 = wxString_in_helper(obj2);
39511 if (arg3 == NULL) SWIG_fail;
39512 temp3 = true;
39513 }
39514 {
39515 PyThreadState* __tstate = wxPyBeginAllowThreads();
39516 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39517 wxPyEndAllowThreads(__tstate);
39518 if (PyErr_Occurred()) SWIG_fail;
39519 }
39520 resultobj = SWIG_Py_Void();
39521 {
39522 if (temp3)
39523 delete arg3;
39524 }
39525 return resultobj;
39526 fail:
39527 {
39528 if (temp3)
39529 delete arg3;
39530 }
39531 return NULL;
39532 }
39533
39534
39535 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39536 PyObject *resultobj = 0;
39537 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39538 wxWindow *arg2 = (wxWindow *) 0 ;
39539 void *argp1 = 0 ;
39540 int res1 = 0 ;
39541 void *argp2 = 0 ;
39542 int res2 = 0 ;
39543 PyObject * obj0 = 0 ;
39544 PyObject * obj1 = 0 ;
39545 char * kwnames[] = {
39546 (char *) "self",(char *) "window", NULL
39547 };
39548
39549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39551 if (!SWIG_IsOK(res1)) {
39552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39553 }
39554 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39555 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39556 if (!SWIG_IsOK(res2)) {
39557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39558 }
39559 arg2 = reinterpret_cast< wxWindow * >(argp2);
39560 {
39561 PyThreadState* __tstate = wxPyBeginAllowThreads();
39562 (arg1)->RemoveHelp(arg2);
39563 wxPyEndAllowThreads(__tstate);
39564 if (PyErr_Occurred()) SWIG_fail;
39565 }
39566 resultobj = SWIG_Py_Void();
39567 return resultobj;
39568 fail:
39569 return NULL;
39570 }
39571
39572
39573 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39574 PyObject *resultobj = 0;
39575 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39576 void *argp1 = 0 ;
39577 int res1 = 0 ;
39578 PyObject *swig_obj[1] ;
39579
39580 if (!args) SWIG_fail;
39581 swig_obj[0] = args;
39582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39583 if (!SWIG_IsOK(res1)) {
39584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39585 }
39586 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39587 {
39588 PyThreadState* __tstate = wxPyBeginAllowThreads();
39589 wxHelpProvider_Destroy(arg1);
39590 wxPyEndAllowThreads(__tstate);
39591 if (PyErr_Occurred()) SWIG_fail;
39592 }
39593 resultobj = SWIG_Py_Void();
39594 return resultobj;
39595 fail:
39596 return NULL;
39597 }
39598
39599
39600 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39601 PyObject *obj;
39602 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39603 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39604 return SWIG_Py_Void();
39605 }
39606
39607 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39608 PyObject *resultobj = 0;
39609 wxSimpleHelpProvider *result = 0 ;
39610
39611 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39612 {
39613 PyThreadState* __tstate = wxPyBeginAllowThreads();
39614 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39615 wxPyEndAllowThreads(__tstate);
39616 if (PyErr_Occurred()) SWIG_fail;
39617 }
39618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39619 return resultobj;
39620 fail:
39621 return NULL;
39622 }
39623
39624
39625 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39626 PyObject *obj;
39627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39628 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39629 return SWIG_Py_Void();
39630 }
39631
39632 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39633 return SWIG_Python_InitShadowInstance(args);
39634 }
39635
39636 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39637 PyObject *resultobj = 0;
39638 wxBitmap *arg1 = 0 ;
39639 wxCursor const &arg2_defvalue = wxNullCursor ;
39640 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39641 wxGenericDragImage *result = 0 ;
39642 void *argp1 = 0 ;
39643 int res1 = 0 ;
39644 void *argp2 = 0 ;
39645 int res2 = 0 ;
39646 PyObject * obj0 = 0 ;
39647 PyObject * obj1 = 0 ;
39648 char * kwnames[] = {
39649 (char *) "image",(char *) "cursor", NULL
39650 };
39651
39652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39653 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39654 if (!SWIG_IsOK(res1)) {
39655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39656 }
39657 if (!argp1) {
39658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39659 }
39660 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39661 if (obj1) {
39662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39663 if (!SWIG_IsOK(res2)) {
39664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39665 }
39666 if (!argp2) {
39667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39668 }
39669 arg2 = reinterpret_cast< wxCursor * >(argp2);
39670 }
39671 {
39672 if (!wxPyCheckForApp()) SWIG_fail;
39673 PyThreadState* __tstate = wxPyBeginAllowThreads();
39674 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39675 wxPyEndAllowThreads(__tstate);
39676 if (PyErr_Occurred()) SWIG_fail;
39677 }
39678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39679 return resultobj;
39680 fail:
39681 return NULL;
39682 }
39683
39684
39685 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39686 PyObject *resultobj = 0;
39687 wxIcon *arg1 = 0 ;
39688 wxCursor const &arg2_defvalue = wxNullCursor ;
39689 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39690 wxGenericDragImage *result = 0 ;
39691 void *argp1 = 0 ;
39692 int res1 = 0 ;
39693 void *argp2 = 0 ;
39694 int res2 = 0 ;
39695 PyObject * obj0 = 0 ;
39696 PyObject * obj1 = 0 ;
39697 char * kwnames[] = {
39698 (char *) "image",(char *) "cursor", NULL
39699 };
39700
39701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39702 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39703 if (!SWIG_IsOK(res1)) {
39704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39705 }
39706 if (!argp1) {
39707 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39708 }
39709 arg1 = reinterpret_cast< wxIcon * >(argp1);
39710 if (obj1) {
39711 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39712 if (!SWIG_IsOK(res2)) {
39713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39714 }
39715 if (!argp2) {
39716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39717 }
39718 arg2 = reinterpret_cast< wxCursor * >(argp2);
39719 }
39720 {
39721 if (!wxPyCheckForApp()) SWIG_fail;
39722 PyThreadState* __tstate = wxPyBeginAllowThreads();
39723 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39724 wxPyEndAllowThreads(__tstate);
39725 if (PyErr_Occurred()) SWIG_fail;
39726 }
39727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39728 return resultobj;
39729 fail:
39730 return NULL;
39731 }
39732
39733
39734 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39735 PyObject *resultobj = 0;
39736 wxString *arg1 = 0 ;
39737 wxCursor const &arg2_defvalue = wxNullCursor ;
39738 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39739 wxGenericDragImage *result = 0 ;
39740 bool temp1 = false ;
39741 void *argp2 = 0 ;
39742 int res2 = 0 ;
39743 PyObject * obj0 = 0 ;
39744 PyObject * obj1 = 0 ;
39745 char * kwnames[] = {
39746 (char *) "str",(char *) "cursor", NULL
39747 };
39748
39749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39750 {
39751 arg1 = wxString_in_helper(obj0);
39752 if (arg1 == NULL) SWIG_fail;
39753 temp1 = true;
39754 }
39755 if (obj1) {
39756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39757 if (!SWIG_IsOK(res2)) {
39758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39759 }
39760 if (!argp2) {
39761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39762 }
39763 arg2 = reinterpret_cast< wxCursor * >(argp2);
39764 }
39765 {
39766 if (!wxPyCheckForApp()) SWIG_fail;
39767 PyThreadState* __tstate = wxPyBeginAllowThreads();
39768 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39769 wxPyEndAllowThreads(__tstate);
39770 if (PyErr_Occurred()) SWIG_fail;
39771 }
39772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39773 {
39774 if (temp1)
39775 delete arg1;
39776 }
39777 return resultobj;
39778 fail:
39779 {
39780 if (temp1)
39781 delete arg1;
39782 }
39783 return NULL;
39784 }
39785
39786
39787 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39788 PyObject *resultobj = 0;
39789 wxPyTreeCtrl *arg1 = 0 ;
39790 wxTreeItemId *arg2 = 0 ;
39791 wxGenericDragImage *result = 0 ;
39792 void *argp1 = 0 ;
39793 int res1 = 0 ;
39794 void *argp2 = 0 ;
39795 int res2 = 0 ;
39796 PyObject * obj0 = 0 ;
39797 PyObject * obj1 = 0 ;
39798 char * kwnames[] = {
39799 (char *) "treeCtrl",(char *) "id", NULL
39800 };
39801
39802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39803 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39804 if (!SWIG_IsOK(res1)) {
39805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39806 }
39807 if (!argp1) {
39808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39809 }
39810 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39811 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
39812 if (!SWIG_IsOK(res2)) {
39813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39814 }
39815 if (!argp2) {
39816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39817 }
39818 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
39819 {
39820 if (!wxPyCheckForApp()) SWIG_fail;
39821 PyThreadState* __tstate = wxPyBeginAllowThreads();
39822 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
39823 wxPyEndAllowThreads(__tstate);
39824 if (PyErr_Occurred()) SWIG_fail;
39825 }
39826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39827 return resultobj;
39828 fail:
39829 return NULL;
39830 }
39831
39832
39833 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39834 PyObject *resultobj = 0;
39835 wxPyListCtrl *arg1 = 0 ;
39836 long arg2 ;
39837 wxGenericDragImage *result = 0 ;
39838 void *argp1 = 0 ;
39839 int res1 = 0 ;
39840 long val2 ;
39841 int ecode2 = 0 ;
39842 PyObject * obj0 = 0 ;
39843 PyObject * obj1 = 0 ;
39844 char * kwnames[] = {
39845 (char *) "listCtrl",(char *) "id", NULL
39846 };
39847
39848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
39849 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
39850 if (!SWIG_IsOK(res1)) {
39851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39852 }
39853 if (!argp1) {
39854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39855 }
39856 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
39857 ecode2 = SWIG_AsVal_long(obj1, &val2);
39858 if (!SWIG_IsOK(ecode2)) {
39859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
39860 }
39861 arg2 = static_cast< long >(val2);
39862 {
39863 if (!wxPyCheckForApp()) SWIG_fail;
39864 PyThreadState* __tstate = wxPyBeginAllowThreads();
39865 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
39866 wxPyEndAllowThreads(__tstate);
39867 if (PyErr_Occurred()) SWIG_fail;
39868 }
39869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39870 return resultobj;
39871 fail:
39872 return NULL;
39873 }
39874
39875
39876 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39877 PyObject *resultobj = 0;
39878 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39879 void *argp1 = 0 ;
39880 int res1 = 0 ;
39881 PyObject *swig_obj[1] ;
39882
39883 if (!args) SWIG_fail;
39884 swig_obj[0] = args;
39885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
39886 if (!SWIG_IsOK(res1)) {
39887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39888 }
39889 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39890 {
39891 PyThreadState* __tstate = wxPyBeginAllowThreads();
39892 delete arg1;
39893
39894 wxPyEndAllowThreads(__tstate);
39895 if (PyErr_Occurred()) SWIG_fail;
39896 }
39897 resultobj = SWIG_Py_Void();
39898 return resultobj;
39899 fail:
39900 return NULL;
39901 }
39902
39903
39904 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39905 PyObject *resultobj = 0;
39906 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39907 wxBitmap *arg2 = (wxBitmap *) 0 ;
39908 void *argp1 = 0 ;
39909 int res1 = 0 ;
39910 void *argp2 = 0 ;
39911 int res2 = 0 ;
39912 PyObject * obj0 = 0 ;
39913 PyObject * obj1 = 0 ;
39914 char * kwnames[] = {
39915 (char *) "self",(char *) "bitmap", NULL
39916 };
39917
39918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
39919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39920 if (!SWIG_IsOK(res1)) {
39921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39922 }
39923 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39924 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
39925 if (!SWIG_IsOK(res2)) {
39926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
39927 }
39928 arg2 = reinterpret_cast< wxBitmap * >(argp2);
39929 {
39930 PyThreadState* __tstate = wxPyBeginAllowThreads();
39931 (arg1)->SetBackingBitmap(arg2);
39932 wxPyEndAllowThreads(__tstate);
39933 if (PyErr_Occurred()) SWIG_fail;
39934 }
39935 resultobj = SWIG_Py_Void();
39936 return resultobj;
39937 fail:
39938 return NULL;
39939 }
39940
39941
39942 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39943 PyObject *resultobj = 0;
39944 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39945 wxPoint *arg2 = 0 ;
39946 wxWindow *arg3 = (wxWindow *) 0 ;
39947 bool arg4 = (bool) false ;
39948 wxRect *arg5 = (wxRect *) NULL ;
39949 bool result;
39950 void *argp1 = 0 ;
39951 int res1 = 0 ;
39952 wxPoint temp2 ;
39953 void *argp3 = 0 ;
39954 int res3 = 0 ;
39955 bool val4 ;
39956 int ecode4 = 0 ;
39957 void *argp5 = 0 ;
39958 int res5 = 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 *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
39966 };
39967
39968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39970 if (!SWIG_IsOK(res1)) {
39971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39972 }
39973 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39974 {
39975 arg2 = &temp2;
39976 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39977 }
39978 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39979 if (!SWIG_IsOK(res3)) {
39980 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
39981 }
39982 arg3 = reinterpret_cast< wxWindow * >(argp3);
39983 if (obj3) {
39984 ecode4 = SWIG_AsVal_bool(obj3, &val4);
39985 if (!SWIG_IsOK(ecode4)) {
39986 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
39987 }
39988 arg4 = static_cast< bool >(val4);
39989 }
39990 if (obj4) {
39991 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
39992 if (!SWIG_IsOK(res5)) {
39993 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
39994 }
39995 arg5 = reinterpret_cast< wxRect * >(argp5);
39996 }
39997 {
39998 PyThreadState* __tstate = wxPyBeginAllowThreads();
39999 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40000 wxPyEndAllowThreads(__tstate);
40001 if (PyErr_Occurred()) SWIG_fail;
40002 }
40003 {
40004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40005 }
40006 return resultobj;
40007 fail:
40008 return NULL;
40009 }
40010
40011
40012 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40013 PyObject *resultobj = 0;
40014 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40015 wxPoint *arg2 = 0 ;
40016 wxWindow *arg3 = (wxWindow *) 0 ;
40017 wxWindow *arg4 = (wxWindow *) 0 ;
40018 bool result;
40019 void *argp1 = 0 ;
40020 int res1 = 0 ;
40021 wxPoint temp2 ;
40022 void *argp3 = 0 ;
40023 int res3 = 0 ;
40024 void *argp4 = 0 ;
40025 int res4 = 0 ;
40026 PyObject * obj0 = 0 ;
40027 PyObject * obj1 = 0 ;
40028 PyObject * obj2 = 0 ;
40029 PyObject * obj3 = 0 ;
40030 char * kwnames[] = {
40031 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40032 };
40033
40034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40036 if (!SWIG_IsOK(res1)) {
40037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40038 }
40039 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40040 {
40041 arg2 = &temp2;
40042 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40043 }
40044 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40045 if (!SWIG_IsOK(res3)) {
40046 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40047 }
40048 arg3 = reinterpret_cast< wxWindow * >(argp3);
40049 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40050 if (!SWIG_IsOK(res4)) {
40051 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40052 }
40053 arg4 = reinterpret_cast< wxWindow * >(argp4);
40054 {
40055 PyThreadState* __tstate = wxPyBeginAllowThreads();
40056 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40057 wxPyEndAllowThreads(__tstate);
40058 if (PyErr_Occurred()) SWIG_fail;
40059 }
40060 {
40061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40062 }
40063 return resultobj;
40064 fail:
40065 return NULL;
40066 }
40067
40068
40069 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40070 PyObject *resultobj = 0;
40071 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40072 bool result;
40073 void *argp1 = 0 ;
40074 int res1 = 0 ;
40075 PyObject *swig_obj[1] ;
40076
40077 if (!args) SWIG_fail;
40078 swig_obj[0] = args;
40079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40080 if (!SWIG_IsOK(res1)) {
40081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40082 }
40083 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40084 {
40085 PyThreadState* __tstate = wxPyBeginAllowThreads();
40086 result = (bool)(arg1)->EndDrag();
40087 wxPyEndAllowThreads(__tstate);
40088 if (PyErr_Occurred()) SWIG_fail;
40089 }
40090 {
40091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40092 }
40093 return resultobj;
40094 fail:
40095 return NULL;
40096 }
40097
40098
40099 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40100 PyObject *resultobj = 0;
40101 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40102 wxPoint *arg2 = 0 ;
40103 bool result;
40104 void *argp1 = 0 ;
40105 int res1 = 0 ;
40106 wxPoint temp2 ;
40107 PyObject * obj0 = 0 ;
40108 PyObject * obj1 = 0 ;
40109 char * kwnames[] = {
40110 (char *) "self",(char *) "pt", NULL
40111 };
40112
40113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40115 if (!SWIG_IsOK(res1)) {
40116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40117 }
40118 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40119 {
40120 arg2 = &temp2;
40121 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40122 }
40123 {
40124 PyThreadState* __tstate = wxPyBeginAllowThreads();
40125 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40126 wxPyEndAllowThreads(__tstate);
40127 if (PyErr_Occurred()) SWIG_fail;
40128 }
40129 {
40130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40131 }
40132 return resultobj;
40133 fail:
40134 return NULL;
40135 }
40136
40137
40138 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40139 PyObject *resultobj = 0;
40140 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40141 bool result;
40142 void *argp1 = 0 ;
40143 int res1 = 0 ;
40144 PyObject *swig_obj[1] ;
40145
40146 if (!args) SWIG_fail;
40147 swig_obj[0] = args;
40148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40149 if (!SWIG_IsOK(res1)) {
40150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40151 }
40152 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40153 {
40154 PyThreadState* __tstate = wxPyBeginAllowThreads();
40155 result = (bool)(arg1)->Show();
40156 wxPyEndAllowThreads(__tstate);
40157 if (PyErr_Occurred()) SWIG_fail;
40158 }
40159 {
40160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40161 }
40162 return resultobj;
40163 fail:
40164 return NULL;
40165 }
40166
40167
40168 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40169 PyObject *resultobj = 0;
40170 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40171 bool result;
40172 void *argp1 = 0 ;
40173 int res1 = 0 ;
40174 PyObject *swig_obj[1] ;
40175
40176 if (!args) SWIG_fail;
40177 swig_obj[0] = args;
40178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40179 if (!SWIG_IsOK(res1)) {
40180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40181 }
40182 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40183 {
40184 PyThreadState* __tstate = wxPyBeginAllowThreads();
40185 result = (bool)(arg1)->Hide();
40186 wxPyEndAllowThreads(__tstate);
40187 if (PyErr_Occurred()) SWIG_fail;
40188 }
40189 {
40190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40191 }
40192 return resultobj;
40193 fail:
40194 return NULL;
40195 }
40196
40197
40198 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40199 PyObject *resultobj = 0;
40200 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40201 wxPoint *arg2 = 0 ;
40202 wxRect result;
40203 void *argp1 = 0 ;
40204 int res1 = 0 ;
40205 wxPoint temp2 ;
40206 PyObject * obj0 = 0 ;
40207 PyObject * obj1 = 0 ;
40208 char * kwnames[] = {
40209 (char *) "self",(char *) "pos", NULL
40210 };
40211
40212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40214 if (!SWIG_IsOK(res1)) {
40215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40216 }
40217 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40218 {
40219 arg2 = &temp2;
40220 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40221 }
40222 {
40223 PyThreadState* __tstate = wxPyBeginAllowThreads();
40224 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40225 wxPyEndAllowThreads(__tstate);
40226 if (PyErr_Occurred()) SWIG_fail;
40227 }
40228 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40229 return resultobj;
40230 fail:
40231 return NULL;
40232 }
40233
40234
40235 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40236 PyObject *resultobj = 0;
40237 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40238 wxDC *arg2 = 0 ;
40239 wxPoint *arg3 = 0 ;
40240 bool result;
40241 void *argp1 = 0 ;
40242 int res1 = 0 ;
40243 void *argp2 = 0 ;
40244 int res2 = 0 ;
40245 wxPoint temp3 ;
40246 PyObject * obj0 = 0 ;
40247 PyObject * obj1 = 0 ;
40248 PyObject * obj2 = 0 ;
40249 char * kwnames[] = {
40250 (char *) "self",(char *) "dc",(char *) "pos", NULL
40251 };
40252
40253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40255 if (!SWIG_IsOK(res1)) {
40256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40257 }
40258 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40259 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40260 if (!SWIG_IsOK(res2)) {
40261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40262 }
40263 if (!argp2) {
40264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40265 }
40266 arg2 = reinterpret_cast< wxDC * >(argp2);
40267 {
40268 arg3 = &temp3;
40269 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40270 }
40271 {
40272 PyThreadState* __tstate = wxPyBeginAllowThreads();
40273 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40274 wxPyEndAllowThreads(__tstate);
40275 if (PyErr_Occurred()) SWIG_fail;
40276 }
40277 {
40278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40279 }
40280 return resultobj;
40281 fail:
40282 return NULL;
40283 }
40284
40285
40286 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40287 PyObject *resultobj = 0;
40288 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40289 wxDC *arg2 = 0 ;
40290 wxMemoryDC *arg3 = 0 ;
40291 wxRect *arg4 = 0 ;
40292 wxRect *arg5 = 0 ;
40293 bool result;
40294 void *argp1 = 0 ;
40295 int res1 = 0 ;
40296 void *argp2 = 0 ;
40297 int res2 = 0 ;
40298 void *argp3 = 0 ;
40299 int res3 = 0 ;
40300 wxRect temp4 ;
40301 wxRect temp5 ;
40302 PyObject * obj0 = 0 ;
40303 PyObject * obj1 = 0 ;
40304 PyObject * obj2 = 0 ;
40305 PyObject * obj3 = 0 ;
40306 PyObject * obj4 = 0 ;
40307 char * kwnames[] = {
40308 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40309 };
40310
40311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40313 if (!SWIG_IsOK(res1)) {
40314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40315 }
40316 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40317 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40318 if (!SWIG_IsOK(res2)) {
40319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40320 }
40321 if (!argp2) {
40322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40323 }
40324 arg2 = reinterpret_cast< wxDC * >(argp2);
40325 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40326 if (!SWIG_IsOK(res3)) {
40327 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40328 }
40329 if (!argp3) {
40330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40331 }
40332 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40333 {
40334 arg4 = &temp4;
40335 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40336 }
40337 {
40338 arg5 = &temp5;
40339 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40340 }
40341 {
40342 PyThreadState* __tstate = wxPyBeginAllowThreads();
40343 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40344 wxPyEndAllowThreads(__tstate);
40345 if (PyErr_Occurred()) SWIG_fail;
40346 }
40347 {
40348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40349 }
40350 return resultobj;
40351 fail:
40352 return NULL;
40353 }
40354
40355
40356 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40357 PyObject *resultobj = 0;
40358 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40359 wxPoint *arg2 = 0 ;
40360 wxPoint *arg3 = 0 ;
40361 bool arg4 ;
40362 bool arg5 ;
40363 bool result;
40364 void *argp1 = 0 ;
40365 int res1 = 0 ;
40366 wxPoint temp2 ;
40367 wxPoint temp3 ;
40368 bool val4 ;
40369 int ecode4 = 0 ;
40370 bool val5 ;
40371 int ecode5 = 0 ;
40372 PyObject * obj0 = 0 ;
40373 PyObject * obj1 = 0 ;
40374 PyObject * obj2 = 0 ;
40375 PyObject * obj3 = 0 ;
40376 PyObject * obj4 = 0 ;
40377 char * kwnames[] = {
40378 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40379 };
40380
40381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40383 if (!SWIG_IsOK(res1)) {
40384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40385 }
40386 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40387 {
40388 arg2 = &temp2;
40389 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40390 }
40391 {
40392 arg3 = &temp3;
40393 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40394 }
40395 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40396 if (!SWIG_IsOK(ecode4)) {
40397 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40398 }
40399 arg4 = static_cast< bool >(val4);
40400 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40401 if (!SWIG_IsOK(ecode5)) {
40402 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40403 }
40404 arg5 = static_cast< bool >(val5);
40405 {
40406 PyThreadState* __tstate = wxPyBeginAllowThreads();
40407 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40408 wxPyEndAllowThreads(__tstate);
40409 if (PyErr_Occurred()) SWIG_fail;
40410 }
40411 {
40412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40413 }
40414 return resultobj;
40415 fail:
40416 return NULL;
40417 }
40418
40419
40420 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40421 PyObject *obj;
40422 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40423 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40424 return SWIG_Py_Void();
40425 }
40426
40427 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40428 return SWIG_Python_InitShadowInstance(args);
40429 }
40430
40431 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40432 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40433 return 1;
40434 }
40435
40436
40437 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40438 PyObject *pyobj = 0;
40439
40440 {
40441 #if wxUSE_UNICODE
40442 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40443 #else
40444 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40445 #endif
40446 }
40447 return pyobj;
40448 }
40449
40450
40451 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40452 PyObject *resultobj = 0;
40453 wxWindow *arg1 = (wxWindow *) 0 ;
40454 int arg2 = (int) -1 ;
40455 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40456 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40457 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40458 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40459 wxSize const &arg5_defvalue = wxDefaultSize ;
40460 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40461 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40462 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40463 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40464 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40465 wxString *arg8 = (wxString *) &arg8_defvalue ;
40466 wxDatePickerCtrl *result = 0 ;
40467 void *argp1 = 0 ;
40468 int res1 = 0 ;
40469 int val2 ;
40470 int ecode2 = 0 ;
40471 void *argp3 = 0 ;
40472 int res3 = 0 ;
40473 wxPoint temp4 ;
40474 wxSize temp5 ;
40475 long val6 ;
40476 int ecode6 = 0 ;
40477 void *argp7 = 0 ;
40478 int res7 = 0 ;
40479 bool temp8 = false ;
40480 PyObject * obj0 = 0 ;
40481 PyObject * obj1 = 0 ;
40482 PyObject * obj2 = 0 ;
40483 PyObject * obj3 = 0 ;
40484 PyObject * obj4 = 0 ;
40485 PyObject * obj5 = 0 ;
40486 PyObject * obj6 = 0 ;
40487 PyObject * obj7 = 0 ;
40488 char * kwnames[] = {
40489 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40490 };
40491
40492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40494 if (!SWIG_IsOK(res1)) {
40495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40496 }
40497 arg1 = reinterpret_cast< wxWindow * >(argp1);
40498 if (obj1) {
40499 ecode2 = SWIG_AsVal_int(obj1, &val2);
40500 if (!SWIG_IsOK(ecode2)) {
40501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40502 }
40503 arg2 = static_cast< int >(val2);
40504 }
40505 if (obj2) {
40506 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40507 if (!SWIG_IsOK(res3)) {
40508 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40509 }
40510 if (!argp3) {
40511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40512 }
40513 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40514 }
40515 if (obj3) {
40516 {
40517 arg4 = &temp4;
40518 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
40519 }
40520 }
40521 if (obj4) {
40522 {
40523 arg5 = &temp5;
40524 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
40525 }
40526 }
40527 if (obj5) {
40528 ecode6 = SWIG_AsVal_long(obj5, &val6);
40529 if (!SWIG_IsOK(ecode6)) {
40530 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40531 }
40532 arg6 = static_cast< long >(val6);
40533 }
40534 if (obj6) {
40535 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40536 if (!SWIG_IsOK(res7)) {
40537 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40538 }
40539 if (!argp7) {
40540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40541 }
40542 arg7 = reinterpret_cast< wxValidator * >(argp7);
40543 }
40544 if (obj7) {
40545 {
40546 arg8 = wxString_in_helper(obj7);
40547 if (arg8 == NULL) SWIG_fail;
40548 temp8 = true;
40549 }
40550 }
40551 {
40552 if (!wxPyCheckForApp()) SWIG_fail;
40553 PyThreadState* __tstate = wxPyBeginAllowThreads();
40554 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40555 wxPyEndAllowThreads(__tstate);
40556 if (PyErr_Occurred()) SWIG_fail;
40557 }
40558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40559 {
40560 if (temp8)
40561 delete arg8;
40562 }
40563 return resultobj;
40564 fail:
40565 {
40566 if (temp8)
40567 delete arg8;
40568 }
40569 return NULL;
40570 }
40571
40572
40573 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40574 PyObject *resultobj = 0;
40575 wxDatePickerCtrl *result = 0 ;
40576
40577 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40578 {
40579 if (!wxPyCheckForApp()) SWIG_fail;
40580 PyThreadState* __tstate = wxPyBeginAllowThreads();
40581 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40582 wxPyEndAllowThreads(__tstate);
40583 if (PyErr_Occurred()) SWIG_fail;
40584 }
40585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40586 return resultobj;
40587 fail:
40588 return NULL;
40589 }
40590
40591
40592 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40593 PyObject *resultobj = 0;
40594 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40595 wxWindow *arg2 = (wxWindow *) 0 ;
40596 int arg3 = (int) -1 ;
40597 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40598 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40599 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40600 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40601 wxSize const &arg6_defvalue = wxDefaultSize ;
40602 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40603 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40604 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40605 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40606 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40607 wxString *arg9 = (wxString *) &arg9_defvalue ;
40608 bool result;
40609 void *argp1 = 0 ;
40610 int res1 = 0 ;
40611 void *argp2 = 0 ;
40612 int res2 = 0 ;
40613 int val3 ;
40614 int ecode3 = 0 ;
40615 void *argp4 = 0 ;
40616 int res4 = 0 ;
40617 wxPoint temp5 ;
40618 wxSize temp6 ;
40619 long val7 ;
40620 int ecode7 = 0 ;
40621 void *argp8 = 0 ;
40622 int res8 = 0 ;
40623 bool temp9 = false ;
40624 PyObject * obj0 = 0 ;
40625 PyObject * obj1 = 0 ;
40626 PyObject * obj2 = 0 ;
40627 PyObject * obj3 = 0 ;
40628 PyObject * obj4 = 0 ;
40629 PyObject * obj5 = 0 ;
40630 PyObject * obj6 = 0 ;
40631 PyObject * obj7 = 0 ;
40632 PyObject * obj8 = 0 ;
40633 char * kwnames[] = {
40634 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40635 };
40636
40637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40639 if (!SWIG_IsOK(res1)) {
40640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40641 }
40642 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40643 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40644 if (!SWIG_IsOK(res2)) {
40645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40646 }
40647 arg2 = reinterpret_cast< wxWindow * >(argp2);
40648 if (obj2) {
40649 ecode3 = SWIG_AsVal_int(obj2, &val3);
40650 if (!SWIG_IsOK(ecode3)) {
40651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40652 }
40653 arg3 = static_cast< int >(val3);
40654 }
40655 if (obj3) {
40656 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40657 if (!SWIG_IsOK(res4)) {
40658 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40659 }
40660 if (!argp4) {
40661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40662 }
40663 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40664 }
40665 if (obj4) {
40666 {
40667 arg5 = &temp5;
40668 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
40669 }
40670 }
40671 if (obj5) {
40672 {
40673 arg6 = &temp6;
40674 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
40675 }
40676 }
40677 if (obj6) {
40678 ecode7 = SWIG_AsVal_long(obj6, &val7);
40679 if (!SWIG_IsOK(ecode7)) {
40680 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40681 }
40682 arg7 = static_cast< long >(val7);
40683 }
40684 if (obj7) {
40685 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40686 if (!SWIG_IsOK(res8)) {
40687 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40688 }
40689 if (!argp8) {
40690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40691 }
40692 arg8 = reinterpret_cast< wxValidator * >(argp8);
40693 }
40694 if (obj8) {
40695 {
40696 arg9 = wxString_in_helper(obj8);
40697 if (arg9 == NULL) SWIG_fail;
40698 temp9 = true;
40699 }
40700 }
40701 {
40702 PyThreadState* __tstate = wxPyBeginAllowThreads();
40703 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40704 wxPyEndAllowThreads(__tstate);
40705 if (PyErr_Occurred()) SWIG_fail;
40706 }
40707 {
40708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40709 }
40710 {
40711 if (temp9)
40712 delete arg9;
40713 }
40714 return resultobj;
40715 fail:
40716 {
40717 if (temp9)
40718 delete arg9;
40719 }
40720 return NULL;
40721 }
40722
40723
40724 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40725 PyObject *resultobj = 0;
40726 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40727 wxDateTime *arg2 = 0 ;
40728 void *argp1 = 0 ;
40729 int res1 = 0 ;
40730 void *argp2 = 0 ;
40731 int res2 = 0 ;
40732 PyObject * obj0 = 0 ;
40733 PyObject * obj1 = 0 ;
40734 char * kwnames[] = {
40735 (char *) "self",(char *) "dt", NULL
40736 };
40737
40738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40740 if (!SWIG_IsOK(res1)) {
40741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40742 }
40743 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40744 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40745 if (!SWIG_IsOK(res2)) {
40746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40747 }
40748 if (!argp2) {
40749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40750 }
40751 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40752 {
40753 PyThreadState* __tstate = wxPyBeginAllowThreads();
40754 (arg1)->SetValue((wxDateTime const &)*arg2);
40755 wxPyEndAllowThreads(__tstate);
40756 if (PyErr_Occurred()) SWIG_fail;
40757 }
40758 resultobj = SWIG_Py_Void();
40759 return resultobj;
40760 fail:
40761 return NULL;
40762 }
40763
40764
40765 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40766 PyObject *resultobj = 0;
40767 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40768 wxDateTime result;
40769 void *argp1 = 0 ;
40770 int res1 = 0 ;
40771 PyObject *swig_obj[1] ;
40772
40773 if (!args) SWIG_fail;
40774 swig_obj[0] = args;
40775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40776 if (!SWIG_IsOK(res1)) {
40777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40778 }
40779 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40780 {
40781 PyThreadState* __tstate = wxPyBeginAllowThreads();
40782 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40783 wxPyEndAllowThreads(__tstate);
40784 if (PyErr_Occurred()) SWIG_fail;
40785 }
40786 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40787 return resultobj;
40788 fail:
40789 return NULL;
40790 }
40791
40792
40793 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40794 PyObject *resultobj = 0;
40795 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40796 wxDateTime *arg2 = 0 ;
40797 wxDateTime *arg3 = 0 ;
40798 void *argp1 = 0 ;
40799 int res1 = 0 ;
40800 void *argp2 = 0 ;
40801 int res2 = 0 ;
40802 void *argp3 = 0 ;
40803 int res3 = 0 ;
40804 PyObject * obj0 = 0 ;
40805 PyObject * obj1 = 0 ;
40806 PyObject * obj2 = 0 ;
40807 char * kwnames[] = {
40808 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40809 };
40810
40811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40813 if (!SWIG_IsOK(res1)) {
40814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40815 }
40816 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40817 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40818 if (!SWIG_IsOK(res2)) {
40819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40820 }
40821 if (!argp2) {
40822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40823 }
40824 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40825 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40826 if (!SWIG_IsOK(res3)) {
40827 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40828 }
40829 if (!argp3) {
40830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40831 }
40832 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40833 {
40834 PyThreadState* __tstate = wxPyBeginAllowThreads();
40835 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
40836 wxPyEndAllowThreads(__tstate);
40837 if (PyErr_Occurred()) SWIG_fail;
40838 }
40839 resultobj = SWIG_Py_Void();
40840 return resultobj;
40841 fail:
40842 return NULL;
40843 }
40844
40845
40846 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40847 PyObject *resultobj = 0;
40848 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40849 wxDateTime result;
40850 void *argp1 = 0 ;
40851 int res1 = 0 ;
40852 PyObject *swig_obj[1] ;
40853
40854 if (!args) SWIG_fail;
40855 swig_obj[0] = args;
40856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40857 if (!SWIG_IsOK(res1)) {
40858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40859 }
40860 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40861 {
40862 PyThreadState* __tstate = wxPyBeginAllowThreads();
40863 result = wxDatePickerCtrl_GetLowerLimit(arg1);
40864 wxPyEndAllowThreads(__tstate);
40865 if (PyErr_Occurred()) SWIG_fail;
40866 }
40867 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40868 return resultobj;
40869 fail:
40870 return NULL;
40871 }
40872
40873
40874 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40875 PyObject *resultobj = 0;
40876 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40877 wxDateTime result;
40878 void *argp1 = 0 ;
40879 int res1 = 0 ;
40880 PyObject *swig_obj[1] ;
40881
40882 if (!args) SWIG_fail;
40883 swig_obj[0] = args;
40884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40885 if (!SWIG_IsOK(res1)) {
40886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40887 }
40888 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40889 {
40890 PyThreadState* __tstate = wxPyBeginAllowThreads();
40891 result = wxDatePickerCtrl_GetUpperLimit(arg1);
40892 wxPyEndAllowThreads(__tstate);
40893 if (PyErr_Occurred()) SWIG_fail;
40894 }
40895 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40896 return resultobj;
40897 fail:
40898 return NULL;
40899 }
40900
40901
40902 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40903 PyObject *obj;
40904 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40905 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
40906 return SWIG_Py_Void();
40907 }
40908
40909 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40910 return SWIG_Python_InitShadowInstance(args);
40911 }
40912
40913 static PyMethodDef SwigMethods[] = {
40914 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
40915 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
40916 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40917 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
40918 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
40919 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40920 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
40921 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
40922 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
40923 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
40924 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40925 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
40926 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
40927 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
40928 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
40929 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
40930 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
40931 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
40932 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40933 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40934 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
40935 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
40936 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
40937 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
40938 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
40939 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
40940 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40941 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
40942 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40943 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
40944 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
40945 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40946 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
40947 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
40948 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
40949 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
40950 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40951 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
40952 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
40953 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
40954 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
40955 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40956 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
40957 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40958 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
40959 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
40960 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
40961 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
40962 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40963 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
40964 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40965 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
40966 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
40967 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
40968 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40969 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
40970 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
40971 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40972 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
40973 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
40974 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
40975 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40976 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
40977 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
40978 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
40979 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40980 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
40981 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
40982 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
40983 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
40984 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
40985 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
40986 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
40987 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
40988 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
40989 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40990 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
40991 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
40992 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
40993 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
40994 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40995 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40996 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
40997 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40998 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
40999 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
41000 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41001 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
41002 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
41003 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
41004 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41005 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
41006 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
41007 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
41008 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
41009 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41010 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41011 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
41012 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
41013 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
41014 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
41015 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41016 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
41017 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
41018 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41019 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
41020 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
41021 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
41022 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
41023 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41024 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
41025 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41026 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
41027 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
41028 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41029 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
41030 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41031 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
41032 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41033 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41034 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41035 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
41036 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
41037 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
41038 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
41039 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41040 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
41041 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
41042 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41043 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41044 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41045 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41046 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
41047 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
41048 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41049 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
41050 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
41051 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
41052 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41053 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41054 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
41055 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41056 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41057 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41058 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41059 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41060 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
41061 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
41062 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
41063 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
41064 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41065 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
41066 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
41067 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
41068 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
41069 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
41070 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41071 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
41072 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
41073 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
41074 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41075 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41076 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41077 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
41078 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
41079 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41080 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41081 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
41082 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
41083 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
41084 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
41085 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
41086 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
41087 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
41088 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
41089 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
41090 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
41091 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
41092 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
41093 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
41094 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
41095 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
41096 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
41097 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
41098 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
41099 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
41100 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
41101 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
41102 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
41103 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41104 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
41105 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41106 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
41107 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41108 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41109 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
41110 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
41111 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
41112 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
41113 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
41114 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
41115 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
41116 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
41117 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
41118 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
41119 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
41120 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
41121 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
41122 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
41123 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
41124 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
41125 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
41126 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
41127 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
41128 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
41129 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41130 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41131 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41132 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
41133 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41134 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
41135 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41136 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41137 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
41138 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
41139 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
41140 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
41141 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
41142 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
41143 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
41144 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
41145 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
41146 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
41147 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
41148 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41149 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
41150 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
41151 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
41152 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41153 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
41154 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
41155 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
41156 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41157 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41158 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
41159 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
41160 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41161 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
41162 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
41163 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
41164 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
41165 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
41166 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
41167 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
41168 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41169 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
41170 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
41171 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
41172 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
41173 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
41174 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41175 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41176 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
41177 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
41178 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
41179 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
41180 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41181 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
41182 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
41183 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
41184 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41185 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41186 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41187 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41188 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
41189 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41190 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
41191 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
41192 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41193 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
41194 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41195 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
41196 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41197 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
41198 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41199 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
41200 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
41201 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41202 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41203 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
41204 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
41205 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41206 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
41207 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41208 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
41209 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
41210 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
41211 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
41212 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41213 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41214 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
41215 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
41216 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41217 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
41218 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
41219 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41220 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41221 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
41222 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
41223 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41224 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
41225 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
41226 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
41227 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41228 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41229 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41230 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41231 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
41232 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
41233 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
41234 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
41235 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41236 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
41237 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41238 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41239 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
41240 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
41241 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
41242 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
41243 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41244 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
41245 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41246 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41247 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
41248 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
41249 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41250 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41251 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
41252 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41253 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
41254 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
41255 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
41256 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
41257 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
41258 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
41259 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
41260 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
41261 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
41262 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
41263 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
41264 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41265 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41266 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
41267 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
41268 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
41269 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
41270 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41271 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41272 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
41273 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41274 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
41275 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
41276 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
41277 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
41278 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
41279 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
41280 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41281 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41282 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41283 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41284 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
41285 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41286 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41287 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41288 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
41289 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
41290 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
41291 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
41292 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
41293 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
41294 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
41295 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
41296 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
41297 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
41298 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
41299 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
41300 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
41301 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
41302 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41303 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41304 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41305 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
41306 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41307 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
41308 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41309 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
41310 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41311 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
41312 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
41313 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
41314 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
41315 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41316 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
41317 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
41318 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
41319 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41320 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
41321 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41322 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
41323 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
41324 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41325 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
41326 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
41327 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
41328 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
41329 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41330 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
41331 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
41332 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
41333 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41334 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
41335 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
41336 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
41337 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
41338 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41339 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
41340 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
41341 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
41342 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41343 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
41344 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
41345 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
41346 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
41347 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41348 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41349 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41350 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41351 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
41352 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
41353 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
41354 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
41355 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
41356 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
41357 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41358 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
41359 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
41360 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
41361 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
41362 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41363 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
41364 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
41365 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
41366 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
41367 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41368 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
41369 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
41370 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
41371 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
41372 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
41373 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
41374 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
41375 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
41376 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
41377 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
41378 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
41379 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
41380 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
41381 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
41382 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
41383 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
41384 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
41385 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
41386 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
41387 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
41388 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
41389 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41390 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41391 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41392 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41393 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41394 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41395 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
41396 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
41397 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
41398 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41399 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
41400 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
41401 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
41402 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41403 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41404 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
41405 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
41406 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
41407 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
41408 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
41409 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
41410 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
41411 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
41412 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
41413 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
41414 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
41415 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
41416 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41417 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41418 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41419 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
41420 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
41421 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41422 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41423 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41424 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41425 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41426 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
41427 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41428 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
41429 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
41430 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
41431 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
41432 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
41433 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
41434 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
41435 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
41436 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
41437 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
41438 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
41439 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
41440 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
41441 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41442 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
41443 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
41444 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
41445 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
41446 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
41447 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
41448 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41449 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41450 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
41451 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
41452 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41453 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
41454 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41455 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41456 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41457 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
41458 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
41459 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
41460 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
41461 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
41462 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
41463 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
41464 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
41465 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
41466 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
41467 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
41468 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
41469 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
41470 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
41471 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
41472 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41473 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41474 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41475 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
41476 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
41477 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
41478 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41479 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41480 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
41481 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41482 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41483 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41484 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
41485 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
41486 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
41487 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
41488 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
41489 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
41490 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
41491 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
41492 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
41493 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
41494 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
41495 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
41496 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
41497 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
41498 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
41499 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
41500 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
41501 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
41502 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
41503 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
41504 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
41505 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
41506 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
41507 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
41508 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
41509 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
41510 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
41511 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
41512 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
41513 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
41514 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
41515 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
41516 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
41517 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
41518 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
41519 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
41520 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41521 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
41522 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
41523 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
41524 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
41525 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
41526 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
41527 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
41528 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
41529 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
41530 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
41531 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
41532 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
41533 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
41534 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
41535 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
41536 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
41537 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
41538 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
41539 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
41540 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
41541 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
41542 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
41543 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
41544 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
41545 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41546 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
41547 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
41548 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41549 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
41550 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41551 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41552 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41553 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41554 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41555 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41556 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
41557 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
41558 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
41559 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41560 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41561 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41562 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41563 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41564 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41565 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41566 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41567 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41568 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41569 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41570 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41571 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
41572 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41573 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
41574 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
41575 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
41576 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41577 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
41578 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
41579 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41580 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
41581 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41582 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41583 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41584 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41585 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41586 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
41587 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
41588 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
41589 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
41590 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
41591 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
41592 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
41593 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41594 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
41595 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
41596 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41597 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41598 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
41599 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41600 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
41601 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41602 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41603 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41604 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
41605 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41606 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
41607 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41608 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
41609 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
41610 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41611 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41612 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41613 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41614 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41615 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41616 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
41617 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
41618 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41619 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
41620 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
41621 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
41622 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
41623 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41624 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41625 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
41626 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
41627 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41628 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
41629 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41630 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41631 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41632 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
41633 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
41634 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
41635 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
41636 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
41637 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
41638 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
41639 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
41640 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
41641 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
41642 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
41643 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41644 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
41645 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
41646 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41647 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
41648 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41649 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
41650 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
41651 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
41652 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41653 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
41654 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41655 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
41656 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
41657 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
41658 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41659 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
41660 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
41661 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41662 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
41663 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41664 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
41665 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41666 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41667 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
41668 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
41669 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
41670 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41671 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
41672 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41673 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41674 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
41675 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
41676 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41677 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
41678 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41679 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
41680 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
41681 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41682 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41683 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41684 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41685 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41686 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41687 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41688 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41689 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41690 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41691 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41692 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41693 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41694 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41695 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41696 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41697 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
41698 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
41699 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41700 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41701 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41702 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41703 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41704 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41705 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41706 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
41707 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
41708 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
41709 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
41710 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
41711 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
41712 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
41713 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
41714 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
41715 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41716 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41717 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
41718 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41719 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41720 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
41721 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
41722 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41723 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
41724 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
41725 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
41726 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41727 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
41728 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
41729 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
41730 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
41731 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
41732 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
41733 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41734 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
41735 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41736 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41737 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41738 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
41739 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41740 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
41741 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41742 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41743 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
41744 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41745 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41746 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
41747 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
41748 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
41749 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41750 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
41751 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41752 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
41753 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
41754 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
41755 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
41756 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
41757 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
41758 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
41759 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
41760 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
41761 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
41762 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
41763 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
41764 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
41765 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
41766 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
41767 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
41768 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
41769 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
41770 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
41771 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
41772 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41773 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
41774 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41775 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
41776 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
41777 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
41778 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
41779 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
41780 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41781 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41782 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
41783 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41784 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
41785 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
41786 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
41787 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
41788 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
41789 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
41790 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
41791 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
41792 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
41793 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
41794 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
41795 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
41796 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41797 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
41798 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41799 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
41800 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
41801 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
41802 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
41803 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
41804 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
41805 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41806 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
41807 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41808 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
41809 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
41810 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
41811 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
41812 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
41813 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
41814 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
41815 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41816 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
41817 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41818 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41819 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41820 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
41821 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41822 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
41823 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
41824 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
41825 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
41826 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
41827 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
41828 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41829 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
41830 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
41831 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
41832 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
41833 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41834 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
41835 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
41836 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
41837 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
41838 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
41839 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
41840 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
41841 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41842 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41843 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41844 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
41845 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
41846 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41847 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
41848 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41849 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41850 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
41851 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41852 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
41853 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
41854 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
41855 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
41856 { NULL, NULL, 0, NULL }
41857 };
41858
41859
41860 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41861
41862 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41863 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41864 }
41865 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41866 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41867 }
41868 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41869 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41870 }
41871 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41872 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41873 }
41874 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41875 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41876 }
41877 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
41878 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
41879 }
41880 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
41881 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
41882 }
41883 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41884 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41885 }
41886 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41887 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41888 }
41889 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41890 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41891 }
41892 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
41893 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
41894 }
41895 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41896 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41897 }
41898 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41899 return (void *)((wxEvent *) ((wxPyEvent *) x));
41900 }
41901 static void *_p_wxListEventTo_p_wxEvent(void *x) {
41902 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
41903 }
41904 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
41905 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
41906 }
41907 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
41908 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
41909 }
41910 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
41911 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
41912 }
41913 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
41914 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
41915 }
41916 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
41917 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
41918 }
41919 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
41920 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
41921 }
41922 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41923 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41924 }
41925 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41926 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41927 }
41928 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41929 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41930 }
41931 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41932 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41933 }
41934 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41935 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41936 }
41937 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41938 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41939 }
41940 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41941 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41942 }
41943 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41944 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41945 }
41946 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
41947 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
41948 }
41949 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
41950 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
41951 }
41952 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41953 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41954 }
41955 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41956 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41957 }
41958 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41959 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41960 }
41961 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41962 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41963 }
41964 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41965 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41966 }
41967 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41968 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41969 }
41970 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41971 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41972 }
41973 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41974 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41975 }
41976 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41977 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41978 }
41979 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41980 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41981 }
41982 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41983 return (void *)((wxEvent *) ((wxShowEvent *) x));
41984 }
41985 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41986 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41987 }
41988 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41989 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41990 }
41991 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41992 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41993 }
41994 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41995 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41996 }
41997 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41998 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41999 }
42000 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
42001 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
42002 }
42003 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
42004 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42005 }
42006 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
42007 return (void *)((wxItemContainer *) ((wxComboBox *) x));
42008 }
42009 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
42010 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42011 }
42012 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
42013 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
42014 }
42015 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
42016 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
42017 }
42018 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
42019 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
42020 }
42021 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
42022 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42023 }
42024 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
42025 return (void *)((wxPyListCtrl *) ((wxListView *) x));
42026 }
42027 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
42028 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
42029 }
42030 static void *_p_wxToolBarTo_p_wxControl(void *x) {
42031 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
42032 }
42033 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
42034 return (void *)((wxControl *) ((wxToggleButton *) x));
42035 }
42036 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
42037 return (void *)((wxControl *) ((wxRadioButton *) x));
42038 }
42039 static void *_p_wxToolbookTo_p_wxControl(void *x) {
42040 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
42041 }
42042 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
42043 return (void *)((wxControl *) ((wxToolBarBase *) x));
42044 }
42045 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
42046 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42047 }
42048 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
42049 return (void *)((wxControl *) ((wxPyListCtrl *) x));
42050 }
42051 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
42052 return (void *)((wxControl *) ((wxComboBox *) x));
42053 }
42054 static void *_p_wxPyControlTo_p_wxControl(void *x) {
42055 return (void *)((wxControl *) ((wxPyControl *) x));
42056 }
42057 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
42058 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
42059 }
42060 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
42061 return (void *)((wxControl *) ((wxScrollBar *) x));
42062 }
42063 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
42064 return (void *)((wxControl *) ((wxControlWithItems *) x));
42065 }
42066 static void *_p_wxGaugeTo_p_wxControl(void *x) {
42067 return (void *)((wxControl *) ((wxGauge *) x));
42068 }
42069 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
42070 return (void *)((wxControl *) ((wxStaticLine *) x));
42071 }
42072 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
42073 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
42074 }
42075 static void *_p_wxListbookTo_p_wxControl(void *x) {
42076 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
42077 }
42078 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
42079 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
42080 }
42081 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
42082 return (void *)((wxControl *) ((wxCheckBox *) x));
42083 }
42084 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
42085 return (void *)((wxControl *) ((wxRadioBox *) x));
42086 }
42087 static void *_p_wxChoiceTo_p_wxControl(void *x) {
42088 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
42089 }
42090 static void *_p_wxListBoxTo_p_wxControl(void *x) {
42091 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
42092 }
42093 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
42094 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42095 }
42096 static void *_p_wxListViewTo_p_wxControl(void *x) {
42097 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
42098 }
42099 static void *_p_wxNotebookTo_p_wxControl(void *x) {
42100 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
42101 }
42102 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
42103 return (void *)((wxControl *) ((wxStaticBitmap *) x));
42104 }
42105 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
42106 return (void *)((wxControl *) ((wxSpinCtrl *) x));
42107 }
42108 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
42109 return (void *)((wxControl *) ((wxStaticText *) x));
42110 }
42111 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
42112 return (void *)((wxControl *) ((wxStaticBox *) x));
42113 }
42114 static void *_p_wxSliderTo_p_wxControl(void *x) {
42115 return (void *)((wxControl *) ((wxSlider *) x));
42116 }
42117 static void *_p_wxTreebookTo_p_wxControl(void *x) {
42118 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
42119 }
42120 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
42121 return (void *)((wxControl *) ((wxSpinButton *) x));
42122 }
42123 static void *_p_wxButtonTo_p_wxControl(void *x) {
42124 return (void *)((wxControl *) ((wxButton *) x));
42125 }
42126 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
42127 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
42128 }
42129 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
42130 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42131 }
42132 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
42133 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
42134 }
42135 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
42136 return (void *)((wxControl *) ((wxTextCtrl *) x));
42137 }
42138 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
42139 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
42140 }
42141 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
42142 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
42143 }
42144 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
42145 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42146 }
42147 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
42148 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
42149 }
42150 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
42151 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
42152 }
42153 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
42154 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
42155 }
42156 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
42157 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42158 }
42159 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
42160 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42161 }
42162 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
42163 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42164 }
42165 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
42166 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42167 }
42168 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
42169 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42170 }
42171 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
42172 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
42173 }
42174 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
42175 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
42176 }
42177 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
42178 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
42179 }
42180 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
42181 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
42182 }
42183 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
42184 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
42185 }
42186 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
42187 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
42188 }
42189 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
42190 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42191 }
42192 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
42193 return (void *)((wxEvtHandler *) ((wxValidator *) x));
42194 }
42195 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
42196 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
42197 }
42198 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
42199 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42200 }
42201 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
42202 return (void *)((wxEvtHandler *) ((wxMenu *) x));
42203 }
42204 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
42205 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
42206 }
42207 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
42208 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
42209 }
42210 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
42211 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42212 }
42213 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
42214 return (void *)((wxEvtHandler *) ((wxWindow *) x));
42215 }
42216 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
42217 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
42218 }
42219 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
42220 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
42221 }
42222 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
42223 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42224 }
42225 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
42226 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42227 }
42228 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
42229 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42230 }
42231 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
42232 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
42233 }
42234 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
42235 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
42236 }
42237 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
42238 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42239 }
42240 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
42241 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
42242 }
42243 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
42244 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42245 }
42246 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
42247 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
42248 }
42249 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
42250 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
42251 }
42252 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
42253 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42254 }
42255 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
42256 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42257 }
42258 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
42259 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42260 }
42261 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
42262 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
42263 }
42264 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
42265 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
42266 }
42267 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
42268 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42269 }
42270 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
42271 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42272 }
42273 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
42274 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42275 }
42276 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
42277 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42278 }
42279 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
42280 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42281 }
42282 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
42283 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42284 }
42285 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
42286 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42287 }
42288 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
42289 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
42290 }
42291 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
42292 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
42293 }
42294 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
42295 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
42296 }
42297 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
42298 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42299 }
42300 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
42301 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
42302 }
42303 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
42304 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
42305 }
42306 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
42307 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42308 }
42309 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
42310 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42311 }
42312 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
42313 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42314 }
42315 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
42316 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42317 }
42318 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
42319 return (void *)((wxListBox *) ((wxCheckListBox *) x));
42320 }
42321 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
42322 return (void *)((wxButton *) ((wxBitmapButton *) x));
42323 }
42324 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
42325 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
42326 }
42327 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
42328 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
42329 }
42330 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
42331 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
42332 }
42333 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42334 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42335 }
42336 static void *_p_wxToolbookTo_p_wxObject(void *x) {
42337 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42338 }
42339 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42340 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42341 }
42342 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42343 return (void *)((wxObject *) ((wxSizerItem *) x));
42344 }
42345 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
42346 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
42347 }
42348 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
42349 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
42350 }
42351 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
42352 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
42353 }
42354 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
42355 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
42356 }
42357 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
42358 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
42359 }
42360 static void *_p_wxSizerTo_p_wxObject(void *x) {
42361 return (void *)((wxObject *) ((wxSizer *) x));
42362 }
42363 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42364 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42365 }
42366 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
42367 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
42368 }
42369 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
42370 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42371 }
42372 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42373 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42374 }
42375 static void *_p_wxEventTo_p_wxObject(void *x) {
42376 return (void *)((wxObject *) ((wxEvent *) x));
42377 }
42378 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
42379 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
42380 }
42381 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
42382 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
42383 }
42384 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
42385 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
42386 }
42387 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
42388 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42389 }
42390 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
42391 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42392 }
42393 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
42394 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42395 }
42396 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
42397 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
42398 }
42399 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42400 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42401 }
42402 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42403 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42404 }
42405 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42406 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42407 }
42408 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42409 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42410 }
42411 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42412 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42413 }
42414 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42415 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42416 }
42417 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
42418 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
42419 }
42420 static void *_p_wxControlTo_p_wxObject(void *x) {
42421 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
42422 }
42423 static void *_p_wxPyControlTo_p_wxObject(void *x) {
42424 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
42425 }
42426 static void *_p_wxGaugeTo_p_wxObject(void *x) {
42427 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
42428 }
42429 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
42430 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
42431 }
42432 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
42433 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
42434 }
42435 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
42436 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42437 }
42438 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42439 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42440 }
42441 static void *_p_wxChoiceTo_p_wxObject(void *x) {
42442 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42443 }
42444 static void *_p_wxFSFileTo_p_wxObject(void *x) {
42445 return (void *)((wxObject *) ((wxFSFile *) x));
42446 }
42447 static void *_p_wxPySizerTo_p_wxObject(void *x) {
42448 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42449 }
42450 static void *_p_wxTreebookTo_p_wxObject(void *x) {
42451 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42452 }
42453 static void *_p_wxListViewTo_p_wxObject(void *x) {
42454 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42455 }
42456 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
42457 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42458 }
42459 static void *_p_wxNotebookTo_p_wxObject(void *x) {
42460 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42461 }
42462 static void *_p_wxPyEventTo_p_wxObject(void *x) {
42463 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42464 }
42465 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42466 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42467 }
42468 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
42469 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42470 }
42471 static void *_p_wxListbookTo_p_wxObject(void *x) {
42472 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42473 }
42474 static void *_p_wxShowEventTo_p_wxObject(void *x) {
42475 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42476 }
42477 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
42478 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42479 }
42480 static void *_p_wxSliderTo_p_wxObject(void *x) {
42481 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
42482 }
42483 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42484 return (void *)((wxObject *) ((wxMenuItem *) x));
42485 }
42486 static void *_p_wxDateEventTo_p_wxObject(void *x) {
42487 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
42488 }
42489 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42490 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42491 }
42492 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42493 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42494 }
42495 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42496 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42497 }
42498 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42499 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42500 }
42501 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42502 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42503 }
42504 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42505 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42506 }
42507 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42508 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42509 }
42510 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42511 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42512 }
42513 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
42514 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
42515 }
42516 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
42517 return (void *)((wxObject *) ((wxContextHelp *) x));
42518 }
42519 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
42520 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42521 }
42522 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42523 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42524 }
42525 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42526 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42527 }
42528 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42529 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42530 }
42531 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42532 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42533 }
42534 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42535 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42536 }
42537 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42538 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42539 }
42540 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42541 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42542 }
42543 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42544 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42545 }
42546 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42547 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42548 }
42549 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
42550 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
42551 }
42552 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42553 return (void *)((wxObject *) ((wxImageHandler *) x));
42554 }
42555 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42556 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42557 }
42558 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42559 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42560 }
42561 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42562 return (void *)((wxObject *) ((wxEvtHandler *) x));
42563 }
42564 static void *_p_wxListEventTo_p_wxObject(void *x) {
42565 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42566 }
42567 static void *_p_wxListBoxTo_p_wxObject(void *x) {
42568 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42569 }
42570 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
42571 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42572 }
42573 static void *_p_wxButtonTo_p_wxObject(void *x) {
42574 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
42575 }
42576 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
42577 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42578 }
42579 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
42580 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
42581 }
42582 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
42583 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42584 }
42585 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
42586 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
42587 }
42588 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42589 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42590 }
42591 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
42592 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
42593 }
42594 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
42595 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
42596 }
42597 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
42598 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
42599 }
42600 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
42601 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
42602 }
42603 static void *_p_wxListItemTo_p_wxObject(void *x) {
42604 return (void *)((wxObject *) ((wxListItem *) x));
42605 }
42606 static void *_p_wxImageTo_p_wxObject(void *x) {
42607 return (void *)((wxObject *) ((wxImage *) x));
42608 }
42609 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42610 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42611 }
42612 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
42613 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42614 }
42615 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
42616 return (void *)((wxObject *) ((wxGenericDragImage *) x));
42617 }
42618 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
42619 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42620 }
42621 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
42622 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42623 }
42624 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
42625 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42626 }
42627 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
42628 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42629 }
42630 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
42631 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42632 }
42633 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
42634 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42635 }
42636 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42637 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42638 }
42639 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42640 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42641 }
42642 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42643 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42644 }
42645 static void *_p_wxWindowTo_p_wxObject(void *x) {
42646 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42647 }
42648 static void *_p_wxMenuTo_p_wxObject(void *x) {
42649 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42650 }
42651 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42652 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42653 }
42654 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42655 return (void *)((wxObject *) ((wxFileSystem *) x));
42656 }
42657 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42658 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42659 }
42660 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42661 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42662 }
42663 static void *_p_wxPyAppTo_p_wxObject(void *x) {
42664 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42665 }
42666 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42667 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42668 }
42669 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42670 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42671 }
42672 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42673 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42674 }
42675 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
42676 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42677 }
42678 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
42679 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42680 }
42681 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42682 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42683 }
42684 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42685 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42686 }
42687 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
42688 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
42689 }
42690 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42691 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42692 }
42693 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42694 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42695 }
42696 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42697 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42698 }
42699 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
42700 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42701 }
42702 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42703 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42704 }
42705 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
42706 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
42707 }
42708 static void *_p_wxToolBarTo_p_wxObject(void *x) {
42709 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42710 }
42711 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42712 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42713 }
42714 static void *_p_wxValidatorTo_p_wxObject(void *x) {
42715 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42716 }
42717 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42718 return (void *)((wxWindow *) ((wxMenuBar *) x));
42719 }
42720 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
42721 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
42722 }
42723 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
42724 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42725 }
42726 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
42727 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
42728 }
42729 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
42730 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
42731 }
42732 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
42733 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42734 }
42735 static void *_p_wxControlTo_p_wxWindow(void *x) {
42736 return (void *)((wxWindow *) ((wxControl *) x));
42737 }
42738 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
42739 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
42740 }
42741 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
42742 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
42743 }
42744 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
42745 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
42746 }
42747 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
42748 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42749 }
42750 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
42751 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
42752 }
42753 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
42754 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
42755 }
42756 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
42757 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
42758 }
42759 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42760 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42761 }
42762 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
42763 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
42764 }
42765 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
42766 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
42767 }
42768 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
42769 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42770 }
42771 static void *_p_wxListbookTo_p_wxWindow(void *x) {
42772 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42773 }
42774 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
42775 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
42776 }
42777 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
42778 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
42779 }
42780 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
42781 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
42782 }
42783 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
42784 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42785 }
42786 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
42787 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42788 }
42789 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
42790 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42791 }
42792 static void *_p_wxListViewTo_p_wxWindow(void *x) {
42793 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42794 }
42795 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
42796 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42797 }
42798 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
42799 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
42800 }
42801 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
42802 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
42803 }
42804 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
42805 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
42806 }
42807 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
42808 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
42809 }
42810 static void *_p_wxSliderTo_p_wxWindow(void *x) {
42811 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
42812 }
42813 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
42814 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42815 }
42816 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
42817 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
42818 }
42819 static void *_p_wxButtonTo_p_wxWindow(void *x) {
42820 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
42821 }
42822 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
42823 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
42824 }
42825 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
42826 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42827 }
42828 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
42829 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
42830 }
42831 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
42832 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
42833 }
42834 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42835 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42836 }
42837 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42838 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42839 }
42840 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42841 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42842 }
42843 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42844 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42845 }
42846 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42847 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42848 }
42849 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42850 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42851 }
42852 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
42853 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
42854 }
42855 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
42856 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
42857 }
42858 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42859 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42860 }
42861 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42862 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42863 }
42864 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42865 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42866 }
42867 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42868 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42869 }
42870 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
42871 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42872 }
42873 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
42874 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42875 }
42876 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
42877 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42878 }
42879 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
42880 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42881 }
42882 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
42883 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42884 }
42885 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
42886 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
42887 }
42888 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42889 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42890 }
42891 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
42892 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
42893 }
42894 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
42895 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42896 }
42897 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
42898 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
42899 }
42900 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
42901 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
42902 }
42903 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
42904 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
42905 }
42906 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42907 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42908 }
42909 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42910 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42911 }
42912 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
42913 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
42914 }
42915 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
42916 return (void *)((wxControlWithItems *) ((wxChoice *) x));
42917 }
42918 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
42919 return (void *)((wxControlWithItems *) ((wxListBox *) x));
42920 }
42921 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
42922 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
42923 }
42924 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42925 return (void *)((wxValidator *) ((wxPyValidator *) x));
42926 }
42927 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
42928 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
42929 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};
42930 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
42931 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
42932 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
42933 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
42934 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
42935 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
42936 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
42937 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
42938 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
42939 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
42940 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
42941 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
42942 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
42943 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
42944 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
42945 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
42946 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
42947 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
42948 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
42949 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
42950 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
42951 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
42952 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
42953 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
42954 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
42955 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
42956 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
42957 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
42958 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
42959 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
42960 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
42961 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
42962 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
42963 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
42964 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
42965 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
42966 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
42967 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
42968 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
42969 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
42970 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
42971 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
42972 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
42973 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
42974 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
42975 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
42976 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
42977 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
42978 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
42979 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
42980 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
42981 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
42982 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
42983 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
42984 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
42985 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
42986 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
42987 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
42988 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
42989 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
42990 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
42991 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
42992 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
42993 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
42994 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
42995 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
42996 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
42997 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
42998 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
42999 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
43000 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
43001 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
43002 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
43003 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
43004 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
43005 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
43006 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
43007 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
43008 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
43009 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
43010 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
43011 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
43012 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
43013 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
43014 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
43015 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
43016 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
43017 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
43018 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
43019 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
43020 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
43021 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
43022 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
43023 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
43024 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
43025 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
43026 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
43027 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
43028 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
43029 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
43030 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
43031 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
43032 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
43033 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
43034 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
43035 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
43036 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
43037 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
43038 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
43039 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
43040 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
43041 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
43042 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
43043 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
43044 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
43045 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
43046 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
43047 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
43048 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
43049 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
43050 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
43051 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
43052 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
43053 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
43054 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
43055 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
43056 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
43057 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
43058 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
43059 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
43060 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
43061 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
43062 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
43063 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
43064 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
43065 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
43066 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
43067 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
43068 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
43069 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
43070 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
43071 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
43072 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
43073 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
43074 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
43075 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
43076 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
43077 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
43078 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
43079 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
43080 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
43081 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
43082 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
43083 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
43084 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
43085 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
43086 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
43087 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
43088 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
43089 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
43090 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
43091
43092 static swig_type_info *swig_type_initial[] = {
43093 &_swigt__p_bool,
43094 &_swigt__p_char,
43095 &_swigt__p_form_ops_t,
43096 &_swigt__p_int,
43097 &_swigt__p_long,
43098 &_swigt__p_unsigned_char,
43099 &_swigt__p_unsigned_int,
43100 &_swigt__p_unsigned_long,
43101 &_swigt__p_void,
43102 &_swigt__p_wxANIHandler,
43103 &_swigt__p_wxAcceleratorTable,
43104 &_swigt__p_wxActivateEvent,
43105 &_swigt__p_wxArrayInt,
43106 &_swigt__p_wxArrayString,
43107 &_swigt__p_wxBMPHandler,
43108 &_swigt__p_wxBitmap,
43109 &_swigt__p_wxBitmapButton,
43110 &_swigt__p_wxBookCtrlBase,
43111 &_swigt__p_wxBookCtrlBaseEvent,
43112 &_swigt__p_wxBoxSizer,
43113 &_swigt__p_wxButton,
43114 &_swigt__p_wxCURHandler,
43115 &_swigt__p_wxCheckBox,
43116 &_swigt__p_wxCheckListBox,
43117 &_swigt__p_wxChildFocusEvent,
43118 &_swigt__p_wxChoice,
43119 &_swigt__p_wxChoicebook,
43120 &_swigt__p_wxChoicebookEvent,
43121 &_swigt__p_wxClipboardTextEvent,
43122 &_swigt__p_wxCloseEvent,
43123 &_swigt__p_wxColour,
43124 &_swigt__p_wxComboBox,
43125 &_swigt__p_wxCommandEvent,
43126 &_swigt__p_wxContextHelp,
43127 &_swigt__p_wxContextHelpButton,
43128 &_swigt__p_wxContextMenuEvent,
43129 &_swigt__p_wxControl,
43130 &_swigt__p_wxControlWithItems,
43131 &_swigt__p_wxCursor,
43132 &_swigt__p_wxDC,
43133 &_swigt__p_wxDateEvent,
43134 &_swigt__p_wxDatePickerCtrl,
43135 &_swigt__p_wxDateTime,
43136 &_swigt__p_wxDirFilterListCtrl,
43137 &_swigt__p_wxDisplayChangedEvent,
43138 &_swigt__p_wxDropFilesEvent,
43139 &_swigt__p_wxDuplexMode,
43140 &_swigt__p_wxEraseEvent,
43141 &_swigt__p_wxEvent,
43142 &_swigt__p_wxEvtHandler,
43143 &_swigt__p_wxFSFile,
43144 &_swigt__p_wxFileSystem,
43145 &_swigt__p_wxFlexGridSizer,
43146 &_swigt__p_wxFocusEvent,
43147 &_swigt__p_wxFont,
43148 &_swigt__p_wxGBSizerItem,
43149 &_swigt__p_wxGIFHandler,
43150 &_swigt__p_wxGauge,
43151 &_swigt__p_wxGenericDirCtrl,
43152 &_swigt__p_wxGenericDragImage,
43153 &_swigt__p_wxGridBagSizer,
43154 &_swigt__p_wxGridSizer,
43155 &_swigt__p_wxHelpEvent,
43156 &_swigt__p_wxHelpProvider,
43157 &_swigt__p_wxICOHandler,
43158 &_swigt__p_wxIcon,
43159 &_swigt__p_wxIconizeEvent,
43160 &_swigt__p_wxIdleEvent,
43161 &_swigt__p_wxImage,
43162 &_swigt__p_wxImageHandler,
43163 &_swigt__p_wxImageList,
43164 &_swigt__p_wxIndividualLayoutConstraint,
43165 &_swigt__p_wxInitDialogEvent,
43166 &_swigt__p_wxItemContainer,
43167 &_swigt__p_wxJPEGHandler,
43168 &_swigt__p_wxKeyEvent,
43169 &_swigt__p_wxLayoutConstraints,
43170 &_swigt__p_wxListBox,
43171 &_swigt__p_wxListEvent,
43172 &_swigt__p_wxListItem,
43173 &_swigt__p_wxListItemAttr,
43174 &_swigt__p_wxListView,
43175 &_swigt__p_wxListbook,
43176 &_swigt__p_wxListbookEvent,
43177 &_swigt__p_wxMaximizeEvent,
43178 &_swigt__p_wxMemoryDC,
43179 &_swigt__p_wxMenu,
43180 &_swigt__p_wxMenuBar,
43181 &_swigt__p_wxMenuEvent,
43182 &_swigt__p_wxMenuItem,
43183 &_swigt__p_wxMouseCaptureChangedEvent,
43184 &_swigt__p_wxMouseEvent,
43185 &_swigt__p_wxMoveEvent,
43186 &_swigt__p_wxNavigationKeyEvent,
43187 &_swigt__p_wxNcPaintEvent,
43188 &_swigt__p_wxNotebook,
43189 &_swigt__p_wxNotebookEvent,
43190 &_swigt__p_wxNotifyEvent,
43191 &_swigt__p_wxObject,
43192 &_swigt__p_wxPCXHandler,
43193 &_swigt__p_wxPNGHandler,
43194 &_swigt__p_wxPNMHandler,
43195 &_swigt__p_wxPaintEvent,
43196 &_swigt__p_wxPaletteChangedEvent,
43197 &_swigt__p_wxPaperSize,
43198 &_swigt__p_wxPoint,
43199 &_swigt__p_wxPyApp,
43200 &_swigt__p_wxPyCommandEvent,
43201 &_swigt__p_wxPyControl,
43202 &_swigt__p_wxPyEvent,
43203 &_swigt__p_wxPyImageHandler,
43204 &_swigt__p_wxPyListCtrl,
43205 &_swigt__p_wxPySizer,
43206 &_swigt__p_wxPyTreeCtrl,
43207 &_swigt__p_wxPyTreeItemData,
43208 &_swigt__p_wxPyValidator,
43209 &_swigt__p_wxQueryNewPaletteEvent,
43210 &_swigt__p_wxRadioBox,
43211 &_swigt__p_wxRadioButton,
43212 &_swigt__p_wxRect,
43213 &_swigt__p_wxScrollBar,
43214 &_swigt__p_wxScrollEvent,
43215 &_swigt__p_wxScrollWinEvent,
43216 &_swigt__p_wxSetCursorEvent,
43217 &_swigt__p_wxShowEvent,
43218 &_swigt__p_wxSimpleHelpProvider,
43219 &_swigt__p_wxSize,
43220 &_swigt__p_wxSizeEvent,
43221 &_swigt__p_wxSizer,
43222 &_swigt__p_wxSizerItem,
43223 &_swigt__p_wxSlider,
43224 &_swigt__p_wxSpinButton,
43225 &_swigt__p_wxSpinCtrl,
43226 &_swigt__p_wxSpinEvent,
43227 &_swigt__p_wxStaticBitmap,
43228 &_swigt__p_wxStaticBox,
43229 &_swigt__p_wxStaticBoxSizer,
43230 &_swigt__p_wxStaticLine,
43231 &_swigt__p_wxStaticText,
43232 &_swigt__p_wxStdDialogButtonSizer,
43233 &_swigt__p_wxString,
43234 &_swigt__p_wxSysColourChangedEvent,
43235 &_swigt__p_wxTIFFHandler,
43236 &_swigt__p_wxTextAttr,
43237 &_swigt__p_wxTextCtrl,
43238 &_swigt__p_wxTextUrlEvent,
43239 &_swigt__p_wxToggleButton,
43240 &_swigt__p_wxToolBar,
43241 &_swigt__p_wxToolBarBase,
43242 &_swigt__p_wxToolBarToolBase,
43243 &_swigt__p_wxToolbook,
43244 &_swigt__p_wxToolbookEvent,
43245 &_swigt__p_wxTreeCtrl,
43246 &_swigt__p_wxTreeEvent,
43247 &_swigt__p_wxTreeItemId,
43248 &_swigt__p_wxTreebook,
43249 &_swigt__p_wxTreebookEvent,
43250 &_swigt__p_wxUpdateUIEvent,
43251 &_swigt__p_wxValidator,
43252 &_swigt__p_wxVisualAttributes,
43253 &_swigt__p_wxWindow,
43254 &_swigt__p_wxWindowCreateEvent,
43255 &_swigt__p_wxWindowDestroyEvent,
43256 &_swigt__p_wxXPMHandler,
43257 };
43258
43259 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
43260 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
43261 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
43262 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
43263 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
43264 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
43265 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
43266 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
43267 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
43268 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
43269 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
43270 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
43271 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}};
43272 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}};
43273 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}};
43274 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}};
43275 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
43276 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
43277 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
43278 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
43279 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43280 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
43281 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
43282 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
43283 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
43284 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
43285 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
43286 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43287 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43288 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
43289 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
43290 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
43291 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_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}};
43292 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
43293 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
43294 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_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_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_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_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_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}};
43295 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
43296 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
43297 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
43298 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
43299 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
43300 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
43301 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
43302 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43303 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
43304 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
43305 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
43306 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
43307 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
43308 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
43309 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
43310 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43311 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43312 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
43313 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43314 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
43315 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43316 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43317 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43318 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43319 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43320 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43321 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
43322 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43323 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
43324 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43325 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
43326 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_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_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_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_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}};
43327 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
43328 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
43329 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
43330 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
43331 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_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_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_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_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_wxSpinButton, _p_wxSpinButtonTo_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}};
43332 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
43333 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
43334 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
43335 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
43336 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
43337 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}};
43338 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
43339 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
43340 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}};
43341 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43342 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}};
43343 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
43344 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
43345 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
43346 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
43347 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
43348 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43349 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
43350 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
43351 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
43352 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43353 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}};
43354 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
43355 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43356 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43357 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
43358 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43359 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43360 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
43361 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
43362 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43363 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43364 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
43365 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
43366 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
43367 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43368 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
43369 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
43370 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
43371 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
43372 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
43373 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
43374 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
43375 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
43376 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
43377 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43378 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
43379 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
43380 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
43381 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
43382 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
43383 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
43384 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_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_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_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_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_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_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_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_wxSpinButton, _p_wxSpinButtonTo_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_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_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}};
43385 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
43386 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
43387 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
43388 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}};
43389 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43390 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
43391 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
43392 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
43393 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
43394 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
43395 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
43396 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
43397 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
43398 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
43399 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
43400 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
43401 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
43402 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
43403 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
43404 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
43405 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
43406 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
43407 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
43408 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
43409 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
43410 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
43411 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}};
43412 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
43413 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
43414 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43415 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43416 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
43417 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
43418 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
43419 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43420 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}};
43421 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
43422 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_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_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_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_wxSpinButton, _p_wxSpinButtonTo_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}};
43423
43424 static swig_cast_info *swig_cast_initial[] = {
43425 _swigc__p_bool,
43426 _swigc__p_char,
43427 _swigc__p_form_ops_t,
43428 _swigc__p_int,
43429 _swigc__p_long,
43430 _swigc__p_unsigned_char,
43431 _swigc__p_unsigned_int,
43432 _swigc__p_unsigned_long,
43433 _swigc__p_void,
43434 _swigc__p_wxANIHandler,
43435 _swigc__p_wxAcceleratorTable,
43436 _swigc__p_wxActivateEvent,
43437 _swigc__p_wxArrayInt,
43438 _swigc__p_wxArrayString,
43439 _swigc__p_wxBMPHandler,
43440 _swigc__p_wxBitmap,
43441 _swigc__p_wxBitmapButton,
43442 _swigc__p_wxBookCtrlBase,
43443 _swigc__p_wxBookCtrlBaseEvent,
43444 _swigc__p_wxBoxSizer,
43445 _swigc__p_wxButton,
43446 _swigc__p_wxCURHandler,
43447 _swigc__p_wxCheckBox,
43448 _swigc__p_wxCheckListBox,
43449 _swigc__p_wxChildFocusEvent,
43450 _swigc__p_wxChoice,
43451 _swigc__p_wxChoicebook,
43452 _swigc__p_wxChoicebookEvent,
43453 _swigc__p_wxClipboardTextEvent,
43454 _swigc__p_wxCloseEvent,
43455 _swigc__p_wxColour,
43456 _swigc__p_wxComboBox,
43457 _swigc__p_wxCommandEvent,
43458 _swigc__p_wxContextHelp,
43459 _swigc__p_wxContextHelpButton,
43460 _swigc__p_wxContextMenuEvent,
43461 _swigc__p_wxControl,
43462 _swigc__p_wxControlWithItems,
43463 _swigc__p_wxCursor,
43464 _swigc__p_wxDC,
43465 _swigc__p_wxDateEvent,
43466 _swigc__p_wxDatePickerCtrl,
43467 _swigc__p_wxDateTime,
43468 _swigc__p_wxDirFilterListCtrl,
43469 _swigc__p_wxDisplayChangedEvent,
43470 _swigc__p_wxDropFilesEvent,
43471 _swigc__p_wxDuplexMode,
43472 _swigc__p_wxEraseEvent,
43473 _swigc__p_wxEvent,
43474 _swigc__p_wxEvtHandler,
43475 _swigc__p_wxFSFile,
43476 _swigc__p_wxFileSystem,
43477 _swigc__p_wxFlexGridSizer,
43478 _swigc__p_wxFocusEvent,
43479 _swigc__p_wxFont,
43480 _swigc__p_wxGBSizerItem,
43481 _swigc__p_wxGIFHandler,
43482 _swigc__p_wxGauge,
43483 _swigc__p_wxGenericDirCtrl,
43484 _swigc__p_wxGenericDragImage,
43485 _swigc__p_wxGridBagSizer,
43486 _swigc__p_wxGridSizer,
43487 _swigc__p_wxHelpEvent,
43488 _swigc__p_wxHelpProvider,
43489 _swigc__p_wxICOHandler,
43490 _swigc__p_wxIcon,
43491 _swigc__p_wxIconizeEvent,
43492 _swigc__p_wxIdleEvent,
43493 _swigc__p_wxImage,
43494 _swigc__p_wxImageHandler,
43495 _swigc__p_wxImageList,
43496 _swigc__p_wxIndividualLayoutConstraint,
43497 _swigc__p_wxInitDialogEvent,
43498 _swigc__p_wxItemContainer,
43499 _swigc__p_wxJPEGHandler,
43500 _swigc__p_wxKeyEvent,
43501 _swigc__p_wxLayoutConstraints,
43502 _swigc__p_wxListBox,
43503 _swigc__p_wxListEvent,
43504 _swigc__p_wxListItem,
43505 _swigc__p_wxListItemAttr,
43506 _swigc__p_wxListView,
43507 _swigc__p_wxListbook,
43508 _swigc__p_wxListbookEvent,
43509 _swigc__p_wxMaximizeEvent,
43510 _swigc__p_wxMemoryDC,
43511 _swigc__p_wxMenu,
43512 _swigc__p_wxMenuBar,
43513 _swigc__p_wxMenuEvent,
43514 _swigc__p_wxMenuItem,
43515 _swigc__p_wxMouseCaptureChangedEvent,
43516 _swigc__p_wxMouseEvent,
43517 _swigc__p_wxMoveEvent,
43518 _swigc__p_wxNavigationKeyEvent,
43519 _swigc__p_wxNcPaintEvent,
43520 _swigc__p_wxNotebook,
43521 _swigc__p_wxNotebookEvent,
43522 _swigc__p_wxNotifyEvent,
43523 _swigc__p_wxObject,
43524 _swigc__p_wxPCXHandler,
43525 _swigc__p_wxPNGHandler,
43526 _swigc__p_wxPNMHandler,
43527 _swigc__p_wxPaintEvent,
43528 _swigc__p_wxPaletteChangedEvent,
43529 _swigc__p_wxPaperSize,
43530 _swigc__p_wxPoint,
43531 _swigc__p_wxPyApp,
43532 _swigc__p_wxPyCommandEvent,
43533 _swigc__p_wxPyControl,
43534 _swigc__p_wxPyEvent,
43535 _swigc__p_wxPyImageHandler,
43536 _swigc__p_wxPyListCtrl,
43537 _swigc__p_wxPySizer,
43538 _swigc__p_wxPyTreeCtrl,
43539 _swigc__p_wxPyTreeItemData,
43540 _swigc__p_wxPyValidator,
43541 _swigc__p_wxQueryNewPaletteEvent,
43542 _swigc__p_wxRadioBox,
43543 _swigc__p_wxRadioButton,
43544 _swigc__p_wxRect,
43545 _swigc__p_wxScrollBar,
43546 _swigc__p_wxScrollEvent,
43547 _swigc__p_wxScrollWinEvent,
43548 _swigc__p_wxSetCursorEvent,
43549 _swigc__p_wxShowEvent,
43550 _swigc__p_wxSimpleHelpProvider,
43551 _swigc__p_wxSize,
43552 _swigc__p_wxSizeEvent,
43553 _swigc__p_wxSizer,
43554 _swigc__p_wxSizerItem,
43555 _swigc__p_wxSlider,
43556 _swigc__p_wxSpinButton,
43557 _swigc__p_wxSpinCtrl,
43558 _swigc__p_wxSpinEvent,
43559 _swigc__p_wxStaticBitmap,
43560 _swigc__p_wxStaticBox,
43561 _swigc__p_wxStaticBoxSizer,
43562 _swigc__p_wxStaticLine,
43563 _swigc__p_wxStaticText,
43564 _swigc__p_wxStdDialogButtonSizer,
43565 _swigc__p_wxString,
43566 _swigc__p_wxSysColourChangedEvent,
43567 _swigc__p_wxTIFFHandler,
43568 _swigc__p_wxTextAttr,
43569 _swigc__p_wxTextCtrl,
43570 _swigc__p_wxTextUrlEvent,
43571 _swigc__p_wxToggleButton,
43572 _swigc__p_wxToolBar,
43573 _swigc__p_wxToolBarBase,
43574 _swigc__p_wxToolBarToolBase,
43575 _swigc__p_wxToolbook,
43576 _swigc__p_wxToolbookEvent,
43577 _swigc__p_wxTreeCtrl,
43578 _swigc__p_wxTreeEvent,
43579 _swigc__p_wxTreeItemId,
43580 _swigc__p_wxTreebook,
43581 _swigc__p_wxTreebookEvent,
43582 _swigc__p_wxUpdateUIEvent,
43583 _swigc__p_wxValidator,
43584 _swigc__p_wxVisualAttributes,
43585 _swigc__p_wxWindow,
43586 _swigc__p_wxWindowCreateEvent,
43587 _swigc__p_wxWindowDestroyEvent,
43588 _swigc__p_wxXPMHandler,
43589 };
43590
43591
43592 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
43593
43594 static swig_const_info swig_const_table[] = {
43595 {0, 0, 0, 0.0, 0, 0}};
43596
43597 #ifdef __cplusplus
43598 }
43599 #endif
43600 /* -----------------------------------------------------------------------------
43601 * Type initialization:
43602 * This problem is tough by the requirement that no dynamic
43603 * memory is used. Also, since swig_type_info structures store pointers to
43604 * swig_cast_info structures and swig_cast_info structures store pointers back
43605 * to swig_type_info structures, we need some lookup code at initialization.
43606 * The idea is that swig generates all the structures that are needed.
43607 * The runtime then collects these partially filled structures.
43608 * The SWIG_InitializeModule function takes these initial arrays out of
43609 * swig_module, and does all the lookup, filling in the swig_module.types
43610 * array with the correct data and linking the correct swig_cast_info
43611 * structures together.
43612 *
43613 * The generated swig_type_info structures are assigned staticly to an initial
43614 * array. We just loop though that array, and handle each type individually.
43615 * First we lookup if this type has been already loaded, and if so, use the
43616 * loaded structure instead of the generated one. Then we have to fill in the
43617 * cast linked list. The cast data is initially stored in something like a
43618 * two-dimensional array. Each row corresponds to a type (there are the same
43619 * number of rows as there are in the swig_type_initial array). Each entry in
43620 * a column is one of the swig_cast_info structures for that type.
43621 * The cast_initial array is actually an array of arrays, because each row has
43622 * a variable number of columns. So to actually build the cast linked list,
43623 * we find the array of casts associated with the type, and loop through it
43624 * adding the casts to the list. The one last trick we need to do is making
43625 * sure the type pointer in the swig_cast_info struct is correct.
43626 *
43627 * First off, we lookup the cast->type name to see if it is already loaded.
43628 * There are three cases to handle:
43629 * 1) If the cast->type has already been loaded AND the type we are adding
43630 * casting info to has not been loaded (it is in this module), THEN we
43631 * replace the cast->type pointer with the type pointer that has already
43632 * been loaded.
43633 * 2) If BOTH types (the one we are adding casting info to, and the
43634 * cast->type) are loaded, THEN the cast info has already been loaded by
43635 * the previous module so we just ignore it.
43636 * 3) Finally, if cast->type has not already been loaded, then we add that
43637 * swig_cast_info to the linked list (because the cast->type) pointer will
43638 * be correct.
43639 * ----------------------------------------------------------------------------- */
43640
43641 #ifdef __cplusplus
43642 extern "C" {
43643 #if 0
43644 } /* c-mode */
43645 #endif
43646 #endif
43647
43648 #if 0
43649 #define SWIGRUNTIME_DEBUG
43650 #endif
43651
43652 SWIGRUNTIME void
43653 SWIG_InitializeModule(void *clientdata) {
43654 size_t i;
43655 swig_module_info *module_head;
43656 static int init_run = 0;
43657
43658 clientdata = clientdata;
43659
43660 if (init_run) return;
43661 init_run = 1;
43662
43663 /* Initialize the swig_module */
43664 swig_module.type_initial = swig_type_initial;
43665 swig_module.cast_initial = swig_cast_initial;
43666
43667 /* Try and load any already created modules */
43668 module_head = SWIG_GetModule(clientdata);
43669 if (module_head) {
43670 swig_module.next = module_head->next;
43671 module_head->next = &swig_module;
43672 } else {
43673 /* This is the first module loaded */
43674 swig_module.next = &swig_module;
43675 SWIG_SetModule(clientdata, &swig_module);
43676 }
43677
43678 /* Now work on filling in swig_module.types */
43679 #ifdef SWIGRUNTIME_DEBUG
43680 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
43681 #endif
43682 for (i = 0; i < swig_module.size; ++i) {
43683 swig_type_info *type = 0;
43684 swig_type_info *ret;
43685 swig_cast_info *cast;
43686
43687 #ifdef SWIGRUNTIME_DEBUG
43688 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43689 #endif
43690
43691 /* if there is another module already loaded */
43692 if (swig_module.next != &swig_module) {
43693 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
43694 }
43695 if (type) {
43696 /* Overwrite clientdata field */
43697 #ifdef SWIGRUNTIME_DEBUG
43698 printf("SWIG_InitializeModule: found type %s\n", type->name);
43699 #endif
43700 if (swig_module.type_initial[i]->clientdata) {
43701 type->clientdata = swig_module.type_initial[i]->clientdata;
43702 #ifdef SWIGRUNTIME_DEBUG
43703 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
43704 #endif
43705 }
43706 } else {
43707 type = swig_module.type_initial[i];
43708 }
43709
43710 /* Insert casting types */
43711 cast = swig_module.cast_initial[i];
43712 while (cast->type) {
43713 /* Don't need to add information already in the list */
43714 ret = 0;
43715 #ifdef SWIGRUNTIME_DEBUG
43716 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
43717 #endif
43718 if (swig_module.next != &swig_module) {
43719 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
43720 #ifdef SWIGRUNTIME_DEBUG
43721 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
43722 #endif
43723 }
43724 if (ret) {
43725 if (type == swig_module.type_initial[i]) {
43726 #ifdef SWIGRUNTIME_DEBUG
43727 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
43728 #endif
43729 cast->type = ret;
43730 ret = 0;
43731 } else {
43732 /* Check for casting already in the list */
43733 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
43734 #ifdef SWIGRUNTIME_DEBUG
43735 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
43736 #endif
43737 if (!ocast) ret = 0;
43738 }
43739 }
43740
43741 if (!ret) {
43742 #ifdef SWIGRUNTIME_DEBUG
43743 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
43744 #endif
43745 if (type->cast) {
43746 type->cast->prev = cast;
43747 cast->next = type->cast;
43748 }
43749 type->cast = cast;
43750 }
43751 cast++;
43752 }
43753 /* Set entry in modules->types array equal to the type */
43754 swig_module.types[i] = type;
43755 }
43756 swig_module.types[i] = 0;
43757
43758 #ifdef SWIGRUNTIME_DEBUG
43759 printf("**** SWIG_InitializeModule: Cast List ******\n");
43760 for (i = 0; i < swig_module.size; ++i) {
43761 int j = 0;
43762 swig_cast_info *cast = swig_module.cast_initial[i];
43763 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43764 while (cast->type) {
43765 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
43766 cast++;
43767 ++j;
43768 }
43769 printf("---- Total casts: %d\n",j);
43770 }
43771 printf("**** SWIG_InitializeModule: Cast List ******\n");
43772 #endif
43773 }
43774
43775 /* This function will propagate the clientdata field of type to
43776 * any new swig_type_info structures that have been added into the list
43777 * of equivalent types. It is like calling
43778 * SWIG_TypeClientData(type, clientdata) a second time.
43779 */
43780 SWIGRUNTIME void
43781 SWIG_PropagateClientData(void) {
43782 size_t i;
43783 swig_cast_info *equiv;
43784 static int init_run = 0;
43785
43786 if (init_run) return;
43787 init_run = 1;
43788
43789 for (i = 0; i < swig_module.size; i++) {
43790 if (swig_module.types[i]->clientdata) {
43791 equiv = swig_module.types[i]->cast;
43792 while (equiv) {
43793 if (!equiv->converter) {
43794 if (equiv->type && !equiv->type->clientdata)
43795 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
43796 }
43797 equiv = equiv->next;
43798 }
43799 }
43800 }
43801 }
43802
43803 #ifdef __cplusplus
43804 #if 0
43805 {
43806 /* c-mode */
43807 #endif
43808 }
43809 #endif
43810
43811
43812
43813 #ifdef __cplusplus
43814 extern "C" {
43815 #endif
43816
43817 /* Python-specific SWIG API */
43818 #define SWIG_newvarlink() SWIG_Python_newvarlink()
43819 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
43820 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
43821
43822 /* -----------------------------------------------------------------------------
43823 * global variable support code.
43824 * ----------------------------------------------------------------------------- */
43825
43826 typedef struct swig_globalvar {
43827 char *name; /* Name of global variable */
43828 PyObject *(*get_attr)(void); /* Return the current value */
43829 int (*set_attr)(PyObject *); /* Set the value */
43830 struct swig_globalvar *next;
43831 } swig_globalvar;
43832
43833 typedef struct swig_varlinkobject {
43834 PyObject_HEAD
43835 swig_globalvar *vars;
43836 } swig_varlinkobject;
43837
43838 SWIGINTERN PyObject *
43839 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
43840 return PyString_FromString("<Swig global variables>");
43841 }
43842
43843 SWIGINTERN PyObject *
43844 swig_varlink_str(swig_varlinkobject *v) {
43845 PyObject *str = PyString_FromString("(");
43846 swig_globalvar *var;
43847 for (var = v->vars; var; var=var->next) {
43848 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
43849 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
43850 }
43851 PyString_ConcatAndDel(&str,PyString_FromString(")"));
43852 return str;
43853 }
43854
43855 SWIGINTERN int
43856 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
43857 PyObject *str = swig_varlink_str(v);
43858 fprintf(fp,"Swig global variables ");
43859 fprintf(fp,"%s\n", PyString_AsString(str));
43860 Py_DECREF(str);
43861 return 0;
43862 }
43863
43864 SWIGINTERN void
43865 swig_varlink_dealloc(swig_varlinkobject *v) {
43866 swig_globalvar *var = v->vars;
43867 while (var) {
43868 swig_globalvar *n = var->next;
43869 free(var->name);
43870 free(var);
43871 var = n;
43872 }
43873 }
43874
43875 SWIGINTERN PyObject *
43876 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
43877 PyObject *res = NULL;
43878 swig_globalvar *var = v->vars;
43879 while (var) {
43880 if (strcmp(var->name,n) == 0) {
43881 res = (*var->get_attr)();
43882 break;
43883 }
43884 var = var->next;
43885 }
43886 if (res == NULL && !PyErr_Occurred()) {
43887 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
43888 }
43889 return res;
43890 }
43891
43892 SWIGINTERN int
43893 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
43894 int res = 1;
43895 swig_globalvar *var = v->vars;
43896 while (var) {
43897 if (strcmp(var->name,n) == 0) {
43898 res = (*var->set_attr)(p);
43899 break;
43900 }
43901 var = var->next;
43902 }
43903 if (res == 1 && !PyErr_Occurred()) {
43904 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
43905 }
43906 return res;
43907 }
43908
43909 SWIGINTERN PyTypeObject*
43910 swig_varlink_type(void) {
43911 static char varlink__doc__[] = "Swig var link object";
43912 static PyTypeObject varlink_type;
43913 static int type_init = 0;
43914 if (!type_init) {
43915 const PyTypeObject tmp
43916 = {
43917 PyObject_HEAD_INIT(NULL)
43918 0, /* Number of items in variable part (ob_size) */
43919 (char *)"swigvarlink", /* Type name (tp_name) */
43920 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
43921 0, /* Itemsize (tp_itemsize) */
43922 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
43923 (printfunc) swig_varlink_print, /* Print (tp_print) */
43924 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
43925 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
43926 0, /* tp_compare */
43927 (reprfunc) swig_varlink_repr, /* tp_repr */
43928 0, /* tp_as_number */
43929 0, /* tp_as_sequence */
43930 0, /* tp_as_mapping */
43931 0, /* tp_hash */
43932 0, /* tp_call */
43933 (reprfunc)swig_varlink_str, /* tp_str */
43934 0, /* tp_getattro */
43935 0, /* tp_setattro */
43936 0, /* tp_as_buffer */
43937 0, /* tp_flags */
43938 varlink__doc__, /* tp_doc */
43939 0, /* tp_traverse */
43940 0, /* tp_clear */
43941 0, /* tp_richcompare */
43942 0, /* tp_weaklistoffset */
43943 #if PY_VERSION_HEX >= 0x02020000
43944 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
43945 #endif
43946 #if PY_VERSION_HEX >= 0x02030000
43947 0, /* tp_del */
43948 #endif
43949 #ifdef COUNT_ALLOCS
43950 0,0,0,0 /* tp_alloc -> tp_next */
43951 #endif
43952 };
43953 varlink_type = tmp;
43954 varlink_type.ob_type = &PyType_Type;
43955 type_init = 1;
43956 }
43957 return &varlink_type;
43958 }
43959
43960 /* Create a variable linking object for use later */
43961 SWIGINTERN PyObject *
43962 SWIG_Python_newvarlink(void) {
43963 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
43964 if (result) {
43965 result->vars = 0;
43966 }
43967 return ((PyObject*) result);
43968 }
43969
43970 SWIGINTERN void
43971 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
43972 swig_varlinkobject *v = (swig_varlinkobject *) p;
43973 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
43974 if (gv) {
43975 size_t size = strlen(name)+1;
43976 gv->name = (char *)malloc(size);
43977 if (gv->name) {
43978 strncpy(gv->name,name,size);
43979 gv->get_attr = get_attr;
43980 gv->set_attr = set_attr;
43981 gv->next = v->vars;
43982 }
43983 }
43984 v->vars = gv;
43985 }
43986
43987 SWIGINTERN PyObject *
43988 SWIG_globals() {
43989 static PyObject *_SWIG_globals = 0;
43990 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
43991 return _SWIG_globals;
43992 }
43993
43994 /* -----------------------------------------------------------------------------
43995 * constants/methods manipulation
43996 * ----------------------------------------------------------------------------- */
43997
43998 /* Install Constants */
43999 SWIGINTERN void
44000 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
44001 PyObject *obj = 0;
44002 size_t i;
44003 for (i = 0; constants[i].type; ++i) {
44004 switch(constants[i].type) {
44005 case SWIG_PY_POINTER:
44006 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
44007 break;
44008 case SWIG_PY_BINARY:
44009 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
44010 break;
44011 default:
44012 obj = 0;
44013 break;
44014 }
44015 if (obj) {
44016 PyDict_SetItemString(d, constants[i].name, obj);
44017 Py_DECREF(obj);
44018 }
44019 }
44020 }
44021
44022 /* -----------------------------------------------------------------------------*/
44023 /* Fix SwigMethods to carry the callback ptrs when needed */
44024 /* -----------------------------------------------------------------------------*/
44025
44026 SWIGINTERN void
44027 SWIG_Python_FixMethods(PyMethodDef *methods,
44028 swig_const_info *const_table,
44029 swig_type_info **types,
44030 swig_type_info **types_initial) {
44031 size_t i;
44032 for (i = 0; methods[i].ml_name; ++i) {
44033 char *c = methods[i].ml_doc;
44034 if (c && (c = strstr(c, "swig_ptr: "))) {
44035 int j;
44036 swig_const_info *ci = 0;
44037 char *name = c + 10;
44038 for (j = 0; const_table[j].type; ++j) {
44039 if (strncmp(const_table[j].name, name,
44040 strlen(const_table[j].name)) == 0) {
44041 ci = &(const_table[j]);
44042 break;
44043 }
44044 }
44045 if (ci) {
44046 size_t shift = (ci->ptype) - types;
44047 swig_type_info *ty = types_initial[shift];
44048 size_t ldoc = (c - methods[i].ml_doc);
44049 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
44050 char *ndoc = (char*)malloc(ldoc + lptr + 10);
44051 if (ndoc) {
44052 char *buff = ndoc;
44053 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
44054 if (ptr) {
44055 strncpy(buff, methods[i].ml_doc, ldoc);
44056 buff += ldoc;
44057 strncpy(buff, "swig_ptr: ", 10);
44058 buff += 10;
44059 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
44060 methods[i].ml_doc = ndoc;
44061 }
44062 }
44063 }
44064 }
44065 }
44066 }
44067
44068 #ifdef __cplusplus
44069 }
44070 #endif
44071
44072 /* -----------------------------------------------------------------------------*
44073 * Partial Init method
44074 * -----------------------------------------------------------------------------*/
44075
44076 #ifdef __cplusplus
44077 extern "C"
44078 #endif
44079 SWIGEXPORT void SWIG_init(void) {
44080 PyObject *m, *d;
44081
44082 /* Fix SwigMethods to carry the callback ptrs when needed */
44083 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
44084
44085 m = Py_InitModule((char *) SWIG_name, SwigMethods);
44086 d = PyModule_GetDict(m);
44087
44088 SWIG_InitializeModule(0);
44089 SWIG_InstallConstants(d,swig_const_table);
44090
44091
44092 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
44093 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
44094 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
44095 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
44096 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
44097 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
44098 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
44099 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
44100 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
44101 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
44102 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
44103 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
44104 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
44105 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
44106 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
44107 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
44108 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
44109 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
44110 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
44111 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
44112 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
44113 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
44114 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
44115 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
44116 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
44117 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
44118 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
44119 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
44120 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
44121 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
44122 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
44123 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
44124 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
44125 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
44126 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
44127 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
44128 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
44129 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
44130 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
44131 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
44132 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
44133 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
44134 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
44135 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
44136 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
44137 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
44138 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
44139 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
44140 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
44141 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
44142 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
44143 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
44144 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
44145 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
44146 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
44147 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
44148 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
44149 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
44150 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
44151 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
44152 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
44153 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
44154 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
44155 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
44156 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
44157 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
44158 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
44159 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
44160 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
44161 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
44162 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
44163 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
44164 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
44165 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
44166 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
44167 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
44168 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
44169 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
44170 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
44171 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
44172 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
44173 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
44174 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
44175 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
44176 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
44177 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
44178 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
44179 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
44180 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
44181 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
44182 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
44183 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
44184 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
44185 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
44186 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
44187 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
44188 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
44189 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
44190 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
44191 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
44192 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
44193 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
44194 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
44195 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
44196 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
44197 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
44198 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
44199 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
44200 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
44201 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
44202 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
44203 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
44204 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
44205 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
44206 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
44207 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
44208 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
44209 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
44210 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
44211 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
44212 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
44213 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
44214 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
44215 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
44216 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
44217 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
44218 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
44219 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
44220 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
44221 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
44222 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
44223 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
44224 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
44225 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
44226 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
44227 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
44228 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
44229 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
44230 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
44231 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
44232 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
44233 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
44234 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
44235 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
44236 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
44237 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
44238 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
44239 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
44240 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
44241 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
44242 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
44243 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
44244 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
44245 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
44246 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
44247 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
44248 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
44249 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
44250 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
44251 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
44252 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
44253 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
44254 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
44255 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
44256 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
44257 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
44258 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
44259 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
44260 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
44261 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
44262 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
44263 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
44264 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
44265 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
44266 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
44267 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
44268 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
44269 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
44270 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
44271 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
44272 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
44273 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
44274 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
44275 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
44276 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
44277 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
44278 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
44279 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
44280 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
44281 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
44282 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
44283 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
44284 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
44285 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
44286 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
44287 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
44288 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
44289 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
44290 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
44291 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
44292 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
44293 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
44294 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
44295 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
44296 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
44297 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
44298 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
44299 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
44300 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
44301 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
44302 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
44303 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
44304 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
44305 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
44306 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
44307 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
44308 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
44309 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
44310 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
44311 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
44312 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
44313 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
44314 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
44315 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
44316 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
44317 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
44318 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
44319 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
44320 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
44321 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
44322 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
44323 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
44324 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
44325 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
44326 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
44327 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
44328 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
44329 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
44330 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
44331 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
44332 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
44333 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
44334 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
44335 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
44336 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
44337 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
44338 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
44339
44340 // Map renamed classes back to their common name for OOR
44341 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
44342
44343 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
44344 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
44345 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
44346 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
44347 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
44348 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
44349 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
44350 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
44351 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
44352 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
44353 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
44354 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
44355 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
44356 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
44357 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
44358 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
44359 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
44360 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
44361 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
44362 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
44363 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
44364 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
44365 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
44366 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
44367 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
44368 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
44369 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
44370 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
44371 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
44372 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
44373 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
44374 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
44375 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
44376 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
44377 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
44378 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
44379 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
44380 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
44381 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
44382 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
44383 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
44384 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
44385 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
44386 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
44387 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
44388 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
44389 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
44390 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
44391 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
44392 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
44393 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
44394 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
44395 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
44396 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
44397 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
44398
44399 // Map renamed classes back to their common name for OOR
44400 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
44401 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
44402
44403 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
44404 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
44405 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
44406 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
44407 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
44408 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
44409 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
44410 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
44411 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
44412 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
44413
44414 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
44415
44416 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
44417 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
44418 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
44419 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
44420 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
44421 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
44422 }
44423