]> 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_wxHyperlinkCtrl swig_types[64]
2527 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[65]
2528 #define SWIGTYPE_p_wxICOHandler swig_types[66]
2529 #define SWIGTYPE_p_wxIcon swig_types[67]
2530 #define SWIGTYPE_p_wxIconizeEvent swig_types[68]
2531 #define SWIGTYPE_p_wxIdleEvent swig_types[69]
2532 #define SWIGTYPE_p_wxImage swig_types[70]
2533 #define SWIGTYPE_p_wxImageHandler swig_types[71]
2534 #define SWIGTYPE_p_wxImageList swig_types[72]
2535 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[73]
2536 #define SWIGTYPE_p_wxInitDialogEvent swig_types[74]
2537 #define SWIGTYPE_p_wxItemContainer swig_types[75]
2538 #define SWIGTYPE_p_wxJPEGHandler swig_types[76]
2539 #define SWIGTYPE_p_wxKeyEvent swig_types[77]
2540 #define SWIGTYPE_p_wxLayoutConstraints swig_types[78]
2541 #define SWIGTYPE_p_wxListBox swig_types[79]
2542 #define SWIGTYPE_p_wxListEvent swig_types[80]
2543 #define SWIGTYPE_p_wxListItem swig_types[81]
2544 #define SWIGTYPE_p_wxListItemAttr swig_types[82]
2545 #define SWIGTYPE_p_wxListView swig_types[83]
2546 #define SWIGTYPE_p_wxListbook swig_types[84]
2547 #define SWIGTYPE_p_wxListbookEvent swig_types[85]
2548 #define SWIGTYPE_p_wxMaximizeEvent swig_types[86]
2549 #define SWIGTYPE_p_wxMemoryDC swig_types[87]
2550 #define SWIGTYPE_p_wxMenu swig_types[88]
2551 #define SWIGTYPE_p_wxMenuBar swig_types[89]
2552 #define SWIGTYPE_p_wxMenuEvent swig_types[90]
2553 #define SWIGTYPE_p_wxMenuItem swig_types[91]
2554 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[92]
2555 #define SWIGTYPE_p_wxMouseEvent swig_types[93]
2556 #define SWIGTYPE_p_wxMoveEvent swig_types[94]
2557 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[95]
2558 #define SWIGTYPE_p_wxNcPaintEvent swig_types[96]
2559 #define SWIGTYPE_p_wxNotebook swig_types[97]
2560 #define SWIGTYPE_p_wxNotebookEvent swig_types[98]
2561 #define SWIGTYPE_p_wxNotifyEvent swig_types[99]
2562 #define SWIGTYPE_p_wxObject swig_types[100]
2563 #define SWIGTYPE_p_wxPCXHandler swig_types[101]
2564 #define SWIGTYPE_p_wxPNGHandler swig_types[102]
2565 #define SWIGTYPE_p_wxPNMHandler swig_types[103]
2566 #define SWIGTYPE_p_wxPaintEvent swig_types[104]
2567 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[105]
2568 #define SWIGTYPE_p_wxPaperSize swig_types[106]
2569 #define SWIGTYPE_p_wxPoint swig_types[107]
2570 #define SWIGTYPE_p_wxPyApp swig_types[108]
2571 #define SWIGTYPE_p_wxPyCommandEvent swig_types[109]
2572 #define SWIGTYPE_p_wxPyControl swig_types[110]
2573 #define SWIGTYPE_p_wxPyEvent swig_types[111]
2574 #define SWIGTYPE_p_wxPyImageHandler swig_types[112]
2575 #define SWIGTYPE_p_wxPyListCtrl swig_types[113]
2576 #define SWIGTYPE_p_wxPySizer swig_types[114]
2577 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[115]
2578 #define SWIGTYPE_p_wxPyTreeItemData swig_types[116]
2579 #define SWIGTYPE_p_wxPyValidator swig_types[117]
2580 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[118]
2581 #define SWIGTYPE_p_wxRadioBox swig_types[119]
2582 #define SWIGTYPE_p_wxRadioButton swig_types[120]
2583 #define SWIGTYPE_p_wxRect swig_types[121]
2584 #define SWIGTYPE_p_wxScrollBar swig_types[122]
2585 #define SWIGTYPE_p_wxScrollEvent swig_types[123]
2586 #define SWIGTYPE_p_wxScrollWinEvent swig_types[124]
2587 #define SWIGTYPE_p_wxSetCursorEvent swig_types[125]
2588 #define SWIGTYPE_p_wxShowEvent swig_types[126]
2589 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[127]
2590 #define SWIGTYPE_p_wxSize swig_types[128]
2591 #define SWIGTYPE_p_wxSizeEvent swig_types[129]
2592 #define SWIGTYPE_p_wxSizer swig_types[130]
2593 #define SWIGTYPE_p_wxSizerItem swig_types[131]
2594 #define SWIGTYPE_p_wxSlider swig_types[132]
2595 #define SWIGTYPE_p_wxSpinButton swig_types[133]
2596 #define SWIGTYPE_p_wxSpinCtrl swig_types[134]
2597 #define SWIGTYPE_p_wxSpinEvent swig_types[135]
2598 #define SWIGTYPE_p_wxStaticBitmap swig_types[136]
2599 #define SWIGTYPE_p_wxStaticBox swig_types[137]
2600 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[138]
2601 #define SWIGTYPE_p_wxStaticLine swig_types[139]
2602 #define SWIGTYPE_p_wxStaticText swig_types[140]
2603 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[141]
2604 #define SWIGTYPE_p_wxString swig_types[142]
2605 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[143]
2606 #define SWIGTYPE_p_wxTIFFHandler swig_types[144]
2607 #define SWIGTYPE_p_wxTextAttr swig_types[145]
2608 #define SWIGTYPE_p_wxTextCtrl swig_types[146]
2609 #define SWIGTYPE_p_wxTextUrlEvent swig_types[147]
2610 #define SWIGTYPE_p_wxToggleButton swig_types[148]
2611 #define SWIGTYPE_p_wxToolBar swig_types[149]
2612 #define SWIGTYPE_p_wxToolBarBase swig_types[150]
2613 #define SWIGTYPE_p_wxToolBarToolBase swig_types[151]
2614 #define SWIGTYPE_p_wxToolbook swig_types[152]
2615 #define SWIGTYPE_p_wxToolbookEvent swig_types[153]
2616 #define SWIGTYPE_p_wxTreeCtrl swig_types[154]
2617 #define SWIGTYPE_p_wxTreeEvent swig_types[155]
2618 #define SWIGTYPE_p_wxTreeItemId swig_types[156]
2619 #define SWIGTYPE_p_wxTreebook swig_types[157]
2620 #define SWIGTYPE_p_wxTreebookEvent swig_types[158]
2621 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[159]
2622 #define SWIGTYPE_p_wxValidator swig_types[160]
2623 #define SWIGTYPE_p_wxVisualAttributes swig_types[161]
2624 #define SWIGTYPE_p_wxWindow swig_types[162]
2625 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[163]
2626 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[164]
2627 #define SWIGTYPE_p_wxXPMHandler swig_types[165]
2628 static swig_type_info *swig_types[167];
2629 static swig_module_info swig_module = {swig_types, 166, 0, 0, 0, 0};
2630 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2631 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2632
2633 /* -------- TYPES TABLE (END) -------- */
2634
2635 #if (PY_VERSION_HEX <= 0x02000000)
2636 # if !defined(SWIG_PYTHON_CLASSIC)
2637 # error "This python version requires to use swig with the '-classic' option"
2638 # endif
2639 #endif
2640 #if (PY_VERSION_HEX <= 0x02020000)
2641 # error "This python version requires to use swig with the '-nomodern' option"
2642 #endif
2643 #if (PY_VERSION_HEX <= 0x02020000)
2644 # error "This python version requires to use swig with the '-nomodernargs' option"
2645 #endif
2646 #ifndef METH_O
2647 # error "This python version requires to use swig with the '-nofastunpack' option"
2648 #endif
2649
2650 /*-----------------------------------------------
2651 @(target):= _controls_.so
2652 ------------------------------------------------*/
2653 #define SWIG_init init_controls_
2654
2655 #define SWIG_name "_controls_"
2656
2657 #define SWIGVERSION 0x010329
2658
2659
2660 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2661 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2662
2663
2664 #include <stdexcept>
2665
2666
2667 namespace swig {
2668 class PyObject_ptr {
2669 protected:
2670 PyObject *_obj;
2671
2672 public:
2673 PyObject_ptr() :_obj(0)
2674 {
2675 }
2676
2677 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2678 {
2679 Py_XINCREF(_obj);
2680 }
2681
2682 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2683 {
2684 if (initial_ref) Py_XINCREF(_obj);
2685 }
2686
2687 PyObject_ptr & operator=(const PyObject_ptr& item)
2688 {
2689 Py_XINCREF(item._obj);
2690 Py_XDECREF(_obj);
2691 _obj = item._obj;
2692 return *this;
2693 }
2694
2695 ~PyObject_ptr()
2696 {
2697 Py_XDECREF(_obj);
2698 }
2699
2700 operator PyObject *() const
2701 {
2702 return _obj;
2703 }
2704
2705 PyObject *operator->() const
2706 {
2707 return _obj;
2708 }
2709 };
2710 }
2711
2712
2713 namespace swig {
2714 struct PyObject_var : PyObject_ptr {
2715 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2716
2717 PyObject_var & operator = (PyObject* obj)
2718 {
2719 Py_XDECREF(_obj);
2720 _obj = obj;
2721 return *this;
2722 }
2723 };
2724 }
2725
2726
2727 #include "wx/wxPython/wxPython.h"
2728 #include "wx/wxPython/pyclasses.h"
2729
2730 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2731 static const wxString wxPyEmptyString(wxEmptyString);
2732 static const wxString wxPyControlNameStr(wxControlNameStr);
2733
2734 const wxArrayString wxPyEmptyStringArray;
2735
2736 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2737
2738 #define SWIG_From_long PyInt_FromLong
2739
2740
2741 SWIGINTERNINLINE PyObject *
2742 SWIG_From_int (int value)
2743 {
2744 return SWIG_From_long (value);
2745 }
2746
2747
2748 #include <limits.h>
2749 #ifndef LLONG_MIN
2750 # define LLONG_MIN LONG_LONG_MIN
2751 #endif
2752 #ifndef LLONG_MAX
2753 # define LLONG_MAX LONG_LONG_MAX
2754 #endif
2755 #ifndef ULLONG_MAX
2756 # define ULLONG_MAX ULONG_LONG_MAX
2757 #endif
2758
2759
2760 SWIGINTERN int
2761 SWIG_AsVal_long (PyObject* obj, long* val)
2762 {
2763 if (PyNumber_Check(obj)) {
2764 if (val) *val = PyInt_AsLong(obj);
2765 return SWIG_OK;
2766 }
2767 return SWIG_TypeError;
2768 }
2769
2770
2771 SWIGINTERN int
2772 SWIG_AsVal_int (PyObject * obj, int *val)
2773 {
2774 long v;
2775 int res = SWIG_AsVal_long (obj, &v);
2776 if (SWIG_IsOK(res)) {
2777 if ((v < INT_MIN || v > INT_MAX)) {
2778 return SWIG_OverflowError;
2779 } else {
2780 if (val) *val = static_cast< int >(v);
2781 }
2782 }
2783 return res;
2784 }
2785
2786 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_bool (PyObject *obj, bool *val)
2790 {
2791 if (obj == Py_True) {
2792 if (val) *val = true;
2793 return SWIG_OK;
2794 } else if (obj == Py_False) {
2795 if (val) *val = false;
2796 return SWIG_OK;
2797 } else {
2798 long v = 0;
2799 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2800 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2801 return res;
2802 }
2803 }
2804
2805 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2806 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2807 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2808 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2809 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2810 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2811
2812 #include <wx/checklst.h>
2813
2814 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2815 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2816 if (clientData)
2817 {
2818 wxPyClientData* data = new wxPyClientData(clientData);
2819 self->Insert(item, pos, data);
2820 }
2821 else
2822 self->Insert(item, pos);
2823 }
2824
2825 SWIGINTERN int
2826 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2827 {
2828 long v = 0;
2829 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2830 return SWIG_TypeError;
2831 }
2832 else if (val)
2833 *val = (unsigned long)v;
2834 return SWIG_OK;
2835 }
2836
2837
2838 SWIGINTERN int
2839 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2840 {
2841 unsigned long v;
2842 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2843 if (SWIG_IsOK(res)) {
2844 if ((v > UINT_MAX)) {
2845 return SWIG_OverflowError;
2846 } else {
2847 if (val) *val = static_cast< unsigned int >(v);
2848 }
2849 }
2850 return res;
2851 }
2852
2853 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2854 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2855 wxArrayInt lst;
2856 self->GetSelections(lst);
2857 PyObject *tup = PyTuple_New(lst.GetCount());
2858 for (size_t i=0; i<lst.GetCount(); i++)
2859 {
2860 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2861 }
2862 wxPyEndBlockThreads(blocked);
2863 return tup;
2864 }
2865 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2866 #ifdef __WXMSW__
2867 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2868 self->GetItem(item)->SetTextColour(c);
2869 #endif
2870 }
2871 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2872 #ifdef __WXMSW__
2873 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2874 self->GetItem(item)->SetBackgroundColour(c);
2875 #endif
2876 }
2877 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2878 #ifdef __WXMSW__
2879 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2880 self->GetItem(item)->SetFont(f);
2881 #endif
2882 }
2883 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2884 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2885 self->AppendText(text);
2886 }
2887 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2888 return self->GetValue().Mid(from, to - from);
2889 }
2890 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2891 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2892 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2893 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2894 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2895
2896 SWIGINTERNINLINE PyObject*
2897 SWIG_From_unsigned_SS_long (unsigned long value)
2898 {
2899 return (value > LONG_MAX) ?
2900 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2901 }
2902
2903
2904 SWIGINTERNINLINE PyObject *
2905 SWIG_From_size_t (size_t value)
2906 {
2907 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2908 }
2909
2910
2911 SWIGINTERNINLINE PyObject *
2912 SWIG_From_unsigned_SS_int (unsigned int value)
2913 {
2914 return SWIG_From_unsigned_SS_long (value);
2915 }
2916
2917
2918 #include <wx/slider.h>
2919
2920
2921 static const wxString wxPySliderNameStr(wxSliderNameStr);
2922 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2923
2924 #if !wxUSE_TOGGLEBTN
2925 // implement dummy items for platforms that don't have this class
2926
2927 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2928
2929 class wxToggleButton : public wxControl
2930 {
2931 public:
2932 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2933 const wxPoint&, const wxSize&, long,
2934 const wxValidator&, const wxString&)
2935 { wxPyRaiseNotImplemented(); }
2936
2937 wxToggleButton()
2938 { wxPyRaiseNotImplemented(); }
2939 };
2940 #endif
2941
2942 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2943
2944 SWIGINTERNINLINE int
2945 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2946 {
2947 unsigned long v;
2948 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2949 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2950 return res;
2951 }
2952
2953 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2954 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2955 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2956 if (udata) {
2957 Py_INCREF(udata->m_obj);
2958 return udata->m_obj;
2959 } else {
2960 Py_INCREF(Py_None);
2961 return Py_None;
2962 }
2963 }
2964 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2965 self->SetClientData(new wxPyUserData(clientData));
2966 }
2967 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){
2968 wxPyUserData* udata = NULL;
2969 if (clientData && clientData != Py_None)
2970 udata = new wxPyUserData(clientData);
2971 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2972 shortHelp, longHelp, udata);
2973 }
2974 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){
2975 wxPyUserData* udata = NULL;
2976 if (clientData && clientData != Py_None)
2977 udata = new wxPyUserData(clientData);
2978 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2979 shortHelp, longHelp, udata);
2980 }
2981 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2982 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2983 if (udata) {
2984 Py_INCREF(udata->m_obj);
2985 return udata->m_obj;
2986 } else {
2987 Py_INCREF(Py_None);
2988 return Py_None;
2989 }
2990 }
2991 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
2992 self->SetToolClientData(id, new wxPyUserData(clientData));
2993 }
2994
2995 #include <wx/listctrl.h>
2996
2997 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
2998 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
2999 // Python aware sorting function for wxPyListCtrl
3000 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3001 int retval = 0;
3002 PyObject* func = (PyObject*)funcPtr;
3003 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3004
3005 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3006 PyObject* result = PyEval_CallObject(func, args);
3007 Py_DECREF(args);
3008 if (result) {
3009 retval = PyInt_AsLong(result);
3010 Py_DECREF(result);
3011 }
3012
3013 wxPyEndBlockThreads(blocked);
3014 return retval;
3015 }
3016
3017 // C++ Version of a Python aware class
3018 class wxPyListCtrl : public wxListCtrl {
3019 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3020 public:
3021 wxPyListCtrl() : wxListCtrl() {}
3022 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3023 const wxPoint& pos,
3024 const wxSize& size,
3025 long style,
3026 const wxValidator& validator,
3027 const wxString& name) :
3028 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3029
3030 bool Create(wxWindow* parent, wxWindowID id,
3031 const wxPoint& pos,
3032 const wxSize& size,
3033 long style,
3034 const wxValidator& validator,
3035 const wxString& name) {
3036 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3037 }
3038
3039 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3040 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3041
3042 // use the virtual version to avoid a confusing assert in the base class
3043 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3044 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3045
3046 PYPRIVATE;
3047 };
3048
3049 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3050
3051 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3052 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3053 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3054 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3055
3056
3057 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3058 wxListItem item;
3059 item.SetMask( wxLIST_MASK_STATE |
3060 wxLIST_MASK_TEXT |
3061 wxLIST_MASK_IMAGE |
3062 wxLIST_MASK_DATA |
3063 wxLIST_SET_ITEM |
3064 wxLIST_MASK_WIDTH |
3065 wxLIST_MASK_FORMAT
3066 );
3067 if (self->GetColumn(col, item))
3068 return new wxListItem(item);
3069 else
3070 return NULL;
3071 }
3072 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3073 wxListItem* info = new wxListItem;
3074 info->m_itemId = itemId;
3075 info->m_col = col;
3076 info->m_mask = 0xFFFF;
3077 self->GetItem(*info);
3078 return info;
3079 }
3080 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3081 wxPoint pos;
3082 self->GetItemPosition(item, pos);
3083 return pos;
3084 }
3085 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3086 wxRect rect;
3087 self->GetItemRect(item, rect, code);
3088 return rect;
3089 }
3090 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3091 if (!PyCallable_Check(func))
3092 return false;
3093 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3094 }
3095 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3096
3097
3098
3099 return (wxWindow*)self->m_mainWin;
3100
3101 }
3102
3103 #include <wx/treectrl.h>
3104 #include "wx/wxPython/pytree.h"
3105
3106 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3107 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3108 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3109 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3110 // C++ version of Python aware wxTreeCtrl
3111 class wxPyTreeCtrl : public wxTreeCtrl {
3112 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3113 public:
3114 wxPyTreeCtrl() : wxTreeCtrl() {}
3115 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3116 const wxPoint& pos,
3117 const wxSize& size,
3118 long style,
3119 const wxValidator& validator,
3120 const wxString& name) :
3121 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3122
3123 bool Create(wxWindow *parent, wxWindowID id,
3124 const wxPoint& pos,
3125 const wxSize& size,
3126 long style,
3127 const wxValidator& validator,
3128 const wxString& name) {
3129 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3130 }
3131
3132
3133 int OnCompareItems(const wxTreeItemId& item1,
3134 const wxTreeItemId& item2) {
3135 int rval = 0;
3136 bool found;
3137 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3138 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3139 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3140 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3141 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3142 Py_DECREF(o1);
3143 Py_DECREF(o2);
3144 }
3145 wxPyEndBlockThreads(blocked);
3146 if (! found)
3147 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3148 return rval;
3149 }
3150 PYPRIVATE;
3151 };
3152
3153 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3154
3155
3156 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3157 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3158 if (data == NULL) {
3159 data = new wxPyTreeItemData();
3160 data->SetId(item); // set the id
3161 self->SetItemData(item, data);
3162 }
3163 return data;
3164 }
3165 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3166 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3167 if (data == NULL) {
3168 data = new wxPyTreeItemData();
3169 data->SetId(item); // set the id
3170 self->SetItemData(item, data);
3171 }
3172 return data->GetData();
3173 }
3174 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3175 data->SetId(item); // set the id
3176 self->SetItemData(item, data);
3177 }
3178 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3179 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3180 if (data == NULL) {
3181 data = new wxPyTreeItemData(obj);
3182 data->SetId(item); // set the id
3183 self->SetItemData(item, data);
3184 } else
3185 data->SetData(obj);
3186 }
3187 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3188 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3189 PyObject* rval = PyList_New(0);
3190 wxArrayTreeItemIds array;
3191 size_t num, x;
3192 num = self->GetSelections(array);
3193 for (x=0; x < num; x++) {
3194 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3195 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3196 PyList_Append(rval, item);
3197 Py_DECREF(item);
3198 }
3199 wxPyEndBlockThreads(blocked);
3200 return rval;
3201 }
3202 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3203 void* cookie = 0;
3204 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3205 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3206 PyObject* tup = PyTuple_New(2);
3207 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3208 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3209 wxPyEndBlockThreads(blocked);
3210 return tup;
3211 }
3212 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3213 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3214 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3215 PyObject* tup = PyTuple_New(2);
3216 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3217 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3218 wxPyEndBlockThreads(blocked);
3219 return tup;
3220 }
3221 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3222 wxRect rect;
3223 if (self->GetBoundingRect(item, rect, textOnly)) {
3224 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3225 wxRect* r = new wxRect(rect);
3226 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3227 wxPyEndBlockThreads(blocked);
3228 return val;
3229 }
3230 else
3231 RETURN_NONE();
3232 }
3233 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3234
3235 SWIGINTERNINLINE PyObject*
3236 SWIG_From_bool (bool value)
3237 {
3238 return PyBool_FromLong(value ? 1 : 0);
3239 }
3240
3241 // C++ version of Python aware wxControl
3242 class wxPyControl : public wxControl
3243 {
3244 DECLARE_DYNAMIC_CLASS(wxPyControl)
3245 public:
3246 wxPyControl() : wxControl() {}
3247 wxPyControl(wxWindow* parent, const wxWindowID id,
3248 const wxPoint& pos = wxDefaultPosition,
3249 const wxSize& size = wxDefaultSize,
3250 long style = 0,
3251 const wxValidator& validator=wxDefaultValidator,
3252 const wxString& name = wxPyControlNameStr)
3253 : wxControl(parent, id, pos, size, style, validator, name) {}
3254
3255 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3256
3257 bool DoEraseBackground(wxDC* dc) {
3258 #ifdef __WXMSW__
3259 return wxWindow::DoEraseBackground(dc->GetHDC());
3260 #else
3261 dc->SetBackground(wxBrush(GetBackgroundColour()));
3262 dc->Clear();
3263 return true;
3264 #endif
3265 }
3266
3267 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3268 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3269 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3270 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3271
3272 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3273 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3274 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3275
3276 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3277 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3278
3279 DEC_PYCALLBACK__(InitDialog);
3280 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3281 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3282 DEC_PYCALLBACK_BOOL_(Validate);
3283
3284 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3285 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3286 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3287
3288 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3289 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3290
3291 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3292 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3293
3294 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3295
3296 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3297
3298 PYPRIVATE;
3299 };
3300
3301 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3302
3303 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3304 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3305 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3306 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3307
3308 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3309 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3310 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3311
3312 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3313 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3314
3315 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3316 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3317 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3318 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3319
3320 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3321 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3322 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3323
3324 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3325 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3326
3327 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3328 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3329
3330 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3331
3332 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3333
3334
3335
3336 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3337
3338 #include <wx/generic/dragimgg.h>
3339
3340 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3341 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3342 wxDateTime rv;
3343 self->GetRange(&rv, NULL);
3344 return rv;
3345 }
3346 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3347 wxDateTime rv;
3348 self->GetRange(NULL, &rv);
3349 return rv;
3350 }
3351
3352 #include <wx/hyperlink.h>
3353
3354 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3355 #ifdef __cplusplus
3356 extern "C" {
3357 #endif
3358 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3359 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3360 return 1;
3361 }
3362
3363
3364 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3365 PyObject *pyobj = 0;
3366
3367 {
3368 #if wxUSE_UNICODE
3369 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3370 #else
3371 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3372 #endif
3373 }
3374 return pyobj;
3375 }
3376
3377
3378 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3379 PyObject *resultobj = 0;
3380 wxWindow *arg1 = (wxWindow *) 0 ;
3381 int arg2 = (int) -1 ;
3382 wxString const &arg3_defvalue = wxPyEmptyString ;
3383 wxString *arg3 = (wxString *) &arg3_defvalue ;
3384 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3385 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3386 wxSize const &arg5_defvalue = wxDefaultSize ;
3387 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3388 long arg6 = (long) 0 ;
3389 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3390 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3391 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3392 wxString *arg8 = (wxString *) &arg8_defvalue ;
3393 wxButton *result = 0 ;
3394 void *argp1 = 0 ;
3395 int res1 = 0 ;
3396 int val2 ;
3397 int ecode2 = 0 ;
3398 bool temp3 = false ;
3399 wxPoint temp4 ;
3400 wxSize temp5 ;
3401 long val6 ;
3402 int ecode6 = 0 ;
3403 void *argp7 = 0 ;
3404 int res7 = 0 ;
3405 bool temp8 = false ;
3406 PyObject * obj0 = 0 ;
3407 PyObject * obj1 = 0 ;
3408 PyObject * obj2 = 0 ;
3409 PyObject * obj3 = 0 ;
3410 PyObject * obj4 = 0 ;
3411 PyObject * obj5 = 0 ;
3412 PyObject * obj6 = 0 ;
3413 PyObject * obj7 = 0 ;
3414 char * kwnames[] = {
3415 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3416 };
3417
3418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3420 if (!SWIG_IsOK(res1)) {
3421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3422 }
3423 arg1 = reinterpret_cast< wxWindow * >(argp1);
3424 if (obj1) {
3425 ecode2 = SWIG_AsVal_int(obj1, &val2);
3426 if (!SWIG_IsOK(ecode2)) {
3427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3428 }
3429 arg2 = static_cast< int >(val2);
3430 }
3431 if (obj2) {
3432 {
3433 arg3 = wxString_in_helper(obj2);
3434 if (arg3 == NULL) SWIG_fail;
3435 temp3 = true;
3436 }
3437 }
3438 if (obj3) {
3439 {
3440 arg4 = &temp4;
3441 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3442 }
3443 }
3444 if (obj4) {
3445 {
3446 arg5 = &temp5;
3447 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3448 }
3449 }
3450 if (obj5) {
3451 ecode6 = SWIG_AsVal_long(obj5, &val6);
3452 if (!SWIG_IsOK(ecode6)) {
3453 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3454 }
3455 arg6 = static_cast< long >(val6);
3456 }
3457 if (obj6) {
3458 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3459 if (!SWIG_IsOK(res7)) {
3460 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3461 }
3462 if (!argp7) {
3463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3464 }
3465 arg7 = reinterpret_cast< wxValidator * >(argp7);
3466 }
3467 if (obj7) {
3468 {
3469 arg8 = wxString_in_helper(obj7);
3470 if (arg8 == NULL) SWIG_fail;
3471 temp8 = true;
3472 }
3473 }
3474 {
3475 if (!wxPyCheckForApp()) SWIG_fail;
3476 PyThreadState* __tstate = wxPyBeginAllowThreads();
3477 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3478 wxPyEndAllowThreads(__tstate);
3479 if (PyErr_Occurred()) SWIG_fail;
3480 }
3481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3482 {
3483 if (temp3)
3484 delete arg3;
3485 }
3486 {
3487 if (temp8)
3488 delete arg8;
3489 }
3490 return resultobj;
3491 fail:
3492 {
3493 if (temp3)
3494 delete arg3;
3495 }
3496 {
3497 if (temp8)
3498 delete arg8;
3499 }
3500 return NULL;
3501 }
3502
3503
3504 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3505 PyObject *resultobj = 0;
3506 wxButton *result = 0 ;
3507
3508 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3509 {
3510 if (!wxPyCheckForApp()) SWIG_fail;
3511 PyThreadState* __tstate = wxPyBeginAllowThreads();
3512 result = (wxButton *)new wxButton();
3513 wxPyEndAllowThreads(__tstate);
3514 if (PyErr_Occurred()) SWIG_fail;
3515 }
3516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3517 return resultobj;
3518 fail:
3519 return NULL;
3520 }
3521
3522
3523 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3524 PyObject *resultobj = 0;
3525 wxButton *arg1 = (wxButton *) 0 ;
3526 wxWindow *arg2 = (wxWindow *) 0 ;
3527 int arg3 = (int) -1 ;
3528 wxString const &arg4_defvalue = wxPyEmptyString ;
3529 wxString *arg4 = (wxString *) &arg4_defvalue ;
3530 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3531 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3532 wxSize const &arg6_defvalue = wxDefaultSize ;
3533 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3534 long arg7 = (long) 0 ;
3535 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3536 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3537 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3538 wxString *arg9 = (wxString *) &arg9_defvalue ;
3539 bool result;
3540 void *argp1 = 0 ;
3541 int res1 = 0 ;
3542 void *argp2 = 0 ;
3543 int res2 = 0 ;
3544 int val3 ;
3545 int ecode3 = 0 ;
3546 bool temp4 = false ;
3547 wxPoint temp5 ;
3548 wxSize temp6 ;
3549 long val7 ;
3550 int ecode7 = 0 ;
3551 void *argp8 = 0 ;
3552 int res8 = 0 ;
3553 bool temp9 = false ;
3554 PyObject * obj0 = 0 ;
3555 PyObject * obj1 = 0 ;
3556 PyObject * obj2 = 0 ;
3557 PyObject * obj3 = 0 ;
3558 PyObject * obj4 = 0 ;
3559 PyObject * obj5 = 0 ;
3560 PyObject * obj6 = 0 ;
3561 PyObject * obj7 = 0 ;
3562 PyObject * obj8 = 0 ;
3563 char * kwnames[] = {
3564 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3565 };
3566
3567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3569 if (!SWIG_IsOK(res1)) {
3570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3571 }
3572 arg1 = reinterpret_cast< wxButton * >(argp1);
3573 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3574 if (!SWIG_IsOK(res2)) {
3575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3576 }
3577 arg2 = reinterpret_cast< wxWindow * >(argp2);
3578 if (obj2) {
3579 ecode3 = SWIG_AsVal_int(obj2, &val3);
3580 if (!SWIG_IsOK(ecode3)) {
3581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3582 }
3583 arg3 = static_cast< int >(val3);
3584 }
3585 if (obj3) {
3586 {
3587 arg4 = wxString_in_helper(obj3);
3588 if (arg4 == NULL) SWIG_fail;
3589 temp4 = true;
3590 }
3591 }
3592 if (obj4) {
3593 {
3594 arg5 = &temp5;
3595 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3596 }
3597 }
3598 if (obj5) {
3599 {
3600 arg6 = &temp6;
3601 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3602 }
3603 }
3604 if (obj6) {
3605 ecode7 = SWIG_AsVal_long(obj6, &val7);
3606 if (!SWIG_IsOK(ecode7)) {
3607 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3608 }
3609 arg7 = static_cast< long >(val7);
3610 }
3611 if (obj7) {
3612 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3613 if (!SWIG_IsOK(res8)) {
3614 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3615 }
3616 if (!argp8) {
3617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3618 }
3619 arg8 = reinterpret_cast< wxValidator * >(argp8);
3620 }
3621 if (obj8) {
3622 {
3623 arg9 = wxString_in_helper(obj8);
3624 if (arg9 == NULL) SWIG_fail;
3625 temp9 = true;
3626 }
3627 }
3628 {
3629 PyThreadState* __tstate = wxPyBeginAllowThreads();
3630 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3631 wxPyEndAllowThreads(__tstate);
3632 if (PyErr_Occurred()) SWIG_fail;
3633 }
3634 {
3635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3636 }
3637 {
3638 if (temp4)
3639 delete arg4;
3640 }
3641 {
3642 if (temp9)
3643 delete arg9;
3644 }
3645 return resultobj;
3646 fail:
3647 {
3648 if (temp4)
3649 delete arg4;
3650 }
3651 {
3652 if (temp9)
3653 delete arg9;
3654 }
3655 return NULL;
3656 }
3657
3658
3659 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3660 PyObject *resultobj = 0;
3661 wxButton *arg1 = (wxButton *) 0 ;
3662 void *argp1 = 0 ;
3663 int res1 = 0 ;
3664 PyObject *swig_obj[1] ;
3665
3666 if (!args) SWIG_fail;
3667 swig_obj[0] = args;
3668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3669 if (!SWIG_IsOK(res1)) {
3670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3671 }
3672 arg1 = reinterpret_cast< wxButton * >(argp1);
3673 {
3674 PyThreadState* __tstate = wxPyBeginAllowThreads();
3675 (arg1)->SetDefault();
3676 wxPyEndAllowThreads(__tstate);
3677 if (PyErr_Occurred()) SWIG_fail;
3678 }
3679 resultobj = SWIG_Py_Void();
3680 return resultobj;
3681 fail:
3682 return NULL;
3683 }
3684
3685
3686 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3687 PyObject *resultobj = 0;
3688 wxSize result;
3689
3690 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3691 {
3692 PyThreadState* __tstate = wxPyBeginAllowThreads();
3693 result = wxButton::GetDefaultSize();
3694 wxPyEndAllowThreads(__tstate);
3695 if (PyErr_Occurred()) SWIG_fail;
3696 }
3697 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3698 return resultobj;
3699 fail:
3700 return NULL;
3701 }
3702
3703
3704 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3705 PyObject *resultobj = 0;
3706 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3707 SwigValueWrapper<wxVisualAttributes > result;
3708 int val1 ;
3709 int ecode1 = 0 ;
3710 PyObject * obj0 = 0 ;
3711 char * kwnames[] = {
3712 (char *) "variant", NULL
3713 };
3714
3715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3716 if (obj0) {
3717 ecode1 = SWIG_AsVal_int(obj0, &val1);
3718 if (!SWIG_IsOK(ecode1)) {
3719 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3720 }
3721 arg1 = static_cast< wxWindowVariant >(val1);
3722 }
3723 {
3724 if (!wxPyCheckForApp()) SWIG_fail;
3725 PyThreadState* __tstate = wxPyBeginAllowThreads();
3726 result = wxButton::GetClassDefaultAttributes(arg1);
3727 wxPyEndAllowThreads(__tstate);
3728 if (PyErr_Occurred()) SWIG_fail;
3729 }
3730 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3731 return resultobj;
3732 fail:
3733 return NULL;
3734 }
3735
3736
3737 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3738 PyObject *obj;
3739 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3740 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3741 return SWIG_Py_Void();
3742 }
3743
3744 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3745 return SWIG_Python_InitShadowInstance(args);
3746 }
3747
3748 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3749 PyObject *resultobj = 0;
3750 wxWindow *arg1 = (wxWindow *) 0 ;
3751 int arg2 = (int) -1 ;
3752 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3753 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3754 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3755 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3756 wxSize const &arg5_defvalue = wxDefaultSize ;
3757 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3758 long arg6 = (long) wxBU_AUTODRAW ;
3759 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3760 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3761 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3762 wxString *arg8 = (wxString *) &arg8_defvalue ;
3763 wxBitmapButton *result = 0 ;
3764 void *argp1 = 0 ;
3765 int res1 = 0 ;
3766 int val2 ;
3767 int ecode2 = 0 ;
3768 void *argp3 = 0 ;
3769 int res3 = 0 ;
3770 wxPoint temp4 ;
3771 wxSize temp5 ;
3772 long val6 ;
3773 int ecode6 = 0 ;
3774 void *argp7 = 0 ;
3775 int res7 = 0 ;
3776 bool temp8 = false ;
3777 PyObject * obj0 = 0 ;
3778 PyObject * obj1 = 0 ;
3779 PyObject * obj2 = 0 ;
3780 PyObject * obj3 = 0 ;
3781 PyObject * obj4 = 0 ;
3782 PyObject * obj5 = 0 ;
3783 PyObject * obj6 = 0 ;
3784 PyObject * obj7 = 0 ;
3785 char * kwnames[] = {
3786 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3787 };
3788
3789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3791 if (!SWIG_IsOK(res1)) {
3792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3793 }
3794 arg1 = reinterpret_cast< wxWindow * >(argp1);
3795 if (obj1) {
3796 ecode2 = SWIG_AsVal_int(obj1, &val2);
3797 if (!SWIG_IsOK(ecode2)) {
3798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3799 }
3800 arg2 = static_cast< int >(val2);
3801 }
3802 if (obj2) {
3803 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3804 if (!SWIG_IsOK(res3)) {
3805 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3806 }
3807 if (!argp3) {
3808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3809 }
3810 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3811 }
3812 if (obj3) {
3813 {
3814 arg4 = &temp4;
3815 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3816 }
3817 }
3818 if (obj4) {
3819 {
3820 arg5 = &temp5;
3821 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3822 }
3823 }
3824 if (obj5) {
3825 ecode6 = SWIG_AsVal_long(obj5, &val6);
3826 if (!SWIG_IsOK(ecode6)) {
3827 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3828 }
3829 arg6 = static_cast< long >(val6);
3830 }
3831 if (obj6) {
3832 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3833 if (!SWIG_IsOK(res7)) {
3834 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3835 }
3836 if (!argp7) {
3837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3838 }
3839 arg7 = reinterpret_cast< wxValidator * >(argp7);
3840 }
3841 if (obj7) {
3842 {
3843 arg8 = wxString_in_helper(obj7);
3844 if (arg8 == NULL) SWIG_fail;
3845 temp8 = true;
3846 }
3847 }
3848 {
3849 if (!wxPyCheckForApp()) SWIG_fail;
3850 PyThreadState* __tstate = wxPyBeginAllowThreads();
3851 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3852 wxPyEndAllowThreads(__tstate);
3853 if (PyErr_Occurred()) SWIG_fail;
3854 }
3855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3856 {
3857 if (temp8)
3858 delete arg8;
3859 }
3860 return resultobj;
3861 fail:
3862 {
3863 if (temp8)
3864 delete arg8;
3865 }
3866 return NULL;
3867 }
3868
3869
3870 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3871 PyObject *resultobj = 0;
3872 wxBitmapButton *result = 0 ;
3873
3874 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3875 {
3876 if (!wxPyCheckForApp()) SWIG_fail;
3877 PyThreadState* __tstate = wxPyBeginAllowThreads();
3878 result = (wxBitmapButton *)new wxBitmapButton();
3879 wxPyEndAllowThreads(__tstate);
3880 if (PyErr_Occurred()) SWIG_fail;
3881 }
3882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3883 return resultobj;
3884 fail:
3885 return NULL;
3886 }
3887
3888
3889 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3890 PyObject *resultobj = 0;
3891 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3892 wxWindow *arg2 = (wxWindow *) 0 ;
3893 int arg3 = (int) -1 ;
3894 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3895 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3896 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3897 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3898 wxSize const &arg6_defvalue = wxDefaultSize ;
3899 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3900 long arg7 = (long) wxBU_AUTODRAW ;
3901 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3902 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3903 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3904 wxString *arg9 = (wxString *) &arg9_defvalue ;
3905 bool result;
3906 void *argp1 = 0 ;
3907 int res1 = 0 ;
3908 void *argp2 = 0 ;
3909 int res2 = 0 ;
3910 int val3 ;
3911 int ecode3 = 0 ;
3912 void *argp4 = 0 ;
3913 int res4 = 0 ;
3914 wxPoint temp5 ;
3915 wxSize temp6 ;
3916 long val7 ;
3917 int ecode7 = 0 ;
3918 void *argp8 = 0 ;
3919 int res8 = 0 ;
3920 bool temp9 = false ;
3921 PyObject * obj0 = 0 ;
3922 PyObject * obj1 = 0 ;
3923 PyObject * obj2 = 0 ;
3924 PyObject * obj3 = 0 ;
3925 PyObject * obj4 = 0 ;
3926 PyObject * obj5 = 0 ;
3927 PyObject * obj6 = 0 ;
3928 PyObject * obj7 = 0 ;
3929 PyObject * obj8 = 0 ;
3930 char * kwnames[] = {
3931 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3932 };
3933
3934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3936 if (!SWIG_IsOK(res1)) {
3937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3938 }
3939 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3940 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3941 if (!SWIG_IsOK(res2)) {
3942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3943 }
3944 arg2 = reinterpret_cast< wxWindow * >(argp2);
3945 if (obj2) {
3946 ecode3 = SWIG_AsVal_int(obj2, &val3);
3947 if (!SWIG_IsOK(ecode3)) {
3948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3949 }
3950 arg3 = static_cast< int >(val3);
3951 }
3952 if (obj3) {
3953 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3954 if (!SWIG_IsOK(res4)) {
3955 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3956 }
3957 if (!argp4) {
3958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3959 }
3960 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3961 }
3962 if (obj4) {
3963 {
3964 arg5 = &temp5;
3965 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3966 }
3967 }
3968 if (obj5) {
3969 {
3970 arg6 = &temp6;
3971 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3972 }
3973 }
3974 if (obj6) {
3975 ecode7 = SWIG_AsVal_long(obj6, &val7);
3976 if (!SWIG_IsOK(ecode7)) {
3977 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3978 }
3979 arg7 = static_cast< long >(val7);
3980 }
3981 if (obj7) {
3982 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3983 if (!SWIG_IsOK(res8)) {
3984 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3985 }
3986 if (!argp8) {
3987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3988 }
3989 arg8 = reinterpret_cast< wxValidator * >(argp8);
3990 }
3991 if (obj8) {
3992 {
3993 arg9 = wxString_in_helper(obj8);
3994 if (arg9 == NULL) SWIG_fail;
3995 temp9 = true;
3996 }
3997 }
3998 {
3999 PyThreadState* __tstate = wxPyBeginAllowThreads();
4000 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4001 wxPyEndAllowThreads(__tstate);
4002 if (PyErr_Occurred()) SWIG_fail;
4003 }
4004 {
4005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4006 }
4007 {
4008 if (temp9)
4009 delete arg9;
4010 }
4011 return resultobj;
4012 fail:
4013 {
4014 if (temp9)
4015 delete arg9;
4016 }
4017 return NULL;
4018 }
4019
4020
4021 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4022 PyObject *resultobj = 0;
4023 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4024 wxBitmap result;
4025 void *argp1 = 0 ;
4026 int res1 = 0 ;
4027 PyObject *swig_obj[1] ;
4028
4029 if (!args) SWIG_fail;
4030 swig_obj[0] = args;
4031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4032 if (!SWIG_IsOK(res1)) {
4033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4034 }
4035 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4036 {
4037 PyThreadState* __tstate = wxPyBeginAllowThreads();
4038 result = (arg1)->GetBitmapLabel();
4039 wxPyEndAllowThreads(__tstate);
4040 if (PyErr_Occurred()) SWIG_fail;
4041 }
4042 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4043 return resultobj;
4044 fail:
4045 return NULL;
4046 }
4047
4048
4049 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4050 PyObject *resultobj = 0;
4051 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4052 wxBitmap result;
4053 void *argp1 = 0 ;
4054 int res1 = 0 ;
4055 PyObject *swig_obj[1] ;
4056
4057 if (!args) SWIG_fail;
4058 swig_obj[0] = args;
4059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4060 if (!SWIG_IsOK(res1)) {
4061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4062 }
4063 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4064 {
4065 PyThreadState* __tstate = wxPyBeginAllowThreads();
4066 result = (arg1)->GetBitmapDisabled();
4067 wxPyEndAllowThreads(__tstate);
4068 if (PyErr_Occurred()) SWIG_fail;
4069 }
4070 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4071 return resultobj;
4072 fail:
4073 return NULL;
4074 }
4075
4076
4077 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4078 PyObject *resultobj = 0;
4079 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4080 wxBitmap result;
4081 void *argp1 = 0 ;
4082 int res1 = 0 ;
4083 PyObject *swig_obj[1] ;
4084
4085 if (!args) SWIG_fail;
4086 swig_obj[0] = args;
4087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4088 if (!SWIG_IsOK(res1)) {
4089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4090 }
4091 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4092 {
4093 PyThreadState* __tstate = wxPyBeginAllowThreads();
4094 result = (arg1)->GetBitmapFocus();
4095 wxPyEndAllowThreads(__tstate);
4096 if (PyErr_Occurred()) SWIG_fail;
4097 }
4098 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4099 return resultobj;
4100 fail:
4101 return NULL;
4102 }
4103
4104
4105 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4106 PyObject *resultobj = 0;
4107 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4108 wxBitmap result;
4109 void *argp1 = 0 ;
4110 int res1 = 0 ;
4111 PyObject *swig_obj[1] ;
4112
4113 if (!args) SWIG_fail;
4114 swig_obj[0] = args;
4115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4116 if (!SWIG_IsOK(res1)) {
4117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4118 }
4119 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4120 {
4121 PyThreadState* __tstate = wxPyBeginAllowThreads();
4122 result = (arg1)->GetBitmapSelected();
4123 wxPyEndAllowThreads(__tstate);
4124 if (PyErr_Occurred()) SWIG_fail;
4125 }
4126 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4127 return resultobj;
4128 fail:
4129 return NULL;
4130 }
4131
4132
4133 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4134 PyObject *resultobj = 0;
4135 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4136 wxBitmap result;
4137 void *argp1 = 0 ;
4138 int res1 = 0 ;
4139 PyObject *swig_obj[1] ;
4140
4141 if (!args) SWIG_fail;
4142 swig_obj[0] = args;
4143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4144 if (!SWIG_IsOK(res1)) {
4145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4146 }
4147 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4148 {
4149 PyThreadState* __tstate = wxPyBeginAllowThreads();
4150 result = (arg1)->GetBitmapHover();
4151 wxPyEndAllowThreads(__tstate);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 }
4154 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4155 return resultobj;
4156 fail:
4157 return NULL;
4158 }
4159
4160
4161 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4162 PyObject *resultobj = 0;
4163 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4164 wxBitmap *arg2 = 0 ;
4165 void *argp1 = 0 ;
4166 int res1 = 0 ;
4167 void *argp2 = 0 ;
4168 int res2 = 0 ;
4169 PyObject * obj0 = 0 ;
4170 PyObject * obj1 = 0 ;
4171 char * kwnames[] = {
4172 (char *) "self",(char *) "bitmap", NULL
4173 };
4174
4175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4177 if (!SWIG_IsOK(res1)) {
4178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4179 }
4180 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4181 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4182 if (!SWIG_IsOK(res2)) {
4183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4184 }
4185 if (!argp2) {
4186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4187 }
4188 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 resultobj = SWIG_Py_Void();
4196 return resultobj;
4197 fail:
4198 return NULL;
4199 }
4200
4201
4202 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4203 PyObject *resultobj = 0;
4204 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4205 wxBitmap *arg2 = 0 ;
4206 void *argp1 = 0 ;
4207 int res1 = 0 ;
4208 void *argp2 = 0 ;
4209 int res2 = 0 ;
4210 PyObject * obj0 = 0 ;
4211 PyObject * obj1 = 0 ;
4212 char * kwnames[] = {
4213 (char *) "self",(char *) "bitmap", NULL
4214 };
4215
4216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4218 if (!SWIG_IsOK(res1)) {
4219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4220 }
4221 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4223 if (!SWIG_IsOK(res2)) {
4224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4225 }
4226 if (!argp2) {
4227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4228 }
4229 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4230 {
4231 PyThreadState* __tstate = wxPyBeginAllowThreads();
4232 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4233 wxPyEndAllowThreads(__tstate);
4234 if (PyErr_Occurred()) SWIG_fail;
4235 }
4236 resultobj = SWIG_Py_Void();
4237 return resultobj;
4238 fail:
4239 return NULL;
4240 }
4241
4242
4243 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4244 PyObject *resultobj = 0;
4245 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4246 wxBitmap *arg2 = 0 ;
4247 void *argp1 = 0 ;
4248 int res1 = 0 ;
4249 void *argp2 = 0 ;
4250 int res2 = 0 ;
4251 PyObject * obj0 = 0 ;
4252 PyObject * obj1 = 0 ;
4253 char * kwnames[] = {
4254 (char *) "self",(char *) "bitmap", NULL
4255 };
4256
4257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4259 if (!SWIG_IsOK(res1)) {
4260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4261 }
4262 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4264 if (!SWIG_IsOK(res2)) {
4265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4266 }
4267 if (!argp2) {
4268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4269 }
4270 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4271 {
4272 PyThreadState* __tstate = wxPyBeginAllowThreads();
4273 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4274 wxPyEndAllowThreads(__tstate);
4275 if (PyErr_Occurred()) SWIG_fail;
4276 }
4277 resultobj = SWIG_Py_Void();
4278 return resultobj;
4279 fail:
4280 return NULL;
4281 }
4282
4283
4284 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4285 PyObject *resultobj = 0;
4286 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4287 wxBitmap *arg2 = 0 ;
4288 void *argp1 = 0 ;
4289 int res1 = 0 ;
4290 void *argp2 = 0 ;
4291 int res2 = 0 ;
4292 PyObject * obj0 = 0 ;
4293 PyObject * obj1 = 0 ;
4294 char * kwnames[] = {
4295 (char *) "self",(char *) "bitmap", NULL
4296 };
4297
4298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4300 if (!SWIG_IsOK(res1)) {
4301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4302 }
4303 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4304 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4305 if (!SWIG_IsOK(res2)) {
4306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4307 }
4308 if (!argp2) {
4309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4310 }
4311 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4312 {
4313 PyThreadState* __tstate = wxPyBeginAllowThreads();
4314 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4315 wxPyEndAllowThreads(__tstate);
4316 if (PyErr_Occurred()) SWIG_fail;
4317 }
4318 resultobj = SWIG_Py_Void();
4319 return resultobj;
4320 fail:
4321 return NULL;
4322 }
4323
4324
4325 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4326 PyObject *resultobj = 0;
4327 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4328 wxBitmap *arg2 = 0 ;
4329 void *argp1 = 0 ;
4330 int res1 = 0 ;
4331 void *argp2 = 0 ;
4332 int res2 = 0 ;
4333 PyObject * obj0 = 0 ;
4334 PyObject * obj1 = 0 ;
4335 char * kwnames[] = {
4336 (char *) "self",(char *) "hover", NULL
4337 };
4338
4339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4341 if (!SWIG_IsOK(res1)) {
4342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4343 }
4344 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4345 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4346 if (!SWIG_IsOK(res2)) {
4347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4348 }
4349 if (!argp2) {
4350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4351 }
4352 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4353 {
4354 PyThreadState* __tstate = wxPyBeginAllowThreads();
4355 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4356 wxPyEndAllowThreads(__tstate);
4357 if (PyErr_Occurred()) SWIG_fail;
4358 }
4359 resultobj = SWIG_Py_Void();
4360 return resultobj;
4361 fail:
4362 return NULL;
4363 }
4364
4365
4366 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4367 PyObject *resultobj = 0;
4368 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4369 int arg2 ;
4370 int arg3 ;
4371 void *argp1 = 0 ;
4372 int res1 = 0 ;
4373 int val2 ;
4374 int ecode2 = 0 ;
4375 int val3 ;
4376 int ecode3 = 0 ;
4377 PyObject * obj0 = 0 ;
4378 PyObject * obj1 = 0 ;
4379 PyObject * obj2 = 0 ;
4380 char * kwnames[] = {
4381 (char *) "self",(char *) "x",(char *) "y", NULL
4382 };
4383
4384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4386 if (!SWIG_IsOK(res1)) {
4387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4388 }
4389 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4390 ecode2 = SWIG_AsVal_int(obj1, &val2);
4391 if (!SWIG_IsOK(ecode2)) {
4392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4393 }
4394 arg2 = static_cast< int >(val2);
4395 ecode3 = SWIG_AsVal_int(obj2, &val3);
4396 if (!SWIG_IsOK(ecode3)) {
4397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4398 }
4399 arg3 = static_cast< int >(val3);
4400 {
4401 PyThreadState* __tstate = wxPyBeginAllowThreads();
4402 (arg1)->SetMargins(arg2,arg3);
4403 wxPyEndAllowThreads(__tstate);
4404 if (PyErr_Occurred()) SWIG_fail;
4405 }
4406 resultobj = SWIG_Py_Void();
4407 return resultobj;
4408 fail:
4409 return NULL;
4410 }
4411
4412
4413 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4414 PyObject *resultobj = 0;
4415 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4416 int result;
4417 void *argp1 = 0 ;
4418 int res1 = 0 ;
4419 PyObject *swig_obj[1] ;
4420
4421 if (!args) SWIG_fail;
4422 swig_obj[0] = args;
4423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4424 if (!SWIG_IsOK(res1)) {
4425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4426 }
4427 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4428 {
4429 PyThreadState* __tstate = wxPyBeginAllowThreads();
4430 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4431 wxPyEndAllowThreads(__tstate);
4432 if (PyErr_Occurred()) SWIG_fail;
4433 }
4434 resultobj = SWIG_From_int(static_cast< int >(result));
4435 return resultobj;
4436 fail:
4437 return NULL;
4438 }
4439
4440
4441 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4442 PyObject *resultobj = 0;
4443 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4444 int result;
4445 void *argp1 = 0 ;
4446 int res1 = 0 ;
4447 PyObject *swig_obj[1] ;
4448
4449 if (!args) SWIG_fail;
4450 swig_obj[0] = args;
4451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4452 if (!SWIG_IsOK(res1)) {
4453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4454 }
4455 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4456 {
4457 PyThreadState* __tstate = wxPyBeginAllowThreads();
4458 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4459 wxPyEndAllowThreads(__tstate);
4460 if (PyErr_Occurred()) SWIG_fail;
4461 }
4462 resultobj = SWIG_From_int(static_cast< int >(result));
4463 return resultobj;
4464 fail:
4465 return NULL;
4466 }
4467
4468
4469 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4470 PyObject *obj;
4471 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4472 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4473 return SWIG_Py_Void();
4474 }
4475
4476 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4477 return SWIG_Python_InitShadowInstance(args);
4478 }
4479
4480 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4481 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4482 return 1;
4483 }
4484
4485
4486 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4487 PyObject *pyobj = 0;
4488
4489 {
4490 #if wxUSE_UNICODE
4491 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4492 #else
4493 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4494 #endif
4495 }
4496 return pyobj;
4497 }
4498
4499
4500 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4501 PyObject *resultobj = 0;
4502 wxWindow *arg1 = (wxWindow *) 0 ;
4503 int arg2 = (int) -1 ;
4504 wxString const &arg3_defvalue = wxPyEmptyString ;
4505 wxString *arg3 = (wxString *) &arg3_defvalue ;
4506 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4507 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4508 wxSize const &arg5_defvalue = wxDefaultSize ;
4509 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4510 long arg6 = (long) 0 ;
4511 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4512 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4513 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4514 wxString *arg8 = (wxString *) &arg8_defvalue ;
4515 wxCheckBox *result = 0 ;
4516 void *argp1 = 0 ;
4517 int res1 = 0 ;
4518 int val2 ;
4519 int ecode2 = 0 ;
4520 bool temp3 = false ;
4521 wxPoint temp4 ;
4522 wxSize temp5 ;
4523 long val6 ;
4524 int ecode6 = 0 ;
4525 void *argp7 = 0 ;
4526 int res7 = 0 ;
4527 bool temp8 = false ;
4528 PyObject * obj0 = 0 ;
4529 PyObject * obj1 = 0 ;
4530 PyObject * obj2 = 0 ;
4531 PyObject * obj3 = 0 ;
4532 PyObject * obj4 = 0 ;
4533 PyObject * obj5 = 0 ;
4534 PyObject * obj6 = 0 ;
4535 PyObject * obj7 = 0 ;
4536 char * kwnames[] = {
4537 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4538 };
4539
4540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4542 if (!SWIG_IsOK(res1)) {
4543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4544 }
4545 arg1 = reinterpret_cast< wxWindow * >(argp1);
4546 if (obj1) {
4547 ecode2 = SWIG_AsVal_int(obj1, &val2);
4548 if (!SWIG_IsOK(ecode2)) {
4549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4550 }
4551 arg2 = static_cast< int >(val2);
4552 }
4553 if (obj2) {
4554 {
4555 arg3 = wxString_in_helper(obj2);
4556 if (arg3 == NULL) SWIG_fail;
4557 temp3 = true;
4558 }
4559 }
4560 if (obj3) {
4561 {
4562 arg4 = &temp4;
4563 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4564 }
4565 }
4566 if (obj4) {
4567 {
4568 arg5 = &temp5;
4569 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4570 }
4571 }
4572 if (obj5) {
4573 ecode6 = SWIG_AsVal_long(obj5, &val6);
4574 if (!SWIG_IsOK(ecode6)) {
4575 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4576 }
4577 arg6 = static_cast< long >(val6);
4578 }
4579 if (obj6) {
4580 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4581 if (!SWIG_IsOK(res7)) {
4582 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4583 }
4584 if (!argp7) {
4585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4586 }
4587 arg7 = reinterpret_cast< wxValidator * >(argp7);
4588 }
4589 if (obj7) {
4590 {
4591 arg8 = wxString_in_helper(obj7);
4592 if (arg8 == NULL) SWIG_fail;
4593 temp8 = true;
4594 }
4595 }
4596 {
4597 if (!wxPyCheckForApp()) SWIG_fail;
4598 PyThreadState* __tstate = wxPyBeginAllowThreads();
4599 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4600 wxPyEndAllowThreads(__tstate);
4601 if (PyErr_Occurred()) SWIG_fail;
4602 }
4603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4604 {
4605 if (temp3)
4606 delete arg3;
4607 }
4608 {
4609 if (temp8)
4610 delete arg8;
4611 }
4612 return resultobj;
4613 fail:
4614 {
4615 if (temp3)
4616 delete arg3;
4617 }
4618 {
4619 if (temp8)
4620 delete arg8;
4621 }
4622 return NULL;
4623 }
4624
4625
4626 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4627 PyObject *resultobj = 0;
4628 wxCheckBox *result = 0 ;
4629
4630 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4631 {
4632 if (!wxPyCheckForApp()) SWIG_fail;
4633 PyThreadState* __tstate = wxPyBeginAllowThreads();
4634 result = (wxCheckBox *)new wxCheckBox();
4635 wxPyEndAllowThreads(__tstate);
4636 if (PyErr_Occurred()) SWIG_fail;
4637 }
4638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4639 return resultobj;
4640 fail:
4641 return NULL;
4642 }
4643
4644
4645 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4646 PyObject *resultobj = 0;
4647 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4648 wxWindow *arg2 = (wxWindow *) 0 ;
4649 int arg3 = (int) -1 ;
4650 wxString const &arg4_defvalue = wxPyEmptyString ;
4651 wxString *arg4 = (wxString *) &arg4_defvalue ;
4652 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4653 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4654 wxSize const &arg6_defvalue = wxDefaultSize ;
4655 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4656 long arg7 = (long) 0 ;
4657 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4658 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4659 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4660 wxString *arg9 = (wxString *) &arg9_defvalue ;
4661 bool result;
4662 void *argp1 = 0 ;
4663 int res1 = 0 ;
4664 void *argp2 = 0 ;
4665 int res2 = 0 ;
4666 int val3 ;
4667 int ecode3 = 0 ;
4668 bool temp4 = false ;
4669 wxPoint temp5 ;
4670 wxSize temp6 ;
4671 long val7 ;
4672 int ecode7 = 0 ;
4673 void *argp8 = 0 ;
4674 int res8 = 0 ;
4675 bool temp9 = false ;
4676 PyObject * obj0 = 0 ;
4677 PyObject * obj1 = 0 ;
4678 PyObject * obj2 = 0 ;
4679 PyObject * obj3 = 0 ;
4680 PyObject * obj4 = 0 ;
4681 PyObject * obj5 = 0 ;
4682 PyObject * obj6 = 0 ;
4683 PyObject * obj7 = 0 ;
4684 PyObject * obj8 = 0 ;
4685 char * kwnames[] = {
4686 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4687 };
4688
4689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4691 if (!SWIG_IsOK(res1)) {
4692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4693 }
4694 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4695 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4696 if (!SWIG_IsOK(res2)) {
4697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4698 }
4699 arg2 = reinterpret_cast< wxWindow * >(argp2);
4700 if (obj2) {
4701 ecode3 = SWIG_AsVal_int(obj2, &val3);
4702 if (!SWIG_IsOK(ecode3)) {
4703 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4704 }
4705 arg3 = static_cast< int >(val3);
4706 }
4707 if (obj3) {
4708 {
4709 arg4 = wxString_in_helper(obj3);
4710 if (arg4 == NULL) SWIG_fail;
4711 temp4 = true;
4712 }
4713 }
4714 if (obj4) {
4715 {
4716 arg5 = &temp5;
4717 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4718 }
4719 }
4720 if (obj5) {
4721 {
4722 arg6 = &temp6;
4723 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4724 }
4725 }
4726 if (obj6) {
4727 ecode7 = SWIG_AsVal_long(obj6, &val7);
4728 if (!SWIG_IsOK(ecode7)) {
4729 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4730 }
4731 arg7 = static_cast< long >(val7);
4732 }
4733 if (obj7) {
4734 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4735 if (!SWIG_IsOK(res8)) {
4736 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4737 }
4738 if (!argp8) {
4739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4740 }
4741 arg8 = reinterpret_cast< wxValidator * >(argp8);
4742 }
4743 if (obj8) {
4744 {
4745 arg9 = wxString_in_helper(obj8);
4746 if (arg9 == NULL) SWIG_fail;
4747 temp9 = true;
4748 }
4749 }
4750 {
4751 PyThreadState* __tstate = wxPyBeginAllowThreads();
4752 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4753 wxPyEndAllowThreads(__tstate);
4754 if (PyErr_Occurred()) SWIG_fail;
4755 }
4756 {
4757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4758 }
4759 {
4760 if (temp4)
4761 delete arg4;
4762 }
4763 {
4764 if (temp9)
4765 delete arg9;
4766 }
4767 return resultobj;
4768 fail:
4769 {
4770 if (temp4)
4771 delete arg4;
4772 }
4773 {
4774 if (temp9)
4775 delete arg9;
4776 }
4777 return NULL;
4778 }
4779
4780
4781 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4782 PyObject *resultobj = 0;
4783 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4784 bool result;
4785 void *argp1 = 0 ;
4786 int res1 = 0 ;
4787 PyObject *swig_obj[1] ;
4788
4789 if (!args) SWIG_fail;
4790 swig_obj[0] = args;
4791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4792 if (!SWIG_IsOK(res1)) {
4793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4794 }
4795 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4796 {
4797 PyThreadState* __tstate = wxPyBeginAllowThreads();
4798 result = (bool)(arg1)->GetValue();
4799 wxPyEndAllowThreads(__tstate);
4800 if (PyErr_Occurred()) SWIG_fail;
4801 }
4802 {
4803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4804 }
4805 return resultobj;
4806 fail:
4807 return NULL;
4808 }
4809
4810
4811 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4812 PyObject *resultobj = 0;
4813 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4814 bool result;
4815 void *argp1 = 0 ;
4816 int res1 = 0 ;
4817 PyObject *swig_obj[1] ;
4818
4819 if (!args) SWIG_fail;
4820 swig_obj[0] = args;
4821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4822 if (!SWIG_IsOK(res1)) {
4823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4824 }
4825 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4826 {
4827 PyThreadState* __tstate = wxPyBeginAllowThreads();
4828 result = (bool)(arg1)->IsChecked();
4829 wxPyEndAllowThreads(__tstate);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 {
4833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4834 }
4835 return resultobj;
4836 fail:
4837 return NULL;
4838 }
4839
4840
4841 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4842 PyObject *resultobj = 0;
4843 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4844 bool arg2 ;
4845 void *argp1 = 0 ;
4846 int res1 = 0 ;
4847 bool val2 ;
4848 int ecode2 = 0 ;
4849 PyObject * obj0 = 0 ;
4850 PyObject * obj1 = 0 ;
4851 char * kwnames[] = {
4852 (char *) "self",(char *) "state", NULL
4853 };
4854
4855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4857 if (!SWIG_IsOK(res1)) {
4858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4859 }
4860 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4861 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4862 if (!SWIG_IsOK(ecode2)) {
4863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4864 }
4865 arg2 = static_cast< bool >(val2);
4866 {
4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
4868 (arg1)->SetValue(arg2);
4869 wxPyEndAllowThreads(__tstate);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 }
4872 resultobj = SWIG_Py_Void();
4873 return resultobj;
4874 fail:
4875 return NULL;
4876 }
4877
4878
4879 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4880 PyObject *resultobj = 0;
4881 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4882 wxCheckBoxState result;
4883 void *argp1 = 0 ;
4884 int res1 = 0 ;
4885 PyObject *swig_obj[1] ;
4886
4887 if (!args) SWIG_fail;
4888 swig_obj[0] = args;
4889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4890 if (!SWIG_IsOK(res1)) {
4891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4892 }
4893 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4894 {
4895 PyThreadState* __tstate = wxPyBeginAllowThreads();
4896 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4897 wxPyEndAllowThreads(__tstate);
4898 if (PyErr_Occurred()) SWIG_fail;
4899 }
4900 resultobj = SWIG_From_int(static_cast< int >(result));
4901 return resultobj;
4902 fail:
4903 return NULL;
4904 }
4905
4906
4907 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4908 PyObject *resultobj = 0;
4909 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4910 wxCheckBoxState arg2 ;
4911 void *argp1 = 0 ;
4912 int res1 = 0 ;
4913 int val2 ;
4914 int ecode2 = 0 ;
4915 PyObject * obj0 = 0 ;
4916 PyObject * obj1 = 0 ;
4917 char * kwnames[] = {
4918 (char *) "self",(char *) "state", NULL
4919 };
4920
4921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4923 if (!SWIG_IsOK(res1)) {
4924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4925 }
4926 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4927 ecode2 = SWIG_AsVal_int(obj1, &val2);
4928 if (!SWIG_IsOK(ecode2)) {
4929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4930 }
4931 arg2 = static_cast< wxCheckBoxState >(val2);
4932 {
4933 PyThreadState* __tstate = wxPyBeginAllowThreads();
4934 (arg1)->Set3StateValue(arg2);
4935 wxPyEndAllowThreads(__tstate);
4936 if (PyErr_Occurred()) SWIG_fail;
4937 }
4938 resultobj = SWIG_Py_Void();
4939 return resultobj;
4940 fail:
4941 return NULL;
4942 }
4943
4944
4945 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4946 PyObject *resultobj = 0;
4947 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4948 bool result;
4949 void *argp1 = 0 ;
4950 int res1 = 0 ;
4951 PyObject *swig_obj[1] ;
4952
4953 if (!args) SWIG_fail;
4954 swig_obj[0] = args;
4955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4956 if (!SWIG_IsOK(res1)) {
4957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4958 }
4959 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4960 {
4961 PyThreadState* __tstate = wxPyBeginAllowThreads();
4962 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 {
4967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4968 }
4969 return resultobj;
4970 fail:
4971 return NULL;
4972 }
4973
4974
4975 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4976 PyObject *resultobj = 0;
4977 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4978 bool result;
4979 void *argp1 = 0 ;
4980 int res1 = 0 ;
4981 PyObject *swig_obj[1] ;
4982
4983 if (!args) SWIG_fail;
4984 swig_obj[0] = args;
4985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4986 if (!SWIG_IsOK(res1)) {
4987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4988 }
4989 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4990 {
4991 PyThreadState* __tstate = wxPyBeginAllowThreads();
4992 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4993 wxPyEndAllowThreads(__tstate);
4994 if (PyErr_Occurred()) SWIG_fail;
4995 }
4996 {
4997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4998 }
4999 return resultobj;
5000 fail:
5001 return NULL;
5002 }
5003
5004
5005 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5006 PyObject *resultobj = 0;
5007 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5008 SwigValueWrapper<wxVisualAttributes > result;
5009 int val1 ;
5010 int ecode1 = 0 ;
5011 PyObject * obj0 = 0 ;
5012 char * kwnames[] = {
5013 (char *) "variant", NULL
5014 };
5015
5016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5017 if (obj0) {
5018 ecode1 = SWIG_AsVal_int(obj0, &val1);
5019 if (!SWIG_IsOK(ecode1)) {
5020 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5021 }
5022 arg1 = static_cast< wxWindowVariant >(val1);
5023 }
5024 {
5025 if (!wxPyCheckForApp()) SWIG_fail;
5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
5027 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5028 wxPyEndAllowThreads(__tstate);
5029 if (PyErr_Occurred()) SWIG_fail;
5030 }
5031 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5032 return resultobj;
5033 fail:
5034 return NULL;
5035 }
5036
5037
5038 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5039 PyObject *obj;
5040 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5041 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5042 return SWIG_Py_Void();
5043 }
5044
5045 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5046 return SWIG_Python_InitShadowInstance(args);
5047 }
5048
5049 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5050 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5051 return 1;
5052 }
5053
5054
5055 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5056 PyObject *pyobj = 0;
5057
5058 {
5059 #if wxUSE_UNICODE
5060 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5061 #else
5062 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5063 #endif
5064 }
5065 return pyobj;
5066 }
5067
5068
5069 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5070 PyObject *resultobj = 0;
5071 wxWindow *arg1 = (wxWindow *) 0 ;
5072 int arg2 = (int) -1 ;
5073 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5074 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5075 wxSize const &arg4_defvalue = wxDefaultSize ;
5076 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5077 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5078 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5079 long arg6 = (long) 0 ;
5080 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5081 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5082 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5083 wxString *arg8 = (wxString *) &arg8_defvalue ;
5084 wxChoice *result = 0 ;
5085 void *argp1 = 0 ;
5086 int res1 = 0 ;
5087 int val2 ;
5088 int ecode2 = 0 ;
5089 wxPoint temp3 ;
5090 wxSize temp4 ;
5091 bool temp5 = false ;
5092 long val6 ;
5093 int ecode6 = 0 ;
5094 void *argp7 = 0 ;
5095 int res7 = 0 ;
5096 bool temp8 = false ;
5097 PyObject * obj0 = 0 ;
5098 PyObject * obj1 = 0 ;
5099 PyObject * obj2 = 0 ;
5100 PyObject * obj3 = 0 ;
5101 PyObject * obj4 = 0 ;
5102 PyObject * obj5 = 0 ;
5103 PyObject * obj6 = 0 ;
5104 PyObject * obj7 = 0 ;
5105 char * kwnames[] = {
5106 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5107 };
5108
5109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5111 if (!SWIG_IsOK(res1)) {
5112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5113 }
5114 arg1 = reinterpret_cast< wxWindow * >(argp1);
5115 if (obj1) {
5116 ecode2 = SWIG_AsVal_int(obj1, &val2);
5117 if (!SWIG_IsOK(ecode2)) {
5118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5119 }
5120 arg2 = static_cast< int >(val2);
5121 }
5122 if (obj2) {
5123 {
5124 arg3 = &temp3;
5125 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5126 }
5127 }
5128 if (obj3) {
5129 {
5130 arg4 = &temp4;
5131 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5132 }
5133 }
5134 if (obj4) {
5135 {
5136 if (! PySequence_Check(obj4)) {
5137 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5138 SWIG_fail;
5139 }
5140 arg5 = new wxArrayString;
5141 temp5 = true;
5142 int i, len=PySequence_Length(obj4);
5143 for (i=0; i<len; i++) {
5144 PyObject* item = PySequence_GetItem(obj4, i);
5145 wxString* s = wxString_in_helper(item);
5146 if (PyErr_Occurred()) SWIG_fail;
5147 arg5->Add(*s);
5148 delete s;
5149 Py_DECREF(item);
5150 }
5151 }
5152 }
5153 if (obj5) {
5154 ecode6 = SWIG_AsVal_long(obj5, &val6);
5155 if (!SWIG_IsOK(ecode6)) {
5156 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5157 }
5158 arg6 = static_cast< long >(val6);
5159 }
5160 if (obj6) {
5161 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5162 if (!SWIG_IsOK(res7)) {
5163 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5164 }
5165 if (!argp7) {
5166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5167 }
5168 arg7 = reinterpret_cast< wxValidator * >(argp7);
5169 }
5170 if (obj7) {
5171 {
5172 arg8 = wxString_in_helper(obj7);
5173 if (arg8 == NULL) SWIG_fail;
5174 temp8 = true;
5175 }
5176 }
5177 {
5178 if (!wxPyCheckForApp()) SWIG_fail;
5179 PyThreadState* __tstate = wxPyBeginAllowThreads();
5180 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5181 wxPyEndAllowThreads(__tstate);
5182 if (PyErr_Occurred()) SWIG_fail;
5183 }
5184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5185 {
5186 if (temp5) delete arg5;
5187 }
5188 {
5189 if (temp8)
5190 delete arg8;
5191 }
5192 return resultobj;
5193 fail:
5194 {
5195 if (temp5) delete arg5;
5196 }
5197 {
5198 if (temp8)
5199 delete arg8;
5200 }
5201 return NULL;
5202 }
5203
5204
5205 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5206 PyObject *resultobj = 0;
5207 wxChoice *result = 0 ;
5208
5209 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5210 {
5211 if (!wxPyCheckForApp()) SWIG_fail;
5212 PyThreadState* __tstate = wxPyBeginAllowThreads();
5213 result = (wxChoice *)new wxChoice();
5214 wxPyEndAllowThreads(__tstate);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 }
5217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5218 return resultobj;
5219 fail:
5220 return NULL;
5221 }
5222
5223
5224 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5225 PyObject *resultobj = 0;
5226 wxChoice *arg1 = (wxChoice *) 0 ;
5227 wxWindow *arg2 = (wxWindow *) 0 ;
5228 int arg3 = (int) -1 ;
5229 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5230 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5231 wxSize const &arg5_defvalue = wxDefaultSize ;
5232 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5233 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5234 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5235 long arg7 = (long) 0 ;
5236 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5237 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5238 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5239 wxString *arg9 = (wxString *) &arg9_defvalue ;
5240 bool result;
5241 void *argp1 = 0 ;
5242 int res1 = 0 ;
5243 void *argp2 = 0 ;
5244 int res2 = 0 ;
5245 int val3 ;
5246 int ecode3 = 0 ;
5247 wxPoint temp4 ;
5248 wxSize temp5 ;
5249 bool temp6 = false ;
5250 long val7 ;
5251 int ecode7 = 0 ;
5252 void *argp8 = 0 ;
5253 int res8 = 0 ;
5254 bool temp9 = false ;
5255 PyObject * obj0 = 0 ;
5256 PyObject * obj1 = 0 ;
5257 PyObject * obj2 = 0 ;
5258 PyObject * obj3 = 0 ;
5259 PyObject * obj4 = 0 ;
5260 PyObject * obj5 = 0 ;
5261 PyObject * obj6 = 0 ;
5262 PyObject * obj7 = 0 ;
5263 PyObject * obj8 = 0 ;
5264 char * kwnames[] = {
5265 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5266 };
5267
5268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5270 if (!SWIG_IsOK(res1)) {
5271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5272 }
5273 arg1 = reinterpret_cast< wxChoice * >(argp1);
5274 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5275 if (!SWIG_IsOK(res2)) {
5276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5277 }
5278 arg2 = reinterpret_cast< wxWindow * >(argp2);
5279 if (obj2) {
5280 ecode3 = SWIG_AsVal_int(obj2, &val3);
5281 if (!SWIG_IsOK(ecode3)) {
5282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5283 }
5284 arg3 = static_cast< int >(val3);
5285 }
5286 if (obj3) {
5287 {
5288 arg4 = &temp4;
5289 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5290 }
5291 }
5292 if (obj4) {
5293 {
5294 arg5 = &temp5;
5295 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5296 }
5297 }
5298 if (obj5) {
5299 {
5300 if (! PySequence_Check(obj5)) {
5301 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5302 SWIG_fail;
5303 }
5304 arg6 = new wxArrayString;
5305 temp6 = true;
5306 int i, len=PySequence_Length(obj5);
5307 for (i=0; i<len; i++) {
5308 PyObject* item = PySequence_GetItem(obj5, i);
5309 wxString* s = wxString_in_helper(item);
5310 if (PyErr_Occurred()) SWIG_fail;
5311 arg6->Add(*s);
5312 delete s;
5313 Py_DECREF(item);
5314 }
5315 }
5316 }
5317 if (obj6) {
5318 ecode7 = SWIG_AsVal_long(obj6, &val7);
5319 if (!SWIG_IsOK(ecode7)) {
5320 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5321 }
5322 arg7 = static_cast< long >(val7);
5323 }
5324 if (obj7) {
5325 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5326 if (!SWIG_IsOK(res8)) {
5327 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5328 }
5329 if (!argp8) {
5330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5331 }
5332 arg8 = reinterpret_cast< wxValidator * >(argp8);
5333 }
5334 if (obj8) {
5335 {
5336 arg9 = wxString_in_helper(obj8);
5337 if (arg9 == NULL) SWIG_fail;
5338 temp9 = true;
5339 }
5340 }
5341 {
5342 PyThreadState* __tstate = wxPyBeginAllowThreads();
5343 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5344 wxPyEndAllowThreads(__tstate);
5345 if (PyErr_Occurred()) SWIG_fail;
5346 }
5347 {
5348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5349 }
5350 {
5351 if (temp6) delete arg6;
5352 }
5353 {
5354 if (temp9)
5355 delete arg9;
5356 }
5357 return resultobj;
5358 fail:
5359 {
5360 if (temp6) delete arg6;
5361 }
5362 {
5363 if (temp9)
5364 delete arg9;
5365 }
5366 return NULL;
5367 }
5368
5369
5370 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5371 PyObject *resultobj = 0;
5372 wxChoice *arg1 = (wxChoice *) 0 ;
5373 int result;
5374 void *argp1 = 0 ;
5375 int res1 = 0 ;
5376 PyObject *swig_obj[1] ;
5377
5378 if (!args) SWIG_fail;
5379 swig_obj[0] = args;
5380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5381 if (!SWIG_IsOK(res1)) {
5382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5383 }
5384 arg1 = reinterpret_cast< wxChoice * >(argp1);
5385 {
5386 PyThreadState* __tstate = wxPyBeginAllowThreads();
5387 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5388 wxPyEndAllowThreads(__tstate);
5389 if (PyErr_Occurred()) SWIG_fail;
5390 }
5391 resultobj = SWIG_From_int(static_cast< int >(result));
5392 return resultobj;
5393 fail:
5394 return NULL;
5395 }
5396
5397
5398 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5399 PyObject *resultobj = 0;
5400 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5401 SwigValueWrapper<wxVisualAttributes > result;
5402 int val1 ;
5403 int ecode1 = 0 ;
5404 PyObject * obj0 = 0 ;
5405 char * kwnames[] = {
5406 (char *) "variant", NULL
5407 };
5408
5409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5410 if (obj0) {
5411 ecode1 = SWIG_AsVal_int(obj0, &val1);
5412 if (!SWIG_IsOK(ecode1)) {
5413 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5414 }
5415 arg1 = static_cast< wxWindowVariant >(val1);
5416 }
5417 {
5418 if (!wxPyCheckForApp()) SWIG_fail;
5419 PyThreadState* __tstate = wxPyBeginAllowThreads();
5420 result = wxChoice::GetClassDefaultAttributes(arg1);
5421 wxPyEndAllowThreads(__tstate);
5422 if (PyErr_Occurred()) SWIG_fail;
5423 }
5424 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5425 return resultobj;
5426 fail:
5427 return NULL;
5428 }
5429
5430
5431 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5432 PyObject *obj;
5433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5434 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5435 return SWIG_Py_Void();
5436 }
5437
5438 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5439 return SWIG_Python_InitShadowInstance(args);
5440 }
5441
5442 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5443 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5444 return 1;
5445 }
5446
5447
5448 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5449 PyObject *pyobj = 0;
5450
5451 {
5452 #if wxUSE_UNICODE
5453 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5454 #else
5455 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5456 #endif
5457 }
5458 return pyobj;
5459 }
5460
5461
5462 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5463 PyObject *resultobj = 0;
5464 wxWindow *arg1 = (wxWindow *) 0 ;
5465 int arg2 = (int) -1 ;
5466 wxString const &arg3_defvalue = wxPyEmptyString ;
5467 wxString *arg3 = (wxString *) &arg3_defvalue ;
5468 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5469 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5470 wxSize const &arg5_defvalue = wxDefaultSize ;
5471 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5472 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5473 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5474 long arg7 = (long) 0 ;
5475 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5476 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5477 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5478 wxString *arg9 = (wxString *) &arg9_defvalue ;
5479 wxComboBox *result = 0 ;
5480 void *argp1 = 0 ;
5481 int res1 = 0 ;
5482 int val2 ;
5483 int ecode2 = 0 ;
5484 bool temp3 = false ;
5485 wxPoint temp4 ;
5486 wxSize temp5 ;
5487 bool temp6 = false ;
5488 long val7 ;
5489 int ecode7 = 0 ;
5490 void *argp8 = 0 ;
5491 int res8 = 0 ;
5492 bool temp9 = false ;
5493 PyObject * obj0 = 0 ;
5494 PyObject * obj1 = 0 ;
5495 PyObject * obj2 = 0 ;
5496 PyObject * obj3 = 0 ;
5497 PyObject * obj4 = 0 ;
5498 PyObject * obj5 = 0 ;
5499 PyObject * obj6 = 0 ;
5500 PyObject * obj7 = 0 ;
5501 PyObject * obj8 = 0 ;
5502 char * kwnames[] = {
5503 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5504 };
5505
5506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5508 if (!SWIG_IsOK(res1)) {
5509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5510 }
5511 arg1 = reinterpret_cast< wxWindow * >(argp1);
5512 if (obj1) {
5513 ecode2 = SWIG_AsVal_int(obj1, &val2);
5514 if (!SWIG_IsOK(ecode2)) {
5515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5516 }
5517 arg2 = static_cast< int >(val2);
5518 }
5519 if (obj2) {
5520 {
5521 arg3 = wxString_in_helper(obj2);
5522 if (arg3 == NULL) SWIG_fail;
5523 temp3 = true;
5524 }
5525 }
5526 if (obj3) {
5527 {
5528 arg4 = &temp4;
5529 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5530 }
5531 }
5532 if (obj4) {
5533 {
5534 arg5 = &temp5;
5535 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5536 }
5537 }
5538 if (obj5) {
5539 {
5540 if (! PySequence_Check(obj5)) {
5541 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5542 SWIG_fail;
5543 }
5544 arg6 = new wxArrayString;
5545 temp6 = true;
5546 int i, len=PySequence_Length(obj5);
5547 for (i=0; i<len; i++) {
5548 PyObject* item = PySequence_GetItem(obj5, i);
5549 wxString* s = wxString_in_helper(item);
5550 if (PyErr_Occurred()) SWIG_fail;
5551 arg6->Add(*s);
5552 delete s;
5553 Py_DECREF(item);
5554 }
5555 }
5556 }
5557 if (obj6) {
5558 ecode7 = SWIG_AsVal_long(obj6, &val7);
5559 if (!SWIG_IsOK(ecode7)) {
5560 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5561 }
5562 arg7 = static_cast< long >(val7);
5563 }
5564 if (obj7) {
5565 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5566 if (!SWIG_IsOK(res8)) {
5567 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5568 }
5569 if (!argp8) {
5570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5571 }
5572 arg8 = reinterpret_cast< wxValidator * >(argp8);
5573 }
5574 if (obj8) {
5575 {
5576 arg9 = wxString_in_helper(obj8);
5577 if (arg9 == NULL) SWIG_fail;
5578 temp9 = true;
5579 }
5580 }
5581 {
5582 if (!wxPyCheckForApp()) SWIG_fail;
5583 PyThreadState* __tstate = wxPyBeginAllowThreads();
5584 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);
5585 wxPyEndAllowThreads(__tstate);
5586 if (PyErr_Occurred()) SWIG_fail;
5587 }
5588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5589 {
5590 if (temp3)
5591 delete arg3;
5592 }
5593 {
5594 if (temp6) delete arg6;
5595 }
5596 {
5597 if (temp9)
5598 delete arg9;
5599 }
5600 return resultobj;
5601 fail:
5602 {
5603 if (temp3)
5604 delete arg3;
5605 }
5606 {
5607 if (temp6) delete arg6;
5608 }
5609 {
5610 if (temp9)
5611 delete arg9;
5612 }
5613 return NULL;
5614 }
5615
5616
5617 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5618 PyObject *resultobj = 0;
5619 wxComboBox *result = 0 ;
5620
5621 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5622 {
5623 if (!wxPyCheckForApp()) SWIG_fail;
5624 PyThreadState* __tstate = wxPyBeginAllowThreads();
5625 result = (wxComboBox *)new wxComboBox();
5626 wxPyEndAllowThreads(__tstate);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 }
5629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5630 return resultobj;
5631 fail:
5632 return NULL;
5633 }
5634
5635
5636 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5637 PyObject *resultobj = 0;
5638 wxComboBox *arg1 = (wxComboBox *) 0 ;
5639 wxWindow *arg2 = (wxWindow *) 0 ;
5640 int arg3 = (int) -1 ;
5641 wxString const &arg4_defvalue = wxPyEmptyString ;
5642 wxString *arg4 = (wxString *) &arg4_defvalue ;
5643 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5644 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5645 wxSize const &arg6_defvalue = wxDefaultSize ;
5646 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5647 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5648 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5649 long arg8 = (long) 0 ;
5650 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5651 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5652 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5653 wxString *arg10 = (wxString *) &arg10_defvalue ;
5654 bool result;
5655 void *argp1 = 0 ;
5656 int res1 = 0 ;
5657 void *argp2 = 0 ;
5658 int res2 = 0 ;
5659 int val3 ;
5660 int ecode3 = 0 ;
5661 bool temp4 = false ;
5662 wxPoint temp5 ;
5663 wxSize temp6 ;
5664 bool temp7 = false ;
5665 long val8 ;
5666 int ecode8 = 0 ;
5667 void *argp9 = 0 ;
5668 int res9 = 0 ;
5669 bool temp10 = false ;
5670 PyObject * obj0 = 0 ;
5671 PyObject * obj1 = 0 ;
5672 PyObject * obj2 = 0 ;
5673 PyObject * obj3 = 0 ;
5674 PyObject * obj4 = 0 ;
5675 PyObject * obj5 = 0 ;
5676 PyObject * obj6 = 0 ;
5677 PyObject * obj7 = 0 ;
5678 PyObject * obj8 = 0 ;
5679 PyObject * obj9 = 0 ;
5680 char * kwnames[] = {
5681 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5682 };
5683
5684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5686 if (!SWIG_IsOK(res1)) {
5687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5688 }
5689 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5690 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5691 if (!SWIG_IsOK(res2)) {
5692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5693 }
5694 arg2 = reinterpret_cast< wxWindow * >(argp2);
5695 if (obj2) {
5696 ecode3 = SWIG_AsVal_int(obj2, &val3);
5697 if (!SWIG_IsOK(ecode3)) {
5698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5699 }
5700 arg3 = static_cast< int >(val3);
5701 }
5702 if (obj3) {
5703 {
5704 arg4 = wxString_in_helper(obj3);
5705 if (arg4 == NULL) SWIG_fail;
5706 temp4 = true;
5707 }
5708 }
5709 if (obj4) {
5710 {
5711 arg5 = &temp5;
5712 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5713 }
5714 }
5715 if (obj5) {
5716 {
5717 arg6 = &temp6;
5718 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5719 }
5720 }
5721 if (obj6) {
5722 {
5723 if (! PySequence_Check(obj6)) {
5724 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5725 SWIG_fail;
5726 }
5727 arg7 = new wxArrayString;
5728 temp7 = true;
5729 int i, len=PySequence_Length(obj6);
5730 for (i=0; i<len; i++) {
5731 PyObject* item = PySequence_GetItem(obj6, i);
5732 wxString* s = wxString_in_helper(item);
5733 if (PyErr_Occurred()) SWIG_fail;
5734 arg7->Add(*s);
5735 delete s;
5736 Py_DECREF(item);
5737 }
5738 }
5739 }
5740 if (obj7) {
5741 ecode8 = SWIG_AsVal_long(obj7, &val8);
5742 if (!SWIG_IsOK(ecode8)) {
5743 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5744 }
5745 arg8 = static_cast< long >(val8);
5746 }
5747 if (obj8) {
5748 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5749 if (!SWIG_IsOK(res9)) {
5750 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5751 }
5752 if (!argp9) {
5753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5754 }
5755 arg9 = reinterpret_cast< wxValidator * >(argp9);
5756 }
5757 if (obj9) {
5758 {
5759 arg10 = wxString_in_helper(obj9);
5760 if (arg10 == NULL) SWIG_fail;
5761 temp10 = true;
5762 }
5763 }
5764 {
5765 PyThreadState* __tstate = wxPyBeginAllowThreads();
5766 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);
5767 wxPyEndAllowThreads(__tstate);
5768 if (PyErr_Occurred()) SWIG_fail;
5769 }
5770 {
5771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5772 }
5773 {
5774 if (temp4)
5775 delete arg4;
5776 }
5777 {
5778 if (temp7) delete arg7;
5779 }
5780 {
5781 if (temp10)
5782 delete arg10;
5783 }
5784 return resultobj;
5785 fail:
5786 {
5787 if (temp4)
5788 delete arg4;
5789 }
5790 {
5791 if (temp7) delete arg7;
5792 }
5793 {
5794 if (temp10)
5795 delete arg10;
5796 }
5797 return NULL;
5798 }
5799
5800
5801 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5802 PyObject *resultobj = 0;
5803 wxComboBox *arg1 = (wxComboBox *) 0 ;
5804 wxString result;
5805 void *argp1 = 0 ;
5806 int res1 = 0 ;
5807 PyObject *swig_obj[1] ;
5808
5809 if (!args) SWIG_fail;
5810 swig_obj[0] = args;
5811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5812 if (!SWIG_IsOK(res1)) {
5813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5814 }
5815 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5816 {
5817 PyThreadState* __tstate = wxPyBeginAllowThreads();
5818 result = ((wxComboBox const *)arg1)->GetValue();
5819 wxPyEndAllowThreads(__tstate);
5820 if (PyErr_Occurred()) SWIG_fail;
5821 }
5822 {
5823 #if wxUSE_UNICODE
5824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5825 #else
5826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5827 #endif
5828 }
5829 return resultobj;
5830 fail:
5831 return NULL;
5832 }
5833
5834
5835 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5836 PyObject *resultobj = 0;
5837 wxComboBox *arg1 = (wxComboBox *) 0 ;
5838 wxString *arg2 = 0 ;
5839 void *argp1 = 0 ;
5840 int res1 = 0 ;
5841 bool temp2 = false ;
5842 PyObject * obj0 = 0 ;
5843 PyObject * obj1 = 0 ;
5844 char * kwnames[] = {
5845 (char *) "self",(char *) "value", NULL
5846 };
5847
5848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5850 if (!SWIG_IsOK(res1)) {
5851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5852 }
5853 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5854 {
5855 arg2 = wxString_in_helper(obj1);
5856 if (arg2 == NULL) SWIG_fail;
5857 temp2 = true;
5858 }
5859 {
5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
5861 (arg1)->SetValue((wxString const &)*arg2);
5862 wxPyEndAllowThreads(__tstate);
5863 if (PyErr_Occurred()) SWIG_fail;
5864 }
5865 resultobj = SWIG_Py_Void();
5866 {
5867 if (temp2)
5868 delete arg2;
5869 }
5870 return resultobj;
5871 fail:
5872 {
5873 if (temp2)
5874 delete arg2;
5875 }
5876 return NULL;
5877 }
5878
5879
5880 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5881 PyObject *resultobj = 0;
5882 wxComboBox *arg1 = (wxComboBox *) 0 ;
5883 void *argp1 = 0 ;
5884 int res1 = 0 ;
5885 PyObject *swig_obj[1] ;
5886
5887 if (!args) SWIG_fail;
5888 swig_obj[0] = args;
5889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5890 if (!SWIG_IsOK(res1)) {
5891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5892 }
5893 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5894 {
5895 PyThreadState* __tstate = wxPyBeginAllowThreads();
5896 (arg1)->Copy();
5897 wxPyEndAllowThreads(__tstate);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 resultobj = SWIG_Py_Void();
5901 return resultobj;
5902 fail:
5903 return NULL;
5904 }
5905
5906
5907 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5908 PyObject *resultobj = 0;
5909 wxComboBox *arg1 = (wxComboBox *) 0 ;
5910 void *argp1 = 0 ;
5911 int res1 = 0 ;
5912 PyObject *swig_obj[1] ;
5913
5914 if (!args) SWIG_fail;
5915 swig_obj[0] = args;
5916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5917 if (!SWIG_IsOK(res1)) {
5918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5919 }
5920 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5921 {
5922 PyThreadState* __tstate = wxPyBeginAllowThreads();
5923 (arg1)->Cut();
5924 wxPyEndAllowThreads(__tstate);
5925 if (PyErr_Occurred()) SWIG_fail;
5926 }
5927 resultobj = SWIG_Py_Void();
5928 return resultobj;
5929 fail:
5930 return NULL;
5931 }
5932
5933
5934 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5935 PyObject *resultobj = 0;
5936 wxComboBox *arg1 = (wxComboBox *) 0 ;
5937 void *argp1 = 0 ;
5938 int res1 = 0 ;
5939 PyObject *swig_obj[1] ;
5940
5941 if (!args) SWIG_fail;
5942 swig_obj[0] = args;
5943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5944 if (!SWIG_IsOK(res1)) {
5945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5946 }
5947 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5948 {
5949 PyThreadState* __tstate = wxPyBeginAllowThreads();
5950 (arg1)->Paste();
5951 wxPyEndAllowThreads(__tstate);
5952 if (PyErr_Occurred()) SWIG_fail;
5953 }
5954 resultobj = SWIG_Py_Void();
5955 return resultobj;
5956 fail:
5957 return NULL;
5958 }
5959
5960
5961 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj = 0;
5963 wxComboBox *arg1 = (wxComboBox *) 0 ;
5964 long arg2 ;
5965 void *argp1 = 0 ;
5966 int res1 = 0 ;
5967 long val2 ;
5968 int ecode2 = 0 ;
5969 PyObject * obj0 = 0 ;
5970 PyObject * obj1 = 0 ;
5971 char * kwnames[] = {
5972 (char *) "self",(char *) "pos", NULL
5973 };
5974
5975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5977 if (!SWIG_IsOK(res1)) {
5978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5979 }
5980 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5981 ecode2 = SWIG_AsVal_long(obj1, &val2);
5982 if (!SWIG_IsOK(ecode2)) {
5983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5984 }
5985 arg2 = static_cast< long >(val2);
5986 {
5987 PyThreadState* __tstate = wxPyBeginAllowThreads();
5988 (arg1)->SetInsertionPoint(arg2);
5989 wxPyEndAllowThreads(__tstate);
5990 if (PyErr_Occurred()) SWIG_fail;
5991 }
5992 resultobj = SWIG_Py_Void();
5993 return resultobj;
5994 fail:
5995 return NULL;
5996 }
5997
5998
5999 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6000 PyObject *resultobj = 0;
6001 wxComboBox *arg1 = (wxComboBox *) 0 ;
6002 long result;
6003 void *argp1 = 0 ;
6004 int res1 = 0 ;
6005 PyObject *swig_obj[1] ;
6006
6007 if (!args) SWIG_fail;
6008 swig_obj[0] = args;
6009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6010 if (!SWIG_IsOK(res1)) {
6011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6012 }
6013 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6014 {
6015 PyThreadState* __tstate = wxPyBeginAllowThreads();
6016 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6017 wxPyEndAllowThreads(__tstate);
6018 if (PyErr_Occurred()) SWIG_fail;
6019 }
6020 resultobj = SWIG_From_long(static_cast< long >(result));
6021 return resultobj;
6022 fail:
6023 return NULL;
6024 }
6025
6026
6027 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6028 PyObject *resultobj = 0;
6029 wxComboBox *arg1 = (wxComboBox *) 0 ;
6030 long result;
6031 void *argp1 = 0 ;
6032 int res1 = 0 ;
6033 PyObject *swig_obj[1] ;
6034
6035 if (!args) SWIG_fail;
6036 swig_obj[0] = args;
6037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6038 if (!SWIG_IsOK(res1)) {
6039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6040 }
6041 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6042 {
6043 PyThreadState* __tstate = wxPyBeginAllowThreads();
6044 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6045 wxPyEndAllowThreads(__tstate);
6046 if (PyErr_Occurred()) SWIG_fail;
6047 }
6048 resultobj = SWIG_From_long(static_cast< long >(result));
6049 return resultobj;
6050 fail:
6051 return NULL;
6052 }
6053
6054
6055 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6056 PyObject *resultobj = 0;
6057 wxComboBox *arg1 = (wxComboBox *) 0 ;
6058 long arg2 ;
6059 long arg3 ;
6060 wxString *arg4 = 0 ;
6061 void *argp1 = 0 ;
6062 int res1 = 0 ;
6063 long val2 ;
6064 int ecode2 = 0 ;
6065 long val3 ;
6066 int ecode3 = 0 ;
6067 bool temp4 = false ;
6068 PyObject * obj0 = 0 ;
6069 PyObject * obj1 = 0 ;
6070 PyObject * obj2 = 0 ;
6071 PyObject * obj3 = 0 ;
6072 char * kwnames[] = {
6073 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6074 };
6075
6076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6078 if (!SWIG_IsOK(res1)) {
6079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6080 }
6081 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6082 ecode2 = SWIG_AsVal_long(obj1, &val2);
6083 if (!SWIG_IsOK(ecode2)) {
6084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6085 }
6086 arg2 = static_cast< long >(val2);
6087 ecode3 = SWIG_AsVal_long(obj2, &val3);
6088 if (!SWIG_IsOK(ecode3)) {
6089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6090 }
6091 arg3 = static_cast< long >(val3);
6092 {
6093 arg4 = wxString_in_helper(obj3);
6094 if (arg4 == NULL) SWIG_fail;
6095 temp4 = true;
6096 }
6097 {
6098 PyThreadState* __tstate = wxPyBeginAllowThreads();
6099 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6100 wxPyEndAllowThreads(__tstate);
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 resultobj = SWIG_Py_Void();
6104 {
6105 if (temp4)
6106 delete arg4;
6107 }
6108 return resultobj;
6109 fail:
6110 {
6111 if (temp4)
6112 delete arg4;
6113 }
6114 return NULL;
6115 }
6116
6117
6118 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6119 PyObject *resultobj = 0;
6120 wxComboBox *arg1 = (wxComboBox *) 0 ;
6121 long arg2 ;
6122 long arg3 ;
6123 void *argp1 = 0 ;
6124 int res1 = 0 ;
6125 long val2 ;
6126 int ecode2 = 0 ;
6127 long val3 ;
6128 int ecode3 = 0 ;
6129 PyObject * obj0 = 0 ;
6130 PyObject * obj1 = 0 ;
6131 PyObject * obj2 = 0 ;
6132 char * kwnames[] = {
6133 (char *) "self",(char *) "from",(char *) "to", NULL
6134 };
6135
6136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6138 if (!SWIG_IsOK(res1)) {
6139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6140 }
6141 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6142 ecode2 = SWIG_AsVal_long(obj1, &val2);
6143 if (!SWIG_IsOK(ecode2)) {
6144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6145 }
6146 arg2 = static_cast< long >(val2);
6147 ecode3 = SWIG_AsVal_long(obj2, &val3);
6148 if (!SWIG_IsOK(ecode3)) {
6149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6150 }
6151 arg3 = static_cast< long >(val3);
6152 {
6153 PyThreadState* __tstate = wxPyBeginAllowThreads();
6154 (arg1)->SetSelection(arg2,arg3);
6155 wxPyEndAllowThreads(__tstate);
6156 if (PyErr_Occurred()) SWIG_fail;
6157 }
6158 resultobj = SWIG_Py_Void();
6159 return resultobj;
6160 fail:
6161 return NULL;
6162 }
6163
6164
6165 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6166 PyObject *resultobj = 0;
6167 wxComboBox *arg1 = (wxComboBox *) 0 ;
6168 long *arg2 = (long *) 0 ;
6169 long *arg3 = (long *) 0 ;
6170 void *argp1 = 0 ;
6171 int res1 = 0 ;
6172 long temp2 ;
6173 int res2 = SWIG_TMPOBJ ;
6174 long temp3 ;
6175 int res3 = SWIG_TMPOBJ ;
6176 PyObject *swig_obj[1] ;
6177
6178 arg2 = &temp2;
6179 arg3 = &temp3;
6180 if (!args) SWIG_fail;
6181 swig_obj[0] = args;
6182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6183 if (!SWIG_IsOK(res1)) {
6184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6185 }
6186 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6187 {
6188 PyThreadState* __tstate = wxPyBeginAllowThreads();
6189 (arg1)->GetSelection(arg2,arg3);
6190 wxPyEndAllowThreads(__tstate);
6191 if (PyErr_Occurred()) SWIG_fail;
6192 }
6193 resultobj = SWIG_Py_Void();
6194 if (SWIG_IsTmpObj(res2)) {
6195 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6196 } else {
6197 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6198 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6199 }
6200 if (SWIG_IsTmpObj(res3)) {
6201 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6202 } else {
6203 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6204 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6205 }
6206 return resultobj;
6207 fail:
6208 return NULL;
6209 }
6210
6211
6212 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6213 PyObject *resultobj = 0;
6214 wxComboBox *arg1 = (wxComboBox *) 0 ;
6215 int result;
6216 void *argp1 = 0 ;
6217 int res1 = 0 ;
6218 PyObject *swig_obj[1] ;
6219
6220 if (!args) SWIG_fail;
6221 swig_obj[0] = args;
6222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6223 if (!SWIG_IsOK(res1)) {
6224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6225 }
6226 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6227 {
6228 PyThreadState* __tstate = wxPyBeginAllowThreads();
6229 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6230 wxPyEndAllowThreads(__tstate);
6231 if (PyErr_Occurred()) SWIG_fail;
6232 }
6233 resultobj = SWIG_From_int(static_cast< int >(result));
6234 return resultobj;
6235 fail:
6236 return NULL;
6237 }
6238
6239
6240 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6241 PyObject *resultobj = 0;
6242 wxComboBox *arg1 = (wxComboBox *) 0 ;
6243 wxString *arg2 = 0 ;
6244 bool result;
6245 void *argp1 = 0 ;
6246 int res1 = 0 ;
6247 bool temp2 = false ;
6248 PyObject * obj0 = 0 ;
6249 PyObject * obj1 = 0 ;
6250 char * kwnames[] = {
6251 (char *) "self",(char *) "string", NULL
6252 };
6253
6254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6256 if (!SWIG_IsOK(res1)) {
6257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6258 }
6259 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6260 {
6261 arg2 = wxString_in_helper(obj1);
6262 if (arg2 == NULL) SWIG_fail;
6263 temp2 = true;
6264 }
6265 {
6266 PyThreadState* __tstate = wxPyBeginAllowThreads();
6267 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6268 wxPyEndAllowThreads(__tstate);
6269 if (PyErr_Occurred()) SWIG_fail;
6270 }
6271 {
6272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6273 }
6274 {
6275 if (temp2)
6276 delete arg2;
6277 }
6278 return resultobj;
6279 fail:
6280 {
6281 if (temp2)
6282 delete arg2;
6283 }
6284 return NULL;
6285 }
6286
6287
6288 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6289 PyObject *resultobj = 0;
6290 wxComboBox *arg1 = (wxComboBox *) 0 ;
6291 int arg2 ;
6292 wxString *arg3 = 0 ;
6293 void *argp1 = 0 ;
6294 int res1 = 0 ;
6295 int val2 ;
6296 int ecode2 = 0 ;
6297 bool temp3 = false ;
6298 PyObject * obj0 = 0 ;
6299 PyObject * obj1 = 0 ;
6300 PyObject * obj2 = 0 ;
6301 char * kwnames[] = {
6302 (char *) "self",(char *) "n",(char *) "string", NULL
6303 };
6304
6305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6307 if (!SWIG_IsOK(res1)) {
6308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6309 }
6310 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6311 ecode2 = SWIG_AsVal_int(obj1, &val2);
6312 if (!SWIG_IsOK(ecode2)) {
6313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6314 }
6315 arg2 = static_cast< int >(val2);
6316 {
6317 arg3 = wxString_in_helper(obj2);
6318 if (arg3 == NULL) SWIG_fail;
6319 temp3 = true;
6320 }
6321 {
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 (arg1)->SetString(arg2,(wxString const &)*arg3);
6324 wxPyEndAllowThreads(__tstate);
6325 if (PyErr_Occurred()) SWIG_fail;
6326 }
6327 resultobj = SWIG_Py_Void();
6328 {
6329 if (temp3)
6330 delete arg3;
6331 }
6332 return resultobj;
6333 fail:
6334 {
6335 if (temp3)
6336 delete arg3;
6337 }
6338 return NULL;
6339 }
6340
6341
6342 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6343 PyObject *resultobj = 0;
6344 wxComboBox *arg1 = (wxComboBox *) 0 ;
6345 bool arg2 ;
6346 void *argp1 = 0 ;
6347 int res1 = 0 ;
6348 bool val2 ;
6349 int ecode2 = 0 ;
6350 PyObject * obj0 = 0 ;
6351 PyObject * obj1 = 0 ;
6352 char * kwnames[] = {
6353 (char *) "self",(char *) "editable", NULL
6354 };
6355
6356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6358 if (!SWIG_IsOK(res1)) {
6359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6360 }
6361 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6362 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6363 if (!SWIG_IsOK(ecode2)) {
6364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6365 }
6366 arg2 = static_cast< bool >(val2);
6367 {
6368 PyThreadState* __tstate = wxPyBeginAllowThreads();
6369 (arg1)->SetEditable(arg2);
6370 wxPyEndAllowThreads(__tstate);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 }
6373 resultobj = SWIG_Py_Void();
6374 return resultobj;
6375 fail:
6376 return NULL;
6377 }
6378
6379
6380 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6381 PyObject *resultobj = 0;
6382 wxComboBox *arg1 = (wxComboBox *) 0 ;
6383 void *argp1 = 0 ;
6384 int res1 = 0 ;
6385 PyObject *swig_obj[1] ;
6386
6387 if (!args) SWIG_fail;
6388 swig_obj[0] = args;
6389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6390 if (!SWIG_IsOK(res1)) {
6391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6392 }
6393 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6394 {
6395 PyThreadState* __tstate = wxPyBeginAllowThreads();
6396 (arg1)->SetInsertionPointEnd();
6397 wxPyEndAllowThreads(__tstate);
6398 if (PyErr_Occurred()) SWIG_fail;
6399 }
6400 resultobj = SWIG_Py_Void();
6401 return resultobj;
6402 fail:
6403 return NULL;
6404 }
6405
6406
6407 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6408 PyObject *resultobj = 0;
6409 wxComboBox *arg1 = (wxComboBox *) 0 ;
6410 long arg2 ;
6411 long arg3 ;
6412 void *argp1 = 0 ;
6413 int res1 = 0 ;
6414 long val2 ;
6415 int ecode2 = 0 ;
6416 long val3 ;
6417 int ecode3 = 0 ;
6418 PyObject * obj0 = 0 ;
6419 PyObject * obj1 = 0 ;
6420 PyObject * obj2 = 0 ;
6421 char * kwnames[] = {
6422 (char *) "self",(char *) "from",(char *) "to", NULL
6423 };
6424
6425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6427 if (!SWIG_IsOK(res1)) {
6428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6429 }
6430 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6431 ecode2 = SWIG_AsVal_long(obj1, &val2);
6432 if (!SWIG_IsOK(ecode2)) {
6433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6434 }
6435 arg2 = static_cast< long >(val2);
6436 ecode3 = SWIG_AsVal_long(obj2, &val3);
6437 if (!SWIG_IsOK(ecode3)) {
6438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6439 }
6440 arg3 = static_cast< long >(val3);
6441 {
6442 PyThreadState* __tstate = wxPyBeginAllowThreads();
6443 (arg1)->Remove(arg2,arg3);
6444 wxPyEndAllowThreads(__tstate);
6445 if (PyErr_Occurred()) SWIG_fail;
6446 }
6447 resultobj = SWIG_Py_Void();
6448 return resultobj;
6449 fail:
6450 return NULL;
6451 }
6452
6453
6454 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6455 PyObject *resultobj = 0;
6456 wxComboBox *arg1 = (wxComboBox *) 0 ;
6457 bool result;
6458 void *argp1 = 0 ;
6459 int res1 = 0 ;
6460 PyObject *swig_obj[1] ;
6461
6462 if (!args) SWIG_fail;
6463 swig_obj[0] = args;
6464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6465 if (!SWIG_IsOK(res1)) {
6466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6467 }
6468 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6469 {
6470 PyThreadState* __tstate = wxPyBeginAllowThreads();
6471 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6472 wxPyEndAllowThreads(__tstate);
6473 if (PyErr_Occurred()) SWIG_fail;
6474 }
6475 {
6476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6477 }
6478 return resultobj;
6479 fail:
6480 return NULL;
6481 }
6482
6483
6484 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6485 PyObject *resultobj = 0;
6486 wxComboBox *arg1 = (wxComboBox *) 0 ;
6487 void *argp1 = 0 ;
6488 int res1 = 0 ;
6489 PyObject *swig_obj[1] ;
6490
6491 if (!args) SWIG_fail;
6492 swig_obj[0] = args;
6493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6494 if (!SWIG_IsOK(res1)) {
6495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6496 }
6497 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6498 {
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 (arg1)->Undo();
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_Py_Void();
6505 return resultobj;
6506 fail:
6507 return NULL;
6508 }
6509
6510
6511 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6512 PyObject *resultobj = 0;
6513 wxComboBox *arg1 = (wxComboBox *) 0 ;
6514 void *argp1 = 0 ;
6515 int res1 = 0 ;
6516 PyObject *swig_obj[1] ;
6517
6518 if (!args) SWIG_fail;
6519 swig_obj[0] = args;
6520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6521 if (!SWIG_IsOK(res1)) {
6522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6523 }
6524 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6525 {
6526 PyThreadState* __tstate = wxPyBeginAllowThreads();
6527 (arg1)->Redo();
6528 wxPyEndAllowThreads(__tstate);
6529 if (PyErr_Occurred()) SWIG_fail;
6530 }
6531 resultobj = SWIG_Py_Void();
6532 return resultobj;
6533 fail:
6534 return NULL;
6535 }
6536
6537
6538 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6539 PyObject *resultobj = 0;
6540 wxComboBox *arg1 = (wxComboBox *) 0 ;
6541 void *argp1 = 0 ;
6542 int res1 = 0 ;
6543 PyObject *swig_obj[1] ;
6544
6545 if (!args) SWIG_fail;
6546 swig_obj[0] = args;
6547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6548 if (!SWIG_IsOK(res1)) {
6549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6550 }
6551 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6552 {
6553 PyThreadState* __tstate = wxPyBeginAllowThreads();
6554 (arg1)->SelectAll();
6555 wxPyEndAllowThreads(__tstate);
6556 if (PyErr_Occurred()) SWIG_fail;
6557 }
6558 resultobj = SWIG_Py_Void();
6559 return resultobj;
6560 fail:
6561 return NULL;
6562 }
6563
6564
6565 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6566 PyObject *resultobj = 0;
6567 wxComboBox *arg1 = (wxComboBox *) 0 ;
6568 bool result;
6569 void *argp1 = 0 ;
6570 int res1 = 0 ;
6571 PyObject *swig_obj[1] ;
6572
6573 if (!args) SWIG_fail;
6574 swig_obj[0] = args;
6575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6576 if (!SWIG_IsOK(res1)) {
6577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6578 }
6579 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6580 {
6581 PyThreadState* __tstate = wxPyBeginAllowThreads();
6582 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6583 wxPyEndAllowThreads(__tstate);
6584 if (PyErr_Occurred()) SWIG_fail;
6585 }
6586 {
6587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6588 }
6589 return resultobj;
6590 fail:
6591 return NULL;
6592 }
6593
6594
6595 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6596 PyObject *resultobj = 0;
6597 wxComboBox *arg1 = (wxComboBox *) 0 ;
6598 bool result;
6599 void *argp1 = 0 ;
6600 int res1 = 0 ;
6601 PyObject *swig_obj[1] ;
6602
6603 if (!args) SWIG_fail;
6604 swig_obj[0] = args;
6605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6606 if (!SWIG_IsOK(res1)) {
6607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6608 }
6609 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6610 {
6611 PyThreadState* __tstate = wxPyBeginAllowThreads();
6612 result = (bool)((wxComboBox const *)arg1)->CanCut();
6613 wxPyEndAllowThreads(__tstate);
6614 if (PyErr_Occurred()) SWIG_fail;
6615 }
6616 {
6617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6618 }
6619 return resultobj;
6620 fail:
6621 return NULL;
6622 }
6623
6624
6625 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6626 PyObject *resultobj = 0;
6627 wxComboBox *arg1 = (wxComboBox *) 0 ;
6628 bool result;
6629 void *argp1 = 0 ;
6630 int res1 = 0 ;
6631 PyObject *swig_obj[1] ;
6632
6633 if (!args) SWIG_fail;
6634 swig_obj[0] = args;
6635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6636 if (!SWIG_IsOK(res1)) {
6637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6638 }
6639 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6640 {
6641 PyThreadState* __tstate = wxPyBeginAllowThreads();
6642 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6643 wxPyEndAllowThreads(__tstate);
6644 if (PyErr_Occurred()) SWIG_fail;
6645 }
6646 {
6647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6648 }
6649 return resultobj;
6650 fail:
6651 return NULL;
6652 }
6653
6654
6655 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6656 PyObject *resultobj = 0;
6657 wxComboBox *arg1 = (wxComboBox *) 0 ;
6658 bool result;
6659 void *argp1 = 0 ;
6660 int res1 = 0 ;
6661 PyObject *swig_obj[1] ;
6662
6663 if (!args) SWIG_fail;
6664 swig_obj[0] = args;
6665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6666 if (!SWIG_IsOK(res1)) {
6667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6668 }
6669 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6670 {
6671 PyThreadState* __tstate = wxPyBeginAllowThreads();
6672 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6673 wxPyEndAllowThreads(__tstate);
6674 if (PyErr_Occurred()) SWIG_fail;
6675 }
6676 {
6677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6678 }
6679 return resultobj;
6680 fail:
6681 return NULL;
6682 }
6683
6684
6685 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6686 PyObject *resultobj = 0;
6687 wxComboBox *arg1 = (wxComboBox *) 0 ;
6688 bool result;
6689 void *argp1 = 0 ;
6690 int res1 = 0 ;
6691 PyObject *swig_obj[1] ;
6692
6693 if (!args) SWIG_fail;
6694 swig_obj[0] = args;
6695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6696 if (!SWIG_IsOK(res1)) {
6697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6698 }
6699 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6700 {
6701 PyThreadState* __tstate = wxPyBeginAllowThreads();
6702 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6703 wxPyEndAllowThreads(__tstate);
6704 if (PyErr_Occurred()) SWIG_fail;
6705 }
6706 {
6707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6708 }
6709 return resultobj;
6710 fail:
6711 return NULL;
6712 }
6713
6714
6715 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6716 PyObject *resultobj = 0;
6717 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6718 SwigValueWrapper<wxVisualAttributes > result;
6719 int val1 ;
6720 int ecode1 = 0 ;
6721 PyObject * obj0 = 0 ;
6722 char * kwnames[] = {
6723 (char *) "variant", NULL
6724 };
6725
6726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6727 if (obj0) {
6728 ecode1 = SWIG_AsVal_int(obj0, &val1);
6729 if (!SWIG_IsOK(ecode1)) {
6730 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6731 }
6732 arg1 = static_cast< wxWindowVariant >(val1);
6733 }
6734 {
6735 if (!wxPyCheckForApp()) SWIG_fail;
6736 PyThreadState* __tstate = wxPyBeginAllowThreads();
6737 result = wxComboBox::GetClassDefaultAttributes(arg1);
6738 wxPyEndAllowThreads(__tstate);
6739 if (PyErr_Occurred()) SWIG_fail;
6740 }
6741 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6742 return resultobj;
6743 fail:
6744 return NULL;
6745 }
6746
6747
6748 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6749 PyObject *obj;
6750 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6751 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6752 return SWIG_Py_Void();
6753 }
6754
6755 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6756 return SWIG_Python_InitShadowInstance(args);
6757 }
6758
6759 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6760 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6761 return 1;
6762 }
6763
6764
6765 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6766 PyObject *pyobj = 0;
6767
6768 {
6769 #if wxUSE_UNICODE
6770 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6771 #else
6772 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6773 #endif
6774 }
6775 return pyobj;
6776 }
6777
6778
6779 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6780 PyObject *resultobj = 0;
6781 wxWindow *arg1 = (wxWindow *) 0 ;
6782 int arg2 = (int) -1 ;
6783 int arg3 = (int) 100 ;
6784 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6785 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6786 wxSize const &arg5_defvalue = wxDefaultSize ;
6787 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6788 long arg6 = (long) wxGA_HORIZONTAL ;
6789 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6790 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6791 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6792 wxString *arg8 = (wxString *) &arg8_defvalue ;
6793 wxGauge *result = 0 ;
6794 void *argp1 = 0 ;
6795 int res1 = 0 ;
6796 int val2 ;
6797 int ecode2 = 0 ;
6798 int val3 ;
6799 int ecode3 = 0 ;
6800 wxPoint temp4 ;
6801 wxSize temp5 ;
6802 long val6 ;
6803 int ecode6 = 0 ;
6804 void *argp7 = 0 ;
6805 int res7 = 0 ;
6806 bool temp8 = false ;
6807 PyObject * obj0 = 0 ;
6808 PyObject * obj1 = 0 ;
6809 PyObject * obj2 = 0 ;
6810 PyObject * obj3 = 0 ;
6811 PyObject * obj4 = 0 ;
6812 PyObject * obj5 = 0 ;
6813 PyObject * obj6 = 0 ;
6814 PyObject * obj7 = 0 ;
6815 char * kwnames[] = {
6816 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6817 };
6818
6819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6821 if (!SWIG_IsOK(res1)) {
6822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6823 }
6824 arg1 = reinterpret_cast< wxWindow * >(argp1);
6825 if (obj1) {
6826 ecode2 = SWIG_AsVal_int(obj1, &val2);
6827 if (!SWIG_IsOK(ecode2)) {
6828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6829 }
6830 arg2 = static_cast< int >(val2);
6831 }
6832 if (obj2) {
6833 ecode3 = SWIG_AsVal_int(obj2, &val3);
6834 if (!SWIG_IsOK(ecode3)) {
6835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6836 }
6837 arg3 = static_cast< int >(val3);
6838 }
6839 if (obj3) {
6840 {
6841 arg4 = &temp4;
6842 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6843 }
6844 }
6845 if (obj4) {
6846 {
6847 arg5 = &temp5;
6848 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6849 }
6850 }
6851 if (obj5) {
6852 ecode6 = SWIG_AsVal_long(obj5, &val6);
6853 if (!SWIG_IsOK(ecode6)) {
6854 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6855 }
6856 arg6 = static_cast< long >(val6);
6857 }
6858 if (obj6) {
6859 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6860 if (!SWIG_IsOK(res7)) {
6861 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6862 }
6863 if (!argp7) {
6864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6865 }
6866 arg7 = reinterpret_cast< wxValidator * >(argp7);
6867 }
6868 if (obj7) {
6869 {
6870 arg8 = wxString_in_helper(obj7);
6871 if (arg8 == NULL) SWIG_fail;
6872 temp8 = true;
6873 }
6874 }
6875 {
6876 if (!wxPyCheckForApp()) SWIG_fail;
6877 PyThreadState* __tstate = wxPyBeginAllowThreads();
6878 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6879 wxPyEndAllowThreads(__tstate);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6883 {
6884 if (temp8)
6885 delete arg8;
6886 }
6887 return resultobj;
6888 fail:
6889 {
6890 if (temp8)
6891 delete arg8;
6892 }
6893 return NULL;
6894 }
6895
6896
6897 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6898 PyObject *resultobj = 0;
6899 wxGauge *result = 0 ;
6900
6901 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6902 {
6903 if (!wxPyCheckForApp()) SWIG_fail;
6904 PyThreadState* __tstate = wxPyBeginAllowThreads();
6905 result = (wxGauge *)new wxGauge();
6906 wxPyEndAllowThreads(__tstate);
6907 if (PyErr_Occurred()) SWIG_fail;
6908 }
6909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6910 return resultobj;
6911 fail:
6912 return NULL;
6913 }
6914
6915
6916 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6917 PyObject *resultobj = 0;
6918 wxGauge *arg1 = (wxGauge *) 0 ;
6919 wxWindow *arg2 = (wxWindow *) 0 ;
6920 int arg3 = (int) -1 ;
6921 int arg4 = (int) 100 ;
6922 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6923 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6924 wxSize const &arg6_defvalue = wxDefaultSize ;
6925 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6926 long arg7 = (long) wxGA_HORIZONTAL ;
6927 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6928 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6929 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6930 wxString *arg9 = (wxString *) &arg9_defvalue ;
6931 bool result;
6932 void *argp1 = 0 ;
6933 int res1 = 0 ;
6934 void *argp2 = 0 ;
6935 int res2 = 0 ;
6936 int val3 ;
6937 int ecode3 = 0 ;
6938 int val4 ;
6939 int ecode4 = 0 ;
6940 wxPoint temp5 ;
6941 wxSize temp6 ;
6942 long val7 ;
6943 int ecode7 = 0 ;
6944 void *argp8 = 0 ;
6945 int res8 = 0 ;
6946 bool temp9 = false ;
6947 PyObject * obj0 = 0 ;
6948 PyObject * obj1 = 0 ;
6949 PyObject * obj2 = 0 ;
6950 PyObject * obj3 = 0 ;
6951 PyObject * obj4 = 0 ;
6952 PyObject * obj5 = 0 ;
6953 PyObject * obj6 = 0 ;
6954 PyObject * obj7 = 0 ;
6955 PyObject * obj8 = 0 ;
6956 char * kwnames[] = {
6957 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6958 };
6959
6960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6962 if (!SWIG_IsOK(res1)) {
6963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6964 }
6965 arg1 = reinterpret_cast< wxGauge * >(argp1);
6966 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6967 if (!SWIG_IsOK(res2)) {
6968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6969 }
6970 arg2 = reinterpret_cast< wxWindow * >(argp2);
6971 if (obj2) {
6972 ecode3 = SWIG_AsVal_int(obj2, &val3);
6973 if (!SWIG_IsOK(ecode3)) {
6974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6975 }
6976 arg3 = static_cast< int >(val3);
6977 }
6978 if (obj3) {
6979 ecode4 = SWIG_AsVal_int(obj3, &val4);
6980 if (!SWIG_IsOK(ecode4)) {
6981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6982 }
6983 arg4 = static_cast< int >(val4);
6984 }
6985 if (obj4) {
6986 {
6987 arg5 = &temp5;
6988 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6989 }
6990 }
6991 if (obj5) {
6992 {
6993 arg6 = &temp6;
6994 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6995 }
6996 }
6997 if (obj6) {
6998 ecode7 = SWIG_AsVal_long(obj6, &val7);
6999 if (!SWIG_IsOK(ecode7)) {
7000 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7001 }
7002 arg7 = static_cast< long >(val7);
7003 }
7004 if (obj7) {
7005 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7006 if (!SWIG_IsOK(res8)) {
7007 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7008 }
7009 if (!argp8) {
7010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7011 }
7012 arg8 = reinterpret_cast< wxValidator * >(argp8);
7013 }
7014 if (obj8) {
7015 {
7016 arg9 = wxString_in_helper(obj8);
7017 if (arg9 == NULL) SWIG_fail;
7018 temp9 = true;
7019 }
7020 }
7021 {
7022 PyThreadState* __tstate = wxPyBeginAllowThreads();
7023 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7024 wxPyEndAllowThreads(__tstate);
7025 if (PyErr_Occurred()) SWIG_fail;
7026 }
7027 {
7028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7029 }
7030 {
7031 if (temp9)
7032 delete arg9;
7033 }
7034 return resultobj;
7035 fail:
7036 {
7037 if (temp9)
7038 delete arg9;
7039 }
7040 return NULL;
7041 }
7042
7043
7044 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7045 PyObject *resultobj = 0;
7046 wxGauge *arg1 = (wxGauge *) 0 ;
7047 int arg2 ;
7048 void *argp1 = 0 ;
7049 int res1 = 0 ;
7050 int val2 ;
7051 int ecode2 = 0 ;
7052 PyObject * obj0 = 0 ;
7053 PyObject * obj1 = 0 ;
7054 char * kwnames[] = {
7055 (char *) "self",(char *) "range", NULL
7056 };
7057
7058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7060 if (!SWIG_IsOK(res1)) {
7061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7062 }
7063 arg1 = reinterpret_cast< wxGauge * >(argp1);
7064 ecode2 = SWIG_AsVal_int(obj1, &val2);
7065 if (!SWIG_IsOK(ecode2)) {
7066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7067 }
7068 arg2 = static_cast< int >(val2);
7069 {
7070 PyThreadState* __tstate = wxPyBeginAllowThreads();
7071 (arg1)->SetRange(arg2);
7072 wxPyEndAllowThreads(__tstate);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 resultobj = SWIG_Py_Void();
7076 return resultobj;
7077 fail:
7078 return NULL;
7079 }
7080
7081
7082 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7083 PyObject *resultobj = 0;
7084 wxGauge *arg1 = (wxGauge *) 0 ;
7085 int result;
7086 void *argp1 = 0 ;
7087 int res1 = 0 ;
7088 PyObject *swig_obj[1] ;
7089
7090 if (!args) SWIG_fail;
7091 swig_obj[0] = args;
7092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7093 if (!SWIG_IsOK(res1)) {
7094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7095 }
7096 arg1 = reinterpret_cast< wxGauge * >(argp1);
7097 {
7098 PyThreadState* __tstate = wxPyBeginAllowThreads();
7099 result = (int)((wxGauge const *)arg1)->GetRange();
7100 wxPyEndAllowThreads(__tstate);
7101 if (PyErr_Occurred()) SWIG_fail;
7102 }
7103 resultobj = SWIG_From_int(static_cast< int >(result));
7104 return resultobj;
7105 fail:
7106 return NULL;
7107 }
7108
7109
7110 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7111 PyObject *resultobj = 0;
7112 wxGauge *arg1 = (wxGauge *) 0 ;
7113 int arg2 ;
7114 void *argp1 = 0 ;
7115 int res1 = 0 ;
7116 int val2 ;
7117 int ecode2 = 0 ;
7118 PyObject * obj0 = 0 ;
7119 PyObject * obj1 = 0 ;
7120 char * kwnames[] = {
7121 (char *) "self",(char *) "pos", NULL
7122 };
7123
7124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7126 if (!SWIG_IsOK(res1)) {
7127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7128 }
7129 arg1 = reinterpret_cast< wxGauge * >(argp1);
7130 ecode2 = SWIG_AsVal_int(obj1, &val2);
7131 if (!SWIG_IsOK(ecode2)) {
7132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7133 }
7134 arg2 = static_cast< int >(val2);
7135 {
7136 PyThreadState* __tstate = wxPyBeginAllowThreads();
7137 (arg1)->SetValue(arg2);
7138 wxPyEndAllowThreads(__tstate);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 resultobj = SWIG_Py_Void();
7142 return resultobj;
7143 fail:
7144 return NULL;
7145 }
7146
7147
7148 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7149 PyObject *resultobj = 0;
7150 wxGauge *arg1 = (wxGauge *) 0 ;
7151 int result;
7152 void *argp1 = 0 ;
7153 int res1 = 0 ;
7154 PyObject *swig_obj[1] ;
7155
7156 if (!args) SWIG_fail;
7157 swig_obj[0] = args;
7158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7159 if (!SWIG_IsOK(res1)) {
7160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7161 }
7162 arg1 = reinterpret_cast< wxGauge * >(argp1);
7163 {
7164 PyThreadState* __tstate = wxPyBeginAllowThreads();
7165 result = (int)((wxGauge const *)arg1)->GetValue();
7166 wxPyEndAllowThreads(__tstate);
7167 if (PyErr_Occurred()) SWIG_fail;
7168 }
7169 resultobj = SWIG_From_int(static_cast< int >(result));
7170 return resultobj;
7171 fail:
7172 return NULL;
7173 }
7174
7175
7176 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7177 PyObject *resultobj = 0;
7178 wxGauge *arg1 = (wxGauge *) 0 ;
7179 bool result;
7180 void *argp1 = 0 ;
7181 int res1 = 0 ;
7182 PyObject *swig_obj[1] ;
7183
7184 if (!args) SWIG_fail;
7185 swig_obj[0] = args;
7186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7187 if (!SWIG_IsOK(res1)) {
7188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7189 }
7190 arg1 = reinterpret_cast< wxGauge * >(argp1);
7191 {
7192 PyThreadState* __tstate = wxPyBeginAllowThreads();
7193 result = (bool)((wxGauge const *)arg1)->IsVertical();
7194 wxPyEndAllowThreads(__tstate);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 }
7197 {
7198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7199 }
7200 return resultobj;
7201 fail:
7202 return NULL;
7203 }
7204
7205
7206 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7207 PyObject *resultobj = 0;
7208 wxGauge *arg1 = (wxGauge *) 0 ;
7209 int arg2 ;
7210 void *argp1 = 0 ;
7211 int res1 = 0 ;
7212 int val2 ;
7213 int ecode2 = 0 ;
7214 PyObject * obj0 = 0 ;
7215 PyObject * obj1 = 0 ;
7216 char * kwnames[] = {
7217 (char *) "self",(char *) "w", NULL
7218 };
7219
7220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7222 if (!SWIG_IsOK(res1)) {
7223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7224 }
7225 arg1 = reinterpret_cast< wxGauge * >(argp1);
7226 ecode2 = SWIG_AsVal_int(obj1, &val2);
7227 if (!SWIG_IsOK(ecode2)) {
7228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7229 }
7230 arg2 = static_cast< int >(val2);
7231 {
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
7233 (arg1)->SetShadowWidth(arg2);
7234 wxPyEndAllowThreads(__tstate);
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 resultobj = SWIG_Py_Void();
7238 return resultobj;
7239 fail:
7240 return NULL;
7241 }
7242
7243
7244 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7245 PyObject *resultobj = 0;
7246 wxGauge *arg1 = (wxGauge *) 0 ;
7247 int result;
7248 void *argp1 = 0 ;
7249 int res1 = 0 ;
7250 PyObject *swig_obj[1] ;
7251
7252 if (!args) SWIG_fail;
7253 swig_obj[0] = args;
7254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7255 if (!SWIG_IsOK(res1)) {
7256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7257 }
7258 arg1 = reinterpret_cast< wxGauge * >(argp1);
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
7261 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7262 wxPyEndAllowThreads(__tstate);
7263 if (PyErr_Occurred()) SWIG_fail;
7264 }
7265 resultobj = SWIG_From_int(static_cast< int >(result));
7266 return resultobj;
7267 fail:
7268 return NULL;
7269 }
7270
7271
7272 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7273 PyObject *resultobj = 0;
7274 wxGauge *arg1 = (wxGauge *) 0 ;
7275 int arg2 ;
7276 void *argp1 = 0 ;
7277 int res1 = 0 ;
7278 int val2 ;
7279 int ecode2 = 0 ;
7280 PyObject * obj0 = 0 ;
7281 PyObject * obj1 = 0 ;
7282 char * kwnames[] = {
7283 (char *) "self",(char *) "w", NULL
7284 };
7285
7286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7288 if (!SWIG_IsOK(res1)) {
7289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7290 }
7291 arg1 = reinterpret_cast< wxGauge * >(argp1);
7292 ecode2 = SWIG_AsVal_int(obj1, &val2);
7293 if (!SWIG_IsOK(ecode2)) {
7294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7295 }
7296 arg2 = static_cast< int >(val2);
7297 {
7298 PyThreadState* __tstate = wxPyBeginAllowThreads();
7299 (arg1)->SetBezelFace(arg2);
7300 wxPyEndAllowThreads(__tstate);
7301 if (PyErr_Occurred()) SWIG_fail;
7302 }
7303 resultobj = SWIG_Py_Void();
7304 return resultobj;
7305 fail:
7306 return NULL;
7307 }
7308
7309
7310 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7311 PyObject *resultobj = 0;
7312 wxGauge *arg1 = (wxGauge *) 0 ;
7313 int result;
7314 void *argp1 = 0 ;
7315 int res1 = 0 ;
7316 PyObject *swig_obj[1] ;
7317
7318 if (!args) SWIG_fail;
7319 swig_obj[0] = args;
7320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7321 if (!SWIG_IsOK(res1)) {
7322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7323 }
7324 arg1 = reinterpret_cast< wxGauge * >(argp1);
7325 {
7326 PyThreadState* __tstate = wxPyBeginAllowThreads();
7327 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7328 wxPyEndAllowThreads(__tstate);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 resultobj = SWIG_From_int(static_cast< int >(result));
7332 return resultobj;
7333 fail:
7334 return NULL;
7335 }
7336
7337
7338 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7339 PyObject *resultobj = 0;
7340 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7341 SwigValueWrapper<wxVisualAttributes > result;
7342 int val1 ;
7343 int ecode1 = 0 ;
7344 PyObject * obj0 = 0 ;
7345 char * kwnames[] = {
7346 (char *) "variant", NULL
7347 };
7348
7349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7350 if (obj0) {
7351 ecode1 = SWIG_AsVal_int(obj0, &val1);
7352 if (!SWIG_IsOK(ecode1)) {
7353 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7354 }
7355 arg1 = static_cast< wxWindowVariant >(val1);
7356 }
7357 {
7358 if (!wxPyCheckForApp()) SWIG_fail;
7359 PyThreadState* __tstate = wxPyBeginAllowThreads();
7360 result = wxGauge::GetClassDefaultAttributes(arg1);
7361 wxPyEndAllowThreads(__tstate);
7362 if (PyErr_Occurred()) SWIG_fail;
7363 }
7364 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7365 return resultobj;
7366 fail:
7367 return NULL;
7368 }
7369
7370
7371 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7372 PyObject *obj;
7373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7374 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7375 return SWIG_Py_Void();
7376 }
7377
7378 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7379 return SWIG_Python_InitShadowInstance(args);
7380 }
7381
7382 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7383 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7384 return 1;
7385 }
7386
7387
7388 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7389 PyObject *pyobj = 0;
7390
7391 {
7392 #if wxUSE_UNICODE
7393 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7394 #else
7395 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7396 #endif
7397 }
7398 return pyobj;
7399 }
7400
7401
7402 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7403 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7404 return 1;
7405 }
7406
7407
7408 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7409 PyObject *pyobj = 0;
7410
7411 {
7412 #if wxUSE_UNICODE
7413 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7414 #else
7415 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7416 #endif
7417 }
7418 return pyobj;
7419 }
7420
7421
7422 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7423 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7424 return 1;
7425 }
7426
7427
7428 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7429 PyObject *pyobj = 0;
7430
7431 {
7432 #if wxUSE_UNICODE
7433 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7434 #else
7435 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7436 #endif
7437 }
7438 return pyobj;
7439 }
7440
7441
7442 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7443 PyObject *resultobj = 0;
7444 wxWindow *arg1 = (wxWindow *) 0 ;
7445 int arg2 = (int) -1 ;
7446 wxString const &arg3_defvalue = wxPyEmptyString ;
7447 wxString *arg3 = (wxString *) &arg3_defvalue ;
7448 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7449 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7450 wxSize const &arg5_defvalue = wxDefaultSize ;
7451 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7452 long arg6 = (long) 0 ;
7453 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7454 wxString *arg7 = (wxString *) &arg7_defvalue ;
7455 wxStaticBox *result = 0 ;
7456 void *argp1 = 0 ;
7457 int res1 = 0 ;
7458 int val2 ;
7459 int ecode2 = 0 ;
7460 bool temp3 = false ;
7461 wxPoint temp4 ;
7462 wxSize temp5 ;
7463 long val6 ;
7464 int ecode6 = 0 ;
7465 bool temp7 = false ;
7466 PyObject * obj0 = 0 ;
7467 PyObject * obj1 = 0 ;
7468 PyObject * obj2 = 0 ;
7469 PyObject * obj3 = 0 ;
7470 PyObject * obj4 = 0 ;
7471 PyObject * obj5 = 0 ;
7472 PyObject * obj6 = 0 ;
7473 char * kwnames[] = {
7474 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7475 };
7476
7477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7479 if (!SWIG_IsOK(res1)) {
7480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7481 }
7482 arg1 = reinterpret_cast< wxWindow * >(argp1);
7483 if (obj1) {
7484 ecode2 = SWIG_AsVal_int(obj1, &val2);
7485 if (!SWIG_IsOK(ecode2)) {
7486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7487 }
7488 arg2 = static_cast< int >(val2);
7489 }
7490 if (obj2) {
7491 {
7492 arg3 = wxString_in_helper(obj2);
7493 if (arg3 == NULL) SWIG_fail;
7494 temp3 = true;
7495 }
7496 }
7497 if (obj3) {
7498 {
7499 arg4 = &temp4;
7500 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7501 }
7502 }
7503 if (obj4) {
7504 {
7505 arg5 = &temp5;
7506 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7507 }
7508 }
7509 if (obj5) {
7510 ecode6 = SWIG_AsVal_long(obj5, &val6);
7511 if (!SWIG_IsOK(ecode6)) {
7512 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7513 }
7514 arg6 = static_cast< long >(val6);
7515 }
7516 if (obj6) {
7517 {
7518 arg7 = wxString_in_helper(obj6);
7519 if (arg7 == NULL) SWIG_fail;
7520 temp7 = true;
7521 }
7522 }
7523 {
7524 if (!wxPyCheckForApp()) SWIG_fail;
7525 PyThreadState* __tstate = wxPyBeginAllowThreads();
7526 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7527 wxPyEndAllowThreads(__tstate);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7531 {
7532 if (temp3)
7533 delete arg3;
7534 }
7535 {
7536 if (temp7)
7537 delete arg7;
7538 }
7539 return resultobj;
7540 fail:
7541 {
7542 if (temp3)
7543 delete arg3;
7544 }
7545 {
7546 if (temp7)
7547 delete arg7;
7548 }
7549 return NULL;
7550 }
7551
7552
7553 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7554 PyObject *resultobj = 0;
7555 wxStaticBox *result = 0 ;
7556
7557 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7558 {
7559 if (!wxPyCheckForApp()) SWIG_fail;
7560 PyThreadState* __tstate = wxPyBeginAllowThreads();
7561 result = (wxStaticBox *)new wxStaticBox();
7562 wxPyEndAllowThreads(__tstate);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7566 return resultobj;
7567 fail:
7568 return NULL;
7569 }
7570
7571
7572 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7573 PyObject *resultobj = 0;
7574 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7575 wxWindow *arg2 = (wxWindow *) 0 ;
7576 int arg3 = (int) -1 ;
7577 wxString const &arg4_defvalue = wxPyEmptyString ;
7578 wxString *arg4 = (wxString *) &arg4_defvalue ;
7579 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7580 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7581 wxSize const &arg6_defvalue = wxDefaultSize ;
7582 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7583 long arg7 = (long) 0 ;
7584 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7585 wxString *arg8 = (wxString *) &arg8_defvalue ;
7586 bool result;
7587 void *argp1 = 0 ;
7588 int res1 = 0 ;
7589 void *argp2 = 0 ;
7590 int res2 = 0 ;
7591 int val3 ;
7592 int ecode3 = 0 ;
7593 bool temp4 = false ;
7594 wxPoint temp5 ;
7595 wxSize temp6 ;
7596 long val7 ;
7597 int ecode7 = 0 ;
7598 bool temp8 = false ;
7599 PyObject * obj0 = 0 ;
7600 PyObject * obj1 = 0 ;
7601 PyObject * obj2 = 0 ;
7602 PyObject * obj3 = 0 ;
7603 PyObject * obj4 = 0 ;
7604 PyObject * obj5 = 0 ;
7605 PyObject * obj6 = 0 ;
7606 PyObject * obj7 = 0 ;
7607 char * kwnames[] = {
7608 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7609 };
7610
7611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7613 if (!SWIG_IsOK(res1)) {
7614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7615 }
7616 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7617 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7618 if (!SWIG_IsOK(res2)) {
7619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7620 }
7621 arg2 = reinterpret_cast< wxWindow * >(argp2);
7622 if (obj2) {
7623 ecode3 = SWIG_AsVal_int(obj2, &val3);
7624 if (!SWIG_IsOK(ecode3)) {
7625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7626 }
7627 arg3 = static_cast< int >(val3);
7628 }
7629 if (obj3) {
7630 {
7631 arg4 = wxString_in_helper(obj3);
7632 if (arg4 == NULL) SWIG_fail;
7633 temp4 = true;
7634 }
7635 }
7636 if (obj4) {
7637 {
7638 arg5 = &temp5;
7639 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7640 }
7641 }
7642 if (obj5) {
7643 {
7644 arg6 = &temp6;
7645 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7646 }
7647 }
7648 if (obj6) {
7649 ecode7 = SWIG_AsVal_long(obj6, &val7);
7650 if (!SWIG_IsOK(ecode7)) {
7651 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7652 }
7653 arg7 = static_cast< long >(val7);
7654 }
7655 if (obj7) {
7656 {
7657 arg8 = wxString_in_helper(obj7);
7658 if (arg8 == NULL) SWIG_fail;
7659 temp8 = true;
7660 }
7661 }
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7665 wxPyEndAllowThreads(__tstate);
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
7668 {
7669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7670 }
7671 {
7672 if (temp4)
7673 delete arg4;
7674 }
7675 {
7676 if (temp8)
7677 delete arg8;
7678 }
7679 return resultobj;
7680 fail:
7681 {
7682 if (temp4)
7683 delete arg4;
7684 }
7685 {
7686 if (temp8)
7687 delete arg8;
7688 }
7689 return NULL;
7690 }
7691
7692
7693 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7694 PyObject *resultobj = 0;
7695 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7696 SwigValueWrapper<wxVisualAttributes > result;
7697 int val1 ;
7698 int ecode1 = 0 ;
7699 PyObject * obj0 = 0 ;
7700 char * kwnames[] = {
7701 (char *) "variant", NULL
7702 };
7703
7704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7705 if (obj0) {
7706 ecode1 = SWIG_AsVal_int(obj0, &val1);
7707 if (!SWIG_IsOK(ecode1)) {
7708 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7709 }
7710 arg1 = static_cast< wxWindowVariant >(val1);
7711 }
7712 {
7713 if (!wxPyCheckForApp()) SWIG_fail;
7714 PyThreadState* __tstate = wxPyBeginAllowThreads();
7715 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7716 wxPyEndAllowThreads(__tstate);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7720 return resultobj;
7721 fail:
7722 return NULL;
7723 }
7724
7725
7726 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7727 PyObject *obj;
7728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7729 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7730 return SWIG_Py_Void();
7731 }
7732
7733 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7734 return SWIG_Python_InitShadowInstance(args);
7735 }
7736
7737 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7738 PyObject *resultobj = 0;
7739 wxWindow *arg1 = (wxWindow *) 0 ;
7740 int arg2 = (int) -1 ;
7741 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7742 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7743 wxSize const &arg4_defvalue = wxDefaultSize ;
7744 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7745 long arg5 = (long) wxLI_HORIZONTAL ;
7746 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7747 wxString *arg6 = (wxString *) &arg6_defvalue ;
7748 wxStaticLine *result = 0 ;
7749 void *argp1 = 0 ;
7750 int res1 = 0 ;
7751 int val2 ;
7752 int ecode2 = 0 ;
7753 wxPoint temp3 ;
7754 wxSize temp4 ;
7755 long val5 ;
7756 int ecode5 = 0 ;
7757 bool temp6 = false ;
7758 PyObject * obj0 = 0 ;
7759 PyObject * obj1 = 0 ;
7760 PyObject * obj2 = 0 ;
7761 PyObject * obj3 = 0 ;
7762 PyObject * obj4 = 0 ;
7763 PyObject * obj5 = 0 ;
7764 char * kwnames[] = {
7765 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7766 };
7767
7768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7770 if (!SWIG_IsOK(res1)) {
7771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7772 }
7773 arg1 = reinterpret_cast< wxWindow * >(argp1);
7774 if (obj1) {
7775 ecode2 = SWIG_AsVal_int(obj1, &val2);
7776 if (!SWIG_IsOK(ecode2)) {
7777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7778 }
7779 arg2 = static_cast< int >(val2);
7780 }
7781 if (obj2) {
7782 {
7783 arg3 = &temp3;
7784 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7785 }
7786 }
7787 if (obj3) {
7788 {
7789 arg4 = &temp4;
7790 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7791 }
7792 }
7793 if (obj4) {
7794 ecode5 = SWIG_AsVal_long(obj4, &val5);
7795 if (!SWIG_IsOK(ecode5)) {
7796 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7797 }
7798 arg5 = static_cast< long >(val5);
7799 }
7800 if (obj5) {
7801 {
7802 arg6 = wxString_in_helper(obj5);
7803 if (arg6 == NULL) SWIG_fail;
7804 temp6 = true;
7805 }
7806 }
7807 {
7808 if (!wxPyCheckForApp()) SWIG_fail;
7809 PyThreadState* __tstate = wxPyBeginAllowThreads();
7810 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7811 wxPyEndAllowThreads(__tstate);
7812 if (PyErr_Occurred()) SWIG_fail;
7813 }
7814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7815 {
7816 if (temp6)
7817 delete arg6;
7818 }
7819 return resultobj;
7820 fail:
7821 {
7822 if (temp6)
7823 delete arg6;
7824 }
7825 return NULL;
7826 }
7827
7828
7829 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7830 PyObject *resultobj = 0;
7831 wxStaticLine *result = 0 ;
7832
7833 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7834 {
7835 if (!wxPyCheckForApp()) SWIG_fail;
7836 PyThreadState* __tstate = wxPyBeginAllowThreads();
7837 result = (wxStaticLine *)new wxStaticLine();
7838 wxPyEndAllowThreads(__tstate);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 }
7841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7842 return resultobj;
7843 fail:
7844 return NULL;
7845 }
7846
7847
7848 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7849 PyObject *resultobj = 0;
7850 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7851 wxWindow *arg2 = (wxWindow *) 0 ;
7852 int arg3 = (int) -1 ;
7853 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7854 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7855 wxSize const &arg5_defvalue = wxDefaultSize ;
7856 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7857 long arg6 = (long) wxLI_HORIZONTAL ;
7858 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7859 wxString *arg7 = (wxString *) &arg7_defvalue ;
7860 bool result;
7861 void *argp1 = 0 ;
7862 int res1 = 0 ;
7863 void *argp2 = 0 ;
7864 int res2 = 0 ;
7865 int val3 ;
7866 int ecode3 = 0 ;
7867 wxPoint temp4 ;
7868 wxSize temp5 ;
7869 long val6 ;
7870 int ecode6 = 0 ;
7871 bool temp7 = false ;
7872 PyObject * obj0 = 0 ;
7873 PyObject * obj1 = 0 ;
7874 PyObject * obj2 = 0 ;
7875 PyObject * obj3 = 0 ;
7876 PyObject * obj4 = 0 ;
7877 PyObject * obj5 = 0 ;
7878 PyObject * obj6 = 0 ;
7879 char * kwnames[] = {
7880 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7881 };
7882
7883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7885 if (!SWIG_IsOK(res1)) {
7886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7887 }
7888 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7889 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7890 if (!SWIG_IsOK(res2)) {
7891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7892 }
7893 arg2 = reinterpret_cast< wxWindow * >(argp2);
7894 if (obj2) {
7895 ecode3 = SWIG_AsVal_int(obj2, &val3);
7896 if (!SWIG_IsOK(ecode3)) {
7897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7898 }
7899 arg3 = static_cast< int >(val3);
7900 }
7901 if (obj3) {
7902 {
7903 arg4 = &temp4;
7904 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7905 }
7906 }
7907 if (obj4) {
7908 {
7909 arg5 = &temp5;
7910 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7911 }
7912 }
7913 if (obj5) {
7914 ecode6 = SWIG_AsVal_long(obj5, &val6);
7915 if (!SWIG_IsOK(ecode6)) {
7916 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7917 }
7918 arg6 = static_cast< long >(val6);
7919 }
7920 if (obj6) {
7921 {
7922 arg7 = wxString_in_helper(obj6);
7923 if (arg7 == NULL) SWIG_fail;
7924 temp7 = true;
7925 }
7926 }
7927 {
7928 PyThreadState* __tstate = wxPyBeginAllowThreads();
7929 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7930 wxPyEndAllowThreads(__tstate);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 {
7934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7935 }
7936 {
7937 if (temp7)
7938 delete arg7;
7939 }
7940 return resultobj;
7941 fail:
7942 {
7943 if (temp7)
7944 delete arg7;
7945 }
7946 return NULL;
7947 }
7948
7949
7950 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7951 PyObject *resultobj = 0;
7952 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7953 bool result;
7954 void *argp1 = 0 ;
7955 int res1 = 0 ;
7956 PyObject *swig_obj[1] ;
7957
7958 if (!args) SWIG_fail;
7959 swig_obj[0] = args;
7960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7961 if (!SWIG_IsOK(res1)) {
7962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7963 }
7964 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7965 {
7966 PyThreadState* __tstate = wxPyBeginAllowThreads();
7967 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7968 wxPyEndAllowThreads(__tstate);
7969 if (PyErr_Occurred()) SWIG_fail;
7970 }
7971 {
7972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7973 }
7974 return resultobj;
7975 fail:
7976 return NULL;
7977 }
7978
7979
7980 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7981 PyObject *resultobj = 0;
7982 int result;
7983
7984 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 result = (int)wxStaticLine::GetDefaultSize();
7988 wxPyEndAllowThreads(__tstate);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 resultobj = SWIG_From_int(static_cast< int >(result));
7992 return resultobj;
7993 fail:
7994 return NULL;
7995 }
7996
7997
7998 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7999 PyObject *resultobj = 0;
8000 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8001 SwigValueWrapper<wxVisualAttributes > result;
8002 int val1 ;
8003 int ecode1 = 0 ;
8004 PyObject * obj0 = 0 ;
8005 char * kwnames[] = {
8006 (char *) "variant", NULL
8007 };
8008
8009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8010 if (obj0) {
8011 ecode1 = SWIG_AsVal_int(obj0, &val1);
8012 if (!SWIG_IsOK(ecode1)) {
8013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8014 }
8015 arg1 = static_cast< wxWindowVariant >(val1);
8016 }
8017 {
8018 if (!wxPyCheckForApp()) SWIG_fail;
8019 PyThreadState* __tstate = wxPyBeginAllowThreads();
8020 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8021 wxPyEndAllowThreads(__tstate);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8025 return resultobj;
8026 fail:
8027 return NULL;
8028 }
8029
8030
8031 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8032 PyObject *obj;
8033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8034 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8035 return SWIG_Py_Void();
8036 }
8037
8038 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8039 return SWIG_Python_InitShadowInstance(args);
8040 }
8041
8042 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8043 PyObject *resultobj = 0;
8044 wxWindow *arg1 = (wxWindow *) 0 ;
8045 int arg2 = (int) -1 ;
8046 wxString const &arg3_defvalue = wxPyEmptyString ;
8047 wxString *arg3 = (wxString *) &arg3_defvalue ;
8048 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8049 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8050 wxSize const &arg5_defvalue = wxDefaultSize ;
8051 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8052 long arg6 = (long) 0 ;
8053 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8054 wxString *arg7 = (wxString *) &arg7_defvalue ;
8055 wxStaticText *result = 0 ;
8056 void *argp1 = 0 ;
8057 int res1 = 0 ;
8058 int val2 ;
8059 int ecode2 = 0 ;
8060 bool temp3 = false ;
8061 wxPoint temp4 ;
8062 wxSize temp5 ;
8063 long val6 ;
8064 int ecode6 = 0 ;
8065 bool temp7 = false ;
8066 PyObject * obj0 = 0 ;
8067 PyObject * obj1 = 0 ;
8068 PyObject * obj2 = 0 ;
8069 PyObject * obj3 = 0 ;
8070 PyObject * obj4 = 0 ;
8071 PyObject * obj5 = 0 ;
8072 PyObject * obj6 = 0 ;
8073 char * kwnames[] = {
8074 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8075 };
8076
8077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8079 if (!SWIG_IsOK(res1)) {
8080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8081 }
8082 arg1 = reinterpret_cast< wxWindow * >(argp1);
8083 if (obj1) {
8084 ecode2 = SWIG_AsVal_int(obj1, &val2);
8085 if (!SWIG_IsOK(ecode2)) {
8086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8087 }
8088 arg2 = static_cast< int >(val2);
8089 }
8090 if (obj2) {
8091 {
8092 arg3 = wxString_in_helper(obj2);
8093 if (arg3 == NULL) SWIG_fail;
8094 temp3 = true;
8095 }
8096 }
8097 if (obj3) {
8098 {
8099 arg4 = &temp4;
8100 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8101 }
8102 }
8103 if (obj4) {
8104 {
8105 arg5 = &temp5;
8106 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8107 }
8108 }
8109 if (obj5) {
8110 ecode6 = SWIG_AsVal_long(obj5, &val6);
8111 if (!SWIG_IsOK(ecode6)) {
8112 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8113 }
8114 arg6 = static_cast< long >(val6);
8115 }
8116 if (obj6) {
8117 {
8118 arg7 = wxString_in_helper(obj6);
8119 if (arg7 == NULL) SWIG_fail;
8120 temp7 = true;
8121 }
8122 }
8123 {
8124 if (!wxPyCheckForApp()) SWIG_fail;
8125 PyThreadState* __tstate = wxPyBeginAllowThreads();
8126 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8127 wxPyEndAllowThreads(__tstate);
8128 if (PyErr_Occurred()) SWIG_fail;
8129 }
8130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8131 {
8132 if (temp3)
8133 delete arg3;
8134 }
8135 {
8136 if (temp7)
8137 delete arg7;
8138 }
8139 return resultobj;
8140 fail:
8141 {
8142 if (temp3)
8143 delete arg3;
8144 }
8145 {
8146 if (temp7)
8147 delete arg7;
8148 }
8149 return NULL;
8150 }
8151
8152
8153 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8154 PyObject *resultobj = 0;
8155 wxStaticText *result = 0 ;
8156
8157 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8158 {
8159 if (!wxPyCheckForApp()) SWIG_fail;
8160 PyThreadState* __tstate = wxPyBeginAllowThreads();
8161 result = (wxStaticText *)new wxStaticText();
8162 wxPyEndAllowThreads(__tstate);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 }
8165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8166 return resultobj;
8167 fail:
8168 return NULL;
8169 }
8170
8171
8172 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8173 PyObject *resultobj = 0;
8174 wxStaticText *arg1 = (wxStaticText *) 0 ;
8175 wxWindow *arg2 = (wxWindow *) 0 ;
8176 int arg3 = (int) -1 ;
8177 wxString const &arg4_defvalue = wxPyEmptyString ;
8178 wxString *arg4 = (wxString *) &arg4_defvalue ;
8179 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8180 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8181 wxSize const &arg6_defvalue = wxDefaultSize ;
8182 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8183 long arg7 = (long) 0 ;
8184 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8185 wxString *arg8 = (wxString *) &arg8_defvalue ;
8186 bool result;
8187 void *argp1 = 0 ;
8188 int res1 = 0 ;
8189 void *argp2 = 0 ;
8190 int res2 = 0 ;
8191 int val3 ;
8192 int ecode3 = 0 ;
8193 bool temp4 = false ;
8194 wxPoint temp5 ;
8195 wxSize temp6 ;
8196 long val7 ;
8197 int ecode7 = 0 ;
8198 bool temp8 = false ;
8199 PyObject * obj0 = 0 ;
8200 PyObject * obj1 = 0 ;
8201 PyObject * obj2 = 0 ;
8202 PyObject * obj3 = 0 ;
8203 PyObject * obj4 = 0 ;
8204 PyObject * obj5 = 0 ;
8205 PyObject * obj6 = 0 ;
8206 PyObject * obj7 = 0 ;
8207 char * kwnames[] = {
8208 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8209 };
8210
8211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8213 if (!SWIG_IsOK(res1)) {
8214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8215 }
8216 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8218 if (!SWIG_IsOK(res2)) {
8219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8220 }
8221 arg2 = reinterpret_cast< wxWindow * >(argp2);
8222 if (obj2) {
8223 ecode3 = SWIG_AsVal_int(obj2, &val3);
8224 if (!SWIG_IsOK(ecode3)) {
8225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8226 }
8227 arg3 = static_cast< int >(val3);
8228 }
8229 if (obj3) {
8230 {
8231 arg4 = wxString_in_helper(obj3);
8232 if (arg4 == NULL) SWIG_fail;
8233 temp4 = true;
8234 }
8235 }
8236 if (obj4) {
8237 {
8238 arg5 = &temp5;
8239 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8240 }
8241 }
8242 if (obj5) {
8243 {
8244 arg6 = &temp6;
8245 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8246 }
8247 }
8248 if (obj6) {
8249 ecode7 = SWIG_AsVal_long(obj6, &val7);
8250 if (!SWIG_IsOK(ecode7)) {
8251 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8252 }
8253 arg7 = static_cast< long >(val7);
8254 }
8255 if (obj7) {
8256 {
8257 arg8 = wxString_in_helper(obj7);
8258 if (arg8 == NULL) SWIG_fail;
8259 temp8 = true;
8260 }
8261 }
8262 {
8263 PyThreadState* __tstate = wxPyBeginAllowThreads();
8264 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8265 wxPyEndAllowThreads(__tstate);
8266 if (PyErr_Occurred()) SWIG_fail;
8267 }
8268 {
8269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8270 }
8271 {
8272 if (temp4)
8273 delete arg4;
8274 }
8275 {
8276 if (temp8)
8277 delete arg8;
8278 }
8279 return resultobj;
8280 fail:
8281 {
8282 if (temp4)
8283 delete arg4;
8284 }
8285 {
8286 if (temp8)
8287 delete arg8;
8288 }
8289 return NULL;
8290 }
8291
8292
8293 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8294 PyObject *resultobj = 0;
8295 wxStaticText *arg1 = (wxStaticText *) 0 ;
8296 int arg2 ;
8297 void *argp1 = 0 ;
8298 int res1 = 0 ;
8299 int val2 ;
8300 int ecode2 = 0 ;
8301 PyObject * obj0 = 0 ;
8302 PyObject * obj1 = 0 ;
8303 char * kwnames[] = {
8304 (char *) "self",(char *) "width", NULL
8305 };
8306
8307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8309 if (!SWIG_IsOK(res1)) {
8310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8311 }
8312 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8313 ecode2 = SWIG_AsVal_int(obj1, &val2);
8314 if (!SWIG_IsOK(ecode2)) {
8315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8316 }
8317 arg2 = static_cast< int >(val2);
8318 {
8319 PyThreadState* __tstate = wxPyBeginAllowThreads();
8320 (arg1)->Wrap(arg2);
8321 wxPyEndAllowThreads(__tstate);
8322 if (PyErr_Occurred()) SWIG_fail;
8323 }
8324 resultobj = SWIG_Py_Void();
8325 return resultobj;
8326 fail:
8327 return NULL;
8328 }
8329
8330
8331 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8332 PyObject *resultobj = 0;
8333 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8334 SwigValueWrapper<wxVisualAttributes > result;
8335 int val1 ;
8336 int ecode1 = 0 ;
8337 PyObject * obj0 = 0 ;
8338 char * kwnames[] = {
8339 (char *) "variant", NULL
8340 };
8341
8342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8343 if (obj0) {
8344 ecode1 = SWIG_AsVal_int(obj0, &val1);
8345 if (!SWIG_IsOK(ecode1)) {
8346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8347 }
8348 arg1 = static_cast< wxWindowVariant >(val1);
8349 }
8350 {
8351 if (!wxPyCheckForApp()) SWIG_fail;
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
8353 result = wxStaticText::GetClassDefaultAttributes(arg1);
8354 wxPyEndAllowThreads(__tstate);
8355 if (PyErr_Occurred()) SWIG_fail;
8356 }
8357 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8358 return resultobj;
8359 fail:
8360 return NULL;
8361 }
8362
8363
8364 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8365 PyObject *obj;
8366 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8367 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8368 return SWIG_Py_Void();
8369 }
8370
8371 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8372 return SWIG_Python_InitShadowInstance(args);
8373 }
8374
8375 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8376 PyObject *resultobj = 0;
8377 wxWindow *arg1 = (wxWindow *) 0 ;
8378 int arg2 = (int) -1 ;
8379 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8380 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8381 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8382 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8383 wxSize const &arg5_defvalue = wxDefaultSize ;
8384 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8385 long arg6 = (long) 0 ;
8386 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8387 wxString *arg7 = (wxString *) &arg7_defvalue ;
8388 wxStaticBitmap *result = 0 ;
8389 void *argp1 = 0 ;
8390 int res1 = 0 ;
8391 int val2 ;
8392 int ecode2 = 0 ;
8393 void *argp3 = 0 ;
8394 int res3 = 0 ;
8395 wxPoint temp4 ;
8396 wxSize temp5 ;
8397 long val6 ;
8398 int ecode6 = 0 ;
8399 bool temp7 = false ;
8400 PyObject * obj0 = 0 ;
8401 PyObject * obj1 = 0 ;
8402 PyObject * obj2 = 0 ;
8403 PyObject * obj3 = 0 ;
8404 PyObject * obj4 = 0 ;
8405 PyObject * obj5 = 0 ;
8406 PyObject * obj6 = 0 ;
8407 char * kwnames[] = {
8408 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8409 };
8410
8411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8413 if (!SWIG_IsOK(res1)) {
8414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8415 }
8416 arg1 = reinterpret_cast< wxWindow * >(argp1);
8417 if (obj1) {
8418 ecode2 = SWIG_AsVal_int(obj1, &val2);
8419 if (!SWIG_IsOK(ecode2)) {
8420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8421 }
8422 arg2 = static_cast< int >(val2);
8423 }
8424 if (obj2) {
8425 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8426 if (!SWIG_IsOK(res3)) {
8427 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8428 }
8429 if (!argp3) {
8430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8431 }
8432 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8433 }
8434 if (obj3) {
8435 {
8436 arg4 = &temp4;
8437 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8438 }
8439 }
8440 if (obj4) {
8441 {
8442 arg5 = &temp5;
8443 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8444 }
8445 }
8446 if (obj5) {
8447 ecode6 = SWIG_AsVal_long(obj5, &val6);
8448 if (!SWIG_IsOK(ecode6)) {
8449 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8450 }
8451 arg6 = static_cast< long >(val6);
8452 }
8453 if (obj6) {
8454 {
8455 arg7 = wxString_in_helper(obj6);
8456 if (arg7 == NULL) SWIG_fail;
8457 temp7 = true;
8458 }
8459 }
8460 {
8461 if (!wxPyCheckForApp()) SWIG_fail;
8462 PyThreadState* __tstate = wxPyBeginAllowThreads();
8463 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8464 wxPyEndAllowThreads(__tstate);
8465 if (PyErr_Occurred()) SWIG_fail;
8466 }
8467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8468 {
8469 if (temp7)
8470 delete arg7;
8471 }
8472 return resultobj;
8473 fail:
8474 {
8475 if (temp7)
8476 delete arg7;
8477 }
8478 return NULL;
8479 }
8480
8481
8482 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8483 PyObject *resultobj = 0;
8484 wxStaticBitmap *result = 0 ;
8485
8486 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8487 {
8488 if (!wxPyCheckForApp()) SWIG_fail;
8489 PyThreadState* __tstate = wxPyBeginAllowThreads();
8490 result = (wxStaticBitmap *)new wxStaticBitmap();
8491 wxPyEndAllowThreads(__tstate);
8492 if (PyErr_Occurred()) SWIG_fail;
8493 }
8494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8495 return resultobj;
8496 fail:
8497 return NULL;
8498 }
8499
8500
8501 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj = 0;
8503 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8504 wxWindow *arg2 = (wxWindow *) 0 ;
8505 int arg3 = (int) -1 ;
8506 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8507 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8508 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8509 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8510 wxSize const &arg6_defvalue = wxDefaultSize ;
8511 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8512 long arg7 = (long) 0 ;
8513 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8514 wxString *arg8 = (wxString *) &arg8_defvalue ;
8515 bool result;
8516 void *argp1 = 0 ;
8517 int res1 = 0 ;
8518 void *argp2 = 0 ;
8519 int res2 = 0 ;
8520 int val3 ;
8521 int ecode3 = 0 ;
8522 void *argp4 = 0 ;
8523 int res4 = 0 ;
8524 wxPoint temp5 ;
8525 wxSize temp6 ;
8526 long val7 ;
8527 int ecode7 = 0 ;
8528 bool temp8 = false ;
8529 PyObject * obj0 = 0 ;
8530 PyObject * obj1 = 0 ;
8531 PyObject * obj2 = 0 ;
8532 PyObject * obj3 = 0 ;
8533 PyObject * obj4 = 0 ;
8534 PyObject * obj5 = 0 ;
8535 PyObject * obj6 = 0 ;
8536 PyObject * obj7 = 0 ;
8537 char * kwnames[] = {
8538 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8539 };
8540
8541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8543 if (!SWIG_IsOK(res1)) {
8544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8545 }
8546 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8547 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8548 if (!SWIG_IsOK(res2)) {
8549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8550 }
8551 arg2 = reinterpret_cast< wxWindow * >(argp2);
8552 if (obj2) {
8553 ecode3 = SWIG_AsVal_int(obj2, &val3);
8554 if (!SWIG_IsOK(ecode3)) {
8555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8556 }
8557 arg3 = static_cast< int >(val3);
8558 }
8559 if (obj3) {
8560 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8561 if (!SWIG_IsOK(res4)) {
8562 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8563 }
8564 if (!argp4) {
8565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8566 }
8567 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8568 }
8569 if (obj4) {
8570 {
8571 arg5 = &temp5;
8572 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8573 }
8574 }
8575 if (obj5) {
8576 {
8577 arg6 = &temp6;
8578 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8579 }
8580 }
8581 if (obj6) {
8582 ecode7 = SWIG_AsVal_long(obj6, &val7);
8583 if (!SWIG_IsOK(ecode7)) {
8584 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8585 }
8586 arg7 = static_cast< long >(val7);
8587 }
8588 if (obj7) {
8589 {
8590 arg8 = wxString_in_helper(obj7);
8591 if (arg8 == NULL) SWIG_fail;
8592 temp8 = true;
8593 }
8594 }
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 {
8602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8603 }
8604 {
8605 if (temp8)
8606 delete arg8;
8607 }
8608 return resultobj;
8609 fail:
8610 {
8611 if (temp8)
8612 delete arg8;
8613 }
8614 return NULL;
8615 }
8616
8617
8618 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8619 PyObject *resultobj = 0;
8620 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8621 wxBitmap result;
8622 void *argp1 = 0 ;
8623 int res1 = 0 ;
8624 PyObject *swig_obj[1] ;
8625
8626 if (!args) SWIG_fail;
8627 swig_obj[0] = args;
8628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8629 if (!SWIG_IsOK(res1)) {
8630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8631 }
8632 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8633 {
8634 PyThreadState* __tstate = wxPyBeginAllowThreads();
8635 result = (arg1)->GetBitmap();
8636 wxPyEndAllowThreads(__tstate);
8637 if (PyErr_Occurred()) SWIG_fail;
8638 }
8639 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8640 return resultobj;
8641 fail:
8642 return NULL;
8643 }
8644
8645
8646 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8647 PyObject *resultobj = 0;
8648 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8649 wxBitmap *arg2 = 0 ;
8650 void *argp1 = 0 ;
8651 int res1 = 0 ;
8652 void *argp2 = 0 ;
8653 int res2 = 0 ;
8654 PyObject * obj0 = 0 ;
8655 PyObject * obj1 = 0 ;
8656 char * kwnames[] = {
8657 (char *) "self",(char *) "bitmap", NULL
8658 };
8659
8660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8662 if (!SWIG_IsOK(res1)) {
8663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8664 }
8665 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8667 if (!SWIG_IsOK(res2)) {
8668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8669 }
8670 if (!argp2) {
8671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8672 }
8673 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8674 {
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8677 wxPyEndAllowThreads(__tstate);
8678 if (PyErr_Occurred()) SWIG_fail;
8679 }
8680 resultobj = SWIG_Py_Void();
8681 return resultobj;
8682 fail:
8683 return NULL;
8684 }
8685
8686
8687 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8688 PyObject *resultobj = 0;
8689 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8690 wxIcon *arg2 = 0 ;
8691 void *argp1 = 0 ;
8692 int res1 = 0 ;
8693 void *argp2 = 0 ;
8694 int res2 = 0 ;
8695 PyObject * obj0 = 0 ;
8696 PyObject * obj1 = 0 ;
8697 char * kwnames[] = {
8698 (char *) "self",(char *) "icon", NULL
8699 };
8700
8701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8703 if (!SWIG_IsOK(res1)) {
8704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8705 }
8706 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8708 if (!SWIG_IsOK(res2)) {
8709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8710 }
8711 if (!argp2) {
8712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8713 }
8714 arg2 = reinterpret_cast< wxIcon * >(argp2);
8715 {
8716 PyThreadState* __tstate = wxPyBeginAllowThreads();
8717 (arg1)->SetIcon((wxIcon const &)*arg2);
8718 wxPyEndAllowThreads(__tstate);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 }
8721 resultobj = SWIG_Py_Void();
8722 return resultobj;
8723 fail:
8724 return NULL;
8725 }
8726
8727
8728 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8729 PyObject *resultobj = 0;
8730 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8731 SwigValueWrapper<wxVisualAttributes > result;
8732 int val1 ;
8733 int ecode1 = 0 ;
8734 PyObject * obj0 = 0 ;
8735 char * kwnames[] = {
8736 (char *) "variant", NULL
8737 };
8738
8739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8740 if (obj0) {
8741 ecode1 = SWIG_AsVal_int(obj0, &val1);
8742 if (!SWIG_IsOK(ecode1)) {
8743 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8744 }
8745 arg1 = static_cast< wxWindowVariant >(val1);
8746 }
8747 {
8748 if (!wxPyCheckForApp()) SWIG_fail;
8749 PyThreadState* __tstate = wxPyBeginAllowThreads();
8750 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8751 wxPyEndAllowThreads(__tstate);
8752 if (PyErr_Occurred()) SWIG_fail;
8753 }
8754 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8755 return resultobj;
8756 fail:
8757 return NULL;
8758 }
8759
8760
8761 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8762 PyObject *obj;
8763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8764 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8765 return SWIG_Py_Void();
8766 }
8767
8768 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8769 return SWIG_Python_InitShadowInstance(args);
8770 }
8771
8772 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8773 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8774 return 1;
8775 }
8776
8777
8778 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8779 PyObject *pyobj = 0;
8780
8781 {
8782 #if wxUSE_UNICODE
8783 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8784 #else
8785 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8786 #endif
8787 }
8788 return pyobj;
8789 }
8790
8791
8792 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8793 PyObject *resultobj = 0;
8794 wxWindow *arg1 = (wxWindow *) 0 ;
8795 int arg2 = (int) -1 ;
8796 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8797 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8798 wxSize const &arg4_defvalue = wxDefaultSize ;
8799 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8800 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8801 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8802 long arg6 = (long) 0 ;
8803 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8804 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8805 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8806 wxString *arg8 = (wxString *) &arg8_defvalue ;
8807 wxListBox *result = 0 ;
8808 void *argp1 = 0 ;
8809 int res1 = 0 ;
8810 int val2 ;
8811 int ecode2 = 0 ;
8812 wxPoint temp3 ;
8813 wxSize temp4 ;
8814 bool temp5 = false ;
8815 long val6 ;
8816 int ecode6 = 0 ;
8817 void *argp7 = 0 ;
8818 int res7 = 0 ;
8819 bool temp8 = false ;
8820 PyObject * obj0 = 0 ;
8821 PyObject * obj1 = 0 ;
8822 PyObject * obj2 = 0 ;
8823 PyObject * obj3 = 0 ;
8824 PyObject * obj4 = 0 ;
8825 PyObject * obj5 = 0 ;
8826 PyObject * obj6 = 0 ;
8827 PyObject * obj7 = 0 ;
8828 char * kwnames[] = {
8829 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8830 };
8831
8832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8834 if (!SWIG_IsOK(res1)) {
8835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8836 }
8837 arg1 = reinterpret_cast< wxWindow * >(argp1);
8838 if (obj1) {
8839 ecode2 = SWIG_AsVal_int(obj1, &val2);
8840 if (!SWIG_IsOK(ecode2)) {
8841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8842 }
8843 arg2 = static_cast< int >(val2);
8844 }
8845 if (obj2) {
8846 {
8847 arg3 = &temp3;
8848 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8849 }
8850 }
8851 if (obj3) {
8852 {
8853 arg4 = &temp4;
8854 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8855 }
8856 }
8857 if (obj4) {
8858 {
8859 if (! PySequence_Check(obj4)) {
8860 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8861 SWIG_fail;
8862 }
8863 arg5 = new wxArrayString;
8864 temp5 = true;
8865 int i, len=PySequence_Length(obj4);
8866 for (i=0; i<len; i++) {
8867 PyObject* item = PySequence_GetItem(obj4, i);
8868 wxString* s = wxString_in_helper(item);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 arg5->Add(*s);
8871 delete s;
8872 Py_DECREF(item);
8873 }
8874 }
8875 }
8876 if (obj5) {
8877 ecode6 = SWIG_AsVal_long(obj5, &val6);
8878 if (!SWIG_IsOK(ecode6)) {
8879 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8880 }
8881 arg6 = static_cast< long >(val6);
8882 }
8883 if (obj6) {
8884 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8885 if (!SWIG_IsOK(res7)) {
8886 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8887 }
8888 if (!argp7) {
8889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8890 }
8891 arg7 = reinterpret_cast< wxValidator * >(argp7);
8892 }
8893 if (obj7) {
8894 {
8895 arg8 = wxString_in_helper(obj7);
8896 if (arg8 == NULL) SWIG_fail;
8897 temp8 = true;
8898 }
8899 }
8900 {
8901 if (!wxPyCheckForApp()) SWIG_fail;
8902 PyThreadState* __tstate = wxPyBeginAllowThreads();
8903 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8908 {
8909 if (temp5) delete arg5;
8910 }
8911 {
8912 if (temp8)
8913 delete arg8;
8914 }
8915 return resultobj;
8916 fail:
8917 {
8918 if (temp5) delete arg5;
8919 }
8920 {
8921 if (temp8)
8922 delete arg8;
8923 }
8924 return NULL;
8925 }
8926
8927
8928 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8929 PyObject *resultobj = 0;
8930 wxListBox *result = 0 ;
8931
8932 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8933 {
8934 if (!wxPyCheckForApp()) SWIG_fail;
8935 PyThreadState* __tstate = wxPyBeginAllowThreads();
8936 result = (wxListBox *)new wxListBox();
8937 wxPyEndAllowThreads(__tstate);
8938 if (PyErr_Occurred()) SWIG_fail;
8939 }
8940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8941 return resultobj;
8942 fail:
8943 return NULL;
8944 }
8945
8946
8947 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8948 PyObject *resultobj = 0;
8949 wxListBox *arg1 = (wxListBox *) 0 ;
8950 wxWindow *arg2 = (wxWindow *) 0 ;
8951 int arg3 = (int) -1 ;
8952 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8953 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8954 wxSize const &arg5_defvalue = wxDefaultSize ;
8955 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8956 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8957 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8958 long arg7 = (long) 0 ;
8959 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8960 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8961 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8962 wxString *arg9 = (wxString *) &arg9_defvalue ;
8963 bool result;
8964 void *argp1 = 0 ;
8965 int res1 = 0 ;
8966 void *argp2 = 0 ;
8967 int res2 = 0 ;
8968 int val3 ;
8969 int ecode3 = 0 ;
8970 wxPoint temp4 ;
8971 wxSize temp5 ;
8972 bool temp6 = false ;
8973 long val7 ;
8974 int ecode7 = 0 ;
8975 void *argp8 = 0 ;
8976 int res8 = 0 ;
8977 bool temp9 = false ;
8978 PyObject * obj0 = 0 ;
8979 PyObject * obj1 = 0 ;
8980 PyObject * obj2 = 0 ;
8981 PyObject * obj3 = 0 ;
8982 PyObject * obj4 = 0 ;
8983 PyObject * obj5 = 0 ;
8984 PyObject * obj6 = 0 ;
8985 PyObject * obj7 = 0 ;
8986 PyObject * obj8 = 0 ;
8987 char * kwnames[] = {
8988 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8989 };
8990
8991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8993 if (!SWIG_IsOK(res1)) {
8994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8995 }
8996 arg1 = reinterpret_cast< wxListBox * >(argp1);
8997 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8998 if (!SWIG_IsOK(res2)) {
8999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9000 }
9001 arg2 = reinterpret_cast< wxWindow * >(argp2);
9002 if (obj2) {
9003 ecode3 = SWIG_AsVal_int(obj2, &val3);
9004 if (!SWIG_IsOK(ecode3)) {
9005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9006 }
9007 arg3 = static_cast< int >(val3);
9008 }
9009 if (obj3) {
9010 {
9011 arg4 = &temp4;
9012 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9013 }
9014 }
9015 if (obj4) {
9016 {
9017 arg5 = &temp5;
9018 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9019 }
9020 }
9021 if (obj5) {
9022 {
9023 if (! PySequence_Check(obj5)) {
9024 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9025 SWIG_fail;
9026 }
9027 arg6 = new wxArrayString;
9028 temp6 = true;
9029 int i, len=PySequence_Length(obj5);
9030 for (i=0; i<len; i++) {
9031 PyObject* item = PySequence_GetItem(obj5, i);
9032 wxString* s = wxString_in_helper(item);
9033 if (PyErr_Occurred()) SWIG_fail;
9034 arg6->Add(*s);
9035 delete s;
9036 Py_DECREF(item);
9037 }
9038 }
9039 }
9040 if (obj6) {
9041 ecode7 = SWIG_AsVal_long(obj6, &val7);
9042 if (!SWIG_IsOK(ecode7)) {
9043 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9044 }
9045 arg7 = static_cast< long >(val7);
9046 }
9047 if (obj7) {
9048 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9049 if (!SWIG_IsOK(res8)) {
9050 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9051 }
9052 if (!argp8) {
9053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9054 }
9055 arg8 = reinterpret_cast< wxValidator * >(argp8);
9056 }
9057 if (obj8) {
9058 {
9059 arg9 = wxString_in_helper(obj8);
9060 if (arg9 == NULL) SWIG_fail;
9061 temp9 = true;
9062 }
9063 }
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9067 wxPyEndAllowThreads(__tstate);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 }
9070 {
9071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9072 }
9073 {
9074 if (temp6) delete arg6;
9075 }
9076 {
9077 if (temp9)
9078 delete arg9;
9079 }
9080 return resultobj;
9081 fail:
9082 {
9083 if (temp6) delete arg6;
9084 }
9085 {
9086 if (temp9)
9087 delete arg9;
9088 }
9089 return NULL;
9090 }
9091
9092
9093 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj = 0;
9095 wxListBox *arg1 = (wxListBox *) 0 ;
9096 wxString *arg2 = 0 ;
9097 int arg3 ;
9098 PyObject *arg4 = (PyObject *) NULL ;
9099 void *argp1 = 0 ;
9100 int res1 = 0 ;
9101 bool temp2 = false ;
9102 int val3 ;
9103 int ecode3 = 0 ;
9104 PyObject * obj0 = 0 ;
9105 PyObject * obj1 = 0 ;
9106 PyObject * obj2 = 0 ;
9107 PyObject * obj3 = 0 ;
9108 char * kwnames[] = {
9109 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9110 };
9111
9112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9114 if (!SWIG_IsOK(res1)) {
9115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9116 }
9117 arg1 = reinterpret_cast< wxListBox * >(argp1);
9118 {
9119 arg2 = wxString_in_helper(obj1);
9120 if (arg2 == NULL) SWIG_fail;
9121 temp2 = true;
9122 }
9123 ecode3 = SWIG_AsVal_int(obj2, &val3);
9124 if (!SWIG_IsOK(ecode3)) {
9125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9126 }
9127 arg3 = static_cast< int >(val3);
9128 if (obj3) {
9129 arg4 = obj3;
9130 }
9131 {
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 resultobj = SWIG_Py_Void();
9138 {
9139 if (temp2)
9140 delete arg2;
9141 }
9142 return resultobj;
9143 fail:
9144 {
9145 if (temp2)
9146 delete arg2;
9147 }
9148 return NULL;
9149 }
9150
9151
9152 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9153 PyObject *resultobj = 0;
9154 wxListBox *arg1 = (wxListBox *) 0 ;
9155 wxArrayString *arg2 = 0 ;
9156 unsigned int arg3 ;
9157 void *argp1 = 0 ;
9158 int res1 = 0 ;
9159 bool temp2 = false ;
9160 unsigned int val3 ;
9161 int ecode3 = 0 ;
9162 PyObject * obj0 = 0 ;
9163 PyObject * obj1 = 0 ;
9164 PyObject * obj2 = 0 ;
9165 char * kwnames[] = {
9166 (char *) "self",(char *) "items",(char *) "pos", NULL
9167 };
9168
9169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9171 if (!SWIG_IsOK(res1)) {
9172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9173 }
9174 arg1 = reinterpret_cast< wxListBox * >(argp1);
9175 {
9176 if (! PySequence_Check(obj1)) {
9177 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9178 SWIG_fail;
9179 }
9180 arg2 = new wxArrayString;
9181 temp2 = true;
9182 int i, len=PySequence_Length(obj1);
9183 for (i=0; i<len; i++) {
9184 PyObject* item = PySequence_GetItem(obj1, i);
9185 wxString* s = wxString_in_helper(item);
9186 if (PyErr_Occurred()) SWIG_fail;
9187 arg2->Add(*s);
9188 delete s;
9189 Py_DECREF(item);
9190 }
9191 }
9192 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9193 if (!SWIG_IsOK(ecode3)) {
9194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9195 }
9196 arg3 = static_cast< unsigned int >(val3);
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 resultobj = SWIG_Py_Void();
9204 {
9205 if (temp2) delete arg2;
9206 }
9207 return resultobj;
9208 fail:
9209 {
9210 if (temp2) delete arg2;
9211 }
9212 return NULL;
9213 }
9214
9215
9216 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9217 PyObject *resultobj = 0;
9218 wxListBox *arg1 = (wxListBox *) 0 ;
9219 wxArrayString *arg2 = 0 ;
9220 void *argp1 = 0 ;
9221 int res1 = 0 ;
9222 bool temp2 = false ;
9223 PyObject * obj0 = 0 ;
9224 PyObject * obj1 = 0 ;
9225 char * kwnames[] = {
9226 (char *) "self",(char *) "items", NULL
9227 };
9228
9229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9231 if (!SWIG_IsOK(res1)) {
9232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9233 }
9234 arg1 = reinterpret_cast< wxListBox * >(argp1);
9235 {
9236 if (! PySequence_Check(obj1)) {
9237 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9238 SWIG_fail;
9239 }
9240 arg2 = new wxArrayString;
9241 temp2 = true;
9242 int i, len=PySequence_Length(obj1);
9243 for (i=0; i<len; i++) {
9244 PyObject* item = PySequence_GetItem(obj1, i);
9245 wxString* s = wxString_in_helper(item);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 arg2->Add(*s);
9248 delete s;
9249 Py_DECREF(item);
9250 }
9251 }
9252 {
9253 PyThreadState* __tstate = wxPyBeginAllowThreads();
9254 (arg1)->Set((wxArrayString const &)*arg2);
9255 wxPyEndAllowThreads(__tstate);
9256 if (PyErr_Occurred()) SWIG_fail;
9257 }
9258 resultobj = SWIG_Py_Void();
9259 {
9260 if (temp2) delete arg2;
9261 }
9262 return resultobj;
9263 fail:
9264 {
9265 if (temp2) delete arg2;
9266 }
9267 return NULL;
9268 }
9269
9270
9271 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9272 PyObject *resultobj = 0;
9273 wxListBox *arg1 = (wxListBox *) 0 ;
9274 int arg2 ;
9275 bool result;
9276 void *argp1 = 0 ;
9277 int res1 = 0 ;
9278 int val2 ;
9279 int ecode2 = 0 ;
9280 PyObject * obj0 = 0 ;
9281 PyObject * obj1 = 0 ;
9282 char * kwnames[] = {
9283 (char *) "self",(char *) "n", NULL
9284 };
9285
9286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9288 if (!SWIG_IsOK(res1)) {
9289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9290 }
9291 arg1 = reinterpret_cast< wxListBox * >(argp1);
9292 ecode2 = SWIG_AsVal_int(obj1, &val2);
9293 if (!SWIG_IsOK(ecode2)) {
9294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9295 }
9296 arg2 = static_cast< int >(val2);
9297 {
9298 PyThreadState* __tstate = wxPyBeginAllowThreads();
9299 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9300 wxPyEndAllowThreads(__tstate);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 {
9304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9305 }
9306 return resultobj;
9307 fail:
9308 return NULL;
9309 }
9310
9311
9312 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9313 PyObject *resultobj = 0;
9314 wxListBox *arg1 = (wxListBox *) 0 ;
9315 int arg2 ;
9316 bool arg3 = (bool) true ;
9317 void *argp1 = 0 ;
9318 int res1 = 0 ;
9319 int val2 ;
9320 int ecode2 = 0 ;
9321 bool val3 ;
9322 int ecode3 = 0 ;
9323 PyObject * obj0 = 0 ;
9324 PyObject * obj1 = 0 ;
9325 PyObject * obj2 = 0 ;
9326 char * kwnames[] = {
9327 (char *) "self",(char *) "n",(char *) "select", NULL
9328 };
9329
9330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9332 if (!SWIG_IsOK(res1)) {
9333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9334 }
9335 arg1 = reinterpret_cast< wxListBox * >(argp1);
9336 ecode2 = SWIG_AsVal_int(obj1, &val2);
9337 if (!SWIG_IsOK(ecode2)) {
9338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9339 }
9340 arg2 = static_cast< int >(val2);
9341 if (obj2) {
9342 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9343 if (!SWIG_IsOK(ecode3)) {
9344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9345 }
9346 arg3 = static_cast< bool >(val3);
9347 }
9348 {
9349 PyThreadState* __tstate = wxPyBeginAllowThreads();
9350 (arg1)->SetSelection(arg2,arg3);
9351 wxPyEndAllowThreads(__tstate);
9352 if (PyErr_Occurred()) SWIG_fail;
9353 }
9354 resultobj = SWIG_Py_Void();
9355 return resultobj;
9356 fail:
9357 return NULL;
9358 }
9359
9360
9361 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9362 PyObject *resultobj = 0;
9363 wxListBox *arg1 = (wxListBox *) 0 ;
9364 int arg2 ;
9365 void *argp1 = 0 ;
9366 int res1 = 0 ;
9367 int val2 ;
9368 int ecode2 = 0 ;
9369 PyObject * obj0 = 0 ;
9370 PyObject * obj1 = 0 ;
9371 char * kwnames[] = {
9372 (char *) "self",(char *) "n", NULL
9373 };
9374
9375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9377 if (!SWIG_IsOK(res1)) {
9378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9379 }
9380 arg1 = reinterpret_cast< wxListBox * >(argp1);
9381 ecode2 = SWIG_AsVal_int(obj1, &val2);
9382 if (!SWIG_IsOK(ecode2)) {
9383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9384 }
9385 arg2 = static_cast< int >(val2);
9386 {
9387 PyThreadState* __tstate = wxPyBeginAllowThreads();
9388 (arg1)->Select(arg2);
9389 wxPyEndAllowThreads(__tstate);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 }
9392 resultobj = SWIG_Py_Void();
9393 return resultobj;
9394 fail:
9395 return NULL;
9396 }
9397
9398
9399 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9400 PyObject *resultobj = 0;
9401 wxListBox *arg1 = (wxListBox *) 0 ;
9402 int arg2 ;
9403 void *argp1 = 0 ;
9404 int res1 = 0 ;
9405 int val2 ;
9406 int ecode2 = 0 ;
9407 PyObject * obj0 = 0 ;
9408 PyObject * obj1 = 0 ;
9409 char * kwnames[] = {
9410 (char *) "self",(char *) "n", NULL
9411 };
9412
9413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9415 if (!SWIG_IsOK(res1)) {
9416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9417 }
9418 arg1 = reinterpret_cast< wxListBox * >(argp1);
9419 ecode2 = SWIG_AsVal_int(obj1, &val2);
9420 if (!SWIG_IsOK(ecode2)) {
9421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9422 }
9423 arg2 = static_cast< int >(val2);
9424 {
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 (arg1)->Deselect(arg2);
9427 wxPyEndAllowThreads(__tstate);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
9430 resultobj = SWIG_Py_Void();
9431 return resultobj;
9432 fail:
9433 return NULL;
9434 }
9435
9436
9437 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9438 PyObject *resultobj = 0;
9439 wxListBox *arg1 = (wxListBox *) 0 ;
9440 int arg2 = (int) -1 ;
9441 void *argp1 = 0 ;
9442 int res1 = 0 ;
9443 int val2 ;
9444 int ecode2 = 0 ;
9445 PyObject * obj0 = 0 ;
9446 PyObject * obj1 = 0 ;
9447 char * kwnames[] = {
9448 (char *) "self",(char *) "itemToLeaveSelected", NULL
9449 };
9450
9451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9453 if (!SWIG_IsOK(res1)) {
9454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9455 }
9456 arg1 = reinterpret_cast< wxListBox * >(argp1);
9457 if (obj1) {
9458 ecode2 = SWIG_AsVal_int(obj1, &val2);
9459 if (!SWIG_IsOK(ecode2)) {
9460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9461 }
9462 arg2 = static_cast< int >(val2);
9463 }
9464 {
9465 PyThreadState* __tstate = wxPyBeginAllowThreads();
9466 (arg1)->DeselectAll(arg2);
9467 wxPyEndAllowThreads(__tstate);
9468 if (PyErr_Occurred()) SWIG_fail;
9469 }
9470 resultobj = SWIG_Py_Void();
9471 return resultobj;
9472 fail:
9473 return NULL;
9474 }
9475
9476
9477 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9478 PyObject *resultobj = 0;
9479 wxListBox *arg1 = (wxListBox *) 0 ;
9480 wxString *arg2 = 0 ;
9481 bool arg3 = (bool) true ;
9482 bool result;
9483 void *argp1 = 0 ;
9484 int res1 = 0 ;
9485 bool temp2 = false ;
9486 bool val3 ;
9487 int ecode3 = 0 ;
9488 PyObject * obj0 = 0 ;
9489 PyObject * obj1 = 0 ;
9490 PyObject * obj2 = 0 ;
9491 char * kwnames[] = {
9492 (char *) "self",(char *) "s",(char *) "select", NULL
9493 };
9494
9495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9497 if (!SWIG_IsOK(res1)) {
9498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9499 }
9500 arg1 = reinterpret_cast< wxListBox * >(argp1);
9501 {
9502 arg2 = wxString_in_helper(obj1);
9503 if (arg2 == NULL) SWIG_fail;
9504 temp2 = true;
9505 }
9506 if (obj2) {
9507 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9508 if (!SWIG_IsOK(ecode3)) {
9509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9510 }
9511 arg3 = static_cast< bool >(val3);
9512 }
9513 {
9514 PyThreadState* __tstate = wxPyBeginAllowThreads();
9515 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9516 wxPyEndAllowThreads(__tstate);
9517 if (PyErr_Occurred()) SWIG_fail;
9518 }
9519 {
9520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9521 }
9522 {
9523 if (temp2)
9524 delete arg2;
9525 }
9526 return resultobj;
9527 fail:
9528 {
9529 if (temp2)
9530 delete arg2;
9531 }
9532 return NULL;
9533 }
9534
9535
9536 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9537 PyObject *resultobj = 0;
9538 wxListBox *arg1 = (wxListBox *) 0 ;
9539 PyObject *result = 0 ;
9540 void *argp1 = 0 ;
9541 int res1 = 0 ;
9542 PyObject *swig_obj[1] ;
9543
9544 if (!args) SWIG_fail;
9545 swig_obj[0] = args;
9546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9547 if (!SWIG_IsOK(res1)) {
9548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9549 }
9550 arg1 = reinterpret_cast< wxListBox * >(argp1);
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
9553 result = (PyObject *)wxListBox_GetSelections(arg1);
9554 wxPyEndAllowThreads(__tstate);
9555 if (PyErr_Occurred()) SWIG_fail;
9556 }
9557 resultobj = result;
9558 return resultobj;
9559 fail:
9560 return NULL;
9561 }
9562
9563
9564 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9565 PyObject *resultobj = 0;
9566 wxListBox *arg1 = (wxListBox *) 0 ;
9567 int arg2 ;
9568 void *argp1 = 0 ;
9569 int res1 = 0 ;
9570 int val2 ;
9571 int ecode2 = 0 ;
9572 PyObject * obj0 = 0 ;
9573 PyObject * obj1 = 0 ;
9574 char * kwnames[] = {
9575 (char *) "self",(char *) "n", NULL
9576 };
9577
9578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9580 if (!SWIG_IsOK(res1)) {
9581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9582 }
9583 arg1 = reinterpret_cast< wxListBox * >(argp1);
9584 ecode2 = SWIG_AsVal_int(obj1, &val2);
9585 if (!SWIG_IsOK(ecode2)) {
9586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9587 }
9588 arg2 = static_cast< int >(val2);
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 (arg1)->SetFirstItem(arg2);
9592 wxPyEndAllowThreads(__tstate);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 resultobj = SWIG_Py_Void();
9596 return resultobj;
9597 fail:
9598 return NULL;
9599 }
9600
9601
9602 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9603 PyObject *resultobj = 0;
9604 wxListBox *arg1 = (wxListBox *) 0 ;
9605 wxString *arg2 = 0 ;
9606 void *argp1 = 0 ;
9607 int res1 = 0 ;
9608 bool temp2 = false ;
9609 PyObject * obj0 = 0 ;
9610 PyObject * obj1 = 0 ;
9611 char * kwnames[] = {
9612 (char *) "self",(char *) "s", NULL
9613 };
9614
9615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9617 if (!SWIG_IsOK(res1)) {
9618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9619 }
9620 arg1 = reinterpret_cast< wxListBox * >(argp1);
9621 {
9622 arg2 = wxString_in_helper(obj1);
9623 if (arg2 == NULL) SWIG_fail;
9624 temp2 = true;
9625 }
9626 {
9627 PyThreadState* __tstate = wxPyBeginAllowThreads();
9628 (arg1)->SetFirstItem((wxString const &)*arg2);
9629 wxPyEndAllowThreads(__tstate);
9630 if (PyErr_Occurred()) SWIG_fail;
9631 }
9632 resultobj = SWIG_Py_Void();
9633 {
9634 if (temp2)
9635 delete arg2;
9636 }
9637 return resultobj;
9638 fail:
9639 {
9640 if (temp2)
9641 delete arg2;
9642 }
9643 return NULL;
9644 }
9645
9646
9647 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9648 PyObject *resultobj = 0;
9649 wxListBox *arg1 = (wxListBox *) 0 ;
9650 int arg2 ;
9651 void *argp1 = 0 ;
9652 int res1 = 0 ;
9653 int val2 ;
9654 int ecode2 = 0 ;
9655 PyObject * obj0 = 0 ;
9656 PyObject * obj1 = 0 ;
9657 char * kwnames[] = {
9658 (char *) "self",(char *) "n", NULL
9659 };
9660
9661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9663 if (!SWIG_IsOK(res1)) {
9664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9665 }
9666 arg1 = reinterpret_cast< wxListBox * >(argp1);
9667 ecode2 = SWIG_AsVal_int(obj1, &val2);
9668 if (!SWIG_IsOK(ecode2)) {
9669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9670 }
9671 arg2 = static_cast< int >(val2);
9672 {
9673 PyThreadState* __tstate = wxPyBeginAllowThreads();
9674 (arg1)->EnsureVisible(arg2);
9675 wxPyEndAllowThreads(__tstate);
9676 if (PyErr_Occurred()) SWIG_fail;
9677 }
9678 resultobj = SWIG_Py_Void();
9679 return resultobj;
9680 fail:
9681 return NULL;
9682 }
9683
9684
9685 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9686 PyObject *resultobj = 0;
9687 wxListBox *arg1 = (wxListBox *) 0 ;
9688 wxString *arg2 = 0 ;
9689 void *argp1 = 0 ;
9690 int res1 = 0 ;
9691 bool temp2 = false ;
9692 PyObject * obj0 = 0 ;
9693 PyObject * obj1 = 0 ;
9694 char * kwnames[] = {
9695 (char *) "self",(char *) "s", NULL
9696 };
9697
9698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9700 if (!SWIG_IsOK(res1)) {
9701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9702 }
9703 arg1 = reinterpret_cast< wxListBox * >(argp1);
9704 {
9705 arg2 = wxString_in_helper(obj1);
9706 if (arg2 == NULL) SWIG_fail;
9707 temp2 = true;
9708 }
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9712 wxPyEndAllowThreads(__tstate);
9713 if (PyErr_Occurred()) SWIG_fail;
9714 }
9715 resultobj = SWIG_Py_Void();
9716 {
9717 if (temp2)
9718 delete arg2;
9719 }
9720 return resultobj;
9721 fail:
9722 {
9723 if (temp2)
9724 delete arg2;
9725 }
9726 return NULL;
9727 }
9728
9729
9730 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9731 PyObject *resultobj = 0;
9732 wxListBox *arg1 = (wxListBox *) 0 ;
9733 bool result;
9734 void *argp1 = 0 ;
9735 int res1 = 0 ;
9736 PyObject *swig_obj[1] ;
9737
9738 if (!args) SWIG_fail;
9739 swig_obj[0] = args;
9740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9741 if (!SWIG_IsOK(res1)) {
9742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9743 }
9744 arg1 = reinterpret_cast< wxListBox * >(argp1);
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 result = (bool)((wxListBox const *)arg1)->IsSorted();
9748 wxPyEndAllowThreads(__tstate);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 {
9752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9753 }
9754 return resultobj;
9755 fail:
9756 return NULL;
9757 }
9758
9759
9760 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9761 PyObject *resultobj = 0;
9762 wxListBox *arg1 = (wxListBox *) 0 ;
9763 wxPoint *arg2 = 0 ;
9764 int result;
9765 void *argp1 = 0 ;
9766 int res1 = 0 ;
9767 wxPoint temp2 ;
9768 PyObject * obj0 = 0 ;
9769 PyObject * obj1 = 0 ;
9770 char * kwnames[] = {
9771 (char *) "self",(char *) "pt", NULL
9772 };
9773
9774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9776 if (!SWIG_IsOK(res1)) {
9777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9778 }
9779 arg1 = reinterpret_cast< wxListBox * >(argp1);
9780 {
9781 arg2 = &temp2;
9782 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9783 }
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9787 wxPyEndAllowThreads(__tstate);
9788 if (PyErr_Occurred()) SWIG_fail;
9789 }
9790 resultobj = SWIG_From_int(static_cast< int >(result));
9791 return resultobj;
9792 fail:
9793 return NULL;
9794 }
9795
9796
9797 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9798 PyObject *resultobj = 0;
9799 wxListBox *arg1 = (wxListBox *) 0 ;
9800 int arg2 ;
9801 wxColour *arg3 = 0 ;
9802 void *argp1 = 0 ;
9803 int res1 = 0 ;
9804 int val2 ;
9805 int ecode2 = 0 ;
9806 wxColour temp3 ;
9807 PyObject * obj0 = 0 ;
9808 PyObject * obj1 = 0 ;
9809 PyObject * obj2 = 0 ;
9810 char * kwnames[] = {
9811 (char *) "self",(char *) "item",(char *) "c", NULL
9812 };
9813
9814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9816 if (!SWIG_IsOK(res1)) {
9817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9818 }
9819 arg1 = reinterpret_cast< wxListBox * >(argp1);
9820 ecode2 = SWIG_AsVal_int(obj1, &val2);
9821 if (!SWIG_IsOK(ecode2)) {
9822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9823 }
9824 arg2 = static_cast< int >(val2);
9825 {
9826 arg3 = &temp3;
9827 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9828 }
9829 {
9830 PyThreadState* __tstate = wxPyBeginAllowThreads();
9831 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9832 wxPyEndAllowThreads(__tstate);
9833 if (PyErr_Occurred()) SWIG_fail;
9834 }
9835 resultobj = SWIG_Py_Void();
9836 return resultobj;
9837 fail:
9838 return NULL;
9839 }
9840
9841
9842 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9843 PyObject *resultobj = 0;
9844 wxListBox *arg1 = (wxListBox *) 0 ;
9845 int arg2 ;
9846 wxColour *arg3 = 0 ;
9847 void *argp1 = 0 ;
9848 int res1 = 0 ;
9849 int val2 ;
9850 int ecode2 = 0 ;
9851 wxColour temp3 ;
9852 PyObject * obj0 = 0 ;
9853 PyObject * obj1 = 0 ;
9854 PyObject * obj2 = 0 ;
9855 char * kwnames[] = {
9856 (char *) "self",(char *) "item",(char *) "c", NULL
9857 };
9858
9859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9861 if (!SWIG_IsOK(res1)) {
9862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9863 }
9864 arg1 = reinterpret_cast< wxListBox * >(argp1);
9865 ecode2 = SWIG_AsVal_int(obj1, &val2);
9866 if (!SWIG_IsOK(ecode2)) {
9867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9868 }
9869 arg2 = static_cast< int >(val2);
9870 {
9871 arg3 = &temp3;
9872 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9873 }
9874 {
9875 PyThreadState* __tstate = wxPyBeginAllowThreads();
9876 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
9880 resultobj = SWIG_Py_Void();
9881 return resultobj;
9882 fail:
9883 return NULL;
9884 }
9885
9886
9887 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj = 0;
9889 wxListBox *arg1 = (wxListBox *) 0 ;
9890 int arg2 ;
9891 wxFont *arg3 = 0 ;
9892 void *argp1 = 0 ;
9893 int res1 = 0 ;
9894 int val2 ;
9895 int ecode2 = 0 ;
9896 void *argp3 = 0 ;
9897 int res3 = 0 ;
9898 PyObject * obj0 = 0 ;
9899 PyObject * obj1 = 0 ;
9900 PyObject * obj2 = 0 ;
9901 char * kwnames[] = {
9902 (char *) "self",(char *) "item",(char *) "f", NULL
9903 };
9904
9905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9907 if (!SWIG_IsOK(res1)) {
9908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9909 }
9910 arg1 = reinterpret_cast< wxListBox * >(argp1);
9911 ecode2 = SWIG_AsVal_int(obj1, &val2);
9912 if (!SWIG_IsOK(ecode2)) {
9913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9914 }
9915 arg2 = static_cast< int >(val2);
9916 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9917 if (!SWIG_IsOK(res3)) {
9918 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9919 }
9920 if (!argp3) {
9921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9922 }
9923 arg3 = reinterpret_cast< wxFont * >(argp3);
9924 {
9925 PyThreadState* __tstate = wxPyBeginAllowThreads();
9926 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9927 wxPyEndAllowThreads(__tstate);
9928 if (PyErr_Occurred()) SWIG_fail;
9929 }
9930 resultobj = SWIG_Py_Void();
9931 return resultobj;
9932 fail:
9933 return NULL;
9934 }
9935
9936
9937 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9938 PyObject *resultobj = 0;
9939 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9940 SwigValueWrapper<wxVisualAttributes > result;
9941 int val1 ;
9942 int ecode1 = 0 ;
9943 PyObject * obj0 = 0 ;
9944 char * kwnames[] = {
9945 (char *) "variant", NULL
9946 };
9947
9948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9949 if (obj0) {
9950 ecode1 = SWIG_AsVal_int(obj0, &val1);
9951 if (!SWIG_IsOK(ecode1)) {
9952 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9953 }
9954 arg1 = static_cast< wxWindowVariant >(val1);
9955 }
9956 {
9957 if (!wxPyCheckForApp()) SWIG_fail;
9958 PyThreadState* __tstate = wxPyBeginAllowThreads();
9959 result = wxListBox::GetClassDefaultAttributes(arg1);
9960 wxPyEndAllowThreads(__tstate);
9961 if (PyErr_Occurred()) SWIG_fail;
9962 }
9963 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9964 return resultobj;
9965 fail:
9966 return NULL;
9967 }
9968
9969
9970 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9971 PyObject *obj;
9972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9973 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9974 return SWIG_Py_Void();
9975 }
9976
9977 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9978 return SWIG_Python_InitShadowInstance(args);
9979 }
9980
9981 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9982 PyObject *resultobj = 0;
9983 wxWindow *arg1 = (wxWindow *) 0 ;
9984 int arg2 = (int) -1 ;
9985 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9986 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9987 wxSize const &arg4_defvalue = wxDefaultSize ;
9988 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9989 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9990 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9991 long arg6 = (long) 0 ;
9992 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9993 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9994 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9995 wxString *arg8 = (wxString *) &arg8_defvalue ;
9996 wxCheckListBox *result = 0 ;
9997 void *argp1 = 0 ;
9998 int res1 = 0 ;
9999 int val2 ;
10000 int ecode2 = 0 ;
10001 wxPoint temp3 ;
10002 wxSize temp4 ;
10003 bool temp5 = false ;
10004 long val6 ;
10005 int ecode6 = 0 ;
10006 void *argp7 = 0 ;
10007 int res7 = 0 ;
10008 bool temp8 = false ;
10009 PyObject * obj0 = 0 ;
10010 PyObject * obj1 = 0 ;
10011 PyObject * obj2 = 0 ;
10012 PyObject * obj3 = 0 ;
10013 PyObject * obj4 = 0 ;
10014 PyObject * obj5 = 0 ;
10015 PyObject * obj6 = 0 ;
10016 PyObject * obj7 = 0 ;
10017 char * kwnames[] = {
10018 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10019 };
10020
10021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10023 if (!SWIG_IsOK(res1)) {
10024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10025 }
10026 arg1 = reinterpret_cast< wxWindow * >(argp1);
10027 if (obj1) {
10028 ecode2 = SWIG_AsVal_int(obj1, &val2);
10029 if (!SWIG_IsOK(ecode2)) {
10030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10031 }
10032 arg2 = static_cast< int >(val2);
10033 }
10034 if (obj2) {
10035 {
10036 arg3 = &temp3;
10037 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10038 }
10039 }
10040 if (obj3) {
10041 {
10042 arg4 = &temp4;
10043 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10044 }
10045 }
10046 if (obj4) {
10047 {
10048 if (! PySequence_Check(obj4)) {
10049 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10050 SWIG_fail;
10051 }
10052 arg5 = new wxArrayString;
10053 temp5 = true;
10054 int i, len=PySequence_Length(obj4);
10055 for (i=0; i<len; i++) {
10056 PyObject* item = PySequence_GetItem(obj4, i);
10057 wxString* s = wxString_in_helper(item);
10058 if (PyErr_Occurred()) SWIG_fail;
10059 arg5->Add(*s);
10060 delete s;
10061 Py_DECREF(item);
10062 }
10063 }
10064 }
10065 if (obj5) {
10066 ecode6 = SWIG_AsVal_long(obj5, &val6);
10067 if (!SWIG_IsOK(ecode6)) {
10068 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10069 }
10070 arg6 = static_cast< long >(val6);
10071 }
10072 if (obj6) {
10073 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10074 if (!SWIG_IsOK(res7)) {
10075 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10076 }
10077 if (!argp7) {
10078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10079 }
10080 arg7 = reinterpret_cast< wxValidator * >(argp7);
10081 }
10082 if (obj7) {
10083 {
10084 arg8 = wxString_in_helper(obj7);
10085 if (arg8 == NULL) SWIG_fail;
10086 temp8 = true;
10087 }
10088 }
10089 {
10090 if (!wxPyCheckForApp()) SWIG_fail;
10091 PyThreadState* __tstate = wxPyBeginAllowThreads();
10092 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10093 wxPyEndAllowThreads(__tstate);
10094 if (PyErr_Occurred()) SWIG_fail;
10095 }
10096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10097 {
10098 if (temp5) delete arg5;
10099 }
10100 {
10101 if (temp8)
10102 delete arg8;
10103 }
10104 return resultobj;
10105 fail:
10106 {
10107 if (temp5) delete arg5;
10108 }
10109 {
10110 if (temp8)
10111 delete arg8;
10112 }
10113 return NULL;
10114 }
10115
10116
10117 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10118 PyObject *resultobj = 0;
10119 wxCheckListBox *result = 0 ;
10120
10121 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10122 {
10123 if (!wxPyCheckForApp()) SWIG_fail;
10124 PyThreadState* __tstate = wxPyBeginAllowThreads();
10125 result = (wxCheckListBox *)new wxCheckListBox();
10126 wxPyEndAllowThreads(__tstate);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 }
10129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10130 return resultobj;
10131 fail:
10132 return NULL;
10133 }
10134
10135
10136 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10137 PyObject *resultobj = 0;
10138 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10139 wxWindow *arg2 = (wxWindow *) 0 ;
10140 int arg3 = (int) -1 ;
10141 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10142 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10143 wxSize const &arg5_defvalue = wxDefaultSize ;
10144 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10145 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10146 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10147 long arg7 = (long) 0 ;
10148 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10149 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10150 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10151 wxString *arg9 = (wxString *) &arg9_defvalue ;
10152 bool result;
10153 void *argp1 = 0 ;
10154 int res1 = 0 ;
10155 void *argp2 = 0 ;
10156 int res2 = 0 ;
10157 int val3 ;
10158 int ecode3 = 0 ;
10159 wxPoint temp4 ;
10160 wxSize temp5 ;
10161 bool temp6 = false ;
10162 long val7 ;
10163 int ecode7 = 0 ;
10164 void *argp8 = 0 ;
10165 int res8 = 0 ;
10166 bool temp9 = false ;
10167 PyObject * obj0 = 0 ;
10168 PyObject * obj1 = 0 ;
10169 PyObject * obj2 = 0 ;
10170 PyObject * obj3 = 0 ;
10171 PyObject * obj4 = 0 ;
10172 PyObject * obj5 = 0 ;
10173 PyObject * obj6 = 0 ;
10174 PyObject * obj7 = 0 ;
10175 PyObject * obj8 = 0 ;
10176 char * kwnames[] = {
10177 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10178 };
10179
10180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10182 if (!SWIG_IsOK(res1)) {
10183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10184 }
10185 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10186 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10187 if (!SWIG_IsOK(res2)) {
10188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10189 }
10190 arg2 = reinterpret_cast< wxWindow * >(argp2);
10191 if (obj2) {
10192 ecode3 = SWIG_AsVal_int(obj2, &val3);
10193 if (!SWIG_IsOK(ecode3)) {
10194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10195 }
10196 arg3 = static_cast< int >(val3);
10197 }
10198 if (obj3) {
10199 {
10200 arg4 = &temp4;
10201 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10202 }
10203 }
10204 if (obj4) {
10205 {
10206 arg5 = &temp5;
10207 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10208 }
10209 }
10210 if (obj5) {
10211 {
10212 if (! PySequence_Check(obj5)) {
10213 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10214 SWIG_fail;
10215 }
10216 arg6 = new wxArrayString;
10217 temp6 = true;
10218 int i, len=PySequence_Length(obj5);
10219 for (i=0; i<len; i++) {
10220 PyObject* item = PySequence_GetItem(obj5, i);
10221 wxString* s = wxString_in_helper(item);
10222 if (PyErr_Occurred()) SWIG_fail;
10223 arg6->Add(*s);
10224 delete s;
10225 Py_DECREF(item);
10226 }
10227 }
10228 }
10229 if (obj6) {
10230 ecode7 = SWIG_AsVal_long(obj6, &val7);
10231 if (!SWIG_IsOK(ecode7)) {
10232 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10233 }
10234 arg7 = static_cast< long >(val7);
10235 }
10236 if (obj7) {
10237 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10238 if (!SWIG_IsOK(res8)) {
10239 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10240 }
10241 if (!argp8) {
10242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10243 }
10244 arg8 = reinterpret_cast< wxValidator * >(argp8);
10245 }
10246 if (obj8) {
10247 {
10248 arg9 = wxString_in_helper(obj8);
10249 if (arg9 == NULL) SWIG_fail;
10250 temp9 = true;
10251 }
10252 }
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
10255 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 {
10260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10261 }
10262 {
10263 if (temp6) delete arg6;
10264 }
10265 {
10266 if (temp9)
10267 delete arg9;
10268 }
10269 return resultobj;
10270 fail:
10271 {
10272 if (temp6) delete arg6;
10273 }
10274 {
10275 if (temp9)
10276 delete arg9;
10277 }
10278 return NULL;
10279 }
10280
10281
10282 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10283 PyObject *resultobj = 0;
10284 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10285 unsigned int arg2 ;
10286 bool result;
10287 void *argp1 = 0 ;
10288 int res1 = 0 ;
10289 unsigned int val2 ;
10290 int ecode2 = 0 ;
10291 PyObject * obj0 = 0 ;
10292 PyObject * obj1 = 0 ;
10293 char * kwnames[] = {
10294 (char *) "self",(char *) "index", NULL
10295 };
10296
10297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10299 if (!SWIG_IsOK(res1)) {
10300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10301 }
10302 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10303 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10304 if (!SWIG_IsOK(ecode2)) {
10305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10306 }
10307 arg2 = static_cast< unsigned int >(val2);
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
10310 result = (bool)(arg1)->IsChecked(arg2);
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 {
10315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10316 }
10317 return resultobj;
10318 fail:
10319 return NULL;
10320 }
10321
10322
10323 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10324 PyObject *resultobj = 0;
10325 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10326 unsigned int arg2 ;
10327 int arg3 = (int) true ;
10328 void *argp1 = 0 ;
10329 int res1 = 0 ;
10330 unsigned int val2 ;
10331 int ecode2 = 0 ;
10332 int val3 ;
10333 int ecode3 = 0 ;
10334 PyObject * obj0 = 0 ;
10335 PyObject * obj1 = 0 ;
10336 PyObject * obj2 = 0 ;
10337 char * kwnames[] = {
10338 (char *) "self",(char *) "index",(char *) "check", NULL
10339 };
10340
10341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10343 if (!SWIG_IsOK(res1)) {
10344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10345 }
10346 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10347 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10348 if (!SWIG_IsOK(ecode2)) {
10349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10350 }
10351 arg2 = static_cast< unsigned int >(val2);
10352 if (obj2) {
10353 ecode3 = SWIG_AsVal_int(obj2, &val3);
10354 if (!SWIG_IsOK(ecode3)) {
10355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10356 }
10357 arg3 = static_cast< int >(val3);
10358 }
10359 {
10360 PyThreadState* __tstate = wxPyBeginAllowThreads();
10361 (arg1)->Check(arg2,arg3);
10362 wxPyEndAllowThreads(__tstate);
10363 if (PyErr_Occurred()) SWIG_fail;
10364 }
10365 resultobj = SWIG_Py_Void();
10366 return resultobj;
10367 fail:
10368 return NULL;
10369 }
10370
10371
10372 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10373 PyObject *resultobj = 0;
10374 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10375 int result;
10376 void *argp1 = 0 ;
10377 int res1 = 0 ;
10378 PyObject *swig_obj[1] ;
10379
10380 if (!args) SWIG_fail;
10381 swig_obj[0] = args;
10382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10383 if (!SWIG_IsOK(res1)) {
10384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10385 }
10386 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10387 {
10388 PyThreadState* __tstate = wxPyBeginAllowThreads();
10389 result = (int)(arg1)->GetItemHeight();
10390 wxPyEndAllowThreads(__tstate);
10391 if (PyErr_Occurred()) SWIG_fail;
10392 }
10393 resultobj = SWIG_From_int(static_cast< int >(result));
10394 return resultobj;
10395 fail:
10396 return NULL;
10397 }
10398
10399
10400 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10401 PyObject *obj;
10402 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10403 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10404 return SWIG_Py_Void();
10405 }
10406
10407 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10408 return SWIG_Python_InitShadowInstance(args);
10409 }
10410
10411 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10412 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10413 return 1;
10414 }
10415
10416
10417 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10418 PyObject *pyobj = 0;
10419
10420 {
10421 #if wxUSE_UNICODE
10422 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10423 #else
10424 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10425 #endif
10426 }
10427 return pyobj;
10428 }
10429
10430
10431 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10432 PyObject *resultobj = 0;
10433 wxColour const &arg1_defvalue = wxNullColour ;
10434 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10435 wxColour const &arg2_defvalue = wxNullColour ;
10436 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10437 wxFont const &arg3_defvalue = wxNullFont ;
10438 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10439 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10440 wxTextAttr *result = 0 ;
10441 wxColour temp1 ;
10442 wxColour temp2 ;
10443 void *argp3 = 0 ;
10444 int res3 = 0 ;
10445 int val4 ;
10446 int ecode4 = 0 ;
10447 PyObject * obj0 = 0 ;
10448 PyObject * obj1 = 0 ;
10449 PyObject * obj2 = 0 ;
10450 PyObject * obj3 = 0 ;
10451 char * kwnames[] = {
10452 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10453 };
10454
10455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10456 if (obj0) {
10457 {
10458 arg1 = &temp1;
10459 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10460 }
10461 }
10462 if (obj1) {
10463 {
10464 arg2 = &temp2;
10465 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10466 }
10467 }
10468 if (obj2) {
10469 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10470 if (!SWIG_IsOK(res3)) {
10471 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10472 }
10473 if (!argp3) {
10474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10475 }
10476 arg3 = reinterpret_cast< wxFont * >(argp3);
10477 }
10478 if (obj3) {
10479 ecode4 = SWIG_AsVal_int(obj3, &val4);
10480 if (!SWIG_IsOK(ecode4)) {
10481 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10482 }
10483 arg4 = static_cast< wxTextAttrAlignment >(val4);
10484 }
10485 {
10486 PyThreadState* __tstate = wxPyBeginAllowThreads();
10487 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10488 wxPyEndAllowThreads(__tstate);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10492 return resultobj;
10493 fail:
10494 return NULL;
10495 }
10496
10497
10498 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10499 PyObject *resultobj = 0;
10500 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10501 void *argp1 = 0 ;
10502 int res1 = 0 ;
10503 PyObject *swig_obj[1] ;
10504
10505 if (!args) SWIG_fail;
10506 swig_obj[0] = args;
10507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10508 if (!SWIG_IsOK(res1)) {
10509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10510 }
10511 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10512 {
10513 PyThreadState* __tstate = wxPyBeginAllowThreads();
10514 delete arg1;
10515
10516 wxPyEndAllowThreads(__tstate);
10517 if (PyErr_Occurred()) SWIG_fail;
10518 }
10519 resultobj = SWIG_Py_Void();
10520 return resultobj;
10521 fail:
10522 return NULL;
10523 }
10524
10525
10526 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10527 PyObject *resultobj = 0;
10528 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10529 void *argp1 = 0 ;
10530 int res1 = 0 ;
10531 PyObject *swig_obj[1] ;
10532
10533 if (!args) SWIG_fail;
10534 swig_obj[0] = args;
10535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10536 if (!SWIG_IsOK(res1)) {
10537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10538 }
10539 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10540 {
10541 PyThreadState* __tstate = wxPyBeginAllowThreads();
10542 (arg1)->Init();
10543 wxPyEndAllowThreads(__tstate);
10544 if (PyErr_Occurred()) SWIG_fail;
10545 }
10546 resultobj = SWIG_Py_Void();
10547 return resultobj;
10548 fail:
10549 return NULL;
10550 }
10551
10552
10553 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10554 PyObject *resultobj = 0;
10555 wxTextAttr *arg1 = 0 ;
10556 wxTextAttr *arg2 = 0 ;
10557 wxTextAttr result;
10558 void *argp1 = 0 ;
10559 int res1 = 0 ;
10560 void *argp2 = 0 ;
10561 int res2 = 0 ;
10562 PyObject * obj0 = 0 ;
10563 PyObject * obj1 = 0 ;
10564 char * kwnames[] = {
10565 (char *) "base",(char *) "overlay", NULL
10566 };
10567
10568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10569 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10570 if (!SWIG_IsOK(res1)) {
10571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10572 }
10573 if (!argp1) {
10574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10575 }
10576 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10578 if (!SWIG_IsOK(res2)) {
10579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10580 }
10581 if (!argp2) {
10582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10583 }
10584 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10585 {
10586 PyThreadState* __tstate = wxPyBeginAllowThreads();
10587 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10588 wxPyEndAllowThreads(__tstate);
10589 if (PyErr_Occurred()) SWIG_fail;
10590 }
10591 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10592 return resultobj;
10593 fail:
10594 return NULL;
10595 }
10596
10597
10598 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10599 PyObject *resultobj = 0;
10600 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10601 wxColour *arg2 = 0 ;
10602 void *argp1 = 0 ;
10603 int res1 = 0 ;
10604 wxColour temp2 ;
10605 PyObject * obj0 = 0 ;
10606 PyObject * obj1 = 0 ;
10607 char * kwnames[] = {
10608 (char *) "self",(char *) "colText", NULL
10609 };
10610
10611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10613 if (!SWIG_IsOK(res1)) {
10614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10615 }
10616 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10617 {
10618 arg2 = &temp2;
10619 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10620 }
10621 {
10622 PyThreadState* __tstate = wxPyBeginAllowThreads();
10623 (arg1)->SetTextColour((wxColour const &)*arg2);
10624 wxPyEndAllowThreads(__tstate);
10625 if (PyErr_Occurred()) SWIG_fail;
10626 }
10627 resultobj = SWIG_Py_Void();
10628 return resultobj;
10629 fail:
10630 return NULL;
10631 }
10632
10633
10634 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10635 PyObject *resultobj = 0;
10636 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10637 wxColour *arg2 = 0 ;
10638 void *argp1 = 0 ;
10639 int res1 = 0 ;
10640 wxColour temp2 ;
10641 PyObject * obj0 = 0 ;
10642 PyObject * obj1 = 0 ;
10643 char * kwnames[] = {
10644 (char *) "self",(char *) "colBack", NULL
10645 };
10646
10647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10649 if (!SWIG_IsOK(res1)) {
10650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10651 }
10652 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10653 {
10654 arg2 = &temp2;
10655 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10656 }
10657 {
10658 PyThreadState* __tstate = wxPyBeginAllowThreads();
10659 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10660 wxPyEndAllowThreads(__tstate);
10661 if (PyErr_Occurred()) SWIG_fail;
10662 }
10663 resultobj = SWIG_Py_Void();
10664 return resultobj;
10665 fail:
10666 return NULL;
10667 }
10668
10669
10670 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10671 PyObject *resultobj = 0;
10672 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10673 wxFont *arg2 = 0 ;
10674 long arg3 = (long) wxTEXT_ATTR_FONT ;
10675 void *argp1 = 0 ;
10676 int res1 = 0 ;
10677 void *argp2 = 0 ;
10678 int res2 = 0 ;
10679 long val3 ;
10680 int ecode3 = 0 ;
10681 PyObject * obj0 = 0 ;
10682 PyObject * obj1 = 0 ;
10683 PyObject * obj2 = 0 ;
10684 char * kwnames[] = {
10685 (char *) "self",(char *) "font",(char *) "flags", NULL
10686 };
10687
10688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10690 if (!SWIG_IsOK(res1)) {
10691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10692 }
10693 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10695 if (!SWIG_IsOK(res2)) {
10696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10697 }
10698 if (!argp2) {
10699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10700 }
10701 arg2 = reinterpret_cast< wxFont * >(argp2);
10702 if (obj2) {
10703 ecode3 = SWIG_AsVal_long(obj2, &val3);
10704 if (!SWIG_IsOK(ecode3)) {
10705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10706 }
10707 arg3 = static_cast< long >(val3);
10708 }
10709 {
10710 PyThreadState* __tstate = wxPyBeginAllowThreads();
10711 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10712 wxPyEndAllowThreads(__tstate);
10713 if (PyErr_Occurred()) SWIG_fail;
10714 }
10715 resultobj = SWIG_Py_Void();
10716 return resultobj;
10717 fail:
10718 return NULL;
10719 }
10720
10721
10722 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10723 PyObject *resultobj = 0;
10724 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10725 wxTextAttrAlignment arg2 ;
10726 void *argp1 = 0 ;
10727 int res1 = 0 ;
10728 int val2 ;
10729 int ecode2 = 0 ;
10730 PyObject * obj0 = 0 ;
10731 PyObject * obj1 = 0 ;
10732 char * kwnames[] = {
10733 (char *) "self",(char *) "alignment", NULL
10734 };
10735
10736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10738 if (!SWIG_IsOK(res1)) {
10739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10740 }
10741 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10742 ecode2 = SWIG_AsVal_int(obj1, &val2);
10743 if (!SWIG_IsOK(ecode2)) {
10744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10745 }
10746 arg2 = static_cast< wxTextAttrAlignment >(val2);
10747 {
10748 PyThreadState* __tstate = wxPyBeginAllowThreads();
10749 (arg1)->SetAlignment(arg2);
10750 wxPyEndAllowThreads(__tstate);
10751 if (PyErr_Occurred()) SWIG_fail;
10752 }
10753 resultobj = SWIG_Py_Void();
10754 return resultobj;
10755 fail:
10756 return NULL;
10757 }
10758
10759
10760 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10761 PyObject *resultobj = 0;
10762 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10763 wxArrayInt *arg2 = 0 ;
10764 void *argp1 = 0 ;
10765 int res1 = 0 ;
10766 bool temp2 = false ;
10767 PyObject * obj0 = 0 ;
10768 PyObject * obj1 = 0 ;
10769 char * kwnames[] = {
10770 (char *) "self",(char *) "tabs", NULL
10771 };
10772
10773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10775 if (!SWIG_IsOK(res1)) {
10776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10777 }
10778 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10779 {
10780 if (! PySequence_Check(obj1)) {
10781 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10782 SWIG_fail;
10783 }
10784 arg2 = new wxArrayInt;
10785 temp2 = true;
10786 int i, len=PySequence_Length(obj1);
10787 for (i=0; i<len; i++) {
10788 PyObject* item = PySequence_GetItem(obj1, i);
10789 PyObject* number = PyNumber_Int(item);
10790 arg2->Add(PyInt_AS_LONG(number));
10791 Py_DECREF(item);
10792 Py_DECREF(number);
10793 }
10794 }
10795 {
10796 PyThreadState* __tstate = wxPyBeginAllowThreads();
10797 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10798 wxPyEndAllowThreads(__tstate);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 resultobj = SWIG_Py_Void();
10802 {
10803 if (temp2) delete arg2;
10804 }
10805 return resultobj;
10806 fail:
10807 {
10808 if (temp2) delete arg2;
10809 }
10810 return NULL;
10811 }
10812
10813
10814 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj = 0;
10816 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10817 int arg2 ;
10818 int arg3 = (int) 0 ;
10819 void *argp1 = 0 ;
10820 int res1 = 0 ;
10821 int val2 ;
10822 int ecode2 = 0 ;
10823 int val3 ;
10824 int ecode3 = 0 ;
10825 PyObject * obj0 = 0 ;
10826 PyObject * obj1 = 0 ;
10827 PyObject * obj2 = 0 ;
10828 char * kwnames[] = {
10829 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10830 };
10831
10832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10834 if (!SWIG_IsOK(res1)) {
10835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10836 }
10837 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10838 ecode2 = SWIG_AsVal_int(obj1, &val2);
10839 if (!SWIG_IsOK(ecode2)) {
10840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10841 }
10842 arg2 = static_cast< int >(val2);
10843 if (obj2) {
10844 ecode3 = SWIG_AsVal_int(obj2, &val3);
10845 if (!SWIG_IsOK(ecode3)) {
10846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10847 }
10848 arg3 = static_cast< int >(val3);
10849 }
10850 {
10851 PyThreadState* __tstate = wxPyBeginAllowThreads();
10852 (arg1)->SetLeftIndent(arg2,arg3);
10853 wxPyEndAllowThreads(__tstate);
10854 if (PyErr_Occurred()) SWIG_fail;
10855 }
10856 resultobj = SWIG_Py_Void();
10857 return resultobj;
10858 fail:
10859 return NULL;
10860 }
10861
10862
10863 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10864 PyObject *resultobj = 0;
10865 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10866 int arg2 ;
10867 void *argp1 = 0 ;
10868 int res1 = 0 ;
10869 int val2 ;
10870 int ecode2 = 0 ;
10871 PyObject * obj0 = 0 ;
10872 PyObject * obj1 = 0 ;
10873 char * kwnames[] = {
10874 (char *) "self",(char *) "indent", NULL
10875 };
10876
10877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10879 if (!SWIG_IsOK(res1)) {
10880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10881 }
10882 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10883 ecode2 = SWIG_AsVal_int(obj1, &val2);
10884 if (!SWIG_IsOK(ecode2)) {
10885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10886 }
10887 arg2 = static_cast< int >(val2);
10888 {
10889 PyThreadState* __tstate = wxPyBeginAllowThreads();
10890 (arg1)->SetRightIndent(arg2);
10891 wxPyEndAllowThreads(__tstate);
10892 if (PyErr_Occurred()) SWIG_fail;
10893 }
10894 resultobj = SWIG_Py_Void();
10895 return resultobj;
10896 fail:
10897 return NULL;
10898 }
10899
10900
10901 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10902 PyObject *resultobj = 0;
10903 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10904 long arg2 ;
10905 void *argp1 = 0 ;
10906 int res1 = 0 ;
10907 long val2 ;
10908 int ecode2 = 0 ;
10909 PyObject * obj0 = 0 ;
10910 PyObject * obj1 = 0 ;
10911 char * kwnames[] = {
10912 (char *) "self",(char *) "flags", NULL
10913 };
10914
10915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10917 if (!SWIG_IsOK(res1)) {
10918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10919 }
10920 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10921 ecode2 = SWIG_AsVal_long(obj1, &val2);
10922 if (!SWIG_IsOK(ecode2)) {
10923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10924 }
10925 arg2 = static_cast< long >(val2);
10926 {
10927 PyThreadState* __tstate = wxPyBeginAllowThreads();
10928 (arg1)->SetFlags(arg2);
10929 wxPyEndAllowThreads(__tstate);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 }
10932 resultobj = SWIG_Py_Void();
10933 return resultobj;
10934 fail:
10935 return NULL;
10936 }
10937
10938
10939 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10940 PyObject *resultobj = 0;
10941 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10942 bool result;
10943 void *argp1 = 0 ;
10944 int res1 = 0 ;
10945 PyObject *swig_obj[1] ;
10946
10947 if (!args) SWIG_fail;
10948 swig_obj[0] = args;
10949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10950 if (!SWIG_IsOK(res1)) {
10951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10952 }
10953 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10954 {
10955 PyThreadState* __tstate = wxPyBeginAllowThreads();
10956 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10957 wxPyEndAllowThreads(__tstate);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 }
10960 {
10961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10962 }
10963 return resultobj;
10964 fail:
10965 return NULL;
10966 }
10967
10968
10969 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10970 PyObject *resultobj = 0;
10971 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10972 bool result;
10973 void *argp1 = 0 ;
10974 int res1 = 0 ;
10975 PyObject *swig_obj[1] ;
10976
10977 if (!args) SWIG_fail;
10978 swig_obj[0] = args;
10979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10980 if (!SWIG_IsOK(res1)) {
10981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10982 }
10983 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10987 wxPyEndAllowThreads(__tstate);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 }
10990 {
10991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10992 }
10993 return resultobj;
10994 fail:
10995 return NULL;
10996 }
10997
10998
10999 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11000 PyObject *resultobj = 0;
11001 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11002 bool result;
11003 void *argp1 = 0 ;
11004 int res1 = 0 ;
11005 PyObject *swig_obj[1] ;
11006
11007 if (!args) SWIG_fail;
11008 swig_obj[0] = args;
11009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11010 if (!SWIG_IsOK(res1)) {
11011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11012 }
11013 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11014 {
11015 PyThreadState* __tstate = wxPyBeginAllowThreads();
11016 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11017 wxPyEndAllowThreads(__tstate);
11018 if (PyErr_Occurred()) SWIG_fail;
11019 }
11020 {
11021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11022 }
11023 return resultobj;
11024 fail:
11025 return NULL;
11026 }
11027
11028
11029 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11030 PyObject *resultobj = 0;
11031 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11032 bool result;
11033 void *argp1 = 0 ;
11034 int res1 = 0 ;
11035 PyObject *swig_obj[1] ;
11036
11037 if (!args) SWIG_fail;
11038 swig_obj[0] = args;
11039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11040 if (!SWIG_IsOK(res1)) {
11041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11042 }
11043 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11044 {
11045 PyThreadState* __tstate = wxPyBeginAllowThreads();
11046 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11047 wxPyEndAllowThreads(__tstate);
11048 if (PyErr_Occurred()) SWIG_fail;
11049 }
11050 {
11051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11052 }
11053 return resultobj;
11054 fail:
11055 return NULL;
11056 }
11057
11058
11059 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11060 PyObject *resultobj = 0;
11061 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11062 bool result;
11063 void *argp1 = 0 ;
11064 int res1 = 0 ;
11065 PyObject *swig_obj[1] ;
11066
11067 if (!args) SWIG_fail;
11068 swig_obj[0] = args;
11069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11070 if (!SWIG_IsOK(res1)) {
11071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11072 }
11073 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11074 {
11075 PyThreadState* __tstate = wxPyBeginAllowThreads();
11076 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11077 wxPyEndAllowThreads(__tstate);
11078 if (PyErr_Occurred()) SWIG_fail;
11079 }
11080 {
11081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11082 }
11083 return resultobj;
11084 fail:
11085 return NULL;
11086 }
11087
11088
11089 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11090 PyObject *resultobj = 0;
11091 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11092 bool result;
11093 void *argp1 = 0 ;
11094 int res1 = 0 ;
11095 PyObject *swig_obj[1] ;
11096
11097 if (!args) SWIG_fail;
11098 swig_obj[0] = args;
11099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11100 if (!SWIG_IsOK(res1)) {
11101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11102 }
11103 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11104 {
11105 PyThreadState* __tstate = wxPyBeginAllowThreads();
11106 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11107 wxPyEndAllowThreads(__tstate);
11108 if (PyErr_Occurred()) SWIG_fail;
11109 }
11110 {
11111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11112 }
11113 return resultobj;
11114 fail:
11115 return NULL;
11116 }
11117
11118
11119 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11120 PyObject *resultobj = 0;
11121 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11122 bool result;
11123 void *argp1 = 0 ;
11124 int res1 = 0 ;
11125 PyObject *swig_obj[1] ;
11126
11127 if (!args) SWIG_fail;
11128 swig_obj[0] = args;
11129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11130 if (!SWIG_IsOK(res1)) {
11131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11132 }
11133 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11134 {
11135 PyThreadState* __tstate = wxPyBeginAllowThreads();
11136 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11137 wxPyEndAllowThreads(__tstate);
11138 if (PyErr_Occurred()) SWIG_fail;
11139 }
11140 {
11141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11142 }
11143 return resultobj;
11144 fail:
11145 return NULL;
11146 }
11147
11148
11149 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11150 PyObject *resultobj = 0;
11151 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11152 long arg2 ;
11153 bool result;
11154 void *argp1 = 0 ;
11155 int res1 = 0 ;
11156 long val2 ;
11157 int ecode2 = 0 ;
11158 PyObject * obj0 = 0 ;
11159 PyObject * obj1 = 0 ;
11160 char * kwnames[] = {
11161 (char *) "self",(char *) "flag", NULL
11162 };
11163
11164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11166 if (!SWIG_IsOK(res1)) {
11167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11168 }
11169 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11170 ecode2 = SWIG_AsVal_long(obj1, &val2);
11171 if (!SWIG_IsOK(ecode2)) {
11172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11173 }
11174 arg2 = static_cast< long >(val2);
11175 {
11176 PyThreadState* __tstate = wxPyBeginAllowThreads();
11177 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11178 wxPyEndAllowThreads(__tstate);
11179 if (PyErr_Occurred()) SWIG_fail;
11180 }
11181 {
11182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11183 }
11184 return resultobj;
11185 fail:
11186 return NULL;
11187 }
11188
11189
11190 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11191 PyObject *resultobj = 0;
11192 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11193 wxColour *result = 0 ;
11194 void *argp1 = 0 ;
11195 int res1 = 0 ;
11196 PyObject *swig_obj[1] ;
11197
11198 if (!args) SWIG_fail;
11199 swig_obj[0] = args;
11200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11201 if (!SWIG_IsOK(res1)) {
11202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11203 }
11204 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11205 {
11206 PyThreadState* __tstate = wxPyBeginAllowThreads();
11207 {
11208 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11209 result = (wxColour *) &_result_ref;
11210 }
11211 wxPyEndAllowThreads(__tstate);
11212 if (PyErr_Occurred()) SWIG_fail;
11213 }
11214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11215 return resultobj;
11216 fail:
11217 return NULL;
11218 }
11219
11220
11221 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11222 PyObject *resultobj = 0;
11223 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11224 wxColour *result = 0 ;
11225 void *argp1 = 0 ;
11226 int res1 = 0 ;
11227 PyObject *swig_obj[1] ;
11228
11229 if (!args) SWIG_fail;
11230 swig_obj[0] = args;
11231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11232 if (!SWIG_IsOK(res1)) {
11233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11234 }
11235 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11236 {
11237 PyThreadState* __tstate = wxPyBeginAllowThreads();
11238 {
11239 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11240 result = (wxColour *) &_result_ref;
11241 }
11242 wxPyEndAllowThreads(__tstate);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 }
11245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11246 return resultobj;
11247 fail:
11248 return NULL;
11249 }
11250
11251
11252 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11253 PyObject *resultobj = 0;
11254 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11255 wxFont *result = 0 ;
11256 void *argp1 = 0 ;
11257 int res1 = 0 ;
11258 PyObject *swig_obj[1] ;
11259
11260 if (!args) SWIG_fail;
11261 swig_obj[0] = args;
11262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11263 if (!SWIG_IsOK(res1)) {
11264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11265 }
11266 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11267 {
11268 PyThreadState* __tstate = wxPyBeginAllowThreads();
11269 {
11270 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11271 result = (wxFont *) &_result_ref;
11272 }
11273 wxPyEndAllowThreads(__tstate);
11274 if (PyErr_Occurred()) SWIG_fail;
11275 }
11276 {
11277 wxFont* resultptr = new wxFont(*result);
11278 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11279 }
11280 return resultobj;
11281 fail:
11282 return NULL;
11283 }
11284
11285
11286 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11287 PyObject *resultobj = 0;
11288 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11289 wxTextAttrAlignment result;
11290 void *argp1 = 0 ;
11291 int res1 = 0 ;
11292 PyObject *swig_obj[1] ;
11293
11294 if (!args) SWIG_fail;
11295 swig_obj[0] = args;
11296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11297 if (!SWIG_IsOK(res1)) {
11298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11299 }
11300 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11301 {
11302 PyThreadState* __tstate = wxPyBeginAllowThreads();
11303 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11304 wxPyEndAllowThreads(__tstate);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 }
11307 resultobj = SWIG_From_int(static_cast< int >(result));
11308 return resultobj;
11309 fail:
11310 return NULL;
11311 }
11312
11313
11314 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11315 PyObject *resultobj = 0;
11316 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11317 wxArrayInt *result = 0 ;
11318 void *argp1 = 0 ;
11319 int res1 = 0 ;
11320 PyObject *swig_obj[1] ;
11321
11322 if (!args) SWIG_fail;
11323 swig_obj[0] = args;
11324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11325 if (!SWIG_IsOK(res1)) {
11326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11327 }
11328 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11329 {
11330 PyThreadState* __tstate = wxPyBeginAllowThreads();
11331 {
11332 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11333 result = (wxArrayInt *) &_result_ref;
11334 }
11335 wxPyEndAllowThreads(__tstate);
11336 if (PyErr_Occurred()) SWIG_fail;
11337 }
11338 {
11339 resultobj = PyList_New(0);
11340 size_t idx;
11341 for (idx = 0; idx < result->GetCount(); idx += 1) {
11342 PyObject* val = PyInt_FromLong( result->Item(idx) );
11343 PyList_Append(resultobj, val);
11344 Py_DECREF(val);
11345 }
11346 }
11347 return resultobj;
11348 fail:
11349 return NULL;
11350 }
11351
11352
11353 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11354 PyObject *resultobj = 0;
11355 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11356 long result;
11357 void *argp1 = 0 ;
11358 int res1 = 0 ;
11359 PyObject *swig_obj[1] ;
11360
11361 if (!args) SWIG_fail;
11362 swig_obj[0] = args;
11363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11364 if (!SWIG_IsOK(res1)) {
11365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11366 }
11367 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 resultobj = SWIG_From_long(static_cast< long >(result));
11375 return resultobj;
11376 fail:
11377 return NULL;
11378 }
11379
11380
11381 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11382 PyObject *resultobj = 0;
11383 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11384 long result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 PyObject *swig_obj[1] ;
11388
11389 if (!args) SWIG_fail;
11390 swig_obj[0] = args;
11391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11392 if (!SWIG_IsOK(res1)) {
11393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11394 }
11395 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 resultobj = SWIG_From_long(static_cast< long >(result));
11403 return resultobj;
11404 fail:
11405 return NULL;
11406 }
11407
11408
11409 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11410 PyObject *resultobj = 0;
11411 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11412 long result;
11413 void *argp1 = 0 ;
11414 int res1 = 0 ;
11415 PyObject *swig_obj[1] ;
11416
11417 if (!args) SWIG_fail;
11418 swig_obj[0] = args;
11419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11420 if (!SWIG_IsOK(res1)) {
11421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11422 }
11423 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11424 {
11425 PyThreadState* __tstate = wxPyBeginAllowThreads();
11426 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11427 wxPyEndAllowThreads(__tstate);
11428 if (PyErr_Occurred()) SWIG_fail;
11429 }
11430 resultobj = SWIG_From_long(static_cast< long >(result));
11431 return resultobj;
11432 fail:
11433 return NULL;
11434 }
11435
11436
11437 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11438 PyObject *resultobj = 0;
11439 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11440 long result;
11441 void *argp1 = 0 ;
11442 int res1 = 0 ;
11443 PyObject *swig_obj[1] ;
11444
11445 if (!args) SWIG_fail;
11446 swig_obj[0] = args;
11447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11448 if (!SWIG_IsOK(res1)) {
11449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11450 }
11451 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11452 {
11453 PyThreadState* __tstate = wxPyBeginAllowThreads();
11454 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11455 wxPyEndAllowThreads(__tstate);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 }
11458 resultobj = SWIG_From_long(static_cast< long >(result));
11459 return resultobj;
11460 fail:
11461 return NULL;
11462 }
11463
11464
11465 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11466 PyObject *resultobj = 0;
11467 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11468 bool result;
11469 void *argp1 = 0 ;
11470 int res1 = 0 ;
11471 PyObject *swig_obj[1] ;
11472
11473 if (!args) SWIG_fail;
11474 swig_obj[0] = args;
11475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11476 if (!SWIG_IsOK(res1)) {
11477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11478 }
11479 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11480 {
11481 PyThreadState* __tstate = wxPyBeginAllowThreads();
11482 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11483 wxPyEndAllowThreads(__tstate);
11484 if (PyErr_Occurred()) SWIG_fail;
11485 }
11486 {
11487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11488 }
11489 return resultobj;
11490 fail:
11491 return NULL;
11492 }
11493
11494
11495 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11496 PyObject *resultobj = 0;
11497 wxTextAttr *arg1 = 0 ;
11498 wxTextAttr *arg2 = 0 ;
11499 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11500 wxTextAttr result;
11501 void *argp1 = 0 ;
11502 int res1 = 0 ;
11503 void *argp2 = 0 ;
11504 int res2 = 0 ;
11505 void *argp3 = 0 ;
11506 int res3 = 0 ;
11507 PyObject * obj0 = 0 ;
11508 PyObject * obj1 = 0 ;
11509 PyObject * obj2 = 0 ;
11510 char * kwnames[] = {
11511 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11512 };
11513
11514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11515 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11516 if (!SWIG_IsOK(res1)) {
11517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11518 }
11519 if (!argp1) {
11520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11521 }
11522 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11523 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11524 if (!SWIG_IsOK(res2)) {
11525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11526 }
11527 if (!argp2) {
11528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11529 }
11530 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11531 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11532 if (!SWIG_IsOK(res3)) {
11533 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11534 }
11535 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11536 {
11537 PyThreadState* __tstate = wxPyBeginAllowThreads();
11538 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11539 wxPyEndAllowThreads(__tstate);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11543 return resultobj;
11544 fail:
11545 return NULL;
11546 }
11547
11548
11549 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11550 PyObject *obj;
11551 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11552 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11553 return SWIG_Py_Void();
11554 }
11555
11556 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11557 return SWIG_Python_InitShadowInstance(args);
11558 }
11559
11560 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11561 PyObject *resultobj = 0;
11562 wxWindow *arg1 = (wxWindow *) 0 ;
11563 int arg2 = (int) -1 ;
11564 wxString const &arg3_defvalue = wxPyEmptyString ;
11565 wxString *arg3 = (wxString *) &arg3_defvalue ;
11566 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11567 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11568 wxSize const &arg5_defvalue = wxDefaultSize ;
11569 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11570 long arg6 = (long) 0 ;
11571 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11572 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11573 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11574 wxString *arg8 = (wxString *) &arg8_defvalue ;
11575 wxTextCtrl *result = 0 ;
11576 void *argp1 = 0 ;
11577 int res1 = 0 ;
11578 int val2 ;
11579 int ecode2 = 0 ;
11580 bool temp3 = false ;
11581 wxPoint temp4 ;
11582 wxSize temp5 ;
11583 long val6 ;
11584 int ecode6 = 0 ;
11585 void *argp7 = 0 ;
11586 int res7 = 0 ;
11587 bool temp8 = false ;
11588 PyObject * obj0 = 0 ;
11589 PyObject * obj1 = 0 ;
11590 PyObject * obj2 = 0 ;
11591 PyObject * obj3 = 0 ;
11592 PyObject * obj4 = 0 ;
11593 PyObject * obj5 = 0 ;
11594 PyObject * obj6 = 0 ;
11595 PyObject * obj7 = 0 ;
11596 char * kwnames[] = {
11597 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11598 };
11599
11600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11602 if (!SWIG_IsOK(res1)) {
11603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11604 }
11605 arg1 = reinterpret_cast< wxWindow * >(argp1);
11606 if (obj1) {
11607 ecode2 = SWIG_AsVal_int(obj1, &val2);
11608 if (!SWIG_IsOK(ecode2)) {
11609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11610 }
11611 arg2 = static_cast< int >(val2);
11612 }
11613 if (obj2) {
11614 {
11615 arg3 = wxString_in_helper(obj2);
11616 if (arg3 == NULL) SWIG_fail;
11617 temp3 = true;
11618 }
11619 }
11620 if (obj3) {
11621 {
11622 arg4 = &temp4;
11623 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11624 }
11625 }
11626 if (obj4) {
11627 {
11628 arg5 = &temp5;
11629 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11630 }
11631 }
11632 if (obj5) {
11633 ecode6 = SWIG_AsVal_long(obj5, &val6);
11634 if (!SWIG_IsOK(ecode6)) {
11635 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11636 }
11637 arg6 = static_cast< long >(val6);
11638 }
11639 if (obj6) {
11640 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11641 if (!SWIG_IsOK(res7)) {
11642 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11643 }
11644 if (!argp7) {
11645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11646 }
11647 arg7 = reinterpret_cast< wxValidator * >(argp7);
11648 }
11649 if (obj7) {
11650 {
11651 arg8 = wxString_in_helper(obj7);
11652 if (arg8 == NULL) SWIG_fail;
11653 temp8 = true;
11654 }
11655 }
11656 {
11657 if (!wxPyCheckForApp()) SWIG_fail;
11658 PyThreadState* __tstate = wxPyBeginAllowThreads();
11659 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11660 wxPyEndAllowThreads(__tstate);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 }
11663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11664 {
11665 if (temp3)
11666 delete arg3;
11667 }
11668 {
11669 if (temp8)
11670 delete arg8;
11671 }
11672 return resultobj;
11673 fail:
11674 {
11675 if (temp3)
11676 delete arg3;
11677 }
11678 {
11679 if (temp8)
11680 delete arg8;
11681 }
11682 return NULL;
11683 }
11684
11685
11686 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11687 PyObject *resultobj = 0;
11688 wxTextCtrl *result = 0 ;
11689
11690 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11691 {
11692 if (!wxPyCheckForApp()) SWIG_fail;
11693 PyThreadState* __tstate = wxPyBeginAllowThreads();
11694 result = (wxTextCtrl *)new wxTextCtrl();
11695 wxPyEndAllowThreads(__tstate);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 }
11698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11699 return resultobj;
11700 fail:
11701 return NULL;
11702 }
11703
11704
11705 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11706 PyObject *resultobj = 0;
11707 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11708 wxWindow *arg2 = (wxWindow *) 0 ;
11709 int arg3 = (int) -1 ;
11710 wxString const &arg4_defvalue = wxPyEmptyString ;
11711 wxString *arg4 = (wxString *) &arg4_defvalue ;
11712 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11713 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11714 wxSize const &arg6_defvalue = wxDefaultSize ;
11715 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11716 long arg7 = (long) 0 ;
11717 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11718 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11719 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11720 wxString *arg9 = (wxString *) &arg9_defvalue ;
11721 bool result;
11722 void *argp1 = 0 ;
11723 int res1 = 0 ;
11724 void *argp2 = 0 ;
11725 int res2 = 0 ;
11726 int val3 ;
11727 int ecode3 = 0 ;
11728 bool temp4 = false ;
11729 wxPoint temp5 ;
11730 wxSize temp6 ;
11731 long val7 ;
11732 int ecode7 = 0 ;
11733 void *argp8 = 0 ;
11734 int res8 = 0 ;
11735 bool temp9 = false ;
11736 PyObject * obj0 = 0 ;
11737 PyObject * obj1 = 0 ;
11738 PyObject * obj2 = 0 ;
11739 PyObject * obj3 = 0 ;
11740 PyObject * obj4 = 0 ;
11741 PyObject * obj5 = 0 ;
11742 PyObject * obj6 = 0 ;
11743 PyObject * obj7 = 0 ;
11744 PyObject * obj8 = 0 ;
11745 char * kwnames[] = {
11746 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11747 };
11748
11749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11751 if (!SWIG_IsOK(res1)) {
11752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11753 }
11754 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11755 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11756 if (!SWIG_IsOK(res2)) {
11757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11758 }
11759 arg2 = reinterpret_cast< wxWindow * >(argp2);
11760 if (obj2) {
11761 ecode3 = SWIG_AsVal_int(obj2, &val3);
11762 if (!SWIG_IsOK(ecode3)) {
11763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11764 }
11765 arg3 = static_cast< int >(val3);
11766 }
11767 if (obj3) {
11768 {
11769 arg4 = wxString_in_helper(obj3);
11770 if (arg4 == NULL) SWIG_fail;
11771 temp4 = true;
11772 }
11773 }
11774 if (obj4) {
11775 {
11776 arg5 = &temp5;
11777 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11778 }
11779 }
11780 if (obj5) {
11781 {
11782 arg6 = &temp6;
11783 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11784 }
11785 }
11786 if (obj6) {
11787 ecode7 = SWIG_AsVal_long(obj6, &val7);
11788 if (!SWIG_IsOK(ecode7)) {
11789 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11790 }
11791 arg7 = static_cast< long >(val7);
11792 }
11793 if (obj7) {
11794 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11795 if (!SWIG_IsOK(res8)) {
11796 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11797 }
11798 if (!argp8) {
11799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11800 }
11801 arg8 = reinterpret_cast< wxValidator * >(argp8);
11802 }
11803 if (obj8) {
11804 {
11805 arg9 = wxString_in_helper(obj8);
11806 if (arg9 == NULL) SWIG_fail;
11807 temp9 = true;
11808 }
11809 }
11810 {
11811 PyThreadState* __tstate = wxPyBeginAllowThreads();
11812 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11813 wxPyEndAllowThreads(__tstate);
11814 if (PyErr_Occurred()) SWIG_fail;
11815 }
11816 {
11817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11818 }
11819 {
11820 if (temp4)
11821 delete arg4;
11822 }
11823 {
11824 if (temp9)
11825 delete arg9;
11826 }
11827 return resultobj;
11828 fail:
11829 {
11830 if (temp4)
11831 delete arg4;
11832 }
11833 {
11834 if (temp9)
11835 delete arg9;
11836 }
11837 return NULL;
11838 }
11839
11840
11841 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11842 PyObject *resultobj = 0;
11843 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11844 wxString result;
11845 void *argp1 = 0 ;
11846 int res1 = 0 ;
11847 PyObject *swig_obj[1] ;
11848
11849 if (!args) SWIG_fail;
11850 swig_obj[0] = args;
11851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11852 if (!SWIG_IsOK(res1)) {
11853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11854 }
11855 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11856 {
11857 PyThreadState* __tstate = wxPyBeginAllowThreads();
11858 result = ((wxTextCtrl const *)arg1)->GetValue();
11859 wxPyEndAllowThreads(__tstate);
11860 if (PyErr_Occurred()) SWIG_fail;
11861 }
11862 {
11863 #if wxUSE_UNICODE
11864 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11865 #else
11866 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11867 #endif
11868 }
11869 return resultobj;
11870 fail:
11871 return NULL;
11872 }
11873
11874
11875 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11876 PyObject *resultobj = 0;
11877 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11878 wxString *arg2 = 0 ;
11879 void *argp1 = 0 ;
11880 int res1 = 0 ;
11881 bool temp2 = false ;
11882 PyObject * obj0 = 0 ;
11883 PyObject * obj1 = 0 ;
11884 char * kwnames[] = {
11885 (char *) "self",(char *) "value", NULL
11886 };
11887
11888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11890 if (!SWIG_IsOK(res1)) {
11891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11892 }
11893 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11894 {
11895 arg2 = wxString_in_helper(obj1);
11896 if (arg2 == NULL) SWIG_fail;
11897 temp2 = true;
11898 }
11899 {
11900 PyThreadState* __tstate = wxPyBeginAllowThreads();
11901 (arg1)->SetValue((wxString const &)*arg2);
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 resultobj = SWIG_Py_Void();
11906 {
11907 if (temp2)
11908 delete arg2;
11909 }
11910 return resultobj;
11911 fail:
11912 {
11913 if (temp2)
11914 delete arg2;
11915 }
11916 return NULL;
11917 }
11918
11919
11920 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11921 PyObject *resultobj = 0;
11922 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11923 long arg2 ;
11924 long arg3 ;
11925 wxString result;
11926 void *argp1 = 0 ;
11927 int res1 = 0 ;
11928 long val2 ;
11929 int ecode2 = 0 ;
11930 long val3 ;
11931 int ecode3 = 0 ;
11932 PyObject * obj0 = 0 ;
11933 PyObject * obj1 = 0 ;
11934 PyObject * obj2 = 0 ;
11935 char * kwnames[] = {
11936 (char *) "self",(char *) "from",(char *) "to", NULL
11937 };
11938
11939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11941 if (!SWIG_IsOK(res1)) {
11942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11943 }
11944 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11945 ecode2 = SWIG_AsVal_long(obj1, &val2);
11946 if (!SWIG_IsOK(ecode2)) {
11947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11948 }
11949 arg2 = static_cast< long >(val2);
11950 ecode3 = SWIG_AsVal_long(obj2, &val3);
11951 if (!SWIG_IsOK(ecode3)) {
11952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11953 }
11954 arg3 = static_cast< long >(val3);
11955 {
11956 PyThreadState* __tstate = wxPyBeginAllowThreads();
11957 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11958 wxPyEndAllowThreads(__tstate);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 }
11961 {
11962 #if wxUSE_UNICODE
11963 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11964 #else
11965 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11966 #endif
11967 }
11968 return resultobj;
11969 fail:
11970 return NULL;
11971 }
11972
11973
11974 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11975 PyObject *resultobj = 0;
11976 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11977 long arg2 ;
11978 int result;
11979 void *argp1 = 0 ;
11980 int res1 = 0 ;
11981 long val2 ;
11982 int ecode2 = 0 ;
11983 PyObject * obj0 = 0 ;
11984 PyObject * obj1 = 0 ;
11985 char * kwnames[] = {
11986 (char *) "self",(char *) "lineNo", NULL
11987 };
11988
11989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11991 if (!SWIG_IsOK(res1)) {
11992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11993 }
11994 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11995 ecode2 = SWIG_AsVal_long(obj1, &val2);
11996 if (!SWIG_IsOK(ecode2)) {
11997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11998 }
11999 arg2 = static_cast< long >(val2);
12000 {
12001 PyThreadState* __tstate = wxPyBeginAllowThreads();
12002 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12003 wxPyEndAllowThreads(__tstate);
12004 if (PyErr_Occurred()) SWIG_fail;
12005 }
12006 resultobj = SWIG_From_int(static_cast< int >(result));
12007 return resultobj;
12008 fail:
12009 return NULL;
12010 }
12011
12012
12013 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12014 PyObject *resultobj = 0;
12015 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12016 long arg2 ;
12017 wxString result;
12018 void *argp1 = 0 ;
12019 int res1 = 0 ;
12020 long val2 ;
12021 int ecode2 = 0 ;
12022 PyObject * obj0 = 0 ;
12023 PyObject * obj1 = 0 ;
12024 char * kwnames[] = {
12025 (char *) "self",(char *) "lineNo", NULL
12026 };
12027
12028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12030 if (!SWIG_IsOK(res1)) {
12031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12032 }
12033 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12034 ecode2 = SWIG_AsVal_long(obj1, &val2);
12035 if (!SWIG_IsOK(ecode2)) {
12036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12037 }
12038 arg2 = static_cast< long >(val2);
12039 {
12040 PyThreadState* __tstate = wxPyBeginAllowThreads();
12041 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12042 wxPyEndAllowThreads(__tstate);
12043 if (PyErr_Occurred()) SWIG_fail;
12044 }
12045 {
12046 #if wxUSE_UNICODE
12047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12048 #else
12049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12050 #endif
12051 }
12052 return resultobj;
12053 fail:
12054 return NULL;
12055 }
12056
12057
12058 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12059 PyObject *resultobj = 0;
12060 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12061 int result;
12062 void *argp1 = 0 ;
12063 int res1 = 0 ;
12064 PyObject *swig_obj[1] ;
12065
12066 if (!args) SWIG_fail;
12067 swig_obj[0] = args;
12068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12069 if (!SWIG_IsOK(res1)) {
12070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12071 }
12072 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12073 {
12074 PyThreadState* __tstate = wxPyBeginAllowThreads();
12075 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12076 wxPyEndAllowThreads(__tstate);
12077 if (PyErr_Occurred()) SWIG_fail;
12078 }
12079 resultobj = SWIG_From_int(static_cast< int >(result));
12080 return resultobj;
12081 fail:
12082 return NULL;
12083 }
12084
12085
12086 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12087 PyObject *resultobj = 0;
12088 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12089 bool result;
12090 void *argp1 = 0 ;
12091 int res1 = 0 ;
12092 PyObject *swig_obj[1] ;
12093
12094 if (!args) SWIG_fail;
12095 swig_obj[0] = args;
12096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12097 if (!SWIG_IsOK(res1)) {
12098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12099 }
12100 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12101 {
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 {
12108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12109 }
12110 return resultobj;
12111 fail:
12112 return NULL;
12113 }
12114
12115
12116 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12117 PyObject *resultobj = 0;
12118 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12119 bool result;
12120 void *argp1 = 0 ;
12121 int res1 = 0 ;
12122 PyObject *swig_obj[1] ;
12123
12124 if (!args) SWIG_fail;
12125 swig_obj[0] = args;
12126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12127 if (!SWIG_IsOK(res1)) {
12128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12129 }
12130 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12131 {
12132 PyThreadState* __tstate = wxPyBeginAllowThreads();
12133 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12134 wxPyEndAllowThreads(__tstate);
12135 if (PyErr_Occurred()) SWIG_fail;
12136 }
12137 {
12138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12139 }
12140 return resultobj;
12141 fail:
12142 return NULL;
12143 }
12144
12145
12146 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12147 PyObject *resultobj = 0;
12148 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12149 bool result;
12150 void *argp1 = 0 ;
12151 int res1 = 0 ;
12152 PyObject *swig_obj[1] ;
12153
12154 if (!args) SWIG_fail;
12155 swig_obj[0] = args;
12156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12157 if (!SWIG_IsOK(res1)) {
12158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12159 }
12160 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12161 {
12162 PyThreadState* __tstate = wxPyBeginAllowThreads();
12163 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12164 wxPyEndAllowThreads(__tstate);
12165 if (PyErr_Occurred()) SWIG_fail;
12166 }
12167 {
12168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12169 }
12170 return resultobj;
12171 fail:
12172 return NULL;
12173 }
12174
12175
12176 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12177 PyObject *resultobj = 0;
12178 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12179 bool result;
12180 void *argp1 = 0 ;
12181 int res1 = 0 ;
12182 PyObject *swig_obj[1] ;
12183
12184 if (!args) SWIG_fail;
12185 swig_obj[0] = args;
12186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12187 if (!SWIG_IsOK(res1)) {
12188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12189 }
12190 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12191 {
12192 PyThreadState* __tstate = wxPyBeginAllowThreads();
12193 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12194 wxPyEndAllowThreads(__tstate);
12195 if (PyErr_Occurred()) SWIG_fail;
12196 }
12197 {
12198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12199 }
12200 return resultobj;
12201 fail:
12202 return NULL;
12203 }
12204
12205
12206 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12207 PyObject *resultobj = 0;
12208 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12209 long *arg2 = (long *) 0 ;
12210 long *arg3 = (long *) 0 ;
12211 void *argp1 = 0 ;
12212 int res1 = 0 ;
12213 long temp2 ;
12214 int res2 = SWIG_TMPOBJ ;
12215 long temp3 ;
12216 int res3 = SWIG_TMPOBJ ;
12217 PyObject *swig_obj[1] ;
12218
12219 arg2 = &temp2;
12220 arg3 = &temp3;
12221 if (!args) SWIG_fail;
12222 swig_obj[0] = args;
12223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12224 if (!SWIG_IsOK(res1)) {
12225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12226 }
12227 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12228 {
12229 PyThreadState* __tstate = wxPyBeginAllowThreads();
12230 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12231 wxPyEndAllowThreads(__tstate);
12232 if (PyErr_Occurred()) SWIG_fail;
12233 }
12234 resultobj = SWIG_Py_Void();
12235 if (SWIG_IsTmpObj(res2)) {
12236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12237 } else {
12238 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12239 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12240 }
12241 if (SWIG_IsTmpObj(res3)) {
12242 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12243 } else {
12244 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12245 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12246 }
12247 return resultobj;
12248 fail:
12249 return NULL;
12250 }
12251
12252
12253 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12254 PyObject *resultobj = 0;
12255 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12256 wxString result;
12257 void *argp1 = 0 ;
12258 int res1 = 0 ;
12259 PyObject *swig_obj[1] ;
12260
12261 if (!args) SWIG_fail;
12262 swig_obj[0] = args;
12263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12264 if (!SWIG_IsOK(res1)) {
12265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12266 }
12267 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12268 {
12269 PyThreadState* __tstate = wxPyBeginAllowThreads();
12270 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12271 wxPyEndAllowThreads(__tstate);
12272 if (PyErr_Occurred()) SWIG_fail;
12273 }
12274 {
12275 #if wxUSE_UNICODE
12276 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12277 #else
12278 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12279 #endif
12280 }
12281 return resultobj;
12282 fail:
12283 return NULL;
12284 }
12285
12286
12287 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12288 PyObject *resultobj = 0;
12289 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12290 void *argp1 = 0 ;
12291 int res1 = 0 ;
12292 PyObject *swig_obj[1] ;
12293
12294 if (!args) SWIG_fail;
12295 swig_obj[0] = args;
12296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12297 if (!SWIG_IsOK(res1)) {
12298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12299 }
12300 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12301 {
12302 PyThreadState* __tstate = wxPyBeginAllowThreads();
12303 (arg1)->Clear();
12304 wxPyEndAllowThreads(__tstate);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 resultobj = SWIG_Py_Void();
12308 return resultobj;
12309 fail:
12310 return NULL;
12311 }
12312
12313
12314 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12315 PyObject *resultobj = 0;
12316 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12317 long arg2 ;
12318 long arg3 ;
12319 wxString *arg4 = 0 ;
12320 void *argp1 = 0 ;
12321 int res1 = 0 ;
12322 long val2 ;
12323 int ecode2 = 0 ;
12324 long val3 ;
12325 int ecode3 = 0 ;
12326 bool temp4 = false ;
12327 PyObject * obj0 = 0 ;
12328 PyObject * obj1 = 0 ;
12329 PyObject * obj2 = 0 ;
12330 PyObject * obj3 = 0 ;
12331 char * kwnames[] = {
12332 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12333 };
12334
12335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12337 if (!SWIG_IsOK(res1)) {
12338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12339 }
12340 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12341 ecode2 = SWIG_AsVal_long(obj1, &val2);
12342 if (!SWIG_IsOK(ecode2)) {
12343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12344 }
12345 arg2 = static_cast< long >(val2);
12346 ecode3 = SWIG_AsVal_long(obj2, &val3);
12347 if (!SWIG_IsOK(ecode3)) {
12348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12349 }
12350 arg3 = static_cast< long >(val3);
12351 {
12352 arg4 = wxString_in_helper(obj3);
12353 if (arg4 == NULL) SWIG_fail;
12354 temp4 = true;
12355 }
12356 {
12357 PyThreadState* __tstate = wxPyBeginAllowThreads();
12358 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12359 wxPyEndAllowThreads(__tstate);
12360 if (PyErr_Occurred()) SWIG_fail;
12361 }
12362 resultobj = SWIG_Py_Void();
12363 {
12364 if (temp4)
12365 delete arg4;
12366 }
12367 return resultobj;
12368 fail:
12369 {
12370 if (temp4)
12371 delete arg4;
12372 }
12373 return NULL;
12374 }
12375
12376
12377 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12378 PyObject *resultobj = 0;
12379 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12380 long arg2 ;
12381 long arg3 ;
12382 void *argp1 = 0 ;
12383 int res1 = 0 ;
12384 long val2 ;
12385 int ecode2 = 0 ;
12386 long val3 ;
12387 int ecode3 = 0 ;
12388 PyObject * obj0 = 0 ;
12389 PyObject * obj1 = 0 ;
12390 PyObject * obj2 = 0 ;
12391 char * kwnames[] = {
12392 (char *) "self",(char *) "from",(char *) "to", NULL
12393 };
12394
12395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12397 if (!SWIG_IsOK(res1)) {
12398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12399 }
12400 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12401 ecode2 = SWIG_AsVal_long(obj1, &val2);
12402 if (!SWIG_IsOK(ecode2)) {
12403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12404 }
12405 arg2 = static_cast< long >(val2);
12406 ecode3 = SWIG_AsVal_long(obj2, &val3);
12407 if (!SWIG_IsOK(ecode3)) {
12408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12409 }
12410 arg3 = static_cast< long >(val3);
12411 {
12412 PyThreadState* __tstate = wxPyBeginAllowThreads();
12413 (arg1)->Remove(arg2,arg3);
12414 wxPyEndAllowThreads(__tstate);
12415 if (PyErr_Occurred()) SWIG_fail;
12416 }
12417 resultobj = SWIG_Py_Void();
12418 return resultobj;
12419 fail:
12420 return NULL;
12421 }
12422
12423
12424 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12425 PyObject *resultobj = 0;
12426 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12427 wxString *arg2 = 0 ;
12428 bool result;
12429 void *argp1 = 0 ;
12430 int res1 = 0 ;
12431 bool temp2 = false ;
12432 PyObject * obj0 = 0 ;
12433 PyObject * obj1 = 0 ;
12434 char * kwnames[] = {
12435 (char *) "self",(char *) "file", NULL
12436 };
12437
12438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12440 if (!SWIG_IsOK(res1)) {
12441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12442 }
12443 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12444 {
12445 arg2 = wxString_in_helper(obj1);
12446 if (arg2 == NULL) SWIG_fail;
12447 temp2 = true;
12448 }
12449 {
12450 PyThreadState* __tstate = wxPyBeginAllowThreads();
12451 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12452 wxPyEndAllowThreads(__tstate);
12453 if (PyErr_Occurred()) SWIG_fail;
12454 }
12455 {
12456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12457 }
12458 {
12459 if (temp2)
12460 delete arg2;
12461 }
12462 return resultobj;
12463 fail:
12464 {
12465 if (temp2)
12466 delete arg2;
12467 }
12468 return NULL;
12469 }
12470
12471
12472 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12473 PyObject *resultobj = 0;
12474 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12475 wxString const &arg2_defvalue = wxPyEmptyString ;
12476 wxString *arg2 = (wxString *) &arg2_defvalue ;
12477 bool result;
12478 void *argp1 = 0 ;
12479 int res1 = 0 ;
12480 bool temp2 = false ;
12481 PyObject * obj0 = 0 ;
12482 PyObject * obj1 = 0 ;
12483 char * kwnames[] = {
12484 (char *) "self",(char *) "file", NULL
12485 };
12486
12487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12489 if (!SWIG_IsOK(res1)) {
12490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12491 }
12492 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12493 if (obj1) {
12494 {
12495 arg2 = wxString_in_helper(obj1);
12496 if (arg2 == NULL) SWIG_fail;
12497 temp2 = true;
12498 }
12499 }
12500 {
12501 PyThreadState* __tstate = wxPyBeginAllowThreads();
12502 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12503 wxPyEndAllowThreads(__tstate);
12504 if (PyErr_Occurred()) SWIG_fail;
12505 }
12506 {
12507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12508 }
12509 {
12510 if (temp2)
12511 delete arg2;
12512 }
12513 return resultobj;
12514 fail:
12515 {
12516 if (temp2)
12517 delete arg2;
12518 }
12519 return NULL;
12520 }
12521
12522
12523 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12524 PyObject *resultobj = 0;
12525 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12526 void *argp1 = 0 ;
12527 int res1 = 0 ;
12528 PyObject *swig_obj[1] ;
12529
12530 if (!args) SWIG_fail;
12531 swig_obj[0] = args;
12532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12533 if (!SWIG_IsOK(res1)) {
12534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12535 }
12536 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12537 {
12538 PyThreadState* __tstate = wxPyBeginAllowThreads();
12539 (arg1)->MarkDirty();
12540 wxPyEndAllowThreads(__tstate);
12541 if (PyErr_Occurred()) SWIG_fail;
12542 }
12543 resultobj = SWIG_Py_Void();
12544 return resultobj;
12545 fail:
12546 return NULL;
12547 }
12548
12549
12550 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12551 PyObject *resultobj = 0;
12552 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12553 void *argp1 = 0 ;
12554 int res1 = 0 ;
12555 PyObject *swig_obj[1] ;
12556
12557 if (!args) SWIG_fail;
12558 swig_obj[0] = args;
12559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12560 if (!SWIG_IsOK(res1)) {
12561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12562 }
12563 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12564 {
12565 PyThreadState* __tstate = wxPyBeginAllowThreads();
12566 (arg1)->DiscardEdits();
12567 wxPyEndAllowThreads(__tstate);
12568 if (PyErr_Occurred()) SWIG_fail;
12569 }
12570 resultobj = SWIG_Py_Void();
12571 return resultobj;
12572 fail:
12573 return NULL;
12574 }
12575
12576
12577 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12578 PyObject *resultobj = 0;
12579 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12580 unsigned long arg2 ;
12581 void *argp1 = 0 ;
12582 int res1 = 0 ;
12583 unsigned long val2 ;
12584 int ecode2 = 0 ;
12585 PyObject * obj0 = 0 ;
12586 PyObject * obj1 = 0 ;
12587 char * kwnames[] = {
12588 (char *) "self",(char *) "len", NULL
12589 };
12590
12591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12593 if (!SWIG_IsOK(res1)) {
12594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12595 }
12596 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12597 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12598 if (!SWIG_IsOK(ecode2)) {
12599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12600 }
12601 arg2 = static_cast< unsigned long >(val2);
12602 {
12603 PyThreadState* __tstate = wxPyBeginAllowThreads();
12604 (arg1)->SetMaxLength(arg2);
12605 wxPyEndAllowThreads(__tstate);
12606 if (PyErr_Occurred()) SWIG_fail;
12607 }
12608 resultobj = SWIG_Py_Void();
12609 return resultobj;
12610 fail:
12611 return NULL;
12612 }
12613
12614
12615 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12616 PyObject *resultobj = 0;
12617 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12618 wxString *arg2 = 0 ;
12619 void *argp1 = 0 ;
12620 int res1 = 0 ;
12621 bool temp2 = false ;
12622 PyObject * obj0 = 0 ;
12623 PyObject * obj1 = 0 ;
12624 char * kwnames[] = {
12625 (char *) "self",(char *) "text", NULL
12626 };
12627
12628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12630 if (!SWIG_IsOK(res1)) {
12631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12632 }
12633 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12634 {
12635 arg2 = wxString_in_helper(obj1);
12636 if (arg2 == NULL) SWIG_fail;
12637 temp2 = true;
12638 }
12639 {
12640 PyThreadState* __tstate = wxPyBeginAllowThreads();
12641 (arg1)->WriteText((wxString const &)*arg2);
12642 wxPyEndAllowThreads(__tstate);
12643 if (PyErr_Occurred()) SWIG_fail;
12644 }
12645 resultobj = SWIG_Py_Void();
12646 {
12647 if (temp2)
12648 delete arg2;
12649 }
12650 return resultobj;
12651 fail:
12652 {
12653 if (temp2)
12654 delete arg2;
12655 }
12656 return NULL;
12657 }
12658
12659
12660 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12661 PyObject *resultobj = 0;
12662 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12663 wxString *arg2 = 0 ;
12664 void *argp1 = 0 ;
12665 int res1 = 0 ;
12666 bool temp2 = false ;
12667 PyObject * obj0 = 0 ;
12668 PyObject * obj1 = 0 ;
12669 char * kwnames[] = {
12670 (char *) "self",(char *) "text", NULL
12671 };
12672
12673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12675 if (!SWIG_IsOK(res1)) {
12676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12677 }
12678 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12679 {
12680 arg2 = wxString_in_helper(obj1);
12681 if (arg2 == NULL) SWIG_fail;
12682 temp2 = true;
12683 }
12684 {
12685 PyThreadState* __tstate = wxPyBeginAllowThreads();
12686 (arg1)->AppendText((wxString const &)*arg2);
12687 wxPyEndAllowThreads(__tstate);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 resultobj = SWIG_Py_Void();
12691 {
12692 if (temp2)
12693 delete arg2;
12694 }
12695 return resultobj;
12696 fail:
12697 {
12698 if (temp2)
12699 delete arg2;
12700 }
12701 return NULL;
12702 }
12703
12704
12705 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12706 PyObject *resultobj = 0;
12707 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12708 wxKeyEvent *arg2 = 0 ;
12709 bool result;
12710 void *argp1 = 0 ;
12711 int res1 = 0 ;
12712 void *argp2 = 0 ;
12713 int res2 = 0 ;
12714 PyObject * obj0 = 0 ;
12715 PyObject * obj1 = 0 ;
12716 char * kwnames[] = {
12717 (char *) "self",(char *) "event", NULL
12718 };
12719
12720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12722 if (!SWIG_IsOK(res1)) {
12723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12724 }
12725 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12726 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12727 if (!SWIG_IsOK(res2)) {
12728 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12729 }
12730 if (!argp2) {
12731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12732 }
12733 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12734 {
12735 PyThreadState* __tstate = wxPyBeginAllowThreads();
12736 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12737 wxPyEndAllowThreads(__tstate);
12738 if (PyErr_Occurred()) SWIG_fail;
12739 }
12740 {
12741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12742 }
12743 return resultobj;
12744 fail:
12745 return NULL;
12746 }
12747
12748
12749 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12750 PyObject *resultobj = 0;
12751 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12752 long arg2 ;
12753 long arg3 ;
12754 wxTextAttr *arg4 = 0 ;
12755 bool result;
12756 void *argp1 = 0 ;
12757 int res1 = 0 ;
12758 long val2 ;
12759 int ecode2 = 0 ;
12760 long val3 ;
12761 int ecode3 = 0 ;
12762 void *argp4 = 0 ;
12763 int res4 = 0 ;
12764 PyObject * obj0 = 0 ;
12765 PyObject * obj1 = 0 ;
12766 PyObject * obj2 = 0 ;
12767 PyObject * obj3 = 0 ;
12768 char * kwnames[] = {
12769 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12770 };
12771
12772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12774 if (!SWIG_IsOK(res1)) {
12775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12776 }
12777 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12778 ecode2 = SWIG_AsVal_long(obj1, &val2);
12779 if (!SWIG_IsOK(ecode2)) {
12780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12781 }
12782 arg2 = static_cast< long >(val2);
12783 ecode3 = SWIG_AsVal_long(obj2, &val3);
12784 if (!SWIG_IsOK(ecode3)) {
12785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12786 }
12787 arg3 = static_cast< long >(val3);
12788 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12789 if (!SWIG_IsOK(res4)) {
12790 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12791 }
12792 if (!argp4) {
12793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12794 }
12795 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12796 {
12797 PyThreadState* __tstate = wxPyBeginAllowThreads();
12798 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12799 wxPyEndAllowThreads(__tstate);
12800 if (PyErr_Occurred()) SWIG_fail;
12801 }
12802 {
12803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12804 }
12805 return resultobj;
12806 fail:
12807 return NULL;
12808 }
12809
12810
12811 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12812 PyObject *resultobj = 0;
12813 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12814 long arg2 ;
12815 wxTextAttr *arg3 = 0 ;
12816 bool result;
12817 void *argp1 = 0 ;
12818 int res1 = 0 ;
12819 long val2 ;
12820 int ecode2 = 0 ;
12821 void *argp3 = 0 ;
12822 int res3 = 0 ;
12823 PyObject * obj0 = 0 ;
12824 PyObject * obj1 = 0 ;
12825 PyObject * obj2 = 0 ;
12826 char * kwnames[] = {
12827 (char *) "self",(char *) "position",(char *) "style", NULL
12828 };
12829
12830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12832 if (!SWIG_IsOK(res1)) {
12833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12834 }
12835 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12836 ecode2 = SWIG_AsVal_long(obj1, &val2);
12837 if (!SWIG_IsOK(ecode2)) {
12838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12839 }
12840 arg2 = static_cast< long >(val2);
12841 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12842 if (!SWIG_IsOK(res3)) {
12843 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12844 }
12845 if (!argp3) {
12846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12847 }
12848 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12849 {
12850 PyThreadState* __tstate = wxPyBeginAllowThreads();
12851 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12852 wxPyEndAllowThreads(__tstate);
12853 if (PyErr_Occurred()) SWIG_fail;
12854 }
12855 {
12856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12857 }
12858 return resultobj;
12859 fail:
12860 return NULL;
12861 }
12862
12863
12864 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12865 PyObject *resultobj = 0;
12866 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12867 wxTextAttr *arg2 = 0 ;
12868 bool result;
12869 void *argp1 = 0 ;
12870 int res1 = 0 ;
12871 void *argp2 = 0 ;
12872 int res2 = 0 ;
12873 PyObject * obj0 = 0 ;
12874 PyObject * obj1 = 0 ;
12875 char * kwnames[] = {
12876 (char *) "self",(char *) "style", NULL
12877 };
12878
12879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12881 if (!SWIG_IsOK(res1)) {
12882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12883 }
12884 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12886 if (!SWIG_IsOK(res2)) {
12887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12888 }
12889 if (!argp2) {
12890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12891 }
12892 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12893 {
12894 PyThreadState* __tstate = wxPyBeginAllowThreads();
12895 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12896 wxPyEndAllowThreads(__tstate);
12897 if (PyErr_Occurred()) SWIG_fail;
12898 }
12899 {
12900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12901 }
12902 return resultobj;
12903 fail:
12904 return NULL;
12905 }
12906
12907
12908 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12909 PyObject *resultobj = 0;
12910 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12911 wxTextAttr *result = 0 ;
12912 void *argp1 = 0 ;
12913 int res1 = 0 ;
12914 PyObject *swig_obj[1] ;
12915
12916 if (!args) SWIG_fail;
12917 swig_obj[0] = args;
12918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12919 if (!SWIG_IsOK(res1)) {
12920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12921 }
12922 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12923 {
12924 PyThreadState* __tstate = wxPyBeginAllowThreads();
12925 {
12926 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12927 result = (wxTextAttr *) &_result_ref;
12928 }
12929 wxPyEndAllowThreads(__tstate);
12930 if (PyErr_Occurred()) SWIG_fail;
12931 }
12932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12933 return resultobj;
12934 fail:
12935 return NULL;
12936 }
12937
12938
12939 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12940 PyObject *resultobj = 0;
12941 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12942 long arg2 ;
12943 long arg3 ;
12944 long result;
12945 void *argp1 = 0 ;
12946 int res1 = 0 ;
12947 long val2 ;
12948 int ecode2 = 0 ;
12949 long val3 ;
12950 int ecode3 = 0 ;
12951 PyObject * obj0 = 0 ;
12952 PyObject * obj1 = 0 ;
12953 PyObject * obj2 = 0 ;
12954 char * kwnames[] = {
12955 (char *) "self",(char *) "x",(char *) "y", NULL
12956 };
12957
12958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12960 if (!SWIG_IsOK(res1)) {
12961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12962 }
12963 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12964 ecode2 = SWIG_AsVal_long(obj1, &val2);
12965 if (!SWIG_IsOK(ecode2)) {
12966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12967 }
12968 arg2 = static_cast< long >(val2);
12969 ecode3 = SWIG_AsVal_long(obj2, &val3);
12970 if (!SWIG_IsOK(ecode3)) {
12971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12972 }
12973 arg3 = static_cast< long >(val3);
12974 {
12975 PyThreadState* __tstate = wxPyBeginAllowThreads();
12976 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12977 wxPyEndAllowThreads(__tstate);
12978 if (PyErr_Occurred()) SWIG_fail;
12979 }
12980 resultobj = SWIG_From_long(static_cast< long >(result));
12981 return resultobj;
12982 fail:
12983 return NULL;
12984 }
12985
12986
12987 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12988 PyObject *resultobj = 0;
12989 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12990 long arg2 ;
12991 long *arg3 = (long *) 0 ;
12992 long *arg4 = (long *) 0 ;
12993 void *argp1 = 0 ;
12994 int res1 = 0 ;
12995 long val2 ;
12996 int ecode2 = 0 ;
12997 long temp3 ;
12998 int res3 = SWIG_TMPOBJ ;
12999 long temp4 ;
13000 int res4 = SWIG_TMPOBJ ;
13001 PyObject * obj0 = 0 ;
13002 PyObject * obj1 = 0 ;
13003 char * kwnames[] = {
13004 (char *) "self",(char *) "pos", NULL
13005 };
13006
13007 arg3 = &temp3;
13008 arg4 = &temp4;
13009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13011 if (!SWIG_IsOK(res1)) {
13012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13013 }
13014 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13015 ecode2 = SWIG_AsVal_long(obj1, &val2);
13016 if (!SWIG_IsOK(ecode2)) {
13017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13018 }
13019 arg2 = static_cast< long >(val2);
13020 {
13021 PyThreadState* __tstate = wxPyBeginAllowThreads();
13022 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13023 wxPyEndAllowThreads(__tstate);
13024 if (PyErr_Occurred()) SWIG_fail;
13025 }
13026 resultobj = SWIG_Py_Void();
13027 if (SWIG_IsTmpObj(res3)) {
13028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13029 } else {
13030 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13032 }
13033 if (SWIG_IsTmpObj(res4)) {
13034 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13035 } else {
13036 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13037 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13038 }
13039 return resultobj;
13040 fail:
13041 return NULL;
13042 }
13043
13044
13045 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13046 PyObject *resultobj = 0;
13047 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13048 long arg2 ;
13049 void *argp1 = 0 ;
13050 int res1 = 0 ;
13051 long val2 ;
13052 int ecode2 = 0 ;
13053 PyObject * obj0 = 0 ;
13054 PyObject * obj1 = 0 ;
13055 char * kwnames[] = {
13056 (char *) "self",(char *) "pos", NULL
13057 };
13058
13059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13061 if (!SWIG_IsOK(res1)) {
13062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13063 }
13064 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13065 ecode2 = SWIG_AsVal_long(obj1, &val2);
13066 if (!SWIG_IsOK(ecode2)) {
13067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13068 }
13069 arg2 = static_cast< long >(val2);
13070 {
13071 PyThreadState* __tstate = wxPyBeginAllowThreads();
13072 (arg1)->ShowPosition(arg2);
13073 wxPyEndAllowThreads(__tstate);
13074 if (PyErr_Occurred()) SWIG_fail;
13075 }
13076 resultobj = SWIG_Py_Void();
13077 return resultobj;
13078 fail:
13079 return NULL;
13080 }
13081
13082
13083 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13084 PyObject *resultobj = 0;
13085 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13086 wxPoint *arg2 = 0 ;
13087 long *arg3 = (long *) 0 ;
13088 long *arg4 = (long *) 0 ;
13089 wxTextCtrlHitTestResult result;
13090 void *argp1 = 0 ;
13091 int res1 = 0 ;
13092 wxPoint temp2 ;
13093 long temp3 ;
13094 int res3 = SWIG_TMPOBJ ;
13095 long temp4 ;
13096 int res4 = SWIG_TMPOBJ ;
13097 PyObject * obj0 = 0 ;
13098 PyObject * obj1 = 0 ;
13099 char * kwnames[] = {
13100 (char *) "self",(char *) "pt", NULL
13101 };
13102
13103 arg3 = &temp3;
13104 arg4 = &temp4;
13105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13107 if (!SWIG_IsOK(res1)) {
13108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13109 }
13110 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13111 {
13112 arg2 = &temp2;
13113 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13114 }
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13118 wxPyEndAllowThreads(__tstate);
13119 if (PyErr_Occurred()) SWIG_fail;
13120 }
13121 resultobj = SWIG_From_int(static_cast< int >(result));
13122 if (SWIG_IsTmpObj(res3)) {
13123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13124 } else {
13125 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13127 }
13128 if (SWIG_IsTmpObj(res4)) {
13129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13130 } else {
13131 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13133 }
13134 return resultobj;
13135 fail:
13136 return NULL;
13137 }
13138
13139
13140 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13141 PyObject *resultobj = 0;
13142 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13143 wxPoint *arg2 = 0 ;
13144 long *arg3 = (long *) 0 ;
13145 wxTextCtrlHitTestResult result;
13146 void *argp1 = 0 ;
13147 int res1 = 0 ;
13148 wxPoint temp2 ;
13149 long temp3 ;
13150 int res3 = SWIG_TMPOBJ ;
13151 PyObject * obj0 = 0 ;
13152 PyObject * obj1 = 0 ;
13153 char * kwnames[] = {
13154 (char *) "self",(char *) "pt", NULL
13155 };
13156
13157 arg3 = &temp3;
13158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13160 if (!SWIG_IsOK(res1)) {
13161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13162 }
13163 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13164 {
13165 arg2 = &temp2;
13166 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13167 }
13168 {
13169 PyThreadState* __tstate = wxPyBeginAllowThreads();
13170 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13171 wxPyEndAllowThreads(__tstate);
13172 if (PyErr_Occurred()) SWIG_fail;
13173 }
13174 resultobj = SWIG_From_int(static_cast< int >(result));
13175 if (SWIG_IsTmpObj(res3)) {
13176 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13177 } else {
13178 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13179 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13180 }
13181 return resultobj;
13182 fail:
13183 return NULL;
13184 }
13185
13186
13187 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13188 PyObject *resultobj = 0;
13189 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13190 void *argp1 = 0 ;
13191 int res1 = 0 ;
13192 PyObject *swig_obj[1] ;
13193
13194 if (!args) SWIG_fail;
13195 swig_obj[0] = args;
13196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13197 if (!SWIG_IsOK(res1)) {
13198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13199 }
13200 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13201 {
13202 PyThreadState* __tstate = wxPyBeginAllowThreads();
13203 (arg1)->Copy();
13204 wxPyEndAllowThreads(__tstate);
13205 if (PyErr_Occurred()) SWIG_fail;
13206 }
13207 resultobj = SWIG_Py_Void();
13208 return resultobj;
13209 fail:
13210 return NULL;
13211 }
13212
13213
13214 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13215 PyObject *resultobj = 0;
13216 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13217 void *argp1 = 0 ;
13218 int res1 = 0 ;
13219 PyObject *swig_obj[1] ;
13220
13221 if (!args) SWIG_fail;
13222 swig_obj[0] = args;
13223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13224 if (!SWIG_IsOK(res1)) {
13225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13226 }
13227 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13228 {
13229 PyThreadState* __tstate = wxPyBeginAllowThreads();
13230 (arg1)->Cut();
13231 wxPyEndAllowThreads(__tstate);
13232 if (PyErr_Occurred()) SWIG_fail;
13233 }
13234 resultobj = SWIG_Py_Void();
13235 return resultobj;
13236 fail:
13237 return NULL;
13238 }
13239
13240
13241 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13242 PyObject *resultobj = 0;
13243 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13244 void *argp1 = 0 ;
13245 int res1 = 0 ;
13246 PyObject *swig_obj[1] ;
13247
13248 if (!args) SWIG_fail;
13249 swig_obj[0] = args;
13250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13251 if (!SWIG_IsOK(res1)) {
13252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13253 }
13254 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 (arg1)->Paste();
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 resultobj = SWIG_Py_Void();
13262 return resultobj;
13263 fail:
13264 return NULL;
13265 }
13266
13267
13268 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13269 PyObject *resultobj = 0;
13270 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13271 bool result;
13272 void *argp1 = 0 ;
13273 int res1 = 0 ;
13274 PyObject *swig_obj[1] ;
13275
13276 if (!args) SWIG_fail;
13277 swig_obj[0] = args;
13278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13279 if (!SWIG_IsOK(res1)) {
13280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13281 }
13282 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13283 {
13284 PyThreadState* __tstate = wxPyBeginAllowThreads();
13285 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13286 wxPyEndAllowThreads(__tstate);
13287 if (PyErr_Occurred()) SWIG_fail;
13288 }
13289 {
13290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13291 }
13292 return resultobj;
13293 fail:
13294 return NULL;
13295 }
13296
13297
13298 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13299 PyObject *resultobj = 0;
13300 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13301 bool result;
13302 void *argp1 = 0 ;
13303 int res1 = 0 ;
13304 PyObject *swig_obj[1] ;
13305
13306 if (!args) SWIG_fail;
13307 swig_obj[0] = args;
13308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13309 if (!SWIG_IsOK(res1)) {
13310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13311 }
13312 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 {
13320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13321 }
13322 return resultobj;
13323 fail:
13324 return NULL;
13325 }
13326
13327
13328 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13329 PyObject *resultobj = 0;
13330 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13331 bool result;
13332 void *argp1 = 0 ;
13333 int res1 = 0 ;
13334 PyObject *swig_obj[1] ;
13335
13336 if (!args) SWIG_fail;
13337 swig_obj[0] = args;
13338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13339 if (!SWIG_IsOK(res1)) {
13340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13341 }
13342 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13343 {
13344 PyThreadState* __tstate = wxPyBeginAllowThreads();
13345 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13346 wxPyEndAllowThreads(__tstate);
13347 if (PyErr_Occurred()) SWIG_fail;
13348 }
13349 {
13350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13351 }
13352 return resultobj;
13353 fail:
13354 return NULL;
13355 }
13356
13357
13358 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13359 PyObject *resultobj = 0;
13360 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13361 void *argp1 = 0 ;
13362 int res1 = 0 ;
13363 PyObject *swig_obj[1] ;
13364
13365 if (!args) SWIG_fail;
13366 swig_obj[0] = args;
13367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13368 if (!SWIG_IsOK(res1)) {
13369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13370 }
13371 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13372 {
13373 PyThreadState* __tstate = wxPyBeginAllowThreads();
13374 (arg1)->Undo();
13375 wxPyEndAllowThreads(__tstate);
13376 if (PyErr_Occurred()) SWIG_fail;
13377 }
13378 resultobj = SWIG_Py_Void();
13379 return resultobj;
13380 fail:
13381 return NULL;
13382 }
13383
13384
13385 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13386 PyObject *resultobj = 0;
13387 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13388 void *argp1 = 0 ;
13389 int res1 = 0 ;
13390 PyObject *swig_obj[1] ;
13391
13392 if (!args) SWIG_fail;
13393 swig_obj[0] = args;
13394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13395 if (!SWIG_IsOK(res1)) {
13396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13397 }
13398 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13399 {
13400 PyThreadState* __tstate = wxPyBeginAllowThreads();
13401 (arg1)->Redo();
13402 wxPyEndAllowThreads(__tstate);
13403 if (PyErr_Occurred()) SWIG_fail;
13404 }
13405 resultobj = SWIG_Py_Void();
13406 return resultobj;
13407 fail:
13408 return NULL;
13409 }
13410
13411
13412 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13413 PyObject *resultobj = 0;
13414 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13415 bool result;
13416 void *argp1 = 0 ;
13417 int res1 = 0 ;
13418 PyObject *swig_obj[1] ;
13419
13420 if (!args) SWIG_fail;
13421 swig_obj[0] = args;
13422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13423 if (!SWIG_IsOK(res1)) {
13424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13425 }
13426 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13427 {
13428 PyThreadState* __tstate = wxPyBeginAllowThreads();
13429 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 {
13434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13435 }
13436 return resultobj;
13437 fail:
13438 return NULL;
13439 }
13440
13441
13442 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13443 PyObject *resultobj = 0;
13444 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13445 bool result;
13446 void *argp1 = 0 ;
13447 int res1 = 0 ;
13448 PyObject *swig_obj[1] ;
13449
13450 if (!args) SWIG_fail;
13451 swig_obj[0] = args;
13452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13453 if (!SWIG_IsOK(res1)) {
13454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13455 }
13456 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 {
13464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13465 }
13466 return resultobj;
13467 fail:
13468 return NULL;
13469 }
13470
13471
13472 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13473 PyObject *resultobj = 0;
13474 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13475 long arg2 ;
13476 void *argp1 = 0 ;
13477 int res1 = 0 ;
13478 long val2 ;
13479 int ecode2 = 0 ;
13480 PyObject * obj0 = 0 ;
13481 PyObject * obj1 = 0 ;
13482 char * kwnames[] = {
13483 (char *) "self",(char *) "pos", NULL
13484 };
13485
13486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13488 if (!SWIG_IsOK(res1)) {
13489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13490 }
13491 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13492 ecode2 = SWIG_AsVal_long(obj1, &val2);
13493 if (!SWIG_IsOK(ecode2)) {
13494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13495 }
13496 arg2 = static_cast< long >(val2);
13497 {
13498 PyThreadState* __tstate = wxPyBeginAllowThreads();
13499 (arg1)->SetInsertionPoint(arg2);
13500 wxPyEndAllowThreads(__tstate);
13501 if (PyErr_Occurred()) SWIG_fail;
13502 }
13503 resultobj = SWIG_Py_Void();
13504 return resultobj;
13505 fail:
13506 return NULL;
13507 }
13508
13509
13510 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13511 PyObject *resultobj = 0;
13512 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13513 void *argp1 = 0 ;
13514 int res1 = 0 ;
13515 PyObject *swig_obj[1] ;
13516
13517 if (!args) SWIG_fail;
13518 swig_obj[0] = args;
13519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13520 if (!SWIG_IsOK(res1)) {
13521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13522 }
13523 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13524 {
13525 PyThreadState* __tstate = wxPyBeginAllowThreads();
13526 (arg1)->SetInsertionPointEnd();
13527 wxPyEndAllowThreads(__tstate);
13528 if (PyErr_Occurred()) SWIG_fail;
13529 }
13530 resultobj = SWIG_Py_Void();
13531 return resultobj;
13532 fail:
13533 return NULL;
13534 }
13535
13536
13537 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13538 PyObject *resultobj = 0;
13539 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13540 long result;
13541 void *argp1 = 0 ;
13542 int res1 = 0 ;
13543 PyObject *swig_obj[1] ;
13544
13545 if (!args) SWIG_fail;
13546 swig_obj[0] = args;
13547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13548 if (!SWIG_IsOK(res1)) {
13549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13550 }
13551 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13552 {
13553 PyThreadState* __tstate = wxPyBeginAllowThreads();
13554 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13555 wxPyEndAllowThreads(__tstate);
13556 if (PyErr_Occurred()) SWIG_fail;
13557 }
13558 resultobj = SWIG_From_long(static_cast< long >(result));
13559 return resultobj;
13560 fail:
13561 return NULL;
13562 }
13563
13564
13565 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13566 PyObject *resultobj = 0;
13567 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13568 long result;
13569 void *argp1 = 0 ;
13570 int res1 = 0 ;
13571 PyObject *swig_obj[1] ;
13572
13573 if (!args) SWIG_fail;
13574 swig_obj[0] = args;
13575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13576 if (!SWIG_IsOK(res1)) {
13577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13578 }
13579 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13580 {
13581 PyThreadState* __tstate = wxPyBeginAllowThreads();
13582 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
13586 resultobj = SWIG_From_long(static_cast< long >(result));
13587 return resultobj;
13588 fail:
13589 return NULL;
13590 }
13591
13592
13593 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13594 PyObject *resultobj = 0;
13595 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13596 long arg2 ;
13597 long arg3 ;
13598 void *argp1 = 0 ;
13599 int res1 = 0 ;
13600 long val2 ;
13601 int ecode2 = 0 ;
13602 long val3 ;
13603 int ecode3 = 0 ;
13604 PyObject * obj0 = 0 ;
13605 PyObject * obj1 = 0 ;
13606 PyObject * obj2 = 0 ;
13607 char * kwnames[] = {
13608 (char *) "self",(char *) "from",(char *) "to", NULL
13609 };
13610
13611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13613 if (!SWIG_IsOK(res1)) {
13614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13615 }
13616 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13617 ecode2 = SWIG_AsVal_long(obj1, &val2);
13618 if (!SWIG_IsOK(ecode2)) {
13619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13620 }
13621 arg2 = static_cast< long >(val2);
13622 ecode3 = SWIG_AsVal_long(obj2, &val3);
13623 if (!SWIG_IsOK(ecode3)) {
13624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13625 }
13626 arg3 = static_cast< long >(val3);
13627 {
13628 PyThreadState* __tstate = wxPyBeginAllowThreads();
13629 (arg1)->SetSelection(arg2,arg3);
13630 wxPyEndAllowThreads(__tstate);
13631 if (PyErr_Occurred()) SWIG_fail;
13632 }
13633 resultobj = SWIG_Py_Void();
13634 return resultobj;
13635 fail:
13636 return NULL;
13637 }
13638
13639
13640 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13641 PyObject *resultobj = 0;
13642 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13643 void *argp1 = 0 ;
13644 int res1 = 0 ;
13645 PyObject *swig_obj[1] ;
13646
13647 if (!args) SWIG_fail;
13648 swig_obj[0] = args;
13649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13650 if (!SWIG_IsOK(res1)) {
13651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13652 }
13653 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13654 {
13655 PyThreadState* __tstate = wxPyBeginAllowThreads();
13656 (arg1)->SelectAll();
13657 wxPyEndAllowThreads(__tstate);
13658 if (PyErr_Occurred()) SWIG_fail;
13659 }
13660 resultobj = SWIG_Py_Void();
13661 return resultobj;
13662 fail:
13663 return NULL;
13664 }
13665
13666
13667 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13668 PyObject *resultobj = 0;
13669 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13670 bool arg2 ;
13671 void *argp1 = 0 ;
13672 int res1 = 0 ;
13673 bool val2 ;
13674 int ecode2 = 0 ;
13675 PyObject * obj0 = 0 ;
13676 PyObject * obj1 = 0 ;
13677 char * kwnames[] = {
13678 (char *) "self",(char *) "editable", NULL
13679 };
13680
13681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13683 if (!SWIG_IsOK(res1)) {
13684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13685 }
13686 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13687 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13688 if (!SWIG_IsOK(ecode2)) {
13689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13690 }
13691 arg2 = static_cast< bool >(val2);
13692 {
13693 PyThreadState* __tstate = wxPyBeginAllowThreads();
13694 (arg1)->SetEditable(arg2);
13695 wxPyEndAllowThreads(__tstate);
13696 if (PyErr_Occurred()) SWIG_fail;
13697 }
13698 resultobj = SWIG_Py_Void();
13699 return resultobj;
13700 fail:
13701 return NULL;
13702 }
13703
13704
13705 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13706 PyObject *resultobj = 0;
13707 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13708 wxString *arg2 = 0 ;
13709 void *argp1 = 0 ;
13710 int res1 = 0 ;
13711 bool temp2 = false ;
13712 PyObject * obj0 = 0 ;
13713 PyObject * obj1 = 0 ;
13714 char * kwnames[] = {
13715 (char *) "self",(char *) "text", NULL
13716 };
13717
13718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13720 if (!SWIG_IsOK(res1)) {
13721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13722 }
13723 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13724 {
13725 arg2 = wxString_in_helper(obj1);
13726 if (arg2 == NULL) SWIG_fail;
13727 temp2 = true;
13728 }
13729 {
13730 PyThreadState* __tstate = wxPyBeginAllowThreads();
13731 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13732 wxPyEndAllowThreads(__tstate);
13733 if (PyErr_Occurred()) SWIG_fail;
13734 }
13735 resultobj = SWIG_Py_Void();
13736 {
13737 if (temp2)
13738 delete arg2;
13739 }
13740 return resultobj;
13741 fail:
13742 {
13743 if (temp2)
13744 delete arg2;
13745 }
13746 return NULL;
13747 }
13748
13749
13750 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13751 PyObject *resultobj = 0;
13752 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13753 long arg2 ;
13754 long arg3 ;
13755 wxString result;
13756 void *argp1 = 0 ;
13757 int res1 = 0 ;
13758 long val2 ;
13759 int ecode2 = 0 ;
13760 long val3 ;
13761 int ecode3 = 0 ;
13762 PyObject * obj0 = 0 ;
13763 PyObject * obj1 = 0 ;
13764 PyObject * obj2 = 0 ;
13765 char * kwnames[] = {
13766 (char *) "self",(char *) "from",(char *) "to", NULL
13767 };
13768
13769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13771 if (!SWIG_IsOK(res1)) {
13772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13773 }
13774 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13775 ecode2 = SWIG_AsVal_long(obj1, &val2);
13776 if (!SWIG_IsOK(ecode2)) {
13777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13778 }
13779 arg2 = static_cast< long >(val2);
13780 ecode3 = SWIG_AsVal_long(obj2, &val3);
13781 if (!SWIG_IsOK(ecode3)) {
13782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13783 }
13784 arg3 = static_cast< long >(val3);
13785 {
13786 PyThreadState* __tstate = wxPyBeginAllowThreads();
13787 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13788 wxPyEndAllowThreads(__tstate);
13789 if (PyErr_Occurred()) SWIG_fail;
13790 }
13791 {
13792 #if wxUSE_UNICODE
13793 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13794 #else
13795 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13796 #endif
13797 }
13798 return resultobj;
13799 fail:
13800 return NULL;
13801 }
13802
13803
13804 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13805 PyObject *resultobj = 0;
13806 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13807 SwigValueWrapper<wxVisualAttributes > result;
13808 int val1 ;
13809 int ecode1 = 0 ;
13810 PyObject * obj0 = 0 ;
13811 char * kwnames[] = {
13812 (char *) "variant", NULL
13813 };
13814
13815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13816 if (obj0) {
13817 ecode1 = SWIG_AsVal_int(obj0, &val1);
13818 if (!SWIG_IsOK(ecode1)) {
13819 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13820 }
13821 arg1 = static_cast< wxWindowVariant >(val1);
13822 }
13823 {
13824 if (!wxPyCheckForApp()) SWIG_fail;
13825 PyThreadState* __tstate = wxPyBeginAllowThreads();
13826 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13827 wxPyEndAllowThreads(__tstate);
13828 if (PyErr_Occurred()) SWIG_fail;
13829 }
13830 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13831 return resultobj;
13832 fail:
13833 return NULL;
13834 }
13835
13836
13837 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13838 PyObject *obj;
13839 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13840 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13841 return SWIG_Py_Void();
13842 }
13843
13844 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13845 return SWIG_Python_InitShadowInstance(args);
13846 }
13847
13848 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13849 PyObject *resultobj = 0;
13850 int arg1 ;
13851 wxMouseEvent *arg2 = 0 ;
13852 long arg3 ;
13853 long arg4 ;
13854 wxTextUrlEvent *result = 0 ;
13855 int val1 ;
13856 int ecode1 = 0 ;
13857 void *argp2 = 0 ;
13858 int res2 = 0 ;
13859 long val3 ;
13860 int ecode3 = 0 ;
13861 long val4 ;
13862 int ecode4 = 0 ;
13863 PyObject * obj0 = 0 ;
13864 PyObject * obj1 = 0 ;
13865 PyObject * obj2 = 0 ;
13866 PyObject * obj3 = 0 ;
13867 char * kwnames[] = {
13868 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13869 };
13870
13871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13872 ecode1 = SWIG_AsVal_int(obj0, &val1);
13873 if (!SWIG_IsOK(ecode1)) {
13874 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13875 }
13876 arg1 = static_cast< int >(val1);
13877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13878 if (!SWIG_IsOK(res2)) {
13879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13880 }
13881 if (!argp2) {
13882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13883 }
13884 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13885 ecode3 = SWIG_AsVal_long(obj2, &val3);
13886 if (!SWIG_IsOK(ecode3)) {
13887 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13888 }
13889 arg3 = static_cast< long >(val3);
13890 ecode4 = SWIG_AsVal_long(obj3, &val4);
13891 if (!SWIG_IsOK(ecode4)) {
13892 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13893 }
13894 arg4 = static_cast< long >(val4);
13895 {
13896 PyThreadState* __tstate = wxPyBeginAllowThreads();
13897 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13898 wxPyEndAllowThreads(__tstate);
13899 if (PyErr_Occurred()) SWIG_fail;
13900 }
13901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13902 return resultobj;
13903 fail:
13904 return NULL;
13905 }
13906
13907
13908 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13909 PyObject *resultobj = 0;
13910 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13911 wxMouseEvent *result = 0 ;
13912 void *argp1 = 0 ;
13913 int res1 = 0 ;
13914 PyObject *swig_obj[1] ;
13915
13916 if (!args) SWIG_fail;
13917 swig_obj[0] = args;
13918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13919 if (!SWIG_IsOK(res1)) {
13920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13921 }
13922 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13923 {
13924 PyThreadState* __tstate = wxPyBeginAllowThreads();
13925 {
13926 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13927 result = (wxMouseEvent *) &_result_ref;
13928 }
13929 wxPyEndAllowThreads(__tstate);
13930 if (PyErr_Occurred()) SWIG_fail;
13931 }
13932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13933 return resultobj;
13934 fail:
13935 return NULL;
13936 }
13937
13938
13939 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13940 PyObject *resultobj = 0;
13941 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13942 long result;
13943 void *argp1 = 0 ;
13944 int res1 = 0 ;
13945 PyObject *swig_obj[1] ;
13946
13947 if (!args) SWIG_fail;
13948 swig_obj[0] = args;
13949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13950 if (!SWIG_IsOK(res1)) {
13951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13952 }
13953 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13954 {
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13957 wxPyEndAllowThreads(__tstate);
13958 if (PyErr_Occurred()) SWIG_fail;
13959 }
13960 resultobj = SWIG_From_long(static_cast< long >(result));
13961 return resultobj;
13962 fail:
13963 return NULL;
13964 }
13965
13966
13967 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13968 PyObject *resultobj = 0;
13969 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13970 long result;
13971 void *argp1 = 0 ;
13972 int res1 = 0 ;
13973 PyObject *swig_obj[1] ;
13974
13975 if (!args) SWIG_fail;
13976 swig_obj[0] = args;
13977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13978 if (!SWIG_IsOK(res1)) {
13979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13980 }
13981 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13982 {
13983 PyThreadState* __tstate = wxPyBeginAllowThreads();
13984 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13985 wxPyEndAllowThreads(__tstate);
13986 if (PyErr_Occurred()) SWIG_fail;
13987 }
13988 resultobj = SWIG_From_long(static_cast< long >(result));
13989 return resultobj;
13990 fail:
13991 return NULL;
13992 }
13993
13994
13995 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13996 PyObject *obj;
13997 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13998 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13999 return SWIG_Py_Void();
14000 }
14001
14002 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14003 return SWIG_Python_InitShadowInstance(args);
14004 }
14005
14006 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14007 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14008 return 1;
14009 }
14010
14011
14012 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14013 PyObject *pyobj = 0;
14014
14015 {
14016 #if wxUSE_UNICODE
14017 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14018 #else
14019 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14020 #endif
14021 }
14022 return pyobj;
14023 }
14024
14025
14026 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14027 PyObject *resultobj = 0;
14028 wxWindow *arg1 = (wxWindow *) 0 ;
14029 int arg2 = (int) -1 ;
14030 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14031 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14032 wxSize const &arg4_defvalue = wxDefaultSize ;
14033 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14034 long arg5 = (long) wxSB_HORIZONTAL ;
14035 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14036 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14037 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14038 wxString *arg7 = (wxString *) &arg7_defvalue ;
14039 wxScrollBar *result = 0 ;
14040 void *argp1 = 0 ;
14041 int res1 = 0 ;
14042 int val2 ;
14043 int ecode2 = 0 ;
14044 wxPoint temp3 ;
14045 wxSize temp4 ;
14046 long val5 ;
14047 int ecode5 = 0 ;
14048 void *argp6 = 0 ;
14049 int res6 = 0 ;
14050 bool temp7 = false ;
14051 PyObject * obj0 = 0 ;
14052 PyObject * obj1 = 0 ;
14053 PyObject * obj2 = 0 ;
14054 PyObject * obj3 = 0 ;
14055 PyObject * obj4 = 0 ;
14056 PyObject * obj5 = 0 ;
14057 PyObject * obj6 = 0 ;
14058 char * kwnames[] = {
14059 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14060 };
14061
14062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14064 if (!SWIG_IsOK(res1)) {
14065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14066 }
14067 arg1 = reinterpret_cast< wxWindow * >(argp1);
14068 if (obj1) {
14069 ecode2 = SWIG_AsVal_int(obj1, &val2);
14070 if (!SWIG_IsOK(ecode2)) {
14071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14072 }
14073 arg2 = static_cast< int >(val2);
14074 }
14075 if (obj2) {
14076 {
14077 arg3 = &temp3;
14078 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14079 }
14080 }
14081 if (obj3) {
14082 {
14083 arg4 = &temp4;
14084 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14085 }
14086 }
14087 if (obj4) {
14088 ecode5 = SWIG_AsVal_long(obj4, &val5);
14089 if (!SWIG_IsOK(ecode5)) {
14090 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14091 }
14092 arg5 = static_cast< long >(val5);
14093 }
14094 if (obj5) {
14095 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14096 if (!SWIG_IsOK(res6)) {
14097 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14098 }
14099 if (!argp6) {
14100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14101 }
14102 arg6 = reinterpret_cast< wxValidator * >(argp6);
14103 }
14104 if (obj6) {
14105 {
14106 arg7 = wxString_in_helper(obj6);
14107 if (arg7 == NULL) SWIG_fail;
14108 temp7 = true;
14109 }
14110 }
14111 {
14112 if (!wxPyCheckForApp()) SWIG_fail;
14113 PyThreadState* __tstate = wxPyBeginAllowThreads();
14114 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14115 wxPyEndAllowThreads(__tstate);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 }
14118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14119 {
14120 if (temp7)
14121 delete arg7;
14122 }
14123 return resultobj;
14124 fail:
14125 {
14126 if (temp7)
14127 delete arg7;
14128 }
14129 return NULL;
14130 }
14131
14132
14133 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14134 PyObject *resultobj = 0;
14135 wxScrollBar *result = 0 ;
14136
14137 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14138 {
14139 if (!wxPyCheckForApp()) SWIG_fail;
14140 PyThreadState* __tstate = wxPyBeginAllowThreads();
14141 result = (wxScrollBar *)new wxScrollBar();
14142 wxPyEndAllowThreads(__tstate);
14143 if (PyErr_Occurred()) SWIG_fail;
14144 }
14145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14146 return resultobj;
14147 fail:
14148 return NULL;
14149 }
14150
14151
14152 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14153 PyObject *resultobj = 0;
14154 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14155 wxWindow *arg2 = (wxWindow *) 0 ;
14156 int arg3 = (int) -1 ;
14157 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14158 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14159 wxSize const &arg5_defvalue = wxDefaultSize ;
14160 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14161 long arg6 = (long) wxSB_HORIZONTAL ;
14162 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14163 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14164 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14165 wxString *arg8 = (wxString *) &arg8_defvalue ;
14166 bool result;
14167 void *argp1 = 0 ;
14168 int res1 = 0 ;
14169 void *argp2 = 0 ;
14170 int res2 = 0 ;
14171 int val3 ;
14172 int ecode3 = 0 ;
14173 wxPoint temp4 ;
14174 wxSize temp5 ;
14175 long val6 ;
14176 int ecode6 = 0 ;
14177 void *argp7 = 0 ;
14178 int res7 = 0 ;
14179 bool temp8 = false ;
14180 PyObject * obj0 = 0 ;
14181 PyObject * obj1 = 0 ;
14182 PyObject * obj2 = 0 ;
14183 PyObject * obj3 = 0 ;
14184 PyObject * obj4 = 0 ;
14185 PyObject * obj5 = 0 ;
14186 PyObject * obj6 = 0 ;
14187 PyObject * obj7 = 0 ;
14188 char * kwnames[] = {
14189 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14190 };
14191
14192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14194 if (!SWIG_IsOK(res1)) {
14195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14196 }
14197 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14198 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14199 if (!SWIG_IsOK(res2)) {
14200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14201 }
14202 arg2 = reinterpret_cast< wxWindow * >(argp2);
14203 if (obj2) {
14204 ecode3 = SWIG_AsVal_int(obj2, &val3);
14205 if (!SWIG_IsOK(ecode3)) {
14206 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14207 }
14208 arg3 = static_cast< int >(val3);
14209 }
14210 if (obj3) {
14211 {
14212 arg4 = &temp4;
14213 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14214 }
14215 }
14216 if (obj4) {
14217 {
14218 arg5 = &temp5;
14219 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14220 }
14221 }
14222 if (obj5) {
14223 ecode6 = SWIG_AsVal_long(obj5, &val6);
14224 if (!SWIG_IsOK(ecode6)) {
14225 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14226 }
14227 arg6 = static_cast< long >(val6);
14228 }
14229 if (obj6) {
14230 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14231 if (!SWIG_IsOK(res7)) {
14232 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14233 }
14234 if (!argp7) {
14235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14236 }
14237 arg7 = reinterpret_cast< wxValidator * >(argp7);
14238 }
14239 if (obj7) {
14240 {
14241 arg8 = wxString_in_helper(obj7);
14242 if (arg8 == NULL) SWIG_fail;
14243 temp8 = true;
14244 }
14245 }
14246 {
14247 PyThreadState* __tstate = wxPyBeginAllowThreads();
14248 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14249 wxPyEndAllowThreads(__tstate);
14250 if (PyErr_Occurred()) SWIG_fail;
14251 }
14252 {
14253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14254 }
14255 {
14256 if (temp8)
14257 delete arg8;
14258 }
14259 return resultobj;
14260 fail:
14261 {
14262 if (temp8)
14263 delete arg8;
14264 }
14265 return NULL;
14266 }
14267
14268
14269 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14270 PyObject *resultobj = 0;
14271 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14272 int result;
14273 void *argp1 = 0 ;
14274 int res1 = 0 ;
14275 PyObject *swig_obj[1] ;
14276
14277 if (!args) SWIG_fail;
14278 swig_obj[0] = args;
14279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14280 if (!SWIG_IsOK(res1)) {
14281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14282 }
14283 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14284 {
14285 PyThreadState* __tstate = wxPyBeginAllowThreads();
14286 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14287 wxPyEndAllowThreads(__tstate);
14288 if (PyErr_Occurred()) SWIG_fail;
14289 }
14290 resultobj = SWIG_From_int(static_cast< int >(result));
14291 return resultobj;
14292 fail:
14293 return NULL;
14294 }
14295
14296
14297 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14298 PyObject *resultobj = 0;
14299 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14300 int result;
14301 void *argp1 = 0 ;
14302 int res1 = 0 ;
14303 PyObject *swig_obj[1] ;
14304
14305 if (!args) SWIG_fail;
14306 swig_obj[0] = args;
14307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14308 if (!SWIG_IsOK(res1)) {
14309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14310 }
14311 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14312 {
14313 PyThreadState* __tstate = wxPyBeginAllowThreads();
14314 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14315 wxPyEndAllowThreads(__tstate);
14316 if (PyErr_Occurred()) SWIG_fail;
14317 }
14318 resultobj = SWIG_From_int(static_cast< int >(result));
14319 return resultobj;
14320 fail:
14321 return NULL;
14322 }
14323
14324
14325 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14326 PyObject *resultobj = 0;
14327 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14328 int result;
14329 void *argp1 = 0 ;
14330 int res1 = 0 ;
14331 PyObject *swig_obj[1] ;
14332
14333 if (!args) SWIG_fail;
14334 swig_obj[0] = args;
14335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14336 if (!SWIG_IsOK(res1)) {
14337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14338 }
14339 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14340 {
14341 PyThreadState* __tstate = wxPyBeginAllowThreads();
14342 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14343 wxPyEndAllowThreads(__tstate);
14344 if (PyErr_Occurred()) SWIG_fail;
14345 }
14346 resultobj = SWIG_From_int(static_cast< int >(result));
14347 return resultobj;
14348 fail:
14349 return NULL;
14350 }
14351
14352
14353 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14354 PyObject *resultobj = 0;
14355 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14356 int result;
14357 void *argp1 = 0 ;
14358 int res1 = 0 ;
14359 PyObject *swig_obj[1] ;
14360
14361 if (!args) SWIG_fail;
14362 swig_obj[0] = args;
14363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14364 if (!SWIG_IsOK(res1)) {
14365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14366 }
14367 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14368 {
14369 PyThreadState* __tstate = wxPyBeginAllowThreads();
14370 result = (int)((wxScrollBar const *)arg1)->GetRange();
14371 wxPyEndAllowThreads(__tstate);
14372 if (PyErr_Occurred()) SWIG_fail;
14373 }
14374 resultobj = SWIG_From_int(static_cast< int >(result));
14375 return resultobj;
14376 fail:
14377 return NULL;
14378 }
14379
14380
14381 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14382 PyObject *resultobj = 0;
14383 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14384 bool result;
14385 void *argp1 = 0 ;
14386 int res1 = 0 ;
14387 PyObject *swig_obj[1] ;
14388
14389 if (!args) SWIG_fail;
14390 swig_obj[0] = args;
14391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14392 if (!SWIG_IsOK(res1)) {
14393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14394 }
14395 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14396 {
14397 PyThreadState* __tstate = wxPyBeginAllowThreads();
14398 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14399 wxPyEndAllowThreads(__tstate);
14400 if (PyErr_Occurred()) SWIG_fail;
14401 }
14402 {
14403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14404 }
14405 return resultobj;
14406 fail:
14407 return NULL;
14408 }
14409
14410
14411 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14412 PyObject *resultobj = 0;
14413 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14414 int arg2 ;
14415 void *argp1 = 0 ;
14416 int res1 = 0 ;
14417 int val2 ;
14418 int ecode2 = 0 ;
14419 PyObject * obj0 = 0 ;
14420 PyObject * obj1 = 0 ;
14421 char * kwnames[] = {
14422 (char *) "self",(char *) "viewStart", NULL
14423 };
14424
14425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14427 if (!SWIG_IsOK(res1)) {
14428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14429 }
14430 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14431 ecode2 = SWIG_AsVal_int(obj1, &val2);
14432 if (!SWIG_IsOK(ecode2)) {
14433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14434 }
14435 arg2 = static_cast< int >(val2);
14436 {
14437 PyThreadState* __tstate = wxPyBeginAllowThreads();
14438 (arg1)->SetThumbPosition(arg2);
14439 wxPyEndAllowThreads(__tstate);
14440 if (PyErr_Occurred()) SWIG_fail;
14441 }
14442 resultobj = SWIG_Py_Void();
14443 return resultobj;
14444 fail:
14445 return NULL;
14446 }
14447
14448
14449 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14450 PyObject *resultobj = 0;
14451 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14452 SwigValueWrapper<wxVisualAttributes > result;
14453 int val1 ;
14454 int ecode1 = 0 ;
14455 PyObject * obj0 = 0 ;
14456 char * kwnames[] = {
14457 (char *) "variant", NULL
14458 };
14459
14460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14461 if (obj0) {
14462 ecode1 = SWIG_AsVal_int(obj0, &val1);
14463 if (!SWIG_IsOK(ecode1)) {
14464 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14465 }
14466 arg1 = static_cast< wxWindowVariant >(val1);
14467 }
14468 {
14469 if (!wxPyCheckForApp()) SWIG_fail;
14470 PyThreadState* __tstate = wxPyBeginAllowThreads();
14471 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14472 wxPyEndAllowThreads(__tstate);
14473 if (PyErr_Occurred()) SWIG_fail;
14474 }
14475 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14476 return resultobj;
14477 fail:
14478 return NULL;
14479 }
14480
14481
14482 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14483 PyObject *obj;
14484 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14485 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14486 return SWIG_Py_Void();
14487 }
14488
14489 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14490 return SWIG_Python_InitShadowInstance(args);
14491 }
14492
14493 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14494 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14495 return 1;
14496 }
14497
14498
14499 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14500 PyObject *pyobj = 0;
14501
14502 {
14503 #if wxUSE_UNICODE
14504 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14505 #else
14506 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14507 #endif
14508 }
14509 return pyobj;
14510 }
14511
14512
14513 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14514 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14515 return 1;
14516 }
14517
14518
14519 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14520 PyObject *pyobj = 0;
14521
14522 {
14523 #if wxUSE_UNICODE
14524 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14525 #else
14526 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14527 #endif
14528 }
14529 return pyobj;
14530 }
14531
14532
14533 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14534 PyObject *resultobj = 0;
14535 wxWindow *arg1 = (wxWindow *) 0 ;
14536 int arg2 = (int) -1 ;
14537 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14538 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14539 wxSize const &arg4_defvalue = wxDefaultSize ;
14540 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14541 long arg5 = (long) wxSP_HORIZONTAL ;
14542 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14543 wxString *arg6 = (wxString *) &arg6_defvalue ;
14544 wxSpinButton *result = 0 ;
14545 void *argp1 = 0 ;
14546 int res1 = 0 ;
14547 int val2 ;
14548 int ecode2 = 0 ;
14549 wxPoint temp3 ;
14550 wxSize temp4 ;
14551 long val5 ;
14552 int ecode5 = 0 ;
14553 bool temp6 = false ;
14554 PyObject * obj0 = 0 ;
14555 PyObject * obj1 = 0 ;
14556 PyObject * obj2 = 0 ;
14557 PyObject * obj3 = 0 ;
14558 PyObject * obj4 = 0 ;
14559 PyObject * obj5 = 0 ;
14560 char * kwnames[] = {
14561 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14562 };
14563
14564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14566 if (!SWIG_IsOK(res1)) {
14567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14568 }
14569 arg1 = reinterpret_cast< wxWindow * >(argp1);
14570 if (obj1) {
14571 ecode2 = SWIG_AsVal_int(obj1, &val2);
14572 if (!SWIG_IsOK(ecode2)) {
14573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14574 }
14575 arg2 = static_cast< int >(val2);
14576 }
14577 if (obj2) {
14578 {
14579 arg3 = &temp3;
14580 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14581 }
14582 }
14583 if (obj3) {
14584 {
14585 arg4 = &temp4;
14586 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14587 }
14588 }
14589 if (obj4) {
14590 ecode5 = SWIG_AsVal_long(obj4, &val5);
14591 if (!SWIG_IsOK(ecode5)) {
14592 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14593 }
14594 arg5 = static_cast< long >(val5);
14595 }
14596 if (obj5) {
14597 {
14598 arg6 = wxString_in_helper(obj5);
14599 if (arg6 == NULL) SWIG_fail;
14600 temp6 = true;
14601 }
14602 }
14603 {
14604 if (!wxPyCheckForApp()) SWIG_fail;
14605 PyThreadState* __tstate = wxPyBeginAllowThreads();
14606 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14607 wxPyEndAllowThreads(__tstate);
14608 if (PyErr_Occurred()) SWIG_fail;
14609 }
14610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14611 {
14612 if (temp6)
14613 delete arg6;
14614 }
14615 return resultobj;
14616 fail:
14617 {
14618 if (temp6)
14619 delete arg6;
14620 }
14621 return NULL;
14622 }
14623
14624
14625 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14626 PyObject *resultobj = 0;
14627 wxSpinButton *result = 0 ;
14628
14629 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14630 {
14631 if (!wxPyCheckForApp()) SWIG_fail;
14632 PyThreadState* __tstate = wxPyBeginAllowThreads();
14633 result = (wxSpinButton *)new wxSpinButton();
14634 wxPyEndAllowThreads(__tstate);
14635 if (PyErr_Occurred()) SWIG_fail;
14636 }
14637 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14638 return resultobj;
14639 fail:
14640 return NULL;
14641 }
14642
14643
14644 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14645 PyObject *resultobj = 0;
14646 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14647 wxWindow *arg2 = (wxWindow *) 0 ;
14648 int arg3 = (int) -1 ;
14649 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14650 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14651 wxSize const &arg5_defvalue = wxDefaultSize ;
14652 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14653 long arg6 = (long) wxSP_HORIZONTAL ;
14654 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14655 wxString *arg7 = (wxString *) &arg7_defvalue ;
14656 bool result;
14657 void *argp1 = 0 ;
14658 int res1 = 0 ;
14659 void *argp2 = 0 ;
14660 int res2 = 0 ;
14661 int val3 ;
14662 int ecode3 = 0 ;
14663 wxPoint temp4 ;
14664 wxSize temp5 ;
14665 long val6 ;
14666 int ecode6 = 0 ;
14667 bool temp7 = false ;
14668 PyObject * obj0 = 0 ;
14669 PyObject * obj1 = 0 ;
14670 PyObject * obj2 = 0 ;
14671 PyObject * obj3 = 0 ;
14672 PyObject * obj4 = 0 ;
14673 PyObject * obj5 = 0 ;
14674 PyObject * obj6 = 0 ;
14675 char * kwnames[] = {
14676 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14677 };
14678
14679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14681 if (!SWIG_IsOK(res1)) {
14682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14683 }
14684 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14686 if (!SWIG_IsOK(res2)) {
14687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14688 }
14689 arg2 = reinterpret_cast< wxWindow * >(argp2);
14690 if (obj2) {
14691 ecode3 = SWIG_AsVal_int(obj2, &val3);
14692 if (!SWIG_IsOK(ecode3)) {
14693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14694 }
14695 arg3 = static_cast< int >(val3);
14696 }
14697 if (obj3) {
14698 {
14699 arg4 = &temp4;
14700 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14701 }
14702 }
14703 if (obj4) {
14704 {
14705 arg5 = &temp5;
14706 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14707 }
14708 }
14709 if (obj5) {
14710 ecode6 = SWIG_AsVal_long(obj5, &val6);
14711 if (!SWIG_IsOK(ecode6)) {
14712 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14713 }
14714 arg6 = static_cast< long >(val6);
14715 }
14716 if (obj6) {
14717 {
14718 arg7 = wxString_in_helper(obj6);
14719 if (arg7 == NULL) SWIG_fail;
14720 temp7 = true;
14721 }
14722 }
14723 {
14724 PyThreadState* __tstate = wxPyBeginAllowThreads();
14725 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14726 wxPyEndAllowThreads(__tstate);
14727 if (PyErr_Occurred()) SWIG_fail;
14728 }
14729 {
14730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14731 }
14732 {
14733 if (temp7)
14734 delete arg7;
14735 }
14736 return resultobj;
14737 fail:
14738 {
14739 if (temp7)
14740 delete arg7;
14741 }
14742 return NULL;
14743 }
14744
14745
14746 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14747 PyObject *resultobj = 0;
14748 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14749 int result;
14750 void *argp1 = 0 ;
14751 int res1 = 0 ;
14752 PyObject *swig_obj[1] ;
14753
14754 if (!args) SWIG_fail;
14755 swig_obj[0] = args;
14756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14757 if (!SWIG_IsOK(res1)) {
14758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14759 }
14760 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14761 {
14762 PyThreadState* __tstate = wxPyBeginAllowThreads();
14763 result = (int)((wxSpinButton const *)arg1)->GetValue();
14764 wxPyEndAllowThreads(__tstate);
14765 if (PyErr_Occurred()) SWIG_fail;
14766 }
14767 resultobj = SWIG_From_int(static_cast< int >(result));
14768 return resultobj;
14769 fail:
14770 return NULL;
14771 }
14772
14773
14774 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14775 PyObject *resultobj = 0;
14776 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14777 int result;
14778 void *argp1 = 0 ;
14779 int res1 = 0 ;
14780 PyObject *swig_obj[1] ;
14781
14782 if (!args) SWIG_fail;
14783 swig_obj[0] = args;
14784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14785 if (!SWIG_IsOK(res1)) {
14786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14787 }
14788 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14789 {
14790 PyThreadState* __tstate = wxPyBeginAllowThreads();
14791 result = (int)((wxSpinButton const *)arg1)->GetMin();
14792 wxPyEndAllowThreads(__tstate);
14793 if (PyErr_Occurred()) SWIG_fail;
14794 }
14795 resultobj = SWIG_From_int(static_cast< int >(result));
14796 return resultobj;
14797 fail:
14798 return NULL;
14799 }
14800
14801
14802 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14803 PyObject *resultobj = 0;
14804 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14805 int result;
14806 void *argp1 = 0 ;
14807 int res1 = 0 ;
14808 PyObject *swig_obj[1] ;
14809
14810 if (!args) SWIG_fail;
14811 swig_obj[0] = args;
14812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14813 if (!SWIG_IsOK(res1)) {
14814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14815 }
14816 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14817 {
14818 PyThreadState* __tstate = wxPyBeginAllowThreads();
14819 result = (int)((wxSpinButton const *)arg1)->GetMax();
14820 wxPyEndAllowThreads(__tstate);
14821 if (PyErr_Occurred()) SWIG_fail;
14822 }
14823 resultobj = SWIG_From_int(static_cast< int >(result));
14824 return resultobj;
14825 fail:
14826 return NULL;
14827 }
14828
14829
14830 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14831 PyObject *resultobj = 0;
14832 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14833 int arg2 ;
14834 void *argp1 = 0 ;
14835 int res1 = 0 ;
14836 int val2 ;
14837 int ecode2 = 0 ;
14838 PyObject * obj0 = 0 ;
14839 PyObject * obj1 = 0 ;
14840 char * kwnames[] = {
14841 (char *) "self",(char *) "val", NULL
14842 };
14843
14844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14846 if (!SWIG_IsOK(res1)) {
14847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14848 }
14849 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14850 ecode2 = SWIG_AsVal_int(obj1, &val2);
14851 if (!SWIG_IsOK(ecode2)) {
14852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14853 }
14854 arg2 = static_cast< int >(val2);
14855 {
14856 PyThreadState* __tstate = wxPyBeginAllowThreads();
14857 (arg1)->SetValue(arg2);
14858 wxPyEndAllowThreads(__tstate);
14859 if (PyErr_Occurred()) SWIG_fail;
14860 }
14861 resultobj = SWIG_Py_Void();
14862 return resultobj;
14863 fail:
14864 return NULL;
14865 }
14866
14867
14868 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14869 PyObject *resultobj = 0;
14870 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14871 int arg2 ;
14872 void *argp1 = 0 ;
14873 int res1 = 0 ;
14874 int val2 ;
14875 int ecode2 = 0 ;
14876 PyObject * obj0 = 0 ;
14877 PyObject * obj1 = 0 ;
14878 char * kwnames[] = {
14879 (char *) "self",(char *) "minVal", NULL
14880 };
14881
14882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14884 if (!SWIG_IsOK(res1)) {
14885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14886 }
14887 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14888 ecode2 = SWIG_AsVal_int(obj1, &val2);
14889 if (!SWIG_IsOK(ecode2)) {
14890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14891 }
14892 arg2 = static_cast< int >(val2);
14893 {
14894 PyThreadState* __tstate = wxPyBeginAllowThreads();
14895 (arg1)->SetMin(arg2);
14896 wxPyEndAllowThreads(__tstate);
14897 if (PyErr_Occurred()) SWIG_fail;
14898 }
14899 resultobj = SWIG_Py_Void();
14900 return resultobj;
14901 fail:
14902 return NULL;
14903 }
14904
14905
14906 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14907 PyObject *resultobj = 0;
14908 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14909 int arg2 ;
14910 void *argp1 = 0 ;
14911 int res1 = 0 ;
14912 int val2 ;
14913 int ecode2 = 0 ;
14914 PyObject * obj0 = 0 ;
14915 PyObject * obj1 = 0 ;
14916 char * kwnames[] = {
14917 (char *) "self",(char *) "maxVal", NULL
14918 };
14919
14920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14922 if (!SWIG_IsOK(res1)) {
14923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14924 }
14925 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14926 ecode2 = SWIG_AsVal_int(obj1, &val2);
14927 if (!SWIG_IsOK(ecode2)) {
14928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14929 }
14930 arg2 = static_cast< int >(val2);
14931 {
14932 PyThreadState* __tstate = wxPyBeginAllowThreads();
14933 (arg1)->SetMax(arg2);
14934 wxPyEndAllowThreads(__tstate);
14935 if (PyErr_Occurred()) SWIG_fail;
14936 }
14937 resultobj = SWIG_Py_Void();
14938 return resultobj;
14939 fail:
14940 return NULL;
14941 }
14942
14943
14944 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14945 PyObject *resultobj = 0;
14946 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14947 int arg2 ;
14948 int arg3 ;
14949 void *argp1 = 0 ;
14950 int res1 = 0 ;
14951 int val2 ;
14952 int ecode2 = 0 ;
14953 int val3 ;
14954 int ecode3 = 0 ;
14955 PyObject * obj0 = 0 ;
14956 PyObject * obj1 = 0 ;
14957 PyObject * obj2 = 0 ;
14958 char * kwnames[] = {
14959 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14960 };
14961
14962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14964 if (!SWIG_IsOK(res1)) {
14965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14966 }
14967 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14968 ecode2 = SWIG_AsVal_int(obj1, &val2);
14969 if (!SWIG_IsOK(ecode2)) {
14970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14971 }
14972 arg2 = static_cast< int >(val2);
14973 ecode3 = SWIG_AsVal_int(obj2, &val3);
14974 if (!SWIG_IsOK(ecode3)) {
14975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14976 }
14977 arg3 = static_cast< int >(val3);
14978 {
14979 PyThreadState* __tstate = wxPyBeginAllowThreads();
14980 (arg1)->SetRange(arg2,arg3);
14981 wxPyEndAllowThreads(__tstate);
14982 if (PyErr_Occurred()) SWIG_fail;
14983 }
14984 resultobj = SWIG_Py_Void();
14985 return resultobj;
14986 fail:
14987 return NULL;
14988 }
14989
14990
14991 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14992 PyObject *resultobj = 0;
14993 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14994 bool result;
14995 void *argp1 = 0 ;
14996 int res1 = 0 ;
14997 PyObject *swig_obj[1] ;
14998
14999 if (!args) SWIG_fail;
15000 swig_obj[0] = args;
15001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15002 if (!SWIG_IsOK(res1)) {
15003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15004 }
15005 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15006 {
15007 PyThreadState* __tstate = wxPyBeginAllowThreads();
15008 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15009 wxPyEndAllowThreads(__tstate);
15010 if (PyErr_Occurred()) SWIG_fail;
15011 }
15012 {
15013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15014 }
15015 return resultobj;
15016 fail:
15017 return NULL;
15018 }
15019
15020
15021 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15022 PyObject *resultobj = 0;
15023 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15024 SwigValueWrapper<wxVisualAttributes > result;
15025 int val1 ;
15026 int ecode1 = 0 ;
15027 PyObject * obj0 = 0 ;
15028 char * kwnames[] = {
15029 (char *) "variant", NULL
15030 };
15031
15032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15033 if (obj0) {
15034 ecode1 = SWIG_AsVal_int(obj0, &val1);
15035 if (!SWIG_IsOK(ecode1)) {
15036 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15037 }
15038 arg1 = static_cast< wxWindowVariant >(val1);
15039 }
15040 {
15041 if (!wxPyCheckForApp()) SWIG_fail;
15042 PyThreadState* __tstate = wxPyBeginAllowThreads();
15043 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15044 wxPyEndAllowThreads(__tstate);
15045 if (PyErr_Occurred()) SWIG_fail;
15046 }
15047 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15048 return resultobj;
15049 fail:
15050 return NULL;
15051 }
15052
15053
15054 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15055 PyObject *obj;
15056 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15057 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15058 return SWIG_Py_Void();
15059 }
15060
15061 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15062 return SWIG_Python_InitShadowInstance(args);
15063 }
15064
15065 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15066 PyObject *resultobj = 0;
15067 wxWindow *arg1 = (wxWindow *) 0 ;
15068 int arg2 = (int) -1 ;
15069 wxString const &arg3_defvalue = wxPyEmptyString ;
15070 wxString *arg3 = (wxString *) &arg3_defvalue ;
15071 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15072 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15073 wxSize const &arg5_defvalue = wxDefaultSize ;
15074 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15075 long arg6 = (long) wxSP_ARROW_KEYS ;
15076 int arg7 = (int) 0 ;
15077 int arg8 = (int) 100 ;
15078 int arg9 = (int) 0 ;
15079 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15080 wxString *arg10 = (wxString *) &arg10_defvalue ;
15081 wxSpinCtrl *result = 0 ;
15082 void *argp1 = 0 ;
15083 int res1 = 0 ;
15084 int val2 ;
15085 int ecode2 = 0 ;
15086 bool temp3 = false ;
15087 wxPoint temp4 ;
15088 wxSize temp5 ;
15089 long val6 ;
15090 int ecode6 = 0 ;
15091 int val7 ;
15092 int ecode7 = 0 ;
15093 int val8 ;
15094 int ecode8 = 0 ;
15095 int val9 ;
15096 int ecode9 = 0 ;
15097 bool temp10 = false ;
15098 PyObject * obj0 = 0 ;
15099 PyObject * obj1 = 0 ;
15100 PyObject * obj2 = 0 ;
15101 PyObject * obj3 = 0 ;
15102 PyObject * obj4 = 0 ;
15103 PyObject * obj5 = 0 ;
15104 PyObject * obj6 = 0 ;
15105 PyObject * obj7 = 0 ;
15106 PyObject * obj8 = 0 ;
15107 PyObject * obj9 = 0 ;
15108 char * kwnames[] = {
15109 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15110 };
15111
15112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15114 if (!SWIG_IsOK(res1)) {
15115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15116 }
15117 arg1 = reinterpret_cast< wxWindow * >(argp1);
15118 if (obj1) {
15119 ecode2 = SWIG_AsVal_int(obj1, &val2);
15120 if (!SWIG_IsOK(ecode2)) {
15121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15122 }
15123 arg2 = static_cast< int >(val2);
15124 }
15125 if (obj2) {
15126 {
15127 arg3 = wxString_in_helper(obj2);
15128 if (arg3 == NULL) SWIG_fail;
15129 temp3 = true;
15130 }
15131 }
15132 if (obj3) {
15133 {
15134 arg4 = &temp4;
15135 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15136 }
15137 }
15138 if (obj4) {
15139 {
15140 arg5 = &temp5;
15141 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15142 }
15143 }
15144 if (obj5) {
15145 ecode6 = SWIG_AsVal_long(obj5, &val6);
15146 if (!SWIG_IsOK(ecode6)) {
15147 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15148 }
15149 arg6 = static_cast< long >(val6);
15150 }
15151 if (obj6) {
15152 ecode7 = SWIG_AsVal_int(obj6, &val7);
15153 if (!SWIG_IsOK(ecode7)) {
15154 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15155 }
15156 arg7 = static_cast< int >(val7);
15157 }
15158 if (obj7) {
15159 ecode8 = SWIG_AsVal_int(obj7, &val8);
15160 if (!SWIG_IsOK(ecode8)) {
15161 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15162 }
15163 arg8 = static_cast< int >(val8);
15164 }
15165 if (obj8) {
15166 ecode9 = SWIG_AsVal_int(obj8, &val9);
15167 if (!SWIG_IsOK(ecode9)) {
15168 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15169 }
15170 arg9 = static_cast< int >(val9);
15171 }
15172 if (obj9) {
15173 {
15174 arg10 = wxString_in_helper(obj9);
15175 if (arg10 == NULL) SWIG_fail;
15176 temp10 = true;
15177 }
15178 }
15179 {
15180 if (!wxPyCheckForApp()) SWIG_fail;
15181 PyThreadState* __tstate = wxPyBeginAllowThreads();
15182 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15183 wxPyEndAllowThreads(__tstate);
15184 if (PyErr_Occurred()) SWIG_fail;
15185 }
15186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15187 {
15188 if (temp3)
15189 delete arg3;
15190 }
15191 {
15192 if (temp10)
15193 delete arg10;
15194 }
15195 return resultobj;
15196 fail:
15197 {
15198 if (temp3)
15199 delete arg3;
15200 }
15201 {
15202 if (temp10)
15203 delete arg10;
15204 }
15205 return NULL;
15206 }
15207
15208
15209 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15210 PyObject *resultobj = 0;
15211 wxSpinCtrl *result = 0 ;
15212
15213 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15214 {
15215 if (!wxPyCheckForApp()) SWIG_fail;
15216 PyThreadState* __tstate = wxPyBeginAllowThreads();
15217 result = (wxSpinCtrl *)new wxSpinCtrl();
15218 wxPyEndAllowThreads(__tstate);
15219 if (PyErr_Occurred()) SWIG_fail;
15220 }
15221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15222 return resultobj;
15223 fail:
15224 return NULL;
15225 }
15226
15227
15228 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15229 PyObject *resultobj = 0;
15230 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15231 wxWindow *arg2 = (wxWindow *) 0 ;
15232 int arg3 = (int) -1 ;
15233 wxString const &arg4_defvalue = wxPyEmptyString ;
15234 wxString *arg4 = (wxString *) &arg4_defvalue ;
15235 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15236 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15237 wxSize const &arg6_defvalue = wxDefaultSize ;
15238 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15239 long arg7 = (long) wxSP_ARROW_KEYS ;
15240 int arg8 = (int) 0 ;
15241 int arg9 = (int) 100 ;
15242 int arg10 = (int) 0 ;
15243 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15244 wxString *arg11 = (wxString *) &arg11_defvalue ;
15245 bool result;
15246 void *argp1 = 0 ;
15247 int res1 = 0 ;
15248 void *argp2 = 0 ;
15249 int res2 = 0 ;
15250 int val3 ;
15251 int ecode3 = 0 ;
15252 bool temp4 = false ;
15253 wxPoint temp5 ;
15254 wxSize temp6 ;
15255 long val7 ;
15256 int ecode7 = 0 ;
15257 int val8 ;
15258 int ecode8 = 0 ;
15259 int val9 ;
15260 int ecode9 = 0 ;
15261 int val10 ;
15262 int ecode10 = 0 ;
15263 bool temp11 = false ;
15264 PyObject * obj0 = 0 ;
15265 PyObject * obj1 = 0 ;
15266 PyObject * obj2 = 0 ;
15267 PyObject * obj3 = 0 ;
15268 PyObject * obj4 = 0 ;
15269 PyObject * obj5 = 0 ;
15270 PyObject * obj6 = 0 ;
15271 PyObject * obj7 = 0 ;
15272 PyObject * obj8 = 0 ;
15273 PyObject * obj9 = 0 ;
15274 PyObject * obj10 = 0 ;
15275 char * kwnames[] = {
15276 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15277 };
15278
15279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15281 if (!SWIG_IsOK(res1)) {
15282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15283 }
15284 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15285 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15286 if (!SWIG_IsOK(res2)) {
15287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15288 }
15289 arg2 = reinterpret_cast< wxWindow * >(argp2);
15290 if (obj2) {
15291 ecode3 = SWIG_AsVal_int(obj2, &val3);
15292 if (!SWIG_IsOK(ecode3)) {
15293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15294 }
15295 arg3 = static_cast< int >(val3);
15296 }
15297 if (obj3) {
15298 {
15299 arg4 = wxString_in_helper(obj3);
15300 if (arg4 == NULL) SWIG_fail;
15301 temp4 = true;
15302 }
15303 }
15304 if (obj4) {
15305 {
15306 arg5 = &temp5;
15307 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15308 }
15309 }
15310 if (obj5) {
15311 {
15312 arg6 = &temp6;
15313 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15314 }
15315 }
15316 if (obj6) {
15317 ecode7 = SWIG_AsVal_long(obj6, &val7);
15318 if (!SWIG_IsOK(ecode7)) {
15319 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15320 }
15321 arg7 = static_cast< long >(val7);
15322 }
15323 if (obj7) {
15324 ecode8 = SWIG_AsVal_int(obj7, &val8);
15325 if (!SWIG_IsOK(ecode8)) {
15326 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15327 }
15328 arg8 = static_cast< int >(val8);
15329 }
15330 if (obj8) {
15331 ecode9 = SWIG_AsVal_int(obj8, &val9);
15332 if (!SWIG_IsOK(ecode9)) {
15333 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15334 }
15335 arg9 = static_cast< int >(val9);
15336 }
15337 if (obj9) {
15338 ecode10 = SWIG_AsVal_int(obj9, &val10);
15339 if (!SWIG_IsOK(ecode10)) {
15340 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15341 }
15342 arg10 = static_cast< int >(val10);
15343 }
15344 if (obj10) {
15345 {
15346 arg11 = wxString_in_helper(obj10);
15347 if (arg11 == NULL) SWIG_fail;
15348 temp11 = true;
15349 }
15350 }
15351 {
15352 PyThreadState* __tstate = wxPyBeginAllowThreads();
15353 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15354 wxPyEndAllowThreads(__tstate);
15355 if (PyErr_Occurred()) SWIG_fail;
15356 }
15357 {
15358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15359 }
15360 {
15361 if (temp4)
15362 delete arg4;
15363 }
15364 {
15365 if (temp11)
15366 delete arg11;
15367 }
15368 return resultobj;
15369 fail:
15370 {
15371 if (temp4)
15372 delete arg4;
15373 }
15374 {
15375 if (temp11)
15376 delete arg11;
15377 }
15378 return NULL;
15379 }
15380
15381
15382 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15383 PyObject *resultobj = 0;
15384 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15385 int result;
15386 void *argp1 = 0 ;
15387 int res1 = 0 ;
15388 PyObject *swig_obj[1] ;
15389
15390 if (!args) SWIG_fail;
15391 swig_obj[0] = args;
15392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15393 if (!SWIG_IsOK(res1)) {
15394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15395 }
15396 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15397 {
15398 PyThreadState* __tstate = wxPyBeginAllowThreads();
15399 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15400 wxPyEndAllowThreads(__tstate);
15401 if (PyErr_Occurred()) SWIG_fail;
15402 }
15403 resultobj = SWIG_From_int(static_cast< int >(result));
15404 return resultobj;
15405 fail:
15406 return NULL;
15407 }
15408
15409
15410 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15411 PyObject *resultobj = 0;
15412 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15413 int arg2 ;
15414 void *argp1 = 0 ;
15415 int res1 = 0 ;
15416 int val2 ;
15417 int ecode2 = 0 ;
15418 PyObject * obj0 = 0 ;
15419 PyObject * obj1 = 0 ;
15420 char * kwnames[] = {
15421 (char *) "self",(char *) "value", NULL
15422 };
15423
15424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15426 if (!SWIG_IsOK(res1)) {
15427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15428 }
15429 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15430 ecode2 = SWIG_AsVal_int(obj1, &val2);
15431 if (!SWIG_IsOK(ecode2)) {
15432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15433 }
15434 arg2 = static_cast< int >(val2);
15435 {
15436 PyThreadState* __tstate = wxPyBeginAllowThreads();
15437 (arg1)->SetValue(arg2);
15438 wxPyEndAllowThreads(__tstate);
15439 if (PyErr_Occurred()) SWIG_fail;
15440 }
15441 resultobj = SWIG_Py_Void();
15442 return resultobj;
15443 fail:
15444 return NULL;
15445 }
15446
15447
15448 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15449 PyObject *resultobj = 0;
15450 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15451 wxString *arg2 = 0 ;
15452 void *argp1 = 0 ;
15453 int res1 = 0 ;
15454 bool temp2 = false ;
15455 PyObject * obj0 = 0 ;
15456 PyObject * obj1 = 0 ;
15457 char * kwnames[] = {
15458 (char *) "self",(char *) "text", NULL
15459 };
15460
15461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15463 if (!SWIG_IsOK(res1)) {
15464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15465 }
15466 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15467 {
15468 arg2 = wxString_in_helper(obj1);
15469 if (arg2 == NULL) SWIG_fail;
15470 temp2 = true;
15471 }
15472 {
15473 PyThreadState* __tstate = wxPyBeginAllowThreads();
15474 (arg1)->SetValue((wxString const &)*arg2);
15475 wxPyEndAllowThreads(__tstate);
15476 if (PyErr_Occurred()) SWIG_fail;
15477 }
15478 resultobj = SWIG_Py_Void();
15479 {
15480 if (temp2)
15481 delete arg2;
15482 }
15483 return resultobj;
15484 fail:
15485 {
15486 if (temp2)
15487 delete arg2;
15488 }
15489 return NULL;
15490 }
15491
15492
15493 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15494 PyObject *resultobj = 0;
15495 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15496 int arg2 ;
15497 int arg3 ;
15498 void *argp1 = 0 ;
15499 int res1 = 0 ;
15500 int val2 ;
15501 int ecode2 = 0 ;
15502 int val3 ;
15503 int ecode3 = 0 ;
15504 PyObject * obj0 = 0 ;
15505 PyObject * obj1 = 0 ;
15506 PyObject * obj2 = 0 ;
15507 char * kwnames[] = {
15508 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15509 };
15510
15511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15513 if (!SWIG_IsOK(res1)) {
15514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15515 }
15516 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15517 ecode2 = SWIG_AsVal_int(obj1, &val2);
15518 if (!SWIG_IsOK(ecode2)) {
15519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15520 }
15521 arg2 = static_cast< int >(val2);
15522 ecode3 = SWIG_AsVal_int(obj2, &val3);
15523 if (!SWIG_IsOK(ecode3)) {
15524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15525 }
15526 arg3 = static_cast< int >(val3);
15527 {
15528 PyThreadState* __tstate = wxPyBeginAllowThreads();
15529 (arg1)->SetRange(arg2,arg3);
15530 wxPyEndAllowThreads(__tstate);
15531 if (PyErr_Occurred()) SWIG_fail;
15532 }
15533 resultobj = SWIG_Py_Void();
15534 return resultobj;
15535 fail:
15536 return NULL;
15537 }
15538
15539
15540 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15541 PyObject *resultobj = 0;
15542 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15543 int result;
15544 void *argp1 = 0 ;
15545 int res1 = 0 ;
15546 PyObject *swig_obj[1] ;
15547
15548 if (!args) SWIG_fail;
15549 swig_obj[0] = args;
15550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15551 if (!SWIG_IsOK(res1)) {
15552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15553 }
15554 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15555 {
15556 PyThreadState* __tstate = wxPyBeginAllowThreads();
15557 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
15561 resultobj = SWIG_From_int(static_cast< int >(result));
15562 return resultobj;
15563 fail:
15564 return NULL;
15565 }
15566
15567
15568 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15569 PyObject *resultobj = 0;
15570 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15571 int result;
15572 void *argp1 = 0 ;
15573 int res1 = 0 ;
15574 PyObject *swig_obj[1] ;
15575
15576 if (!args) SWIG_fail;
15577 swig_obj[0] = args;
15578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15579 if (!SWIG_IsOK(res1)) {
15580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15581 }
15582 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15583 {
15584 PyThreadState* __tstate = wxPyBeginAllowThreads();
15585 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15586 wxPyEndAllowThreads(__tstate);
15587 if (PyErr_Occurred()) SWIG_fail;
15588 }
15589 resultobj = SWIG_From_int(static_cast< int >(result));
15590 return resultobj;
15591 fail:
15592 return NULL;
15593 }
15594
15595
15596 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15597 PyObject *resultobj = 0;
15598 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15599 long arg2 ;
15600 long arg3 ;
15601 void *argp1 = 0 ;
15602 int res1 = 0 ;
15603 long val2 ;
15604 int ecode2 = 0 ;
15605 long val3 ;
15606 int ecode3 = 0 ;
15607 PyObject * obj0 = 0 ;
15608 PyObject * obj1 = 0 ;
15609 PyObject * obj2 = 0 ;
15610 char * kwnames[] = {
15611 (char *) "self",(char *) "from",(char *) "to", NULL
15612 };
15613
15614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15616 if (!SWIG_IsOK(res1)) {
15617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15618 }
15619 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15620 ecode2 = SWIG_AsVal_long(obj1, &val2);
15621 if (!SWIG_IsOK(ecode2)) {
15622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15623 }
15624 arg2 = static_cast< long >(val2);
15625 ecode3 = SWIG_AsVal_long(obj2, &val3);
15626 if (!SWIG_IsOK(ecode3)) {
15627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15628 }
15629 arg3 = static_cast< long >(val3);
15630 {
15631 PyThreadState* __tstate = wxPyBeginAllowThreads();
15632 (arg1)->SetSelection(arg2,arg3);
15633 wxPyEndAllowThreads(__tstate);
15634 if (PyErr_Occurred()) SWIG_fail;
15635 }
15636 resultobj = SWIG_Py_Void();
15637 return resultobj;
15638 fail:
15639 return NULL;
15640 }
15641
15642
15643 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15644 PyObject *resultobj = 0;
15645 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15646 SwigValueWrapper<wxVisualAttributes > result;
15647 int val1 ;
15648 int ecode1 = 0 ;
15649 PyObject * obj0 = 0 ;
15650 char * kwnames[] = {
15651 (char *) "variant", NULL
15652 };
15653
15654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15655 if (obj0) {
15656 ecode1 = SWIG_AsVal_int(obj0, &val1);
15657 if (!SWIG_IsOK(ecode1)) {
15658 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15659 }
15660 arg1 = static_cast< wxWindowVariant >(val1);
15661 }
15662 {
15663 if (!wxPyCheckForApp()) SWIG_fail;
15664 PyThreadState* __tstate = wxPyBeginAllowThreads();
15665 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15666 wxPyEndAllowThreads(__tstate);
15667 if (PyErr_Occurred()) SWIG_fail;
15668 }
15669 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15670 return resultobj;
15671 fail:
15672 return NULL;
15673 }
15674
15675
15676 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15677 PyObject *obj;
15678 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15679 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15680 return SWIG_Py_Void();
15681 }
15682
15683 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15684 return SWIG_Python_InitShadowInstance(args);
15685 }
15686
15687 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15688 PyObject *resultobj = 0;
15689 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15690 int arg2 = (int) 0 ;
15691 wxSpinEvent *result = 0 ;
15692 int val1 ;
15693 int ecode1 = 0 ;
15694 int val2 ;
15695 int ecode2 = 0 ;
15696 PyObject * obj0 = 0 ;
15697 PyObject * obj1 = 0 ;
15698 char * kwnames[] = {
15699 (char *) "commandType",(char *) "winid", NULL
15700 };
15701
15702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15703 if (obj0) {
15704 ecode1 = SWIG_AsVal_int(obj0, &val1);
15705 if (!SWIG_IsOK(ecode1)) {
15706 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15707 }
15708 arg1 = static_cast< wxEventType >(val1);
15709 }
15710 if (obj1) {
15711 ecode2 = SWIG_AsVal_int(obj1, &val2);
15712 if (!SWIG_IsOK(ecode2)) {
15713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15714 }
15715 arg2 = static_cast< int >(val2);
15716 }
15717 {
15718 PyThreadState* __tstate = wxPyBeginAllowThreads();
15719 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15720 wxPyEndAllowThreads(__tstate);
15721 if (PyErr_Occurred()) SWIG_fail;
15722 }
15723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15724 return resultobj;
15725 fail:
15726 return NULL;
15727 }
15728
15729
15730 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15731 PyObject *resultobj = 0;
15732 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15733 int result;
15734 void *argp1 = 0 ;
15735 int res1 = 0 ;
15736 PyObject *swig_obj[1] ;
15737
15738 if (!args) SWIG_fail;
15739 swig_obj[0] = args;
15740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15741 if (!SWIG_IsOK(res1)) {
15742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15743 }
15744 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15745 {
15746 PyThreadState* __tstate = wxPyBeginAllowThreads();
15747 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15748 wxPyEndAllowThreads(__tstate);
15749 if (PyErr_Occurred()) SWIG_fail;
15750 }
15751 resultobj = SWIG_From_int(static_cast< int >(result));
15752 return resultobj;
15753 fail:
15754 return NULL;
15755 }
15756
15757
15758 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15759 PyObject *resultobj = 0;
15760 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15761 int arg2 ;
15762 void *argp1 = 0 ;
15763 int res1 = 0 ;
15764 int val2 ;
15765 int ecode2 = 0 ;
15766 PyObject * obj0 = 0 ;
15767 PyObject * obj1 = 0 ;
15768 char * kwnames[] = {
15769 (char *) "self",(char *) "pos", NULL
15770 };
15771
15772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15774 if (!SWIG_IsOK(res1)) {
15775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15776 }
15777 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15778 ecode2 = SWIG_AsVal_int(obj1, &val2);
15779 if (!SWIG_IsOK(ecode2)) {
15780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15781 }
15782 arg2 = static_cast< int >(val2);
15783 {
15784 PyThreadState* __tstate = wxPyBeginAllowThreads();
15785 (arg1)->SetPosition(arg2);
15786 wxPyEndAllowThreads(__tstate);
15787 if (PyErr_Occurred()) SWIG_fail;
15788 }
15789 resultobj = SWIG_Py_Void();
15790 return resultobj;
15791 fail:
15792 return NULL;
15793 }
15794
15795
15796 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15797 PyObject *obj;
15798 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15799 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15800 return SWIG_Py_Void();
15801 }
15802
15803 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15804 return SWIG_Python_InitShadowInstance(args);
15805 }
15806
15807 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15808 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15809 return 1;
15810 }
15811
15812
15813 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15814 PyObject *pyobj = 0;
15815
15816 {
15817 #if wxUSE_UNICODE
15818 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15819 #else
15820 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15821 #endif
15822 }
15823 return pyobj;
15824 }
15825
15826
15827 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15828 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15829 return 1;
15830 }
15831
15832
15833 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15834 PyObject *pyobj = 0;
15835
15836 {
15837 #if wxUSE_UNICODE
15838 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15839 #else
15840 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15841 #endif
15842 }
15843 return pyobj;
15844 }
15845
15846
15847 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15848 PyObject *resultobj = 0;
15849 wxWindow *arg1 = (wxWindow *) 0 ;
15850 int arg2 = (int) -1 ;
15851 wxString const &arg3_defvalue = wxPyEmptyString ;
15852 wxString *arg3 = (wxString *) &arg3_defvalue ;
15853 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15854 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15855 wxSize const &arg5_defvalue = wxDefaultSize ;
15856 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15857 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15858 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15859 int arg7 = (int) 0 ;
15860 long arg8 = (long) wxRA_HORIZONTAL ;
15861 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15862 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15863 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15864 wxString *arg10 = (wxString *) &arg10_defvalue ;
15865 wxRadioBox *result = 0 ;
15866 void *argp1 = 0 ;
15867 int res1 = 0 ;
15868 int val2 ;
15869 int ecode2 = 0 ;
15870 bool temp3 = false ;
15871 wxPoint temp4 ;
15872 wxSize temp5 ;
15873 bool temp6 = false ;
15874 int val7 ;
15875 int ecode7 = 0 ;
15876 long val8 ;
15877 int ecode8 = 0 ;
15878 void *argp9 = 0 ;
15879 int res9 = 0 ;
15880 bool temp10 = false ;
15881 PyObject * obj0 = 0 ;
15882 PyObject * obj1 = 0 ;
15883 PyObject * obj2 = 0 ;
15884 PyObject * obj3 = 0 ;
15885 PyObject * obj4 = 0 ;
15886 PyObject * obj5 = 0 ;
15887 PyObject * obj6 = 0 ;
15888 PyObject * obj7 = 0 ;
15889 PyObject * obj8 = 0 ;
15890 PyObject * obj9 = 0 ;
15891 char * kwnames[] = {
15892 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15893 };
15894
15895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15897 if (!SWIG_IsOK(res1)) {
15898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15899 }
15900 arg1 = reinterpret_cast< wxWindow * >(argp1);
15901 if (obj1) {
15902 ecode2 = SWIG_AsVal_int(obj1, &val2);
15903 if (!SWIG_IsOK(ecode2)) {
15904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15905 }
15906 arg2 = static_cast< int >(val2);
15907 }
15908 if (obj2) {
15909 {
15910 arg3 = wxString_in_helper(obj2);
15911 if (arg3 == NULL) SWIG_fail;
15912 temp3 = true;
15913 }
15914 }
15915 if (obj3) {
15916 {
15917 arg4 = &temp4;
15918 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15919 }
15920 }
15921 if (obj4) {
15922 {
15923 arg5 = &temp5;
15924 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15925 }
15926 }
15927 if (obj5) {
15928 {
15929 if (! PySequence_Check(obj5)) {
15930 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15931 SWIG_fail;
15932 }
15933 arg6 = new wxArrayString;
15934 temp6 = true;
15935 int i, len=PySequence_Length(obj5);
15936 for (i=0; i<len; i++) {
15937 PyObject* item = PySequence_GetItem(obj5, i);
15938 wxString* s = wxString_in_helper(item);
15939 if (PyErr_Occurred()) SWIG_fail;
15940 arg6->Add(*s);
15941 delete s;
15942 Py_DECREF(item);
15943 }
15944 }
15945 }
15946 if (obj6) {
15947 ecode7 = SWIG_AsVal_int(obj6, &val7);
15948 if (!SWIG_IsOK(ecode7)) {
15949 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15950 }
15951 arg7 = static_cast< int >(val7);
15952 }
15953 if (obj7) {
15954 ecode8 = SWIG_AsVal_long(obj7, &val8);
15955 if (!SWIG_IsOK(ecode8)) {
15956 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15957 }
15958 arg8 = static_cast< long >(val8);
15959 }
15960 if (obj8) {
15961 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15962 if (!SWIG_IsOK(res9)) {
15963 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15964 }
15965 if (!argp9) {
15966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15967 }
15968 arg9 = reinterpret_cast< wxValidator * >(argp9);
15969 }
15970 if (obj9) {
15971 {
15972 arg10 = wxString_in_helper(obj9);
15973 if (arg10 == NULL) SWIG_fail;
15974 temp10 = true;
15975 }
15976 }
15977 {
15978 if (!wxPyCheckForApp()) SWIG_fail;
15979 PyThreadState* __tstate = wxPyBeginAllowThreads();
15980 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);
15981 wxPyEndAllowThreads(__tstate);
15982 if (PyErr_Occurred()) SWIG_fail;
15983 }
15984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15985 {
15986 if (temp3)
15987 delete arg3;
15988 }
15989 {
15990 if (temp6) delete arg6;
15991 }
15992 {
15993 if (temp10)
15994 delete arg10;
15995 }
15996 return resultobj;
15997 fail:
15998 {
15999 if (temp3)
16000 delete arg3;
16001 }
16002 {
16003 if (temp6) delete arg6;
16004 }
16005 {
16006 if (temp10)
16007 delete arg10;
16008 }
16009 return NULL;
16010 }
16011
16012
16013 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16014 PyObject *resultobj = 0;
16015 wxRadioBox *result = 0 ;
16016
16017 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16018 {
16019 if (!wxPyCheckForApp()) SWIG_fail;
16020 PyThreadState* __tstate = wxPyBeginAllowThreads();
16021 result = (wxRadioBox *)new wxRadioBox();
16022 wxPyEndAllowThreads(__tstate);
16023 if (PyErr_Occurred()) SWIG_fail;
16024 }
16025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16026 return resultobj;
16027 fail:
16028 return NULL;
16029 }
16030
16031
16032 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16033 PyObject *resultobj = 0;
16034 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16035 wxWindow *arg2 = (wxWindow *) 0 ;
16036 int arg3 = (int) -1 ;
16037 wxString const &arg4_defvalue = wxPyEmptyString ;
16038 wxString *arg4 = (wxString *) &arg4_defvalue ;
16039 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16040 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16041 wxSize const &arg6_defvalue = wxDefaultSize ;
16042 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16043 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16044 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16045 int arg8 = (int) 0 ;
16046 long arg9 = (long) wxRA_HORIZONTAL ;
16047 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16048 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16049 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16050 wxString *arg11 = (wxString *) &arg11_defvalue ;
16051 bool result;
16052 void *argp1 = 0 ;
16053 int res1 = 0 ;
16054 void *argp2 = 0 ;
16055 int res2 = 0 ;
16056 int val3 ;
16057 int ecode3 = 0 ;
16058 bool temp4 = false ;
16059 wxPoint temp5 ;
16060 wxSize temp6 ;
16061 bool temp7 = false ;
16062 int val8 ;
16063 int ecode8 = 0 ;
16064 long val9 ;
16065 int ecode9 = 0 ;
16066 void *argp10 = 0 ;
16067 int res10 = 0 ;
16068 bool temp11 = false ;
16069 PyObject * obj0 = 0 ;
16070 PyObject * obj1 = 0 ;
16071 PyObject * obj2 = 0 ;
16072 PyObject * obj3 = 0 ;
16073 PyObject * obj4 = 0 ;
16074 PyObject * obj5 = 0 ;
16075 PyObject * obj6 = 0 ;
16076 PyObject * obj7 = 0 ;
16077 PyObject * obj8 = 0 ;
16078 PyObject * obj9 = 0 ;
16079 PyObject * obj10 = 0 ;
16080 char * kwnames[] = {
16081 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16082 };
16083
16084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16086 if (!SWIG_IsOK(res1)) {
16087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16088 }
16089 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16090 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16091 if (!SWIG_IsOK(res2)) {
16092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16093 }
16094 arg2 = reinterpret_cast< wxWindow * >(argp2);
16095 if (obj2) {
16096 ecode3 = SWIG_AsVal_int(obj2, &val3);
16097 if (!SWIG_IsOK(ecode3)) {
16098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16099 }
16100 arg3 = static_cast< int >(val3);
16101 }
16102 if (obj3) {
16103 {
16104 arg4 = wxString_in_helper(obj3);
16105 if (arg4 == NULL) SWIG_fail;
16106 temp4 = true;
16107 }
16108 }
16109 if (obj4) {
16110 {
16111 arg5 = &temp5;
16112 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16113 }
16114 }
16115 if (obj5) {
16116 {
16117 arg6 = &temp6;
16118 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16119 }
16120 }
16121 if (obj6) {
16122 {
16123 if (! PySequence_Check(obj6)) {
16124 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16125 SWIG_fail;
16126 }
16127 arg7 = new wxArrayString;
16128 temp7 = true;
16129 int i, len=PySequence_Length(obj6);
16130 for (i=0; i<len; i++) {
16131 PyObject* item = PySequence_GetItem(obj6, i);
16132 wxString* s = wxString_in_helper(item);
16133 if (PyErr_Occurred()) SWIG_fail;
16134 arg7->Add(*s);
16135 delete s;
16136 Py_DECREF(item);
16137 }
16138 }
16139 }
16140 if (obj7) {
16141 ecode8 = SWIG_AsVal_int(obj7, &val8);
16142 if (!SWIG_IsOK(ecode8)) {
16143 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16144 }
16145 arg8 = static_cast< int >(val8);
16146 }
16147 if (obj8) {
16148 ecode9 = SWIG_AsVal_long(obj8, &val9);
16149 if (!SWIG_IsOK(ecode9)) {
16150 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16151 }
16152 arg9 = static_cast< long >(val9);
16153 }
16154 if (obj9) {
16155 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16156 if (!SWIG_IsOK(res10)) {
16157 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16158 }
16159 if (!argp10) {
16160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16161 }
16162 arg10 = reinterpret_cast< wxValidator * >(argp10);
16163 }
16164 if (obj10) {
16165 {
16166 arg11 = wxString_in_helper(obj10);
16167 if (arg11 == NULL) SWIG_fail;
16168 temp11 = true;
16169 }
16170 }
16171 {
16172 PyThreadState* __tstate = wxPyBeginAllowThreads();
16173 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);
16174 wxPyEndAllowThreads(__tstate);
16175 if (PyErr_Occurred()) SWIG_fail;
16176 }
16177 {
16178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16179 }
16180 {
16181 if (temp4)
16182 delete arg4;
16183 }
16184 {
16185 if (temp7) delete arg7;
16186 }
16187 {
16188 if (temp11)
16189 delete arg11;
16190 }
16191 return resultobj;
16192 fail:
16193 {
16194 if (temp4)
16195 delete arg4;
16196 }
16197 {
16198 if (temp7) delete arg7;
16199 }
16200 {
16201 if (temp11)
16202 delete arg11;
16203 }
16204 return NULL;
16205 }
16206
16207
16208 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16209 PyObject *resultobj = 0;
16210 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16211 int arg2 ;
16212 void *argp1 = 0 ;
16213 int res1 = 0 ;
16214 int val2 ;
16215 int ecode2 = 0 ;
16216 PyObject * obj0 = 0 ;
16217 PyObject * obj1 = 0 ;
16218 char * kwnames[] = {
16219 (char *) "self",(char *) "n", NULL
16220 };
16221
16222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16224 if (!SWIG_IsOK(res1)) {
16225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16226 }
16227 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16228 ecode2 = SWIG_AsVal_int(obj1, &val2);
16229 if (!SWIG_IsOK(ecode2)) {
16230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16231 }
16232 arg2 = static_cast< int >(val2);
16233 {
16234 PyThreadState* __tstate = wxPyBeginAllowThreads();
16235 (arg1)->SetSelection(arg2);
16236 wxPyEndAllowThreads(__tstate);
16237 if (PyErr_Occurred()) SWIG_fail;
16238 }
16239 resultobj = SWIG_Py_Void();
16240 return resultobj;
16241 fail:
16242 return NULL;
16243 }
16244
16245
16246 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16247 PyObject *resultobj = 0;
16248 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16249 int result;
16250 void *argp1 = 0 ;
16251 int res1 = 0 ;
16252 PyObject *swig_obj[1] ;
16253
16254 if (!args) SWIG_fail;
16255 swig_obj[0] = args;
16256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16257 if (!SWIG_IsOK(res1)) {
16258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16259 }
16260 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16261 {
16262 PyThreadState* __tstate = wxPyBeginAllowThreads();
16263 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16264 wxPyEndAllowThreads(__tstate);
16265 if (PyErr_Occurred()) SWIG_fail;
16266 }
16267 resultobj = SWIG_From_int(static_cast< int >(result));
16268 return resultobj;
16269 fail:
16270 return NULL;
16271 }
16272
16273
16274 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16275 PyObject *resultobj = 0;
16276 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16277 wxString result;
16278 void *argp1 = 0 ;
16279 int res1 = 0 ;
16280 PyObject *swig_obj[1] ;
16281
16282 if (!args) SWIG_fail;
16283 swig_obj[0] = args;
16284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16285 if (!SWIG_IsOK(res1)) {
16286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16287 }
16288 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16289 {
16290 PyThreadState* __tstate = wxPyBeginAllowThreads();
16291 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16292 wxPyEndAllowThreads(__tstate);
16293 if (PyErr_Occurred()) SWIG_fail;
16294 }
16295 {
16296 #if wxUSE_UNICODE
16297 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16298 #else
16299 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16300 #endif
16301 }
16302 return resultobj;
16303 fail:
16304 return NULL;
16305 }
16306
16307
16308 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16309 PyObject *resultobj = 0;
16310 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16311 wxString *arg2 = 0 ;
16312 bool result;
16313 void *argp1 = 0 ;
16314 int res1 = 0 ;
16315 bool temp2 = false ;
16316 PyObject * obj0 = 0 ;
16317 PyObject * obj1 = 0 ;
16318 char * kwnames[] = {
16319 (char *) "self",(char *) "s", NULL
16320 };
16321
16322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16324 if (!SWIG_IsOK(res1)) {
16325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16326 }
16327 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16328 {
16329 arg2 = wxString_in_helper(obj1);
16330 if (arg2 == NULL) SWIG_fail;
16331 temp2 = true;
16332 }
16333 {
16334 PyThreadState* __tstate = wxPyBeginAllowThreads();
16335 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16336 wxPyEndAllowThreads(__tstate);
16337 if (PyErr_Occurred()) SWIG_fail;
16338 }
16339 {
16340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16341 }
16342 {
16343 if (temp2)
16344 delete arg2;
16345 }
16346 return resultobj;
16347 fail:
16348 {
16349 if (temp2)
16350 delete arg2;
16351 }
16352 return NULL;
16353 }
16354
16355
16356 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16357 PyObject *resultobj = 0;
16358 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16359 size_t result;
16360 void *argp1 = 0 ;
16361 int res1 = 0 ;
16362 PyObject *swig_obj[1] ;
16363
16364 if (!args) SWIG_fail;
16365 swig_obj[0] = args;
16366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16367 if (!SWIG_IsOK(res1)) {
16368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16369 }
16370 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16371 {
16372 PyThreadState* __tstate = wxPyBeginAllowThreads();
16373 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16374 wxPyEndAllowThreads(__tstate);
16375 if (PyErr_Occurred()) SWIG_fail;
16376 }
16377 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16378 return resultobj;
16379 fail:
16380 return NULL;
16381 }
16382
16383
16384 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16385 PyObject *resultobj = 0;
16386 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16387 wxString *arg2 = 0 ;
16388 int result;
16389 void *argp1 = 0 ;
16390 int res1 = 0 ;
16391 bool temp2 = false ;
16392 PyObject * obj0 = 0 ;
16393 PyObject * obj1 = 0 ;
16394 char * kwnames[] = {
16395 (char *) "self",(char *) "s", NULL
16396 };
16397
16398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16400 if (!SWIG_IsOK(res1)) {
16401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16402 }
16403 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16404 {
16405 arg2 = wxString_in_helper(obj1);
16406 if (arg2 == NULL) SWIG_fail;
16407 temp2 = true;
16408 }
16409 {
16410 PyThreadState* __tstate = wxPyBeginAllowThreads();
16411 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16412 wxPyEndAllowThreads(__tstate);
16413 if (PyErr_Occurred()) SWIG_fail;
16414 }
16415 resultobj = SWIG_From_int(static_cast< int >(result));
16416 {
16417 if (temp2)
16418 delete arg2;
16419 }
16420 return resultobj;
16421 fail:
16422 {
16423 if (temp2)
16424 delete arg2;
16425 }
16426 return NULL;
16427 }
16428
16429
16430 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16431 PyObject *resultobj = 0;
16432 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16433 int arg2 ;
16434 wxString result;
16435 void *argp1 = 0 ;
16436 int res1 = 0 ;
16437 int val2 ;
16438 int ecode2 = 0 ;
16439 PyObject * obj0 = 0 ;
16440 PyObject * obj1 = 0 ;
16441 char * kwnames[] = {
16442 (char *) "self",(char *) "n", NULL
16443 };
16444
16445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16447 if (!SWIG_IsOK(res1)) {
16448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16449 }
16450 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16451 ecode2 = SWIG_AsVal_int(obj1, &val2);
16452 if (!SWIG_IsOK(ecode2)) {
16453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16454 }
16455 arg2 = static_cast< int >(val2);
16456 {
16457 PyThreadState* __tstate = wxPyBeginAllowThreads();
16458 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16459 wxPyEndAllowThreads(__tstate);
16460 if (PyErr_Occurred()) SWIG_fail;
16461 }
16462 {
16463 #if wxUSE_UNICODE
16464 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16465 #else
16466 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16467 #endif
16468 }
16469 return resultobj;
16470 fail:
16471 return NULL;
16472 }
16473
16474
16475 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16476 PyObject *resultobj = 0;
16477 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16478 int arg2 ;
16479 wxString *arg3 = 0 ;
16480 void *argp1 = 0 ;
16481 int res1 = 0 ;
16482 int val2 ;
16483 int ecode2 = 0 ;
16484 bool temp3 = false ;
16485 PyObject * obj0 = 0 ;
16486 PyObject * obj1 = 0 ;
16487 PyObject * obj2 = 0 ;
16488 char * kwnames[] = {
16489 (char *) "self",(char *) "n",(char *) "label", NULL
16490 };
16491
16492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16494 if (!SWIG_IsOK(res1)) {
16495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16496 }
16497 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16498 ecode2 = SWIG_AsVal_int(obj1, &val2);
16499 if (!SWIG_IsOK(ecode2)) {
16500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16501 }
16502 arg2 = static_cast< int >(val2);
16503 {
16504 arg3 = wxString_in_helper(obj2);
16505 if (arg3 == NULL) SWIG_fail;
16506 temp3 = true;
16507 }
16508 {
16509 PyThreadState* __tstate = wxPyBeginAllowThreads();
16510 (arg1)->SetString(arg2,(wxString const &)*arg3);
16511 wxPyEndAllowThreads(__tstate);
16512 if (PyErr_Occurred()) SWIG_fail;
16513 }
16514 resultobj = SWIG_Py_Void();
16515 {
16516 if (temp3)
16517 delete arg3;
16518 }
16519 return resultobj;
16520 fail:
16521 {
16522 if (temp3)
16523 delete arg3;
16524 }
16525 return NULL;
16526 }
16527
16528
16529 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16530 PyObject *resultobj = 0;
16531 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16532 unsigned int arg2 ;
16533 bool arg3 = (bool) true ;
16534 void *argp1 = 0 ;
16535 int res1 = 0 ;
16536 unsigned int val2 ;
16537 int ecode2 = 0 ;
16538 bool val3 ;
16539 int ecode3 = 0 ;
16540 PyObject * obj0 = 0 ;
16541 PyObject * obj1 = 0 ;
16542 PyObject * obj2 = 0 ;
16543 char * kwnames[] = {
16544 (char *) "self",(char *) "n",(char *) "enable", NULL
16545 };
16546
16547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16549 if (!SWIG_IsOK(res1)) {
16550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16551 }
16552 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16553 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16554 if (!SWIG_IsOK(ecode2)) {
16555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16556 }
16557 arg2 = static_cast< unsigned int >(val2);
16558 if (obj2) {
16559 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16560 if (!SWIG_IsOK(ecode3)) {
16561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16562 }
16563 arg3 = static_cast< bool >(val3);
16564 }
16565 {
16566 PyThreadState* __tstate = wxPyBeginAllowThreads();
16567 (arg1)->Enable(arg2,arg3);
16568 wxPyEndAllowThreads(__tstate);
16569 if (PyErr_Occurred()) SWIG_fail;
16570 }
16571 resultobj = SWIG_Py_Void();
16572 return resultobj;
16573 fail:
16574 return NULL;
16575 }
16576
16577
16578 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16579 PyObject *resultobj = 0;
16580 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16581 unsigned int arg2 ;
16582 bool arg3 = (bool) true ;
16583 void *argp1 = 0 ;
16584 int res1 = 0 ;
16585 unsigned int val2 ;
16586 int ecode2 = 0 ;
16587 bool val3 ;
16588 int ecode3 = 0 ;
16589 PyObject * obj0 = 0 ;
16590 PyObject * obj1 = 0 ;
16591 PyObject * obj2 = 0 ;
16592 char * kwnames[] = {
16593 (char *) "self",(char *) "n",(char *) "show", NULL
16594 };
16595
16596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16598 if (!SWIG_IsOK(res1)) {
16599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16600 }
16601 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16602 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16603 if (!SWIG_IsOK(ecode2)) {
16604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16605 }
16606 arg2 = static_cast< unsigned int >(val2);
16607 if (obj2) {
16608 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16609 if (!SWIG_IsOK(ecode3)) {
16610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16611 }
16612 arg3 = static_cast< bool >(val3);
16613 }
16614 {
16615 PyThreadState* __tstate = wxPyBeginAllowThreads();
16616 (arg1)->Show(arg2,arg3);
16617 wxPyEndAllowThreads(__tstate);
16618 if (PyErr_Occurred()) SWIG_fail;
16619 }
16620 resultobj = SWIG_Py_Void();
16621 return resultobj;
16622 fail:
16623 return NULL;
16624 }
16625
16626
16627 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16628 PyObject *resultobj = 0;
16629 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16630 unsigned int arg2 ;
16631 bool result;
16632 void *argp1 = 0 ;
16633 int res1 = 0 ;
16634 unsigned int val2 ;
16635 int ecode2 = 0 ;
16636 PyObject * obj0 = 0 ;
16637 PyObject * obj1 = 0 ;
16638 char * kwnames[] = {
16639 (char *) "self",(char *) "n", NULL
16640 };
16641
16642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16644 if (!SWIG_IsOK(res1)) {
16645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16646 }
16647 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16648 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16649 if (!SWIG_IsOK(ecode2)) {
16650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16651 }
16652 arg2 = static_cast< unsigned int >(val2);
16653 {
16654 PyThreadState* __tstate = wxPyBeginAllowThreads();
16655 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16656 wxPyEndAllowThreads(__tstate);
16657 if (PyErr_Occurred()) SWIG_fail;
16658 }
16659 {
16660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16661 }
16662 return resultobj;
16663 fail:
16664 return NULL;
16665 }
16666
16667
16668 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16669 PyObject *resultobj = 0;
16670 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16671 unsigned int arg2 ;
16672 bool result;
16673 void *argp1 = 0 ;
16674 int res1 = 0 ;
16675 unsigned int val2 ;
16676 int ecode2 = 0 ;
16677 PyObject * obj0 = 0 ;
16678 PyObject * obj1 = 0 ;
16679 char * kwnames[] = {
16680 (char *) "self",(char *) "n", NULL
16681 };
16682
16683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16685 if (!SWIG_IsOK(res1)) {
16686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16687 }
16688 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16689 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16690 if (!SWIG_IsOK(ecode2)) {
16691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16692 }
16693 arg2 = static_cast< unsigned int >(val2);
16694 {
16695 PyThreadState* __tstate = wxPyBeginAllowThreads();
16696 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16697 wxPyEndAllowThreads(__tstate);
16698 if (PyErr_Occurred()) SWIG_fail;
16699 }
16700 {
16701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16702 }
16703 return resultobj;
16704 fail:
16705 return NULL;
16706 }
16707
16708
16709 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16710 PyObject *resultobj = 0;
16711 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16712 unsigned int result;
16713 void *argp1 = 0 ;
16714 int res1 = 0 ;
16715 PyObject *swig_obj[1] ;
16716
16717 if (!args) SWIG_fail;
16718 swig_obj[0] = args;
16719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16720 if (!SWIG_IsOK(res1)) {
16721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16722 }
16723 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16724 {
16725 PyThreadState* __tstate = wxPyBeginAllowThreads();
16726 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16727 wxPyEndAllowThreads(__tstate);
16728 if (PyErr_Occurred()) SWIG_fail;
16729 }
16730 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16731 return resultobj;
16732 fail:
16733 return NULL;
16734 }
16735
16736
16737 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16738 PyObject *resultobj = 0;
16739 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16740 unsigned int result;
16741 void *argp1 = 0 ;
16742 int res1 = 0 ;
16743 PyObject *swig_obj[1] ;
16744
16745 if (!args) SWIG_fail;
16746 swig_obj[0] = args;
16747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16748 if (!SWIG_IsOK(res1)) {
16749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16750 }
16751 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16752 {
16753 PyThreadState* __tstate = wxPyBeginAllowThreads();
16754 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16755 wxPyEndAllowThreads(__tstate);
16756 if (PyErr_Occurred()) SWIG_fail;
16757 }
16758 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16759 return resultobj;
16760 fail:
16761 return NULL;
16762 }
16763
16764
16765 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16766 PyObject *resultobj = 0;
16767 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16768 int arg2 ;
16769 wxDirection arg3 ;
16770 long arg4 ;
16771 int result;
16772 void *argp1 = 0 ;
16773 int res1 = 0 ;
16774 int val2 ;
16775 int ecode2 = 0 ;
16776 int val3 ;
16777 int ecode3 = 0 ;
16778 long val4 ;
16779 int ecode4 = 0 ;
16780 PyObject * obj0 = 0 ;
16781 PyObject * obj1 = 0 ;
16782 PyObject * obj2 = 0 ;
16783 PyObject * obj3 = 0 ;
16784 char * kwnames[] = {
16785 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16786 };
16787
16788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16790 if (!SWIG_IsOK(res1)) {
16791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16792 }
16793 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16794 ecode2 = SWIG_AsVal_int(obj1, &val2);
16795 if (!SWIG_IsOK(ecode2)) {
16796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16797 }
16798 arg2 = static_cast< int >(val2);
16799 ecode3 = SWIG_AsVal_int(obj2, &val3);
16800 if (!SWIG_IsOK(ecode3)) {
16801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16802 }
16803 arg3 = static_cast< wxDirection >(val3);
16804 ecode4 = SWIG_AsVal_long(obj3, &val4);
16805 if (!SWIG_IsOK(ecode4)) {
16806 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16807 }
16808 arg4 = static_cast< long >(val4);
16809 {
16810 PyThreadState* __tstate = wxPyBeginAllowThreads();
16811 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16812 wxPyEndAllowThreads(__tstate);
16813 if (PyErr_Occurred()) SWIG_fail;
16814 }
16815 resultobj = SWIG_From_int(static_cast< int >(result));
16816 return resultobj;
16817 fail:
16818 return NULL;
16819 }
16820
16821
16822 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16823 PyObject *resultobj = 0;
16824 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16825 unsigned int arg2 ;
16826 wxString *arg3 = 0 ;
16827 void *argp1 = 0 ;
16828 int res1 = 0 ;
16829 unsigned int val2 ;
16830 int ecode2 = 0 ;
16831 bool temp3 = false ;
16832 PyObject * obj0 = 0 ;
16833 PyObject * obj1 = 0 ;
16834 PyObject * obj2 = 0 ;
16835 char * kwnames[] = {
16836 (char *) "self",(char *) "item",(char *) "text", NULL
16837 };
16838
16839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16841 if (!SWIG_IsOK(res1)) {
16842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16843 }
16844 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16845 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16846 if (!SWIG_IsOK(ecode2)) {
16847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16848 }
16849 arg2 = static_cast< unsigned int >(val2);
16850 {
16851 arg3 = wxString_in_helper(obj2);
16852 if (arg3 == NULL) SWIG_fail;
16853 temp3 = true;
16854 }
16855 {
16856 PyThreadState* __tstate = wxPyBeginAllowThreads();
16857 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16858 wxPyEndAllowThreads(__tstate);
16859 if (PyErr_Occurred()) SWIG_fail;
16860 }
16861 resultobj = SWIG_Py_Void();
16862 {
16863 if (temp3)
16864 delete arg3;
16865 }
16866 return resultobj;
16867 fail:
16868 {
16869 if (temp3)
16870 delete arg3;
16871 }
16872 return NULL;
16873 }
16874
16875
16876 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16877 PyObject *resultobj = 0;
16878 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16879 unsigned int arg2 ;
16880 wxToolTip *result = 0 ;
16881 void *argp1 = 0 ;
16882 int res1 = 0 ;
16883 unsigned int val2 ;
16884 int ecode2 = 0 ;
16885 PyObject * obj0 = 0 ;
16886 PyObject * obj1 = 0 ;
16887 char * kwnames[] = {
16888 (char *) "self",(char *) "item", NULL
16889 };
16890
16891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16893 if (!SWIG_IsOK(res1)) {
16894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16895 }
16896 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16897 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16898 if (!SWIG_IsOK(ecode2)) {
16899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16900 }
16901 arg2 = static_cast< unsigned int >(val2);
16902 {
16903 PyThreadState* __tstate = wxPyBeginAllowThreads();
16904 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16905 wxPyEndAllowThreads(__tstate);
16906 if (PyErr_Occurred()) SWIG_fail;
16907 }
16908 {
16909 resultobj = wxPyMake_wxObject(result, (bool)0);
16910 }
16911 return resultobj;
16912 fail:
16913 return NULL;
16914 }
16915
16916
16917 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16918 PyObject *resultobj = 0;
16919 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16920 SwigValueWrapper<wxVisualAttributes > result;
16921 int val1 ;
16922 int ecode1 = 0 ;
16923 PyObject * obj0 = 0 ;
16924 char * kwnames[] = {
16925 (char *) "variant", NULL
16926 };
16927
16928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16929 if (obj0) {
16930 ecode1 = SWIG_AsVal_int(obj0, &val1);
16931 if (!SWIG_IsOK(ecode1)) {
16932 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16933 }
16934 arg1 = static_cast< wxWindowVariant >(val1);
16935 }
16936 {
16937 if (!wxPyCheckForApp()) SWIG_fail;
16938 PyThreadState* __tstate = wxPyBeginAllowThreads();
16939 result = wxRadioBox::GetClassDefaultAttributes(arg1);
16940 wxPyEndAllowThreads(__tstate);
16941 if (PyErr_Occurred()) SWIG_fail;
16942 }
16943 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16944 return resultobj;
16945 fail:
16946 return NULL;
16947 }
16948
16949
16950 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16951 PyObject *obj;
16952 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16953 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
16954 return SWIG_Py_Void();
16955 }
16956
16957 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16958 return SWIG_Python_InitShadowInstance(args);
16959 }
16960
16961 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16962 PyObject *resultobj = 0;
16963 wxWindow *arg1 = (wxWindow *) 0 ;
16964 int arg2 = (int) -1 ;
16965 wxString const &arg3_defvalue = wxPyEmptyString ;
16966 wxString *arg3 = (wxString *) &arg3_defvalue ;
16967 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16968 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16969 wxSize const &arg5_defvalue = wxDefaultSize ;
16970 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16971 long arg6 = (long) 0 ;
16972 wxValidator const &arg7_defvalue = wxDefaultValidator ;
16973 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
16974 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
16975 wxString *arg8 = (wxString *) &arg8_defvalue ;
16976 wxRadioButton *result = 0 ;
16977 void *argp1 = 0 ;
16978 int res1 = 0 ;
16979 int val2 ;
16980 int ecode2 = 0 ;
16981 bool temp3 = false ;
16982 wxPoint temp4 ;
16983 wxSize temp5 ;
16984 long val6 ;
16985 int ecode6 = 0 ;
16986 void *argp7 = 0 ;
16987 int res7 = 0 ;
16988 bool temp8 = false ;
16989 PyObject * obj0 = 0 ;
16990 PyObject * obj1 = 0 ;
16991 PyObject * obj2 = 0 ;
16992 PyObject * obj3 = 0 ;
16993 PyObject * obj4 = 0 ;
16994 PyObject * obj5 = 0 ;
16995 PyObject * obj6 = 0 ;
16996 PyObject * obj7 = 0 ;
16997 char * kwnames[] = {
16998 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16999 };
17000
17001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17003 if (!SWIG_IsOK(res1)) {
17004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17005 }
17006 arg1 = reinterpret_cast< wxWindow * >(argp1);
17007 if (obj1) {
17008 ecode2 = SWIG_AsVal_int(obj1, &val2);
17009 if (!SWIG_IsOK(ecode2)) {
17010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17011 }
17012 arg2 = static_cast< int >(val2);
17013 }
17014 if (obj2) {
17015 {
17016 arg3 = wxString_in_helper(obj2);
17017 if (arg3 == NULL) SWIG_fail;
17018 temp3 = true;
17019 }
17020 }
17021 if (obj3) {
17022 {
17023 arg4 = &temp4;
17024 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17025 }
17026 }
17027 if (obj4) {
17028 {
17029 arg5 = &temp5;
17030 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17031 }
17032 }
17033 if (obj5) {
17034 ecode6 = SWIG_AsVal_long(obj5, &val6);
17035 if (!SWIG_IsOK(ecode6)) {
17036 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17037 }
17038 arg6 = static_cast< long >(val6);
17039 }
17040 if (obj6) {
17041 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17042 if (!SWIG_IsOK(res7)) {
17043 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17044 }
17045 if (!argp7) {
17046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17047 }
17048 arg7 = reinterpret_cast< wxValidator * >(argp7);
17049 }
17050 if (obj7) {
17051 {
17052 arg8 = wxString_in_helper(obj7);
17053 if (arg8 == NULL) SWIG_fail;
17054 temp8 = true;
17055 }
17056 }
17057 {
17058 if (!wxPyCheckForApp()) SWIG_fail;
17059 PyThreadState* __tstate = wxPyBeginAllowThreads();
17060 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17061 wxPyEndAllowThreads(__tstate);
17062 if (PyErr_Occurred()) SWIG_fail;
17063 }
17064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17065 {
17066 if (temp3)
17067 delete arg3;
17068 }
17069 {
17070 if (temp8)
17071 delete arg8;
17072 }
17073 return resultobj;
17074 fail:
17075 {
17076 if (temp3)
17077 delete arg3;
17078 }
17079 {
17080 if (temp8)
17081 delete arg8;
17082 }
17083 return NULL;
17084 }
17085
17086
17087 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17088 PyObject *resultobj = 0;
17089 wxRadioButton *result = 0 ;
17090
17091 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17092 {
17093 if (!wxPyCheckForApp()) SWIG_fail;
17094 PyThreadState* __tstate = wxPyBeginAllowThreads();
17095 result = (wxRadioButton *)new wxRadioButton();
17096 wxPyEndAllowThreads(__tstate);
17097 if (PyErr_Occurred()) SWIG_fail;
17098 }
17099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17100 return resultobj;
17101 fail:
17102 return NULL;
17103 }
17104
17105
17106 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17107 PyObject *resultobj = 0;
17108 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17109 wxWindow *arg2 = (wxWindow *) 0 ;
17110 int arg3 = (int) -1 ;
17111 wxString const &arg4_defvalue = wxPyEmptyString ;
17112 wxString *arg4 = (wxString *) &arg4_defvalue ;
17113 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17114 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17115 wxSize const &arg6_defvalue = wxDefaultSize ;
17116 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17117 long arg7 = (long) 0 ;
17118 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17119 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17120 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17121 wxString *arg9 = (wxString *) &arg9_defvalue ;
17122 bool result;
17123 void *argp1 = 0 ;
17124 int res1 = 0 ;
17125 void *argp2 = 0 ;
17126 int res2 = 0 ;
17127 int val3 ;
17128 int ecode3 = 0 ;
17129 bool temp4 = false ;
17130 wxPoint temp5 ;
17131 wxSize temp6 ;
17132 long val7 ;
17133 int ecode7 = 0 ;
17134 void *argp8 = 0 ;
17135 int res8 = 0 ;
17136 bool temp9 = false ;
17137 PyObject * obj0 = 0 ;
17138 PyObject * obj1 = 0 ;
17139 PyObject * obj2 = 0 ;
17140 PyObject * obj3 = 0 ;
17141 PyObject * obj4 = 0 ;
17142 PyObject * obj5 = 0 ;
17143 PyObject * obj6 = 0 ;
17144 PyObject * obj7 = 0 ;
17145 PyObject * obj8 = 0 ;
17146 char * kwnames[] = {
17147 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17148 };
17149
17150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17152 if (!SWIG_IsOK(res1)) {
17153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17154 }
17155 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17156 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17157 if (!SWIG_IsOK(res2)) {
17158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17159 }
17160 arg2 = reinterpret_cast< wxWindow * >(argp2);
17161 if (obj2) {
17162 ecode3 = SWIG_AsVal_int(obj2, &val3);
17163 if (!SWIG_IsOK(ecode3)) {
17164 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17165 }
17166 arg3 = static_cast< int >(val3);
17167 }
17168 if (obj3) {
17169 {
17170 arg4 = wxString_in_helper(obj3);
17171 if (arg4 == NULL) SWIG_fail;
17172 temp4 = true;
17173 }
17174 }
17175 if (obj4) {
17176 {
17177 arg5 = &temp5;
17178 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17179 }
17180 }
17181 if (obj5) {
17182 {
17183 arg6 = &temp6;
17184 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17185 }
17186 }
17187 if (obj6) {
17188 ecode7 = SWIG_AsVal_long(obj6, &val7);
17189 if (!SWIG_IsOK(ecode7)) {
17190 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17191 }
17192 arg7 = static_cast< long >(val7);
17193 }
17194 if (obj7) {
17195 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17196 if (!SWIG_IsOK(res8)) {
17197 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17198 }
17199 if (!argp8) {
17200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17201 }
17202 arg8 = reinterpret_cast< wxValidator * >(argp8);
17203 }
17204 if (obj8) {
17205 {
17206 arg9 = wxString_in_helper(obj8);
17207 if (arg9 == NULL) SWIG_fail;
17208 temp9 = true;
17209 }
17210 }
17211 {
17212 PyThreadState* __tstate = wxPyBeginAllowThreads();
17213 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17214 wxPyEndAllowThreads(__tstate);
17215 if (PyErr_Occurred()) SWIG_fail;
17216 }
17217 {
17218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17219 }
17220 {
17221 if (temp4)
17222 delete arg4;
17223 }
17224 {
17225 if (temp9)
17226 delete arg9;
17227 }
17228 return resultobj;
17229 fail:
17230 {
17231 if (temp4)
17232 delete arg4;
17233 }
17234 {
17235 if (temp9)
17236 delete arg9;
17237 }
17238 return NULL;
17239 }
17240
17241
17242 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17243 PyObject *resultobj = 0;
17244 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17245 bool result;
17246 void *argp1 = 0 ;
17247 int res1 = 0 ;
17248 PyObject *swig_obj[1] ;
17249
17250 if (!args) SWIG_fail;
17251 swig_obj[0] = args;
17252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17253 if (!SWIG_IsOK(res1)) {
17254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17255 }
17256 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17257 {
17258 PyThreadState* __tstate = wxPyBeginAllowThreads();
17259 result = (bool)(arg1)->GetValue();
17260 wxPyEndAllowThreads(__tstate);
17261 if (PyErr_Occurred()) SWIG_fail;
17262 }
17263 {
17264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17265 }
17266 return resultobj;
17267 fail:
17268 return NULL;
17269 }
17270
17271
17272 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17273 PyObject *resultobj = 0;
17274 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17275 bool arg2 ;
17276 void *argp1 = 0 ;
17277 int res1 = 0 ;
17278 bool val2 ;
17279 int ecode2 = 0 ;
17280 PyObject * obj0 = 0 ;
17281 PyObject * obj1 = 0 ;
17282 char * kwnames[] = {
17283 (char *) "self",(char *) "value", NULL
17284 };
17285
17286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17288 if (!SWIG_IsOK(res1)) {
17289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17290 }
17291 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17292 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17293 if (!SWIG_IsOK(ecode2)) {
17294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17295 }
17296 arg2 = static_cast< bool >(val2);
17297 {
17298 PyThreadState* __tstate = wxPyBeginAllowThreads();
17299 (arg1)->SetValue(arg2);
17300 wxPyEndAllowThreads(__tstate);
17301 if (PyErr_Occurred()) SWIG_fail;
17302 }
17303 resultobj = SWIG_Py_Void();
17304 return resultobj;
17305 fail:
17306 return NULL;
17307 }
17308
17309
17310 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17311 PyObject *resultobj = 0;
17312 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17313 SwigValueWrapper<wxVisualAttributes > result;
17314 int val1 ;
17315 int ecode1 = 0 ;
17316 PyObject * obj0 = 0 ;
17317 char * kwnames[] = {
17318 (char *) "variant", NULL
17319 };
17320
17321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17322 if (obj0) {
17323 ecode1 = SWIG_AsVal_int(obj0, &val1);
17324 if (!SWIG_IsOK(ecode1)) {
17325 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17326 }
17327 arg1 = static_cast< wxWindowVariant >(val1);
17328 }
17329 {
17330 if (!wxPyCheckForApp()) SWIG_fail;
17331 PyThreadState* __tstate = wxPyBeginAllowThreads();
17332 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17333 wxPyEndAllowThreads(__tstate);
17334 if (PyErr_Occurred()) SWIG_fail;
17335 }
17336 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17337 return resultobj;
17338 fail:
17339 return NULL;
17340 }
17341
17342
17343 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17344 PyObject *obj;
17345 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17346 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17347 return SWIG_Py_Void();
17348 }
17349
17350 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17351 return SWIG_Python_InitShadowInstance(args);
17352 }
17353
17354 SWIGINTERN int SliderNameStr_set(PyObject *) {
17355 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17356 return 1;
17357 }
17358
17359
17360 SWIGINTERN PyObject *SliderNameStr_get(void) {
17361 PyObject *pyobj = 0;
17362
17363 {
17364 #if wxUSE_UNICODE
17365 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17366 #else
17367 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17368 #endif
17369 }
17370 return pyobj;
17371 }
17372
17373
17374 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17375 PyObject *resultobj = 0;
17376 wxWindow *arg1 = (wxWindow *) 0 ;
17377 int arg2 = (int) -1 ;
17378 int arg3 = (int) 0 ;
17379 int arg4 = (int) 0 ;
17380 int arg5 = (int) 100 ;
17381 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17382 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17383 wxSize const &arg7_defvalue = wxDefaultSize ;
17384 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17385 long arg8 = (long) wxSL_HORIZONTAL ;
17386 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17387 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17388 wxString const &arg10_defvalue = wxPySliderNameStr ;
17389 wxString *arg10 = (wxString *) &arg10_defvalue ;
17390 wxSlider *result = 0 ;
17391 void *argp1 = 0 ;
17392 int res1 = 0 ;
17393 int val2 ;
17394 int ecode2 = 0 ;
17395 int val3 ;
17396 int ecode3 = 0 ;
17397 int val4 ;
17398 int ecode4 = 0 ;
17399 int val5 ;
17400 int ecode5 = 0 ;
17401 wxPoint temp6 ;
17402 wxSize temp7 ;
17403 long val8 ;
17404 int ecode8 = 0 ;
17405 void *argp9 = 0 ;
17406 int res9 = 0 ;
17407 bool temp10 = false ;
17408 PyObject * obj0 = 0 ;
17409 PyObject * obj1 = 0 ;
17410 PyObject * obj2 = 0 ;
17411 PyObject * obj3 = 0 ;
17412 PyObject * obj4 = 0 ;
17413 PyObject * obj5 = 0 ;
17414 PyObject * obj6 = 0 ;
17415 PyObject * obj7 = 0 ;
17416 PyObject * obj8 = 0 ;
17417 PyObject * obj9 = 0 ;
17418 char * kwnames[] = {
17419 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17420 };
17421
17422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17424 if (!SWIG_IsOK(res1)) {
17425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17426 }
17427 arg1 = reinterpret_cast< wxWindow * >(argp1);
17428 if (obj1) {
17429 ecode2 = SWIG_AsVal_int(obj1, &val2);
17430 if (!SWIG_IsOK(ecode2)) {
17431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17432 }
17433 arg2 = static_cast< int >(val2);
17434 }
17435 if (obj2) {
17436 ecode3 = SWIG_AsVal_int(obj2, &val3);
17437 if (!SWIG_IsOK(ecode3)) {
17438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17439 }
17440 arg3 = static_cast< int >(val3);
17441 }
17442 if (obj3) {
17443 ecode4 = SWIG_AsVal_int(obj3, &val4);
17444 if (!SWIG_IsOK(ecode4)) {
17445 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17446 }
17447 arg4 = static_cast< int >(val4);
17448 }
17449 if (obj4) {
17450 ecode5 = SWIG_AsVal_int(obj4, &val5);
17451 if (!SWIG_IsOK(ecode5)) {
17452 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17453 }
17454 arg5 = static_cast< int >(val5);
17455 }
17456 if (obj5) {
17457 {
17458 arg6 = &temp6;
17459 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17460 }
17461 }
17462 if (obj6) {
17463 {
17464 arg7 = &temp7;
17465 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17466 }
17467 }
17468 if (obj7) {
17469 ecode8 = SWIG_AsVal_long(obj7, &val8);
17470 if (!SWIG_IsOK(ecode8)) {
17471 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17472 }
17473 arg8 = static_cast< long >(val8);
17474 }
17475 if (obj8) {
17476 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17477 if (!SWIG_IsOK(res9)) {
17478 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17479 }
17480 if (!argp9) {
17481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17482 }
17483 arg9 = reinterpret_cast< wxValidator * >(argp9);
17484 }
17485 if (obj9) {
17486 {
17487 arg10 = wxString_in_helper(obj9);
17488 if (arg10 == NULL) SWIG_fail;
17489 temp10 = true;
17490 }
17491 }
17492 {
17493 if (!wxPyCheckForApp()) SWIG_fail;
17494 PyThreadState* __tstate = wxPyBeginAllowThreads();
17495 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17496 wxPyEndAllowThreads(__tstate);
17497 if (PyErr_Occurred()) SWIG_fail;
17498 }
17499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17500 {
17501 if (temp10)
17502 delete arg10;
17503 }
17504 return resultobj;
17505 fail:
17506 {
17507 if (temp10)
17508 delete arg10;
17509 }
17510 return NULL;
17511 }
17512
17513
17514 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17515 PyObject *resultobj = 0;
17516 wxSlider *result = 0 ;
17517
17518 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17519 {
17520 if (!wxPyCheckForApp()) SWIG_fail;
17521 PyThreadState* __tstate = wxPyBeginAllowThreads();
17522 result = (wxSlider *)new wxSlider();
17523 wxPyEndAllowThreads(__tstate);
17524 if (PyErr_Occurred()) SWIG_fail;
17525 }
17526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17527 return resultobj;
17528 fail:
17529 return NULL;
17530 }
17531
17532
17533 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17534 PyObject *resultobj = 0;
17535 wxSlider *arg1 = (wxSlider *) 0 ;
17536 wxWindow *arg2 = (wxWindow *) 0 ;
17537 int arg3 = (int) -1 ;
17538 int arg4 = (int) 0 ;
17539 int arg5 = (int) 0 ;
17540 int arg6 = (int) 100 ;
17541 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17542 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17543 wxSize const &arg8_defvalue = wxDefaultSize ;
17544 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17545 long arg9 = (long) wxSL_HORIZONTAL ;
17546 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17547 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17548 wxString const &arg11_defvalue = wxPySliderNameStr ;
17549 wxString *arg11 = (wxString *) &arg11_defvalue ;
17550 bool result;
17551 void *argp1 = 0 ;
17552 int res1 = 0 ;
17553 void *argp2 = 0 ;
17554 int res2 = 0 ;
17555 int val3 ;
17556 int ecode3 = 0 ;
17557 int val4 ;
17558 int ecode4 = 0 ;
17559 int val5 ;
17560 int ecode5 = 0 ;
17561 int val6 ;
17562 int ecode6 = 0 ;
17563 wxPoint temp7 ;
17564 wxSize temp8 ;
17565 long val9 ;
17566 int ecode9 = 0 ;
17567 void *argp10 = 0 ;
17568 int res10 = 0 ;
17569 bool temp11 = false ;
17570 PyObject * obj0 = 0 ;
17571 PyObject * obj1 = 0 ;
17572 PyObject * obj2 = 0 ;
17573 PyObject * obj3 = 0 ;
17574 PyObject * obj4 = 0 ;
17575 PyObject * obj5 = 0 ;
17576 PyObject * obj6 = 0 ;
17577 PyObject * obj7 = 0 ;
17578 PyObject * obj8 = 0 ;
17579 PyObject * obj9 = 0 ;
17580 PyObject * obj10 = 0 ;
17581 char * kwnames[] = {
17582 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17583 };
17584
17585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17587 if (!SWIG_IsOK(res1)) {
17588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17589 }
17590 arg1 = reinterpret_cast< wxSlider * >(argp1);
17591 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17592 if (!SWIG_IsOK(res2)) {
17593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17594 }
17595 arg2 = reinterpret_cast< wxWindow * >(argp2);
17596 if (obj2) {
17597 ecode3 = SWIG_AsVal_int(obj2, &val3);
17598 if (!SWIG_IsOK(ecode3)) {
17599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17600 }
17601 arg3 = static_cast< int >(val3);
17602 }
17603 if (obj3) {
17604 ecode4 = SWIG_AsVal_int(obj3, &val4);
17605 if (!SWIG_IsOK(ecode4)) {
17606 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17607 }
17608 arg4 = static_cast< int >(val4);
17609 }
17610 if (obj4) {
17611 ecode5 = SWIG_AsVal_int(obj4, &val5);
17612 if (!SWIG_IsOK(ecode5)) {
17613 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17614 }
17615 arg5 = static_cast< int >(val5);
17616 }
17617 if (obj5) {
17618 ecode6 = SWIG_AsVal_int(obj5, &val6);
17619 if (!SWIG_IsOK(ecode6)) {
17620 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17621 }
17622 arg6 = static_cast< int >(val6);
17623 }
17624 if (obj6) {
17625 {
17626 arg7 = &temp7;
17627 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17628 }
17629 }
17630 if (obj7) {
17631 {
17632 arg8 = &temp8;
17633 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17634 }
17635 }
17636 if (obj8) {
17637 ecode9 = SWIG_AsVal_long(obj8, &val9);
17638 if (!SWIG_IsOK(ecode9)) {
17639 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17640 }
17641 arg9 = static_cast< long >(val9);
17642 }
17643 if (obj9) {
17644 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17645 if (!SWIG_IsOK(res10)) {
17646 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17647 }
17648 if (!argp10) {
17649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17650 }
17651 arg10 = reinterpret_cast< wxValidator * >(argp10);
17652 }
17653 if (obj10) {
17654 {
17655 arg11 = wxString_in_helper(obj10);
17656 if (arg11 == NULL) SWIG_fail;
17657 temp11 = true;
17658 }
17659 }
17660 {
17661 PyThreadState* __tstate = wxPyBeginAllowThreads();
17662 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17663 wxPyEndAllowThreads(__tstate);
17664 if (PyErr_Occurred()) SWIG_fail;
17665 }
17666 {
17667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17668 }
17669 {
17670 if (temp11)
17671 delete arg11;
17672 }
17673 return resultobj;
17674 fail:
17675 {
17676 if (temp11)
17677 delete arg11;
17678 }
17679 return NULL;
17680 }
17681
17682
17683 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17684 PyObject *resultobj = 0;
17685 wxSlider *arg1 = (wxSlider *) 0 ;
17686 int result;
17687 void *argp1 = 0 ;
17688 int res1 = 0 ;
17689 PyObject *swig_obj[1] ;
17690
17691 if (!args) SWIG_fail;
17692 swig_obj[0] = args;
17693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17694 if (!SWIG_IsOK(res1)) {
17695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17696 }
17697 arg1 = reinterpret_cast< wxSlider * >(argp1);
17698 {
17699 PyThreadState* __tstate = wxPyBeginAllowThreads();
17700 result = (int)((wxSlider const *)arg1)->GetValue();
17701 wxPyEndAllowThreads(__tstate);
17702 if (PyErr_Occurred()) SWIG_fail;
17703 }
17704 resultobj = SWIG_From_int(static_cast< int >(result));
17705 return resultobj;
17706 fail:
17707 return NULL;
17708 }
17709
17710
17711 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17712 PyObject *resultobj = 0;
17713 wxSlider *arg1 = (wxSlider *) 0 ;
17714 int arg2 ;
17715 void *argp1 = 0 ;
17716 int res1 = 0 ;
17717 int val2 ;
17718 int ecode2 = 0 ;
17719 PyObject * obj0 = 0 ;
17720 PyObject * obj1 = 0 ;
17721 char * kwnames[] = {
17722 (char *) "self",(char *) "value", NULL
17723 };
17724
17725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17727 if (!SWIG_IsOK(res1)) {
17728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17729 }
17730 arg1 = reinterpret_cast< wxSlider * >(argp1);
17731 ecode2 = SWIG_AsVal_int(obj1, &val2);
17732 if (!SWIG_IsOK(ecode2)) {
17733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17734 }
17735 arg2 = static_cast< int >(val2);
17736 {
17737 PyThreadState* __tstate = wxPyBeginAllowThreads();
17738 (arg1)->SetValue(arg2);
17739 wxPyEndAllowThreads(__tstate);
17740 if (PyErr_Occurred()) SWIG_fail;
17741 }
17742 resultobj = SWIG_Py_Void();
17743 return resultobj;
17744 fail:
17745 return NULL;
17746 }
17747
17748
17749 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17750 PyObject *resultobj = 0;
17751 wxSlider *arg1 = (wxSlider *) 0 ;
17752 int arg2 ;
17753 int arg3 ;
17754 void *argp1 = 0 ;
17755 int res1 = 0 ;
17756 int val2 ;
17757 int ecode2 = 0 ;
17758 int val3 ;
17759 int ecode3 = 0 ;
17760 PyObject * obj0 = 0 ;
17761 PyObject * obj1 = 0 ;
17762 PyObject * obj2 = 0 ;
17763 char * kwnames[] = {
17764 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17765 };
17766
17767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17769 if (!SWIG_IsOK(res1)) {
17770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17771 }
17772 arg1 = reinterpret_cast< wxSlider * >(argp1);
17773 ecode2 = SWIG_AsVal_int(obj1, &val2);
17774 if (!SWIG_IsOK(ecode2)) {
17775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17776 }
17777 arg2 = static_cast< int >(val2);
17778 ecode3 = SWIG_AsVal_int(obj2, &val3);
17779 if (!SWIG_IsOK(ecode3)) {
17780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17781 }
17782 arg3 = static_cast< int >(val3);
17783 {
17784 PyThreadState* __tstate = wxPyBeginAllowThreads();
17785 (arg1)->SetRange(arg2,arg3);
17786 wxPyEndAllowThreads(__tstate);
17787 if (PyErr_Occurred()) SWIG_fail;
17788 }
17789 resultobj = SWIG_Py_Void();
17790 return resultobj;
17791 fail:
17792 return NULL;
17793 }
17794
17795
17796 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17797 PyObject *resultobj = 0;
17798 wxSlider *arg1 = (wxSlider *) 0 ;
17799 int result;
17800 void *argp1 = 0 ;
17801 int res1 = 0 ;
17802 PyObject *swig_obj[1] ;
17803
17804 if (!args) SWIG_fail;
17805 swig_obj[0] = args;
17806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17807 if (!SWIG_IsOK(res1)) {
17808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17809 }
17810 arg1 = reinterpret_cast< wxSlider * >(argp1);
17811 {
17812 PyThreadState* __tstate = wxPyBeginAllowThreads();
17813 result = (int)((wxSlider const *)arg1)->GetMin();
17814 wxPyEndAllowThreads(__tstate);
17815 if (PyErr_Occurred()) SWIG_fail;
17816 }
17817 resultobj = SWIG_From_int(static_cast< int >(result));
17818 return resultobj;
17819 fail:
17820 return NULL;
17821 }
17822
17823
17824 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17825 PyObject *resultobj = 0;
17826 wxSlider *arg1 = (wxSlider *) 0 ;
17827 int result;
17828 void *argp1 = 0 ;
17829 int res1 = 0 ;
17830 PyObject *swig_obj[1] ;
17831
17832 if (!args) SWIG_fail;
17833 swig_obj[0] = args;
17834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17835 if (!SWIG_IsOK(res1)) {
17836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17837 }
17838 arg1 = reinterpret_cast< wxSlider * >(argp1);
17839 {
17840 PyThreadState* __tstate = wxPyBeginAllowThreads();
17841 result = (int)((wxSlider const *)arg1)->GetMax();
17842 wxPyEndAllowThreads(__tstate);
17843 if (PyErr_Occurred()) SWIG_fail;
17844 }
17845 resultobj = SWIG_From_int(static_cast< int >(result));
17846 return resultobj;
17847 fail:
17848 return NULL;
17849 }
17850
17851
17852 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17853 PyObject *resultobj = 0;
17854 wxSlider *arg1 = (wxSlider *) 0 ;
17855 int arg2 ;
17856 void *argp1 = 0 ;
17857 int res1 = 0 ;
17858 int val2 ;
17859 int ecode2 = 0 ;
17860 PyObject * obj0 = 0 ;
17861 PyObject * obj1 = 0 ;
17862 char * kwnames[] = {
17863 (char *) "self",(char *) "minValue", NULL
17864 };
17865
17866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17868 if (!SWIG_IsOK(res1)) {
17869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17870 }
17871 arg1 = reinterpret_cast< wxSlider * >(argp1);
17872 ecode2 = SWIG_AsVal_int(obj1, &val2);
17873 if (!SWIG_IsOK(ecode2)) {
17874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17875 }
17876 arg2 = static_cast< int >(val2);
17877 {
17878 PyThreadState* __tstate = wxPyBeginAllowThreads();
17879 (arg1)->SetMin(arg2);
17880 wxPyEndAllowThreads(__tstate);
17881 if (PyErr_Occurred()) SWIG_fail;
17882 }
17883 resultobj = SWIG_Py_Void();
17884 return resultobj;
17885 fail:
17886 return NULL;
17887 }
17888
17889
17890 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17891 PyObject *resultobj = 0;
17892 wxSlider *arg1 = (wxSlider *) 0 ;
17893 int arg2 ;
17894 void *argp1 = 0 ;
17895 int res1 = 0 ;
17896 int val2 ;
17897 int ecode2 = 0 ;
17898 PyObject * obj0 = 0 ;
17899 PyObject * obj1 = 0 ;
17900 char * kwnames[] = {
17901 (char *) "self",(char *) "maxValue", NULL
17902 };
17903
17904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17906 if (!SWIG_IsOK(res1)) {
17907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17908 }
17909 arg1 = reinterpret_cast< wxSlider * >(argp1);
17910 ecode2 = SWIG_AsVal_int(obj1, &val2);
17911 if (!SWIG_IsOK(ecode2)) {
17912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17913 }
17914 arg2 = static_cast< int >(val2);
17915 {
17916 PyThreadState* __tstate = wxPyBeginAllowThreads();
17917 (arg1)->SetMax(arg2);
17918 wxPyEndAllowThreads(__tstate);
17919 if (PyErr_Occurred()) SWIG_fail;
17920 }
17921 resultobj = SWIG_Py_Void();
17922 return resultobj;
17923 fail:
17924 return NULL;
17925 }
17926
17927
17928 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17929 PyObject *resultobj = 0;
17930 wxSlider *arg1 = (wxSlider *) 0 ;
17931 int arg2 ;
17932 void *argp1 = 0 ;
17933 int res1 = 0 ;
17934 int val2 ;
17935 int ecode2 = 0 ;
17936 PyObject * obj0 = 0 ;
17937 PyObject * obj1 = 0 ;
17938 char * kwnames[] = {
17939 (char *) "self",(char *) "lineSize", NULL
17940 };
17941
17942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
17943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17944 if (!SWIG_IsOK(res1)) {
17945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17946 }
17947 arg1 = reinterpret_cast< wxSlider * >(argp1);
17948 ecode2 = SWIG_AsVal_int(obj1, &val2);
17949 if (!SWIG_IsOK(ecode2)) {
17950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
17951 }
17952 arg2 = static_cast< int >(val2);
17953 {
17954 PyThreadState* __tstate = wxPyBeginAllowThreads();
17955 (arg1)->SetLineSize(arg2);
17956 wxPyEndAllowThreads(__tstate);
17957 if (PyErr_Occurred()) SWIG_fail;
17958 }
17959 resultobj = SWIG_Py_Void();
17960 return resultobj;
17961 fail:
17962 return NULL;
17963 }
17964
17965
17966 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17967 PyObject *resultobj = 0;
17968 wxSlider *arg1 = (wxSlider *) 0 ;
17969 int arg2 ;
17970 void *argp1 = 0 ;
17971 int res1 = 0 ;
17972 int val2 ;
17973 int ecode2 = 0 ;
17974 PyObject * obj0 = 0 ;
17975 PyObject * obj1 = 0 ;
17976 char * kwnames[] = {
17977 (char *) "self",(char *) "pageSize", NULL
17978 };
17979
17980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
17981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17982 if (!SWIG_IsOK(res1)) {
17983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17984 }
17985 arg1 = reinterpret_cast< wxSlider * >(argp1);
17986 ecode2 = SWIG_AsVal_int(obj1, &val2);
17987 if (!SWIG_IsOK(ecode2)) {
17988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
17989 }
17990 arg2 = static_cast< int >(val2);
17991 {
17992 PyThreadState* __tstate = wxPyBeginAllowThreads();
17993 (arg1)->SetPageSize(arg2);
17994 wxPyEndAllowThreads(__tstate);
17995 if (PyErr_Occurred()) SWIG_fail;
17996 }
17997 resultobj = SWIG_Py_Void();
17998 return resultobj;
17999 fail:
18000 return NULL;
18001 }
18002
18003
18004 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18005 PyObject *resultobj = 0;
18006 wxSlider *arg1 = (wxSlider *) 0 ;
18007 int result;
18008 void *argp1 = 0 ;
18009 int res1 = 0 ;
18010 PyObject *swig_obj[1] ;
18011
18012 if (!args) SWIG_fail;
18013 swig_obj[0] = args;
18014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18015 if (!SWIG_IsOK(res1)) {
18016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18017 }
18018 arg1 = reinterpret_cast< wxSlider * >(argp1);
18019 {
18020 PyThreadState* __tstate = wxPyBeginAllowThreads();
18021 result = (int)((wxSlider const *)arg1)->GetLineSize();
18022 wxPyEndAllowThreads(__tstate);
18023 if (PyErr_Occurred()) SWIG_fail;
18024 }
18025 resultobj = SWIG_From_int(static_cast< int >(result));
18026 return resultobj;
18027 fail:
18028 return NULL;
18029 }
18030
18031
18032 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18033 PyObject *resultobj = 0;
18034 wxSlider *arg1 = (wxSlider *) 0 ;
18035 int result;
18036 void *argp1 = 0 ;
18037 int res1 = 0 ;
18038 PyObject *swig_obj[1] ;
18039
18040 if (!args) SWIG_fail;
18041 swig_obj[0] = args;
18042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18043 if (!SWIG_IsOK(res1)) {
18044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18045 }
18046 arg1 = reinterpret_cast< wxSlider * >(argp1);
18047 {
18048 PyThreadState* __tstate = wxPyBeginAllowThreads();
18049 result = (int)((wxSlider const *)arg1)->GetPageSize();
18050 wxPyEndAllowThreads(__tstate);
18051 if (PyErr_Occurred()) SWIG_fail;
18052 }
18053 resultobj = SWIG_From_int(static_cast< int >(result));
18054 return resultobj;
18055 fail:
18056 return NULL;
18057 }
18058
18059
18060 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18061 PyObject *resultobj = 0;
18062 wxSlider *arg1 = (wxSlider *) 0 ;
18063 int arg2 ;
18064 void *argp1 = 0 ;
18065 int res1 = 0 ;
18066 int val2 ;
18067 int ecode2 = 0 ;
18068 PyObject * obj0 = 0 ;
18069 PyObject * obj1 = 0 ;
18070 char * kwnames[] = {
18071 (char *) "self",(char *) "lenPixels", NULL
18072 };
18073
18074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18076 if (!SWIG_IsOK(res1)) {
18077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18078 }
18079 arg1 = reinterpret_cast< wxSlider * >(argp1);
18080 ecode2 = SWIG_AsVal_int(obj1, &val2);
18081 if (!SWIG_IsOK(ecode2)) {
18082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18083 }
18084 arg2 = static_cast< int >(val2);
18085 {
18086 PyThreadState* __tstate = wxPyBeginAllowThreads();
18087 (arg1)->SetThumbLength(arg2);
18088 wxPyEndAllowThreads(__tstate);
18089 if (PyErr_Occurred()) SWIG_fail;
18090 }
18091 resultobj = SWIG_Py_Void();
18092 return resultobj;
18093 fail:
18094 return NULL;
18095 }
18096
18097
18098 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18099 PyObject *resultobj = 0;
18100 wxSlider *arg1 = (wxSlider *) 0 ;
18101 int result;
18102 void *argp1 = 0 ;
18103 int res1 = 0 ;
18104 PyObject *swig_obj[1] ;
18105
18106 if (!args) SWIG_fail;
18107 swig_obj[0] = args;
18108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18109 if (!SWIG_IsOK(res1)) {
18110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18111 }
18112 arg1 = reinterpret_cast< wxSlider * >(argp1);
18113 {
18114 PyThreadState* __tstate = wxPyBeginAllowThreads();
18115 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18116 wxPyEndAllowThreads(__tstate);
18117 if (PyErr_Occurred()) SWIG_fail;
18118 }
18119 resultobj = SWIG_From_int(static_cast< int >(result));
18120 return resultobj;
18121 fail:
18122 return NULL;
18123 }
18124
18125
18126 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18127 PyObject *resultobj = 0;
18128 wxSlider *arg1 = (wxSlider *) 0 ;
18129 int arg2 ;
18130 int arg3 = (int) 1 ;
18131 void *argp1 = 0 ;
18132 int res1 = 0 ;
18133 int val2 ;
18134 int ecode2 = 0 ;
18135 int val3 ;
18136 int ecode3 = 0 ;
18137 PyObject * obj0 = 0 ;
18138 PyObject * obj1 = 0 ;
18139 PyObject * obj2 = 0 ;
18140 char * kwnames[] = {
18141 (char *) "self",(char *) "n",(char *) "pos", NULL
18142 };
18143
18144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18146 if (!SWIG_IsOK(res1)) {
18147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18148 }
18149 arg1 = reinterpret_cast< wxSlider * >(argp1);
18150 ecode2 = SWIG_AsVal_int(obj1, &val2);
18151 if (!SWIG_IsOK(ecode2)) {
18152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18153 }
18154 arg2 = static_cast< int >(val2);
18155 if (obj2) {
18156 ecode3 = SWIG_AsVal_int(obj2, &val3);
18157 if (!SWIG_IsOK(ecode3)) {
18158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18159 }
18160 arg3 = static_cast< int >(val3);
18161 }
18162 {
18163 PyThreadState* __tstate = wxPyBeginAllowThreads();
18164 (arg1)->SetTickFreq(arg2,arg3);
18165 wxPyEndAllowThreads(__tstate);
18166 if (PyErr_Occurred()) SWIG_fail;
18167 }
18168 resultobj = SWIG_Py_Void();
18169 return resultobj;
18170 fail:
18171 return NULL;
18172 }
18173
18174
18175 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18176 PyObject *resultobj = 0;
18177 wxSlider *arg1 = (wxSlider *) 0 ;
18178 int result;
18179 void *argp1 = 0 ;
18180 int res1 = 0 ;
18181 PyObject *swig_obj[1] ;
18182
18183 if (!args) SWIG_fail;
18184 swig_obj[0] = args;
18185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18186 if (!SWIG_IsOK(res1)) {
18187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18188 }
18189 arg1 = reinterpret_cast< wxSlider * >(argp1);
18190 {
18191 PyThreadState* __tstate = wxPyBeginAllowThreads();
18192 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18193 wxPyEndAllowThreads(__tstate);
18194 if (PyErr_Occurred()) SWIG_fail;
18195 }
18196 resultobj = SWIG_From_int(static_cast< int >(result));
18197 return resultobj;
18198 fail:
18199 return NULL;
18200 }
18201
18202
18203 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18204 PyObject *resultobj = 0;
18205 wxSlider *arg1 = (wxSlider *) 0 ;
18206 void *argp1 = 0 ;
18207 int res1 = 0 ;
18208 PyObject *swig_obj[1] ;
18209
18210 if (!args) SWIG_fail;
18211 swig_obj[0] = args;
18212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18213 if (!SWIG_IsOK(res1)) {
18214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18215 }
18216 arg1 = reinterpret_cast< wxSlider * >(argp1);
18217 {
18218 PyThreadState* __tstate = wxPyBeginAllowThreads();
18219 (arg1)->ClearTicks();
18220 wxPyEndAllowThreads(__tstate);
18221 if (PyErr_Occurred()) SWIG_fail;
18222 }
18223 resultobj = SWIG_Py_Void();
18224 return resultobj;
18225 fail:
18226 return NULL;
18227 }
18228
18229
18230 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18231 PyObject *resultobj = 0;
18232 wxSlider *arg1 = (wxSlider *) 0 ;
18233 int arg2 ;
18234 void *argp1 = 0 ;
18235 int res1 = 0 ;
18236 int val2 ;
18237 int ecode2 = 0 ;
18238 PyObject * obj0 = 0 ;
18239 PyObject * obj1 = 0 ;
18240 char * kwnames[] = {
18241 (char *) "self",(char *) "tickPos", NULL
18242 };
18243
18244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18246 if (!SWIG_IsOK(res1)) {
18247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18248 }
18249 arg1 = reinterpret_cast< wxSlider * >(argp1);
18250 ecode2 = SWIG_AsVal_int(obj1, &val2);
18251 if (!SWIG_IsOK(ecode2)) {
18252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18253 }
18254 arg2 = static_cast< int >(val2);
18255 {
18256 PyThreadState* __tstate = wxPyBeginAllowThreads();
18257 (arg1)->SetTick(arg2);
18258 wxPyEndAllowThreads(__tstate);
18259 if (PyErr_Occurred()) SWIG_fail;
18260 }
18261 resultobj = SWIG_Py_Void();
18262 return resultobj;
18263 fail:
18264 return NULL;
18265 }
18266
18267
18268 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18269 PyObject *resultobj = 0;
18270 wxSlider *arg1 = (wxSlider *) 0 ;
18271 void *argp1 = 0 ;
18272 int res1 = 0 ;
18273 PyObject *swig_obj[1] ;
18274
18275 if (!args) SWIG_fail;
18276 swig_obj[0] = args;
18277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18278 if (!SWIG_IsOK(res1)) {
18279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18280 }
18281 arg1 = reinterpret_cast< wxSlider * >(argp1);
18282 {
18283 PyThreadState* __tstate = wxPyBeginAllowThreads();
18284 (arg1)->ClearSel();
18285 wxPyEndAllowThreads(__tstate);
18286 if (PyErr_Occurred()) SWIG_fail;
18287 }
18288 resultobj = SWIG_Py_Void();
18289 return resultobj;
18290 fail:
18291 return NULL;
18292 }
18293
18294
18295 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18296 PyObject *resultobj = 0;
18297 wxSlider *arg1 = (wxSlider *) 0 ;
18298 int result;
18299 void *argp1 = 0 ;
18300 int res1 = 0 ;
18301 PyObject *swig_obj[1] ;
18302
18303 if (!args) SWIG_fail;
18304 swig_obj[0] = args;
18305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18306 if (!SWIG_IsOK(res1)) {
18307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18308 }
18309 arg1 = reinterpret_cast< wxSlider * >(argp1);
18310 {
18311 PyThreadState* __tstate = wxPyBeginAllowThreads();
18312 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18313 wxPyEndAllowThreads(__tstate);
18314 if (PyErr_Occurred()) SWIG_fail;
18315 }
18316 resultobj = SWIG_From_int(static_cast< int >(result));
18317 return resultobj;
18318 fail:
18319 return NULL;
18320 }
18321
18322
18323 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18324 PyObject *resultobj = 0;
18325 wxSlider *arg1 = (wxSlider *) 0 ;
18326 int result;
18327 void *argp1 = 0 ;
18328 int res1 = 0 ;
18329 PyObject *swig_obj[1] ;
18330
18331 if (!args) SWIG_fail;
18332 swig_obj[0] = args;
18333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18334 if (!SWIG_IsOK(res1)) {
18335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18336 }
18337 arg1 = reinterpret_cast< wxSlider * >(argp1);
18338 {
18339 PyThreadState* __tstate = wxPyBeginAllowThreads();
18340 result = (int)((wxSlider const *)arg1)->GetSelStart();
18341 wxPyEndAllowThreads(__tstate);
18342 if (PyErr_Occurred()) SWIG_fail;
18343 }
18344 resultobj = SWIG_From_int(static_cast< int >(result));
18345 return resultobj;
18346 fail:
18347 return NULL;
18348 }
18349
18350
18351 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18352 PyObject *resultobj = 0;
18353 wxSlider *arg1 = (wxSlider *) 0 ;
18354 int arg2 ;
18355 int arg3 ;
18356 void *argp1 = 0 ;
18357 int res1 = 0 ;
18358 int val2 ;
18359 int ecode2 = 0 ;
18360 int val3 ;
18361 int ecode3 = 0 ;
18362 PyObject * obj0 = 0 ;
18363 PyObject * obj1 = 0 ;
18364 PyObject * obj2 = 0 ;
18365 char * kwnames[] = {
18366 (char *) "self",(char *) "min",(char *) "max", NULL
18367 };
18368
18369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18371 if (!SWIG_IsOK(res1)) {
18372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18373 }
18374 arg1 = reinterpret_cast< wxSlider * >(argp1);
18375 ecode2 = SWIG_AsVal_int(obj1, &val2);
18376 if (!SWIG_IsOK(ecode2)) {
18377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18378 }
18379 arg2 = static_cast< int >(val2);
18380 ecode3 = SWIG_AsVal_int(obj2, &val3);
18381 if (!SWIG_IsOK(ecode3)) {
18382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18383 }
18384 arg3 = static_cast< int >(val3);
18385 {
18386 PyThreadState* __tstate = wxPyBeginAllowThreads();
18387 (arg1)->SetSelection(arg2,arg3);
18388 wxPyEndAllowThreads(__tstate);
18389 if (PyErr_Occurred()) SWIG_fail;
18390 }
18391 resultobj = SWIG_Py_Void();
18392 return resultobj;
18393 fail:
18394 return NULL;
18395 }
18396
18397
18398 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18399 PyObject *resultobj = 0;
18400 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18401 SwigValueWrapper<wxVisualAttributes > result;
18402 int val1 ;
18403 int ecode1 = 0 ;
18404 PyObject * obj0 = 0 ;
18405 char * kwnames[] = {
18406 (char *) "variant", NULL
18407 };
18408
18409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18410 if (obj0) {
18411 ecode1 = SWIG_AsVal_int(obj0, &val1);
18412 if (!SWIG_IsOK(ecode1)) {
18413 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18414 }
18415 arg1 = static_cast< wxWindowVariant >(val1);
18416 }
18417 {
18418 if (!wxPyCheckForApp()) SWIG_fail;
18419 PyThreadState* __tstate = wxPyBeginAllowThreads();
18420 result = wxSlider::GetClassDefaultAttributes(arg1);
18421 wxPyEndAllowThreads(__tstate);
18422 if (PyErr_Occurred()) SWIG_fail;
18423 }
18424 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18425 return resultobj;
18426 fail:
18427 return NULL;
18428 }
18429
18430
18431 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18432 PyObject *obj;
18433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18434 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18435 return SWIG_Py_Void();
18436 }
18437
18438 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18439 return SWIG_Python_InitShadowInstance(args);
18440 }
18441
18442 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18443 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18444 return 1;
18445 }
18446
18447
18448 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18449 PyObject *pyobj = 0;
18450
18451 {
18452 #if wxUSE_UNICODE
18453 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18454 #else
18455 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18456 #endif
18457 }
18458 return pyobj;
18459 }
18460
18461
18462 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18463 PyObject *resultobj = 0;
18464 wxWindow *arg1 = (wxWindow *) 0 ;
18465 int arg2 = (int) -1 ;
18466 wxString const &arg3_defvalue = wxPyEmptyString ;
18467 wxString *arg3 = (wxString *) &arg3_defvalue ;
18468 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18469 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18470 wxSize const &arg5_defvalue = wxDefaultSize ;
18471 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18472 long arg6 = (long) 0 ;
18473 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18474 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18475 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18476 wxString *arg8 = (wxString *) &arg8_defvalue ;
18477 wxToggleButton *result = 0 ;
18478 void *argp1 = 0 ;
18479 int res1 = 0 ;
18480 int val2 ;
18481 int ecode2 = 0 ;
18482 bool temp3 = false ;
18483 wxPoint temp4 ;
18484 wxSize temp5 ;
18485 long val6 ;
18486 int ecode6 = 0 ;
18487 void *argp7 = 0 ;
18488 int res7 = 0 ;
18489 bool temp8 = false ;
18490 PyObject * obj0 = 0 ;
18491 PyObject * obj1 = 0 ;
18492 PyObject * obj2 = 0 ;
18493 PyObject * obj3 = 0 ;
18494 PyObject * obj4 = 0 ;
18495 PyObject * obj5 = 0 ;
18496 PyObject * obj6 = 0 ;
18497 PyObject * obj7 = 0 ;
18498 char * kwnames[] = {
18499 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18500 };
18501
18502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18504 if (!SWIG_IsOK(res1)) {
18505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18506 }
18507 arg1 = reinterpret_cast< wxWindow * >(argp1);
18508 if (obj1) {
18509 ecode2 = SWIG_AsVal_int(obj1, &val2);
18510 if (!SWIG_IsOK(ecode2)) {
18511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18512 }
18513 arg2 = static_cast< int >(val2);
18514 }
18515 if (obj2) {
18516 {
18517 arg3 = wxString_in_helper(obj2);
18518 if (arg3 == NULL) SWIG_fail;
18519 temp3 = true;
18520 }
18521 }
18522 if (obj3) {
18523 {
18524 arg4 = &temp4;
18525 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18526 }
18527 }
18528 if (obj4) {
18529 {
18530 arg5 = &temp5;
18531 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18532 }
18533 }
18534 if (obj5) {
18535 ecode6 = SWIG_AsVal_long(obj5, &val6);
18536 if (!SWIG_IsOK(ecode6)) {
18537 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18538 }
18539 arg6 = static_cast< long >(val6);
18540 }
18541 if (obj6) {
18542 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18543 if (!SWIG_IsOK(res7)) {
18544 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18545 }
18546 if (!argp7) {
18547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18548 }
18549 arg7 = reinterpret_cast< wxValidator * >(argp7);
18550 }
18551 if (obj7) {
18552 {
18553 arg8 = wxString_in_helper(obj7);
18554 if (arg8 == NULL) SWIG_fail;
18555 temp8 = true;
18556 }
18557 }
18558 {
18559 if (!wxPyCheckForApp()) SWIG_fail;
18560 PyThreadState* __tstate = wxPyBeginAllowThreads();
18561 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18562 wxPyEndAllowThreads(__tstate);
18563 if (PyErr_Occurred()) SWIG_fail;
18564 }
18565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18566 {
18567 if (temp3)
18568 delete arg3;
18569 }
18570 {
18571 if (temp8)
18572 delete arg8;
18573 }
18574 return resultobj;
18575 fail:
18576 {
18577 if (temp3)
18578 delete arg3;
18579 }
18580 {
18581 if (temp8)
18582 delete arg8;
18583 }
18584 return NULL;
18585 }
18586
18587
18588 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18589 PyObject *resultobj = 0;
18590 wxToggleButton *result = 0 ;
18591
18592 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18593 {
18594 if (!wxPyCheckForApp()) SWIG_fail;
18595 PyThreadState* __tstate = wxPyBeginAllowThreads();
18596 result = (wxToggleButton *)new wxToggleButton();
18597 wxPyEndAllowThreads(__tstate);
18598 if (PyErr_Occurred()) SWIG_fail;
18599 }
18600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18601 return resultobj;
18602 fail:
18603 return NULL;
18604 }
18605
18606
18607 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18608 PyObject *resultobj = 0;
18609 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18610 wxWindow *arg2 = (wxWindow *) 0 ;
18611 int arg3 = (int) -1 ;
18612 wxString const &arg4_defvalue = wxPyEmptyString ;
18613 wxString *arg4 = (wxString *) &arg4_defvalue ;
18614 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18615 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18616 wxSize const &arg6_defvalue = wxDefaultSize ;
18617 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18618 long arg7 = (long) 0 ;
18619 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18620 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18621 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18622 wxString *arg9 = (wxString *) &arg9_defvalue ;
18623 bool result;
18624 void *argp1 = 0 ;
18625 int res1 = 0 ;
18626 void *argp2 = 0 ;
18627 int res2 = 0 ;
18628 int val3 ;
18629 int ecode3 = 0 ;
18630 bool temp4 = false ;
18631 wxPoint temp5 ;
18632 wxSize temp6 ;
18633 long val7 ;
18634 int ecode7 = 0 ;
18635 void *argp8 = 0 ;
18636 int res8 = 0 ;
18637 bool temp9 = false ;
18638 PyObject * obj0 = 0 ;
18639 PyObject * obj1 = 0 ;
18640 PyObject * obj2 = 0 ;
18641 PyObject * obj3 = 0 ;
18642 PyObject * obj4 = 0 ;
18643 PyObject * obj5 = 0 ;
18644 PyObject * obj6 = 0 ;
18645 PyObject * obj7 = 0 ;
18646 PyObject * obj8 = 0 ;
18647 char * kwnames[] = {
18648 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18649 };
18650
18651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18653 if (!SWIG_IsOK(res1)) {
18654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18655 }
18656 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18657 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18658 if (!SWIG_IsOK(res2)) {
18659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18660 }
18661 arg2 = reinterpret_cast< wxWindow * >(argp2);
18662 if (obj2) {
18663 ecode3 = SWIG_AsVal_int(obj2, &val3);
18664 if (!SWIG_IsOK(ecode3)) {
18665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18666 }
18667 arg3 = static_cast< int >(val3);
18668 }
18669 if (obj3) {
18670 {
18671 arg4 = wxString_in_helper(obj3);
18672 if (arg4 == NULL) SWIG_fail;
18673 temp4 = true;
18674 }
18675 }
18676 if (obj4) {
18677 {
18678 arg5 = &temp5;
18679 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18680 }
18681 }
18682 if (obj5) {
18683 {
18684 arg6 = &temp6;
18685 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18686 }
18687 }
18688 if (obj6) {
18689 ecode7 = SWIG_AsVal_long(obj6, &val7);
18690 if (!SWIG_IsOK(ecode7)) {
18691 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18692 }
18693 arg7 = static_cast< long >(val7);
18694 }
18695 if (obj7) {
18696 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18697 if (!SWIG_IsOK(res8)) {
18698 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18699 }
18700 if (!argp8) {
18701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18702 }
18703 arg8 = reinterpret_cast< wxValidator * >(argp8);
18704 }
18705 if (obj8) {
18706 {
18707 arg9 = wxString_in_helper(obj8);
18708 if (arg9 == NULL) SWIG_fail;
18709 temp9 = true;
18710 }
18711 }
18712 {
18713 PyThreadState* __tstate = wxPyBeginAllowThreads();
18714 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18715 wxPyEndAllowThreads(__tstate);
18716 if (PyErr_Occurred()) SWIG_fail;
18717 }
18718 {
18719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18720 }
18721 {
18722 if (temp4)
18723 delete arg4;
18724 }
18725 {
18726 if (temp9)
18727 delete arg9;
18728 }
18729 return resultobj;
18730 fail:
18731 {
18732 if (temp4)
18733 delete arg4;
18734 }
18735 {
18736 if (temp9)
18737 delete arg9;
18738 }
18739 return NULL;
18740 }
18741
18742
18743 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18744 PyObject *resultobj = 0;
18745 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18746 bool arg2 ;
18747 void *argp1 = 0 ;
18748 int res1 = 0 ;
18749 bool val2 ;
18750 int ecode2 = 0 ;
18751 PyObject * obj0 = 0 ;
18752 PyObject * obj1 = 0 ;
18753 char * kwnames[] = {
18754 (char *) "self",(char *) "value", NULL
18755 };
18756
18757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18759 if (!SWIG_IsOK(res1)) {
18760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18761 }
18762 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18763 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18764 if (!SWIG_IsOK(ecode2)) {
18765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18766 }
18767 arg2 = static_cast< bool >(val2);
18768 {
18769 PyThreadState* __tstate = wxPyBeginAllowThreads();
18770 (arg1)->SetValue(arg2);
18771 wxPyEndAllowThreads(__tstate);
18772 if (PyErr_Occurred()) SWIG_fail;
18773 }
18774 resultobj = SWIG_Py_Void();
18775 return resultobj;
18776 fail:
18777 return NULL;
18778 }
18779
18780
18781 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18782 PyObject *resultobj = 0;
18783 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18784 bool result;
18785 void *argp1 = 0 ;
18786 int res1 = 0 ;
18787 PyObject *swig_obj[1] ;
18788
18789 if (!args) SWIG_fail;
18790 swig_obj[0] = args;
18791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18792 if (!SWIG_IsOK(res1)) {
18793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18794 }
18795 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18796 {
18797 PyThreadState* __tstate = wxPyBeginAllowThreads();
18798 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18799 wxPyEndAllowThreads(__tstate);
18800 if (PyErr_Occurred()) SWIG_fail;
18801 }
18802 {
18803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18804 }
18805 return resultobj;
18806 fail:
18807 return NULL;
18808 }
18809
18810
18811 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18812 PyObject *resultobj = 0;
18813 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18814 SwigValueWrapper<wxVisualAttributes > result;
18815 int val1 ;
18816 int ecode1 = 0 ;
18817 PyObject * obj0 = 0 ;
18818 char * kwnames[] = {
18819 (char *) "variant", NULL
18820 };
18821
18822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18823 if (obj0) {
18824 ecode1 = SWIG_AsVal_int(obj0, &val1);
18825 if (!SWIG_IsOK(ecode1)) {
18826 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18827 }
18828 arg1 = static_cast< wxWindowVariant >(val1);
18829 }
18830 {
18831 if (!wxPyCheckForApp()) SWIG_fail;
18832 PyThreadState* __tstate = wxPyBeginAllowThreads();
18833 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18834 wxPyEndAllowThreads(__tstate);
18835 if (PyErr_Occurred()) SWIG_fail;
18836 }
18837 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18838 return resultobj;
18839 fail:
18840 return NULL;
18841 }
18842
18843
18844 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18845 PyObject *obj;
18846 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18847 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18848 return SWIG_Py_Void();
18849 }
18850
18851 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18852 return SWIG_Python_InitShadowInstance(args);
18853 }
18854
18855 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18856 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18857 return 1;
18858 }
18859
18860
18861 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18862 PyObject *pyobj = 0;
18863
18864 {
18865 #if wxUSE_UNICODE
18866 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18867 #else
18868 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18869 #endif
18870 }
18871 return pyobj;
18872 }
18873
18874
18875 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18876 PyObject *resultobj = 0;
18877 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18878 size_t result;
18879 void *argp1 = 0 ;
18880 int res1 = 0 ;
18881 PyObject *swig_obj[1] ;
18882
18883 if (!args) SWIG_fail;
18884 swig_obj[0] = args;
18885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18886 if (!SWIG_IsOK(res1)) {
18887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18888 }
18889 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18890 {
18891 PyThreadState* __tstate = wxPyBeginAllowThreads();
18892 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18893 wxPyEndAllowThreads(__tstate);
18894 if (PyErr_Occurred()) SWIG_fail;
18895 }
18896 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18897 return resultobj;
18898 fail:
18899 return NULL;
18900 }
18901
18902
18903 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18904 PyObject *resultobj = 0;
18905 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18906 size_t arg2 ;
18907 wxWindow *result = 0 ;
18908 void *argp1 = 0 ;
18909 int res1 = 0 ;
18910 size_t val2 ;
18911 int ecode2 = 0 ;
18912 PyObject * obj0 = 0 ;
18913 PyObject * obj1 = 0 ;
18914 char * kwnames[] = {
18915 (char *) "self",(char *) "n", NULL
18916 };
18917
18918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18920 if (!SWIG_IsOK(res1)) {
18921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18922 }
18923 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18924 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18925 if (!SWIG_IsOK(ecode2)) {
18926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18927 }
18928 arg2 = static_cast< size_t >(val2);
18929 {
18930 PyThreadState* __tstate = wxPyBeginAllowThreads();
18931 result = (wxWindow *)(arg1)->GetPage(arg2);
18932 wxPyEndAllowThreads(__tstate);
18933 if (PyErr_Occurred()) SWIG_fail;
18934 }
18935 {
18936 resultobj = wxPyMake_wxObject(result, 0);
18937 }
18938 return resultobj;
18939 fail:
18940 return NULL;
18941 }
18942
18943
18944 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18945 PyObject *resultobj = 0;
18946 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18947 wxWindow *result = 0 ;
18948 void *argp1 = 0 ;
18949 int res1 = 0 ;
18950 PyObject *swig_obj[1] ;
18951
18952 if (!args) SWIG_fail;
18953 swig_obj[0] = args;
18954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18955 if (!SWIG_IsOK(res1)) {
18956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18957 }
18958 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18959 {
18960 PyThreadState* __tstate = wxPyBeginAllowThreads();
18961 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
18962 wxPyEndAllowThreads(__tstate);
18963 if (PyErr_Occurred()) SWIG_fail;
18964 }
18965 {
18966 resultobj = wxPyMake_wxObject(result, 0);
18967 }
18968 return resultobj;
18969 fail:
18970 return NULL;
18971 }
18972
18973
18974 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18975 PyObject *resultobj = 0;
18976 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18977 int result;
18978 void *argp1 = 0 ;
18979 int res1 = 0 ;
18980 PyObject *swig_obj[1] ;
18981
18982 if (!args) SWIG_fail;
18983 swig_obj[0] = args;
18984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18985 if (!SWIG_IsOK(res1)) {
18986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18987 }
18988 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18989 {
18990 PyThreadState* __tstate = wxPyBeginAllowThreads();
18991 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
18992 wxPyEndAllowThreads(__tstate);
18993 if (PyErr_Occurred()) SWIG_fail;
18994 }
18995 resultobj = SWIG_From_int(static_cast< int >(result));
18996 return resultobj;
18997 fail:
18998 return NULL;
18999 }
19000
19001
19002 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19003 PyObject *resultobj = 0;
19004 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19005 size_t arg2 ;
19006 wxString *arg3 = 0 ;
19007 bool result;
19008 void *argp1 = 0 ;
19009 int res1 = 0 ;
19010 size_t val2 ;
19011 int ecode2 = 0 ;
19012 bool temp3 = false ;
19013 PyObject * obj0 = 0 ;
19014 PyObject * obj1 = 0 ;
19015 PyObject * obj2 = 0 ;
19016 char * kwnames[] = {
19017 (char *) "self",(char *) "n",(char *) "strText", NULL
19018 };
19019
19020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19022 if (!SWIG_IsOK(res1)) {
19023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19024 }
19025 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19026 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19027 if (!SWIG_IsOK(ecode2)) {
19028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19029 }
19030 arg2 = static_cast< size_t >(val2);
19031 {
19032 arg3 = wxString_in_helper(obj2);
19033 if (arg3 == NULL) SWIG_fail;
19034 temp3 = true;
19035 }
19036 {
19037 PyThreadState* __tstate = wxPyBeginAllowThreads();
19038 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19039 wxPyEndAllowThreads(__tstate);
19040 if (PyErr_Occurred()) SWIG_fail;
19041 }
19042 {
19043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19044 }
19045 {
19046 if (temp3)
19047 delete arg3;
19048 }
19049 return resultobj;
19050 fail:
19051 {
19052 if (temp3)
19053 delete arg3;
19054 }
19055 return NULL;
19056 }
19057
19058
19059 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19060 PyObject *resultobj = 0;
19061 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19062 size_t arg2 ;
19063 wxString result;
19064 void *argp1 = 0 ;
19065 int res1 = 0 ;
19066 size_t val2 ;
19067 int ecode2 = 0 ;
19068 PyObject * obj0 = 0 ;
19069 PyObject * obj1 = 0 ;
19070 char * kwnames[] = {
19071 (char *) "self",(char *) "n", NULL
19072 };
19073
19074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19076 if (!SWIG_IsOK(res1)) {
19077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19078 }
19079 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19080 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19081 if (!SWIG_IsOK(ecode2)) {
19082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19083 }
19084 arg2 = static_cast< size_t >(val2);
19085 {
19086 PyThreadState* __tstate = wxPyBeginAllowThreads();
19087 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19088 wxPyEndAllowThreads(__tstate);
19089 if (PyErr_Occurred()) SWIG_fail;
19090 }
19091 {
19092 #if wxUSE_UNICODE
19093 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19094 #else
19095 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19096 #endif
19097 }
19098 return resultobj;
19099 fail:
19100 return NULL;
19101 }
19102
19103
19104 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19105 PyObject *resultobj = 0;
19106 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19107 wxImageList *arg2 = (wxImageList *) 0 ;
19108 void *argp1 = 0 ;
19109 int res1 = 0 ;
19110 void *argp2 = 0 ;
19111 int res2 = 0 ;
19112 PyObject * obj0 = 0 ;
19113 PyObject * obj1 = 0 ;
19114 char * kwnames[] = {
19115 (char *) "self",(char *) "imageList", NULL
19116 };
19117
19118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19120 if (!SWIG_IsOK(res1)) {
19121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19122 }
19123 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19124 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19125 if (!SWIG_IsOK(res2)) {
19126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19127 }
19128 arg2 = reinterpret_cast< wxImageList * >(argp2);
19129 {
19130 PyThreadState* __tstate = wxPyBeginAllowThreads();
19131 (arg1)->SetImageList(arg2);
19132 wxPyEndAllowThreads(__tstate);
19133 if (PyErr_Occurred()) SWIG_fail;
19134 }
19135 resultobj = SWIG_Py_Void();
19136 return resultobj;
19137 fail:
19138 return NULL;
19139 }
19140
19141
19142 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19143 PyObject *resultobj = 0;
19144 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19145 wxImageList *arg2 = (wxImageList *) 0 ;
19146 void *argp1 = 0 ;
19147 int res1 = 0 ;
19148 int res2 = 0 ;
19149 PyObject * obj0 = 0 ;
19150 PyObject * obj1 = 0 ;
19151 char * kwnames[] = {
19152 (char *) "self",(char *) "imageList", NULL
19153 };
19154
19155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19157 if (!SWIG_IsOK(res1)) {
19158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19159 }
19160 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19161 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19162 if (!SWIG_IsOK(res2)) {
19163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19164 }
19165 {
19166 PyThreadState* __tstate = wxPyBeginAllowThreads();
19167 (arg1)->AssignImageList(arg2);
19168 wxPyEndAllowThreads(__tstate);
19169 if (PyErr_Occurred()) SWIG_fail;
19170 }
19171 resultobj = SWIG_Py_Void();
19172 return resultobj;
19173 fail:
19174 return NULL;
19175 }
19176
19177
19178 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19179 PyObject *resultobj = 0;
19180 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19181 wxImageList *result = 0 ;
19182 void *argp1 = 0 ;
19183 int res1 = 0 ;
19184 PyObject *swig_obj[1] ;
19185
19186 if (!args) SWIG_fail;
19187 swig_obj[0] = args;
19188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19189 if (!SWIG_IsOK(res1)) {
19190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19191 }
19192 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19193 {
19194 PyThreadState* __tstate = wxPyBeginAllowThreads();
19195 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19196 wxPyEndAllowThreads(__tstate);
19197 if (PyErr_Occurred()) SWIG_fail;
19198 }
19199 {
19200 resultobj = wxPyMake_wxObject(result, (bool)0);
19201 }
19202 return resultobj;
19203 fail:
19204 return NULL;
19205 }
19206
19207
19208 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19209 PyObject *resultobj = 0;
19210 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19211 size_t arg2 ;
19212 int result;
19213 void *argp1 = 0 ;
19214 int res1 = 0 ;
19215 size_t val2 ;
19216 int ecode2 = 0 ;
19217 PyObject * obj0 = 0 ;
19218 PyObject * obj1 = 0 ;
19219 char * kwnames[] = {
19220 (char *) "self",(char *) "n", NULL
19221 };
19222
19223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19225 if (!SWIG_IsOK(res1)) {
19226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19227 }
19228 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19229 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19230 if (!SWIG_IsOK(ecode2)) {
19231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19232 }
19233 arg2 = static_cast< size_t >(val2);
19234 {
19235 PyThreadState* __tstate = wxPyBeginAllowThreads();
19236 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19237 wxPyEndAllowThreads(__tstate);
19238 if (PyErr_Occurred()) SWIG_fail;
19239 }
19240 resultobj = SWIG_From_int(static_cast< int >(result));
19241 return resultobj;
19242 fail:
19243 return NULL;
19244 }
19245
19246
19247 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19248 PyObject *resultobj = 0;
19249 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19250 size_t arg2 ;
19251 int arg3 ;
19252 bool result;
19253 void *argp1 = 0 ;
19254 int res1 = 0 ;
19255 size_t val2 ;
19256 int ecode2 = 0 ;
19257 int val3 ;
19258 int ecode3 = 0 ;
19259 PyObject * obj0 = 0 ;
19260 PyObject * obj1 = 0 ;
19261 PyObject * obj2 = 0 ;
19262 char * kwnames[] = {
19263 (char *) "self",(char *) "n",(char *) "imageId", NULL
19264 };
19265
19266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19268 if (!SWIG_IsOK(res1)) {
19269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19270 }
19271 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19272 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19273 if (!SWIG_IsOK(ecode2)) {
19274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19275 }
19276 arg2 = static_cast< size_t >(val2);
19277 ecode3 = SWIG_AsVal_int(obj2, &val3);
19278 if (!SWIG_IsOK(ecode3)) {
19279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19280 }
19281 arg3 = static_cast< int >(val3);
19282 {
19283 PyThreadState* __tstate = wxPyBeginAllowThreads();
19284 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19285 wxPyEndAllowThreads(__tstate);
19286 if (PyErr_Occurred()) SWIG_fail;
19287 }
19288 {
19289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19290 }
19291 return resultobj;
19292 fail:
19293 return NULL;
19294 }
19295
19296
19297 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19298 PyObject *resultobj = 0;
19299 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19300 wxSize *arg2 = 0 ;
19301 void *argp1 = 0 ;
19302 int res1 = 0 ;
19303 wxSize temp2 ;
19304 PyObject * obj0 = 0 ;
19305 PyObject * obj1 = 0 ;
19306 char * kwnames[] = {
19307 (char *) "self",(char *) "size", NULL
19308 };
19309
19310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19312 if (!SWIG_IsOK(res1)) {
19313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19314 }
19315 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19316 {
19317 arg2 = &temp2;
19318 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19319 }
19320 {
19321 PyThreadState* __tstate = wxPyBeginAllowThreads();
19322 (arg1)->SetPageSize((wxSize const &)*arg2);
19323 wxPyEndAllowThreads(__tstate);
19324 if (PyErr_Occurred()) SWIG_fail;
19325 }
19326 resultobj = SWIG_Py_Void();
19327 return resultobj;
19328 fail:
19329 return NULL;
19330 }
19331
19332
19333 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19334 PyObject *resultobj = 0;
19335 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19336 wxSize *arg2 = 0 ;
19337 wxSize result;
19338 void *argp1 = 0 ;
19339 int res1 = 0 ;
19340 wxSize temp2 ;
19341 PyObject * obj0 = 0 ;
19342 PyObject * obj1 = 0 ;
19343 char * kwnames[] = {
19344 (char *) "self",(char *) "sizePage", NULL
19345 };
19346
19347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19349 if (!SWIG_IsOK(res1)) {
19350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19351 }
19352 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19353 {
19354 arg2 = &temp2;
19355 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19356 }
19357 {
19358 PyThreadState* __tstate = wxPyBeginAllowThreads();
19359 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19360 wxPyEndAllowThreads(__tstate);
19361 if (PyErr_Occurred()) SWIG_fail;
19362 }
19363 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19364 return resultobj;
19365 fail:
19366 return NULL;
19367 }
19368
19369
19370 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19371 PyObject *resultobj = 0;
19372 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19373 unsigned int result;
19374 void *argp1 = 0 ;
19375 int res1 = 0 ;
19376 PyObject *swig_obj[1] ;
19377
19378 if (!args) SWIG_fail;
19379 swig_obj[0] = args;
19380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19381 if (!SWIG_IsOK(res1)) {
19382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19383 }
19384 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19385 {
19386 PyThreadState* __tstate = wxPyBeginAllowThreads();
19387 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19388 wxPyEndAllowThreads(__tstate);
19389 if (PyErr_Occurred()) SWIG_fail;
19390 }
19391 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19392 return resultobj;
19393 fail:
19394 return NULL;
19395 }
19396
19397
19398 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19399 PyObject *resultobj = 0;
19400 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19401 unsigned int arg2 ;
19402 void *argp1 = 0 ;
19403 int res1 = 0 ;
19404 unsigned int val2 ;
19405 int ecode2 = 0 ;
19406 PyObject * obj0 = 0 ;
19407 PyObject * obj1 = 0 ;
19408 char * kwnames[] = {
19409 (char *) "self",(char *) "internalBorder", NULL
19410 };
19411
19412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19414 if (!SWIG_IsOK(res1)) {
19415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19416 }
19417 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19418 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19419 if (!SWIG_IsOK(ecode2)) {
19420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19421 }
19422 arg2 = static_cast< unsigned int >(val2);
19423 {
19424 PyThreadState* __tstate = wxPyBeginAllowThreads();
19425 (arg1)->SetInternalBorder(arg2);
19426 wxPyEndAllowThreads(__tstate);
19427 if (PyErr_Occurred()) SWIG_fail;
19428 }
19429 resultobj = SWIG_Py_Void();
19430 return resultobj;
19431 fail:
19432 return NULL;
19433 }
19434
19435
19436 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19437 PyObject *resultobj = 0;
19438 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19439 bool result;
19440 void *argp1 = 0 ;
19441 int res1 = 0 ;
19442 PyObject *swig_obj[1] ;
19443
19444 if (!args) SWIG_fail;
19445 swig_obj[0] = args;
19446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19447 if (!SWIG_IsOK(res1)) {
19448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19449 }
19450 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19451 {
19452 PyThreadState* __tstate = wxPyBeginAllowThreads();
19453 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19454 wxPyEndAllowThreads(__tstate);
19455 if (PyErr_Occurred()) SWIG_fail;
19456 }
19457 {
19458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19459 }
19460 return resultobj;
19461 fail:
19462 return NULL;
19463 }
19464
19465
19466 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19467 PyObject *resultobj = 0;
19468 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19469 int arg2 ;
19470 void *argp1 = 0 ;
19471 int res1 = 0 ;
19472 int val2 ;
19473 int ecode2 = 0 ;
19474 PyObject * obj0 = 0 ;
19475 PyObject * obj1 = 0 ;
19476 char * kwnames[] = {
19477 (char *) "self",(char *) "margin", NULL
19478 };
19479
19480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19482 if (!SWIG_IsOK(res1)) {
19483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19484 }
19485 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19486 ecode2 = SWIG_AsVal_int(obj1, &val2);
19487 if (!SWIG_IsOK(ecode2)) {
19488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19489 }
19490 arg2 = static_cast< int >(val2);
19491 {
19492 PyThreadState* __tstate = wxPyBeginAllowThreads();
19493 (arg1)->SetControlMargin(arg2);
19494 wxPyEndAllowThreads(__tstate);
19495 if (PyErr_Occurred()) SWIG_fail;
19496 }
19497 resultobj = SWIG_Py_Void();
19498 return resultobj;
19499 fail:
19500 return NULL;
19501 }
19502
19503
19504 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19505 PyObject *resultobj = 0;
19506 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19507 int result;
19508 void *argp1 = 0 ;
19509 int res1 = 0 ;
19510 PyObject *swig_obj[1] ;
19511
19512 if (!args) SWIG_fail;
19513 swig_obj[0] = args;
19514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19515 if (!SWIG_IsOK(res1)) {
19516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19517 }
19518 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19519 {
19520 PyThreadState* __tstate = wxPyBeginAllowThreads();
19521 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19522 wxPyEndAllowThreads(__tstate);
19523 if (PyErr_Occurred()) SWIG_fail;
19524 }
19525 resultobj = SWIG_From_int(static_cast< int >(result));
19526 return resultobj;
19527 fail:
19528 return NULL;
19529 }
19530
19531
19532 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19533 PyObject *resultobj = 0;
19534 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19535 bool arg2 ;
19536 void *argp1 = 0 ;
19537 int res1 = 0 ;
19538 bool val2 ;
19539 int ecode2 = 0 ;
19540 PyObject * obj0 = 0 ;
19541 PyObject * obj1 = 0 ;
19542 char * kwnames[] = {
19543 (char *) "self",(char *) "fit", NULL
19544 };
19545
19546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19548 if (!SWIG_IsOK(res1)) {
19549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19550 }
19551 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19552 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19553 if (!SWIG_IsOK(ecode2)) {
19554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19555 }
19556 arg2 = static_cast< bool >(val2);
19557 {
19558 PyThreadState* __tstate = wxPyBeginAllowThreads();
19559 (arg1)->SetFitToCurrentPage(arg2);
19560 wxPyEndAllowThreads(__tstate);
19561 if (PyErr_Occurred()) SWIG_fail;
19562 }
19563 resultobj = SWIG_Py_Void();
19564 return resultobj;
19565 fail:
19566 return NULL;
19567 }
19568
19569
19570 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19571 PyObject *resultobj = 0;
19572 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19573 bool result;
19574 void *argp1 = 0 ;
19575 int res1 = 0 ;
19576 PyObject *swig_obj[1] ;
19577
19578 if (!args) SWIG_fail;
19579 swig_obj[0] = args;
19580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19581 if (!SWIG_IsOK(res1)) {
19582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19583 }
19584 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19585 {
19586 PyThreadState* __tstate = wxPyBeginAllowThreads();
19587 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19588 wxPyEndAllowThreads(__tstate);
19589 if (PyErr_Occurred()) SWIG_fail;
19590 }
19591 {
19592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19593 }
19594 return resultobj;
19595 fail:
19596 return NULL;
19597 }
19598
19599
19600 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19601 PyObject *resultobj = 0;
19602 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19603 wxSizer *result = 0 ;
19604 void *argp1 = 0 ;
19605 int res1 = 0 ;
19606 PyObject *swig_obj[1] ;
19607
19608 if (!args) SWIG_fail;
19609 swig_obj[0] = args;
19610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19611 if (!SWIG_IsOK(res1)) {
19612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19613 }
19614 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19615 {
19616 PyThreadState* __tstate = wxPyBeginAllowThreads();
19617 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19618 wxPyEndAllowThreads(__tstate);
19619 if (PyErr_Occurred()) SWIG_fail;
19620 }
19621 {
19622 resultobj = wxPyMake_wxObject(result, (bool)0);
19623 }
19624 return resultobj;
19625 fail:
19626 return NULL;
19627 }
19628
19629
19630 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19631 PyObject *resultobj = 0;
19632 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19633 size_t arg2 ;
19634 bool result;
19635 void *argp1 = 0 ;
19636 int res1 = 0 ;
19637 size_t val2 ;
19638 int ecode2 = 0 ;
19639 PyObject * obj0 = 0 ;
19640 PyObject * obj1 = 0 ;
19641 char * kwnames[] = {
19642 (char *) "self",(char *) "n", NULL
19643 };
19644
19645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19647 if (!SWIG_IsOK(res1)) {
19648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19649 }
19650 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19651 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19652 if (!SWIG_IsOK(ecode2)) {
19653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19654 }
19655 arg2 = static_cast< size_t >(val2);
19656 {
19657 PyThreadState* __tstate = wxPyBeginAllowThreads();
19658 result = (bool)(arg1)->DeletePage(arg2);
19659 wxPyEndAllowThreads(__tstate);
19660 if (PyErr_Occurred()) SWIG_fail;
19661 }
19662 {
19663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19664 }
19665 return resultobj;
19666 fail:
19667 return NULL;
19668 }
19669
19670
19671 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19672 PyObject *resultobj = 0;
19673 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19674 size_t arg2 ;
19675 bool result;
19676 void *argp1 = 0 ;
19677 int res1 = 0 ;
19678 size_t val2 ;
19679 int ecode2 = 0 ;
19680 PyObject * obj0 = 0 ;
19681 PyObject * obj1 = 0 ;
19682 char * kwnames[] = {
19683 (char *) "self",(char *) "n", NULL
19684 };
19685
19686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19688 if (!SWIG_IsOK(res1)) {
19689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19690 }
19691 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19692 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19693 if (!SWIG_IsOK(ecode2)) {
19694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19695 }
19696 arg2 = static_cast< size_t >(val2);
19697 {
19698 PyThreadState* __tstate = wxPyBeginAllowThreads();
19699 result = (bool)(arg1)->RemovePage(arg2);
19700 wxPyEndAllowThreads(__tstate);
19701 if (PyErr_Occurred()) SWIG_fail;
19702 }
19703 {
19704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19705 }
19706 return resultobj;
19707 fail:
19708 return NULL;
19709 }
19710
19711
19712 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19713 PyObject *resultobj = 0;
19714 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19715 bool result;
19716 void *argp1 = 0 ;
19717 int res1 = 0 ;
19718 PyObject *swig_obj[1] ;
19719
19720 if (!args) SWIG_fail;
19721 swig_obj[0] = args;
19722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19723 if (!SWIG_IsOK(res1)) {
19724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19725 }
19726 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19727 {
19728 PyThreadState* __tstate = wxPyBeginAllowThreads();
19729 result = (bool)(arg1)->DeleteAllPages();
19730 wxPyEndAllowThreads(__tstate);
19731 if (PyErr_Occurred()) SWIG_fail;
19732 }
19733 {
19734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19735 }
19736 return resultobj;
19737 fail:
19738 return NULL;
19739 }
19740
19741
19742 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19743 PyObject *resultobj = 0;
19744 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19745 wxWindow *arg2 = (wxWindow *) 0 ;
19746 wxString *arg3 = 0 ;
19747 bool arg4 = (bool) false ;
19748 int arg5 = (int) -1 ;
19749 bool result;
19750 void *argp1 = 0 ;
19751 int res1 = 0 ;
19752 void *argp2 = 0 ;
19753 int res2 = 0 ;
19754 bool temp3 = false ;
19755 bool val4 ;
19756 int ecode4 = 0 ;
19757 int val5 ;
19758 int ecode5 = 0 ;
19759 PyObject * obj0 = 0 ;
19760 PyObject * obj1 = 0 ;
19761 PyObject * obj2 = 0 ;
19762 PyObject * obj3 = 0 ;
19763 PyObject * obj4 = 0 ;
19764 char * kwnames[] = {
19765 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19766 };
19767
19768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19770 if (!SWIG_IsOK(res1)) {
19771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19772 }
19773 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19774 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19775 if (!SWIG_IsOK(res2)) {
19776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19777 }
19778 arg2 = reinterpret_cast< wxWindow * >(argp2);
19779 {
19780 arg3 = wxString_in_helper(obj2);
19781 if (arg3 == NULL) SWIG_fail;
19782 temp3 = true;
19783 }
19784 if (obj3) {
19785 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19786 if (!SWIG_IsOK(ecode4)) {
19787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19788 }
19789 arg4 = static_cast< bool >(val4);
19790 }
19791 if (obj4) {
19792 ecode5 = SWIG_AsVal_int(obj4, &val5);
19793 if (!SWIG_IsOK(ecode5)) {
19794 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19795 }
19796 arg5 = static_cast< int >(val5);
19797 }
19798 {
19799 PyThreadState* __tstate = wxPyBeginAllowThreads();
19800 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19801 wxPyEndAllowThreads(__tstate);
19802 if (PyErr_Occurred()) SWIG_fail;
19803 }
19804 {
19805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19806 }
19807 {
19808 if (temp3)
19809 delete arg3;
19810 }
19811 return resultobj;
19812 fail:
19813 {
19814 if (temp3)
19815 delete arg3;
19816 }
19817 return NULL;
19818 }
19819
19820
19821 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19822 PyObject *resultobj = 0;
19823 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19824 size_t arg2 ;
19825 wxWindow *arg3 = (wxWindow *) 0 ;
19826 wxString *arg4 = 0 ;
19827 bool arg5 = (bool) false ;
19828 int arg6 = (int) -1 ;
19829 bool result;
19830 void *argp1 = 0 ;
19831 int res1 = 0 ;
19832 size_t val2 ;
19833 int ecode2 = 0 ;
19834 void *argp3 = 0 ;
19835 int res3 = 0 ;
19836 bool temp4 = false ;
19837 bool val5 ;
19838 int ecode5 = 0 ;
19839 int val6 ;
19840 int ecode6 = 0 ;
19841 PyObject * obj0 = 0 ;
19842 PyObject * obj1 = 0 ;
19843 PyObject * obj2 = 0 ;
19844 PyObject * obj3 = 0 ;
19845 PyObject * obj4 = 0 ;
19846 PyObject * obj5 = 0 ;
19847 char * kwnames[] = {
19848 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19849 };
19850
19851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19853 if (!SWIG_IsOK(res1)) {
19854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19855 }
19856 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19857 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19858 if (!SWIG_IsOK(ecode2)) {
19859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19860 }
19861 arg2 = static_cast< size_t >(val2);
19862 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19863 if (!SWIG_IsOK(res3)) {
19864 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19865 }
19866 arg3 = reinterpret_cast< wxWindow * >(argp3);
19867 {
19868 arg4 = wxString_in_helper(obj3);
19869 if (arg4 == NULL) SWIG_fail;
19870 temp4 = true;
19871 }
19872 if (obj4) {
19873 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19874 if (!SWIG_IsOK(ecode5)) {
19875 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19876 }
19877 arg5 = static_cast< bool >(val5);
19878 }
19879 if (obj5) {
19880 ecode6 = SWIG_AsVal_int(obj5, &val6);
19881 if (!SWIG_IsOK(ecode6)) {
19882 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19883 }
19884 arg6 = static_cast< int >(val6);
19885 }
19886 {
19887 PyThreadState* __tstate = wxPyBeginAllowThreads();
19888 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19889 wxPyEndAllowThreads(__tstate);
19890 if (PyErr_Occurred()) SWIG_fail;
19891 }
19892 {
19893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19894 }
19895 {
19896 if (temp4)
19897 delete arg4;
19898 }
19899 return resultobj;
19900 fail:
19901 {
19902 if (temp4)
19903 delete arg4;
19904 }
19905 return NULL;
19906 }
19907
19908
19909 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19910 PyObject *resultobj = 0;
19911 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19912 size_t arg2 ;
19913 int result;
19914 void *argp1 = 0 ;
19915 int res1 = 0 ;
19916 size_t val2 ;
19917 int ecode2 = 0 ;
19918 PyObject * obj0 = 0 ;
19919 PyObject * obj1 = 0 ;
19920 char * kwnames[] = {
19921 (char *) "self",(char *) "n", NULL
19922 };
19923
19924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19926 if (!SWIG_IsOK(res1)) {
19927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19928 }
19929 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19930 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19931 if (!SWIG_IsOK(ecode2)) {
19932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19933 }
19934 arg2 = static_cast< size_t >(val2);
19935 {
19936 PyThreadState* __tstate = wxPyBeginAllowThreads();
19937 result = (int)(arg1)->SetSelection(arg2);
19938 wxPyEndAllowThreads(__tstate);
19939 if (PyErr_Occurred()) SWIG_fail;
19940 }
19941 resultobj = SWIG_From_int(static_cast< int >(result));
19942 return resultobj;
19943 fail:
19944 return NULL;
19945 }
19946
19947
19948 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19949 PyObject *resultobj = 0;
19950 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19951 bool arg2 = (bool) true ;
19952 void *argp1 = 0 ;
19953 int res1 = 0 ;
19954 bool val2 ;
19955 int ecode2 = 0 ;
19956 PyObject * obj0 = 0 ;
19957 PyObject * obj1 = 0 ;
19958 char * kwnames[] = {
19959 (char *) "self",(char *) "forward", NULL
19960 };
19961
19962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19964 if (!SWIG_IsOK(res1)) {
19965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19966 }
19967 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19968 if (obj1) {
19969 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19970 if (!SWIG_IsOK(ecode2)) {
19971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
19972 }
19973 arg2 = static_cast< bool >(val2);
19974 }
19975 {
19976 PyThreadState* __tstate = wxPyBeginAllowThreads();
19977 (arg1)->AdvanceSelection(arg2);
19978 wxPyEndAllowThreads(__tstate);
19979 if (PyErr_Occurred()) SWIG_fail;
19980 }
19981 resultobj = SWIG_Py_Void();
19982 return resultobj;
19983 fail:
19984 return NULL;
19985 }
19986
19987
19988 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19989 PyObject *resultobj = 0;
19990 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19991 wxPoint *arg2 = 0 ;
19992 long *arg3 = (long *) 0 ;
19993 int result;
19994 void *argp1 = 0 ;
19995 int res1 = 0 ;
19996 wxPoint temp2 ;
19997 long temp3 ;
19998 int res3 = SWIG_TMPOBJ ;
19999 PyObject * obj0 = 0 ;
20000 PyObject * obj1 = 0 ;
20001 char * kwnames[] = {
20002 (char *) "self",(char *) "pt", NULL
20003 };
20004
20005 arg3 = &temp3;
20006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20008 if (!SWIG_IsOK(res1)) {
20009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20010 }
20011 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20012 {
20013 arg2 = &temp2;
20014 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20015 }
20016 {
20017 PyThreadState* __tstate = wxPyBeginAllowThreads();
20018 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20019 wxPyEndAllowThreads(__tstate);
20020 if (PyErr_Occurred()) SWIG_fail;
20021 }
20022 resultobj = SWIG_From_int(static_cast< int >(result));
20023 if (SWIG_IsTmpObj(res3)) {
20024 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20025 } else {
20026 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20027 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20028 }
20029 return resultobj;
20030 fail:
20031 return NULL;
20032 }
20033
20034
20035 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20036 PyObject *resultobj = 0;
20037 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20038 SwigValueWrapper<wxVisualAttributes > result;
20039 int val1 ;
20040 int ecode1 = 0 ;
20041 PyObject * obj0 = 0 ;
20042 char * kwnames[] = {
20043 (char *) "variant", NULL
20044 };
20045
20046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20047 if (obj0) {
20048 ecode1 = SWIG_AsVal_int(obj0, &val1);
20049 if (!SWIG_IsOK(ecode1)) {
20050 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20051 }
20052 arg1 = static_cast< wxWindowVariant >(val1);
20053 }
20054 {
20055 if (!wxPyCheckForApp()) SWIG_fail;
20056 PyThreadState* __tstate = wxPyBeginAllowThreads();
20057 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20058 wxPyEndAllowThreads(__tstate);
20059 if (PyErr_Occurred()) SWIG_fail;
20060 }
20061 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20062 return resultobj;
20063 fail:
20064 return NULL;
20065 }
20066
20067
20068 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20069 PyObject *obj;
20070 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20071 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20072 return SWIG_Py_Void();
20073 }
20074
20075 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20076 PyObject *resultobj = 0;
20077 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20078 int arg2 = (int) 0 ;
20079 int arg3 = (int) -1 ;
20080 int arg4 = (int) -1 ;
20081 wxBookCtrlBaseEvent *result = 0 ;
20082 int val1 ;
20083 int ecode1 = 0 ;
20084 int val2 ;
20085 int ecode2 = 0 ;
20086 int val3 ;
20087 int ecode3 = 0 ;
20088 int val4 ;
20089 int ecode4 = 0 ;
20090 PyObject * obj0 = 0 ;
20091 PyObject * obj1 = 0 ;
20092 PyObject * obj2 = 0 ;
20093 PyObject * obj3 = 0 ;
20094 char * kwnames[] = {
20095 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20096 };
20097
20098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20099 if (obj0) {
20100 ecode1 = SWIG_AsVal_int(obj0, &val1);
20101 if (!SWIG_IsOK(ecode1)) {
20102 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20103 }
20104 arg1 = static_cast< wxEventType >(val1);
20105 }
20106 if (obj1) {
20107 ecode2 = SWIG_AsVal_int(obj1, &val2);
20108 if (!SWIG_IsOK(ecode2)) {
20109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20110 }
20111 arg2 = static_cast< int >(val2);
20112 }
20113 if (obj2) {
20114 ecode3 = SWIG_AsVal_int(obj2, &val3);
20115 if (!SWIG_IsOK(ecode3)) {
20116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20117 }
20118 arg3 = static_cast< int >(val3);
20119 }
20120 if (obj3) {
20121 ecode4 = SWIG_AsVal_int(obj3, &val4);
20122 if (!SWIG_IsOK(ecode4)) {
20123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20124 }
20125 arg4 = static_cast< int >(val4);
20126 }
20127 {
20128 PyThreadState* __tstate = wxPyBeginAllowThreads();
20129 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20130 wxPyEndAllowThreads(__tstate);
20131 if (PyErr_Occurred()) SWIG_fail;
20132 }
20133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20134 return resultobj;
20135 fail:
20136 return NULL;
20137 }
20138
20139
20140 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20141 PyObject *resultobj = 0;
20142 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20143 int result;
20144 void *argp1 = 0 ;
20145 int res1 = 0 ;
20146 PyObject *swig_obj[1] ;
20147
20148 if (!args) SWIG_fail;
20149 swig_obj[0] = args;
20150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20151 if (!SWIG_IsOK(res1)) {
20152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20153 }
20154 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20155 {
20156 PyThreadState* __tstate = wxPyBeginAllowThreads();
20157 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20158 wxPyEndAllowThreads(__tstate);
20159 if (PyErr_Occurred()) SWIG_fail;
20160 }
20161 resultobj = SWIG_From_int(static_cast< int >(result));
20162 return resultobj;
20163 fail:
20164 return NULL;
20165 }
20166
20167
20168 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20169 PyObject *resultobj = 0;
20170 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20171 int arg2 ;
20172 void *argp1 = 0 ;
20173 int res1 = 0 ;
20174 int val2 ;
20175 int ecode2 = 0 ;
20176 PyObject * obj0 = 0 ;
20177 PyObject * obj1 = 0 ;
20178 char * kwnames[] = {
20179 (char *) "self",(char *) "nSel", NULL
20180 };
20181
20182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20184 if (!SWIG_IsOK(res1)) {
20185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20186 }
20187 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20188 ecode2 = SWIG_AsVal_int(obj1, &val2);
20189 if (!SWIG_IsOK(ecode2)) {
20190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20191 }
20192 arg2 = static_cast< int >(val2);
20193 {
20194 PyThreadState* __tstate = wxPyBeginAllowThreads();
20195 (arg1)->SetSelection(arg2);
20196 wxPyEndAllowThreads(__tstate);
20197 if (PyErr_Occurred()) SWIG_fail;
20198 }
20199 resultobj = SWIG_Py_Void();
20200 return resultobj;
20201 fail:
20202 return NULL;
20203 }
20204
20205
20206 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20207 PyObject *resultobj = 0;
20208 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20209 int result;
20210 void *argp1 = 0 ;
20211 int res1 = 0 ;
20212 PyObject *swig_obj[1] ;
20213
20214 if (!args) SWIG_fail;
20215 swig_obj[0] = args;
20216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20217 if (!SWIG_IsOK(res1)) {
20218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20219 }
20220 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20221 {
20222 PyThreadState* __tstate = wxPyBeginAllowThreads();
20223 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20224 wxPyEndAllowThreads(__tstate);
20225 if (PyErr_Occurred()) SWIG_fail;
20226 }
20227 resultobj = SWIG_From_int(static_cast< int >(result));
20228 return resultobj;
20229 fail:
20230 return NULL;
20231 }
20232
20233
20234 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20235 PyObject *resultobj = 0;
20236 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20237 int arg2 ;
20238 void *argp1 = 0 ;
20239 int res1 = 0 ;
20240 int val2 ;
20241 int ecode2 = 0 ;
20242 PyObject * obj0 = 0 ;
20243 PyObject * obj1 = 0 ;
20244 char * kwnames[] = {
20245 (char *) "self",(char *) "nOldSel", NULL
20246 };
20247
20248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20250 if (!SWIG_IsOK(res1)) {
20251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20252 }
20253 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20254 ecode2 = SWIG_AsVal_int(obj1, &val2);
20255 if (!SWIG_IsOK(ecode2)) {
20256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20257 }
20258 arg2 = static_cast< int >(val2);
20259 {
20260 PyThreadState* __tstate = wxPyBeginAllowThreads();
20261 (arg1)->SetOldSelection(arg2);
20262 wxPyEndAllowThreads(__tstate);
20263 if (PyErr_Occurred()) SWIG_fail;
20264 }
20265 resultobj = SWIG_Py_Void();
20266 return resultobj;
20267 fail:
20268 return NULL;
20269 }
20270
20271
20272 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20273 PyObject *obj;
20274 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20275 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20276 return SWIG_Py_Void();
20277 }
20278
20279 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20280 return SWIG_Python_InitShadowInstance(args);
20281 }
20282
20283 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20284 PyObject *resultobj = 0;
20285 wxWindow *arg1 = (wxWindow *) 0 ;
20286 int arg2 = (int) -1 ;
20287 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20288 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20289 wxSize const &arg4_defvalue = wxDefaultSize ;
20290 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20291 long arg5 = (long) 0 ;
20292 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20293 wxString *arg6 = (wxString *) &arg6_defvalue ;
20294 wxNotebook *result = 0 ;
20295 void *argp1 = 0 ;
20296 int res1 = 0 ;
20297 int val2 ;
20298 int ecode2 = 0 ;
20299 wxPoint temp3 ;
20300 wxSize temp4 ;
20301 long val5 ;
20302 int ecode5 = 0 ;
20303 bool temp6 = false ;
20304 PyObject * obj0 = 0 ;
20305 PyObject * obj1 = 0 ;
20306 PyObject * obj2 = 0 ;
20307 PyObject * obj3 = 0 ;
20308 PyObject * obj4 = 0 ;
20309 PyObject * obj5 = 0 ;
20310 char * kwnames[] = {
20311 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20312 };
20313
20314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20316 if (!SWIG_IsOK(res1)) {
20317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20318 }
20319 arg1 = reinterpret_cast< wxWindow * >(argp1);
20320 if (obj1) {
20321 ecode2 = SWIG_AsVal_int(obj1, &val2);
20322 if (!SWIG_IsOK(ecode2)) {
20323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20324 }
20325 arg2 = static_cast< int >(val2);
20326 }
20327 if (obj2) {
20328 {
20329 arg3 = &temp3;
20330 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20331 }
20332 }
20333 if (obj3) {
20334 {
20335 arg4 = &temp4;
20336 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20337 }
20338 }
20339 if (obj4) {
20340 ecode5 = SWIG_AsVal_long(obj4, &val5);
20341 if (!SWIG_IsOK(ecode5)) {
20342 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20343 }
20344 arg5 = static_cast< long >(val5);
20345 }
20346 if (obj5) {
20347 {
20348 arg6 = wxString_in_helper(obj5);
20349 if (arg6 == NULL) SWIG_fail;
20350 temp6 = true;
20351 }
20352 }
20353 {
20354 if (!wxPyCheckForApp()) SWIG_fail;
20355 PyThreadState* __tstate = wxPyBeginAllowThreads();
20356 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20357 wxPyEndAllowThreads(__tstate);
20358 if (PyErr_Occurred()) SWIG_fail;
20359 }
20360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20361 {
20362 if (temp6)
20363 delete arg6;
20364 }
20365 return resultobj;
20366 fail:
20367 {
20368 if (temp6)
20369 delete arg6;
20370 }
20371 return NULL;
20372 }
20373
20374
20375 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20376 PyObject *resultobj = 0;
20377 wxNotebook *result = 0 ;
20378
20379 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20380 {
20381 if (!wxPyCheckForApp()) SWIG_fail;
20382 PyThreadState* __tstate = wxPyBeginAllowThreads();
20383 result = (wxNotebook *)new wxNotebook();
20384 wxPyEndAllowThreads(__tstate);
20385 if (PyErr_Occurred()) SWIG_fail;
20386 }
20387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20388 return resultobj;
20389 fail:
20390 return NULL;
20391 }
20392
20393
20394 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20395 PyObject *resultobj = 0;
20396 wxNotebook *arg1 = (wxNotebook *) 0 ;
20397 wxWindow *arg2 = (wxWindow *) 0 ;
20398 int arg3 = (int) -1 ;
20399 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20400 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20401 wxSize const &arg5_defvalue = wxDefaultSize ;
20402 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20403 long arg6 = (long) 0 ;
20404 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20405 wxString *arg7 = (wxString *) &arg7_defvalue ;
20406 bool result;
20407 void *argp1 = 0 ;
20408 int res1 = 0 ;
20409 void *argp2 = 0 ;
20410 int res2 = 0 ;
20411 int val3 ;
20412 int ecode3 = 0 ;
20413 wxPoint temp4 ;
20414 wxSize temp5 ;
20415 long val6 ;
20416 int ecode6 = 0 ;
20417 bool temp7 = false ;
20418 PyObject * obj0 = 0 ;
20419 PyObject * obj1 = 0 ;
20420 PyObject * obj2 = 0 ;
20421 PyObject * obj3 = 0 ;
20422 PyObject * obj4 = 0 ;
20423 PyObject * obj5 = 0 ;
20424 PyObject * obj6 = 0 ;
20425 char * kwnames[] = {
20426 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20427 };
20428
20429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20431 if (!SWIG_IsOK(res1)) {
20432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20433 }
20434 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20435 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20436 if (!SWIG_IsOK(res2)) {
20437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20438 }
20439 arg2 = reinterpret_cast< wxWindow * >(argp2);
20440 if (obj2) {
20441 ecode3 = SWIG_AsVal_int(obj2, &val3);
20442 if (!SWIG_IsOK(ecode3)) {
20443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20444 }
20445 arg3 = static_cast< int >(val3);
20446 }
20447 if (obj3) {
20448 {
20449 arg4 = &temp4;
20450 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20451 }
20452 }
20453 if (obj4) {
20454 {
20455 arg5 = &temp5;
20456 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20457 }
20458 }
20459 if (obj5) {
20460 ecode6 = SWIG_AsVal_long(obj5, &val6);
20461 if (!SWIG_IsOK(ecode6)) {
20462 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20463 }
20464 arg6 = static_cast< long >(val6);
20465 }
20466 if (obj6) {
20467 {
20468 arg7 = wxString_in_helper(obj6);
20469 if (arg7 == NULL) SWIG_fail;
20470 temp7 = true;
20471 }
20472 }
20473 {
20474 PyThreadState* __tstate = wxPyBeginAllowThreads();
20475 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20476 wxPyEndAllowThreads(__tstate);
20477 if (PyErr_Occurred()) SWIG_fail;
20478 }
20479 {
20480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20481 }
20482 {
20483 if (temp7)
20484 delete arg7;
20485 }
20486 return resultobj;
20487 fail:
20488 {
20489 if (temp7)
20490 delete arg7;
20491 }
20492 return NULL;
20493 }
20494
20495
20496 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20497 PyObject *resultobj = 0;
20498 wxNotebook *arg1 = (wxNotebook *) 0 ;
20499 int result;
20500 void *argp1 = 0 ;
20501 int res1 = 0 ;
20502 PyObject *swig_obj[1] ;
20503
20504 if (!args) SWIG_fail;
20505 swig_obj[0] = args;
20506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20507 if (!SWIG_IsOK(res1)) {
20508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20509 }
20510 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20511 {
20512 PyThreadState* __tstate = wxPyBeginAllowThreads();
20513 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20514 wxPyEndAllowThreads(__tstate);
20515 if (PyErr_Occurred()) SWIG_fail;
20516 }
20517 resultobj = SWIG_From_int(static_cast< int >(result));
20518 return resultobj;
20519 fail:
20520 return NULL;
20521 }
20522
20523
20524 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20525 PyObject *resultobj = 0;
20526 wxNotebook *arg1 = (wxNotebook *) 0 ;
20527 wxSize *arg2 = 0 ;
20528 void *argp1 = 0 ;
20529 int res1 = 0 ;
20530 wxSize temp2 ;
20531 PyObject * obj0 = 0 ;
20532 PyObject * obj1 = 0 ;
20533 char * kwnames[] = {
20534 (char *) "self",(char *) "padding", NULL
20535 };
20536
20537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20539 if (!SWIG_IsOK(res1)) {
20540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20541 }
20542 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20543 {
20544 arg2 = &temp2;
20545 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20546 }
20547 {
20548 PyThreadState* __tstate = wxPyBeginAllowThreads();
20549 (arg1)->SetPadding((wxSize const &)*arg2);
20550 wxPyEndAllowThreads(__tstate);
20551 if (PyErr_Occurred()) SWIG_fail;
20552 }
20553 resultobj = SWIG_Py_Void();
20554 return resultobj;
20555 fail:
20556 return NULL;
20557 }
20558
20559
20560 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20561 PyObject *resultobj = 0;
20562 wxNotebook *arg1 = (wxNotebook *) 0 ;
20563 wxSize *arg2 = 0 ;
20564 void *argp1 = 0 ;
20565 int res1 = 0 ;
20566 wxSize temp2 ;
20567 PyObject * obj0 = 0 ;
20568 PyObject * obj1 = 0 ;
20569 char * kwnames[] = {
20570 (char *) "self",(char *) "sz", NULL
20571 };
20572
20573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20575 if (!SWIG_IsOK(res1)) {
20576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20577 }
20578 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20579 {
20580 arg2 = &temp2;
20581 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20582 }
20583 {
20584 PyThreadState* __tstate = wxPyBeginAllowThreads();
20585 (arg1)->SetTabSize((wxSize const &)*arg2);
20586 wxPyEndAllowThreads(__tstate);
20587 if (PyErr_Occurred()) SWIG_fail;
20588 }
20589 resultobj = SWIG_Py_Void();
20590 return resultobj;
20591 fail:
20592 return NULL;
20593 }
20594
20595
20596 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20597 PyObject *resultobj = 0;
20598 wxNotebook *arg1 = (wxNotebook *) 0 ;
20599 wxColour result;
20600 void *argp1 = 0 ;
20601 int res1 = 0 ;
20602 PyObject *swig_obj[1] ;
20603
20604 if (!args) SWIG_fail;
20605 swig_obj[0] = args;
20606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20607 if (!SWIG_IsOK(res1)) {
20608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20609 }
20610 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20611 {
20612 PyThreadState* __tstate = wxPyBeginAllowThreads();
20613 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20614 wxPyEndAllowThreads(__tstate);
20615 if (PyErr_Occurred()) SWIG_fail;
20616 }
20617 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20618 return resultobj;
20619 fail:
20620 return NULL;
20621 }
20622
20623
20624 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20625 PyObject *resultobj = 0;
20626 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20627 SwigValueWrapper<wxVisualAttributes > result;
20628 int val1 ;
20629 int ecode1 = 0 ;
20630 PyObject * obj0 = 0 ;
20631 char * kwnames[] = {
20632 (char *) "variant", NULL
20633 };
20634
20635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20636 if (obj0) {
20637 ecode1 = SWIG_AsVal_int(obj0, &val1);
20638 if (!SWIG_IsOK(ecode1)) {
20639 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20640 }
20641 arg1 = static_cast< wxWindowVariant >(val1);
20642 }
20643 {
20644 if (!wxPyCheckForApp()) SWIG_fail;
20645 PyThreadState* __tstate = wxPyBeginAllowThreads();
20646 result = wxNotebook::GetClassDefaultAttributes(arg1);
20647 wxPyEndAllowThreads(__tstate);
20648 if (PyErr_Occurred()) SWIG_fail;
20649 }
20650 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20651 return resultobj;
20652 fail:
20653 return NULL;
20654 }
20655
20656
20657 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20658 PyObject *obj;
20659 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20660 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20661 return SWIG_Py_Void();
20662 }
20663
20664 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20665 return SWIG_Python_InitShadowInstance(args);
20666 }
20667
20668 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20669 PyObject *resultobj = 0;
20670 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20671 int arg2 = (int) 0 ;
20672 int arg3 = (int) -1 ;
20673 int arg4 = (int) -1 ;
20674 wxNotebookEvent *result = 0 ;
20675 int val1 ;
20676 int ecode1 = 0 ;
20677 int val2 ;
20678 int ecode2 = 0 ;
20679 int val3 ;
20680 int ecode3 = 0 ;
20681 int val4 ;
20682 int ecode4 = 0 ;
20683 PyObject * obj0 = 0 ;
20684 PyObject * obj1 = 0 ;
20685 PyObject * obj2 = 0 ;
20686 PyObject * obj3 = 0 ;
20687 char * kwnames[] = {
20688 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20689 };
20690
20691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20692 if (obj0) {
20693 ecode1 = SWIG_AsVal_int(obj0, &val1);
20694 if (!SWIG_IsOK(ecode1)) {
20695 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20696 }
20697 arg1 = static_cast< wxEventType >(val1);
20698 }
20699 if (obj1) {
20700 ecode2 = SWIG_AsVal_int(obj1, &val2);
20701 if (!SWIG_IsOK(ecode2)) {
20702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20703 }
20704 arg2 = static_cast< int >(val2);
20705 }
20706 if (obj2) {
20707 ecode3 = SWIG_AsVal_int(obj2, &val3);
20708 if (!SWIG_IsOK(ecode3)) {
20709 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20710 }
20711 arg3 = static_cast< int >(val3);
20712 }
20713 if (obj3) {
20714 ecode4 = SWIG_AsVal_int(obj3, &val4);
20715 if (!SWIG_IsOK(ecode4)) {
20716 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20717 }
20718 arg4 = static_cast< int >(val4);
20719 }
20720 {
20721 PyThreadState* __tstate = wxPyBeginAllowThreads();
20722 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20723 wxPyEndAllowThreads(__tstate);
20724 if (PyErr_Occurred()) SWIG_fail;
20725 }
20726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20727 return resultobj;
20728 fail:
20729 return NULL;
20730 }
20731
20732
20733 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20734 PyObject *obj;
20735 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20736 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20737 return SWIG_Py_Void();
20738 }
20739
20740 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20741 return SWIG_Python_InitShadowInstance(args);
20742 }
20743
20744 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20745 PyObject *resultobj = 0;
20746 wxWindow *arg1 = (wxWindow *) 0 ;
20747 int arg2 = (int) -1 ;
20748 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20749 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20750 wxSize const &arg4_defvalue = wxDefaultSize ;
20751 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20752 long arg5 = (long) 0 ;
20753 wxString const &arg6_defvalue = wxPyEmptyString ;
20754 wxString *arg6 = (wxString *) &arg6_defvalue ;
20755 wxListbook *result = 0 ;
20756 void *argp1 = 0 ;
20757 int res1 = 0 ;
20758 int val2 ;
20759 int ecode2 = 0 ;
20760 wxPoint temp3 ;
20761 wxSize temp4 ;
20762 long val5 ;
20763 int ecode5 = 0 ;
20764 bool temp6 = false ;
20765 PyObject * obj0 = 0 ;
20766 PyObject * obj1 = 0 ;
20767 PyObject * obj2 = 0 ;
20768 PyObject * obj3 = 0 ;
20769 PyObject * obj4 = 0 ;
20770 PyObject * obj5 = 0 ;
20771 char * kwnames[] = {
20772 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20773 };
20774
20775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20777 if (!SWIG_IsOK(res1)) {
20778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20779 }
20780 arg1 = reinterpret_cast< wxWindow * >(argp1);
20781 if (obj1) {
20782 ecode2 = SWIG_AsVal_int(obj1, &val2);
20783 if (!SWIG_IsOK(ecode2)) {
20784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20785 }
20786 arg2 = static_cast< int >(val2);
20787 }
20788 if (obj2) {
20789 {
20790 arg3 = &temp3;
20791 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20792 }
20793 }
20794 if (obj3) {
20795 {
20796 arg4 = &temp4;
20797 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20798 }
20799 }
20800 if (obj4) {
20801 ecode5 = SWIG_AsVal_long(obj4, &val5);
20802 if (!SWIG_IsOK(ecode5)) {
20803 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20804 }
20805 arg5 = static_cast< long >(val5);
20806 }
20807 if (obj5) {
20808 {
20809 arg6 = wxString_in_helper(obj5);
20810 if (arg6 == NULL) SWIG_fail;
20811 temp6 = true;
20812 }
20813 }
20814 {
20815 if (!wxPyCheckForApp()) SWIG_fail;
20816 PyThreadState* __tstate = wxPyBeginAllowThreads();
20817 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20818 wxPyEndAllowThreads(__tstate);
20819 if (PyErr_Occurred()) SWIG_fail;
20820 }
20821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20822 {
20823 if (temp6)
20824 delete arg6;
20825 }
20826 return resultobj;
20827 fail:
20828 {
20829 if (temp6)
20830 delete arg6;
20831 }
20832 return NULL;
20833 }
20834
20835
20836 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20837 PyObject *resultobj = 0;
20838 wxListbook *result = 0 ;
20839
20840 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20841 {
20842 if (!wxPyCheckForApp()) SWIG_fail;
20843 PyThreadState* __tstate = wxPyBeginAllowThreads();
20844 result = (wxListbook *)new wxListbook();
20845 wxPyEndAllowThreads(__tstate);
20846 if (PyErr_Occurred()) SWIG_fail;
20847 }
20848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20849 return resultobj;
20850 fail:
20851 return NULL;
20852 }
20853
20854
20855 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20856 PyObject *resultobj = 0;
20857 wxListbook *arg1 = (wxListbook *) 0 ;
20858 wxWindow *arg2 = (wxWindow *) 0 ;
20859 int arg3 = (int) -1 ;
20860 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20861 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20862 wxSize const &arg5_defvalue = wxDefaultSize ;
20863 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20864 long arg6 = (long) 0 ;
20865 wxString const &arg7_defvalue = wxPyEmptyString ;
20866 wxString *arg7 = (wxString *) &arg7_defvalue ;
20867 bool result;
20868 void *argp1 = 0 ;
20869 int res1 = 0 ;
20870 void *argp2 = 0 ;
20871 int res2 = 0 ;
20872 int val3 ;
20873 int ecode3 = 0 ;
20874 wxPoint temp4 ;
20875 wxSize temp5 ;
20876 long val6 ;
20877 int ecode6 = 0 ;
20878 bool temp7 = false ;
20879 PyObject * obj0 = 0 ;
20880 PyObject * obj1 = 0 ;
20881 PyObject * obj2 = 0 ;
20882 PyObject * obj3 = 0 ;
20883 PyObject * obj4 = 0 ;
20884 PyObject * obj5 = 0 ;
20885 PyObject * obj6 = 0 ;
20886 char * kwnames[] = {
20887 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20888 };
20889
20890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20892 if (!SWIG_IsOK(res1)) {
20893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20894 }
20895 arg1 = reinterpret_cast< wxListbook * >(argp1);
20896 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20897 if (!SWIG_IsOK(res2)) {
20898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20899 }
20900 arg2 = reinterpret_cast< wxWindow * >(argp2);
20901 if (obj2) {
20902 ecode3 = SWIG_AsVal_int(obj2, &val3);
20903 if (!SWIG_IsOK(ecode3)) {
20904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20905 }
20906 arg3 = static_cast< int >(val3);
20907 }
20908 if (obj3) {
20909 {
20910 arg4 = &temp4;
20911 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20912 }
20913 }
20914 if (obj4) {
20915 {
20916 arg5 = &temp5;
20917 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20918 }
20919 }
20920 if (obj5) {
20921 ecode6 = SWIG_AsVal_long(obj5, &val6);
20922 if (!SWIG_IsOK(ecode6)) {
20923 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20924 }
20925 arg6 = static_cast< long >(val6);
20926 }
20927 if (obj6) {
20928 {
20929 arg7 = wxString_in_helper(obj6);
20930 if (arg7 == NULL) SWIG_fail;
20931 temp7 = true;
20932 }
20933 }
20934 {
20935 PyThreadState* __tstate = wxPyBeginAllowThreads();
20936 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20937 wxPyEndAllowThreads(__tstate);
20938 if (PyErr_Occurred()) SWIG_fail;
20939 }
20940 {
20941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20942 }
20943 {
20944 if (temp7)
20945 delete arg7;
20946 }
20947 return resultobj;
20948 fail:
20949 {
20950 if (temp7)
20951 delete arg7;
20952 }
20953 return NULL;
20954 }
20955
20956
20957 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20958 PyObject *resultobj = 0;
20959 wxListbook *arg1 = (wxListbook *) 0 ;
20960 wxListView *result = 0 ;
20961 void *argp1 = 0 ;
20962 int res1 = 0 ;
20963 PyObject *swig_obj[1] ;
20964
20965 if (!args) SWIG_fail;
20966 swig_obj[0] = args;
20967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20968 if (!SWIG_IsOK(res1)) {
20969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
20970 }
20971 arg1 = reinterpret_cast< wxListbook * >(argp1);
20972 {
20973 PyThreadState* __tstate = wxPyBeginAllowThreads();
20974 result = (wxListView *)(arg1)->GetListView();
20975 wxPyEndAllowThreads(__tstate);
20976 if (PyErr_Occurred()) SWIG_fail;
20977 }
20978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
20979 return resultobj;
20980 fail:
20981 return NULL;
20982 }
20983
20984
20985 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20986 PyObject *obj;
20987 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20988 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
20989 return SWIG_Py_Void();
20990 }
20991
20992 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20993 return SWIG_Python_InitShadowInstance(args);
20994 }
20995
20996 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20997 PyObject *resultobj = 0;
20998 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20999 int arg2 = (int) 0 ;
21000 int arg3 = (int) -1 ;
21001 int arg4 = (int) -1 ;
21002 wxListbookEvent *result = 0 ;
21003 int val1 ;
21004 int ecode1 = 0 ;
21005 int val2 ;
21006 int ecode2 = 0 ;
21007 int val3 ;
21008 int ecode3 = 0 ;
21009 int val4 ;
21010 int ecode4 = 0 ;
21011 PyObject * obj0 = 0 ;
21012 PyObject * obj1 = 0 ;
21013 PyObject * obj2 = 0 ;
21014 PyObject * obj3 = 0 ;
21015 char * kwnames[] = {
21016 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21017 };
21018
21019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21020 if (obj0) {
21021 ecode1 = SWIG_AsVal_int(obj0, &val1);
21022 if (!SWIG_IsOK(ecode1)) {
21023 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21024 }
21025 arg1 = static_cast< wxEventType >(val1);
21026 }
21027 if (obj1) {
21028 ecode2 = SWIG_AsVal_int(obj1, &val2);
21029 if (!SWIG_IsOK(ecode2)) {
21030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21031 }
21032 arg2 = static_cast< int >(val2);
21033 }
21034 if (obj2) {
21035 ecode3 = SWIG_AsVal_int(obj2, &val3);
21036 if (!SWIG_IsOK(ecode3)) {
21037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21038 }
21039 arg3 = static_cast< int >(val3);
21040 }
21041 if (obj3) {
21042 ecode4 = SWIG_AsVal_int(obj3, &val4);
21043 if (!SWIG_IsOK(ecode4)) {
21044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21045 }
21046 arg4 = static_cast< int >(val4);
21047 }
21048 {
21049 PyThreadState* __tstate = wxPyBeginAllowThreads();
21050 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21051 wxPyEndAllowThreads(__tstate);
21052 if (PyErr_Occurred()) SWIG_fail;
21053 }
21054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21055 return resultobj;
21056 fail:
21057 return NULL;
21058 }
21059
21060
21061 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21062 PyObject *obj;
21063 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21064 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21065 return SWIG_Py_Void();
21066 }
21067
21068 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21069 return SWIG_Python_InitShadowInstance(args);
21070 }
21071
21072 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21073 PyObject *resultobj = 0;
21074 wxWindow *arg1 = (wxWindow *) 0 ;
21075 int arg2 ;
21076 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21077 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21078 wxSize const &arg4_defvalue = wxDefaultSize ;
21079 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21080 long arg5 = (long) 0 ;
21081 wxString const &arg6_defvalue = wxPyEmptyString ;
21082 wxString *arg6 = (wxString *) &arg6_defvalue ;
21083 wxChoicebook *result = 0 ;
21084 void *argp1 = 0 ;
21085 int res1 = 0 ;
21086 int val2 ;
21087 int ecode2 = 0 ;
21088 wxPoint temp3 ;
21089 wxSize temp4 ;
21090 long val5 ;
21091 int ecode5 = 0 ;
21092 bool temp6 = false ;
21093 PyObject * obj0 = 0 ;
21094 PyObject * obj1 = 0 ;
21095 PyObject * obj2 = 0 ;
21096 PyObject * obj3 = 0 ;
21097 PyObject * obj4 = 0 ;
21098 PyObject * obj5 = 0 ;
21099 char * kwnames[] = {
21100 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21101 };
21102
21103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21105 if (!SWIG_IsOK(res1)) {
21106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21107 }
21108 arg1 = reinterpret_cast< wxWindow * >(argp1);
21109 ecode2 = SWIG_AsVal_int(obj1, &val2);
21110 if (!SWIG_IsOK(ecode2)) {
21111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21112 }
21113 arg2 = static_cast< int >(val2);
21114 if (obj2) {
21115 {
21116 arg3 = &temp3;
21117 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21118 }
21119 }
21120 if (obj3) {
21121 {
21122 arg4 = &temp4;
21123 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21124 }
21125 }
21126 if (obj4) {
21127 ecode5 = SWIG_AsVal_long(obj4, &val5);
21128 if (!SWIG_IsOK(ecode5)) {
21129 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21130 }
21131 arg5 = static_cast< long >(val5);
21132 }
21133 if (obj5) {
21134 {
21135 arg6 = wxString_in_helper(obj5);
21136 if (arg6 == NULL) SWIG_fail;
21137 temp6 = true;
21138 }
21139 }
21140 {
21141 if (!wxPyCheckForApp()) SWIG_fail;
21142 PyThreadState* __tstate = wxPyBeginAllowThreads();
21143 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21144 wxPyEndAllowThreads(__tstate);
21145 if (PyErr_Occurred()) SWIG_fail;
21146 }
21147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21148 {
21149 if (temp6)
21150 delete arg6;
21151 }
21152 return resultobj;
21153 fail:
21154 {
21155 if (temp6)
21156 delete arg6;
21157 }
21158 return NULL;
21159 }
21160
21161
21162 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21163 PyObject *resultobj = 0;
21164 wxChoicebook *result = 0 ;
21165
21166 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21167 {
21168 if (!wxPyCheckForApp()) SWIG_fail;
21169 PyThreadState* __tstate = wxPyBeginAllowThreads();
21170 result = (wxChoicebook *)new wxChoicebook();
21171 wxPyEndAllowThreads(__tstate);
21172 if (PyErr_Occurred()) SWIG_fail;
21173 }
21174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21175 return resultobj;
21176 fail:
21177 return NULL;
21178 }
21179
21180
21181 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21182 PyObject *resultobj = 0;
21183 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21184 wxWindow *arg2 = (wxWindow *) 0 ;
21185 int arg3 ;
21186 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21187 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21188 wxSize const &arg5_defvalue = wxDefaultSize ;
21189 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21190 long arg6 = (long) 0 ;
21191 wxString const &arg7_defvalue = wxPyEmptyString ;
21192 wxString *arg7 = (wxString *) &arg7_defvalue ;
21193 bool result;
21194 void *argp1 = 0 ;
21195 int res1 = 0 ;
21196 void *argp2 = 0 ;
21197 int res2 = 0 ;
21198 int val3 ;
21199 int ecode3 = 0 ;
21200 wxPoint temp4 ;
21201 wxSize temp5 ;
21202 long val6 ;
21203 int ecode6 = 0 ;
21204 bool temp7 = false ;
21205 PyObject * obj0 = 0 ;
21206 PyObject * obj1 = 0 ;
21207 PyObject * obj2 = 0 ;
21208 PyObject * obj3 = 0 ;
21209 PyObject * obj4 = 0 ;
21210 PyObject * obj5 = 0 ;
21211 PyObject * obj6 = 0 ;
21212 char * kwnames[] = {
21213 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21214 };
21215
21216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21218 if (!SWIG_IsOK(res1)) {
21219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21220 }
21221 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21222 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21223 if (!SWIG_IsOK(res2)) {
21224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21225 }
21226 arg2 = reinterpret_cast< wxWindow * >(argp2);
21227 ecode3 = SWIG_AsVal_int(obj2, &val3);
21228 if (!SWIG_IsOK(ecode3)) {
21229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21230 }
21231 arg3 = static_cast< int >(val3);
21232 if (obj3) {
21233 {
21234 arg4 = &temp4;
21235 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21236 }
21237 }
21238 if (obj4) {
21239 {
21240 arg5 = &temp5;
21241 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21242 }
21243 }
21244 if (obj5) {
21245 ecode6 = SWIG_AsVal_long(obj5, &val6);
21246 if (!SWIG_IsOK(ecode6)) {
21247 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21248 }
21249 arg6 = static_cast< long >(val6);
21250 }
21251 if (obj6) {
21252 {
21253 arg7 = wxString_in_helper(obj6);
21254 if (arg7 == NULL) SWIG_fail;
21255 temp7 = true;
21256 }
21257 }
21258 {
21259 PyThreadState* __tstate = wxPyBeginAllowThreads();
21260 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21261 wxPyEndAllowThreads(__tstate);
21262 if (PyErr_Occurred()) SWIG_fail;
21263 }
21264 {
21265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21266 }
21267 {
21268 if (temp7)
21269 delete arg7;
21270 }
21271 return resultobj;
21272 fail:
21273 {
21274 if (temp7)
21275 delete arg7;
21276 }
21277 return NULL;
21278 }
21279
21280
21281 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21282 PyObject *resultobj = 0;
21283 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21284 wxChoice *result = 0 ;
21285 void *argp1 = 0 ;
21286 int res1 = 0 ;
21287 PyObject *swig_obj[1] ;
21288
21289 if (!args) SWIG_fail;
21290 swig_obj[0] = args;
21291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21292 if (!SWIG_IsOK(res1)) {
21293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21294 }
21295 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21296 {
21297 PyThreadState* __tstate = wxPyBeginAllowThreads();
21298 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21299 wxPyEndAllowThreads(__tstate);
21300 if (PyErr_Occurred()) SWIG_fail;
21301 }
21302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21303 return resultobj;
21304 fail:
21305 return NULL;
21306 }
21307
21308
21309 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21310 PyObject *obj;
21311 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21312 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21313 return SWIG_Py_Void();
21314 }
21315
21316 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21317 return SWIG_Python_InitShadowInstance(args);
21318 }
21319
21320 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21321 PyObject *resultobj = 0;
21322 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21323 int arg2 = (int) 0 ;
21324 int arg3 = (int) -1 ;
21325 int arg4 = (int) -1 ;
21326 wxChoicebookEvent *result = 0 ;
21327 int val1 ;
21328 int ecode1 = 0 ;
21329 int val2 ;
21330 int ecode2 = 0 ;
21331 int val3 ;
21332 int ecode3 = 0 ;
21333 int val4 ;
21334 int ecode4 = 0 ;
21335 PyObject * obj0 = 0 ;
21336 PyObject * obj1 = 0 ;
21337 PyObject * obj2 = 0 ;
21338 PyObject * obj3 = 0 ;
21339 char * kwnames[] = {
21340 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21341 };
21342
21343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21344 if (obj0) {
21345 ecode1 = SWIG_AsVal_int(obj0, &val1);
21346 if (!SWIG_IsOK(ecode1)) {
21347 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21348 }
21349 arg1 = static_cast< wxEventType >(val1);
21350 }
21351 if (obj1) {
21352 ecode2 = SWIG_AsVal_int(obj1, &val2);
21353 if (!SWIG_IsOK(ecode2)) {
21354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21355 }
21356 arg2 = static_cast< int >(val2);
21357 }
21358 if (obj2) {
21359 ecode3 = SWIG_AsVal_int(obj2, &val3);
21360 if (!SWIG_IsOK(ecode3)) {
21361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21362 }
21363 arg3 = static_cast< int >(val3);
21364 }
21365 if (obj3) {
21366 ecode4 = SWIG_AsVal_int(obj3, &val4);
21367 if (!SWIG_IsOK(ecode4)) {
21368 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21369 }
21370 arg4 = static_cast< int >(val4);
21371 }
21372 {
21373 PyThreadState* __tstate = wxPyBeginAllowThreads();
21374 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21375 wxPyEndAllowThreads(__tstate);
21376 if (PyErr_Occurred()) SWIG_fail;
21377 }
21378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21379 return resultobj;
21380 fail:
21381 return NULL;
21382 }
21383
21384
21385 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21386 PyObject *obj;
21387 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21388 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21389 return SWIG_Py_Void();
21390 }
21391
21392 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21393 return SWIG_Python_InitShadowInstance(args);
21394 }
21395
21396 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21397 PyObject *resultobj = 0;
21398 wxWindow *arg1 = (wxWindow *) 0 ;
21399 int arg2 ;
21400 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21401 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21402 wxSize const &arg4_defvalue = wxDefaultSize ;
21403 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21404 long arg5 = (long) wxBK_DEFAULT ;
21405 wxString const &arg6_defvalue = wxPyEmptyString ;
21406 wxString *arg6 = (wxString *) &arg6_defvalue ;
21407 wxTreebook *result = 0 ;
21408 void *argp1 = 0 ;
21409 int res1 = 0 ;
21410 int val2 ;
21411 int ecode2 = 0 ;
21412 wxPoint temp3 ;
21413 wxSize temp4 ;
21414 long val5 ;
21415 int ecode5 = 0 ;
21416 bool temp6 = false ;
21417 PyObject * obj0 = 0 ;
21418 PyObject * obj1 = 0 ;
21419 PyObject * obj2 = 0 ;
21420 PyObject * obj3 = 0 ;
21421 PyObject * obj4 = 0 ;
21422 PyObject * obj5 = 0 ;
21423 char * kwnames[] = {
21424 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21425 };
21426
21427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21429 if (!SWIG_IsOK(res1)) {
21430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21431 }
21432 arg1 = reinterpret_cast< wxWindow * >(argp1);
21433 ecode2 = SWIG_AsVal_int(obj1, &val2);
21434 if (!SWIG_IsOK(ecode2)) {
21435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21436 }
21437 arg2 = static_cast< int >(val2);
21438 if (obj2) {
21439 {
21440 arg3 = &temp3;
21441 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21442 }
21443 }
21444 if (obj3) {
21445 {
21446 arg4 = &temp4;
21447 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21448 }
21449 }
21450 if (obj4) {
21451 ecode5 = SWIG_AsVal_long(obj4, &val5);
21452 if (!SWIG_IsOK(ecode5)) {
21453 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21454 }
21455 arg5 = static_cast< long >(val5);
21456 }
21457 if (obj5) {
21458 {
21459 arg6 = wxString_in_helper(obj5);
21460 if (arg6 == NULL) SWIG_fail;
21461 temp6 = true;
21462 }
21463 }
21464 {
21465 if (!wxPyCheckForApp()) SWIG_fail;
21466 PyThreadState* __tstate = wxPyBeginAllowThreads();
21467 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21472 {
21473 if (temp6)
21474 delete arg6;
21475 }
21476 return resultobj;
21477 fail:
21478 {
21479 if (temp6)
21480 delete arg6;
21481 }
21482 return NULL;
21483 }
21484
21485
21486 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21487 PyObject *resultobj = 0;
21488 wxTreebook *result = 0 ;
21489
21490 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21491 {
21492 if (!wxPyCheckForApp()) SWIG_fail;
21493 PyThreadState* __tstate = wxPyBeginAllowThreads();
21494 result = (wxTreebook *)new wxTreebook();
21495 wxPyEndAllowThreads(__tstate);
21496 if (PyErr_Occurred()) SWIG_fail;
21497 }
21498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21499 return resultobj;
21500 fail:
21501 return NULL;
21502 }
21503
21504
21505 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21506 PyObject *resultobj = 0;
21507 wxTreebook *arg1 = (wxTreebook *) 0 ;
21508 wxWindow *arg2 = (wxWindow *) 0 ;
21509 int arg3 ;
21510 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21511 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21512 wxSize const &arg5_defvalue = wxDefaultSize ;
21513 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21514 long arg6 = (long) wxBK_DEFAULT ;
21515 wxString const &arg7_defvalue = wxPyEmptyString ;
21516 wxString *arg7 = (wxString *) &arg7_defvalue ;
21517 bool result;
21518 void *argp1 = 0 ;
21519 int res1 = 0 ;
21520 void *argp2 = 0 ;
21521 int res2 = 0 ;
21522 int val3 ;
21523 int ecode3 = 0 ;
21524 wxPoint temp4 ;
21525 wxSize temp5 ;
21526 long val6 ;
21527 int ecode6 = 0 ;
21528 bool temp7 = false ;
21529 PyObject * obj0 = 0 ;
21530 PyObject * obj1 = 0 ;
21531 PyObject * obj2 = 0 ;
21532 PyObject * obj3 = 0 ;
21533 PyObject * obj4 = 0 ;
21534 PyObject * obj5 = 0 ;
21535 PyObject * obj6 = 0 ;
21536 char * kwnames[] = {
21537 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21538 };
21539
21540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21542 if (!SWIG_IsOK(res1)) {
21543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21544 }
21545 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21546 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21547 if (!SWIG_IsOK(res2)) {
21548 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21549 }
21550 arg2 = reinterpret_cast< wxWindow * >(argp2);
21551 ecode3 = SWIG_AsVal_int(obj2, &val3);
21552 if (!SWIG_IsOK(ecode3)) {
21553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21554 }
21555 arg3 = static_cast< int >(val3);
21556 if (obj3) {
21557 {
21558 arg4 = &temp4;
21559 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21560 }
21561 }
21562 if (obj4) {
21563 {
21564 arg5 = &temp5;
21565 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21566 }
21567 }
21568 if (obj5) {
21569 ecode6 = SWIG_AsVal_long(obj5, &val6);
21570 if (!SWIG_IsOK(ecode6)) {
21571 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21572 }
21573 arg6 = static_cast< long >(val6);
21574 }
21575 if (obj6) {
21576 {
21577 arg7 = wxString_in_helper(obj6);
21578 if (arg7 == NULL) SWIG_fail;
21579 temp7 = true;
21580 }
21581 }
21582 {
21583 PyThreadState* __tstate = wxPyBeginAllowThreads();
21584 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21585 wxPyEndAllowThreads(__tstate);
21586 if (PyErr_Occurred()) SWIG_fail;
21587 }
21588 {
21589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21590 }
21591 {
21592 if (temp7)
21593 delete arg7;
21594 }
21595 return resultobj;
21596 fail:
21597 {
21598 if (temp7)
21599 delete arg7;
21600 }
21601 return NULL;
21602 }
21603
21604
21605 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21606 PyObject *resultobj = 0;
21607 wxTreebook *arg1 = (wxTreebook *) 0 ;
21608 size_t arg2 ;
21609 wxWindow *arg3 = (wxWindow *) 0 ;
21610 wxString *arg4 = 0 ;
21611 bool arg5 = (bool) false ;
21612 int arg6 = (int) wxNOT_FOUND ;
21613 bool result;
21614 void *argp1 = 0 ;
21615 int res1 = 0 ;
21616 size_t val2 ;
21617 int ecode2 = 0 ;
21618 void *argp3 = 0 ;
21619 int res3 = 0 ;
21620 bool temp4 = false ;
21621 bool val5 ;
21622 int ecode5 = 0 ;
21623 int val6 ;
21624 int ecode6 = 0 ;
21625 PyObject * obj0 = 0 ;
21626 PyObject * obj1 = 0 ;
21627 PyObject * obj2 = 0 ;
21628 PyObject * obj3 = 0 ;
21629 PyObject * obj4 = 0 ;
21630 PyObject * obj5 = 0 ;
21631 char * kwnames[] = {
21632 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21633 };
21634
21635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21637 if (!SWIG_IsOK(res1)) {
21638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21639 }
21640 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21641 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21642 if (!SWIG_IsOK(ecode2)) {
21643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21644 }
21645 arg2 = static_cast< size_t >(val2);
21646 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21647 if (!SWIG_IsOK(res3)) {
21648 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21649 }
21650 arg3 = reinterpret_cast< wxWindow * >(argp3);
21651 {
21652 arg4 = wxString_in_helper(obj3);
21653 if (arg4 == NULL) SWIG_fail;
21654 temp4 = true;
21655 }
21656 if (obj4) {
21657 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21658 if (!SWIG_IsOK(ecode5)) {
21659 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21660 }
21661 arg5 = static_cast< bool >(val5);
21662 }
21663 if (obj5) {
21664 ecode6 = SWIG_AsVal_int(obj5, &val6);
21665 if (!SWIG_IsOK(ecode6)) {
21666 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21667 }
21668 arg6 = static_cast< int >(val6);
21669 }
21670 {
21671 PyThreadState* __tstate = wxPyBeginAllowThreads();
21672 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21673 wxPyEndAllowThreads(__tstate);
21674 if (PyErr_Occurred()) SWIG_fail;
21675 }
21676 {
21677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21678 }
21679 {
21680 if (temp4)
21681 delete arg4;
21682 }
21683 return resultobj;
21684 fail:
21685 {
21686 if (temp4)
21687 delete arg4;
21688 }
21689 return NULL;
21690 }
21691
21692
21693 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21694 PyObject *resultobj = 0;
21695 wxTreebook *arg1 = (wxTreebook *) 0 ;
21696 wxWindow *arg2 = (wxWindow *) 0 ;
21697 wxString *arg3 = 0 ;
21698 bool arg4 = (bool) false ;
21699 int arg5 = (int) wxNOT_FOUND ;
21700 bool result;
21701 void *argp1 = 0 ;
21702 int res1 = 0 ;
21703 void *argp2 = 0 ;
21704 int res2 = 0 ;
21705 bool temp3 = false ;
21706 bool val4 ;
21707 int ecode4 = 0 ;
21708 int val5 ;
21709 int ecode5 = 0 ;
21710 PyObject * obj0 = 0 ;
21711 PyObject * obj1 = 0 ;
21712 PyObject * obj2 = 0 ;
21713 PyObject * obj3 = 0 ;
21714 PyObject * obj4 = 0 ;
21715 char * kwnames[] = {
21716 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21717 };
21718
21719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21721 if (!SWIG_IsOK(res1)) {
21722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21723 }
21724 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21725 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21726 if (!SWIG_IsOK(res2)) {
21727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21728 }
21729 arg2 = reinterpret_cast< wxWindow * >(argp2);
21730 {
21731 arg3 = wxString_in_helper(obj2);
21732 if (arg3 == NULL) SWIG_fail;
21733 temp3 = true;
21734 }
21735 if (obj3) {
21736 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21737 if (!SWIG_IsOK(ecode4)) {
21738 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21739 }
21740 arg4 = static_cast< bool >(val4);
21741 }
21742 if (obj4) {
21743 ecode5 = SWIG_AsVal_int(obj4, &val5);
21744 if (!SWIG_IsOK(ecode5)) {
21745 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21746 }
21747 arg5 = static_cast< int >(val5);
21748 }
21749 {
21750 PyThreadState* __tstate = wxPyBeginAllowThreads();
21751 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21752 wxPyEndAllowThreads(__tstate);
21753 if (PyErr_Occurred()) SWIG_fail;
21754 }
21755 {
21756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21757 }
21758 {
21759 if (temp3)
21760 delete arg3;
21761 }
21762 return resultobj;
21763 fail:
21764 {
21765 if (temp3)
21766 delete arg3;
21767 }
21768 return NULL;
21769 }
21770
21771
21772 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21773 PyObject *resultobj = 0;
21774 wxTreebook *arg1 = (wxTreebook *) 0 ;
21775 size_t arg2 ;
21776 bool result;
21777 void *argp1 = 0 ;
21778 int res1 = 0 ;
21779 size_t val2 ;
21780 int ecode2 = 0 ;
21781 PyObject * obj0 = 0 ;
21782 PyObject * obj1 = 0 ;
21783 char * kwnames[] = {
21784 (char *) "self",(char *) "pos", NULL
21785 };
21786
21787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21789 if (!SWIG_IsOK(res1)) {
21790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21791 }
21792 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21793 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21794 if (!SWIG_IsOK(ecode2)) {
21795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21796 }
21797 arg2 = static_cast< size_t >(val2);
21798 {
21799 PyThreadState* __tstate = wxPyBeginAllowThreads();
21800 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21801 wxPyEndAllowThreads(__tstate);
21802 if (PyErr_Occurred()) SWIG_fail;
21803 }
21804 {
21805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21806 }
21807 return resultobj;
21808 fail:
21809 return NULL;
21810 }
21811
21812
21813 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21814 PyObject *resultobj = 0;
21815 wxTreebook *arg1 = (wxTreebook *) 0 ;
21816 size_t arg2 ;
21817 bool arg3 = (bool) true ;
21818 bool result;
21819 void *argp1 = 0 ;
21820 int res1 = 0 ;
21821 size_t val2 ;
21822 int ecode2 = 0 ;
21823 bool val3 ;
21824 int ecode3 = 0 ;
21825 PyObject * obj0 = 0 ;
21826 PyObject * obj1 = 0 ;
21827 PyObject * obj2 = 0 ;
21828 char * kwnames[] = {
21829 (char *) "self",(char *) "pos",(char *) "expand", NULL
21830 };
21831
21832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21834 if (!SWIG_IsOK(res1)) {
21835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21836 }
21837 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21838 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21839 if (!SWIG_IsOK(ecode2)) {
21840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21841 }
21842 arg2 = static_cast< size_t >(val2);
21843 if (obj2) {
21844 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21845 if (!SWIG_IsOK(ecode3)) {
21846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21847 }
21848 arg3 = static_cast< bool >(val3);
21849 }
21850 {
21851 PyThreadState* __tstate = wxPyBeginAllowThreads();
21852 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21853 wxPyEndAllowThreads(__tstate);
21854 if (PyErr_Occurred()) SWIG_fail;
21855 }
21856 {
21857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21858 }
21859 return resultobj;
21860 fail:
21861 return NULL;
21862 }
21863
21864
21865 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21866 PyObject *resultobj = 0;
21867 wxTreebook *arg1 = (wxTreebook *) 0 ;
21868 size_t arg2 ;
21869 bool result;
21870 void *argp1 = 0 ;
21871 int res1 = 0 ;
21872 size_t val2 ;
21873 int ecode2 = 0 ;
21874 PyObject * obj0 = 0 ;
21875 PyObject * obj1 = 0 ;
21876 char * kwnames[] = {
21877 (char *) "self",(char *) "pos", NULL
21878 };
21879
21880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21882 if (!SWIG_IsOK(res1)) {
21883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21884 }
21885 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21886 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21887 if (!SWIG_IsOK(ecode2)) {
21888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21889 }
21890 arg2 = static_cast< size_t >(val2);
21891 {
21892 PyThreadState* __tstate = wxPyBeginAllowThreads();
21893 result = (bool)(arg1)->CollapseNode(arg2);
21894 wxPyEndAllowThreads(__tstate);
21895 if (PyErr_Occurred()) SWIG_fail;
21896 }
21897 {
21898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21899 }
21900 return resultobj;
21901 fail:
21902 return NULL;
21903 }
21904
21905
21906 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21907 PyObject *resultobj = 0;
21908 wxTreebook *arg1 = (wxTreebook *) 0 ;
21909 size_t arg2 ;
21910 int result;
21911 void *argp1 = 0 ;
21912 int res1 = 0 ;
21913 size_t val2 ;
21914 int ecode2 = 0 ;
21915 PyObject * obj0 = 0 ;
21916 PyObject * obj1 = 0 ;
21917 char * kwnames[] = {
21918 (char *) "self",(char *) "pos", NULL
21919 };
21920
21921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21923 if (!SWIG_IsOK(res1)) {
21924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21925 }
21926 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21927 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21928 if (!SWIG_IsOK(ecode2)) {
21929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21930 }
21931 arg2 = static_cast< size_t >(val2);
21932 {
21933 PyThreadState* __tstate = wxPyBeginAllowThreads();
21934 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
21935 wxPyEndAllowThreads(__tstate);
21936 if (PyErr_Occurred()) SWIG_fail;
21937 }
21938 resultobj = SWIG_From_int(static_cast< int >(result));
21939 return resultobj;
21940 fail:
21941 return NULL;
21942 }
21943
21944
21945 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21946 PyObject *resultobj = 0;
21947 wxTreebook *arg1 = (wxTreebook *) 0 ;
21948 wxTreeCtrl *result = 0 ;
21949 void *argp1 = 0 ;
21950 int res1 = 0 ;
21951 PyObject *swig_obj[1] ;
21952
21953 if (!args) SWIG_fail;
21954 swig_obj[0] = args;
21955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21956 if (!SWIG_IsOK(res1)) {
21957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21958 }
21959 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21960 {
21961 PyThreadState* __tstate = wxPyBeginAllowThreads();
21962 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
21963 wxPyEndAllowThreads(__tstate);
21964 if (PyErr_Occurred()) SWIG_fail;
21965 }
21966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
21967 return resultobj;
21968 fail:
21969 return NULL;
21970 }
21971
21972
21973 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21974 PyObject *obj;
21975 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21976 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
21977 return SWIG_Py_Void();
21978 }
21979
21980 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21981 return SWIG_Python_InitShadowInstance(args);
21982 }
21983
21984 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21985 PyObject *resultobj = 0;
21986 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21987 int arg2 = (int) 0 ;
21988 int arg3 = (int) wxNOT_FOUND ;
21989 int arg4 = (int) wxNOT_FOUND ;
21990 wxTreebookEvent *result = 0 ;
21991 int val1 ;
21992 int ecode1 = 0 ;
21993 int val2 ;
21994 int ecode2 = 0 ;
21995 int val3 ;
21996 int ecode3 = 0 ;
21997 int val4 ;
21998 int ecode4 = 0 ;
21999 PyObject * obj0 = 0 ;
22000 PyObject * obj1 = 0 ;
22001 PyObject * obj2 = 0 ;
22002 PyObject * obj3 = 0 ;
22003 char * kwnames[] = {
22004 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22005 };
22006
22007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22008 if (obj0) {
22009 ecode1 = SWIG_AsVal_int(obj0, &val1);
22010 if (!SWIG_IsOK(ecode1)) {
22011 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22012 }
22013 arg1 = static_cast< wxEventType >(val1);
22014 }
22015 if (obj1) {
22016 ecode2 = SWIG_AsVal_int(obj1, &val2);
22017 if (!SWIG_IsOK(ecode2)) {
22018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22019 }
22020 arg2 = static_cast< int >(val2);
22021 }
22022 if (obj2) {
22023 ecode3 = SWIG_AsVal_int(obj2, &val3);
22024 if (!SWIG_IsOK(ecode3)) {
22025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22026 }
22027 arg3 = static_cast< int >(val3);
22028 }
22029 if (obj3) {
22030 ecode4 = SWIG_AsVal_int(obj3, &val4);
22031 if (!SWIG_IsOK(ecode4)) {
22032 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22033 }
22034 arg4 = static_cast< int >(val4);
22035 }
22036 {
22037 PyThreadState* __tstate = wxPyBeginAllowThreads();
22038 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22039 wxPyEndAllowThreads(__tstate);
22040 if (PyErr_Occurred()) SWIG_fail;
22041 }
22042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22043 return resultobj;
22044 fail:
22045 return NULL;
22046 }
22047
22048
22049 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22050 PyObject *obj;
22051 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22052 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22053 return SWIG_Py_Void();
22054 }
22055
22056 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22057 return SWIG_Python_InitShadowInstance(args);
22058 }
22059
22060 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22061 PyObject *resultobj = 0;
22062 wxWindow *arg1 = (wxWindow *) 0 ;
22063 int arg2 ;
22064 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22065 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22066 wxSize const &arg4_defvalue = wxDefaultSize ;
22067 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22068 long arg5 = (long) wxBK_DEFAULT ;
22069 wxString const &arg6_defvalue = wxPyEmptyString ;
22070 wxString *arg6 = (wxString *) &arg6_defvalue ;
22071 wxToolbook *result = 0 ;
22072 void *argp1 = 0 ;
22073 int res1 = 0 ;
22074 int val2 ;
22075 int ecode2 = 0 ;
22076 wxPoint temp3 ;
22077 wxSize temp4 ;
22078 long val5 ;
22079 int ecode5 = 0 ;
22080 bool temp6 = false ;
22081 PyObject * obj0 = 0 ;
22082 PyObject * obj1 = 0 ;
22083 PyObject * obj2 = 0 ;
22084 PyObject * obj3 = 0 ;
22085 PyObject * obj4 = 0 ;
22086 PyObject * obj5 = 0 ;
22087 char * kwnames[] = {
22088 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22089 };
22090
22091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22093 if (!SWIG_IsOK(res1)) {
22094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22095 }
22096 arg1 = reinterpret_cast< wxWindow * >(argp1);
22097 ecode2 = SWIG_AsVal_int(obj1, &val2);
22098 if (!SWIG_IsOK(ecode2)) {
22099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22100 }
22101 arg2 = static_cast< int >(val2);
22102 if (obj2) {
22103 {
22104 arg3 = &temp3;
22105 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22106 }
22107 }
22108 if (obj3) {
22109 {
22110 arg4 = &temp4;
22111 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22112 }
22113 }
22114 if (obj4) {
22115 ecode5 = SWIG_AsVal_long(obj4, &val5);
22116 if (!SWIG_IsOK(ecode5)) {
22117 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22118 }
22119 arg5 = static_cast< long >(val5);
22120 }
22121 if (obj5) {
22122 {
22123 arg6 = wxString_in_helper(obj5);
22124 if (arg6 == NULL) SWIG_fail;
22125 temp6 = true;
22126 }
22127 }
22128 {
22129 PyThreadState* __tstate = wxPyBeginAllowThreads();
22130 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22131 wxPyEndAllowThreads(__tstate);
22132 if (PyErr_Occurred()) SWIG_fail;
22133 }
22134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22135 {
22136 if (temp6)
22137 delete arg6;
22138 }
22139 return resultobj;
22140 fail:
22141 {
22142 if (temp6)
22143 delete arg6;
22144 }
22145 return NULL;
22146 }
22147
22148
22149 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22150 PyObject *resultobj = 0;
22151 wxToolbook *result = 0 ;
22152
22153 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22154 {
22155 PyThreadState* __tstate = wxPyBeginAllowThreads();
22156 result = (wxToolbook *)new wxToolbook();
22157 wxPyEndAllowThreads(__tstate);
22158 if (PyErr_Occurred()) SWIG_fail;
22159 }
22160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22161 return resultobj;
22162 fail:
22163 return NULL;
22164 }
22165
22166
22167 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22168 PyObject *resultobj = 0;
22169 wxToolbook *arg1 = (wxToolbook *) 0 ;
22170 wxWindow *arg2 = (wxWindow *) 0 ;
22171 int arg3 ;
22172 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22173 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22174 wxSize const &arg5_defvalue = wxDefaultSize ;
22175 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22176 long arg6 = (long) 0 ;
22177 wxString const &arg7_defvalue = wxEmptyString ;
22178 wxString *arg7 = (wxString *) &arg7_defvalue ;
22179 bool result;
22180 void *argp1 = 0 ;
22181 int res1 = 0 ;
22182 void *argp2 = 0 ;
22183 int res2 = 0 ;
22184 int val3 ;
22185 int ecode3 = 0 ;
22186 wxPoint temp4 ;
22187 wxSize temp5 ;
22188 long val6 ;
22189 int ecode6 = 0 ;
22190 bool temp7 = false ;
22191 PyObject * obj0 = 0 ;
22192 PyObject * obj1 = 0 ;
22193 PyObject * obj2 = 0 ;
22194 PyObject * obj3 = 0 ;
22195 PyObject * obj4 = 0 ;
22196 PyObject * obj5 = 0 ;
22197 PyObject * obj6 = 0 ;
22198 char * kwnames[] = {
22199 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22200 };
22201
22202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22204 if (!SWIG_IsOK(res1)) {
22205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22206 }
22207 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22208 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22209 if (!SWIG_IsOK(res2)) {
22210 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22211 }
22212 arg2 = reinterpret_cast< wxWindow * >(argp2);
22213 ecode3 = SWIG_AsVal_int(obj2, &val3);
22214 if (!SWIG_IsOK(ecode3)) {
22215 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22216 }
22217 arg3 = static_cast< int >(val3);
22218 if (obj3) {
22219 {
22220 arg4 = &temp4;
22221 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22222 }
22223 }
22224 if (obj4) {
22225 {
22226 arg5 = &temp5;
22227 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22228 }
22229 }
22230 if (obj5) {
22231 ecode6 = SWIG_AsVal_long(obj5, &val6);
22232 if (!SWIG_IsOK(ecode6)) {
22233 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22234 }
22235 arg6 = static_cast< long >(val6);
22236 }
22237 if (obj6) {
22238 {
22239 arg7 = wxString_in_helper(obj6);
22240 if (arg7 == NULL) SWIG_fail;
22241 temp7 = true;
22242 }
22243 }
22244 {
22245 PyThreadState* __tstate = wxPyBeginAllowThreads();
22246 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22247 wxPyEndAllowThreads(__tstate);
22248 if (PyErr_Occurred()) SWIG_fail;
22249 }
22250 {
22251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22252 }
22253 {
22254 if (temp7)
22255 delete arg7;
22256 }
22257 return resultobj;
22258 fail:
22259 {
22260 if (temp7)
22261 delete arg7;
22262 }
22263 return NULL;
22264 }
22265
22266
22267 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22268 PyObject *resultobj = 0;
22269 wxToolbook *arg1 = (wxToolbook *) 0 ;
22270 wxToolBarBase *result = 0 ;
22271 void *argp1 = 0 ;
22272 int res1 = 0 ;
22273 PyObject *swig_obj[1] ;
22274
22275 if (!args) SWIG_fail;
22276 swig_obj[0] = args;
22277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22278 if (!SWIG_IsOK(res1)) {
22279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22280 }
22281 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22282 {
22283 PyThreadState* __tstate = wxPyBeginAllowThreads();
22284 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22285 wxPyEndAllowThreads(__tstate);
22286 if (PyErr_Occurred()) SWIG_fail;
22287 }
22288 {
22289 resultobj = wxPyMake_wxObject(result, (bool)0);
22290 }
22291 return resultobj;
22292 fail:
22293 return NULL;
22294 }
22295
22296
22297 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22298 PyObject *resultobj = 0;
22299 wxToolbook *arg1 = (wxToolbook *) 0 ;
22300 void *argp1 = 0 ;
22301 int res1 = 0 ;
22302 PyObject *swig_obj[1] ;
22303
22304 if (!args) SWIG_fail;
22305 swig_obj[0] = args;
22306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22307 if (!SWIG_IsOK(res1)) {
22308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22309 }
22310 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22311 {
22312 PyThreadState* __tstate = wxPyBeginAllowThreads();
22313 (arg1)->Realize();
22314 wxPyEndAllowThreads(__tstate);
22315 if (PyErr_Occurred()) SWIG_fail;
22316 }
22317 resultobj = SWIG_Py_Void();
22318 return resultobj;
22319 fail:
22320 return NULL;
22321 }
22322
22323
22324 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22325 PyObject *obj;
22326 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22327 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22328 return SWIG_Py_Void();
22329 }
22330
22331 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22332 return SWIG_Python_InitShadowInstance(args);
22333 }
22334
22335 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22336 PyObject *resultobj = 0;
22337 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22338 int arg2 = (int) 0 ;
22339 int arg3 = (int) wxNOT_FOUND ;
22340 int arg4 = (int) wxNOT_FOUND ;
22341 wxToolbookEvent *result = 0 ;
22342 int val1 ;
22343 int ecode1 = 0 ;
22344 int val2 ;
22345 int ecode2 = 0 ;
22346 int val3 ;
22347 int ecode3 = 0 ;
22348 int val4 ;
22349 int ecode4 = 0 ;
22350 PyObject * obj0 = 0 ;
22351 PyObject * obj1 = 0 ;
22352 PyObject * obj2 = 0 ;
22353 PyObject * obj3 = 0 ;
22354 char * kwnames[] = {
22355 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22356 };
22357
22358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22359 if (obj0) {
22360 ecode1 = SWIG_AsVal_int(obj0, &val1);
22361 if (!SWIG_IsOK(ecode1)) {
22362 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22363 }
22364 arg1 = static_cast< wxEventType >(val1);
22365 }
22366 if (obj1) {
22367 ecode2 = SWIG_AsVal_int(obj1, &val2);
22368 if (!SWIG_IsOK(ecode2)) {
22369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22370 }
22371 arg2 = static_cast< int >(val2);
22372 }
22373 if (obj2) {
22374 ecode3 = SWIG_AsVal_int(obj2, &val3);
22375 if (!SWIG_IsOK(ecode3)) {
22376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22377 }
22378 arg3 = static_cast< int >(val3);
22379 }
22380 if (obj3) {
22381 ecode4 = SWIG_AsVal_int(obj3, &val4);
22382 if (!SWIG_IsOK(ecode4)) {
22383 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22384 }
22385 arg4 = static_cast< int >(val4);
22386 }
22387 {
22388 PyThreadState* __tstate = wxPyBeginAllowThreads();
22389 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22390 wxPyEndAllowThreads(__tstate);
22391 if (PyErr_Occurred()) SWIG_fail;
22392 }
22393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22394 return resultobj;
22395 fail:
22396 return NULL;
22397 }
22398
22399
22400 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22401 PyObject *obj;
22402 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22403 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22404 return SWIG_Py_Void();
22405 }
22406
22407 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22408 return SWIG_Python_InitShadowInstance(args);
22409 }
22410
22411 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22412 PyObject *resultobj = 0;
22413 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22414 int result;
22415 void *argp1 = 0 ;
22416 int res1 = 0 ;
22417 PyObject *swig_obj[1] ;
22418
22419 if (!args) SWIG_fail;
22420 swig_obj[0] = args;
22421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22422 if (!SWIG_IsOK(res1)) {
22423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22424 }
22425 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22426 {
22427 PyThreadState* __tstate = wxPyBeginAllowThreads();
22428 result = (int)(arg1)->GetId();
22429 wxPyEndAllowThreads(__tstate);
22430 if (PyErr_Occurred()) SWIG_fail;
22431 }
22432 resultobj = SWIG_From_int(static_cast< int >(result));
22433 return resultobj;
22434 fail:
22435 return NULL;
22436 }
22437
22438
22439 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22440 PyObject *resultobj = 0;
22441 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22442 wxControl *result = 0 ;
22443 void *argp1 = 0 ;
22444 int res1 = 0 ;
22445 PyObject *swig_obj[1] ;
22446
22447 if (!args) SWIG_fail;
22448 swig_obj[0] = args;
22449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22450 if (!SWIG_IsOK(res1)) {
22451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22452 }
22453 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22454 {
22455 PyThreadState* __tstate = wxPyBeginAllowThreads();
22456 result = (wxControl *)(arg1)->GetControl();
22457 wxPyEndAllowThreads(__tstate);
22458 if (PyErr_Occurred()) SWIG_fail;
22459 }
22460 {
22461 resultobj = wxPyMake_wxObject(result, 0);
22462 }
22463 return resultobj;
22464 fail:
22465 return NULL;
22466 }
22467
22468
22469 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22470 PyObject *resultobj = 0;
22471 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22472 wxToolBarBase *result = 0 ;
22473 void *argp1 = 0 ;
22474 int res1 = 0 ;
22475 PyObject *swig_obj[1] ;
22476
22477 if (!args) SWIG_fail;
22478 swig_obj[0] = args;
22479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22480 if (!SWIG_IsOK(res1)) {
22481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22482 }
22483 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22484 {
22485 PyThreadState* __tstate = wxPyBeginAllowThreads();
22486 result = (wxToolBarBase *)(arg1)->GetToolBar();
22487 wxPyEndAllowThreads(__tstate);
22488 if (PyErr_Occurred()) SWIG_fail;
22489 }
22490 {
22491 resultobj = wxPyMake_wxObject(result, (bool)0);
22492 }
22493 return resultobj;
22494 fail:
22495 return NULL;
22496 }
22497
22498
22499 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22500 PyObject *resultobj = 0;
22501 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22502 int result;
22503 void *argp1 = 0 ;
22504 int res1 = 0 ;
22505 PyObject *swig_obj[1] ;
22506
22507 if (!args) SWIG_fail;
22508 swig_obj[0] = args;
22509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22510 if (!SWIG_IsOK(res1)) {
22511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22512 }
22513 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22514 {
22515 PyThreadState* __tstate = wxPyBeginAllowThreads();
22516 result = (int)(arg1)->IsButton();
22517 wxPyEndAllowThreads(__tstate);
22518 if (PyErr_Occurred()) SWIG_fail;
22519 }
22520 resultobj = SWIG_From_int(static_cast< int >(result));
22521 return resultobj;
22522 fail:
22523 return NULL;
22524 }
22525
22526
22527 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22528 PyObject *resultobj = 0;
22529 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22530 int result;
22531 void *argp1 = 0 ;
22532 int res1 = 0 ;
22533 PyObject *swig_obj[1] ;
22534
22535 if (!args) SWIG_fail;
22536 swig_obj[0] = args;
22537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22538 if (!SWIG_IsOK(res1)) {
22539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22540 }
22541 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22542 {
22543 PyThreadState* __tstate = wxPyBeginAllowThreads();
22544 result = (int)(arg1)->IsControl();
22545 wxPyEndAllowThreads(__tstate);
22546 if (PyErr_Occurred()) SWIG_fail;
22547 }
22548 resultobj = SWIG_From_int(static_cast< int >(result));
22549 return resultobj;
22550 fail:
22551 return NULL;
22552 }
22553
22554
22555 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22556 PyObject *resultobj = 0;
22557 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22558 int result;
22559 void *argp1 = 0 ;
22560 int res1 = 0 ;
22561 PyObject *swig_obj[1] ;
22562
22563 if (!args) SWIG_fail;
22564 swig_obj[0] = args;
22565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22566 if (!SWIG_IsOK(res1)) {
22567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22568 }
22569 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22570 {
22571 PyThreadState* __tstate = wxPyBeginAllowThreads();
22572 result = (int)(arg1)->IsSeparator();
22573 wxPyEndAllowThreads(__tstate);
22574 if (PyErr_Occurred()) SWIG_fail;
22575 }
22576 resultobj = SWIG_From_int(static_cast< int >(result));
22577 return resultobj;
22578 fail:
22579 return NULL;
22580 }
22581
22582
22583 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22584 PyObject *resultobj = 0;
22585 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22586 int result;
22587 void *argp1 = 0 ;
22588 int res1 = 0 ;
22589 PyObject *swig_obj[1] ;
22590
22591 if (!args) SWIG_fail;
22592 swig_obj[0] = args;
22593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22594 if (!SWIG_IsOK(res1)) {
22595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22596 }
22597 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22598 {
22599 PyThreadState* __tstate = wxPyBeginAllowThreads();
22600 result = (int)(arg1)->GetStyle();
22601 wxPyEndAllowThreads(__tstate);
22602 if (PyErr_Occurred()) SWIG_fail;
22603 }
22604 resultobj = SWIG_From_int(static_cast< int >(result));
22605 return resultobj;
22606 fail:
22607 return NULL;
22608 }
22609
22610
22611 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22612 PyObject *resultobj = 0;
22613 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22614 wxItemKind result;
22615 void *argp1 = 0 ;
22616 int res1 = 0 ;
22617 PyObject *swig_obj[1] ;
22618
22619 if (!args) SWIG_fail;
22620 swig_obj[0] = args;
22621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22622 if (!SWIG_IsOK(res1)) {
22623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22624 }
22625 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22626 {
22627 PyThreadState* __tstate = wxPyBeginAllowThreads();
22628 result = (wxItemKind)(arg1)->GetKind();
22629 wxPyEndAllowThreads(__tstate);
22630 if (PyErr_Occurred()) SWIG_fail;
22631 }
22632 resultobj = SWIG_From_int(static_cast< int >(result));
22633 return resultobj;
22634 fail:
22635 return NULL;
22636 }
22637
22638
22639 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22640 PyObject *resultobj = 0;
22641 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22642 bool result;
22643 void *argp1 = 0 ;
22644 int res1 = 0 ;
22645 PyObject *swig_obj[1] ;
22646
22647 if (!args) SWIG_fail;
22648 swig_obj[0] = args;
22649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22650 if (!SWIG_IsOK(res1)) {
22651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22652 }
22653 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22654 {
22655 PyThreadState* __tstate = wxPyBeginAllowThreads();
22656 result = (bool)(arg1)->IsEnabled();
22657 wxPyEndAllowThreads(__tstate);
22658 if (PyErr_Occurred()) SWIG_fail;
22659 }
22660 {
22661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22662 }
22663 return resultobj;
22664 fail:
22665 return NULL;
22666 }
22667
22668
22669 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22670 PyObject *resultobj = 0;
22671 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22672 bool result;
22673 void *argp1 = 0 ;
22674 int res1 = 0 ;
22675 PyObject *swig_obj[1] ;
22676
22677 if (!args) SWIG_fail;
22678 swig_obj[0] = args;
22679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22680 if (!SWIG_IsOK(res1)) {
22681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22682 }
22683 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22684 {
22685 PyThreadState* __tstate = wxPyBeginAllowThreads();
22686 result = (bool)(arg1)->IsToggled();
22687 wxPyEndAllowThreads(__tstate);
22688 if (PyErr_Occurred()) SWIG_fail;
22689 }
22690 {
22691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22692 }
22693 return resultobj;
22694 fail:
22695 return NULL;
22696 }
22697
22698
22699 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22700 PyObject *resultobj = 0;
22701 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22702 bool result;
22703 void *argp1 = 0 ;
22704 int res1 = 0 ;
22705 PyObject *swig_obj[1] ;
22706
22707 if (!args) SWIG_fail;
22708 swig_obj[0] = args;
22709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22710 if (!SWIG_IsOK(res1)) {
22711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22712 }
22713 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22714 {
22715 PyThreadState* __tstate = wxPyBeginAllowThreads();
22716 result = (bool)(arg1)->CanBeToggled();
22717 wxPyEndAllowThreads(__tstate);
22718 if (PyErr_Occurred()) SWIG_fail;
22719 }
22720 {
22721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22722 }
22723 return resultobj;
22724 fail:
22725 return NULL;
22726 }
22727
22728
22729 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22730 PyObject *resultobj = 0;
22731 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22732 wxBitmap *result = 0 ;
22733 void *argp1 = 0 ;
22734 int res1 = 0 ;
22735 PyObject *swig_obj[1] ;
22736
22737 if (!args) SWIG_fail;
22738 swig_obj[0] = args;
22739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22740 if (!SWIG_IsOK(res1)) {
22741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22742 }
22743 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22744 {
22745 PyThreadState* __tstate = wxPyBeginAllowThreads();
22746 {
22747 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22748 result = (wxBitmap *) &_result_ref;
22749 }
22750 wxPyEndAllowThreads(__tstate);
22751 if (PyErr_Occurred()) SWIG_fail;
22752 }
22753 {
22754 wxBitmap* resultptr = new wxBitmap(*result);
22755 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22756 }
22757 return resultobj;
22758 fail:
22759 return NULL;
22760 }
22761
22762
22763 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22764 PyObject *resultobj = 0;
22765 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22766 wxBitmap *result = 0 ;
22767 void *argp1 = 0 ;
22768 int res1 = 0 ;
22769 PyObject *swig_obj[1] ;
22770
22771 if (!args) SWIG_fail;
22772 swig_obj[0] = args;
22773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22774 if (!SWIG_IsOK(res1)) {
22775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22776 }
22777 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22778 {
22779 PyThreadState* __tstate = wxPyBeginAllowThreads();
22780 {
22781 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22782 result = (wxBitmap *) &_result_ref;
22783 }
22784 wxPyEndAllowThreads(__tstate);
22785 if (PyErr_Occurred()) SWIG_fail;
22786 }
22787 {
22788 wxBitmap* resultptr = new wxBitmap(*result);
22789 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22790 }
22791 return resultobj;
22792 fail:
22793 return NULL;
22794 }
22795
22796
22797 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22798 PyObject *resultobj = 0;
22799 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22800 wxBitmap result;
22801 void *argp1 = 0 ;
22802 int res1 = 0 ;
22803 PyObject *swig_obj[1] ;
22804
22805 if (!args) SWIG_fail;
22806 swig_obj[0] = args;
22807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22808 if (!SWIG_IsOK(res1)) {
22809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22810 }
22811 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22812 {
22813 PyThreadState* __tstate = wxPyBeginAllowThreads();
22814 result = (arg1)->GetBitmap();
22815 wxPyEndAllowThreads(__tstate);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 }
22818 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22819 return resultobj;
22820 fail:
22821 return NULL;
22822 }
22823
22824
22825 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22826 PyObject *resultobj = 0;
22827 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22828 wxString result;
22829 void *argp1 = 0 ;
22830 int res1 = 0 ;
22831 PyObject *swig_obj[1] ;
22832
22833 if (!args) SWIG_fail;
22834 swig_obj[0] = args;
22835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22836 if (!SWIG_IsOK(res1)) {
22837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22838 }
22839 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22840 {
22841 PyThreadState* __tstate = wxPyBeginAllowThreads();
22842 result = (arg1)->GetLabel();
22843 wxPyEndAllowThreads(__tstate);
22844 if (PyErr_Occurred()) SWIG_fail;
22845 }
22846 {
22847 #if wxUSE_UNICODE
22848 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22849 #else
22850 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22851 #endif
22852 }
22853 return resultobj;
22854 fail:
22855 return NULL;
22856 }
22857
22858
22859 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22860 PyObject *resultobj = 0;
22861 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22862 wxString result;
22863 void *argp1 = 0 ;
22864 int res1 = 0 ;
22865 PyObject *swig_obj[1] ;
22866
22867 if (!args) SWIG_fail;
22868 swig_obj[0] = args;
22869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22870 if (!SWIG_IsOK(res1)) {
22871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22872 }
22873 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22874 {
22875 PyThreadState* __tstate = wxPyBeginAllowThreads();
22876 result = (arg1)->GetShortHelp();
22877 wxPyEndAllowThreads(__tstate);
22878 if (PyErr_Occurred()) SWIG_fail;
22879 }
22880 {
22881 #if wxUSE_UNICODE
22882 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22883 #else
22884 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22885 #endif
22886 }
22887 return resultobj;
22888 fail:
22889 return NULL;
22890 }
22891
22892
22893 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22894 PyObject *resultobj = 0;
22895 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22896 wxString result;
22897 void *argp1 = 0 ;
22898 int res1 = 0 ;
22899 PyObject *swig_obj[1] ;
22900
22901 if (!args) SWIG_fail;
22902 swig_obj[0] = args;
22903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22904 if (!SWIG_IsOK(res1)) {
22905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22906 }
22907 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22908 {
22909 PyThreadState* __tstate = wxPyBeginAllowThreads();
22910 result = (arg1)->GetLongHelp();
22911 wxPyEndAllowThreads(__tstate);
22912 if (PyErr_Occurred()) SWIG_fail;
22913 }
22914 {
22915 #if wxUSE_UNICODE
22916 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22917 #else
22918 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22919 #endif
22920 }
22921 return resultobj;
22922 fail:
22923 return NULL;
22924 }
22925
22926
22927 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22928 PyObject *resultobj = 0;
22929 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22930 bool arg2 ;
22931 bool result;
22932 void *argp1 = 0 ;
22933 int res1 = 0 ;
22934 bool val2 ;
22935 int ecode2 = 0 ;
22936 PyObject * obj0 = 0 ;
22937 PyObject * obj1 = 0 ;
22938 char * kwnames[] = {
22939 (char *) "self",(char *) "enable", NULL
22940 };
22941
22942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
22943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22944 if (!SWIG_IsOK(res1)) {
22945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22946 }
22947 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22948 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22949 if (!SWIG_IsOK(ecode2)) {
22950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
22951 }
22952 arg2 = static_cast< bool >(val2);
22953 {
22954 PyThreadState* __tstate = wxPyBeginAllowThreads();
22955 result = (bool)(arg1)->Enable(arg2);
22956 wxPyEndAllowThreads(__tstate);
22957 if (PyErr_Occurred()) SWIG_fail;
22958 }
22959 {
22960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22961 }
22962 return resultobj;
22963 fail:
22964 return NULL;
22965 }
22966
22967
22968 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22969 PyObject *resultobj = 0;
22970 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22971 void *argp1 = 0 ;
22972 int res1 = 0 ;
22973 PyObject *swig_obj[1] ;
22974
22975 if (!args) SWIG_fail;
22976 swig_obj[0] = args;
22977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22978 if (!SWIG_IsOK(res1)) {
22979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22980 }
22981 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22982 {
22983 PyThreadState* __tstate = wxPyBeginAllowThreads();
22984 (arg1)->Toggle();
22985 wxPyEndAllowThreads(__tstate);
22986 if (PyErr_Occurred()) SWIG_fail;
22987 }
22988 resultobj = SWIG_Py_Void();
22989 return resultobj;
22990 fail:
22991 return NULL;
22992 }
22993
22994
22995 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22996 PyObject *resultobj = 0;
22997 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22998 bool arg2 ;
22999 bool result;
23000 void *argp1 = 0 ;
23001 int res1 = 0 ;
23002 bool val2 ;
23003 int ecode2 = 0 ;
23004 PyObject * obj0 = 0 ;
23005 PyObject * obj1 = 0 ;
23006 char * kwnames[] = {
23007 (char *) "self",(char *) "toggle", NULL
23008 };
23009
23010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23012 if (!SWIG_IsOK(res1)) {
23013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23014 }
23015 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23016 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23017 if (!SWIG_IsOK(ecode2)) {
23018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23019 }
23020 arg2 = static_cast< bool >(val2);
23021 {
23022 PyThreadState* __tstate = wxPyBeginAllowThreads();
23023 result = (bool)(arg1)->SetToggle(arg2);
23024 wxPyEndAllowThreads(__tstate);
23025 if (PyErr_Occurred()) SWIG_fail;
23026 }
23027 {
23028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23029 }
23030 return resultobj;
23031 fail:
23032 return NULL;
23033 }
23034
23035
23036 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23037 PyObject *resultobj = 0;
23038 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23039 wxString *arg2 = 0 ;
23040 bool result;
23041 void *argp1 = 0 ;
23042 int res1 = 0 ;
23043 bool temp2 = false ;
23044 PyObject * obj0 = 0 ;
23045 PyObject * obj1 = 0 ;
23046 char * kwnames[] = {
23047 (char *) "self",(char *) "help", NULL
23048 };
23049
23050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23052 if (!SWIG_IsOK(res1)) {
23053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23054 }
23055 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23056 {
23057 arg2 = wxString_in_helper(obj1);
23058 if (arg2 == NULL) SWIG_fail;
23059 temp2 = true;
23060 }
23061 {
23062 PyThreadState* __tstate = wxPyBeginAllowThreads();
23063 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23064 wxPyEndAllowThreads(__tstate);
23065 if (PyErr_Occurred()) SWIG_fail;
23066 }
23067 {
23068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23069 }
23070 {
23071 if (temp2)
23072 delete arg2;
23073 }
23074 return resultobj;
23075 fail:
23076 {
23077 if (temp2)
23078 delete arg2;
23079 }
23080 return NULL;
23081 }
23082
23083
23084 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23085 PyObject *resultobj = 0;
23086 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23087 wxString *arg2 = 0 ;
23088 bool result;
23089 void *argp1 = 0 ;
23090 int res1 = 0 ;
23091 bool temp2 = false ;
23092 PyObject * obj0 = 0 ;
23093 PyObject * obj1 = 0 ;
23094 char * kwnames[] = {
23095 (char *) "self",(char *) "help", NULL
23096 };
23097
23098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23100 if (!SWIG_IsOK(res1)) {
23101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23102 }
23103 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23104 {
23105 arg2 = wxString_in_helper(obj1);
23106 if (arg2 == NULL) SWIG_fail;
23107 temp2 = true;
23108 }
23109 {
23110 PyThreadState* __tstate = wxPyBeginAllowThreads();
23111 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23112 wxPyEndAllowThreads(__tstate);
23113 if (PyErr_Occurred()) SWIG_fail;
23114 }
23115 {
23116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23117 }
23118 {
23119 if (temp2)
23120 delete arg2;
23121 }
23122 return resultobj;
23123 fail:
23124 {
23125 if (temp2)
23126 delete arg2;
23127 }
23128 return NULL;
23129 }
23130
23131
23132 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23133 PyObject *resultobj = 0;
23134 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23135 wxBitmap *arg2 = 0 ;
23136 void *argp1 = 0 ;
23137 int res1 = 0 ;
23138 void *argp2 = 0 ;
23139 int res2 = 0 ;
23140 PyObject * obj0 = 0 ;
23141 PyObject * obj1 = 0 ;
23142 char * kwnames[] = {
23143 (char *) "self",(char *) "bmp", NULL
23144 };
23145
23146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23148 if (!SWIG_IsOK(res1)) {
23149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23150 }
23151 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23152 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23153 if (!SWIG_IsOK(res2)) {
23154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23155 }
23156 if (!argp2) {
23157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23158 }
23159 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23160 {
23161 PyThreadState* __tstate = wxPyBeginAllowThreads();
23162 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23163 wxPyEndAllowThreads(__tstate);
23164 if (PyErr_Occurred()) SWIG_fail;
23165 }
23166 resultobj = SWIG_Py_Void();
23167 return resultobj;
23168 fail:
23169 return NULL;
23170 }
23171
23172
23173 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23174 PyObject *resultobj = 0;
23175 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23176 wxBitmap *arg2 = 0 ;
23177 void *argp1 = 0 ;
23178 int res1 = 0 ;
23179 void *argp2 = 0 ;
23180 int res2 = 0 ;
23181 PyObject * obj0 = 0 ;
23182 PyObject * obj1 = 0 ;
23183 char * kwnames[] = {
23184 (char *) "self",(char *) "bmp", NULL
23185 };
23186
23187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23189 if (!SWIG_IsOK(res1)) {
23190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23191 }
23192 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23193 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23194 if (!SWIG_IsOK(res2)) {
23195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23196 }
23197 if (!argp2) {
23198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23199 }
23200 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23201 {
23202 PyThreadState* __tstate = wxPyBeginAllowThreads();
23203 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23204 wxPyEndAllowThreads(__tstate);
23205 if (PyErr_Occurred()) SWIG_fail;
23206 }
23207 resultobj = SWIG_Py_Void();
23208 return resultobj;
23209 fail:
23210 return NULL;
23211 }
23212
23213
23214 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23215 PyObject *resultobj = 0;
23216 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23217 wxString *arg2 = 0 ;
23218 void *argp1 = 0 ;
23219 int res1 = 0 ;
23220 bool temp2 = false ;
23221 PyObject * obj0 = 0 ;
23222 PyObject * obj1 = 0 ;
23223 char * kwnames[] = {
23224 (char *) "self",(char *) "label", NULL
23225 };
23226
23227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23229 if (!SWIG_IsOK(res1)) {
23230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23231 }
23232 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23233 {
23234 arg2 = wxString_in_helper(obj1);
23235 if (arg2 == NULL) SWIG_fail;
23236 temp2 = true;
23237 }
23238 {
23239 PyThreadState* __tstate = wxPyBeginAllowThreads();
23240 (arg1)->SetLabel((wxString const &)*arg2);
23241 wxPyEndAllowThreads(__tstate);
23242 if (PyErr_Occurred()) SWIG_fail;
23243 }
23244 resultobj = SWIG_Py_Void();
23245 {
23246 if (temp2)
23247 delete arg2;
23248 }
23249 return resultobj;
23250 fail:
23251 {
23252 if (temp2)
23253 delete arg2;
23254 }
23255 return NULL;
23256 }
23257
23258
23259 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23260 PyObject *resultobj = 0;
23261 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23262 void *argp1 = 0 ;
23263 int res1 = 0 ;
23264 PyObject *swig_obj[1] ;
23265
23266 if (!args) SWIG_fail;
23267 swig_obj[0] = args;
23268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23269 if (!SWIG_IsOK(res1)) {
23270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23271 }
23272 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23273 {
23274 PyThreadState* __tstate = wxPyBeginAllowThreads();
23275 (arg1)->Detach();
23276 wxPyEndAllowThreads(__tstate);
23277 if (PyErr_Occurred()) SWIG_fail;
23278 }
23279 resultobj = SWIG_Py_Void();
23280 return resultobj;
23281 fail:
23282 return NULL;
23283 }
23284
23285
23286 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23287 PyObject *resultobj = 0;
23288 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23289 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23290 void *argp1 = 0 ;
23291 int res1 = 0 ;
23292 void *argp2 = 0 ;
23293 int res2 = 0 ;
23294 PyObject * obj0 = 0 ;
23295 PyObject * obj1 = 0 ;
23296 char * kwnames[] = {
23297 (char *) "self",(char *) "tbar", NULL
23298 };
23299
23300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23302 if (!SWIG_IsOK(res1)) {
23303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23304 }
23305 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23306 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23307 if (!SWIG_IsOK(res2)) {
23308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23309 }
23310 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23311 {
23312 PyThreadState* __tstate = wxPyBeginAllowThreads();
23313 (arg1)->Attach(arg2);
23314 wxPyEndAllowThreads(__tstate);
23315 if (PyErr_Occurred()) SWIG_fail;
23316 }
23317 resultobj = SWIG_Py_Void();
23318 return resultobj;
23319 fail:
23320 return NULL;
23321 }
23322
23323
23324 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23325 PyObject *resultobj = 0;
23326 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23327 PyObject *result = 0 ;
23328 void *argp1 = 0 ;
23329 int res1 = 0 ;
23330 PyObject *swig_obj[1] ;
23331
23332 if (!args) SWIG_fail;
23333 swig_obj[0] = args;
23334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23335 if (!SWIG_IsOK(res1)) {
23336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23337 }
23338 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23339 {
23340 PyThreadState* __tstate = wxPyBeginAllowThreads();
23341 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23342 wxPyEndAllowThreads(__tstate);
23343 if (PyErr_Occurred()) SWIG_fail;
23344 }
23345 resultobj = result;
23346 return resultobj;
23347 fail:
23348 return NULL;
23349 }
23350
23351
23352 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23353 PyObject *resultobj = 0;
23354 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23355 PyObject *arg2 = (PyObject *) 0 ;
23356 void *argp1 = 0 ;
23357 int res1 = 0 ;
23358 PyObject * obj0 = 0 ;
23359 PyObject * obj1 = 0 ;
23360 char * kwnames[] = {
23361 (char *) "self",(char *) "clientData", NULL
23362 };
23363
23364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23366 if (!SWIG_IsOK(res1)) {
23367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23368 }
23369 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23370 arg2 = obj1;
23371 {
23372 PyThreadState* __tstate = wxPyBeginAllowThreads();
23373 wxToolBarToolBase_SetClientData(arg1,arg2);
23374 wxPyEndAllowThreads(__tstate);
23375 if (PyErr_Occurred()) SWIG_fail;
23376 }
23377 resultobj = SWIG_Py_Void();
23378 return resultobj;
23379 fail:
23380 return NULL;
23381 }
23382
23383
23384 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23385 PyObject *obj;
23386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23387 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23388 return SWIG_Py_Void();
23389 }
23390
23391 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23392 PyObject *resultobj = 0;
23393 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23394 int arg2 ;
23395 wxString *arg3 = 0 ;
23396 wxBitmap *arg4 = 0 ;
23397 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23398 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23399 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23400 wxString const &arg7_defvalue = wxPyEmptyString ;
23401 wxString *arg7 = (wxString *) &arg7_defvalue ;
23402 wxString const &arg8_defvalue = wxPyEmptyString ;
23403 wxString *arg8 = (wxString *) &arg8_defvalue ;
23404 PyObject *arg9 = (PyObject *) NULL ;
23405 wxToolBarToolBase *result = 0 ;
23406 void *argp1 = 0 ;
23407 int res1 = 0 ;
23408 int val2 ;
23409 int ecode2 = 0 ;
23410 bool temp3 = false ;
23411 void *argp4 = 0 ;
23412 int res4 = 0 ;
23413 void *argp5 = 0 ;
23414 int res5 = 0 ;
23415 int val6 ;
23416 int ecode6 = 0 ;
23417 bool temp7 = false ;
23418 bool temp8 = false ;
23419 PyObject * obj0 = 0 ;
23420 PyObject * obj1 = 0 ;
23421 PyObject * obj2 = 0 ;
23422 PyObject * obj3 = 0 ;
23423 PyObject * obj4 = 0 ;
23424 PyObject * obj5 = 0 ;
23425 PyObject * obj6 = 0 ;
23426 PyObject * obj7 = 0 ;
23427 PyObject * obj8 = 0 ;
23428 char * kwnames[] = {
23429 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23430 };
23431
23432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23434 if (!SWIG_IsOK(res1)) {
23435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23436 }
23437 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23438 ecode2 = SWIG_AsVal_int(obj1, &val2);
23439 if (!SWIG_IsOK(ecode2)) {
23440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23441 }
23442 arg2 = static_cast< int >(val2);
23443 {
23444 arg3 = wxString_in_helper(obj2);
23445 if (arg3 == NULL) SWIG_fail;
23446 temp3 = true;
23447 }
23448 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23449 if (!SWIG_IsOK(res4)) {
23450 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23451 }
23452 if (!argp4) {
23453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23454 }
23455 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23456 if (obj4) {
23457 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23458 if (!SWIG_IsOK(res5)) {
23459 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23460 }
23461 if (!argp5) {
23462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23463 }
23464 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23465 }
23466 if (obj5) {
23467 ecode6 = SWIG_AsVal_int(obj5, &val6);
23468 if (!SWIG_IsOK(ecode6)) {
23469 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23470 }
23471 arg6 = static_cast< wxItemKind >(val6);
23472 }
23473 if (obj6) {
23474 {
23475 arg7 = wxString_in_helper(obj6);
23476 if (arg7 == NULL) SWIG_fail;
23477 temp7 = true;
23478 }
23479 }
23480 if (obj7) {
23481 {
23482 arg8 = wxString_in_helper(obj7);
23483 if (arg8 == NULL) SWIG_fail;
23484 temp8 = true;
23485 }
23486 }
23487 if (obj8) {
23488 arg9 = obj8;
23489 }
23490 {
23491 PyThreadState* __tstate = wxPyBeginAllowThreads();
23492 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23493 wxPyEndAllowThreads(__tstate);
23494 if (PyErr_Occurred()) SWIG_fail;
23495 }
23496 {
23497 resultobj = wxPyMake_wxObject(result, (bool)0);
23498 }
23499 {
23500 if (temp3)
23501 delete arg3;
23502 }
23503 {
23504 if (temp7)
23505 delete arg7;
23506 }
23507 {
23508 if (temp8)
23509 delete arg8;
23510 }
23511 return resultobj;
23512 fail:
23513 {
23514 if (temp3)
23515 delete arg3;
23516 }
23517 {
23518 if (temp7)
23519 delete arg7;
23520 }
23521 {
23522 if (temp8)
23523 delete arg8;
23524 }
23525 return NULL;
23526 }
23527
23528
23529 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23530 PyObject *resultobj = 0;
23531 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23532 size_t arg2 ;
23533 int arg3 ;
23534 wxString *arg4 = 0 ;
23535 wxBitmap *arg5 = 0 ;
23536 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23537 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23538 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23539 wxString const &arg8_defvalue = wxPyEmptyString ;
23540 wxString *arg8 = (wxString *) &arg8_defvalue ;
23541 wxString const &arg9_defvalue = wxPyEmptyString ;
23542 wxString *arg9 = (wxString *) &arg9_defvalue ;
23543 PyObject *arg10 = (PyObject *) NULL ;
23544 wxToolBarToolBase *result = 0 ;
23545 void *argp1 = 0 ;
23546 int res1 = 0 ;
23547 size_t val2 ;
23548 int ecode2 = 0 ;
23549 int val3 ;
23550 int ecode3 = 0 ;
23551 bool temp4 = false ;
23552 void *argp5 = 0 ;
23553 int res5 = 0 ;
23554 void *argp6 = 0 ;
23555 int res6 = 0 ;
23556 int val7 ;
23557 int ecode7 = 0 ;
23558 bool temp8 = false ;
23559 bool temp9 = false ;
23560 PyObject * obj0 = 0 ;
23561 PyObject * obj1 = 0 ;
23562 PyObject * obj2 = 0 ;
23563 PyObject * obj3 = 0 ;
23564 PyObject * obj4 = 0 ;
23565 PyObject * obj5 = 0 ;
23566 PyObject * obj6 = 0 ;
23567 PyObject * obj7 = 0 ;
23568 PyObject * obj8 = 0 ;
23569 PyObject * obj9 = 0 ;
23570 char * kwnames[] = {
23571 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23572 };
23573
23574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23576 if (!SWIG_IsOK(res1)) {
23577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23578 }
23579 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23580 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23581 if (!SWIG_IsOK(ecode2)) {
23582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23583 }
23584 arg2 = static_cast< size_t >(val2);
23585 ecode3 = SWIG_AsVal_int(obj2, &val3);
23586 if (!SWIG_IsOK(ecode3)) {
23587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23588 }
23589 arg3 = static_cast< int >(val3);
23590 {
23591 arg4 = wxString_in_helper(obj3);
23592 if (arg4 == NULL) SWIG_fail;
23593 temp4 = true;
23594 }
23595 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23596 if (!SWIG_IsOK(res5)) {
23597 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23598 }
23599 if (!argp5) {
23600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23601 }
23602 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23603 if (obj5) {
23604 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23605 if (!SWIG_IsOK(res6)) {
23606 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23607 }
23608 if (!argp6) {
23609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23610 }
23611 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23612 }
23613 if (obj6) {
23614 ecode7 = SWIG_AsVal_int(obj6, &val7);
23615 if (!SWIG_IsOK(ecode7)) {
23616 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23617 }
23618 arg7 = static_cast< wxItemKind >(val7);
23619 }
23620 if (obj7) {
23621 {
23622 arg8 = wxString_in_helper(obj7);
23623 if (arg8 == NULL) SWIG_fail;
23624 temp8 = true;
23625 }
23626 }
23627 if (obj8) {
23628 {
23629 arg9 = wxString_in_helper(obj8);
23630 if (arg9 == NULL) SWIG_fail;
23631 temp9 = true;
23632 }
23633 }
23634 if (obj9) {
23635 arg10 = obj9;
23636 }
23637 {
23638 PyThreadState* __tstate = wxPyBeginAllowThreads();
23639 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23640 wxPyEndAllowThreads(__tstate);
23641 if (PyErr_Occurred()) SWIG_fail;
23642 }
23643 {
23644 resultobj = wxPyMake_wxObject(result, (bool)0);
23645 }
23646 {
23647 if (temp4)
23648 delete arg4;
23649 }
23650 {
23651 if (temp8)
23652 delete arg8;
23653 }
23654 {
23655 if (temp9)
23656 delete arg9;
23657 }
23658 return resultobj;
23659 fail:
23660 {
23661 if (temp4)
23662 delete arg4;
23663 }
23664 {
23665 if (temp8)
23666 delete arg8;
23667 }
23668 {
23669 if (temp9)
23670 delete arg9;
23671 }
23672 return NULL;
23673 }
23674
23675
23676 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23677 PyObject *resultobj = 0;
23678 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23679 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23680 wxToolBarToolBase *result = 0 ;
23681 void *argp1 = 0 ;
23682 int res1 = 0 ;
23683 void *argp2 = 0 ;
23684 int res2 = 0 ;
23685 PyObject * obj0 = 0 ;
23686 PyObject * obj1 = 0 ;
23687 char * kwnames[] = {
23688 (char *) "self",(char *) "tool", NULL
23689 };
23690
23691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23693 if (!SWIG_IsOK(res1)) {
23694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23695 }
23696 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23697 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23698 if (!SWIG_IsOK(res2)) {
23699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23700 }
23701 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23702 {
23703 PyThreadState* __tstate = wxPyBeginAllowThreads();
23704 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23705 wxPyEndAllowThreads(__tstate);
23706 if (PyErr_Occurred()) SWIG_fail;
23707 }
23708 {
23709 resultobj = wxPyMake_wxObject(result, (bool)0);
23710 }
23711 return resultobj;
23712 fail:
23713 return NULL;
23714 }
23715
23716
23717 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23718 PyObject *resultobj = 0;
23719 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23720 size_t arg2 ;
23721 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23722 wxToolBarToolBase *result = 0 ;
23723 void *argp1 = 0 ;
23724 int res1 = 0 ;
23725 size_t val2 ;
23726 int ecode2 = 0 ;
23727 void *argp3 = 0 ;
23728 int res3 = 0 ;
23729 PyObject * obj0 = 0 ;
23730 PyObject * obj1 = 0 ;
23731 PyObject * obj2 = 0 ;
23732 char * kwnames[] = {
23733 (char *) "self",(char *) "pos",(char *) "tool", NULL
23734 };
23735
23736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23738 if (!SWIG_IsOK(res1)) {
23739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23740 }
23741 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23742 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23743 if (!SWIG_IsOK(ecode2)) {
23744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23745 }
23746 arg2 = static_cast< size_t >(val2);
23747 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23748 if (!SWIG_IsOK(res3)) {
23749 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23750 }
23751 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23752 {
23753 PyThreadState* __tstate = wxPyBeginAllowThreads();
23754 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23755 wxPyEndAllowThreads(__tstate);
23756 if (PyErr_Occurred()) SWIG_fail;
23757 }
23758 {
23759 resultobj = wxPyMake_wxObject(result, (bool)0);
23760 }
23761 return resultobj;
23762 fail:
23763 return NULL;
23764 }
23765
23766
23767 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23768 PyObject *resultobj = 0;
23769 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23770 wxControl *arg2 = (wxControl *) 0 ;
23771 wxToolBarToolBase *result = 0 ;
23772 void *argp1 = 0 ;
23773 int res1 = 0 ;
23774 void *argp2 = 0 ;
23775 int res2 = 0 ;
23776 PyObject * obj0 = 0 ;
23777 PyObject * obj1 = 0 ;
23778 char * kwnames[] = {
23779 (char *) "self",(char *) "control", NULL
23780 };
23781
23782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23784 if (!SWIG_IsOK(res1)) {
23785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23786 }
23787 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23788 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23789 if (!SWIG_IsOK(res2)) {
23790 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23791 }
23792 arg2 = reinterpret_cast< wxControl * >(argp2);
23793 {
23794 PyThreadState* __tstate = wxPyBeginAllowThreads();
23795 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23796 wxPyEndAllowThreads(__tstate);
23797 if (PyErr_Occurred()) SWIG_fail;
23798 }
23799 {
23800 resultobj = wxPyMake_wxObject(result, (bool)0);
23801 }
23802 return resultobj;
23803 fail:
23804 return NULL;
23805 }
23806
23807
23808 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23809 PyObject *resultobj = 0;
23810 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23811 size_t arg2 ;
23812 wxControl *arg3 = (wxControl *) 0 ;
23813 wxToolBarToolBase *result = 0 ;
23814 void *argp1 = 0 ;
23815 int res1 = 0 ;
23816 size_t val2 ;
23817 int ecode2 = 0 ;
23818 void *argp3 = 0 ;
23819 int res3 = 0 ;
23820 PyObject * obj0 = 0 ;
23821 PyObject * obj1 = 0 ;
23822 PyObject * obj2 = 0 ;
23823 char * kwnames[] = {
23824 (char *) "self",(char *) "pos",(char *) "control", NULL
23825 };
23826
23827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23829 if (!SWIG_IsOK(res1)) {
23830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23831 }
23832 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23833 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23834 if (!SWIG_IsOK(ecode2)) {
23835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23836 }
23837 arg2 = static_cast< size_t >(val2);
23838 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23839 if (!SWIG_IsOK(res3)) {
23840 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23841 }
23842 arg3 = reinterpret_cast< wxControl * >(argp3);
23843 {
23844 PyThreadState* __tstate = wxPyBeginAllowThreads();
23845 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23846 wxPyEndAllowThreads(__tstate);
23847 if (PyErr_Occurred()) SWIG_fail;
23848 }
23849 {
23850 resultobj = wxPyMake_wxObject(result, (bool)0);
23851 }
23852 return resultobj;
23853 fail:
23854 return NULL;
23855 }
23856
23857
23858 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23859 PyObject *resultobj = 0;
23860 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23861 int arg2 ;
23862 wxControl *result = 0 ;
23863 void *argp1 = 0 ;
23864 int res1 = 0 ;
23865 int val2 ;
23866 int ecode2 = 0 ;
23867 PyObject * obj0 = 0 ;
23868 PyObject * obj1 = 0 ;
23869 char * kwnames[] = {
23870 (char *) "self",(char *) "id", NULL
23871 };
23872
23873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23875 if (!SWIG_IsOK(res1)) {
23876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23877 }
23878 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23879 ecode2 = SWIG_AsVal_int(obj1, &val2);
23880 if (!SWIG_IsOK(ecode2)) {
23881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23882 }
23883 arg2 = static_cast< int >(val2);
23884 {
23885 PyThreadState* __tstate = wxPyBeginAllowThreads();
23886 result = (wxControl *)(arg1)->FindControl(arg2);
23887 wxPyEndAllowThreads(__tstate);
23888 if (PyErr_Occurred()) SWIG_fail;
23889 }
23890 {
23891 resultobj = wxPyMake_wxObject(result, 0);
23892 }
23893 return resultobj;
23894 fail:
23895 return NULL;
23896 }
23897
23898
23899 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23900 PyObject *resultobj = 0;
23901 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23902 wxToolBarToolBase *result = 0 ;
23903 void *argp1 = 0 ;
23904 int res1 = 0 ;
23905 PyObject *swig_obj[1] ;
23906
23907 if (!args) SWIG_fail;
23908 swig_obj[0] = args;
23909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23910 if (!SWIG_IsOK(res1)) {
23911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23912 }
23913 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23914 {
23915 PyThreadState* __tstate = wxPyBeginAllowThreads();
23916 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23917 wxPyEndAllowThreads(__tstate);
23918 if (PyErr_Occurred()) SWIG_fail;
23919 }
23920 {
23921 resultobj = wxPyMake_wxObject(result, (bool)0);
23922 }
23923 return resultobj;
23924 fail:
23925 return NULL;
23926 }
23927
23928
23929 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23930 PyObject *resultobj = 0;
23931 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23932 size_t arg2 ;
23933 wxToolBarToolBase *result = 0 ;
23934 void *argp1 = 0 ;
23935 int res1 = 0 ;
23936 size_t val2 ;
23937 int ecode2 = 0 ;
23938 PyObject * obj0 = 0 ;
23939 PyObject * obj1 = 0 ;
23940 char * kwnames[] = {
23941 (char *) "self",(char *) "pos", NULL
23942 };
23943
23944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
23945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23946 if (!SWIG_IsOK(res1)) {
23947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23948 }
23949 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23950 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23951 if (!SWIG_IsOK(ecode2)) {
23952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
23953 }
23954 arg2 = static_cast< size_t >(val2);
23955 {
23956 PyThreadState* __tstate = wxPyBeginAllowThreads();
23957 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
23958 wxPyEndAllowThreads(__tstate);
23959 if (PyErr_Occurred()) SWIG_fail;
23960 }
23961 {
23962 resultobj = wxPyMake_wxObject(result, (bool)0);
23963 }
23964 return resultobj;
23965 fail:
23966 return NULL;
23967 }
23968
23969
23970 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23971 PyObject *resultobj = 0;
23972 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23973 int arg2 ;
23974 wxToolBarToolBase *result = 0 ;
23975 void *argp1 = 0 ;
23976 int res1 = 0 ;
23977 int val2 ;
23978 int ecode2 = 0 ;
23979 PyObject * obj0 = 0 ;
23980 PyObject * obj1 = 0 ;
23981 char * kwnames[] = {
23982 (char *) "self",(char *) "id", NULL
23983 };
23984
23985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
23986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23987 if (!SWIG_IsOK(res1)) {
23988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23989 }
23990 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23991 ecode2 = SWIG_AsVal_int(obj1, &val2);
23992 if (!SWIG_IsOK(ecode2)) {
23993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
23994 }
23995 arg2 = static_cast< int >(val2);
23996 {
23997 PyThreadState* __tstate = wxPyBeginAllowThreads();
23998 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
23999 wxPyEndAllowThreads(__tstate);
24000 if (PyErr_Occurred()) SWIG_fail;
24001 }
24002 {
24003 resultobj = wxPyMake_wxObject(result, (bool)0);
24004 }
24005 return resultobj;
24006 fail:
24007 return NULL;
24008 }
24009
24010
24011 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24012 PyObject *resultobj = 0;
24013 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24014 size_t arg2 ;
24015 bool result;
24016 void *argp1 = 0 ;
24017 int res1 = 0 ;
24018 size_t val2 ;
24019 int ecode2 = 0 ;
24020 PyObject * obj0 = 0 ;
24021 PyObject * obj1 = 0 ;
24022 char * kwnames[] = {
24023 (char *) "self",(char *) "pos", NULL
24024 };
24025
24026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24028 if (!SWIG_IsOK(res1)) {
24029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24030 }
24031 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24032 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24033 if (!SWIG_IsOK(ecode2)) {
24034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24035 }
24036 arg2 = static_cast< size_t >(val2);
24037 {
24038 PyThreadState* __tstate = wxPyBeginAllowThreads();
24039 result = (bool)(arg1)->DeleteToolByPos(arg2);
24040 wxPyEndAllowThreads(__tstate);
24041 if (PyErr_Occurred()) SWIG_fail;
24042 }
24043 {
24044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24045 }
24046 return resultobj;
24047 fail:
24048 return NULL;
24049 }
24050
24051
24052 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24053 PyObject *resultobj = 0;
24054 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24055 int arg2 ;
24056 bool result;
24057 void *argp1 = 0 ;
24058 int res1 = 0 ;
24059 int val2 ;
24060 int ecode2 = 0 ;
24061 PyObject * obj0 = 0 ;
24062 PyObject * obj1 = 0 ;
24063 char * kwnames[] = {
24064 (char *) "self",(char *) "id", NULL
24065 };
24066
24067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24069 if (!SWIG_IsOK(res1)) {
24070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24071 }
24072 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24073 ecode2 = SWIG_AsVal_int(obj1, &val2);
24074 if (!SWIG_IsOK(ecode2)) {
24075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24076 }
24077 arg2 = static_cast< int >(val2);
24078 {
24079 PyThreadState* __tstate = wxPyBeginAllowThreads();
24080 result = (bool)(arg1)->DeleteTool(arg2);
24081 wxPyEndAllowThreads(__tstate);
24082 if (PyErr_Occurred()) SWIG_fail;
24083 }
24084 {
24085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24086 }
24087 return resultobj;
24088 fail:
24089 return NULL;
24090 }
24091
24092
24093 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24094 PyObject *resultobj = 0;
24095 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24096 void *argp1 = 0 ;
24097 int res1 = 0 ;
24098 PyObject *swig_obj[1] ;
24099
24100 if (!args) SWIG_fail;
24101 swig_obj[0] = args;
24102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24103 if (!SWIG_IsOK(res1)) {
24104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24105 }
24106 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24107 {
24108 PyThreadState* __tstate = wxPyBeginAllowThreads();
24109 (arg1)->ClearTools();
24110 wxPyEndAllowThreads(__tstate);
24111 if (PyErr_Occurred()) SWIG_fail;
24112 }
24113 resultobj = SWIG_Py_Void();
24114 return resultobj;
24115 fail:
24116 return NULL;
24117 }
24118
24119
24120 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24121 PyObject *resultobj = 0;
24122 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24123 bool result;
24124 void *argp1 = 0 ;
24125 int res1 = 0 ;
24126 PyObject *swig_obj[1] ;
24127
24128 if (!args) SWIG_fail;
24129 swig_obj[0] = args;
24130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24131 if (!SWIG_IsOK(res1)) {
24132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24133 }
24134 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24135 {
24136 PyThreadState* __tstate = wxPyBeginAllowThreads();
24137 result = (bool)(arg1)->Realize();
24138 wxPyEndAllowThreads(__tstate);
24139 if (PyErr_Occurred()) SWIG_fail;
24140 }
24141 {
24142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24143 }
24144 return resultobj;
24145 fail:
24146 return NULL;
24147 }
24148
24149
24150 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24151 PyObject *resultobj = 0;
24152 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24153 int arg2 ;
24154 bool arg3 ;
24155 void *argp1 = 0 ;
24156 int res1 = 0 ;
24157 int val2 ;
24158 int ecode2 = 0 ;
24159 bool val3 ;
24160 int ecode3 = 0 ;
24161 PyObject * obj0 = 0 ;
24162 PyObject * obj1 = 0 ;
24163 PyObject * obj2 = 0 ;
24164 char * kwnames[] = {
24165 (char *) "self",(char *) "id",(char *) "enable", NULL
24166 };
24167
24168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24170 if (!SWIG_IsOK(res1)) {
24171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24172 }
24173 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24174 ecode2 = SWIG_AsVal_int(obj1, &val2);
24175 if (!SWIG_IsOK(ecode2)) {
24176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24177 }
24178 arg2 = static_cast< int >(val2);
24179 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24180 if (!SWIG_IsOK(ecode3)) {
24181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24182 }
24183 arg3 = static_cast< bool >(val3);
24184 {
24185 PyThreadState* __tstate = wxPyBeginAllowThreads();
24186 (arg1)->EnableTool(arg2,arg3);
24187 wxPyEndAllowThreads(__tstate);
24188 if (PyErr_Occurred()) SWIG_fail;
24189 }
24190 resultobj = SWIG_Py_Void();
24191 return resultobj;
24192 fail:
24193 return NULL;
24194 }
24195
24196
24197 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24198 PyObject *resultobj = 0;
24199 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24200 int arg2 ;
24201 bool arg3 ;
24202 void *argp1 = 0 ;
24203 int res1 = 0 ;
24204 int val2 ;
24205 int ecode2 = 0 ;
24206 bool val3 ;
24207 int ecode3 = 0 ;
24208 PyObject * obj0 = 0 ;
24209 PyObject * obj1 = 0 ;
24210 PyObject * obj2 = 0 ;
24211 char * kwnames[] = {
24212 (char *) "self",(char *) "id",(char *) "toggle", NULL
24213 };
24214
24215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24217 if (!SWIG_IsOK(res1)) {
24218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24219 }
24220 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24221 ecode2 = SWIG_AsVal_int(obj1, &val2);
24222 if (!SWIG_IsOK(ecode2)) {
24223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24224 }
24225 arg2 = static_cast< int >(val2);
24226 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24227 if (!SWIG_IsOK(ecode3)) {
24228 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24229 }
24230 arg3 = static_cast< bool >(val3);
24231 {
24232 PyThreadState* __tstate = wxPyBeginAllowThreads();
24233 (arg1)->ToggleTool(arg2,arg3);
24234 wxPyEndAllowThreads(__tstate);
24235 if (PyErr_Occurred()) SWIG_fail;
24236 }
24237 resultobj = SWIG_Py_Void();
24238 return resultobj;
24239 fail:
24240 return NULL;
24241 }
24242
24243
24244 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24245 PyObject *resultobj = 0;
24246 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24247 int arg2 ;
24248 bool arg3 ;
24249 void *argp1 = 0 ;
24250 int res1 = 0 ;
24251 int val2 ;
24252 int ecode2 = 0 ;
24253 bool val3 ;
24254 int ecode3 = 0 ;
24255 PyObject * obj0 = 0 ;
24256 PyObject * obj1 = 0 ;
24257 PyObject * obj2 = 0 ;
24258 char * kwnames[] = {
24259 (char *) "self",(char *) "id",(char *) "toggle", NULL
24260 };
24261
24262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24264 if (!SWIG_IsOK(res1)) {
24265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24266 }
24267 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24268 ecode2 = SWIG_AsVal_int(obj1, &val2);
24269 if (!SWIG_IsOK(ecode2)) {
24270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24271 }
24272 arg2 = static_cast< int >(val2);
24273 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24274 if (!SWIG_IsOK(ecode3)) {
24275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24276 }
24277 arg3 = static_cast< bool >(val3);
24278 {
24279 PyThreadState* __tstate = wxPyBeginAllowThreads();
24280 (arg1)->SetToggle(arg2,arg3);
24281 wxPyEndAllowThreads(__tstate);
24282 if (PyErr_Occurred()) SWIG_fail;
24283 }
24284 resultobj = SWIG_Py_Void();
24285 return resultobj;
24286 fail:
24287 return NULL;
24288 }
24289
24290
24291 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24292 PyObject *resultobj = 0;
24293 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24294 int arg2 ;
24295 PyObject *result = 0 ;
24296 void *argp1 = 0 ;
24297 int res1 = 0 ;
24298 int val2 ;
24299 int ecode2 = 0 ;
24300 PyObject * obj0 = 0 ;
24301 PyObject * obj1 = 0 ;
24302 char * kwnames[] = {
24303 (char *) "self",(char *) "id", NULL
24304 };
24305
24306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24308 if (!SWIG_IsOK(res1)) {
24309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24310 }
24311 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24312 ecode2 = SWIG_AsVal_int(obj1, &val2);
24313 if (!SWIG_IsOK(ecode2)) {
24314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24315 }
24316 arg2 = static_cast< int >(val2);
24317 {
24318 PyThreadState* __tstate = wxPyBeginAllowThreads();
24319 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24320 wxPyEndAllowThreads(__tstate);
24321 if (PyErr_Occurred()) SWIG_fail;
24322 }
24323 resultobj = result;
24324 return resultobj;
24325 fail:
24326 return NULL;
24327 }
24328
24329
24330 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24331 PyObject *resultobj = 0;
24332 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24333 int arg2 ;
24334 PyObject *arg3 = (PyObject *) 0 ;
24335 void *argp1 = 0 ;
24336 int res1 = 0 ;
24337 int val2 ;
24338 int ecode2 = 0 ;
24339 PyObject * obj0 = 0 ;
24340 PyObject * obj1 = 0 ;
24341 PyObject * obj2 = 0 ;
24342 char * kwnames[] = {
24343 (char *) "self",(char *) "id",(char *) "clientData", NULL
24344 };
24345
24346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24348 if (!SWIG_IsOK(res1)) {
24349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24350 }
24351 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24352 ecode2 = SWIG_AsVal_int(obj1, &val2);
24353 if (!SWIG_IsOK(ecode2)) {
24354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24355 }
24356 arg2 = static_cast< int >(val2);
24357 arg3 = obj2;
24358 {
24359 PyThreadState* __tstate = wxPyBeginAllowThreads();
24360 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24361 wxPyEndAllowThreads(__tstate);
24362 if (PyErr_Occurred()) SWIG_fail;
24363 }
24364 resultobj = SWIG_Py_Void();
24365 return resultobj;
24366 fail:
24367 return NULL;
24368 }
24369
24370
24371 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24372 PyObject *resultobj = 0;
24373 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24374 int arg2 ;
24375 int result;
24376 void *argp1 = 0 ;
24377 int res1 = 0 ;
24378 int val2 ;
24379 int ecode2 = 0 ;
24380 PyObject * obj0 = 0 ;
24381 PyObject * obj1 = 0 ;
24382 char * kwnames[] = {
24383 (char *) "self",(char *) "id", NULL
24384 };
24385
24386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24388 if (!SWIG_IsOK(res1)) {
24389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24390 }
24391 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24392 ecode2 = SWIG_AsVal_int(obj1, &val2);
24393 if (!SWIG_IsOK(ecode2)) {
24394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24395 }
24396 arg2 = static_cast< int >(val2);
24397 {
24398 PyThreadState* __tstate = wxPyBeginAllowThreads();
24399 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24400 wxPyEndAllowThreads(__tstate);
24401 if (PyErr_Occurred()) SWIG_fail;
24402 }
24403 resultobj = SWIG_From_int(static_cast< int >(result));
24404 return resultobj;
24405 fail:
24406 return NULL;
24407 }
24408
24409
24410 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24411 PyObject *resultobj = 0;
24412 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24413 int arg2 ;
24414 bool result;
24415 void *argp1 = 0 ;
24416 int res1 = 0 ;
24417 int val2 ;
24418 int ecode2 = 0 ;
24419 PyObject * obj0 = 0 ;
24420 PyObject * obj1 = 0 ;
24421 char * kwnames[] = {
24422 (char *) "self",(char *) "id", NULL
24423 };
24424
24425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24427 if (!SWIG_IsOK(res1)) {
24428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24429 }
24430 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24431 ecode2 = SWIG_AsVal_int(obj1, &val2);
24432 if (!SWIG_IsOK(ecode2)) {
24433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24434 }
24435 arg2 = static_cast< int >(val2);
24436 {
24437 PyThreadState* __tstate = wxPyBeginAllowThreads();
24438 result = (bool)(arg1)->GetToolState(arg2);
24439 wxPyEndAllowThreads(__tstate);
24440 if (PyErr_Occurred()) SWIG_fail;
24441 }
24442 {
24443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24444 }
24445 return resultobj;
24446 fail:
24447 return NULL;
24448 }
24449
24450
24451 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24452 PyObject *resultobj = 0;
24453 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24454 int arg2 ;
24455 bool result;
24456 void *argp1 = 0 ;
24457 int res1 = 0 ;
24458 int val2 ;
24459 int ecode2 = 0 ;
24460 PyObject * obj0 = 0 ;
24461 PyObject * obj1 = 0 ;
24462 char * kwnames[] = {
24463 (char *) "self",(char *) "id", NULL
24464 };
24465
24466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24468 if (!SWIG_IsOK(res1)) {
24469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24470 }
24471 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24472 ecode2 = SWIG_AsVal_int(obj1, &val2);
24473 if (!SWIG_IsOK(ecode2)) {
24474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24475 }
24476 arg2 = static_cast< int >(val2);
24477 {
24478 PyThreadState* __tstate = wxPyBeginAllowThreads();
24479 result = (bool)(arg1)->GetToolEnabled(arg2);
24480 wxPyEndAllowThreads(__tstate);
24481 if (PyErr_Occurred()) SWIG_fail;
24482 }
24483 {
24484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24485 }
24486 return resultobj;
24487 fail:
24488 return NULL;
24489 }
24490
24491
24492 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24493 PyObject *resultobj = 0;
24494 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24495 int arg2 ;
24496 wxString *arg3 = 0 ;
24497 void *argp1 = 0 ;
24498 int res1 = 0 ;
24499 int val2 ;
24500 int ecode2 = 0 ;
24501 bool temp3 = false ;
24502 PyObject * obj0 = 0 ;
24503 PyObject * obj1 = 0 ;
24504 PyObject * obj2 = 0 ;
24505 char * kwnames[] = {
24506 (char *) "self",(char *) "id",(char *) "helpString", NULL
24507 };
24508
24509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24511 if (!SWIG_IsOK(res1)) {
24512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24513 }
24514 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24515 ecode2 = SWIG_AsVal_int(obj1, &val2);
24516 if (!SWIG_IsOK(ecode2)) {
24517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24518 }
24519 arg2 = static_cast< int >(val2);
24520 {
24521 arg3 = wxString_in_helper(obj2);
24522 if (arg3 == NULL) SWIG_fail;
24523 temp3 = true;
24524 }
24525 {
24526 PyThreadState* __tstate = wxPyBeginAllowThreads();
24527 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24528 wxPyEndAllowThreads(__tstate);
24529 if (PyErr_Occurred()) SWIG_fail;
24530 }
24531 resultobj = SWIG_Py_Void();
24532 {
24533 if (temp3)
24534 delete arg3;
24535 }
24536 return resultobj;
24537 fail:
24538 {
24539 if (temp3)
24540 delete arg3;
24541 }
24542 return NULL;
24543 }
24544
24545
24546 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24547 PyObject *resultobj = 0;
24548 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24549 int arg2 ;
24550 wxString result;
24551 void *argp1 = 0 ;
24552 int res1 = 0 ;
24553 int val2 ;
24554 int ecode2 = 0 ;
24555 PyObject * obj0 = 0 ;
24556 PyObject * obj1 = 0 ;
24557 char * kwnames[] = {
24558 (char *) "self",(char *) "id", NULL
24559 };
24560
24561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24563 if (!SWIG_IsOK(res1)) {
24564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24565 }
24566 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24567 ecode2 = SWIG_AsVal_int(obj1, &val2);
24568 if (!SWIG_IsOK(ecode2)) {
24569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24570 }
24571 arg2 = static_cast< int >(val2);
24572 {
24573 PyThreadState* __tstate = wxPyBeginAllowThreads();
24574 result = (arg1)->GetToolShortHelp(arg2);
24575 wxPyEndAllowThreads(__tstate);
24576 if (PyErr_Occurred()) SWIG_fail;
24577 }
24578 {
24579 #if wxUSE_UNICODE
24580 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24581 #else
24582 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24583 #endif
24584 }
24585 return resultobj;
24586 fail:
24587 return NULL;
24588 }
24589
24590
24591 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24592 PyObject *resultobj = 0;
24593 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24594 int arg2 ;
24595 wxString *arg3 = 0 ;
24596 void *argp1 = 0 ;
24597 int res1 = 0 ;
24598 int val2 ;
24599 int ecode2 = 0 ;
24600 bool temp3 = false ;
24601 PyObject * obj0 = 0 ;
24602 PyObject * obj1 = 0 ;
24603 PyObject * obj2 = 0 ;
24604 char * kwnames[] = {
24605 (char *) "self",(char *) "id",(char *) "helpString", NULL
24606 };
24607
24608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24610 if (!SWIG_IsOK(res1)) {
24611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24612 }
24613 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24614 ecode2 = SWIG_AsVal_int(obj1, &val2);
24615 if (!SWIG_IsOK(ecode2)) {
24616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24617 }
24618 arg2 = static_cast< int >(val2);
24619 {
24620 arg3 = wxString_in_helper(obj2);
24621 if (arg3 == NULL) SWIG_fail;
24622 temp3 = true;
24623 }
24624 {
24625 PyThreadState* __tstate = wxPyBeginAllowThreads();
24626 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24627 wxPyEndAllowThreads(__tstate);
24628 if (PyErr_Occurred()) SWIG_fail;
24629 }
24630 resultobj = SWIG_Py_Void();
24631 {
24632 if (temp3)
24633 delete arg3;
24634 }
24635 return resultobj;
24636 fail:
24637 {
24638 if (temp3)
24639 delete arg3;
24640 }
24641 return NULL;
24642 }
24643
24644
24645 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24646 PyObject *resultobj = 0;
24647 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24648 int arg2 ;
24649 wxString result;
24650 void *argp1 = 0 ;
24651 int res1 = 0 ;
24652 int val2 ;
24653 int ecode2 = 0 ;
24654 PyObject * obj0 = 0 ;
24655 PyObject * obj1 = 0 ;
24656 char * kwnames[] = {
24657 (char *) "self",(char *) "id", NULL
24658 };
24659
24660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24662 if (!SWIG_IsOK(res1)) {
24663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24664 }
24665 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24666 ecode2 = SWIG_AsVal_int(obj1, &val2);
24667 if (!SWIG_IsOK(ecode2)) {
24668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24669 }
24670 arg2 = static_cast< int >(val2);
24671 {
24672 PyThreadState* __tstate = wxPyBeginAllowThreads();
24673 result = (arg1)->GetToolLongHelp(arg2);
24674 wxPyEndAllowThreads(__tstate);
24675 if (PyErr_Occurred()) SWIG_fail;
24676 }
24677 {
24678 #if wxUSE_UNICODE
24679 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24680 #else
24681 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24682 #endif
24683 }
24684 return resultobj;
24685 fail:
24686 return NULL;
24687 }
24688
24689
24690 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24691 PyObject *resultobj = 0;
24692 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24693 int arg2 ;
24694 int arg3 ;
24695 void *argp1 = 0 ;
24696 int res1 = 0 ;
24697 int val2 ;
24698 int ecode2 = 0 ;
24699 int val3 ;
24700 int ecode3 = 0 ;
24701 PyObject * obj0 = 0 ;
24702 PyObject * obj1 = 0 ;
24703 PyObject * obj2 = 0 ;
24704 char * kwnames[] = {
24705 (char *) "self",(char *) "x",(char *) "y", NULL
24706 };
24707
24708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24710 if (!SWIG_IsOK(res1)) {
24711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24712 }
24713 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24714 ecode2 = SWIG_AsVal_int(obj1, &val2);
24715 if (!SWIG_IsOK(ecode2)) {
24716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24717 }
24718 arg2 = static_cast< int >(val2);
24719 ecode3 = SWIG_AsVal_int(obj2, &val3);
24720 if (!SWIG_IsOK(ecode3)) {
24721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24722 }
24723 arg3 = static_cast< int >(val3);
24724 {
24725 PyThreadState* __tstate = wxPyBeginAllowThreads();
24726 (arg1)->SetMargins(arg2,arg3);
24727 wxPyEndAllowThreads(__tstate);
24728 if (PyErr_Occurred()) SWIG_fail;
24729 }
24730 resultobj = SWIG_Py_Void();
24731 return resultobj;
24732 fail:
24733 return NULL;
24734 }
24735
24736
24737 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24738 PyObject *resultobj = 0;
24739 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24740 wxSize *arg2 = 0 ;
24741 void *argp1 = 0 ;
24742 int res1 = 0 ;
24743 wxSize temp2 ;
24744 PyObject * obj0 = 0 ;
24745 PyObject * obj1 = 0 ;
24746 char * kwnames[] = {
24747 (char *) "self",(char *) "size", NULL
24748 };
24749
24750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24752 if (!SWIG_IsOK(res1)) {
24753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24754 }
24755 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24756 {
24757 arg2 = &temp2;
24758 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24759 }
24760 {
24761 PyThreadState* __tstate = wxPyBeginAllowThreads();
24762 (arg1)->SetMargins((wxSize const &)*arg2);
24763 wxPyEndAllowThreads(__tstate);
24764 if (PyErr_Occurred()) SWIG_fail;
24765 }
24766 resultobj = SWIG_Py_Void();
24767 return resultobj;
24768 fail:
24769 return NULL;
24770 }
24771
24772
24773 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24774 PyObject *resultobj = 0;
24775 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24776 int arg2 ;
24777 void *argp1 = 0 ;
24778 int res1 = 0 ;
24779 int val2 ;
24780 int ecode2 = 0 ;
24781 PyObject * obj0 = 0 ;
24782 PyObject * obj1 = 0 ;
24783 char * kwnames[] = {
24784 (char *) "self",(char *) "packing", NULL
24785 };
24786
24787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24789 if (!SWIG_IsOK(res1)) {
24790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24791 }
24792 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24793 ecode2 = SWIG_AsVal_int(obj1, &val2);
24794 if (!SWIG_IsOK(ecode2)) {
24795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24796 }
24797 arg2 = static_cast< int >(val2);
24798 {
24799 PyThreadState* __tstate = wxPyBeginAllowThreads();
24800 (arg1)->SetToolPacking(arg2);
24801 wxPyEndAllowThreads(__tstate);
24802 if (PyErr_Occurred()) SWIG_fail;
24803 }
24804 resultobj = SWIG_Py_Void();
24805 return resultobj;
24806 fail:
24807 return NULL;
24808 }
24809
24810
24811 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24812 PyObject *resultobj = 0;
24813 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24814 int arg2 ;
24815 void *argp1 = 0 ;
24816 int res1 = 0 ;
24817 int val2 ;
24818 int ecode2 = 0 ;
24819 PyObject * obj0 = 0 ;
24820 PyObject * obj1 = 0 ;
24821 char * kwnames[] = {
24822 (char *) "self",(char *) "separation", NULL
24823 };
24824
24825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24827 if (!SWIG_IsOK(res1)) {
24828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24829 }
24830 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24831 ecode2 = SWIG_AsVal_int(obj1, &val2);
24832 if (!SWIG_IsOK(ecode2)) {
24833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24834 }
24835 arg2 = static_cast< int >(val2);
24836 {
24837 PyThreadState* __tstate = wxPyBeginAllowThreads();
24838 (arg1)->SetToolSeparation(arg2);
24839 wxPyEndAllowThreads(__tstate);
24840 if (PyErr_Occurred()) SWIG_fail;
24841 }
24842 resultobj = SWIG_Py_Void();
24843 return resultobj;
24844 fail:
24845 return NULL;
24846 }
24847
24848
24849 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24850 PyObject *resultobj = 0;
24851 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24852 wxSize result;
24853 void *argp1 = 0 ;
24854 int res1 = 0 ;
24855 PyObject *swig_obj[1] ;
24856
24857 if (!args) SWIG_fail;
24858 swig_obj[0] = args;
24859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24860 if (!SWIG_IsOK(res1)) {
24861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24862 }
24863 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24864 {
24865 PyThreadState* __tstate = wxPyBeginAllowThreads();
24866 result = (arg1)->GetToolMargins();
24867 wxPyEndAllowThreads(__tstate);
24868 if (PyErr_Occurred()) SWIG_fail;
24869 }
24870 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24871 return resultobj;
24872 fail:
24873 return NULL;
24874 }
24875
24876
24877 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24878 PyObject *resultobj = 0;
24879 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24880 wxSize result;
24881 void *argp1 = 0 ;
24882 int res1 = 0 ;
24883 PyObject *swig_obj[1] ;
24884
24885 if (!args) SWIG_fail;
24886 swig_obj[0] = args;
24887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24888 if (!SWIG_IsOK(res1)) {
24889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24890 }
24891 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24892 {
24893 PyThreadState* __tstate = wxPyBeginAllowThreads();
24894 result = (arg1)->GetMargins();
24895 wxPyEndAllowThreads(__tstate);
24896 if (PyErr_Occurred()) SWIG_fail;
24897 }
24898 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24899 return resultobj;
24900 fail:
24901 return NULL;
24902 }
24903
24904
24905 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24906 PyObject *resultobj = 0;
24907 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24908 int result;
24909 void *argp1 = 0 ;
24910 int res1 = 0 ;
24911 PyObject *swig_obj[1] ;
24912
24913 if (!args) SWIG_fail;
24914 swig_obj[0] = args;
24915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24916 if (!SWIG_IsOK(res1)) {
24917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24918 }
24919 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24920 {
24921 PyThreadState* __tstate = wxPyBeginAllowThreads();
24922 result = (int)(arg1)->GetToolPacking();
24923 wxPyEndAllowThreads(__tstate);
24924 if (PyErr_Occurred()) SWIG_fail;
24925 }
24926 resultobj = SWIG_From_int(static_cast< int >(result));
24927 return resultobj;
24928 fail:
24929 return NULL;
24930 }
24931
24932
24933 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24934 PyObject *resultobj = 0;
24935 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24936 int result;
24937 void *argp1 = 0 ;
24938 int res1 = 0 ;
24939 PyObject *swig_obj[1] ;
24940
24941 if (!args) SWIG_fail;
24942 swig_obj[0] = args;
24943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24944 if (!SWIG_IsOK(res1)) {
24945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24946 }
24947 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24948 {
24949 PyThreadState* __tstate = wxPyBeginAllowThreads();
24950 result = (int)(arg1)->GetToolSeparation();
24951 wxPyEndAllowThreads(__tstate);
24952 if (PyErr_Occurred()) SWIG_fail;
24953 }
24954 resultobj = SWIG_From_int(static_cast< int >(result));
24955 return resultobj;
24956 fail:
24957 return NULL;
24958 }
24959
24960
24961 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24962 PyObject *resultobj = 0;
24963 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24964 int arg2 ;
24965 void *argp1 = 0 ;
24966 int res1 = 0 ;
24967 int val2 ;
24968 int ecode2 = 0 ;
24969 PyObject * obj0 = 0 ;
24970 PyObject * obj1 = 0 ;
24971 char * kwnames[] = {
24972 (char *) "self",(char *) "nRows", NULL
24973 };
24974
24975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
24976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24977 if (!SWIG_IsOK(res1)) {
24978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24979 }
24980 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24981 ecode2 = SWIG_AsVal_int(obj1, &val2);
24982 if (!SWIG_IsOK(ecode2)) {
24983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
24984 }
24985 arg2 = static_cast< int >(val2);
24986 {
24987 PyThreadState* __tstate = wxPyBeginAllowThreads();
24988 (arg1)->SetRows(arg2);
24989 wxPyEndAllowThreads(__tstate);
24990 if (PyErr_Occurred()) SWIG_fail;
24991 }
24992 resultobj = SWIG_Py_Void();
24993 return resultobj;
24994 fail:
24995 return NULL;
24996 }
24997
24998
24999 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25000 PyObject *resultobj = 0;
25001 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25002 int arg2 ;
25003 int arg3 ;
25004 void *argp1 = 0 ;
25005 int res1 = 0 ;
25006 int val2 ;
25007 int ecode2 = 0 ;
25008 int val3 ;
25009 int ecode3 = 0 ;
25010 PyObject * obj0 = 0 ;
25011 PyObject * obj1 = 0 ;
25012 PyObject * obj2 = 0 ;
25013 char * kwnames[] = {
25014 (char *) "self",(char *) "rows",(char *) "cols", NULL
25015 };
25016
25017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25019 if (!SWIG_IsOK(res1)) {
25020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25021 }
25022 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25023 ecode2 = SWIG_AsVal_int(obj1, &val2);
25024 if (!SWIG_IsOK(ecode2)) {
25025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25026 }
25027 arg2 = static_cast< int >(val2);
25028 ecode3 = SWIG_AsVal_int(obj2, &val3);
25029 if (!SWIG_IsOK(ecode3)) {
25030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25031 }
25032 arg3 = static_cast< int >(val3);
25033 {
25034 PyThreadState* __tstate = wxPyBeginAllowThreads();
25035 (arg1)->SetMaxRowsCols(arg2,arg3);
25036 wxPyEndAllowThreads(__tstate);
25037 if (PyErr_Occurred()) SWIG_fail;
25038 }
25039 resultobj = SWIG_Py_Void();
25040 return resultobj;
25041 fail:
25042 return NULL;
25043 }
25044
25045
25046 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25047 PyObject *resultobj = 0;
25048 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25049 int result;
25050 void *argp1 = 0 ;
25051 int res1 = 0 ;
25052 PyObject *swig_obj[1] ;
25053
25054 if (!args) SWIG_fail;
25055 swig_obj[0] = args;
25056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25057 if (!SWIG_IsOK(res1)) {
25058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25059 }
25060 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25061 {
25062 PyThreadState* __tstate = wxPyBeginAllowThreads();
25063 result = (int)(arg1)->GetMaxRows();
25064 wxPyEndAllowThreads(__tstate);
25065 if (PyErr_Occurred()) SWIG_fail;
25066 }
25067 resultobj = SWIG_From_int(static_cast< int >(result));
25068 return resultobj;
25069 fail:
25070 return NULL;
25071 }
25072
25073
25074 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25075 PyObject *resultobj = 0;
25076 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25077 int result;
25078 void *argp1 = 0 ;
25079 int res1 = 0 ;
25080 PyObject *swig_obj[1] ;
25081
25082 if (!args) SWIG_fail;
25083 swig_obj[0] = args;
25084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25085 if (!SWIG_IsOK(res1)) {
25086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25087 }
25088 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25089 {
25090 PyThreadState* __tstate = wxPyBeginAllowThreads();
25091 result = (int)(arg1)->GetMaxCols();
25092 wxPyEndAllowThreads(__tstate);
25093 if (PyErr_Occurred()) SWIG_fail;
25094 }
25095 resultobj = SWIG_From_int(static_cast< int >(result));
25096 return resultobj;
25097 fail:
25098 return NULL;
25099 }
25100
25101
25102 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25103 PyObject *resultobj = 0;
25104 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25105 wxSize *arg2 = 0 ;
25106 void *argp1 = 0 ;
25107 int res1 = 0 ;
25108 wxSize temp2 ;
25109 PyObject * obj0 = 0 ;
25110 PyObject * obj1 = 0 ;
25111 char * kwnames[] = {
25112 (char *) "self",(char *) "size", NULL
25113 };
25114
25115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25117 if (!SWIG_IsOK(res1)) {
25118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25119 }
25120 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25121 {
25122 arg2 = &temp2;
25123 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25124 }
25125 {
25126 PyThreadState* __tstate = wxPyBeginAllowThreads();
25127 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25128 wxPyEndAllowThreads(__tstate);
25129 if (PyErr_Occurred()) SWIG_fail;
25130 }
25131 resultobj = SWIG_Py_Void();
25132 return resultobj;
25133 fail:
25134 return NULL;
25135 }
25136
25137
25138 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25139 PyObject *resultobj = 0;
25140 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25141 wxSize result;
25142 void *argp1 = 0 ;
25143 int res1 = 0 ;
25144 PyObject *swig_obj[1] ;
25145
25146 if (!args) SWIG_fail;
25147 swig_obj[0] = args;
25148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25149 if (!SWIG_IsOK(res1)) {
25150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25151 }
25152 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25153 {
25154 PyThreadState* __tstate = wxPyBeginAllowThreads();
25155 result = (arg1)->GetToolBitmapSize();
25156 wxPyEndAllowThreads(__tstate);
25157 if (PyErr_Occurred()) SWIG_fail;
25158 }
25159 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25160 return resultobj;
25161 fail:
25162 return NULL;
25163 }
25164
25165
25166 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25167 PyObject *resultobj = 0;
25168 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25169 wxSize result;
25170 void *argp1 = 0 ;
25171 int res1 = 0 ;
25172 PyObject *swig_obj[1] ;
25173
25174 if (!args) SWIG_fail;
25175 swig_obj[0] = args;
25176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25177 if (!SWIG_IsOK(res1)) {
25178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25179 }
25180 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25181 {
25182 PyThreadState* __tstate = wxPyBeginAllowThreads();
25183 result = (arg1)->GetToolSize();
25184 wxPyEndAllowThreads(__tstate);
25185 if (PyErr_Occurred()) SWIG_fail;
25186 }
25187 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25188 return resultobj;
25189 fail:
25190 return NULL;
25191 }
25192
25193
25194 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25195 PyObject *resultobj = 0;
25196 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25197 int arg2 ;
25198 int arg3 ;
25199 wxToolBarToolBase *result = 0 ;
25200 void *argp1 = 0 ;
25201 int res1 = 0 ;
25202 int val2 ;
25203 int ecode2 = 0 ;
25204 int val3 ;
25205 int ecode3 = 0 ;
25206 PyObject * obj0 = 0 ;
25207 PyObject * obj1 = 0 ;
25208 PyObject * obj2 = 0 ;
25209 char * kwnames[] = {
25210 (char *) "self",(char *) "x",(char *) "y", NULL
25211 };
25212
25213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25215 if (!SWIG_IsOK(res1)) {
25216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25217 }
25218 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25219 ecode2 = SWIG_AsVal_int(obj1, &val2);
25220 if (!SWIG_IsOK(ecode2)) {
25221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25222 }
25223 arg2 = static_cast< int >(val2);
25224 ecode3 = SWIG_AsVal_int(obj2, &val3);
25225 if (!SWIG_IsOK(ecode3)) {
25226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25227 }
25228 arg3 = static_cast< int >(val3);
25229 {
25230 PyThreadState* __tstate = wxPyBeginAllowThreads();
25231 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25232 wxPyEndAllowThreads(__tstate);
25233 if (PyErr_Occurred()) SWIG_fail;
25234 }
25235 {
25236 resultobj = wxPyMake_wxObject(result, (bool)0);
25237 }
25238 return resultobj;
25239 fail:
25240 return NULL;
25241 }
25242
25243
25244 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25245 PyObject *resultobj = 0;
25246 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25247 int arg2 ;
25248 wxToolBarToolBase *result = 0 ;
25249 void *argp1 = 0 ;
25250 int res1 = 0 ;
25251 int val2 ;
25252 int ecode2 = 0 ;
25253 PyObject * obj0 = 0 ;
25254 PyObject * obj1 = 0 ;
25255 char * kwnames[] = {
25256 (char *) "self",(char *) "toolid", NULL
25257 };
25258
25259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25261 if (!SWIG_IsOK(res1)) {
25262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25263 }
25264 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25265 ecode2 = SWIG_AsVal_int(obj1, &val2);
25266 if (!SWIG_IsOK(ecode2)) {
25267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25268 }
25269 arg2 = static_cast< int >(val2);
25270 {
25271 PyThreadState* __tstate = wxPyBeginAllowThreads();
25272 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25273 wxPyEndAllowThreads(__tstate);
25274 if (PyErr_Occurred()) SWIG_fail;
25275 }
25276 {
25277 resultobj = wxPyMake_wxObject(result, (bool)0);
25278 }
25279 return resultobj;
25280 fail:
25281 return NULL;
25282 }
25283
25284
25285 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25286 PyObject *resultobj = 0;
25287 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25288 bool result;
25289 void *argp1 = 0 ;
25290 int res1 = 0 ;
25291 PyObject *swig_obj[1] ;
25292
25293 if (!args) SWIG_fail;
25294 swig_obj[0] = args;
25295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25296 if (!SWIG_IsOK(res1)) {
25297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25298 }
25299 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25300 {
25301 PyThreadState* __tstate = wxPyBeginAllowThreads();
25302 result = (bool)(arg1)->IsVertical();
25303 wxPyEndAllowThreads(__tstate);
25304 if (PyErr_Occurred()) SWIG_fail;
25305 }
25306 {
25307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25308 }
25309 return resultobj;
25310 fail:
25311 return NULL;
25312 }
25313
25314
25315 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25316 PyObject *resultobj = 0;
25317 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25318 size_t result;
25319 void *argp1 = 0 ;
25320 int res1 = 0 ;
25321 PyObject *swig_obj[1] ;
25322
25323 if (!args) SWIG_fail;
25324 swig_obj[0] = args;
25325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25326 if (!SWIG_IsOK(res1)) {
25327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25328 }
25329 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25330 {
25331 PyThreadState* __tstate = wxPyBeginAllowThreads();
25332 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25333 wxPyEndAllowThreads(__tstate);
25334 if (PyErr_Occurred()) SWIG_fail;
25335 }
25336 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25337 return resultobj;
25338 fail:
25339 return NULL;
25340 }
25341
25342
25343 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25344 PyObject *obj;
25345 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25346 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25347 return SWIG_Py_Void();
25348 }
25349
25350 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25351 PyObject *resultobj = 0;
25352 wxWindow *arg1 = (wxWindow *) 0 ;
25353 int arg2 = (int) -1 ;
25354 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25355 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25356 wxSize const &arg4_defvalue = wxDefaultSize ;
25357 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25358 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25359 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25360 wxString *arg6 = (wxString *) &arg6_defvalue ;
25361 wxToolBar *result = 0 ;
25362 void *argp1 = 0 ;
25363 int res1 = 0 ;
25364 int val2 ;
25365 int ecode2 = 0 ;
25366 wxPoint temp3 ;
25367 wxSize temp4 ;
25368 long val5 ;
25369 int ecode5 = 0 ;
25370 bool temp6 = false ;
25371 PyObject * obj0 = 0 ;
25372 PyObject * obj1 = 0 ;
25373 PyObject * obj2 = 0 ;
25374 PyObject * obj3 = 0 ;
25375 PyObject * obj4 = 0 ;
25376 PyObject * obj5 = 0 ;
25377 char * kwnames[] = {
25378 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25379 };
25380
25381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25383 if (!SWIG_IsOK(res1)) {
25384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25385 }
25386 arg1 = reinterpret_cast< wxWindow * >(argp1);
25387 if (obj1) {
25388 ecode2 = SWIG_AsVal_int(obj1, &val2);
25389 if (!SWIG_IsOK(ecode2)) {
25390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25391 }
25392 arg2 = static_cast< int >(val2);
25393 }
25394 if (obj2) {
25395 {
25396 arg3 = &temp3;
25397 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25398 }
25399 }
25400 if (obj3) {
25401 {
25402 arg4 = &temp4;
25403 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25404 }
25405 }
25406 if (obj4) {
25407 ecode5 = SWIG_AsVal_long(obj4, &val5);
25408 if (!SWIG_IsOK(ecode5)) {
25409 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25410 }
25411 arg5 = static_cast< long >(val5);
25412 }
25413 if (obj5) {
25414 {
25415 arg6 = wxString_in_helper(obj5);
25416 if (arg6 == NULL) SWIG_fail;
25417 temp6 = true;
25418 }
25419 }
25420 {
25421 if (!wxPyCheckForApp()) SWIG_fail;
25422 PyThreadState* __tstate = wxPyBeginAllowThreads();
25423 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25424 wxPyEndAllowThreads(__tstate);
25425 if (PyErr_Occurred()) SWIG_fail;
25426 }
25427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25428 {
25429 if (temp6)
25430 delete arg6;
25431 }
25432 return resultobj;
25433 fail:
25434 {
25435 if (temp6)
25436 delete arg6;
25437 }
25438 return NULL;
25439 }
25440
25441
25442 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25443 PyObject *resultobj = 0;
25444 wxToolBar *result = 0 ;
25445
25446 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25447 {
25448 if (!wxPyCheckForApp()) SWIG_fail;
25449 PyThreadState* __tstate = wxPyBeginAllowThreads();
25450 result = (wxToolBar *)new wxToolBar();
25451 wxPyEndAllowThreads(__tstate);
25452 if (PyErr_Occurred()) SWIG_fail;
25453 }
25454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25455 return resultobj;
25456 fail:
25457 return NULL;
25458 }
25459
25460
25461 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25462 PyObject *resultobj = 0;
25463 wxToolBar *arg1 = (wxToolBar *) 0 ;
25464 wxWindow *arg2 = (wxWindow *) 0 ;
25465 int arg3 = (int) -1 ;
25466 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25467 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25468 wxSize const &arg5_defvalue = wxDefaultSize ;
25469 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25470 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25471 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25472 wxString *arg7 = (wxString *) &arg7_defvalue ;
25473 bool result;
25474 void *argp1 = 0 ;
25475 int res1 = 0 ;
25476 void *argp2 = 0 ;
25477 int res2 = 0 ;
25478 int val3 ;
25479 int ecode3 = 0 ;
25480 wxPoint temp4 ;
25481 wxSize temp5 ;
25482 long val6 ;
25483 int ecode6 = 0 ;
25484 bool temp7 = false ;
25485 PyObject * obj0 = 0 ;
25486 PyObject * obj1 = 0 ;
25487 PyObject * obj2 = 0 ;
25488 PyObject * obj3 = 0 ;
25489 PyObject * obj4 = 0 ;
25490 PyObject * obj5 = 0 ;
25491 PyObject * obj6 = 0 ;
25492 char * kwnames[] = {
25493 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25494 };
25495
25496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25498 if (!SWIG_IsOK(res1)) {
25499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25500 }
25501 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25502 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25503 if (!SWIG_IsOK(res2)) {
25504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25505 }
25506 arg2 = reinterpret_cast< wxWindow * >(argp2);
25507 if (obj2) {
25508 ecode3 = SWIG_AsVal_int(obj2, &val3);
25509 if (!SWIG_IsOK(ecode3)) {
25510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25511 }
25512 arg3 = static_cast< int >(val3);
25513 }
25514 if (obj3) {
25515 {
25516 arg4 = &temp4;
25517 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25518 }
25519 }
25520 if (obj4) {
25521 {
25522 arg5 = &temp5;
25523 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25524 }
25525 }
25526 if (obj5) {
25527 ecode6 = SWIG_AsVal_long(obj5, &val6);
25528 if (!SWIG_IsOK(ecode6)) {
25529 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25530 }
25531 arg6 = static_cast< long >(val6);
25532 }
25533 if (obj6) {
25534 {
25535 arg7 = wxString_in_helper(obj6);
25536 if (arg7 == NULL) SWIG_fail;
25537 temp7 = true;
25538 }
25539 }
25540 {
25541 PyThreadState* __tstate = wxPyBeginAllowThreads();
25542 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25543 wxPyEndAllowThreads(__tstate);
25544 if (PyErr_Occurred()) SWIG_fail;
25545 }
25546 {
25547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25548 }
25549 {
25550 if (temp7)
25551 delete arg7;
25552 }
25553 return resultobj;
25554 fail:
25555 {
25556 if (temp7)
25557 delete arg7;
25558 }
25559 return NULL;
25560 }
25561
25562
25563 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25564 PyObject *resultobj = 0;
25565 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25566 SwigValueWrapper<wxVisualAttributes > result;
25567 int val1 ;
25568 int ecode1 = 0 ;
25569 PyObject * obj0 = 0 ;
25570 char * kwnames[] = {
25571 (char *) "variant", NULL
25572 };
25573
25574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25575 if (obj0) {
25576 ecode1 = SWIG_AsVal_int(obj0, &val1);
25577 if (!SWIG_IsOK(ecode1)) {
25578 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25579 }
25580 arg1 = static_cast< wxWindowVariant >(val1);
25581 }
25582 {
25583 if (!wxPyCheckForApp()) SWIG_fail;
25584 PyThreadState* __tstate = wxPyBeginAllowThreads();
25585 result = wxToolBar::GetClassDefaultAttributes(arg1);
25586 wxPyEndAllowThreads(__tstate);
25587 if (PyErr_Occurred()) SWIG_fail;
25588 }
25589 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25590 return resultobj;
25591 fail:
25592 return NULL;
25593 }
25594
25595
25596 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25597 PyObject *obj;
25598 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25599 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25600 return SWIG_Py_Void();
25601 }
25602
25603 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25604 return SWIG_Python_InitShadowInstance(args);
25605 }
25606
25607 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25608 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25609 return 1;
25610 }
25611
25612
25613 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25614 PyObject *pyobj = 0;
25615
25616 {
25617 #if wxUSE_UNICODE
25618 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25619 #else
25620 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25621 #endif
25622 }
25623 return pyobj;
25624 }
25625
25626
25627 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25628 PyObject *resultobj = 0;
25629 wxColour const &arg1_defvalue = wxNullColour ;
25630 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25631 wxColour const &arg2_defvalue = wxNullColour ;
25632 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25633 wxFont const &arg3_defvalue = wxNullFont ;
25634 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25635 wxListItemAttr *result = 0 ;
25636 wxColour temp1 ;
25637 wxColour temp2 ;
25638 void *argp3 = 0 ;
25639 int res3 = 0 ;
25640 PyObject * obj0 = 0 ;
25641 PyObject * obj1 = 0 ;
25642 PyObject * obj2 = 0 ;
25643 char * kwnames[] = {
25644 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25645 };
25646
25647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25648 if (obj0) {
25649 {
25650 arg1 = &temp1;
25651 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25652 }
25653 }
25654 if (obj1) {
25655 {
25656 arg2 = &temp2;
25657 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25658 }
25659 }
25660 if (obj2) {
25661 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25662 if (!SWIG_IsOK(res3)) {
25663 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25664 }
25665 if (!argp3) {
25666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25667 }
25668 arg3 = reinterpret_cast< wxFont * >(argp3);
25669 }
25670 {
25671 PyThreadState* __tstate = wxPyBeginAllowThreads();
25672 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25673 wxPyEndAllowThreads(__tstate);
25674 if (PyErr_Occurred()) SWIG_fail;
25675 }
25676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25677 return resultobj;
25678 fail:
25679 return NULL;
25680 }
25681
25682
25683 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25684 PyObject *resultobj = 0;
25685 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25686 void *argp1 = 0 ;
25687 int res1 = 0 ;
25688 PyObject *swig_obj[1] ;
25689
25690 if (!args) SWIG_fail;
25691 swig_obj[0] = args;
25692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25693 if (!SWIG_IsOK(res1)) {
25694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25695 }
25696 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25697 {
25698 PyThreadState* __tstate = wxPyBeginAllowThreads();
25699 delete arg1;
25700
25701 wxPyEndAllowThreads(__tstate);
25702 if (PyErr_Occurred()) SWIG_fail;
25703 }
25704 resultobj = SWIG_Py_Void();
25705 return resultobj;
25706 fail:
25707 return NULL;
25708 }
25709
25710
25711 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25712 PyObject *resultobj = 0;
25713 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25714 wxColour *arg2 = 0 ;
25715 void *argp1 = 0 ;
25716 int res1 = 0 ;
25717 wxColour temp2 ;
25718 PyObject * obj0 = 0 ;
25719 PyObject * obj1 = 0 ;
25720 char * kwnames[] = {
25721 (char *) "self",(char *) "colText", NULL
25722 };
25723
25724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25726 if (!SWIG_IsOK(res1)) {
25727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25728 }
25729 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25730 {
25731 arg2 = &temp2;
25732 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25733 }
25734 {
25735 PyThreadState* __tstate = wxPyBeginAllowThreads();
25736 (arg1)->SetTextColour((wxColour const &)*arg2);
25737 wxPyEndAllowThreads(__tstate);
25738 if (PyErr_Occurred()) SWIG_fail;
25739 }
25740 resultobj = SWIG_Py_Void();
25741 return resultobj;
25742 fail:
25743 return NULL;
25744 }
25745
25746
25747 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25748 PyObject *resultobj = 0;
25749 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25750 wxColour *arg2 = 0 ;
25751 void *argp1 = 0 ;
25752 int res1 = 0 ;
25753 wxColour temp2 ;
25754 PyObject * obj0 = 0 ;
25755 PyObject * obj1 = 0 ;
25756 char * kwnames[] = {
25757 (char *) "self",(char *) "colBack", NULL
25758 };
25759
25760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25762 if (!SWIG_IsOK(res1)) {
25763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25764 }
25765 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25766 {
25767 arg2 = &temp2;
25768 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25769 }
25770 {
25771 PyThreadState* __tstate = wxPyBeginAllowThreads();
25772 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25773 wxPyEndAllowThreads(__tstate);
25774 if (PyErr_Occurred()) SWIG_fail;
25775 }
25776 resultobj = SWIG_Py_Void();
25777 return resultobj;
25778 fail:
25779 return NULL;
25780 }
25781
25782
25783 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25784 PyObject *resultobj = 0;
25785 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25786 wxFont *arg2 = 0 ;
25787 void *argp1 = 0 ;
25788 int res1 = 0 ;
25789 void *argp2 = 0 ;
25790 int res2 = 0 ;
25791 PyObject * obj0 = 0 ;
25792 PyObject * obj1 = 0 ;
25793 char * kwnames[] = {
25794 (char *) "self",(char *) "font", NULL
25795 };
25796
25797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25799 if (!SWIG_IsOK(res1)) {
25800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25801 }
25802 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25804 if (!SWIG_IsOK(res2)) {
25805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25806 }
25807 if (!argp2) {
25808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25809 }
25810 arg2 = reinterpret_cast< wxFont * >(argp2);
25811 {
25812 PyThreadState* __tstate = wxPyBeginAllowThreads();
25813 (arg1)->SetFont((wxFont const &)*arg2);
25814 wxPyEndAllowThreads(__tstate);
25815 if (PyErr_Occurred()) SWIG_fail;
25816 }
25817 resultobj = SWIG_Py_Void();
25818 return resultobj;
25819 fail:
25820 return NULL;
25821 }
25822
25823
25824 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25825 PyObject *resultobj = 0;
25826 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25827 bool result;
25828 void *argp1 = 0 ;
25829 int res1 = 0 ;
25830 PyObject *swig_obj[1] ;
25831
25832 if (!args) SWIG_fail;
25833 swig_obj[0] = args;
25834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25835 if (!SWIG_IsOK(res1)) {
25836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25837 }
25838 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25839 {
25840 PyThreadState* __tstate = wxPyBeginAllowThreads();
25841 result = (bool)(arg1)->HasTextColour();
25842 wxPyEndAllowThreads(__tstate);
25843 if (PyErr_Occurred()) SWIG_fail;
25844 }
25845 {
25846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25847 }
25848 return resultobj;
25849 fail:
25850 return NULL;
25851 }
25852
25853
25854 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25855 PyObject *resultobj = 0;
25856 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25857 bool result;
25858 void *argp1 = 0 ;
25859 int res1 = 0 ;
25860 PyObject *swig_obj[1] ;
25861
25862 if (!args) SWIG_fail;
25863 swig_obj[0] = args;
25864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25865 if (!SWIG_IsOK(res1)) {
25866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25867 }
25868 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25869 {
25870 PyThreadState* __tstate = wxPyBeginAllowThreads();
25871 result = (bool)(arg1)->HasBackgroundColour();
25872 wxPyEndAllowThreads(__tstate);
25873 if (PyErr_Occurred()) SWIG_fail;
25874 }
25875 {
25876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25877 }
25878 return resultobj;
25879 fail:
25880 return NULL;
25881 }
25882
25883
25884 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25885 PyObject *resultobj = 0;
25886 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25887 bool result;
25888 void *argp1 = 0 ;
25889 int res1 = 0 ;
25890 PyObject *swig_obj[1] ;
25891
25892 if (!args) SWIG_fail;
25893 swig_obj[0] = args;
25894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25895 if (!SWIG_IsOK(res1)) {
25896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25897 }
25898 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25899 {
25900 PyThreadState* __tstate = wxPyBeginAllowThreads();
25901 result = (bool)(arg1)->HasFont();
25902 wxPyEndAllowThreads(__tstate);
25903 if (PyErr_Occurred()) SWIG_fail;
25904 }
25905 {
25906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25907 }
25908 return resultobj;
25909 fail:
25910 return NULL;
25911 }
25912
25913
25914 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25915 PyObject *resultobj = 0;
25916 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25917 wxColour result;
25918 void *argp1 = 0 ;
25919 int res1 = 0 ;
25920 PyObject *swig_obj[1] ;
25921
25922 if (!args) SWIG_fail;
25923 swig_obj[0] = args;
25924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25925 if (!SWIG_IsOK(res1)) {
25926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25927 }
25928 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25929 {
25930 PyThreadState* __tstate = wxPyBeginAllowThreads();
25931 result = (arg1)->GetTextColour();
25932 wxPyEndAllowThreads(__tstate);
25933 if (PyErr_Occurred()) SWIG_fail;
25934 }
25935 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25936 return resultobj;
25937 fail:
25938 return NULL;
25939 }
25940
25941
25942 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25943 PyObject *resultobj = 0;
25944 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25945 wxColour result;
25946 void *argp1 = 0 ;
25947 int res1 = 0 ;
25948 PyObject *swig_obj[1] ;
25949
25950 if (!args) SWIG_fail;
25951 swig_obj[0] = args;
25952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25953 if (!SWIG_IsOK(res1)) {
25954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25955 }
25956 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25957 {
25958 PyThreadState* __tstate = wxPyBeginAllowThreads();
25959 result = (arg1)->GetBackgroundColour();
25960 wxPyEndAllowThreads(__tstate);
25961 if (PyErr_Occurred()) SWIG_fail;
25962 }
25963 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25964 return resultobj;
25965 fail:
25966 return NULL;
25967 }
25968
25969
25970 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25971 PyObject *resultobj = 0;
25972 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25973 wxFont result;
25974 void *argp1 = 0 ;
25975 int res1 = 0 ;
25976 PyObject *swig_obj[1] ;
25977
25978 if (!args) SWIG_fail;
25979 swig_obj[0] = args;
25980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25981 if (!SWIG_IsOK(res1)) {
25982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25983 }
25984 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25985 {
25986 PyThreadState* __tstate = wxPyBeginAllowThreads();
25987 result = (arg1)->GetFont();
25988 wxPyEndAllowThreads(__tstate);
25989 if (PyErr_Occurred()) SWIG_fail;
25990 }
25991 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
25992 return resultobj;
25993 fail:
25994 return NULL;
25995 }
25996
25997
25998 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25999 PyObject *resultobj = 0;
26000 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26001 wxListItemAttr *arg2 = 0 ;
26002 void *argp1 = 0 ;
26003 int res1 = 0 ;
26004 void *argp2 = 0 ;
26005 int res2 = 0 ;
26006 PyObject * obj0 = 0 ;
26007 PyObject * obj1 = 0 ;
26008 char * kwnames[] = {
26009 (char *) "self",(char *) "source", NULL
26010 };
26011
26012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26014 if (!SWIG_IsOK(res1)) {
26015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26016 }
26017 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26019 if (!SWIG_IsOK(res2)) {
26020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26021 }
26022 if (!argp2) {
26023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26024 }
26025 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26026 {
26027 PyThreadState* __tstate = wxPyBeginAllowThreads();
26028 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26029 wxPyEndAllowThreads(__tstate);
26030 if (PyErr_Occurred()) SWIG_fail;
26031 }
26032 resultobj = SWIG_Py_Void();
26033 return resultobj;
26034 fail:
26035 return NULL;
26036 }
26037
26038
26039 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26040 PyObject *resultobj = 0;
26041 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26042 void *argp1 = 0 ;
26043 int res1 = 0 ;
26044 PyObject *swig_obj[1] ;
26045
26046 if (!args) SWIG_fail;
26047 swig_obj[0] = args;
26048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26049 if (!SWIG_IsOK(res1)) {
26050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26051 }
26052 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26053 {
26054 PyThreadState* __tstate = wxPyBeginAllowThreads();
26055 wxListItemAttr_Destroy(arg1);
26056 wxPyEndAllowThreads(__tstate);
26057 if (PyErr_Occurred()) SWIG_fail;
26058 }
26059 resultobj = SWIG_Py_Void();
26060 return resultobj;
26061 fail:
26062 return NULL;
26063 }
26064
26065
26066 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26067 PyObject *obj;
26068 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26069 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26070 return SWIG_Py_Void();
26071 }
26072
26073 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26074 return SWIG_Python_InitShadowInstance(args);
26075 }
26076
26077 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26078 PyObject *resultobj = 0;
26079 wxListItem *result = 0 ;
26080
26081 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26082 {
26083 PyThreadState* __tstate = wxPyBeginAllowThreads();
26084 result = (wxListItem *)new wxListItem();
26085 wxPyEndAllowThreads(__tstate);
26086 if (PyErr_Occurred()) SWIG_fail;
26087 }
26088 {
26089 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26090 }
26091 return resultobj;
26092 fail:
26093 return NULL;
26094 }
26095
26096
26097 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26098 PyObject *resultobj = 0;
26099 wxListItem *arg1 = (wxListItem *) 0 ;
26100 void *argp1 = 0 ;
26101 int res1 = 0 ;
26102 PyObject *swig_obj[1] ;
26103
26104 if (!args) SWIG_fail;
26105 swig_obj[0] = args;
26106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26107 if (!SWIG_IsOK(res1)) {
26108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26109 }
26110 arg1 = reinterpret_cast< wxListItem * >(argp1);
26111 {
26112 PyThreadState* __tstate = wxPyBeginAllowThreads();
26113 delete arg1;
26114
26115 wxPyEndAllowThreads(__tstate);
26116 if (PyErr_Occurred()) SWIG_fail;
26117 }
26118 resultobj = SWIG_Py_Void();
26119 return resultobj;
26120 fail:
26121 return NULL;
26122 }
26123
26124
26125 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26126 PyObject *resultobj = 0;
26127 wxListItem *arg1 = (wxListItem *) 0 ;
26128 void *argp1 = 0 ;
26129 int res1 = 0 ;
26130 PyObject *swig_obj[1] ;
26131
26132 if (!args) SWIG_fail;
26133 swig_obj[0] = args;
26134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26135 if (!SWIG_IsOK(res1)) {
26136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26137 }
26138 arg1 = reinterpret_cast< wxListItem * >(argp1);
26139 {
26140 PyThreadState* __tstate = wxPyBeginAllowThreads();
26141 (arg1)->Clear();
26142 wxPyEndAllowThreads(__tstate);
26143 if (PyErr_Occurred()) SWIG_fail;
26144 }
26145 resultobj = SWIG_Py_Void();
26146 return resultobj;
26147 fail:
26148 return NULL;
26149 }
26150
26151
26152 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26153 PyObject *resultobj = 0;
26154 wxListItem *arg1 = (wxListItem *) 0 ;
26155 void *argp1 = 0 ;
26156 int res1 = 0 ;
26157 PyObject *swig_obj[1] ;
26158
26159 if (!args) SWIG_fail;
26160 swig_obj[0] = args;
26161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26162 if (!SWIG_IsOK(res1)) {
26163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26164 }
26165 arg1 = reinterpret_cast< wxListItem * >(argp1);
26166 {
26167 PyThreadState* __tstate = wxPyBeginAllowThreads();
26168 (arg1)->ClearAttributes();
26169 wxPyEndAllowThreads(__tstate);
26170 if (PyErr_Occurred()) SWIG_fail;
26171 }
26172 resultobj = SWIG_Py_Void();
26173 return resultobj;
26174 fail:
26175 return NULL;
26176 }
26177
26178
26179 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26180 PyObject *resultobj = 0;
26181 wxListItem *arg1 = (wxListItem *) 0 ;
26182 long arg2 ;
26183 void *argp1 = 0 ;
26184 int res1 = 0 ;
26185 long val2 ;
26186 int ecode2 = 0 ;
26187 PyObject * obj0 = 0 ;
26188 PyObject * obj1 = 0 ;
26189 char * kwnames[] = {
26190 (char *) "self",(char *) "mask", NULL
26191 };
26192
26193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26195 if (!SWIG_IsOK(res1)) {
26196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26197 }
26198 arg1 = reinterpret_cast< wxListItem * >(argp1);
26199 ecode2 = SWIG_AsVal_long(obj1, &val2);
26200 if (!SWIG_IsOK(ecode2)) {
26201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26202 }
26203 arg2 = static_cast< long >(val2);
26204 {
26205 PyThreadState* __tstate = wxPyBeginAllowThreads();
26206 (arg1)->SetMask(arg2);
26207 wxPyEndAllowThreads(__tstate);
26208 if (PyErr_Occurred()) SWIG_fail;
26209 }
26210 resultobj = SWIG_Py_Void();
26211 return resultobj;
26212 fail:
26213 return NULL;
26214 }
26215
26216
26217 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26218 PyObject *resultobj = 0;
26219 wxListItem *arg1 = (wxListItem *) 0 ;
26220 long arg2 ;
26221 void *argp1 = 0 ;
26222 int res1 = 0 ;
26223 long val2 ;
26224 int ecode2 = 0 ;
26225 PyObject * obj0 = 0 ;
26226 PyObject * obj1 = 0 ;
26227 char * kwnames[] = {
26228 (char *) "self",(char *) "id", NULL
26229 };
26230
26231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26233 if (!SWIG_IsOK(res1)) {
26234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26235 }
26236 arg1 = reinterpret_cast< wxListItem * >(argp1);
26237 ecode2 = SWIG_AsVal_long(obj1, &val2);
26238 if (!SWIG_IsOK(ecode2)) {
26239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26240 }
26241 arg2 = static_cast< long >(val2);
26242 {
26243 PyThreadState* __tstate = wxPyBeginAllowThreads();
26244 (arg1)->SetId(arg2);
26245 wxPyEndAllowThreads(__tstate);
26246 if (PyErr_Occurred()) SWIG_fail;
26247 }
26248 resultobj = SWIG_Py_Void();
26249 return resultobj;
26250 fail:
26251 return NULL;
26252 }
26253
26254
26255 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26256 PyObject *resultobj = 0;
26257 wxListItem *arg1 = (wxListItem *) 0 ;
26258 int arg2 ;
26259 void *argp1 = 0 ;
26260 int res1 = 0 ;
26261 int val2 ;
26262 int ecode2 = 0 ;
26263 PyObject * obj0 = 0 ;
26264 PyObject * obj1 = 0 ;
26265 char * kwnames[] = {
26266 (char *) "self",(char *) "col", NULL
26267 };
26268
26269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26271 if (!SWIG_IsOK(res1)) {
26272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26273 }
26274 arg1 = reinterpret_cast< wxListItem * >(argp1);
26275 ecode2 = SWIG_AsVal_int(obj1, &val2);
26276 if (!SWIG_IsOK(ecode2)) {
26277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26278 }
26279 arg2 = static_cast< int >(val2);
26280 {
26281 PyThreadState* __tstate = wxPyBeginAllowThreads();
26282 (arg1)->SetColumn(arg2);
26283 wxPyEndAllowThreads(__tstate);
26284 if (PyErr_Occurred()) SWIG_fail;
26285 }
26286 resultobj = SWIG_Py_Void();
26287 return resultobj;
26288 fail:
26289 return NULL;
26290 }
26291
26292
26293 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26294 PyObject *resultobj = 0;
26295 wxListItem *arg1 = (wxListItem *) 0 ;
26296 long arg2 ;
26297 void *argp1 = 0 ;
26298 int res1 = 0 ;
26299 long val2 ;
26300 int ecode2 = 0 ;
26301 PyObject * obj0 = 0 ;
26302 PyObject * obj1 = 0 ;
26303 char * kwnames[] = {
26304 (char *) "self",(char *) "state", NULL
26305 };
26306
26307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26309 if (!SWIG_IsOK(res1)) {
26310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26311 }
26312 arg1 = reinterpret_cast< wxListItem * >(argp1);
26313 ecode2 = SWIG_AsVal_long(obj1, &val2);
26314 if (!SWIG_IsOK(ecode2)) {
26315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26316 }
26317 arg2 = static_cast< long >(val2);
26318 {
26319 PyThreadState* __tstate = wxPyBeginAllowThreads();
26320 (arg1)->SetState(arg2);
26321 wxPyEndAllowThreads(__tstate);
26322 if (PyErr_Occurred()) SWIG_fail;
26323 }
26324 resultobj = SWIG_Py_Void();
26325 return resultobj;
26326 fail:
26327 return NULL;
26328 }
26329
26330
26331 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26332 PyObject *resultobj = 0;
26333 wxListItem *arg1 = (wxListItem *) 0 ;
26334 long arg2 ;
26335 void *argp1 = 0 ;
26336 int res1 = 0 ;
26337 long val2 ;
26338 int ecode2 = 0 ;
26339 PyObject * obj0 = 0 ;
26340 PyObject * obj1 = 0 ;
26341 char * kwnames[] = {
26342 (char *) "self",(char *) "stateMask", NULL
26343 };
26344
26345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26347 if (!SWIG_IsOK(res1)) {
26348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26349 }
26350 arg1 = reinterpret_cast< wxListItem * >(argp1);
26351 ecode2 = SWIG_AsVal_long(obj1, &val2);
26352 if (!SWIG_IsOK(ecode2)) {
26353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26354 }
26355 arg2 = static_cast< long >(val2);
26356 {
26357 PyThreadState* __tstate = wxPyBeginAllowThreads();
26358 (arg1)->SetStateMask(arg2);
26359 wxPyEndAllowThreads(__tstate);
26360 if (PyErr_Occurred()) SWIG_fail;
26361 }
26362 resultobj = SWIG_Py_Void();
26363 return resultobj;
26364 fail:
26365 return NULL;
26366 }
26367
26368
26369 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26370 PyObject *resultobj = 0;
26371 wxListItem *arg1 = (wxListItem *) 0 ;
26372 wxString *arg2 = 0 ;
26373 void *argp1 = 0 ;
26374 int res1 = 0 ;
26375 bool temp2 = false ;
26376 PyObject * obj0 = 0 ;
26377 PyObject * obj1 = 0 ;
26378 char * kwnames[] = {
26379 (char *) "self",(char *) "text", NULL
26380 };
26381
26382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26384 if (!SWIG_IsOK(res1)) {
26385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26386 }
26387 arg1 = reinterpret_cast< wxListItem * >(argp1);
26388 {
26389 arg2 = wxString_in_helper(obj1);
26390 if (arg2 == NULL) SWIG_fail;
26391 temp2 = true;
26392 }
26393 {
26394 PyThreadState* __tstate = wxPyBeginAllowThreads();
26395 (arg1)->SetText((wxString const &)*arg2);
26396 wxPyEndAllowThreads(__tstate);
26397 if (PyErr_Occurred()) SWIG_fail;
26398 }
26399 resultobj = SWIG_Py_Void();
26400 {
26401 if (temp2)
26402 delete arg2;
26403 }
26404 return resultobj;
26405 fail:
26406 {
26407 if (temp2)
26408 delete arg2;
26409 }
26410 return NULL;
26411 }
26412
26413
26414 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26415 PyObject *resultobj = 0;
26416 wxListItem *arg1 = (wxListItem *) 0 ;
26417 int arg2 ;
26418 void *argp1 = 0 ;
26419 int res1 = 0 ;
26420 int val2 ;
26421 int ecode2 = 0 ;
26422 PyObject * obj0 = 0 ;
26423 PyObject * obj1 = 0 ;
26424 char * kwnames[] = {
26425 (char *) "self",(char *) "image", NULL
26426 };
26427
26428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26430 if (!SWIG_IsOK(res1)) {
26431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26432 }
26433 arg1 = reinterpret_cast< wxListItem * >(argp1);
26434 ecode2 = SWIG_AsVal_int(obj1, &val2);
26435 if (!SWIG_IsOK(ecode2)) {
26436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26437 }
26438 arg2 = static_cast< int >(val2);
26439 {
26440 PyThreadState* __tstate = wxPyBeginAllowThreads();
26441 (arg1)->SetImage(arg2);
26442 wxPyEndAllowThreads(__tstate);
26443 if (PyErr_Occurred()) SWIG_fail;
26444 }
26445 resultobj = SWIG_Py_Void();
26446 return resultobj;
26447 fail:
26448 return NULL;
26449 }
26450
26451
26452 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26453 PyObject *resultobj = 0;
26454 wxListItem *arg1 = (wxListItem *) 0 ;
26455 long arg2 ;
26456 void *argp1 = 0 ;
26457 int res1 = 0 ;
26458 long val2 ;
26459 int ecode2 = 0 ;
26460 PyObject * obj0 = 0 ;
26461 PyObject * obj1 = 0 ;
26462 char * kwnames[] = {
26463 (char *) "self",(char *) "data", NULL
26464 };
26465
26466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26468 if (!SWIG_IsOK(res1)) {
26469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26470 }
26471 arg1 = reinterpret_cast< wxListItem * >(argp1);
26472 ecode2 = SWIG_AsVal_long(obj1, &val2);
26473 if (!SWIG_IsOK(ecode2)) {
26474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26475 }
26476 arg2 = static_cast< long >(val2);
26477 {
26478 PyThreadState* __tstate = wxPyBeginAllowThreads();
26479 (arg1)->SetData(arg2);
26480 wxPyEndAllowThreads(__tstate);
26481 if (PyErr_Occurred()) SWIG_fail;
26482 }
26483 resultobj = SWIG_Py_Void();
26484 return resultobj;
26485 fail:
26486 return NULL;
26487 }
26488
26489
26490 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26491 PyObject *resultobj = 0;
26492 wxListItem *arg1 = (wxListItem *) 0 ;
26493 int arg2 ;
26494 void *argp1 = 0 ;
26495 int res1 = 0 ;
26496 int val2 ;
26497 int ecode2 = 0 ;
26498 PyObject * obj0 = 0 ;
26499 PyObject * obj1 = 0 ;
26500 char * kwnames[] = {
26501 (char *) "self",(char *) "width", NULL
26502 };
26503
26504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26506 if (!SWIG_IsOK(res1)) {
26507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26508 }
26509 arg1 = reinterpret_cast< wxListItem * >(argp1);
26510 ecode2 = SWIG_AsVal_int(obj1, &val2);
26511 if (!SWIG_IsOK(ecode2)) {
26512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26513 }
26514 arg2 = static_cast< int >(val2);
26515 {
26516 PyThreadState* __tstate = wxPyBeginAllowThreads();
26517 (arg1)->SetWidth(arg2);
26518 wxPyEndAllowThreads(__tstate);
26519 if (PyErr_Occurred()) SWIG_fail;
26520 }
26521 resultobj = SWIG_Py_Void();
26522 return resultobj;
26523 fail:
26524 return NULL;
26525 }
26526
26527
26528 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26529 PyObject *resultobj = 0;
26530 wxListItem *arg1 = (wxListItem *) 0 ;
26531 wxListColumnFormat arg2 ;
26532 void *argp1 = 0 ;
26533 int res1 = 0 ;
26534 int val2 ;
26535 int ecode2 = 0 ;
26536 PyObject * obj0 = 0 ;
26537 PyObject * obj1 = 0 ;
26538 char * kwnames[] = {
26539 (char *) "self",(char *) "align", NULL
26540 };
26541
26542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26544 if (!SWIG_IsOK(res1)) {
26545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26546 }
26547 arg1 = reinterpret_cast< wxListItem * >(argp1);
26548 ecode2 = SWIG_AsVal_int(obj1, &val2);
26549 if (!SWIG_IsOK(ecode2)) {
26550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26551 }
26552 arg2 = static_cast< wxListColumnFormat >(val2);
26553 {
26554 PyThreadState* __tstate = wxPyBeginAllowThreads();
26555 (arg1)->SetAlign(arg2);
26556 wxPyEndAllowThreads(__tstate);
26557 if (PyErr_Occurred()) SWIG_fail;
26558 }
26559 resultobj = SWIG_Py_Void();
26560 return resultobj;
26561 fail:
26562 return NULL;
26563 }
26564
26565
26566 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26567 PyObject *resultobj = 0;
26568 wxListItem *arg1 = (wxListItem *) 0 ;
26569 wxColour *arg2 = 0 ;
26570 void *argp1 = 0 ;
26571 int res1 = 0 ;
26572 wxColour temp2 ;
26573 PyObject * obj0 = 0 ;
26574 PyObject * obj1 = 0 ;
26575 char * kwnames[] = {
26576 (char *) "self",(char *) "colText", NULL
26577 };
26578
26579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26581 if (!SWIG_IsOK(res1)) {
26582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26583 }
26584 arg1 = reinterpret_cast< wxListItem * >(argp1);
26585 {
26586 arg2 = &temp2;
26587 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26588 }
26589 {
26590 PyThreadState* __tstate = wxPyBeginAllowThreads();
26591 (arg1)->SetTextColour((wxColour const &)*arg2);
26592 wxPyEndAllowThreads(__tstate);
26593 if (PyErr_Occurred()) SWIG_fail;
26594 }
26595 resultobj = SWIG_Py_Void();
26596 return resultobj;
26597 fail:
26598 return NULL;
26599 }
26600
26601
26602 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26603 PyObject *resultobj = 0;
26604 wxListItem *arg1 = (wxListItem *) 0 ;
26605 wxColour *arg2 = 0 ;
26606 void *argp1 = 0 ;
26607 int res1 = 0 ;
26608 wxColour temp2 ;
26609 PyObject * obj0 = 0 ;
26610 PyObject * obj1 = 0 ;
26611 char * kwnames[] = {
26612 (char *) "self",(char *) "colBack", NULL
26613 };
26614
26615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26617 if (!SWIG_IsOK(res1)) {
26618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26619 }
26620 arg1 = reinterpret_cast< wxListItem * >(argp1);
26621 {
26622 arg2 = &temp2;
26623 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26624 }
26625 {
26626 PyThreadState* __tstate = wxPyBeginAllowThreads();
26627 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26628 wxPyEndAllowThreads(__tstate);
26629 if (PyErr_Occurred()) SWIG_fail;
26630 }
26631 resultobj = SWIG_Py_Void();
26632 return resultobj;
26633 fail:
26634 return NULL;
26635 }
26636
26637
26638 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26639 PyObject *resultobj = 0;
26640 wxListItem *arg1 = (wxListItem *) 0 ;
26641 wxFont *arg2 = 0 ;
26642 void *argp1 = 0 ;
26643 int res1 = 0 ;
26644 void *argp2 = 0 ;
26645 int res2 = 0 ;
26646 PyObject * obj0 = 0 ;
26647 PyObject * obj1 = 0 ;
26648 char * kwnames[] = {
26649 (char *) "self",(char *) "font", NULL
26650 };
26651
26652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26654 if (!SWIG_IsOK(res1)) {
26655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26656 }
26657 arg1 = reinterpret_cast< wxListItem * >(argp1);
26658 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26659 if (!SWIG_IsOK(res2)) {
26660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26661 }
26662 if (!argp2) {
26663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26664 }
26665 arg2 = reinterpret_cast< wxFont * >(argp2);
26666 {
26667 PyThreadState* __tstate = wxPyBeginAllowThreads();
26668 (arg1)->SetFont((wxFont const &)*arg2);
26669 wxPyEndAllowThreads(__tstate);
26670 if (PyErr_Occurred()) SWIG_fail;
26671 }
26672 resultobj = SWIG_Py_Void();
26673 return resultobj;
26674 fail:
26675 return NULL;
26676 }
26677
26678
26679 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26680 PyObject *resultobj = 0;
26681 wxListItem *arg1 = (wxListItem *) 0 ;
26682 long result;
26683 void *argp1 = 0 ;
26684 int res1 = 0 ;
26685 PyObject *swig_obj[1] ;
26686
26687 if (!args) SWIG_fail;
26688 swig_obj[0] = args;
26689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26690 if (!SWIG_IsOK(res1)) {
26691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26692 }
26693 arg1 = reinterpret_cast< wxListItem * >(argp1);
26694 {
26695 PyThreadState* __tstate = wxPyBeginAllowThreads();
26696 result = (long)(arg1)->GetMask();
26697 wxPyEndAllowThreads(__tstate);
26698 if (PyErr_Occurred()) SWIG_fail;
26699 }
26700 resultobj = SWIG_From_long(static_cast< long >(result));
26701 return resultobj;
26702 fail:
26703 return NULL;
26704 }
26705
26706
26707 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26708 PyObject *resultobj = 0;
26709 wxListItem *arg1 = (wxListItem *) 0 ;
26710 long result;
26711 void *argp1 = 0 ;
26712 int res1 = 0 ;
26713 PyObject *swig_obj[1] ;
26714
26715 if (!args) SWIG_fail;
26716 swig_obj[0] = args;
26717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26718 if (!SWIG_IsOK(res1)) {
26719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26720 }
26721 arg1 = reinterpret_cast< wxListItem * >(argp1);
26722 {
26723 PyThreadState* __tstate = wxPyBeginAllowThreads();
26724 result = (long)(arg1)->GetId();
26725 wxPyEndAllowThreads(__tstate);
26726 if (PyErr_Occurred()) SWIG_fail;
26727 }
26728 resultobj = SWIG_From_long(static_cast< long >(result));
26729 return resultobj;
26730 fail:
26731 return NULL;
26732 }
26733
26734
26735 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26736 PyObject *resultobj = 0;
26737 wxListItem *arg1 = (wxListItem *) 0 ;
26738 int result;
26739 void *argp1 = 0 ;
26740 int res1 = 0 ;
26741 PyObject *swig_obj[1] ;
26742
26743 if (!args) SWIG_fail;
26744 swig_obj[0] = args;
26745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26746 if (!SWIG_IsOK(res1)) {
26747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26748 }
26749 arg1 = reinterpret_cast< wxListItem * >(argp1);
26750 {
26751 PyThreadState* __tstate = wxPyBeginAllowThreads();
26752 result = (int)(arg1)->GetColumn();
26753 wxPyEndAllowThreads(__tstate);
26754 if (PyErr_Occurred()) SWIG_fail;
26755 }
26756 resultobj = SWIG_From_int(static_cast< int >(result));
26757 return resultobj;
26758 fail:
26759 return NULL;
26760 }
26761
26762
26763 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26764 PyObject *resultobj = 0;
26765 wxListItem *arg1 = (wxListItem *) 0 ;
26766 long result;
26767 void *argp1 = 0 ;
26768 int res1 = 0 ;
26769 PyObject *swig_obj[1] ;
26770
26771 if (!args) SWIG_fail;
26772 swig_obj[0] = args;
26773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26774 if (!SWIG_IsOK(res1)) {
26775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26776 }
26777 arg1 = reinterpret_cast< wxListItem * >(argp1);
26778 {
26779 PyThreadState* __tstate = wxPyBeginAllowThreads();
26780 result = (long)(arg1)->GetState();
26781 wxPyEndAllowThreads(__tstate);
26782 if (PyErr_Occurred()) SWIG_fail;
26783 }
26784 resultobj = SWIG_From_long(static_cast< long >(result));
26785 return resultobj;
26786 fail:
26787 return NULL;
26788 }
26789
26790
26791 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26792 PyObject *resultobj = 0;
26793 wxListItem *arg1 = (wxListItem *) 0 ;
26794 wxString *result = 0 ;
26795 void *argp1 = 0 ;
26796 int res1 = 0 ;
26797 PyObject *swig_obj[1] ;
26798
26799 if (!args) SWIG_fail;
26800 swig_obj[0] = args;
26801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26802 if (!SWIG_IsOK(res1)) {
26803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26804 }
26805 arg1 = reinterpret_cast< wxListItem * >(argp1);
26806 {
26807 PyThreadState* __tstate = wxPyBeginAllowThreads();
26808 {
26809 wxString const &_result_ref = (arg1)->GetText();
26810 result = (wxString *) &_result_ref;
26811 }
26812 wxPyEndAllowThreads(__tstate);
26813 if (PyErr_Occurred()) SWIG_fail;
26814 }
26815 {
26816 #if wxUSE_UNICODE
26817 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26818 #else
26819 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26820 #endif
26821 }
26822 return resultobj;
26823 fail:
26824 return NULL;
26825 }
26826
26827
26828 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26829 PyObject *resultobj = 0;
26830 wxListItem *arg1 = (wxListItem *) 0 ;
26831 int result;
26832 void *argp1 = 0 ;
26833 int res1 = 0 ;
26834 PyObject *swig_obj[1] ;
26835
26836 if (!args) SWIG_fail;
26837 swig_obj[0] = args;
26838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26839 if (!SWIG_IsOK(res1)) {
26840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26841 }
26842 arg1 = reinterpret_cast< wxListItem * >(argp1);
26843 {
26844 PyThreadState* __tstate = wxPyBeginAllowThreads();
26845 result = (int)(arg1)->GetImage();
26846 wxPyEndAllowThreads(__tstate);
26847 if (PyErr_Occurred()) SWIG_fail;
26848 }
26849 resultobj = SWIG_From_int(static_cast< int >(result));
26850 return resultobj;
26851 fail:
26852 return NULL;
26853 }
26854
26855
26856 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26857 PyObject *resultobj = 0;
26858 wxListItem *arg1 = (wxListItem *) 0 ;
26859 long result;
26860 void *argp1 = 0 ;
26861 int res1 = 0 ;
26862 PyObject *swig_obj[1] ;
26863
26864 if (!args) SWIG_fail;
26865 swig_obj[0] = args;
26866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26867 if (!SWIG_IsOK(res1)) {
26868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26869 }
26870 arg1 = reinterpret_cast< wxListItem * >(argp1);
26871 {
26872 PyThreadState* __tstate = wxPyBeginAllowThreads();
26873 result = (long)(arg1)->GetData();
26874 wxPyEndAllowThreads(__tstate);
26875 if (PyErr_Occurred()) SWIG_fail;
26876 }
26877 resultobj = SWIG_From_long(static_cast< long >(result));
26878 return resultobj;
26879 fail:
26880 return NULL;
26881 }
26882
26883
26884 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26885 PyObject *resultobj = 0;
26886 wxListItem *arg1 = (wxListItem *) 0 ;
26887 int result;
26888 void *argp1 = 0 ;
26889 int res1 = 0 ;
26890 PyObject *swig_obj[1] ;
26891
26892 if (!args) SWIG_fail;
26893 swig_obj[0] = args;
26894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26895 if (!SWIG_IsOK(res1)) {
26896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26897 }
26898 arg1 = reinterpret_cast< wxListItem * >(argp1);
26899 {
26900 PyThreadState* __tstate = wxPyBeginAllowThreads();
26901 result = (int)(arg1)->GetWidth();
26902 wxPyEndAllowThreads(__tstate);
26903 if (PyErr_Occurred()) SWIG_fail;
26904 }
26905 resultobj = SWIG_From_int(static_cast< int >(result));
26906 return resultobj;
26907 fail:
26908 return NULL;
26909 }
26910
26911
26912 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26913 PyObject *resultobj = 0;
26914 wxListItem *arg1 = (wxListItem *) 0 ;
26915 wxListColumnFormat result;
26916 void *argp1 = 0 ;
26917 int res1 = 0 ;
26918 PyObject *swig_obj[1] ;
26919
26920 if (!args) SWIG_fail;
26921 swig_obj[0] = args;
26922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26923 if (!SWIG_IsOK(res1)) {
26924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26925 }
26926 arg1 = reinterpret_cast< wxListItem * >(argp1);
26927 {
26928 PyThreadState* __tstate = wxPyBeginAllowThreads();
26929 result = (wxListColumnFormat)(arg1)->GetAlign();
26930 wxPyEndAllowThreads(__tstate);
26931 if (PyErr_Occurred()) SWIG_fail;
26932 }
26933 resultobj = SWIG_From_int(static_cast< int >(result));
26934 return resultobj;
26935 fail:
26936 return NULL;
26937 }
26938
26939
26940 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26941 PyObject *resultobj = 0;
26942 wxListItem *arg1 = (wxListItem *) 0 ;
26943 wxListItemAttr *result = 0 ;
26944 void *argp1 = 0 ;
26945 int res1 = 0 ;
26946 PyObject *swig_obj[1] ;
26947
26948 if (!args) SWIG_fail;
26949 swig_obj[0] = args;
26950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26951 if (!SWIG_IsOK(res1)) {
26952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26953 }
26954 arg1 = reinterpret_cast< wxListItem * >(argp1);
26955 {
26956 PyThreadState* __tstate = wxPyBeginAllowThreads();
26957 result = (wxListItemAttr *)(arg1)->GetAttributes();
26958 wxPyEndAllowThreads(__tstate);
26959 if (PyErr_Occurred()) SWIG_fail;
26960 }
26961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26962 return resultobj;
26963 fail:
26964 return NULL;
26965 }
26966
26967
26968 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26969 PyObject *resultobj = 0;
26970 wxListItem *arg1 = (wxListItem *) 0 ;
26971 bool result;
26972 void *argp1 = 0 ;
26973 int res1 = 0 ;
26974 PyObject *swig_obj[1] ;
26975
26976 if (!args) SWIG_fail;
26977 swig_obj[0] = args;
26978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26979 if (!SWIG_IsOK(res1)) {
26980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26981 }
26982 arg1 = reinterpret_cast< wxListItem * >(argp1);
26983 {
26984 PyThreadState* __tstate = wxPyBeginAllowThreads();
26985 result = (bool)(arg1)->HasAttributes();
26986 wxPyEndAllowThreads(__tstate);
26987 if (PyErr_Occurred()) SWIG_fail;
26988 }
26989 {
26990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26991 }
26992 return resultobj;
26993 fail:
26994 return NULL;
26995 }
26996
26997
26998 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26999 PyObject *resultobj = 0;
27000 wxListItem *arg1 = (wxListItem *) 0 ;
27001 wxColour result;
27002 void *argp1 = 0 ;
27003 int res1 = 0 ;
27004 PyObject *swig_obj[1] ;
27005
27006 if (!args) SWIG_fail;
27007 swig_obj[0] = args;
27008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27009 if (!SWIG_IsOK(res1)) {
27010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27011 }
27012 arg1 = reinterpret_cast< wxListItem * >(argp1);
27013 {
27014 PyThreadState* __tstate = wxPyBeginAllowThreads();
27015 result = ((wxListItem const *)arg1)->GetTextColour();
27016 wxPyEndAllowThreads(__tstate);
27017 if (PyErr_Occurred()) SWIG_fail;
27018 }
27019 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27020 return resultobj;
27021 fail:
27022 return NULL;
27023 }
27024
27025
27026 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27027 PyObject *resultobj = 0;
27028 wxListItem *arg1 = (wxListItem *) 0 ;
27029 wxColour result;
27030 void *argp1 = 0 ;
27031 int res1 = 0 ;
27032 PyObject *swig_obj[1] ;
27033
27034 if (!args) SWIG_fail;
27035 swig_obj[0] = args;
27036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27037 if (!SWIG_IsOK(res1)) {
27038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27039 }
27040 arg1 = reinterpret_cast< wxListItem * >(argp1);
27041 {
27042 PyThreadState* __tstate = wxPyBeginAllowThreads();
27043 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27044 wxPyEndAllowThreads(__tstate);
27045 if (PyErr_Occurred()) SWIG_fail;
27046 }
27047 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27048 return resultobj;
27049 fail:
27050 return NULL;
27051 }
27052
27053
27054 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27055 PyObject *resultobj = 0;
27056 wxListItem *arg1 = (wxListItem *) 0 ;
27057 wxFont result;
27058 void *argp1 = 0 ;
27059 int res1 = 0 ;
27060 PyObject *swig_obj[1] ;
27061
27062 if (!args) SWIG_fail;
27063 swig_obj[0] = args;
27064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27065 if (!SWIG_IsOK(res1)) {
27066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27067 }
27068 arg1 = reinterpret_cast< wxListItem * >(argp1);
27069 {
27070 PyThreadState* __tstate = wxPyBeginAllowThreads();
27071 result = ((wxListItem const *)arg1)->GetFont();
27072 wxPyEndAllowThreads(__tstate);
27073 if (PyErr_Occurred()) SWIG_fail;
27074 }
27075 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27076 return resultobj;
27077 fail:
27078 return NULL;
27079 }
27080
27081
27082 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27083 PyObject *resultobj = 0;
27084 wxListItem *arg1 = (wxListItem *) 0 ;
27085 long arg2 ;
27086 void *argp1 = 0 ;
27087 int res1 = 0 ;
27088 long val2 ;
27089 int ecode2 = 0 ;
27090 PyObject *swig_obj[2] ;
27091
27092 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27094 if (!SWIG_IsOK(res1)) {
27095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27096 }
27097 arg1 = reinterpret_cast< wxListItem * >(argp1);
27098 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27099 if (!SWIG_IsOK(ecode2)) {
27100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27101 }
27102 arg2 = static_cast< long >(val2);
27103 if (arg1) (arg1)->m_mask = arg2;
27104
27105 resultobj = SWIG_Py_Void();
27106 return resultobj;
27107 fail:
27108 return NULL;
27109 }
27110
27111
27112 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27113 PyObject *resultobj = 0;
27114 wxListItem *arg1 = (wxListItem *) 0 ;
27115 long result;
27116 void *argp1 = 0 ;
27117 int res1 = 0 ;
27118 PyObject *swig_obj[1] ;
27119
27120 if (!args) SWIG_fail;
27121 swig_obj[0] = args;
27122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27123 if (!SWIG_IsOK(res1)) {
27124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27125 }
27126 arg1 = reinterpret_cast< wxListItem * >(argp1);
27127 result = (long) ((arg1)->m_mask);
27128 resultobj = SWIG_From_long(static_cast< long >(result));
27129 return resultobj;
27130 fail:
27131 return NULL;
27132 }
27133
27134
27135 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27136 PyObject *resultobj = 0;
27137 wxListItem *arg1 = (wxListItem *) 0 ;
27138 long arg2 ;
27139 void *argp1 = 0 ;
27140 int res1 = 0 ;
27141 long val2 ;
27142 int ecode2 = 0 ;
27143 PyObject *swig_obj[2] ;
27144
27145 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27147 if (!SWIG_IsOK(res1)) {
27148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27149 }
27150 arg1 = reinterpret_cast< wxListItem * >(argp1);
27151 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27152 if (!SWIG_IsOK(ecode2)) {
27153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27154 }
27155 arg2 = static_cast< long >(val2);
27156 if (arg1) (arg1)->m_itemId = arg2;
27157
27158 resultobj = SWIG_Py_Void();
27159 return resultobj;
27160 fail:
27161 return NULL;
27162 }
27163
27164
27165 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27166 PyObject *resultobj = 0;
27167 wxListItem *arg1 = (wxListItem *) 0 ;
27168 long result;
27169 void *argp1 = 0 ;
27170 int res1 = 0 ;
27171 PyObject *swig_obj[1] ;
27172
27173 if (!args) SWIG_fail;
27174 swig_obj[0] = args;
27175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27176 if (!SWIG_IsOK(res1)) {
27177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27178 }
27179 arg1 = reinterpret_cast< wxListItem * >(argp1);
27180 result = (long) ((arg1)->m_itemId);
27181 resultobj = SWIG_From_long(static_cast< long >(result));
27182 return resultobj;
27183 fail:
27184 return NULL;
27185 }
27186
27187
27188 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27189 PyObject *resultobj = 0;
27190 wxListItem *arg1 = (wxListItem *) 0 ;
27191 int arg2 ;
27192 void *argp1 = 0 ;
27193 int res1 = 0 ;
27194 int val2 ;
27195 int ecode2 = 0 ;
27196 PyObject *swig_obj[2] ;
27197
27198 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27200 if (!SWIG_IsOK(res1)) {
27201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27202 }
27203 arg1 = reinterpret_cast< wxListItem * >(argp1);
27204 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27205 if (!SWIG_IsOK(ecode2)) {
27206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27207 }
27208 arg2 = static_cast< int >(val2);
27209 if (arg1) (arg1)->m_col = arg2;
27210
27211 resultobj = SWIG_Py_Void();
27212 return resultobj;
27213 fail:
27214 return NULL;
27215 }
27216
27217
27218 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27219 PyObject *resultobj = 0;
27220 wxListItem *arg1 = (wxListItem *) 0 ;
27221 int result;
27222 void *argp1 = 0 ;
27223 int res1 = 0 ;
27224 PyObject *swig_obj[1] ;
27225
27226 if (!args) SWIG_fail;
27227 swig_obj[0] = args;
27228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27229 if (!SWIG_IsOK(res1)) {
27230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27231 }
27232 arg1 = reinterpret_cast< wxListItem * >(argp1);
27233 result = (int) ((arg1)->m_col);
27234 resultobj = SWIG_From_int(static_cast< int >(result));
27235 return resultobj;
27236 fail:
27237 return NULL;
27238 }
27239
27240
27241 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27242 PyObject *resultobj = 0;
27243 wxListItem *arg1 = (wxListItem *) 0 ;
27244 long arg2 ;
27245 void *argp1 = 0 ;
27246 int res1 = 0 ;
27247 long val2 ;
27248 int ecode2 = 0 ;
27249 PyObject *swig_obj[2] ;
27250
27251 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27253 if (!SWIG_IsOK(res1)) {
27254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27255 }
27256 arg1 = reinterpret_cast< wxListItem * >(argp1);
27257 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27258 if (!SWIG_IsOK(ecode2)) {
27259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27260 }
27261 arg2 = static_cast< long >(val2);
27262 if (arg1) (arg1)->m_state = arg2;
27263
27264 resultobj = SWIG_Py_Void();
27265 return resultobj;
27266 fail:
27267 return NULL;
27268 }
27269
27270
27271 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27272 PyObject *resultobj = 0;
27273 wxListItem *arg1 = (wxListItem *) 0 ;
27274 long result;
27275 void *argp1 = 0 ;
27276 int res1 = 0 ;
27277 PyObject *swig_obj[1] ;
27278
27279 if (!args) SWIG_fail;
27280 swig_obj[0] = args;
27281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27282 if (!SWIG_IsOK(res1)) {
27283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27284 }
27285 arg1 = reinterpret_cast< wxListItem * >(argp1);
27286 result = (long) ((arg1)->m_state);
27287 resultobj = SWIG_From_long(static_cast< long >(result));
27288 return resultobj;
27289 fail:
27290 return NULL;
27291 }
27292
27293
27294 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27295 PyObject *resultobj = 0;
27296 wxListItem *arg1 = (wxListItem *) 0 ;
27297 long arg2 ;
27298 void *argp1 = 0 ;
27299 int res1 = 0 ;
27300 long val2 ;
27301 int ecode2 = 0 ;
27302 PyObject *swig_obj[2] ;
27303
27304 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27306 if (!SWIG_IsOK(res1)) {
27307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27308 }
27309 arg1 = reinterpret_cast< wxListItem * >(argp1);
27310 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27311 if (!SWIG_IsOK(ecode2)) {
27312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27313 }
27314 arg2 = static_cast< long >(val2);
27315 if (arg1) (arg1)->m_stateMask = arg2;
27316
27317 resultobj = SWIG_Py_Void();
27318 return resultobj;
27319 fail:
27320 return NULL;
27321 }
27322
27323
27324 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27325 PyObject *resultobj = 0;
27326 wxListItem *arg1 = (wxListItem *) 0 ;
27327 long result;
27328 void *argp1 = 0 ;
27329 int res1 = 0 ;
27330 PyObject *swig_obj[1] ;
27331
27332 if (!args) SWIG_fail;
27333 swig_obj[0] = args;
27334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27335 if (!SWIG_IsOK(res1)) {
27336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27337 }
27338 arg1 = reinterpret_cast< wxListItem * >(argp1);
27339 result = (long) ((arg1)->m_stateMask);
27340 resultobj = SWIG_From_long(static_cast< long >(result));
27341 return resultobj;
27342 fail:
27343 return NULL;
27344 }
27345
27346
27347 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27348 PyObject *resultobj = 0;
27349 wxListItem *arg1 = (wxListItem *) 0 ;
27350 wxString *arg2 = (wxString *) 0 ;
27351 void *argp1 = 0 ;
27352 int res1 = 0 ;
27353 bool temp2 = false ;
27354 PyObject *swig_obj[2] ;
27355
27356 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27358 if (!SWIG_IsOK(res1)) {
27359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27360 }
27361 arg1 = reinterpret_cast< wxListItem * >(argp1);
27362 {
27363 arg2 = wxString_in_helper(swig_obj[1]);
27364 if (arg2 == NULL) SWIG_fail;
27365 temp2 = true;
27366 }
27367 if (arg1) (arg1)->m_text = *arg2;
27368
27369 resultobj = SWIG_Py_Void();
27370 {
27371 if (temp2)
27372 delete arg2;
27373 }
27374 return resultobj;
27375 fail:
27376 {
27377 if (temp2)
27378 delete arg2;
27379 }
27380 return NULL;
27381 }
27382
27383
27384 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27385 PyObject *resultobj = 0;
27386 wxListItem *arg1 = (wxListItem *) 0 ;
27387 wxString *result = 0 ;
27388 void *argp1 = 0 ;
27389 int res1 = 0 ;
27390 PyObject *swig_obj[1] ;
27391
27392 if (!args) SWIG_fail;
27393 swig_obj[0] = args;
27394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27395 if (!SWIG_IsOK(res1)) {
27396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27397 }
27398 arg1 = reinterpret_cast< wxListItem * >(argp1);
27399 result = (wxString *)& ((arg1)->m_text);
27400 {
27401 #if wxUSE_UNICODE
27402 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27403 #else
27404 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27405 #endif
27406 }
27407 return resultobj;
27408 fail:
27409 return NULL;
27410 }
27411
27412
27413 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27414 PyObject *resultobj = 0;
27415 wxListItem *arg1 = (wxListItem *) 0 ;
27416 int arg2 ;
27417 void *argp1 = 0 ;
27418 int res1 = 0 ;
27419 int val2 ;
27420 int ecode2 = 0 ;
27421 PyObject *swig_obj[2] ;
27422
27423 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27425 if (!SWIG_IsOK(res1)) {
27426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27427 }
27428 arg1 = reinterpret_cast< wxListItem * >(argp1);
27429 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27430 if (!SWIG_IsOK(ecode2)) {
27431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27432 }
27433 arg2 = static_cast< int >(val2);
27434 if (arg1) (arg1)->m_image = arg2;
27435
27436 resultobj = SWIG_Py_Void();
27437 return resultobj;
27438 fail:
27439 return NULL;
27440 }
27441
27442
27443 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27444 PyObject *resultobj = 0;
27445 wxListItem *arg1 = (wxListItem *) 0 ;
27446 int result;
27447 void *argp1 = 0 ;
27448 int res1 = 0 ;
27449 PyObject *swig_obj[1] ;
27450
27451 if (!args) SWIG_fail;
27452 swig_obj[0] = args;
27453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27454 if (!SWIG_IsOK(res1)) {
27455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27456 }
27457 arg1 = reinterpret_cast< wxListItem * >(argp1);
27458 result = (int) ((arg1)->m_image);
27459 resultobj = SWIG_From_int(static_cast< int >(result));
27460 return resultobj;
27461 fail:
27462 return NULL;
27463 }
27464
27465
27466 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27467 PyObject *resultobj = 0;
27468 wxListItem *arg1 = (wxListItem *) 0 ;
27469 long arg2 ;
27470 void *argp1 = 0 ;
27471 int res1 = 0 ;
27472 long val2 ;
27473 int ecode2 = 0 ;
27474 PyObject *swig_obj[2] ;
27475
27476 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27478 if (!SWIG_IsOK(res1)) {
27479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27480 }
27481 arg1 = reinterpret_cast< wxListItem * >(argp1);
27482 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27483 if (!SWIG_IsOK(ecode2)) {
27484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27485 }
27486 arg2 = static_cast< long >(val2);
27487 if (arg1) (arg1)->m_data = arg2;
27488
27489 resultobj = SWIG_Py_Void();
27490 return resultobj;
27491 fail:
27492 return NULL;
27493 }
27494
27495
27496 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27497 PyObject *resultobj = 0;
27498 wxListItem *arg1 = (wxListItem *) 0 ;
27499 long result;
27500 void *argp1 = 0 ;
27501 int res1 = 0 ;
27502 PyObject *swig_obj[1] ;
27503
27504 if (!args) SWIG_fail;
27505 swig_obj[0] = args;
27506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27507 if (!SWIG_IsOK(res1)) {
27508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27509 }
27510 arg1 = reinterpret_cast< wxListItem * >(argp1);
27511 result = (long) ((arg1)->m_data);
27512 resultobj = SWIG_From_long(static_cast< long >(result));
27513 return resultobj;
27514 fail:
27515 return NULL;
27516 }
27517
27518
27519 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27520 PyObject *resultobj = 0;
27521 wxListItem *arg1 = (wxListItem *) 0 ;
27522 int arg2 ;
27523 void *argp1 = 0 ;
27524 int res1 = 0 ;
27525 int val2 ;
27526 int ecode2 = 0 ;
27527 PyObject *swig_obj[2] ;
27528
27529 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27531 if (!SWIG_IsOK(res1)) {
27532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27533 }
27534 arg1 = reinterpret_cast< wxListItem * >(argp1);
27535 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27536 if (!SWIG_IsOK(ecode2)) {
27537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27538 }
27539 arg2 = static_cast< int >(val2);
27540 if (arg1) (arg1)->m_format = arg2;
27541
27542 resultobj = SWIG_Py_Void();
27543 return resultobj;
27544 fail:
27545 return NULL;
27546 }
27547
27548
27549 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27550 PyObject *resultobj = 0;
27551 wxListItem *arg1 = (wxListItem *) 0 ;
27552 int result;
27553 void *argp1 = 0 ;
27554 int res1 = 0 ;
27555 PyObject *swig_obj[1] ;
27556
27557 if (!args) SWIG_fail;
27558 swig_obj[0] = args;
27559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27560 if (!SWIG_IsOK(res1)) {
27561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27562 }
27563 arg1 = reinterpret_cast< wxListItem * >(argp1);
27564 result = (int) ((arg1)->m_format);
27565 resultobj = SWIG_From_int(static_cast< int >(result));
27566 return resultobj;
27567 fail:
27568 return NULL;
27569 }
27570
27571
27572 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27573 PyObject *resultobj = 0;
27574 wxListItem *arg1 = (wxListItem *) 0 ;
27575 int arg2 ;
27576 void *argp1 = 0 ;
27577 int res1 = 0 ;
27578 int val2 ;
27579 int ecode2 = 0 ;
27580 PyObject *swig_obj[2] ;
27581
27582 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27584 if (!SWIG_IsOK(res1)) {
27585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27586 }
27587 arg1 = reinterpret_cast< wxListItem * >(argp1);
27588 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27589 if (!SWIG_IsOK(ecode2)) {
27590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27591 }
27592 arg2 = static_cast< int >(val2);
27593 if (arg1) (arg1)->m_width = arg2;
27594
27595 resultobj = SWIG_Py_Void();
27596 return resultobj;
27597 fail:
27598 return NULL;
27599 }
27600
27601
27602 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27603 PyObject *resultobj = 0;
27604 wxListItem *arg1 = (wxListItem *) 0 ;
27605 int result;
27606 void *argp1 = 0 ;
27607 int res1 = 0 ;
27608 PyObject *swig_obj[1] ;
27609
27610 if (!args) SWIG_fail;
27611 swig_obj[0] = args;
27612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27613 if (!SWIG_IsOK(res1)) {
27614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27615 }
27616 arg1 = reinterpret_cast< wxListItem * >(argp1);
27617 result = (int) ((arg1)->m_width);
27618 resultobj = SWIG_From_int(static_cast< int >(result));
27619 return resultobj;
27620 fail:
27621 return NULL;
27622 }
27623
27624
27625 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27626 PyObject *obj;
27627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27628 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27629 return SWIG_Py_Void();
27630 }
27631
27632 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27633 return SWIG_Python_InitShadowInstance(args);
27634 }
27635
27636 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27637 PyObject *resultobj = 0;
27638 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27639 int arg2 = (int) 0 ;
27640 wxListEvent *result = 0 ;
27641 int val1 ;
27642 int ecode1 = 0 ;
27643 int val2 ;
27644 int ecode2 = 0 ;
27645 PyObject * obj0 = 0 ;
27646 PyObject * obj1 = 0 ;
27647 char * kwnames[] = {
27648 (char *) "commandType",(char *) "id", NULL
27649 };
27650
27651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27652 if (obj0) {
27653 ecode1 = SWIG_AsVal_int(obj0, &val1);
27654 if (!SWIG_IsOK(ecode1)) {
27655 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27656 }
27657 arg1 = static_cast< wxEventType >(val1);
27658 }
27659 if (obj1) {
27660 ecode2 = SWIG_AsVal_int(obj1, &val2);
27661 if (!SWIG_IsOK(ecode2)) {
27662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27663 }
27664 arg2 = static_cast< int >(val2);
27665 }
27666 {
27667 PyThreadState* __tstate = wxPyBeginAllowThreads();
27668 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27669 wxPyEndAllowThreads(__tstate);
27670 if (PyErr_Occurred()) SWIG_fail;
27671 }
27672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27673 return resultobj;
27674 fail:
27675 return NULL;
27676 }
27677
27678
27679 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27680 PyObject *resultobj = 0;
27681 wxListEvent *arg1 = (wxListEvent *) 0 ;
27682 int arg2 ;
27683 void *argp1 = 0 ;
27684 int res1 = 0 ;
27685 int val2 ;
27686 int ecode2 = 0 ;
27687 PyObject *swig_obj[2] ;
27688
27689 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27691 if (!SWIG_IsOK(res1)) {
27692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27693 }
27694 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27695 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27696 if (!SWIG_IsOK(ecode2)) {
27697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27698 }
27699 arg2 = static_cast< int >(val2);
27700 if (arg1) (arg1)->m_code = arg2;
27701
27702 resultobj = SWIG_Py_Void();
27703 return resultobj;
27704 fail:
27705 return NULL;
27706 }
27707
27708
27709 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27710 PyObject *resultobj = 0;
27711 wxListEvent *arg1 = (wxListEvent *) 0 ;
27712 int result;
27713 void *argp1 = 0 ;
27714 int res1 = 0 ;
27715 PyObject *swig_obj[1] ;
27716
27717 if (!args) SWIG_fail;
27718 swig_obj[0] = args;
27719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27720 if (!SWIG_IsOK(res1)) {
27721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27722 }
27723 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27724 result = (int) ((arg1)->m_code);
27725 resultobj = SWIG_From_int(static_cast< int >(result));
27726 return resultobj;
27727 fail:
27728 return NULL;
27729 }
27730
27731
27732 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27733 PyObject *resultobj = 0;
27734 wxListEvent *arg1 = (wxListEvent *) 0 ;
27735 long arg2 ;
27736 void *argp1 = 0 ;
27737 int res1 = 0 ;
27738 long val2 ;
27739 int ecode2 = 0 ;
27740 PyObject *swig_obj[2] ;
27741
27742 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27744 if (!SWIG_IsOK(res1)) {
27745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27746 }
27747 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27748 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27749 if (!SWIG_IsOK(ecode2)) {
27750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27751 }
27752 arg2 = static_cast< long >(val2);
27753 if (arg1) (arg1)->m_oldItemIndex = arg2;
27754
27755 resultobj = SWIG_Py_Void();
27756 return resultobj;
27757 fail:
27758 return NULL;
27759 }
27760
27761
27762 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27763 PyObject *resultobj = 0;
27764 wxListEvent *arg1 = (wxListEvent *) 0 ;
27765 long result;
27766 void *argp1 = 0 ;
27767 int res1 = 0 ;
27768 PyObject *swig_obj[1] ;
27769
27770 if (!args) SWIG_fail;
27771 swig_obj[0] = args;
27772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27773 if (!SWIG_IsOK(res1)) {
27774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27775 }
27776 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27777 result = (long) ((arg1)->m_oldItemIndex);
27778 resultobj = SWIG_From_long(static_cast< long >(result));
27779 return resultobj;
27780 fail:
27781 return NULL;
27782 }
27783
27784
27785 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27786 PyObject *resultobj = 0;
27787 wxListEvent *arg1 = (wxListEvent *) 0 ;
27788 long arg2 ;
27789 void *argp1 = 0 ;
27790 int res1 = 0 ;
27791 long val2 ;
27792 int ecode2 = 0 ;
27793 PyObject *swig_obj[2] ;
27794
27795 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27797 if (!SWIG_IsOK(res1)) {
27798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27799 }
27800 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27801 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27802 if (!SWIG_IsOK(ecode2)) {
27803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27804 }
27805 arg2 = static_cast< long >(val2);
27806 if (arg1) (arg1)->m_itemIndex = arg2;
27807
27808 resultobj = SWIG_Py_Void();
27809 return resultobj;
27810 fail:
27811 return NULL;
27812 }
27813
27814
27815 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27816 PyObject *resultobj = 0;
27817 wxListEvent *arg1 = (wxListEvent *) 0 ;
27818 long result;
27819 void *argp1 = 0 ;
27820 int res1 = 0 ;
27821 PyObject *swig_obj[1] ;
27822
27823 if (!args) SWIG_fail;
27824 swig_obj[0] = args;
27825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27826 if (!SWIG_IsOK(res1)) {
27827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27828 }
27829 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27830 result = (long) ((arg1)->m_itemIndex);
27831 resultobj = SWIG_From_long(static_cast< long >(result));
27832 return resultobj;
27833 fail:
27834 return NULL;
27835 }
27836
27837
27838 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27839 PyObject *resultobj = 0;
27840 wxListEvent *arg1 = (wxListEvent *) 0 ;
27841 int arg2 ;
27842 void *argp1 = 0 ;
27843 int res1 = 0 ;
27844 int val2 ;
27845 int ecode2 = 0 ;
27846 PyObject *swig_obj[2] ;
27847
27848 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27850 if (!SWIG_IsOK(res1)) {
27851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27852 }
27853 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27854 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27855 if (!SWIG_IsOK(ecode2)) {
27856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27857 }
27858 arg2 = static_cast< int >(val2);
27859 if (arg1) (arg1)->m_col = arg2;
27860
27861 resultobj = SWIG_Py_Void();
27862 return resultobj;
27863 fail:
27864 return NULL;
27865 }
27866
27867
27868 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27869 PyObject *resultobj = 0;
27870 wxListEvent *arg1 = (wxListEvent *) 0 ;
27871 int result;
27872 void *argp1 = 0 ;
27873 int res1 = 0 ;
27874 PyObject *swig_obj[1] ;
27875
27876 if (!args) SWIG_fail;
27877 swig_obj[0] = args;
27878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27879 if (!SWIG_IsOK(res1)) {
27880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27881 }
27882 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27883 result = (int) ((arg1)->m_col);
27884 resultobj = SWIG_From_int(static_cast< int >(result));
27885 return resultobj;
27886 fail:
27887 return NULL;
27888 }
27889
27890
27891 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27892 PyObject *resultobj = 0;
27893 wxListEvent *arg1 = (wxListEvent *) 0 ;
27894 wxPoint *arg2 = (wxPoint *) 0 ;
27895 void *argp1 = 0 ;
27896 int res1 = 0 ;
27897 void *argp2 = 0 ;
27898 int res2 = 0 ;
27899 PyObject *swig_obj[2] ;
27900
27901 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27903 if (!SWIG_IsOK(res1)) {
27904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27905 }
27906 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27907 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27908 if (!SWIG_IsOK(res2)) {
27909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27910 }
27911 arg2 = reinterpret_cast< wxPoint * >(argp2);
27912 if (arg1) (arg1)->m_pointDrag = *arg2;
27913
27914 resultobj = SWIG_Py_Void();
27915 return resultobj;
27916 fail:
27917 return NULL;
27918 }
27919
27920
27921 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27922 PyObject *resultobj = 0;
27923 wxListEvent *arg1 = (wxListEvent *) 0 ;
27924 wxPoint *result = 0 ;
27925 void *argp1 = 0 ;
27926 int res1 = 0 ;
27927 PyObject *swig_obj[1] ;
27928
27929 if (!args) SWIG_fail;
27930 swig_obj[0] = args;
27931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27932 if (!SWIG_IsOK(res1)) {
27933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27934 }
27935 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27936 result = (wxPoint *)& ((arg1)->m_pointDrag);
27937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
27938 return resultobj;
27939 fail:
27940 return NULL;
27941 }
27942
27943
27944 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27945 PyObject *resultobj = 0;
27946 wxListEvent *arg1 = (wxListEvent *) 0 ;
27947 wxListItem *result = 0 ;
27948 void *argp1 = 0 ;
27949 int res1 = 0 ;
27950 PyObject *swig_obj[1] ;
27951
27952 if (!args) SWIG_fail;
27953 swig_obj[0] = args;
27954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27955 if (!SWIG_IsOK(res1)) {
27956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27957 }
27958 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27959 result = (wxListItem *)& ((arg1)->m_item);
27960 {
27961 resultobj = wxPyMake_wxObject(result, (bool)0);
27962 }
27963 return resultobj;
27964 fail:
27965 return NULL;
27966 }
27967
27968
27969 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27970 PyObject *resultobj = 0;
27971 wxListEvent *arg1 = (wxListEvent *) 0 ;
27972 int result;
27973 void *argp1 = 0 ;
27974 int res1 = 0 ;
27975 PyObject *swig_obj[1] ;
27976
27977 if (!args) SWIG_fail;
27978 swig_obj[0] = args;
27979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27980 if (!SWIG_IsOK(res1)) {
27981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
27982 }
27983 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27984 {
27985 PyThreadState* __tstate = wxPyBeginAllowThreads();
27986 result = (int)(arg1)->GetKeyCode();
27987 wxPyEndAllowThreads(__tstate);
27988 if (PyErr_Occurred()) SWIG_fail;
27989 }
27990 resultobj = SWIG_From_int(static_cast< int >(result));
27991 return resultobj;
27992 fail:
27993 return NULL;
27994 }
27995
27996
27997 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27998 PyObject *resultobj = 0;
27999 wxListEvent *arg1 = (wxListEvent *) 0 ;
28000 long result;
28001 void *argp1 = 0 ;
28002 int res1 = 0 ;
28003 PyObject *swig_obj[1] ;
28004
28005 if (!args) SWIG_fail;
28006 swig_obj[0] = args;
28007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28008 if (!SWIG_IsOK(res1)) {
28009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28010 }
28011 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28012 {
28013 PyThreadState* __tstate = wxPyBeginAllowThreads();
28014 result = (long)(arg1)->GetIndex();
28015 wxPyEndAllowThreads(__tstate);
28016 if (PyErr_Occurred()) SWIG_fail;
28017 }
28018 resultobj = SWIG_From_long(static_cast< long >(result));
28019 return resultobj;
28020 fail:
28021 return NULL;
28022 }
28023
28024
28025 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28026 PyObject *resultobj = 0;
28027 wxListEvent *arg1 = (wxListEvent *) 0 ;
28028 int result;
28029 void *argp1 = 0 ;
28030 int res1 = 0 ;
28031 PyObject *swig_obj[1] ;
28032
28033 if (!args) SWIG_fail;
28034 swig_obj[0] = args;
28035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28036 if (!SWIG_IsOK(res1)) {
28037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28038 }
28039 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28040 {
28041 PyThreadState* __tstate = wxPyBeginAllowThreads();
28042 result = (int)(arg1)->GetColumn();
28043 wxPyEndAllowThreads(__tstate);
28044 if (PyErr_Occurred()) SWIG_fail;
28045 }
28046 resultobj = SWIG_From_int(static_cast< int >(result));
28047 return resultobj;
28048 fail:
28049 return NULL;
28050 }
28051
28052
28053 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28054 PyObject *resultobj = 0;
28055 wxListEvent *arg1 = (wxListEvent *) 0 ;
28056 wxPoint result;
28057 void *argp1 = 0 ;
28058 int res1 = 0 ;
28059 PyObject *swig_obj[1] ;
28060
28061 if (!args) SWIG_fail;
28062 swig_obj[0] = args;
28063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28064 if (!SWIG_IsOK(res1)) {
28065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28066 }
28067 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28068 {
28069 PyThreadState* __tstate = wxPyBeginAllowThreads();
28070 result = (arg1)->GetPoint();
28071 wxPyEndAllowThreads(__tstate);
28072 if (PyErr_Occurred()) SWIG_fail;
28073 }
28074 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28075 return resultobj;
28076 fail:
28077 return NULL;
28078 }
28079
28080
28081 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28082 PyObject *resultobj = 0;
28083 wxListEvent *arg1 = (wxListEvent *) 0 ;
28084 wxString *result = 0 ;
28085 void *argp1 = 0 ;
28086 int res1 = 0 ;
28087 PyObject *swig_obj[1] ;
28088
28089 if (!args) SWIG_fail;
28090 swig_obj[0] = args;
28091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28092 if (!SWIG_IsOK(res1)) {
28093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28094 }
28095 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28096 {
28097 PyThreadState* __tstate = wxPyBeginAllowThreads();
28098 {
28099 wxString const &_result_ref = (arg1)->GetLabel();
28100 result = (wxString *) &_result_ref;
28101 }
28102 wxPyEndAllowThreads(__tstate);
28103 if (PyErr_Occurred()) SWIG_fail;
28104 }
28105 {
28106 #if wxUSE_UNICODE
28107 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28108 #else
28109 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28110 #endif
28111 }
28112 return resultobj;
28113 fail:
28114 return NULL;
28115 }
28116
28117
28118 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28119 PyObject *resultobj = 0;
28120 wxListEvent *arg1 = (wxListEvent *) 0 ;
28121 wxString *result = 0 ;
28122 void *argp1 = 0 ;
28123 int res1 = 0 ;
28124 PyObject *swig_obj[1] ;
28125
28126 if (!args) SWIG_fail;
28127 swig_obj[0] = args;
28128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28129 if (!SWIG_IsOK(res1)) {
28130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28131 }
28132 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28133 {
28134 PyThreadState* __tstate = wxPyBeginAllowThreads();
28135 {
28136 wxString const &_result_ref = (arg1)->GetText();
28137 result = (wxString *) &_result_ref;
28138 }
28139 wxPyEndAllowThreads(__tstate);
28140 if (PyErr_Occurred()) SWIG_fail;
28141 }
28142 {
28143 #if wxUSE_UNICODE
28144 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28145 #else
28146 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28147 #endif
28148 }
28149 return resultobj;
28150 fail:
28151 return NULL;
28152 }
28153
28154
28155 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28156 PyObject *resultobj = 0;
28157 wxListEvent *arg1 = (wxListEvent *) 0 ;
28158 int result;
28159 void *argp1 = 0 ;
28160 int res1 = 0 ;
28161 PyObject *swig_obj[1] ;
28162
28163 if (!args) SWIG_fail;
28164 swig_obj[0] = args;
28165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28166 if (!SWIG_IsOK(res1)) {
28167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28168 }
28169 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28170 {
28171 PyThreadState* __tstate = wxPyBeginAllowThreads();
28172 result = (int)(arg1)->GetImage();
28173 wxPyEndAllowThreads(__tstate);
28174 if (PyErr_Occurred()) SWIG_fail;
28175 }
28176 resultobj = SWIG_From_int(static_cast< int >(result));
28177 return resultobj;
28178 fail:
28179 return NULL;
28180 }
28181
28182
28183 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28184 PyObject *resultobj = 0;
28185 wxListEvent *arg1 = (wxListEvent *) 0 ;
28186 long result;
28187 void *argp1 = 0 ;
28188 int res1 = 0 ;
28189 PyObject *swig_obj[1] ;
28190
28191 if (!args) SWIG_fail;
28192 swig_obj[0] = args;
28193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28194 if (!SWIG_IsOK(res1)) {
28195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28196 }
28197 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28198 {
28199 PyThreadState* __tstate = wxPyBeginAllowThreads();
28200 result = (long)(arg1)->GetData();
28201 wxPyEndAllowThreads(__tstate);
28202 if (PyErr_Occurred()) SWIG_fail;
28203 }
28204 resultobj = SWIG_From_long(static_cast< long >(result));
28205 return resultobj;
28206 fail:
28207 return NULL;
28208 }
28209
28210
28211 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28212 PyObject *resultobj = 0;
28213 wxListEvent *arg1 = (wxListEvent *) 0 ;
28214 long result;
28215 void *argp1 = 0 ;
28216 int res1 = 0 ;
28217 PyObject *swig_obj[1] ;
28218
28219 if (!args) SWIG_fail;
28220 swig_obj[0] = args;
28221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28222 if (!SWIG_IsOK(res1)) {
28223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28224 }
28225 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28226 {
28227 PyThreadState* __tstate = wxPyBeginAllowThreads();
28228 result = (long)(arg1)->GetMask();
28229 wxPyEndAllowThreads(__tstate);
28230 if (PyErr_Occurred()) SWIG_fail;
28231 }
28232 resultobj = SWIG_From_long(static_cast< long >(result));
28233 return resultobj;
28234 fail:
28235 return NULL;
28236 }
28237
28238
28239 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28240 PyObject *resultobj = 0;
28241 wxListEvent *arg1 = (wxListEvent *) 0 ;
28242 wxListItem *result = 0 ;
28243 void *argp1 = 0 ;
28244 int res1 = 0 ;
28245 PyObject *swig_obj[1] ;
28246
28247 if (!args) SWIG_fail;
28248 swig_obj[0] = args;
28249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28250 if (!SWIG_IsOK(res1)) {
28251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28252 }
28253 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28254 {
28255 PyThreadState* __tstate = wxPyBeginAllowThreads();
28256 {
28257 wxListItem const &_result_ref = (arg1)->GetItem();
28258 result = (wxListItem *) &_result_ref;
28259 }
28260 wxPyEndAllowThreads(__tstate);
28261 if (PyErr_Occurred()) SWIG_fail;
28262 }
28263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28264 return resultobj;
28265 fail:
28266 return NULL;
28267 }
28268
28269
28270 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28271 PyObject *resultobj = 0;
28272 wxListEvent *arg1 = (wxListEvent *) 0 ;
28273 long result;
28274 void *argp1 = 0 ;
28275 int res1 = 0 ;
28276 PyObject *swig_obj[1] ;
28277
28278 if (!args) SWIG_fail;
28279 swig_obj[0] = args;
28280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28281 if (!SWIG_IsOK(res1)) {
28282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28283 }
28284 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28285 {
28286 PyThreadState* __tstate = wxPyBeginAllowThreads();
28287 result = (long)(arg1)->GetCacheFrom();
28288 wxPyEndAllowThreads(__tstate);
28289 if (PyErr_Occurred()) SWIG_fail;
28290 }
28291 resultobj = SWIG_From_long(static_cast< long >(result));
28292 return resultobj;
28293 fail:
28294 return NULL;
28295 }
28296
28297
28298 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28299 PyObject *resultobj = 0;
28300 wxListEvent *arg1 = (wxListEvent *) 0 ;
28301 long result;
28302 void *argp1 = 0 ;
28303 int res1 = 0 ;
28304 PyObject *swig_obj[1] ;
28305
28306 if (!args) SWIG_fail;
28307 swig_obj[0] = args;
28308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28309 if (!SWIG_IsOK(res1)) {
28310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28311 }
28312 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28313 {
28314 PyThreadState* __tstate = wxPyBeginAllowThreads();
28315 result = (long)(arg1)->GetCacheTo();
28316 wxPyEndAllowThreads(__tstate);
28317 if (PyErr_Occurred()) SWIG_fail;
28318 }
28319 resultobj = SWIG_From_long(static_cast< long >(result));
28320 return resultobj;
28321 fail:
28322 return NULL;
28323 }
28324
28325
28326 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28327 PyObject *resultobj = 0;
28328 wxListEvent *arg1 = (wxListEvent *) 0 ;
28329 bool result;
28330 void *argp1 = 0 ;
28331 int res1 = 0 ;
28332 PyObject *swig_obj[1] ;
28333
28334 if (!args) SWIG_fail;
28335 swig_obj[0] = args;
28336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28337 if (!SWIG_IsOK(res1)) {
28338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28339 }
28340 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28341 {
28342 PyThreadState* __tstate = wxPyBeginAllowThreads();
28343 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28344 wxPyEndAllowThreads(__tstate);
28345 if (PyErr_Occurred()) SWIG_fail;
28346 }
28347 {
28348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28349 }
28350 return resultobj;
28351 fail:
28352 return NULL;
28353 }
28354
28355
28356 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28357 PyObject *resultobj = 0;
28358 wxListEvent *arg1 = (wxListEvent *) 0 ;
28359 bool arg2 ;
28360 void *argp1 = 0 ;
28361 int res1 = 0 ;
28362 bool val2 ;
28363 int ecode2 = 0 ;
28364 PyObject * obj0 = 0 ;
28365 PyObject * obj1 = 0 ;
28366 char * kwnames[] = {
28367 (char *) "self",(char *) "editCancelled", NULL
28368 };
28369
28370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28372 if (!SWIG_IsOK(res1)) {
28373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28374 }
28375 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28376 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28377 if (!SWIG_IsOK(ecode2)) {
28378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28379 }
28380 arg2 = static_cast< bool >(val2);
28381 {
28382 PyThreadState* __tstate = wxPyBeginAllowThreads();
28383 (arg1)->SetEditCanceled(arg2);
28384 wxPyEndAllowThreads(__tstate);
28385 if (PyErr_Occurred()) SWIG_fail;
28386 }
28387 resultobj = SWIG_Py_Void();
28388 return resultobj;
28389 fail:
28390 return NULL;
28391 }
28392
28393
28394 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28395 PyObject *obj;
28396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28397 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28398 return SWIG_Py_Void();
28399 }
28400
28401 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28402 return SWIG_Python_InitShadowInstance(args);
28403 }
28404
28405 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28406 PyObject *resultobj = 0;
28407 wxWindow *arg1 = (wxWindow *) 0 ;
28408 int arg2 = (int) -1 ;
28409 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28410 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28411 wxSize const &arg4_defvalue = wxDefaultSize ;
28412 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28413 long arg5 = (long) wxLC_ICON ;
28414 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28415 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28416 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28417 wxString *arg7 = (wxString *) &arg7_defvalue ;
28418 wxPyListCtrl *result = 0 ;
28419 void *argp1 = 0 ;
28420 int res1 = 0 ;
28421 int val2 ;
28422 int ecode2 = 0 ;
28423 wxPoint temp3 ;
28424 wxSize temp4 ;
28425 long val5 ;
28426 int ecode5 = 0 ;
28427 void *argp6 = 0 ;
28428 int res6 = 0 ;
28429 bool temp7 = false ;
28430 PyObject * obj0 = 0 ;
28431 PyObject * obj1 = 0 ;
28432 PyObject * obj2 = 0 ;
28433 PyObject * obj3 = 0 ;
28434 PyObject * obj4 = 0 ;
28435 PyObject * obj5 = 0 ;
28436 PyObject * obj6 = 0 ;
28437 char * kwnames[] = {
28438 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28439 };
28440
28441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28443 if (!SWIG_IsOK(res1)) {
28444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28445 }
28446 arg1 = reinterpret_cast< wxWindow * >(argp1);
28447 if (obj1) {
28448 ecode2 = SWIG_AsVal_int(obj1, &val2);
28449 if (!SWIG_IsOK(ecode2)) {
28450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28451 }
28452 arg2 = static_cast< int >(val2);
28453 }
28454 if (obj2) {
28455 {
28456 arg3 = &temp3;
28457 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28458 }
28459 }
28460 if (obj3) {
28461 {
28462 arg4 = &temp4;
28463 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28464 }
28465 }
28466 if (obj4) {
28467 ecode5 = SWIG_AsVal_long(obj4, &val5);
28468 if (!SWIG_IsOK(ecode5)) {
28469 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28470 }
28471 arg5 = static_cast< long >(val5);
28472 }
28473 if (obj5) {
28474 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28475 if (!SWIG_IsOK(res6)) {
28476 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28477 }
28478 if (!argp6) {
28479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28480 }
28481 arg6 = reinterpret_cast< wxValidator * >(argp6);
28482 }
28483 if (obj6) {
28484 {
28485 arg7 = wxString_in_helper(obj6);
28486 if (arg7 == NULL) SWIG_fail;
28487 temp7 = true;
28488 }
28489 }
28490 {
28491 if (!wxPyCheckForApp()) SWIG_fail;
28492 PyThreadState* __tstate = wxPyBeginAllowThreads();
28493 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28494 wxPyEndAllowThreads(__tstate);
28495 if (PyErr_Occurred()) SWIG_fail;
28496 }
28497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28498 {
28499 if (temp7)
28500 delete arg7;
28501 }
28502 return resultobj;
28503 fail:
28504 {
28505 if (temp7)
28506 delete arg7;
28507 }
28508 return NULL;
28509 }
28510
28511
28512 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28513 PyObject *resultobj = 0;
28514 wxPyListCtrl *result = 0 ;
28515
28516 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28517 {
28518 if (!wxPyCheckForApp()) SWIG_fail;
28519 PyThreadState* __tstate = wxPyBeginAllowThreads();
28520 result = (wxPyListCtrl *)new wxPyListCtrl();
28521 wxPyEndAllowThreads(__tstate);
28522 if (PyErr_Occurred()) SWIG_fail;
28523 }
28524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28525 return resultobj;
28526 fail:
28527 return NULL;
28528 }
28529
28530
28531 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28532 PyObject *resultobj = 0;
28533 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28534 wxWindow *arg2 = (wxWindow *) 0 ;
28535 int arg3 = (int) -1 ;
28536 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28537 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28538 wxSize const &arg5_defvalue = wxDefaultSize ;
28539 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28540 long arg6 = (long) wxLC_ICON ;
28541 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28542 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28543 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28544 wxString *arg8 = (wxString *) &arg8_defvalue ;
28545 bool result;
28546 void *argp1 = 0 ;
28547 int res1 = 0 ;
28548 void *argp2 = 0 ;
28549 int res2 = 0 ;
28550 int val3 ;
28551 int ecode3 = 0 ;
28552 wxPoint temp4 ;
28553 wxSize temp5 ;
28554 long val6 ;
28555 int ecode6 = 0 ;
28556 void *argp7 = 0 ;
28557 int res7 = 0 ;
28558 bool temp8 = false ;
28559 PyObject * obj0 = 0 ;
28560 PyObject * obj1 = 0 ;
28561 PyObject * obj2 = 0 ;
28562 PyObject * obj3 = 0 ;
28563 PyObject * obj4 = 0 ;
28564 PyObject * obj5 = 0 ;
28565 PyObject * obj6 = 0 ;
28566 PyObject * obj7 = 0 ;
28567 char * kwnames[] = {
28568 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28569 };
28570
28571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28573 if (!SWIG_IsOK(res1)) {
28574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28575 }
28576 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28577 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28578 if (!SWIG_IsOK(res2)) {
28579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28580 }
28581 arg2 = reinterpret_cast< wxWindow * >(argp2);
28582 if (obj2) {
28583 ecode3 = SWIG_AsVal_int(obj2, &val3);
28584 if (!SWIG_IsOK(ecode3)) {
28585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28586 }
28587 arg3 = static_cast< int >(val3);
28588 }
28589 if (obj3) {
28590 {
28591 arg4 = &temp4;
28592 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28593 }
28594 }
28595 if (obj4) {
28596 {
28597 arg5 = &temp5;
28598 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28599 }
28600 }
28601 if (obj5) {
28602 ecode6 = SWIG_AsVal_long(obj5, &val6);
28603 if (!SWIG_IsOK(ecode6)) {
28604 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28605 }
28606 arg6 = static_cast< long >(val6);
28607 }
28608 if (obj6) {
28609 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28610 if (!SWIG_IsOK(res7)) {
28611 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28612 }
28613 if (!argp7) {
28614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28615 }
28616 arg7 = reinterpret_cast< wxValidator * >(argp7);
28617 }
28618 if (obj7) {
28619 {
28620 arg8 = wxString_in_helper(obj7);
28621 if (arg8 == NULL) SWIG_fail;
28622 temp8 = true;
28623 }
28624 }
28625 {
28626 PyThreadState* __tstate = wxPyBeginAllowThreads();
28627 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28628 wxPyEndAllowThreads(__tstate);
28629 if (PyErr_Occurred()) SWIG_fail;
28630 }
28631 {
28632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28633 }
28634 {
28635 if (temp8)
28636 delete arg8;
28637 }
28638 return resultobj;
28639 fail:
28640 {
28641 if (temp8)
28642 delete arg8;
28643 }
28644 return NULL;
28645 }
28646
28647
28648 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28649 PyObject *resultobj = 0;
28650 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28651 PyObject *arg2 = (PyObject *) 0 ;
28652 PyObject *arg3 = (PyObject *) 0 ;
28653 void *argp1 = 0 ;
28654 int res1 = 0 ;
28655 PyObject * obj0 = 0 ;
28656 PyObject * obj1 = 0 ;
28657 PyObject * obj2 = 0 ;
28658 char * kwnames[] = {
28659 (char *) "self",(char *) "self",(char *) "_class", NULL
28660 };
28661
28662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28664 if (!SWIG_IsOK(res1)) {
28665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28666 }
28667 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28668 arg2 = obj1;
28669 arg3 = obj2;
28670 {
28671 PyThreadState* __tstate = wxPyBeginAllowThreads();
28672 (arg1)->_setCallbackInfo(arg2,arg3);
28673 wxPyEndAllowThreads(__tstate);
28674 if (PyErr_Occurred()) SWIG_fail;
28675 }
28676 resultobj = SWIG_Py_Void();
28677 return resultobj;
28678 fail:
28679 return NULL;
28680 }
28681
28682
28683 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28684 PyObject *resultobj = 0;
28685 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28686 int arg2 ;
28687 wxListItem *result = 0 ;
28688 void *argp1 = 0 ;
28689 int res1 = 0 ;
28690 int val2 ;
28691 int ecode2 = 0 ;
28692 PyObject * obj0 = 0 ;
28693 PyObject * obj1 = 0 ;
28694 char * kwnames[] = {
28695 (char *) "self",(char *) "col", NULL
28696 };
28697
28698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28700 if (!SWIG_IsOK(res1)) {
28701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28702 }
28703 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28704 ecode2 = SWIG_AsVal_int(obj1, &val2);
28705 if (!SWIG_IsOK(ecode2)) {
28706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28707 }
28708 arg2 = static_cast< int >(val2);
28709 {
28710 PyThreadState* __tstate = wxPyBeginAllowThreads();
28711 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28712 wxPyEndAllowThreads(__tstate);
28713 if (PyErr_Occurred()) SWIG_fail;
28714 }
28715 {
28716 resultobj = wxPyMake_wxObject(result, (bool)0);
28717 }
28718 return resultobj;
28719 fail:
28720 return NULL;
28721 }
28722
28723
28724 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28725 PyObject *resultobj = 0;
28726 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28727 int arg2 ;
28728 wxListItem *arg3 = 0 ;
28729 bool result;
28730 void *argp1 = 0 ;
28731 int res1 = 0 ;
28732 int val2 ;
28733 int ecode2 = 0 ;
28734 void *argp3 = 0 ;
28735 int res3 = 0 ;
28736 PyObject * obj0 = 0 ;
28737 PyObject * obj1 = 0 ;
28738 PyObject * obj2 = 0 ;
28739 char * kwnames[] = {
28740 (char *) "self",(char *) "col",(char *) "item", NULL
28741 };
28742
28743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28745 if (!SWIG_IsOK(res1)) {
28746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28747 }
28748 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28749 ecode2 = SWIG_AsVal_int(obj1, &val2);
28750 if (!SWIG_IsOK(ecode2)) {
28751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28752 }
28753 arg2 = static_cast< int >(val2);
28754 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28755 if (!SWIG_IsOK(res3)) {
28756 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28757 }
28758 if (!argp3) {
28759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28760 }
28761 arg3 = reinterpret_cast< wxListItem * >(argp3);
28762 {
28763 PyThreadState* __tstate = wxPyBeginAllowThreads();
28764 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28765 wxPyEndAllowThreads(__tstate);
28766 if (PyErr_Occurred()) SWIG_fail;
28767 }
28768 {
28769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28770 }
28771 return resultobj;
28772 fail:
28773 return NULL;
28774 }
28775
28776
28777 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28778 PyObject *resultobj = 0;
28779 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28780 int arg2 ;
28781 int result;
28782 void *argp1 = 0 ;
28783 int res1 = 0 ;
28784 int val2 ;
28785 int ecode2 = 0 ;
28786 PyObject * obj0 = 0 ;
28787 PyObject * obj1 = 0 ;
28788 char * kwnames[] = {
28789 (char *) "self",(char *) "col", NULL
28790 };
28791
28792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28794 if (!SWIG_IsOK(res1)) {
28795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28796 }
28797 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28798 ecode2 = SWIG_AsVal_int(obj1, &val2);
28799 if (!SWIG_IsOK(ecode2)) {
28800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28801 }
28802 arg2 = static_cast< int >(val2);
28803 {
28804 PyThreadState* __tstate = wxPyBeginAllowThreads();
28805 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28806 wxPyEndAllowThreads(__tstate);
28807 if (PyErr_Occurred()) SWIG_fail;
28808 }
28809 resultobj = SWIG_From_int(static_cast< int >(result));
28810 return resultobj;
28811 fail:
28812 return NULL;
28813 }
28814
28815
28816 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28817 PyObject *resultobj = 0;
28818 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28819 int arg2 ;
28820 int arg3 ;
28821 bool result;
28822 void *argp1 = 0 ;
28823 int res1 = 0 ;
28824 int val2 ;
28825 int ecode2 = 0 ;
28826 int val3 ;
28827 int ecode3 = 0 ;
28828 PyObject * obj0 = 0 ;
28829 PyObject * obj1 = 0 ;
28830 PyObject * obj2 = 0 ;
28831 char * kwnames[] = {
28832 (char *) "self",(char *) "col",(char *) "width", NULL
28833 };
28834
28835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28837 if (!SWIG_IsOK(res1)) {
28838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28839 }
28840 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28841 ecode2 = SWIG_AsVal_int(obj1, &val2);
28842 if (!SWIG_IsOK(ecode2)) {
28843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28844 }
28845 arg2 = static_cast< int >(val2);
28846 ecode3 = SWIG_AsVal_int(obj2, &val3);
28847 if (!SWIG_IsOK(ecode3)) {
28848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28849 }
28850 arg3 = static_cast< int >(val3);
28851 {
28852 PyThreadState* __tstate = wxPyBeginAllowThreads();
28853 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28854 wxPyEndAllowThreads(__tstate);
28855 if (PyErr_Occurred()) SWIG_fail;
28856 }
28857 {
28858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28859 }
28860 return resultobj;
28861 fail:
28862 return NULL;
28863 }
28864
28865
28866 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28867 PyObject *resultobj = 0;
28868 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28869 int result;
28870 void *argp1 = 0 ;
28871 int res1 = 0 ;
28872 PyObject *swig_obj[1] ;
28873
28874 if (!args) SWIG_fail;
28875 swig_obj[0] = args;
28876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28877 if (!SWIG_IsOK(res1)) {
28878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28879 }
28880 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28881 {
28882 PyThreadState* __tstate = wxPyBeginAllowThreads();
28883 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28884 wxPyEndAllowThreads(__tstate);
28885 if (PyErr_Occurred()) SWIG_fail;
28886 }
28887 resultobj = SWIG_From_int(static_cast< int >(result));
28888 return resultobj;
28889 fail:
28890 return NULL;
28891 }
28892
28893
28894 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28895 PyObject *resultobj = 0;
28896 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28897 wxRect result;
28898 void *argp1 = 0 ;
28899 int res1 = 0 ;
28900 PyObject *swig_obj[1] ;
28901
28902 if (!args) SWIG_fail;
28903 swig_obj[0] = args;
28904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28905 if (!SWIG_IsOK(res1)) {
28906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28907 }
28908 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28909 {
28910 PyThreadState* __tstate = wxPyBeginAllowThreads();
28911 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28912 wxPyEndAllowThreads(__tstate);
28913 if (PyErr_Occurred()) SWIG_fail;
28914 }
28915 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28916 return resultobj;
28917 fail:
28918 return NULL;
28919 }
28920
28921
28922 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28923 PyObject *resultobj = 0;
28924 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28925 wxTextCtrl *result = 0 ;
28926 void *argp1 = 0 ;
28927 int res1 = 0 ;
28928 PyObject *swig_obj[1] ;
28929
28930 if (!args) SWIG_fail;
28931 swig_obj[0] = args;
28932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28933 if (!SWIG_IsOK(res1)) {
28934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28935 }
28936 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28937 {
28938 PyThreadState* __tstate = wxPyBeginAllowThreads();
28939 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
28940 wxPyEndAllowThreads(__tstate);
28941 if (PyErr_Occurred()) SWIG_fail;
28942 }
28943 {
28944 resultobj = wxPyMake_wxObject(result, 0);
28945 }
28946 return resultobj;
28947 fail:
28948 return NULL;
28949 }
28950
28951
28952 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28953 PyObject *resultobj = 0;
28954 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28955 long arg2 ;
28956 int arg3 = (int) 0 ;
28957 wxListItem *result = 0 ;
28958 void *argp1 = 0 ;
28959 int res1 = 0 ;
28960 long val2 ;
28961 int ecode2 = 0 ;
28962 int val3 ;
28963 int ecode3 = 0 ;
28964 PyObject * obj0 = 0 ;
28965 PyObject * obj1 = 0 ;
28966 PyObject * obj2 = 0 ;
28967 char * kwnames[] = {
28968 (char *) "self",(char *) "itemId",(char *) "col", NULL
28969 };
28970
28971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28973 if (!SWIG_IsOK(res1)) {
28974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28975 }
28976 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28977 ecode2 = SWIG_AsVal_long(obj1, &val2);
28978 if (!SWIG_IsOK(ecode2)) {
28979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
28980 }
28981 arg2 = static_cast< long >(val2);
28982 if (obj2) {
28983 ecode3 = SWIG_AsVal_int(obj2, &val3);
28984 if (!SWIG_IsOK(ecode3)) {
28985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
28986 }
28987 arg3 = static_cast< int >(val3);
28988 }
28989 {
28990 PyThreadState* __tstate = wxPyBeginAllowThreads();
28991 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
28992 wxPyEndAllowThreads(__tstate);
28993 if (PyErr_Occurred()) SWIG_fail;
28994 }
28995 {
28996 resultobj = wxPyMake_wxObject(result, (bool)0);
28997 }
28998 return resultobj;
28999 fail:
29000 return NULL;
29001 }
29002
29003
29004 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29005 PyObject *resultobj = 0;
29006 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29007 wxListItem *arg2 = 0 ;
29008 bool result;
29009 void *argp1 = 0 ;
29010 int res1 = 0 ;
29011 void *argp2 = 0 ;
29012 int res2 = 0 ;
29013 PyObject * obj0 = 0 ;
29014 PyObject * obj1 = 0 ;
29015 char * kwnames[] = {
29016 (char *) "self",(char *) "info", NULL
29017 };
29018
29019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29021 if (!SWIG_IsOK(res1)) {
29022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29023 }
29024 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29026 if (!SWIG_IsOK(res2)) {
29027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29028 }
29029 if (!argp2) {
29030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29031 }
29032 arg2 = reinterpret_cast< wxListItem * >(argp2);
29033 {
29034 PyThreadState* __tstate = wxPyBeginAllowThreads();
29035 result = (bool)(arg1)->SetItem(*arg2);
29036 wxPyEndAllowThreads(__tstate);
29037 if (PyErr_Occurred()) SWIG_fail;
29038 }
29039 {
29040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29041 }
29042 return resultobj;
29043 fail:
29044 return NULL;
29045 }
29046
29047
29048 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29049 PyObject *resultobj = 0;
29050 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29051 long arg2 ;
29052 int arg3 ;
29053 wxString *arg4 = 0 ;
29054 int arg5 = (int) -1 ;
29055 long result;
29056 void *argp1 = 0 ;
29057 int res1 = 0 ;
29058 long val2 ;
29059 int ecode2 = 0 ;
29060 int val3 ;
29061 int ecode3 = 0 ;
29062 bool temp4 = false ;
29063 int val5 ;
29064 int ecode5 = 0 ;
29065 PyObject * obj0 = 0 ;
29066 PyObject * obj1 = 0 ;
29067 PyObject * obj2 = 0 ;
29068 PyObject * obj3 = 0 ;
29069 PyObject * obj4 = 0 ;
29070 char * kwnames[] = {
29071 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29072 };
29073
29074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29076 if (!SWIG_IsOK(res1)) {
29077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29078 }
29079 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29080 ecode2 = SWIG_AsVal_long(obj1, &val2);
29081 if (!SWIG_IsOK(ecode2)) {
29082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29083 }
29084 arg2 = static_cast< long >(val2);
29085 ecode3 = SWIG_AsVal_int(obj2, &val3);
29086 if (!SWIG_IsOK(ecode3)) {
29087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29088 }
29089 arg3 = static_cast< int >(val3);
29090 {
29091 arg4 = wxString_in_helper(obj3);
29092 if (arg4 == NULL) SWIG_fail;
29093 temp4 = true;
29094 }
29095 if (obj4) {
29096 ecode5 = SWIG_AsVal_int(obj4, &val5);
29097 if (!SWIG_IsOK(ecode5)) {
29098 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29099 }
29100 arg5 = static_cast< int >(val5);
29101 }
29102 {
29103 PyThreadState* __tstate = wxPyBeginAllowThreads();
29104 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29105 wxPyEndAllowThreads(__tstate);
29106 if (PyErr_Occurred()) SWIG_fail;
29107 }
29108 resultobj = SWIG_From_long(static_cast< long >(result));
29109 {
29110 if (temp4)
29111 delete arg4;
29112 }
29113 return resultobj;
29114 fail:
29115 {
29116 if (temp4)
29117 delete arg4;
29118 }
29119 return NULL;
29120 }
29121
29122
29123 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29124 PyObject *resultobj = 0;
29125 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29126 long arg2 ;
29127 long arg3 ;
29128 int result;
29129 void *argp1 = 0 ;
29130 int res1 = 0 ;
29131 long val2 ;
29132 int ecode2 = 0 ;
29133 long val3 ;
29134 int ecode3 = 0 ;
29135 PyObject * obj0 = 0 ;
29136 PyObject * obj1 = 0 ;
29137 PyObject * obj2 = 0 ;
29138 char * kwnames[] = {
29139 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29140 };
29141
29142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29144 if (!SWIG_IsOK(res1)) {
29145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29146 }
29147 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29148 ecode2 = SWIG_AsVal_long(obj1, &val2);
29149 if (!SWIG_IsOK(ecode2)) {
29150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29151 }
29152 arg2 = static_cast< long >(val2);
29153 ecode3 = SWIG_AsVal_long(obj2, &val3);
29154 if (!SWIG_IsOK(ecode3)) {
29155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29156 }
29157 arg3 = static_cast< long >(val3);
29158 {
29159 PyThreadState* __tstate = wxPyBeginAllowThreads();
29160 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29161 wxPyEndAllowThreads(__tstate);
29162 if (PyErr_Occurred()) SWIG_fail;
29163 }
29164 resultobj = SWIG_From_int(static_cast< int >(result));
29165 return resultobj;
29166 fail:
29167 return NULL;
29168 }
29169
29170
29171 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29172 PyObject *resultobj = 0;
29173 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29174 long arg2 ;
29175 long arg3 ;
29176 long arg4 ;
29177 bool result;
29178 void *argp1 = 0 ;
29179 int res1 = 0 ;
29180 long val2 ;
29181 int ecode2 = 0 ;
29182 long val3 ;
29183 int ecode3 = 0 ;
29184 long val4 ;
29185 int ecode4 = 0 ;
29186 PyObject * obj0 = 0 ;
29187 PyObject * obj1 = 0 ;
29188 PyObject * obj2 = 0 ;
29189 PyObject * obj3 = 0 ;
29190 char * kwnames[] = {
29191 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29192 };
29193
29194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29196 if (!SWIG_IsOK(res1)) {
29197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29198 }
29199 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29200 ecode2 = SWIG_AsVal_long(obj1, &val2);
29201 if (!SWIG_IsOK(ecode2)) {
29202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29203 }
29204 arg2 = static_cast< long >(val2);
29205 ecode3 = SWIG_AsVal_long(obj2, &val3);
29206 if (!SWIG_IsOK(ecode3)) {
29207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29208 }
29209 arg3 = static_cast< long >(val3);
29210 ecode4 = SWIG_AsVal_long(obj3, &val4);
29211 if (!SWIG_IsOK(ecode4)) {
29212 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29213 }
29214 arg4 = static_cast< long >(val4);
29215 {
29216 PyThreadState* __tstate = wxPyBeginAllowThreads();
29217 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29218 wxPyEndAllowThreads(__tstate);
29219 if (PyErr_Occurred()) SWIG_fail;
29220 }
29221 {
29222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29223 }
29224 return resultobj;
29225 fail:
29226 return NULL;
29227 }
29228
29229
29230 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29231 PyObject *resultobj = 0;
29232 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29233 long arg2 ;
29234 int arg3 ;
29235 int arg4 = (int) -1 ;
29236 bool result;
29237 void *argp1 = 0 ;
29238 int res1 = 0 ;
29239 long val2 ;
29240 int ecode2 = 0 ;
29241 int val3 ;
29242 int ecode3 = 0 ;
29243 int val4 ;
29244 int ecode4 = 0 ;
29245 PyObject * obj0 = 0 ;
29246 PyObject * obj1 = 0 ;
29247 PyObject * obj2 = 0 ;
29248 PyObject * obj3 = 0 ;
29249 char * kwnames[] = {
29250 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29251 };
29252
29253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29255 if (!SWIG_IsOK(res1)) {
29256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29257 }
29258 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29259 ecode2 = SWIG_AsVal_long(obj1, &val2);
29260 if (!SWIG_IsOK(ecode2)) {
29261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29262 }
29263 arg2 = static_cast< long >(val2);
29264 ecode3 = SWIG_AsVal_int(obj2, &val3);
29265 if (!SWIG_IsOK(ecode3)) {
29266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29267 }
29268 arg3 = static_cast< int >(val3);
29269 if (obj3) {
29270 ecode4 = SWIG_AsVal_int(obj3, &val4);
29271 if (!SWIG_IsOK(ecode4)) {
29272 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29273 }
29274 arg4 = static_cast< int >(val4);
29275 }
29276 {
29277 PyThreadState* __tstate = wxPyBeginAllowThreads();
29278 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29279 wxPyEndAllowThreads(__tstate);
29280 if (PyErr_Occurred()) SWIG_fail;
29281 }
29282 {
29283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29284 }
29285 return resultobj;
29286 fail:
29287 return NULL;
29288 }
29289
29290
29291 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29292 PyObject *resultobj = 0;
29293 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29294 long arg2 ;
29295 long arg3 ;
29296 int arg4 ;
29297 bool result;
29298 void *argp1 = 0 ;
29299 int res1 = 0 ;
29300 long val2 ;
29301 int ecode2 = 0 ;
29302 long val3 ;
29303 int ecode3 = 0 ;
29304 int val4 ;
29305 int ecode4 = 0 ;
29306 PyObject * obj0 = 0 ;
29307 PyObject * obj1 = 0 ;
29308 PyObject * obj2 = 0 ;
29309 PyObject * obj3 = 0 ;
29310 char * kwnames[] = {
29311 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29312 };
29313
29314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29316 if (!SWIG_IsOK(res1)) {
29317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29318 }
29319 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29320 ecode2 = SWIG_AsVal_long(obj1, &val2);
29321 if (!SWIG_IsOK(ecode2)) {
29322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29323 }
29324 arg2 = static_cast< long >(val2);
29325 ecode3 = SWIG_AsVal_long(obj2, &val3);
29326 if (!SWIG_IsOK(ecode3)) {
29327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29328 }
29329 arg3 = static_cast< long >(val3);
29330 ecode4 = SWIG_AsVal_int(obj3, &val4);
29331 if (!SWIG_IsOK(ecode4)) {
29332 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29333 }
29334 arg4 = static_cast< int >(val4);
29335 {
29336 PyThreadState* __tstate = wxPyBeginAllowThreads();
29337 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29338 wxPyEndAllowThreads(__tstate);
29339 if (PyErr_Occurred()) SWIG_fail;
29340 }
29341 {
29342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29343 }
29344 return resultobj;
29345 fail:
29346 return NULL;
29347 }
29348
29349
29350 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29351 PyObject *resultobj = 0;
29352 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29353 long arg2 ;
29354 wxString result;
29355 void *argp1 = 0 ;
29356 int res1 = 0 ;
29357 long val2 ;
29358 int ecode2 = 0 ;
29359 PyObject * obj0 = 0 ;
29360 PyObject * obj1 = 0 ;
29361 char * kwnames[] = {
29362 (char *) "self",(char *) "item", NULL
29363 };
29364
29365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29367 if (!SWIG_IsOK(res1)) {
29368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29369 }
29370 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29371 ecode2 = SWIG_AsVal_long(obj1, &val2);
29372 if (!SWIG_IsOK(ecode2)) {
29373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29374 }
29375 arg2 = static_cast< long >(val2);
29376 {
29377 PyThreadState* __tstate = wxPyBeginAllowThreads();
29378 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29379 wxPyEndAllowThreads(__tstate);
29380 if (PyErr_Occurred()) SWIG_fail;
29381 }
29382 {
29383 #if wxUSE_UNICODE
29384 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29385 #else
29386 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29387 #endif
29388 }
29389 return resultobj;
29390 fail:
29391 return NULL;
29392 }
29393
29394
29395 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29396 PyObject *resultobj = 0;
29397 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29398 long arg2 ;
29399 wxString *arg3 = 0 ;
29400 void *argp1 = 0 ;
29401 int res1 = 0 ;
29402 long val2 ;
29403 int ecode2 = 0 ;
29404 bool temp3 = false ;
29405 PyObject * obj0 = 0 ;
29406 PyObject * obj1 = 0 ;
29407 PyObject * obj2 = 0 ;
29408 char * kwnames[] = {
29409 (char *) "self",(char *) "item",(char *) "str", NULL
29410 };
29411
29412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29414 if (!SWIG_IsOK(res1)) {
29415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29416 }
29417 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29418 ecode2 = SWIG_AsVal_long(obj1, &val2);
29419 if (!SWIG_IsOK(ecode2)) {
29420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29421 }
29422 arg2 = static_cast< long >(val2);
29423 {
29424 arg3 = wxString_in_helper(obj2);
29425 if (arg3 == NULL) SWIG_fail;
29426 temp3 = true;
29427 }
29428 {
29429 PyThreadState* __tstate = wxPyBeginAllowThreads();
29430 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29431 wxPyEndAllowThreads(__tstate);
29432 if (PyErr_Occurred()) SWIG_fail;
29433 }
29434 resultobj = SWIG_Py_Void();
29435 {
29436 if (temp3)
29437 delete arg3;
29438 }
29439 return resultobj;
29440 fail:
29441 {
29442 if (temp3)
29443 delete arg3;
29444 }
29445 return NULL;
29446 }
29447
29448
29449 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29450 PyObject *resultobj = 0;
29451 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29452 long arg2 ;
29453 long result;
29454 void *argp1 = 0 ;
29455 int res1 = 0 ;
29456 long val2 ;
29457 int ecode2 = 0 ;
29458 PyObject * obj0 = 0 ;
29459 PyObject * obj1 = 0 ;
29460 char * kwnames[] = {
29461 (char *) "self",(char *) "item", NULL
29462 };
29463
29464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29466 if (!SWIG_IsOK(res1)) {
29467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29468 }
29469 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29470 ecode2 = SWIG_AsVal_long(obj1, &val2);
29471 if (!SWIG_IsOK(ecode2)) {
29472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29473 }
29474 arg2 = static_cast< long >(val2);
29475 {
29476 PyThreadState* __tstate = wxPyBeginAllowThreads();
29477 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29478 wxPyEndAllowThreads(__tstate);
29479 if (PyErr_Occurred()) SWIG_fail;
29480 }
29481 resultobj = SWIG_From_long(static_cast< long >(result));
29482 return resultobj;
29483 fail:
29484 return NULL;
29485 }
29486
29487
29488 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29489 PyObject *resultobj = 0;
29490 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29491 long arg2 ;
29492 long arg3 ;
29493 bool result;
29494 void *argp1 = 0 ;
29495 int res1 = 0 ;
29496 long val2 ;
29497 int ecode2 = 0 ;
29498 long val3 ;
29499 int ecode3 = 0 ;
29500 PyObject * obj0 = 0 ;
29501 PyObject * obj1 = 0 ;
29502 PyObject * obj2 = 0 ;
29503 char * kwnames[] = {
29504 (char *) "self",(char *) "item",(char *) "data", NULL
29505 };
29506
29507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29509 if (!SWIG_IsOK(res1)) {
29510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29511 }
29512 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29513 ecode2 = SWIG_AsVal_long(obj1, &val2);
29514 if (!SWIG_IsOK(ecode2)) {
29515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29516 }
29517 arg2 = static_cast< long >(val2);
29518 ecode3 = SWIG_AsVal_long(obj2, &val3);
29519 if (!SWIG_IsOK(ecode3)) {
29520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29521 }
29522 arg3 = static_cast< long >(val3);
29523 {
29524 PyThreadState* __tstate = wxPyBeginAllowThreads();
29525 result = (bool)(arg1)->SetItemData(arg2,arg3);
29526 wxPyEndAllowThreads(__tstate);
29527 if (PyErr_Occurred()) SWIG_fail;
29528 }
29529 {
29530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29531 }
29532 return resultobj;
29533 fail:
29534 return NULL;
29535 }
29536
29537
29538 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29539 PyObject *resultobj = 0;
29540 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29541 long arg2 ;
29542 wxPoint result;
29543 void *argp1 = 0 ;
29544 int res1 = 0 ;
29545 long val2 ;
29546 int ecode2 = 0 ;
29547 PyObject * obj0 = 0 ;
29548 PyObject * obj1 = 0 ;
29549 char * kwnames[] = {
29550 (char *) "self",(char *) "item", NULL
29551 };
29552
29553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29555 if (!SWIG_IsOK(res1)) {
29556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29557 }
29558 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29559 ecode2 = SWIG_AsVal_long(obj1, &val2);
29560 if (!SWIG_IsOK(ecode2)) {
29561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29562 }
29563 arg2 = static_cast< long >(val2);
29564 {
29565 PyThreadState* __tstate = wxPyBeginAllowThreads();
29566 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29567 wxPyEndAllowThreads(__tstate);
29568 if (PyErr_Occurred()) SWIG_fail;
29569 }
29570 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29571 return resultobj;
29572 fail:
29573 return NULL;
29574 }
29575
29576
29577 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29578 PyObject *resultobj = 0;
29579 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29580 long arg2 ;
29581 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29582 wxRect result;
29583 void *argp1 = 0 ;
29584 int res1 = 0 ;
29585 long val2 ;
29586 int ecode2 = 0 ;
29587 int val3 ;
29588 int ecode3 = 0 ;
29589 PyObject * obj0 = 0 ;
29590 PyObject * obj1 = 0 ;
29591 PyObject * obj2 = 0 ;
29592 char * kwnames[] = {
29593 (char *) "self",(char *) "item",(char *) "code", NULL
29594 };
29595
29596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29598 if (!SWIG_IsOK(res1)) {
29599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29600 }
29601 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29602 ecode2 = SWIG_AsVal_long(obj1, &val2);
29603 if (!SWIG_IsOK(ecode2)) {
29604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29605 }
29606 arg2 = static_cast< long >(val2);
29607 if (obj2) {
29608 ecode3 = SWIG_AsVal_int(obj2, &val3);
29609 if (!SWIG_IsOK(ecode3)) {
29610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29611 }
29612 arg3 = static_cast< int >(val3);
29613 }
29614 {
29615 PyThreadState* __tstate = wxPyBeginAllowThreads();
29616 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29617 wxPyEndAllowThreads(__tstate);
29618 if (PyErr_Occurred()) SWIG_fail;
29619 }
29620 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29621 return resultobj;
29622 fail:
29623 return NULL;
29624 }
29625
29626
29627 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29628 PyObject *resultobj = 0;
29629 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29630 long arg2 ;
29631 wxPoint *arg3 = 0 ;
29632 bool result;
29633 void *argp1 = 0 ;
29634 int res1 = 0 ;
29635 long val2 ;
29636 int ecode2 = 0 ;
29637 wxPoint temp3 ;
29638 PyObject * obj0 = 0 ;
29639 PyObject * obj1 = 0 ;
29640 PyObject * obj2 = 0 ;
29641 char * kwnames[] = {
29642 (char *) "self",(char *) "item",(char *) "pos", NULL
29643 };
29644
29645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29647 if (!SWIG_IsOK(res1)) {
29648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29649 }
29650 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29651 ecode2 = SWIG_AsVal_long(obj1, &val2);
29652 if (!SWIG_IsOK(ecode2)) {
29653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29654 }
29655 arg2 = static_cast< long >(val2);
29656 {
29657 arg3 = &temp3;
29658 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29659 }
29660 {
29661 PyThreadState* __tstate = wxPyBeginAllowThreads();
29662 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29663 wxPyEndAllowThreads(__tstate);
29664 if (PyErr_Occurred()) SWIG_fail;
29665 }
29666 {
29667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29668 }
29669 return resultobj;
29670 fail:
29671 return NULL;
29672 }
29673
29674
29675 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29676 PyObject *resultobj = 0;
29677 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29678 int result;
29679 void *argp1 = 0 ;
29680 int res1 = 0 ;
29681 PyObject *swig_obj[1] ;
29682
29683 if (!args) SWIG_fail;
29684 swig_obj[0] = args;
29685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29686 if (!SWIG_IsOK(res1)) {
29687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29688 }
29689 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29690 {
29691 PyThreadState* __tstate = wxPyBeginAllowThreads();
29692 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29693 wxPyEndAllowThreads(__tstate);
29694 if (PyErr_Occurred()) SWIG_fail;
29695 }
29696 resultobj = SWIG_From_int(static_cast< int >(result));
29697 return resultobj;
29698 fail:
29699 return NULL;
29700 }
29701
29702
29703 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29704 PyObject *resultobj = 0;
29705 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29706 int result;
29707 void *argp1 = 0 ;
29708 int res1 = 0 ;
29709 PyObject *swig_obj[1] ;
29710
29711 if (!args) SWIG_fail;
29712 swig_obj[0] = args;
29713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29714 if (!SWIG_IsOK(res1)) {
29715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29716 }
29717 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29718 {
29719 PyThreadState* __tstate = wxPyBeginAllowThreads();
29720 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29721 wxPyEndAllowThreads(__tstate);
29722 if (PyErr_Occurred()) SWIG_fail;
29723 }
29724 resultobj = SWIG_From_int(static_cast< int >(result));
29725 return resultobj;
29726 fail:
29727 return NULL;
29728 }
29729
29730
29731 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29732 PyObject *resultobj = 0;
29733 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29734 wxSize result;
29735 void *argp1 = 0 ;
29736 int res1 = 0 ;
29737 PyObject *swig_obj[1] ;
29738
29739 if (!args) SWIG_fail;
29740 swig_obj[0] = args;
29741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29742 if (!SWIG_IsOK(res1)) {
29743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29744 }
29745 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29746 {
29747 PyThreadState* __tstate = wxPyBeginAllowThreads();
29748 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29749 wxPyEndAllowThreads(__tstate);
29750 if (PyErr_Occurred()) SWIG_fail;
29751 }
29752 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29753 return resultobj;
29754 fail:
29755 return NULL;
29756 }
29757
29758
29759 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29760 PyObject *resultobj = 0;
29761 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29762 int arg2 ;
29763 bool arg3 = (bool) false ;
29764 void *argp1 = 0 ;
29765 int res1 = 0 ;
29766 int val2 ;
29767 int ecode2 = 0 ;
29768 bool val3 ;
29769 int ecode3 = 0 ;
29770 PyObject * obj0 = 0 ;
29771 PyObject * obj1 = 0 ;
29772 PyObject * obj2 = 0 ;
29773 char * kwnames[] = {
29774 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29775 };
29776
29777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29779 if (!SWIG_IsOK(res1)) {
29780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29781 }
29782 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29783 ecode2 = SWIG_AsVal_int(obj1, &val2);
29784 if (!SWIG_IsOK(ecode2)) {
29785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29786 }
29787 arg2 = static_cast< int >(val2);
29788 if (obj2) {
29789 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29790 if (!SWIG_IsOK(ecode3)) {
29791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29792 }
29793 arg3 = static_cast< bool >(val3);
29794 }
29795 {
29796 PyThreadState* __tstate = wxPyBeginAllowThreads();
29797 (arg1)->SetItemSpacing(arg2,arg3);
29798 wxPyEndAllowThreads(__tstate);
29799 if (PyErr_Occurred()) SWIG_fail;
29800 }
29801 resultobj = SWIG_Py_Void();
29802 return resultobj;
29803 fail:
29804 return NULL;
29805 }
29806
29807
29808 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29809 PyObject *resultobj = 0;
29810 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29811 int result;
29812 void *argp1 = 0 ;
29813 int res1 = 0 ;
29814 PyObject *swig_obj[1] ;
29815
29816 if (!args) SWIG_fail;
29817 swig_obj[0] = args;
29818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29819 if (!SWIG_IsOK(res1)) {
29820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29821 }
29822 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29823 {
29824 PyThreadState* __tstate = wxPyBeginAllowThreads();
29825 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29826 wxPyEndAllowThreads(__tstate);
29827 if (PyErr_Occurred()) SWIG_fail;
29828 }
29829 resultobj = SWIG_From_int(static_cast< int >(result));
29830 return resultobj;
29831 fail:
29832 return NULL;
29833 }
29834
29835
29836 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29837 PyObject *resultobj = 0;
29838 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29839 wxColour result;
29840 void *argp1 = 0 ;
29841 int res1 = 0 ;
29842 PyObject *swig_obj[1] ;
29843
29844 if (!args) SWIG_fail;
29845 swig_obj[0] = args;
29846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29847 if (!SWIG_IsOK(res1)) {
29848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29849 }
29850 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29851 {
29852 PyThreadState* __tstate = wxPyBeginAllowThreads();
29853 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29854 wxPyEndAllowThreads(__tstate);
29855 if (PyErr_Occurred()) SWIG_fail;
29856 }
29857 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29858 return resultobj;
29859 fail:
29860 return NULL;
29861 }
29862
29863
29864 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29865 PyObject *resultobj = 0;
29866 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29867 wxColour *arg2 = 0 ;
29868 void *argp1 = 0 ;
29869 int res1 = 0 ;
29870 wxColour temp2 ;
29871 PyObject * obj0 = 0 ;
29872 PyObject * obj1 = 0 ;
29873 char * kwnames[] = {
29874 (char *) "self",(char *) "col", NULL
29875 };
29876
29877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29879 if (!SWIG_IsOK(res1)) {
29880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29881 }
29882 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29883 {
29884 arg2 = &temp2;
29885 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29886 }
29887 {
29888 PyThreadState* __tstate = wxPyBeginAllowThreads();
29889 (arg1)->SetTextColour((wxColour const &)*arg2);
29890 wxPyEndAllowThreads(__tstate);
29891 if (PyErr_Occurred()) SWIG_fail;
29892 }
29893 resultobj = SWIG_Py_Void();
29894 return resultobj;
29895 fail:
29896 return NULL;
29897 }
29898
29899
29900 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29901 PyObject *resultobj = 0;
29902 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29903 long result;
29904 void *argp1 = 0 ;
29905 int res1 = 0 ;
29906 PyObject *swig_obj[1] ;
29907
29908 if (!args) SWIG_fail;
29909 swig_obj[0] = args;
29910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29911 if (!SWIG_IsOK(res1)) {
29912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29913 }
29914 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29915 {
29916 PyThreadState* __tstate = wxPyBeginAllowThreads();
29917 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29918 wxPyEndAllowThreads(__tstate);
29919 if (PyErr_Occurred()) SWIG_fail;
29920 }
29921 resultobj = SWIG_From_long(static_cast< long >(result));
29922 return resultobj;
29923 fail:
29924 return NULL;
29925 }
29926
29927
29928 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29929 PyObject *resultobj = 0;
29930 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29931 long arg2 ;
29932 bool arg3 = (bool) true ;
29933 void *argp1 = 0 ;
29934 int res1 = 0 ;
29935 long val2 ;
29936 int ecode2 = 0 ;
29937 bool val3 ;
29938 int ecode3 = 0 ;
29939 PyObject * obj0 = 0 ;
29940 PyObject * obj1 = 0 ;
29941 PyObject * obj2 = 0 ;
29942 char * kwnames[] = {
29943 (char *) "self",(char *) "style",(char *) "add", NULL
29944 };
29945
29946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29948 if (!SWIG_IsOK(res1)) {
29949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29950 }
29951 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29952 ecode2 = SWIG_AsVal_long(obj1, &val2);
29953 if (!SWIG_IsOK(ecode2)) {
29954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29955 }
29956 arg2 = static_cast< long >(val2);
29957 if (obj2) {
29958 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29959 if (!SWIG_IsOK(ecode3)) {
29960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29961 }
29962 arg3 = static_cast< bool >(val3);
29963 }
29964 {
29965 PyThreadState* __tstate = wxPyBeginAllowThreads();
29966 (arg1)->SetSingleStyle(arg2,arg3);
29967 wxPyEndAllowThreads(__tstate);
29968 if (PyErr_Occurred()) SWIG_fail;
29969 }
29970 resultobj = SWIG_Py_Void();
29971 return resultobj;
29972 fail:
29973 return NULL;
29974 }
29975
29976
29977 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29978 PyObject *resultobj = 0;
29979 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29980 long arg2 ;
29981 int arg3 = (int) wxLIST_NEXT_ALL ;
29982 int arg4 = (int) wxLIST_STATE_DONTCARE ;
29983 long result;
29984 void *argp1 = 0 ;
29985 int res1 = 0 ;
29986 long val2 ;
29987 int ecode2 = 0 ;
29988 int val3 ;
29989 int ecode3 = 0 ;
29990 int val4 ;
29991 int ecode4 = 0 ;
29992 PyObject * obj0 = 0 ;
29993 PyObject * obj1 = 0 ;
29994 PyObject * obj2 = 0 ;
29995 PyObject * obj3 = 0 ;
29996 char * kwnames[] = {
29997 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
29998 };
29999
30000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30002 if (!SWIG_IsOK(res1)) {
30003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30004 }
30005 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30006 ecode2 = SWIG_AsVal_long(obj1, &val2);
30007 if (!SWIG_IsOK(ecode2)) {
30008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30009 }
30010 arg2 = static_cast< long >(val2);
30011 if (obj2) {
30012 ecode3 = SWIG_AsVal_int(obj2, &val3);
30013 if (!SWIG_IsOK(ecode3)) {
30014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30015 }
30016 arg3 = static_cast< int >(val3);
30017 }
30018 if (obj3) {
30019 ecode4 = SWIG_AsVal_int(obj3, &val4);
30020 if (!SWIG_IsOK(ecode4)) {
30021 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30022 }
30023 arg4 = static_cast< int >(val4);
30024 }
30025 {
30026 PyThreadState* __tstate = wxPyBeginAllowThreads();
30027 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30028 wxPyEndAllowThreads(__tstate);
30029 if (PyErr_Occurred()) SWIG_fail;
30030 }
30031 resultobj = SWIG_From_long(static_cast< long >(result));
30032 return resultobj;
30033 fail:
30034 return NULL;
30035 }
30036
30037
30038 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30039 PyObject *resultobj = 0;
30040 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30041 int arg2 ;
30042 wxImageList *result = 0 ;
30043 void *argp1 = 0 ;
30044 int res1 = 0 ;
30045 int val2 ;
30046 int ecode2 = 0 ;
30047 PyObject * obj0 = 0 ;
30048 PyObject * obj1 = 0 ;
30049 char * kwnames[] = {
30050 (char *) "self",(char *) "which", NULL
30051 };
30052
30053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30055 if (!SWIG_IsOK(res1)) {
30056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30057 }
30058 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30059 ecode2 = SWIG_AsVal_int(obj1, &val2);
30060 if (!SWIG_IsOK(ecode2)) {
30061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30062 }
30063 arg2 = static_cast< int >(val2);
30064 {
30065 PyThreadState* __tstate = wxPyBeginAllowThreads();
30066 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30067 wxPyEndAllowThreads(__tstate);
30068 if (PyErr_Occurred()) SWIG_fail;
30069 }
30070 {
30071 resultobj = wxPyMake_wxObject(result, (bool)0);
30072 }
30073 return resultobj;
30074 fail:
30075 return NULL;
30076 }
30077
30078
30079 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30080 PyObject *resultobj = 0;
30081 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30082 wxImageList *arg2 = (wxImageList *) 0 ;
30083 int arg3 ;
30084 void *argp1 = 0 ;
30085 int res1 = 0 ;
30086 void *argp2 = 0 ;
30087 int res2 = 0 ;
30088 int val3 ;
30089 int ecode3 = 0 ;
30090 PyObject * obj0 = 0 ;
30091 PyObject * obj1 = 0 ;
30092 PyObject * obj2 = 0 ;
30093 char * kwnames[] = {
30094 (char *) "self",(char *) "imageList",(char *) "which", NULL
30095 };
30096
30097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30099 if (!SWIG_IsOK(res1)) {
30100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30101 }
30102 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30103 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30104 if (!SWIG_IsOK(res2)) {
30105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30106 }
30107 arg2 = reinterpret_cast< wxImageList * >(argp2);
30108 ecode3 = SWIG_AsVal_int(obj2, &val3);
30109 if (!SWIG_IsOK(ecode3)) {
30110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30111 }
30112 arg3 = static_cast< int >(val3);
30113 {
30114 PyThreadState* __tstate = wxPyBeginAllowThreads();
30115 (arg1)->SetImageList(arg2,arg3);
30116 wxPyEndAllowThreads(__tstate);
30117 if (PyErr_Occurred()) SWIG_fail;
30118 }
30119 resultobj = SWIG_Py_Void();
30120 return resultobj;
30121 fail:
30122 return NULL;
30123 }
30124
30125
30126 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30127 PyObject *resultobj = 0;
30128 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30129 wxImageList *arg2 = (wxImageList *) 0 ;
30130 int arg3 ;
30131 void *argp1 = 0 ;
30132 int res1 = 0 ;
30133 int res2 = 0 ;
30134 int val3 ;
30135 int ecode3 = 0 ;
30136 PyObject * obj0 = 0 ;
30137 PyObject * obj1 = 0 ;
30138 PyObject * obj2 = 0 ;
30139 char * kwnames[] = {
30140 (char *) "self",(char *) "imageList",(char *) "which", NULL
30141 };
30142
30143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30145 if (!SWIG_IsOK(res1)) {
30146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30147 }
30148 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30149 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30150 if (!SWIG_IsOK(res2)) {
30151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30152 }
30153 ecode3 = SWIG_AsVal_int(obj2, &val3);
30154 if (!SWIG_IsOK(ecode3)) {
30155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30156 }
30157 arg3 = static_cast< int >(val3);
30158 {
30159 PyThreadState* __tstate = wxPyBeginAllowThreads();
30160 (arg1)->AssignImageList(arg2,arg3);
30161 wxPyEndAllowThreads(__tstate);
30162 if (PyErr_Occurred()) SWIG_fail;
30163 }
30164 resultobj = SWIG_Py_Void();
30165 return resultobj;
30166 fail:
30167 return NULL;
30168 }
30169
30170
30171 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30172 PyObject *resultobj = 0;
30173 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30174 bool result;
30175 void *argp1 = 0 ;
30176 int res1 = 0 ;
30177 PyObject *swig_obj[1] ;
30178
30179 if (!args) SWIG_fail;
30180 swig_obj[0] = args;
30181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30182 if (!SWIG_IsOK(res1)) {
30183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30184 }
30185 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30186 {
30187 PyThreadState* __tstate = wxPyBeginAllowThreads();
30188 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30189 wxPyEndAllowThreads(__tstate);
30190 if (PyErr_Occurred()) SWIG_fail;
30191 }
30192 {
30193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30194 }
30195 return resultobj;
30196 fail:
30197 return NULL;
30198 }
30199
30200
30201 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30202 PyObject *resultobj = 0;
30203 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30204 bool result;
30205 void *argp1 = 0 ;
30206 int res1 = 0 ;
30207 PyObject *swig_obj[1] ;
30208
30209 if (!args) SWIG_fail;
30210 swig_obj[0] = args;
30211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30212 if (!SWIG_IsOK(res1)) {
30213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30214 }
30215 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30216 {
30217 PyThreadState* __tstate = wxPyBeginAllowThreads();
30218 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30219 wxPyEndAllowThreads(__tstate);
30220 if (PyErr_Occurred()) SWIG_fail;
30221 }
30222 {
30223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30224 }
30225 return resultobj;
30226 fail:
30227 return NULL;
30228 }
30229
30230
30231 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30232 PyObject *resultobj = 0;
30233 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30234 long arg2 ;
30235 void *argp1 = 0 ;
30236 int res1 = 0 ;
30237 long val2 ;
30238 int ecode2 = 0 ;
30239 PyObject * obj0 = 0 ;
30240 PyObject * obj1 = 0 ;
30241 char * kwnames[] = {
30242 (char *) "self",(char *) "item", NULL
30243 };
30244
30245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30247 if (!SWIG_IsOK(res1)) {
30248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30249 }
30250 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30251 ecode2 = SWIG_AsVal_long(obj1, &val2);
30252 if (!SWIG_IsOK(ecode2)) {
30253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30254 }
30255 arg2 = static_cast< long >(val2);
30256 {
30257 PyThreadState* __tstate = wxPyBeginAllowThreads();
30258 (arg1)->RefreshItem(arg2);
30259 wxPyEndAllowThreads(__tstate);
30260 if (PyErr_Occurred()) SWIG_fail;
30261 }
30262 resultobj = SWIG_Py_Void();
30263 return resultobj;
30264 fail:
30265 return NULL;
30266 }
30267
30268
30269 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30270 PyObject *resultobj = 0;
30271 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30272 long arg2 ;
30273 long arg3 ;
30274 void *argp1 = 0 ;
30275 int res1 = 0 ;
30276 long val2 ;
30277 int ecode2 = 0 ;
30278 long val3 ;
30279 int ecode3 = 0 ;
30280 PyObject * obj0 = 0 ;
30281 PyObject * obj1 = 0 ;
30282 PyObject * obj2 = 0 ;
30283 char * kwnames[] = {
30284 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30285 };
30286
30287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30289 if (!SWIG_IsOK(res1)) {
30290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30291 }
30292 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30293 ecode2 = SWIG_AsVal_long(obj1, &val2);
30294 if (!SWIG_IsOK(ecode2)) {
30295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30296 }
30297 arg2 = static_cast< long >(val2);
30298 ecode3 = SWIG_AsVal_long(obj2, &val3);
30299 if (!SWIG_IsOK(ecode3)) {
30300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30301 }
30302 arg3 = static_cast< long >(val3);
30303 {
30304 PyThreadState* __tstate = wxPyBeginAllowThreads();
30305 (arg1)->RefreshItems(arg2,arg3);
30306 wxPyEndAllowThreads(__tstate);
30307 if (PyErr_Occurred()) SWIG_fail;
30308 }
30309 resultobj = SWIG_Py_Void();
30310 return resultobj;
30311 fail:
30312 return NULL;
30313 }
30314
30315
30316 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30317 PyObject *resultobj = 0;
30318 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30319 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30320 bool result;
30321 void *argp1 = 0 ;
30322 int res1 = 0 ;
30323 int val2 ;
30324 int ecode2 = 0 ;
30325 PyObject * obj0 = 0 ;
30326 PyObject * obj1 = 0 ;
30327 char * kwnames[] = {
30328 (char *) "self",(char *) "flag", NULL
30329 };
30330
30331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30333 if (!SWIG_IsOK(res1)) {
30334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30335 }
30336 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30337 if (obj1) {
30338 ecode2 = SWIG_AsVal_int(obj1, &val2);
30339 if (!SWIG_IsOK(ecode2)) {
30340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30341 }
30342 arg2 = static_cast< int >(val2);
30343 }
30344 {
30345 PyThreadState* __tstate = wxPyBeginAllowThreads();
30346 result = (bool)(arg1)->Arrange(arg2);
30347 wxPyEndAllowThreads(__tstate);
30348 if (PyErr_Occurred()) SWIG_fail;
30349 }
30350 {
30351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30352 }
30353 return resultobj;
30354 fail:
30355 return NULL;
30356 }
30357
30358
30359 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30360 PyObject *resultobj = 0;
30361 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30362 long arg2 ;
30363 bool result;
30364 void *argp1 = 0 ;
30365 int res1 = 0 ;
30366 long val2 ;
30367 int ecode2 = 0 ;
30368 PyObject * obj0 = 0 ;
30369 PyObject * obj1 = 0 ;
30370 char * kwnames[] = {
30371 (char *) "self",(char *) "item", NULL
30372 };
30373
30374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30376 if (!SWIG_IsOK(res1)) {
30377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30378 }
30379 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30380 ecode2 = SWIG_AsVal_long(obj1, &val2);
30381 if (!SWIG_IsOK(ecode2)) {
30382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30383 }
30384 arg2 = static_cast< long >(val2);
30385 {
30386 PyThreadState* __tstate = wxPyBeginAllowThreads();
30387 result = (bool)(arg1)->DeleteItem(arg2);
30388 wxPyEndAllowThreads(__tstate);
30389 if (PyErr_Occurred()) SWIG_fail;
30390 }
30391 {
30392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30393 }
30394 return resultobj;
30395 fail:
30396 return NULL;
30397 }
30398
30399
30400 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30401 PyObject *resultobj = 0;
30402 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30403 bool result;
30404 void *argp1 = 0 ;
30405 int res1 = 0 ;
30406 PyObject *swig_obj[1] ;
30407
30408 if (!args) SWIG_fail;
30409 swig_obj[0] = args;
30410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30411 if (!SWIG_IsOK(res1)) {
30412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30413 }
30414 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30415 {
30416 PyThreadState* __tstate = wxPyBeginAllowThreads();
30417 result = (bool)(arg1)->DeleteAllItems();
30418 wxPyEndAllowThreads(__tstate);
30419 if (PyErr_Occurred()) SWIG_fail;
30420 }
30421 {
30422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30423 }
30424 return resultobj;
30425 fail:
30426 return NULL;
30427 }
30428
30429
30430 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30431 PyObject *resultobj = 0;
30432 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30433 int arg2 ;
30434 bool result;
30435 void *argp1 = 0 ;
30436 int res1 = 0 ;
30437 int val2 ;
30438 int ecode2 = 0 ;
30439 PyObject * obj0 = 0 ;
30440 PyObject * obj1 = 0 ;
30441 char * kwnames[] = {
30442 (char *) "self",(char *) "col", NULL
30443 };
30444
30445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30447 if (!SWIG_IsOK(res1)) {
30448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30449 }
30450 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30451 ecode2 = SWIG_AsVal_int(obj1, &val2);
30452 if (!SWIG_IsOK(ecode2)) {
30453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30454 }
30455 arg2 = static_cast< int >(val2);
30456 {
30457 PyThreadState* __tstate = wxPyBeginAllowThreads();
30458 result = (bool)(arg1)->DeleteColumn(arg2);
30459 wxPyEndAllowThreads(__tstate);
30460 if (PyErr_Occurred()) SWIG_fail;
30461 }
30462 {
30463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30464 }
30465 return resultobj;
30466 fail:
30467 return NULL;
30468 }
30469
30470
30471 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30472 PyObject *resultobj = 0;
30473 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30474 bool result;
30475 void *argp1 = 0 ;
30476 int res1 = 0 ;
30477 PyObject *swig_obj[1] ;
30478
30479 if (!args) SWIG_fail;
30480 swig_obj[0] = args;
30481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30482 if (!SWIG_IsOK(res1)) {
30483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30484 }
30485 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30486 {
30487 PyThreadState* __tstate = wxPyBeginAllowThreads();
30488 result = (bool)(arg1)->DeleteAllColumns();
30489 wxPyEndAllowThreads(__tstate);
30490 if (PyErr_Occurred()) SWIG_fail;
30491 }
30492 {
30493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30494 }
30495 return resultobj;
30496 fail:
30497 return NULL;
30498 }
30499
30500
30501 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30502 PyObject *resultobj = 0;
30503 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30504 void *argp1 = 0 ;
30505 int res1 = 0 ;
30506 PyObject *swig_obj[1] ;
30507
30508 if (!args) SWIG_fail;
30509 swig_obj[0] = args;
30510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30511 if (!SWIG_IsOK(res1)) {
30512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30513 }
30514 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30515 {
30516 PyThreadState* __tstate = wxPyBeginAllowThreads();
30517 (arg1)->ClearAll();
30518 wxPyEndAllowThreads(__tstate);
30519 if (PyErr_Occurred()) SWIG_fail;
30520 }
30521 resultobj = SWIG_Py_Void();
30522 return resultobj;
30523 fail:
30524 return NULL;
30525 }
30526
30527
30528 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30529 PyObject *resultobj = 0;
30530 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30531 long arg2 ;
30532 void *argp1 = 0 ;
30533 int res1 = 0 ;
30534 long val2 ;
30535 int ecode2 = 0 ;
30536 PyObject * obj0 = 0 ;
30537 PyObject * obj1 = 0 ;
30538 char * kwnames[] = {
30539 (char *) "self",(char *) "item", NULL
30540 };
30541
30542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30544 if (!SWIG_IsOK(res1)) {
30545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30546 }
30547 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30548 ecode2 = SWIG_AsVal_long(obj1, &val2);
30549 if (!SWIG_IsOK(ecode2)) {
30550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30551 }
30552 arg2 = static_cast< long >(val2);
30553 {
30554 PyThreadState* __tstate = wxPyBeginAllowThreads();
30555 (arg1)->EditLabel(arg2);
30556 wxPyEndAllowThreads(__tstate);
30557 if (PyErr_Occurred()) SWIG_fail;
30558 }
30559 resultobj = SWIG_Py_Void();
30560 return resultobj;
30561 fail:
30562 return NULL;
30563 }
30564
30565
30566 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30567 PyObject *resultobj = 0;
30568 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30569 long arg2 ;
30570 bool result;
30571 void *argp1 = 0 ;
30572 int res1 = 0 ;
30573 long val2 ;
30574 int ecode2 = 0 ;
30575 PyObject * obj0 = 0 ;
30576 PyObject * obj1 = 0 ;
30577 char * kwnames[] = {
30578 (char *) "self",(char *) "item", NULL
30579 };
30580
30581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30583 if (!SWIG_IsOK(res1)) {
30584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30585 }
30586 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30587 ecode2 = SWIG_AsVal_long(obj1, &val2);
30588 if (!SWIG_IsOK(ecode2)) {
30589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30590 }
30591 arg2 = static_cast< long >(val2);
30592 {
30593 PyThreadState* __tstate = wxPyBeginAllowThreads();
30594 result = (bool)(arg1)->EnsureVisible(arg2);
30595 wxPyEndAllowThreads(__tstate);
30596 if (PyErr_Occurred()) SWIG_fail;
30597 }
30598 {
30599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30600 }
30601 return resultobj;
30602 fail:
30603 return NULL;
30604 }
30605
30606
30607 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30608 PyObject *resultobj = 0;
30609 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30610 long arg2 ;
30611 wxString *arg3 = 0 ;
30612 bool arg4 = (bool) false ;
30613 long result;
30614 void *argp1 = 0 ;
30615 int res1 = 0 ;
30616 long val2 ;
30617 int ecode2 = 0 ;
30618 bool temp3 = false ;
30619 bool val4 ;
30620 int ecode4 = 0 ;
30621 PyObject * obj0 = 0 ;
30622 PyObject * obj1 = 0 ;
30623 PyObject * obj2 = 0 ;
30624 PyObject * obj3 = 0 ;
30625 char * kwnames[] = {
30626 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30627 };
30628
30629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30631 if (!SWIG_IsOK(res1)) {
30632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30633 }
30634 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30635 ecode2 = SWIG_AsVal_long(obj1, &val2);
30636 if (!SWIG_IsOK(ecode2)) {
30637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30638 }
30639 arg2 = static_cast< long >(val2);
30640 {
30641 arg3 = wxString_in_helper(obj2);
30642 if (arg3 == NULL) SWIG_fail;
30643 temp3 = true;
30644 }
30645 if (obj3) {
30646 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30647 if (!SWIG_IsOK(ecode4)) {
30648 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30649 }
30650 arg4 = static_cast< bool >(val4);
30651 }
30652 {
30653 PyThreadState* __tstate = wxPyBeginAllowThreads();
30654 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30655 wxPyEndAllowThreads(__tstate);
30656 if (PyErr_Occurred()) SWIG_fail;
30657 }
30658 resultobj = SWIG_From_long(static_cast< long >(result));
30659 {
30660 if (temp3)
30661 delete arg3;
30662 }
30663 return resultobj;
30664 fail:
30665 {
30666 if (temp3)
30667 delete arg3;
30668 }
30669 return NULL;
30670 }
30671
30672
30673 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30674 PyObject *resultobj = 0;
30675 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30676 long arg2 ;
30677 long arg3 ;
30678 long result;
30679 void *argp1 = 0 ;
30680 int res1 = 0 ;
30681 long val2 ;
30682 int ecode2 = 0 ;
30683 long val3 ;
30684 int ecode3 = 0 ;
30685 PyObject * obj0 = 0 ;
30686 PyObject * obj1 = 0 ;
30687 PyObject * obj2 = 0 ;
30688 char * kwnames[] = {
30689 (char *) "self",(char *) "start",(char *) "data", NULL
30690 };
30691
30692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30694 if (!SWIG_IsOK(res1)) {
30695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30696 }
30697 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30698 ecode2 = SWIG_AsVal_long(obj1, &val2);
30699 if (!SWIG_IsOK(ecode2)) {
30700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30701 }
30702 arg2 = static_cast< long >(val2);
30703 ecode3 = SWIG_AsVal_long(obj2, &val3);
30704 if (!SWIG_IsOK(ecode3)) {
30705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30706 }
30707 arg3 = static_cast< long >(val3);
30708 {
30709 PyThreadState* __tstate = wxPyBeginAllowThreads();
30710 result = (long)(arg1)->FindItem(arg2,arg3);
30711 wxPyEndAllowThreads(__tstate);
30712 if (PyErr_Occurred()) SWIG_fail;
30713 }
30714 resultobj = SWIG_From_long(static_cast< long >(result));
30715 return resultobj;
30716 fail:
30717 return NULL;
30718 }
30719
30720
30721 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30722 PyObject *resultobj = 0;
30723 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30724 long arg2 ;
30725 wxPoint *arg3 = 0 ;
30726 int arg4 ;
30727 long result;
30728 void *argp1 = 0 ;
30729 int res1 = 0 ;
30730 long val2 ;
30731 int ecode2 = 0 ;
30732 wxPoint temp3 ;
30733 int val4 ;
30734 int ecode4 = 0 ;
30735 PyObject * obj0 = 0 ;
30736 PyObject * obj1 = 0 ;
30737 PyObject * obj2 = 0 ;
30738 PyObject * obj3 = 0 ;
30739 char * kwnames[] = {
30740 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30741 };
30742
30743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30745 if (!SWIG_IsOK(res1)) {
30746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30747 }
30748 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30749 ecode2 = SWIG_AsVal_long(obj1, &val2);
30750 if (!SWIG_IsOK(ecode2)) {
30751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30752 }
30753 arg2 = static_cast< long >(val2);
30754 {
30755 arg3 = &temp3;
30756 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30757 }
30758 ecode4 = SWIG_AsVal_int(obj3, &val4);
30759 if (!SWIG_IsOK(ecode4)) {
30760 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30761 }
30762 arg4 = static_cast< int >(val4);
30763 {
30764 PyThreadState* __tstate = wxPyBeginAllowThreads();
30765 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30766 wxPyEndAllowThreads(__tstate);
30767 if (PyErr_Occurred()) SWIG_fail;
30768 }
30769 resultobj = SWIG_From_long(static_cast< long >(result));
30770 return resultobj;
30771 fail:
30772 return NULL;
30773 }
30774
30775
30776 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30777 PyObject *resultobj = 0;
30778 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30779 wxPoint *arg2 = 0 ;
30780 int *arg3 = 0 ;
30781 long result;
30782 void *argp1 = 0 ;
30783 int res1 = 0 ;
30784 wxPoint temp2 ;
30785 int temp3 ;
30786 int res3 = SWIG_TMPOBJ ;
30787 PyObject * obj0 = 0 ;
30788 PyObject * obj1 = 0 ;
30789 char * kwnames[] = {
30790 (char *) "self",(char *) "point", NULL
30791 };
30792
30793 arg3 = &temp3;
30794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30796 if (!SWIG_IsOK(res1)) {
30797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30798 }
30799 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30800 {
30801 arg2 = &temp2;
30802 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30803 }
30804 {
30805 PyThreadState* __tstate = wxPyBeginAllowThreads();
30806 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30807 wxPyEndAllowThreads(__tstate);
30808 if (PyErr_Occurred()) SWIG_fail;
30809 }
30810 resultobj = SWIG_From_long(static_cast< long >(result));
30811 if (SWIG_IsTmpObj(res3)) {
30812 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30813 } else {
30814 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30815 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30816 }
30817 return resultobj;
30818 fail:
30819 return NULL;
30820 }
30821
30822
30823 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30824 PyObject *resultobj = 0;
30825 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30826 wxPoint *arg2 = 0 ;
30827 int *arg3 = 0 ;
30828 long *arg4 = (long *) 0 ;
30829 long result;
30830 void *argp1 = 0 ;
30831 int res1 = 0 ;
30832 wxPoint temp2 ;
30833 int temp3 ;
30834 int res3 = SWIG_TMPOBJ ;
30835 long temp4 ;
30836 int res4 = SWIG_TMPOBJ ;
30837 PyObject * obj0 = 0 ;
30838 PyObject * obj1 = 0 ;
30839 char * kwnames[] = {
30840 (char *) "self",(char *) "point", NULL
30841 };
30842
30843 arg3 = &temp3;
30844 arg4 = &temp4;
30845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
30846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30847 if (!SWIG_IsOK(res1)) {
30848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30849 }
30850 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30851 {
30852 arg2 = &temp2;
30853 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30854 }
30855 {
30856 PyThreadState* __tstate = wxPyBeginAllowThreads();
30857 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
30858 wxPyEndAllowThreads(__tstate);
30859 if (PyErr_Occurred()) SWIG_fail;
30860 }
30861 resultobj = SWIG_From_long(static_cast< long >(result));
30862 if (SWIG_IsTmpObj(res3)) {
30863 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30864 } else {
30865 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30866 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30867 }
30868 if (SWIG_IsTmpObj(res4)) {
30869 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
30870 } else {
30871 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
30873 }
30874 return resultobj;
30875 fail:
30876 return NULL;
30877 }
30878
30879
30880 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30881 PyObject *resultobj = 0;
30882 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30883 wxListItem *arg2 = 0 ;
30884 long result;
30885 void *argp1 = 0 ;
30886 int res1 = 0 ;
30887 void *argp2 = 0 ;
30888 int res2 = 0 ;
30889 PyObject * obj0 = 0 ;
30890 PyObject * obj1 = 0 ;
30891 char * kwnames[] = {
30892 (char *) "self",(char *) "info", NULL
30893 };
30894
30895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30897 if (!SWIG_IsOK(res1)) {
30898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30899 }
30900 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30901 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30902 if (!SWIG_IsOK(res2)) {
30903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30904 }
30905 if (!argp2) {
30906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30907 }
30908 arg2 = reinterpret_cast< wxListItem * >(argp2);
30909 {
30910 PyThreadState* __tstate = wxPyBeginAllowThreads();
30911 result = (long)(arg1)->InsertItem(*arg2);
30912 wxPyEndAllowThreads(__tstate);
30913 if (PyErr_Occurred()) SWIG_fail;
30914 }
30915 resultobj = SWIG_From_long(static_cast< long >(result));
30916 return resultobj;
30917 fail:
30918 return NULL;
30919 }
30920
30921
30922 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30923 PyObject *resultobj = 0;
30924 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30925 long arg2 ;
30926 wxString *arg3 = 0 ;
30927 int arg4 = (int) -1 ;
30928 long result;
30929 void *argp1 = 0 ;
30930 int res1 = 0 ;
30931 long val2 ;
30932 int ecode2 = 0 ;
30933 bool temp3 = false ;
30934 int val4 ;
30935 int ecode4 = 0 ;
30936 PyObject * obj0 = 0 ;
30937 PyObject * obj1 = 0 ;
30938 PyObject * obj2 = 0 ;
30939 PyObject * obj3 = 0 ;
30940 char * kwnames[] = {
30941 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30942 };
30943
30944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_InsertStringItem" "', 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_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30953 }
30954 arg2 = static_cast< long >(val2);
30955 {
30956 arg3 = wxString_in_helper(obj2);
30957 if (arg3 == NULL) SWIG_fail;
30958 temp3 = true;
30959 }
30960 if (obj3) {
30961 ecode4 = SWIG_AsVal_int(obj3, &val4);
30962 if (!SWIG_IsOK(ecode4)) {
30963 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30964 }
30965 arg4 = static_cast< int >(val4);
30966 }
30967 {
30968 PyThreadState* __tstate = wxPyBeginAllowThreads();
30969 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30970 wxPyEndAllowThreads(__tstate);
30971 if (PyErr_Occurred()) SWIG_fail;
30972 }
30973 resultobj = SWIG_From_long(static_cast< long >(result));
30974 {
30975 if (temp3)
30976 delete arg3;
30977 }
30978 return resultobj;
30979 fail:
30980 {
30981 if (temp3)
30982 delete arg3;
30983 }
30984 return NULL;
30985 }
30986
30987
30988 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30989 PyObject *resultobj = 0;
30990 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30991 long arg2 ;
30992 int arg3 ;
30993 long result;
30994 void *argp1 = 0 ;
30995 int res1 = 0 ;
30996 long val2 ;
30997 int ecode2 = 0 ;
30998 int val3 ;
30999 int ecode3 = 0 ;
31000 PyObject * obj0 = 0 ;
31001 PyObject * obj1 = 0 ;
31002 PyObject * obj2 = 0 ;
31003 char * kwnames[] = {
31004 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31005 };
31006
31007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31009 if (!SWIG_IsOK(res1)) {
31010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31011 }
31012 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31013 ecode2 = SWIG_AsVal_long(obj1, &val2);
31014 if (!SWIG_IsOK(ecode2)) {
31015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31016 }
31017 arg2 = static_cast< long >(val2);
31018 ecode3 = SWIG_AsVal_int(obj2, &val3);
31019 if (!SWIG_IsOK(ecode3)) {
31020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31021 }
31022 arg3 = static_cast< int >(val3);
31023 {
31024 PyThreadState* __tstate = wxPyBeginAllowThreads();
31025 result = (long)(arg1)->InsertItem(arg2,arg3);
31026 wxPyEndAllowThreads(__tstate);
31027 if (PyErr_Occurred()) SWIG_fail;
31028 }
31029 resultobj = SWIG_From_long(static_cast< long >(result));
31030 return resultobj;
31031 fail:
31032 return NULL;
31033 }
31034
31035
31036 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31037 PyObject *resultobj = 0;
31038 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31039 long arg2 ;
31040 wxString *arg3 = 0 ;
31041 int arg4 ;
31042 long result;
31043 void *argp1 = 0 ;
31044 int res1 = 0 ;
31045 long val2 ;
31046 int ecode2 = 0 ;
31047 bool temp3 = false ;
31048 int val4 ;
31049 int ecode4 = 0 ;
31050 PyObject * obj0 = 0 ;
31051 PyObject * obj1 = 0 ;
31052 PyObject * obj2 = 0 ;
31053 PyObject * obj3 = 0 ;
31054 char * kwnames[] = {
31055 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31056 };
31057
31058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31060 if (!SWIG_IsOK(res1)) {
31061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31062 }
31063 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31064 ecode2 = SWIG_AsVal_long(obj1, &val2);
31065 if (!SWIG_IsOK(ecode2)) {
31066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31067 }
31068 arg2 = static_cast< long >(val2);
31069 {
31070 arg3 = wxString_in_helper(obj2);
31071 if (arg3 == NULL) SWIG_fail;
31072 temp3 = true;
31073 }
31074 ecode4 = SWIG_AsVal_int(obj3, &val4);
31075 if (!SWIG_IsOK(ecode4)) {
31076 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31077 }
31078 arg4 = static_cast< int >(val4);
31079 {
31080 PyThreadState* __tstate = wxPyBeginAllowThreads();
31081 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31082 wxPyEndAllowThreads(__tstate);
31083 if (PyErr_Occurred()) SWIG_fail;
31084 }
31085 resultobj = SWIG_From_long(static_cast< long >(result));
31086 {
31087 if (temp3)
31088 delete arg3;
31089 }
31090 return resultobj;
31091 fail:
31092 {
31093 if (temp3)
31094 delete arg3;
31095 }
31096 return NULL;
31097 }
31098
31099
31100 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31101 PyObject *resultobj = 0;
31102 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31103 long arg2 ;
31104 wxListItem *arg3 = 0 ;
31105 long result;
31106 void *argp1 = 0 ;
31107 int res1 = 0 ;
31108 long val2 ;
31109 int ecode2 = 0 ;
31110 void *argp3 = 0 ;
31111 int res3 = 0 ;
31112 PyObject * obj0 = 0 ;
31113 PyObject * obj1 = 0 ;
31114 PyObject * obj2 = 0 ;
31115 char * kwnames[] = {
31116 (char *) "self",(char *) "col",(char *) "info", NULL
31117 };
31118
31119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31121 if (!SWIG_IsOK(res1)) {
31122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31123 }
31124 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31125 ecode2 = SWIG_AsVal_long(obj1, &val2);
31126 if (!SWIG_IsOK(ecode2)) {
31127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31128 }
31129 arg2 = static_cast< long >(val2);
31130 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31131 if (!SWIG_IsOK(res3)) {
31132 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31133 }
31134 if (!argp3) {
31135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31136 }
31137 arg3 = reinterpret_cast< wxListItem * >(argp3);
31138 {
31139 PyThreadState* __tstate = wxPyBeginAllowThreads();
31140 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31141 wxPyEndAllowThreads(__tstate);
31142 if (PyErr_Occurred()) SWIG_fail;
31143 }
31144 resultobj = SWIG_From_long(static_cast< long >(result));
31145 return resultobj;
31146 fail:
31147 return NULL;
31148 }
31149
31150
31151 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31152 PyObject *resultobj = 0;
31153 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31154 long arg2 ;
31155 wxString *arg3 = 0 ;
31156 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31157 int arg5 = (int) -1 ;
31158 long result;
31159 void *argp1 = 0 ;
31160 int res1 = 0 ;
31161 long val2 ;
31162 int ecode2 = 0 ;
31163 bool temp3 = false ;
31164 int val4 ;
31165 int ecode4 = 0 ;
31166 int val5 ;
31167 int ecode5 = 0 ;
31168 PyObject * obj0 = 0 ;
31169 PyObject * obj1 = 0 ;
31170 PyObject * obj2 = 0 ;
31171 PyObject * obj3 = 0 ;
31172 PyObject * obj4 = 0 ;
31173 char * kwnames[] = {
31174 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31175 };
31176
31177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31179 if (!SWIG_IsOK(res1)) {
31180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31181 }
31182 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31183 ecode2 = SWIG_AsVal_long(obj1, &val2);
31184 if (!SWIG_IsOK(ecode2)) {
31185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31186 }
31187 arg2 = static_cast< long >(val2);
31188 {
31189 arg3 = wxString_in_helper(obj2);
31190 if (arg3 == NULL) SWIG_fail;
31191 temp3 = true;
31192 }
31193 if (obj3) {
31194 ecode4 = SWIG_AsVal_int(obj3, &val4);
31195 if (!SWIG_IsOK(ecode4)) {
31196 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31197 }
31198 arg4 = static_cast< int >(val4);
31199 }
31200 if (obj4) {
31201 ecode5 = SWIG_AsVal_int(obj4, &val5);
31202 if (!SWIG_IsOK(ecode5)) {
31203 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31204 }
31205 arg5 = static_cast< int >(val5);
31206 }
31207 {
31208 PyThreadState* __tstate = wxPyBeginAllowThreads();
31209 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31210 wxPyEndAllowThreads(__tstate);
31211 if (PyErr_Occurred()) SWIG_fail;
31212 }
31213 resultobj = SWIG_From_long(static_cast< long >(result));
31214 {
31215 if (temp3)
31216 delete arg3;
31217 }
31218 return resultobj;
31219 fail:
31220 {
31221 if (temp3)
31222 delete arg3;
31223 }
31224 return NULL;
31225 }
31226
31227
31228 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31229 PyObject *resultobj = 0;
31230 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31231 long arg2 ;
31232 void *argp1 = 0 ;
31233 int res1 = 0 ;
31234 long val2 ;
31235 int ecode2 = 0 ;
31236 PyObject * obj0 = 0 ;
31237 PyObject * obj1 = 0 ;
31238 char * kwnames[] = {
31239 (char *) "self",(char *) "count", NULL
31240 };
31241
31242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31244 if (!SWIG_IsOK(res1)) {
31245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31246 }
31247 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31248 ecode2 = SWIG_AsVal_long(obj1, &val2);
31249 if (!SWIG_IsOK(ecode2)) {
31250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31251 }
31252 arg2 = static_cast< long >(val2);
31253 {
31254 PyThreadState* __tstate = wxPyBeginAllowThreads();
31255 (arg1)->SetItemCount(arg2);
31256 wxPyEndAllowThreads(__tstate);
31257 if (PyErr_Occurred()) SWIG_fail;
31258 }
31259 resultobj = SWIG_Py_Void();
31260 return resultobj;
31261 fail:
31262 return NULL;
31263 }
31264
31265
31266 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31267 PyObject *resultobj = 0;
31268 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31269 int arg2 ;
31270 int arg3 ;
31271 bool result;
31272 void *argp1 = 0 ;
31273 int res1 = 0 ;
31274 int val2 ;
31275 int ecode2 = 0 ;
31276 int val3 ;
31277 int ecode3 = 0 ;
31278 PyObject * obj0 = 0 ;
31279 PyObject * obj1 = 0 ;
31280 PyObject * obj2 = 0 ;
31281 char * kwnames[] = {
31282 (char *) "self",(char *) "dx",(char *) "dy", NULL
31283 };
31284
31285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31287 if (!SWIG_IsOK(res1)) {
31288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31289 }
31290 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31291 ecode2 = SWIG_AsVal_int(obj1, &val2);
31292 if (!SWIG_IsOK(ecode2)) {
31293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31294 }
31295 arg2 = static_cast< int >(val2);
31296 ecode3 = SWIG_AsVal_int(obj2, &val3);
31297 if (!SWIG_IsOK(ecode3)) {
31298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31299 }
31300 arg3 = static_cast< int >(val3);
31301 {
31302 PyThreadState* __tstate = wxPyBeginAllowThreads();
31303 result = (bool)(arg1)->ScrollList(arg2,arg3);
31304 wxPyEndAllowThreads(__tstate);
31305 if (PyErr_Occurred()) SWIG_fail;
31306 }
31307 {
31308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31309 }
31310 return resultobj;
31311 fail:
31312 return NULL;
31313 }
31314
31315
31316 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31317 PyObject *resultobj = 0;
31318 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31319 long arg2 ;
31320 wxColour *arg3 = 0 ;
31321 void *argp1 = 0 ;
31322 int res1 = 0 ;
31323 long val2 ;
31324 int ecode2 = 0 ;
31325 wxColour temp3 ;
31326 PyObject * obj0 = 0 ;
31327 PyObject * obj1 = 0 ;
31328 PyObject * obj2 = 0 ;
31329 char * kwnames[] = {
31330 (char *) "self",(char *) "item",(char *) "col", NULL
31331 };
31332
31333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31335 if (!SWIG_IsOK(res1)) {
31336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31337 }
31338 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31339 ecode2 = SWIG_AsVal_long(obj1, &val2);
31340 if (!SWIG_IsOK(ecode2)) {
31341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31342 }
31343 arg2 = static_cast< long >(val2);
31344 {
31345 arg3 = &temp3;
31346 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31347 }
31348 {
31349 PyThreadState* __tstate = wxPyBeginAllowThreads();
31350 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31351 wxPyEndAllowThreads(__tstate);
31352 if (PyErr_Occurred()) SWIG_fail;
31353 }
31354 resultobj = SWIG_Py_Void();
31355 return resultobj;
31356 fail:
31357 return NULL;
31358 }
31359
31360
31361 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31362 PyObject *resultobj = 0;
31363 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31364 long arg2 ;
31365 wxColour result;
31366 void *argp1 = 0 ;
31367 int res1 = 0 ;
31368 long val2 ;
31369 int ecode2 = 0 ;
31370 PyObject * obj0 = 0 ;
31371 PyObject * obj1 = 0 ;
31372 char * kwnames[] = {
31373 (char *) "self",(char *) "item", NULL
31374 };
31375
31376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31378 if (!SWIG_IsOK(res1)) {
31379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31380 }
31381 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31382 ecode2 = SWIG_AsVal_long(obj1, &val2);
31383 if (!SWIG_IsOK(ecode2)) {
31384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31385 }
31386 arg2 = static_cast< long >(val2);
31387 {
31388 PyThreadState* __tstate = wxPyBeginAllowThreads();
31389 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31390 wxPyEndAllowThreads(__tstate);
31391 if (PyErr_Occurred()) SWIG_fail;
31392 }
31393 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31394 return resultobj;
31395 fail:
31396 return NULL;
31397 }
31398
31399
31400 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31401 PyObject *resultobj = 0;
31402 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31403 long arg2 ;
31404 wxColour *arg3 = 0 ;
31405 void *argp1 = 0 ;
31406 int res1 = 0 ;
31407 long val2 ;
31408 int ecode2 = 0 ;
31409 wxColour temp3 ;
31410 PyObject * obj0 = 0 ;
31411 PyObject * obj1 = 0 ;
31412 PyObject * obj2 = 0 ;
31413 char * kwnames[] = {
31414 (char *) "self",(char *) "item",(char *) "col", NULL
31415 };
31416
31417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31419 if (!SWIG_IsOK(res1)) {
31420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31421 }
31422 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31423 ecode2 = SWIG_AsVal_long(obj1, &val2);
31424 if (!SWIG_IsOK(ecode2)) {
31425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31426 }
31427 arg2 = static_cast< long >(val2);
31428 {
31429 arg3 = &temp3;
31430 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31431 }
31432 {
31433 PyThreadState* __tstate = wxPyBeginAllowThreads();
31434 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31435 wxPyEndAllowThreads(__tstate);
31436 if (PyErr_Occurred()) SWIG_fail;
31437 }
31438 resultobj = SWIG_Py_Void();
31439 return resultobj;
31440 fail:
31441 return NULL;
31442 }
31443
31444
31445 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31446 PyObject *resultobj = 0;
31447 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31448 long arg2 ;
31449 wxColour result;
31450 void *argp1 = 0 ;
31451 int res1 = 0 ;
31452 long val2 ;
31453 int ecode2 = 0 ;
31454 PyObject * obj0 = 0 ;
31455 PyObject * obj1 = 0 ;
31456 char * kwnames[] = {
31457 (char *) "self",(char *) "item", NULL
31458 };
31459
31460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31462 if (!SWIG_IsOK(res1)) {
31463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31464 }
31465 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31466 ecode2 = SWIG_AsVal_long(obj1, &val2);
31467 if (!SWIG_IsOK(ecode2)) {
31468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31469 }
31470 arg2 = static_cast< long >(val2);
31471 {
31472 PyThreadState* __tstate = wxPyBeginAllowThreads();
31473 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31474 wxPyEndAllowThreads(__tstate);
31475 if (PyErr_Occurred()) SWIG_fail;
31476 }
31477 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31478 return resultobj;
31479 fail:
31480 return NULL;
31481 }
31482
31483
31484 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31485 PyObject *resultobj = 0;
31486 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31487 long arg2 ;
31488 wxFont *arg3 = 0 ;
31489 void *argp1 = 0 ;
31490 int res1 = 0 ;
31491 long val2 ;
31492 int ecode2 = 0 ;
31493 void *argp3 = 0 ;
31494 int res3 = 0 ;
31495 PyObject * obj0 = 0 ;
31496 PyObject * obj1 = 0 ;
31497 PyObject * obj2 = 0 ;
31498 char * kwnames[] = {
31499 (char *) "self",(char *) "item",(char *) "f", NULL
31500 };
31501
31502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31504 if (!SWIG_IsOK(res1)) {
31505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31506 }
31507 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31508 ecode2 = SWIG_AsVal_long(obj1, &val2);
31509 if (!SWIG_IsOK(ecode2)) {
31510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31511 }
31512 arg2 = static_cast< long >(val2);
31513 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31514 if (!SWIG_IsOK(res3)) {
31515 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31516 }
31517 if (!argp3) {
31518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31519 }
31520 arg3 = reinterpret_cast< wxFont * >(argp3);
31521 {
31522 PyThreadState* __tstate = wxPyBeginAllowThreads();
31523 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31524 wxPyEndAllowThreads(__tstate);
31525 if (PyErr_Occurred()) SWIG_fail;
31526 }
31527 resultobj = SWIG_Py_Void();
31528 return resultobj;
31529 fail:
31530 return NULL;
31531 }
31532
31533
31534 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31535 PyObject *resultobj = 0;
31536 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31537 long arg2 ;
31538 wxFont result;
31539 void *argp1 = 0 ;
31540 int res1 = 0 ;
31541 long val2 ;
31542 int ecode2 = 0 ;
31543 PyObject * obj0 = 0 ;
31544 PyObject * obj1 = 0 ;
31545 char * kwnames[] = {
31546 (char *) "self",(char *) "item", NULL
31547 };
31548
31549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31551 if (!SWIG_IsOK(res1)) {
31552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31553 }
31554 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31555 ecode2 = SWIG_AsVal_long(obj1, &val2);
31556 if (!SWIG_IsOK(ecode2)) {
31557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31558 }
31559 arg2 = static_cast< long >(val2);
31560 {
31561 PyThreadState* __tstate = wxPyBeginAllowThreads();
31562 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31563 wxPyEndAllowThreads(__tstate);
31564 if (PyErr_Occurred()) SWIG_fail;
31565 }
31566 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31567 return resultobj;
31568 fail:
31569 return NULL;
31570 }
31571
31572
31573 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31574 PyObject *resultobj = 0;
31575 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31576 PyObject *arg2 = (PyObject *) 0 ;
31577 bool result;
31578 void *argp1 = 0 ;
31579 int res1 = 0 ;
31580 PyObject * obj0 = 0 ;
31581 PyObject * obj1 = 0 ;
31582 char * kwnames[] = {
31583 (char *) "self",(char *) "func", NULL
31584 };
31585
31586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31588 if (!SWIG_IsOK(res1)) {
31589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31590 }
31591 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31592 arg2 = obj1;
31593 {
31594 PyThreadState* __tstate = wxPyBeginAllowThreads();
31595 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31596 wxPyEndAllowThreads(__tstate);
31597 if (PyErr_Occurred()) SWIG_fail;
31598 }
31599 {
31600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31601 }
31602 return resultobj;
31603 fail:
31604 return NULL;
31605 }
31606
31607
31608 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31609 PyObject *resultobj = 0;
31610 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31611 wxWindow *result = 0 ;
31612 void *argp1 = 0 ;
31613 int res1 = 0 ;
31614 PyObject *swig_obj[1] ;
31615
31616 if (!args) SWIG_fail;
31617 swig_obj[0] = args;
31618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31619 if (!SWIG_IsOK(res1)) {
31620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31621 }
31622 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31623 {
31624 PyThreadState* __tstate = wxPyBeginAllowThreads();
31625 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31626 wxPyEndAllowThreads(__tstate);
31627 if (PyErr_Occurred()) SWIG_fail;
31628 }
31629 {
31630 resultobj = wxPyMake_wxObject(result, 0);
31631 }
31632 return resultobj;
31633 fail:
31634 return NULL;
31635 }
31636
31637
31638 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31639 PyObject *resultobj = 0;
31640 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31641 SwigValueWrapper<wxVisualAttributes > result;
31642 int val1 ;
31643 int ecode1 = 0 ;
31644 PyObject * obj0 = 0 ;
31645 char * kwnames[] = {
31646 (char *) "variant", NULL
31647 };
31648
31649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31650 if (obj0) {
31651 ecode1 = SWIG_AsVal_int(obj0, &val1);
31652 if (!SWIG_IsOK(ecode1)) {
31653 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31654 }
31655 arg1 = static_cast< wxWindowVariant >(val1);
31656 }
31657 {
31658 if (!wxPyCheckForApp()) SWIG_fail;
31659 PyThreadState* __tstate = wxPyBeginAllowThreads();
31660 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31661 wxPyEndAllowThreads(__tstate);
31662 if (PyErr_Occurred()) SWIG_fail;
31663 }
31664 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31665 return resultobj;
31666 fail:
31667 return NULL;
31668 }
31669
31670
31671 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31672 PyObject *obj;
31673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31674 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31675 return SWIG_Py_Void();
31676 }
31677
31678 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31679 return SWIG_Python_InitShadowInstance(args);
31680 }
31681
31682 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31683 PyObject *resultobj = 0;
31684 wxWindow *arg1 = (wxWindow *) 0 ;
31685 int arg2 = (int) -1 ;
31686 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31687 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31688 wxSize const &arg4_defvalue = wxDefaultSize ;
31689 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31690 long arg5 = (long) wxLC_REPORT ;
31691 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31692 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31693 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31694 wxString *arg7 = (wxString *) &arg7_defvalue ;
31695 wxListView *result = 0 ;
31696 void *argp1 = 0 ;
31697 int res1 = 0 ;
31698 int val2 ;
31699 int ecode2 = 0 ;
31700 wxPoint temp3 ;
31701 wxSize temp4 ;
31702 long val5 ;
31703 int ecode5 = 0 ;
31704 void *argp6 = 0 ;
31705 int res6 = 0 ;
31706 bool temp7 = false ;
31707 PyObject * obj0 = 0 ;
31708 PyObject * obj1 = 0 ;
31709 PyObject * obj2 = 0 ;
31710 PyObject * obj3 = 0 ;
31711 PyObject * obj4 = 0 ;
31712 PyObject * obj5 = 0 ;
31713 PyObject * obj6 = 0 ;
31714 char * kwnames[] = {
31715 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31716 };
31717
31718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31720 if (!SWIG_IsOK(res1)) {
31721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31722 }
31723 arg1 = reinterpret_cast< wxWindow * >(argp1);
31724 if (obj1) {
31725 ecode2 = SWIG_AsVal_int(obj1, &val2);
31726 if (!SWIG_IsOK(ecode2)) {
31727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31728 }
31729 arg2 = static_cast< int >(val2);
31730 }
31731 if (obj2) {
31732 {
31733 arg3 = &temp3;
31734 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31735 }
31736 }
31737 if (obj3) {
31738 {
31739 arg4 = &temp4;
31740 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31741 }
31742 }
31743 if (obj4) {
31744 ecode5 = SWIG_AsVal_long(obj4, &val5);
31745 if (!SWIG_IsOK(ecode5)) {
31746 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31747 }
31748 arg5 = static_cast< long >(val5);
31749 }
31750 if (obj5) {
31751 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31752 if (!SWIG_IsOK(res6)) {
31753 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31754 }
31755 if (!argp6) {
31756 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31757 }
31758 arg6 = reinterpret_cast< wxValidator * >(argp6);
31759 }
31760 if (obj6) {
31761 {
31762 arg7 = wxString_in_helper(obj6);
31763 if (arg7 == NULL) SWIG_fail;
31764 temp7 = true;
31765 }
31766 }
31767 {
31768 if (!wxPyCheckForApp()) SWIG_fail;
31769 PyThreadState* __tstate = wxPyBeginAllowThreads();
31770 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31771 wxPyEndAllowThreads(__tstate);
31772 if (PyErr_Occurred()) SWIG_fail;
31773 }
31774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31775 {
31776 if (temp7)
31777 delete arg7;
31778 }
31779 return resultobj;
31780 fail:
31781 {
31782 if (temp7)
31783 delete arg7;
31784 }
31785 return NULL;
31786 }
31787
31788
31789 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31790 PyObject *resultobj = 0;
31791 wxListView *result = 0 ;
31792
31793 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31794 {
31795 if (!wxPyCheckForApp()) SWIG_fail;
31796 PyThreadState* __tstate = wxPyBeginAllowThreads();
31797 result = (wxListView *)new wxListView();
31798 wxPyEndAllowThreads(__tstate);
31799 if (PyErr_Occurred()) SWIG_fail;
31800 }
31801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31802 return resultobj;
31803 fail:
31804 return NULL;
31805 }
31806
31807
31808 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31809 PyObject *resultobj = 0;
31810 wxListView *arg1 = (wxListView *) 0 ;
31811 wxWindow *arg2 = (wxWindow *) 0 ;
31812 int arg3 = (int) -1 ;
31813 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31814 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31815 wxSize const &arg5_defvalue = wxDefaultSize ;
31816 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31817 long arg6 = (long) wxLC_REPORT ;
31818 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31819 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31820 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31821 wxString *arg8 = (wxString *) &arg8_defvalue ;
31822 bool result;
31823 void *argp1 = 0 ;
31824 int res1 = 0 ;
31825 void *argp2 = 0 ;
31826 int res2 = 0 ;
31827 int val3 ;
31828 int ecode3 = 0 ;
31829 wxPoint temp4 ;
31830 wxSize temp5 ;
31831 long val6 ;
31832 int ecode6 = 0 ;
31833 void *argp7 = 0 ;
31834 int res7 = 0 ;
31835 bool temp8 = false ;
31836 PyObject * obj0 = 0 ;
31837 PyObject * obj1 = 0 ;
31838 PyObject * obj2 = 0 ;
31839 PyObject * obj3 = 0 ;
31840 PyObject * obj4 = 0 ;
31841 PyObject * obj5 = 0 ;
31842 PyObject * obj6 = 0 ;
31843 PyObject * obj7 = 0 ;
31844 char * kwnames[] = {
31845 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31846 };
31847
31848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31850 if (!SWIG_IsOK(res1)) {
31851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31852 }
31853 arg1 = reinterpret_cast< wxListView * >(argp1);
31854 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31855 if (!SWIG_IsOK(res2)) {
31856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31857 }
31858 arg2 = reinterpret_cast< wxWindow * >(argp2);
31859 if (obj2) {
31860 ecode3 = SWIG_AsVal_int(obj2, &val3);
31861 if (!SWIG_IsOK(ecode3)) {
31862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31863 }
31864 arg3 = static_cast< int >(val3);
31865 }
31866 if (obj3) {
31867 {
31868 arg4 = &temp4;
31869 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31870 }
31871 }
31872 if (obj4) {
31873 {
31874 arg5 = &temp5;
31875 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31876 }
31877 }
31878 if (obj5) {
31879 ecode6 = SWIG_AsVal_long(obj5, &val6);
31880 if (!SWIG_IsOK(ecode6)) {
31881 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31882 }
31883 arg6 = static_cast< long >(val6);
31884 }
31885 if (obj6) {
31886 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31887 if (!SWIG_IsOK(res7)) {
31888 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31889 }
31890 if (!argp7) {
31891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31892 }
31893 arg7 = reinterpret_cast< wxValidator * >(argp7);
31894 }
31895 if (obj7) {
31896 {
31897 arg8 = wxString_in_helper(obj7);
31898 if (arg8 == NULL) SWIG_fail;
31899 temp8 = true;
31900 }
31901 }
31902 {
31903 PyThreadState* __tstate = wxPyBeginAllowThreads();
31904 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31905 wxPyEndAllowThreads(__tstate);
31906 if (PyErr_Occurred()) SWIG_fail;
31907 }
31908 {
31909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31910 }
31911 {
31912 if (temp8)
31913 delete arg8;
31914 }
31915 return resultobj;
31916 fail:
31917 {
31918 if (temp8)
31919 delete arg8;
31920 }
31921 return NULL;
31922 }
31923
31924
31925 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31926 PyObject *resultobj = 0;
31927 wxListView *arg1 = (wxListView *) 0 ;
31928 long arg2 ;
31929 bool arg3 = (bool) true ;
31930 void *argp1 = 0 ;
31931 int res1 = 0 ;
31932 long val2 ;
31933 int ecode2 = 0 ;
31934 bool val3 ;
31935 int ecode3 = 0 ;
31936 PyObject * obj0 = 0 ;
31937 PyObject * obj1 = 0 ;
31938 PyObject * obj2 = 0 ;
31939 char * kwnames[] = {
31940 (char *) "self",(char *) "n",(char *) "on", NULL
31941 };
31942
31943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31945 if (!SWIG_IsOK(res1)) {
31946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31947 }
31948 arg1 = reinterpret_cast< wxListView * >(argp1);
31949 ecode2 = SWIG_AsVal_long(obj1, &val2);
31950 if (!SWIG_IsOK(ecode2)) {
31951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31952 }
31953 arg2 = static_cast< long >(val2);
31954 if (obj2) {
31955 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31956 if (!SWIG_IsOK(ecode3)) {
31957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31958 }
31959 arg3 = static_cast< bool >(val3);
31960 }
31961 {
31962 PyThreadState* __tstate = wxPyBeginAllowThreads();
31963 (arg1)->Select(arg2,arg3);
31964 wxPyEndAllowThreads(__tstate);
31965 if (PyErr_Occurred()) SWIG_fail;
31966 }
31967 resultobj = SWIG_Py_Void();
31968 return resultobj;
31969 fail:
31970 return NULL;
31971 }
31972
31973
31974 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31975 PyObject *resultobj = 0;
31976 wxListView *arg1 = (wxListView *) 0 ;
31977 long arg2 ;
31978 void *argp1 = 0 ;
31979 int res1 = 0 ;
31980 long val2 ;
31981 int ecode2 = 0 ;
31982 PyObject * obj0 = 0 ;
31983 PyObject * obj1 = 0 ;
31984 char * kwnames[] = {
31985 (char *) "self",(char *) "index", NULL
31986 };
31987
31988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31990 if (!SWIG_IsOK(res1)) {
31991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31992 }
31993 arg1 = reinterpret_cast< wxListView * >(argp1);
31994 ecode2 = SWIG_AsVal_long(obj1, &val2);
31995 if (!SWIG_IsOK(ecode2)) {
31996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
31997 }
31998 arg2 = static_cast< long >(val2);
31999 {
32000 PyThreadState* __tstate = wxPyBeginAllowThreads();
32001 (arg1)->Focus(arg2);
32002 wxPyEndAllowThreads(__tstate);
32003 if (PyErr_Occurred()) SWIG_fail;
32004 }
32005 resultobj = SWIG_Py_Void();
32006 return resultobj;
32007 fail:
32008 return NULL;
32009 }
32010
32011
32012 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32013 PyObject *resultobj = 0;
32014 wxListView *arg1 = (wxListView *) 0 ;
32015 long result;
32016 void *argp1 = 0 ;
32017 int res1 = 0 ;
32018 PyObject *swig_obj[1] ;
32019
32020 if (!args) SWIG_fail;
32021 swig_obj[0] = args;
32022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32023 if (!SWIG_IsOK(res1)) {
32024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32025 }
32026 arg1 = reinterpret_cast< wxListView * >(argp1);
32027 {
32028 PyThreadState* __tstate = wxPyBeginAllowThreads();
32029 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32030 wxPyEndAllowThreads(__tstate);
32031 if (PyErr_Occurred()) SWIG_fail;
32032 }
32033 resultobj = SWIG_From_long(static_cast< long >(result));
32034 return resultobj;
32035 fail:
32036 return NULL;
32037 }
32038
32039
32040 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32041 PyObject *resultobj = 0;
32042 wxListView *arg1 = (wxListView *) 0 ;
32043 long arg2 ;
32044 long result;
32045 void *argp1 = 0 ;
32046 int res1 = 0 ;
32047 long val2 ;
32048 int ecode2 = 0 ;
32049 PyObject * obj0 = 0 ;
32050 PyObject * obj1 = 0 ;
32051 char * kwnames[] = {
32052 (char *) "self",(char *) "item", NULL
32053 };
32054
32055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32057 if (!SWIG_IsOK(res1)) {
32058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32059 }
32060 arg1 = reinterpret_cast< wxListView * >(argp1);
32061 ecode2 = SWIG_AsVal_long(obj1, &val2);
32062 if (!SWIG_IsOK(ecode2)) {
32063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32064 }
32065 arg2 = static_cast< long >(val2);
32066 {
32067 PyThreadState* __tstate = wxPyBeginAllowThreads();
32068 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32069 wxPyEndAllowThreads(__tstate);
32070 if (PyErr_Occurred()) SWIG_fail;
32071 }
32072 resultobj = SWIG_From_long(static_cast< long >(result));
32073 return resultobj;
32074 fail:
32075 return NULL;
32076 }
32077
32078
32079 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32080 PyObject *resultobj = 0;
32081 wxListView *arg1 = (wxListView *) 0 ;
32082 long result;
32083 void *argp1 = 0 ;
32084 int res1 = 0 ;
32085 PyObject *swig_obj[1] ;
32086
32087 if (!args) SWIG_fail;
32088 swig_obj[0] = args;
32089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32090 if (!SWIG_IsOK(res1)) {
32091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32092 }
32093 arg1 = reinterpret_cast< wxListView * >(argp1);
32094 {
32095 PyThreadState* __tstate = wxPyBeginAllowThreads();
32096 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32097 wxPyEndAllowThreads(__tstate);
32098 if (PyErr_Occurred()) SWIG_fail;
32099 }
32100 resultobj = SWIG_From_long(static_cast< long >(result));
32101 return resultobj;
32102 fail:
32103 return NULL;
32104 }
32105
32106
32107 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32108 PyObject *resultobj = 0;
32109 wxListView *arg1 = (wxListView *) 0 ;
32110 long arg2 ;
32111 bool result;
32112 void *argp1 = 0 ;
32113 int res1 = 0 ;
32114 long val2 ;
32115 int ecode2 = 0 ;
32116 PyObject * obj0 = 0 ;
32117 PyObject * obj1 = 0 ;
32118 char * kwnames[] = {
32119 (char *) "self",(char *) "index", NULL
32120 };
32121
32122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32124 if (!SWIG_IsOK(res1)) {
32125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32126 }
32127 arg1 = reinterpret_cast< wxListView * >(argp1);
32128 ecode2 = SWIG_AsVal_long(obj1, &val2);
32129 if (!SWIG_IsOK(ecode2)) {
32130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32131 }
32132 arg2 = static_cast< long >(val2);
32133 {
32134 PyThreadState* __tstate = wxPyBeginAllowThreads();
32135 result = (bool)(arg1)->IsSelected(arg2);
32136 wxPyEndAllowThreads(__tstate);
32137 if (PyErr_Occurred()) SWIG_fail;
32138 }
32139 {
32140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32141 }
32142 return resultobj;
32143 fail:
32144 return NULL;
32145 }
32146
32147
32148 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32149 PyObject *resultobj = 0;
32150 wxListView *arg1 = (wxListView *) 0 ;
32151 int arg2 ;
32152 int arg3 ;
32153 void *argp1 = 0 ;
32154 int res1 = 0 ;
32155 int val2 ;
32156 int ecode2 = 0 ;
32157 int val3 ;
32158 int ecode3 = 0 ;
32159 PyObject * obj0 = 0 ;
32160 PyObject * obj1 = 0 ;
32161 PyObject * obj2 = 0 ;
32162 char * kwnames[] = {
32163 (char *) "self",(char *) "col",(char *) "image", NULL
32164 };
32165
32166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32168 if (!SWIG_IsOK(res1)) {
32169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32170 }
32171 arg1 = reinterpret_cast< wxListView * >(argp1);
32172 ecode2 = SWIG_AsVal_int(obj1, &val2);
32173 if (!SWIG_IsOK(ecode2)) {
32174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32175 }
32176 arg2 = static_cast< int >(val2);
32177 ecode3 = SWIG_AsVal_int(obj2, &val3);
32178 if (!SWIG_IsOK(ecode3)) {
32179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32180 }
32181 arg3 = static_cast< int >(val3);
32182 {
32183 PyThreadState* __tstate = wxPyBeginAllowThreads();
32184 (arg1)->SetColumnImage(arg2,arg3);
32185 wxPyEndAllowThreads(__tstate);
32186 if (PyErr_Occurred()) SWIG_fail;
32187 }
32188 resultobj = SWIG_Py_Void();
32189 return resultobj;
32190 fail:
32191 return NULL;
32192 }
32193
32194
32195 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32196 PyObject *resultobj = 0;
32197 wxListView *arg1 = (wxListView *) 0 ;
32198 int arg2 ;
32199 void *argp1 = 0 ;
32200 int res1 = 0 ;
32201 int val2 ;
32202 int ecode2 = 0 ;
32203 PyObject * obj0 = 0 ;
32204 PyObject * obj1 = 0 ;
32205 char * kwnames[] = {
32206 (char *) "self",(char *) "col", NULL
32207 };
32208
32209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32211 if (!SWIG_IsOK(res1)) {
32212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32213 }
32214 arg1 = reinterpret_cast< wxListView * >(argp1);
32215 ecode2 = SWIG_AsVal_int(obj1, &val2);
32216 if (!SWIG_IsOK(ecode2)) {
32217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32218 }
32219 arg2 = static_cast< int >(val2);
32220 {
32221 PyThreadState* __tstate = wxPyBeginAllowThreads();
32222 (arg1)->ClearColumnImage(arg2);
32223 wxPyEndAllowThreads(__tstate);
32224 if (PyErr_Occurred()) SWIG_fail;
32225 }
32226 resultobj = SWIG_Py_Void();
32227 return resultobj;
32228 fail:
32229 return NULL;
32230 }
32231
32232
32233 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32234 PyObject *obj;
32235 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32236 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32237 return SWIG_Py_Void();
32238 }
32239
32240 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32241 return SWIG_Python_InitShadowInstance(args);
32242 }
32243
32244 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32245 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32246 return 1;
32247 }
32248
32249
32250 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32251 PyObject *pyobj = 0;
32252
32253 {
32254 #if wxUSE_UNICODE
32255 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32256 #else
32257 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32258 #endif
32259 }
32260 return pyobj;
32261 }
32262
32263
32264 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32265 PyObject *resultobj = 0;
32266 wxTreeItemId *result = 0 ;
32267
32268 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32269 {
32270 PyThreadState* __tstate = wxPyBeginAllowThreads();
32271 result = (wxTreeItemId *)new wxTreeItemId();
32272 wxPyEndAllowThreads(__tstate);
32273 if (PyErr_Occurred()) SWIG_fail;
32274 }
32275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32276 return resultobj;
32277 fail:
32278 return NULL;
32279 }
32280
32281
32282 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32283 PyObject *resultobj = 0;
32284 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32285 void *argp1 = 0 ;
32286 int res1 = 0 ;
32287 PyObject *swig_obj[1] ;
32288
32289 if (!args) SWIG_fail;
32290 swig_obj[0] = args;
32291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32292 if (!SWIG_IsOK(res1)) {
32293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32294 }
32295 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32296 {
32297 PyThreadState* __tstate = wxPyBeginAllowThreads();
32298 delete arg1;
32299
32300 wxPyEndAllowThreads(__tstate);
32301 if (PyErr_Occurred()) SWIG_fail;
32302 }
32303 resultobj = SWIG_Py_Void();
32304 return resultobj;
32305 fail:
32306 return NULL;
32307 }
32308
32309
32310 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32311 PyObject *resultobj = 0;
32312 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32313 bool result;
32314 void *argp1 = 0 ;
32315 int res1 = 0 ;
32316 PyObject *swig_obj[1] ;
32317
32318 if (!args) SWIG_fail;
32319 swig_obj[0] = args;
32320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32321 if (!SWIG_IsOK(res1)) {
32322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32323 }
32324 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32325 {
32326 PyThreadState* __tstate = wxPyBeginAllowThreads();
32327 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32328 wxPyEndAllowThreads(__tstate);
32329 if (PyErr_Occurred()) SWIG_fail;
32330 }
32331 {
32332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32333 }
32334 return resultobj;
32335 fail:
32336 return NULL;
32337 }
32338
32339
32340 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32341 PyObject *resultobj = 0;
32342 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32343 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32344 bool result;
32345 void *argp1 = 0 ;
32346 int res1 = 0 ;
32347 void *argp2 = 0 ;
32348 int res2 = 0 ;
32349 PyObject * obj0 = 0 ;
32350 PyObject * obj1 = 0 ;
32351 char * kwnames[] = {
32352 (char *) "self",(char *) "other", NULL
32353 };
32354
32355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32357 if (!SWIG_IsOK(res1)) {
32358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32359 }
32360 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32361 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32362 if (!SWIG_IsOK(res2)) {
32363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32364 }
32365 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32366 {
32367 PyThreadState* __tstate = wxPyBeginAllowThreads();
32368 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32369 wxPyEndAllowThreads(__tstate);
32370 if (PyErr_Occurred()) SWIG_fail;
32371 }
32372 {
32373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32374 }
32375 return resultobj;
32376 fail:
32377 return NULL;
32378 }
32379
32380
32381 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32382 PyObject *resultobj = 0;
32383 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32384 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32385 bool result;
32386 void *argp1 = 0 ;
32387 int res1 = 0 ;
32388 void *argp2 = 0 ;
32389 int res2 = 0 ;
32390 PyObject * obj0 = 0 ;
32391 PyObject * obj1 = 0 ;
32392 char * kwnames[] = {
32393 (char *) "self",(char *) "other", NULL
32394 };
32395
32396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32398 if (!SWIG_IsOK(res1)) {
32399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32400 }
32401 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32402 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32403 if (!SWIG_IsOK(res2)) {
32404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32405 }
32406 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32407 {
32408 PyThreadState* __tstate = wxPyBeginAllowThreads();
32409 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32410 wxPyEndAllowThreads(__tstate);
32411 if (PyErr_Occurred()) SWIG_fail;
32412 }
32413 {
32414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32415 }
32416 return resultobj;
32417 fail:
32418 return NULL;
32419 }
32420
32421
32422 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32423 PyObject *resultobj = 0;
32424 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32425 void *arg2 = (void *) 0 ;
32426 void *argp1 = 0 ;
32427 int res1 = 0 ;
32428 int res2 ;
32429 PyObject *swig_obj[2] ;
32430
32431 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32433 if (!SWIG_IsOK(res1)) {
32434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32435 }
32436 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32437 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32438 if (!SWIG_IsOK(res2)) {
32439 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32440 }
32441 if (arg1) (arg1)->m_pItem = arg2;
32442
32443 resultobj = SWIG_Py_Void();
32444 return resultobj;
32445 fail:
32446 return NULL;
32447 }
32448
32449
32450 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32451 PyObject *resultobj = 0;
32452 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32453 void *result = 0 ;
32454 void *argp1 = 0 ;
32455 int res1 = 0 ;
32456 PyObject *swig_obj[1] ;
32457
32458 if (!args) SWIG_fail;
32459 swig_obj[0] = args;
32460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32461 if (!SWIG_IsOK(res1)) {
32462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32463 }
32464 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32465 result = (void *) ((arg1)->m_pItem);
32466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32467 return resultobj;
32468 fail:
32469 return NULL;
32470 }
32471
32472
32473 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32474 PyObject *obj;
32475 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32476 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32477 return SWIG_Py_Void();
32478 }
32479
32480 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32481 return SWIG_Python_InitShadowInstance(args);
32482 }
32483
32484 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32485 PyObject *resultobj = 0;
32486 PyObject *arg1 = (PyObject *) NULL ;
32487 wxPyTreeItemData *result = 0 ;
32488 PyObject * obj0 = 0 ;
32489 char * kwnames[] = {
32490 (char *) "obj", NULL
32491 };
32492
32493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32494 if (obj0) {
32495 arg1 = obj0;
32496 }
32497 {
32498 PyThreadState* __tstate = wxPyBeginAllowThreads();
32499 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32500 wxPyEndAllowThreads(__tstate);
32501 if (PyErr_Occurred()) SWIG_fail;
32502 }
32503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32504 return resultobj;
32505 fail:
32506 return NULL;
32507 }
32508
32509
32510 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32511 PyObject *resultobj = 0;
32512 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32513 void *argp1 = 0 ;
32514 int res1 = 0 ;
32515 PyObject *swig_obj[1] ;
32516
32517 if (!args) SWIG_fail;
32518 swig_obj[0] = args;
32519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32520 if (!SWIG_IsOK(res1)) {
32521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32522 }
32523 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32524 {
32525 PyThreadState* __tstate = wxPyBeginAllowThreads();
32526 delete arg1;
32527
32528 wxPyEndAllowThreads(__tstate);
32529 if (PyErr_Occurred()) SWIG_fail;
32530 }
32531 resultobj = SWIG_Py_Void();
32532 return resultobj;
32533 fail:
32534 return NULL;
32535 }
32536
32537
32538 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32539 PyObject *resultobj = 0;
32540 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32541 PyObject *result = 0 ;
32542 void *argp1 = 0 ;
32543 int res1 = 0 ;
32544 PyObject *swig_obj[1] ;
32545
32546 if (!args) SWIG_fail;
32547 swig_obj[0] = args;
32548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32549 if (!SWIG_IsOK(res1)) {
32550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32551 }
32552 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32553 {
32554 PyThreadState* __tstate = wxPyBeginAllowThreads();
32555 result = (PyObject *)(arg1)->GetData();
32556 wxPyEndAllowThreads(__tstate);
32557 if (PyErr_Occurred()) SWIG_fail;
32558 }
32559 resultobj = result;
32560 return resultobj;
32561 fail:
32562 return NULL;
32563 }
32564
32565
32566 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32567 PyObject *resultobj = 0;
32568 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32569 PyObject *arg2 = (PyObject *) 0 ;
32570 void *argp1 = 0 ;
32571 int res1 = 0 ;
32572 PyObject * obj0 = 0 ;
32573 PyObject * obj1 = 0 ;
32574 char * kwnames[] = {
32575 (char *) "self",(char *) "obj", NULL
32576 };
32577
32578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32580 if (!SWIG_IsOK(res1)) {
32581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32582 }
32583 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32584 arg2 = obj1;
32585 {
32586 PyThreadState* __tstate = wxPyBeginAllowThreads();
32587 (arg1)->SetData(arg2);
32588 wxPyEndAllowThreads(__tstate);
32589 if (PyErr_Occurred()) SWIG_fail;
32590 }
32591 resultobj = SWIG_Py_Void();
32592 return resultobj;
32593 fail:
32594 return NULL;
32595 }
32596
32597
32598 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32599 PyObject *resultobj = 0;
32600 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32601 wxTreeItemId *result = 0 ;
32602 void *argp1 = 0 ;
32603 int res1 = 0 ;
32604 PyObject *swig_obj[1] ;
32605
32606 if (!args) SWIG_fail;
32607 swig_obj[0] = args;
32608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32609 if (!SWIG_IsOK(res1)) {
32610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32611 }
32612 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32613 {
32614 PyThreadState* __tstate = wxPyBeginAllowThreads();
32615 {
32616 wxTreeItemId const &_result_ref = (arg1)->GetId();
32617 result = (wxTreeItemId *) &_result_ref;
32618 }
32619 wxPyEndAllowThreads(__tstate);
32620 if (PyErr_Occurred()) SWIG_fail;
32621 }
32622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32623 return resultobj;
32624 fail:
32625 return NULL;
32626 }
32627
32628
32629 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32630 PyObject *resultobj = 0;
32631 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32632 wxTreeItemId *arg2 = 0 ;
32633 void *argp1 = 0 ;
32634 int res1 = 0 ;
32635 void *argp2 = 0 ;
32636 int res2 = 0 ;
32637 PyObject * obj0 = 0 ;
32638 PyObject * obj1 = 0 ;
32639 char * kwnames[] = {
32640 (char *) "self",(char *) "id", NULL
32641 };
32642
32643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32645 if (!SWIG_IsOK(res1)) {
32646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32647 }
32648 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32649 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32650 if (!SWIG_IsOK(res2)) {
32651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32652 }
32653 if (!argp2) {
32654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32655 }
32656 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32657 {
32658 PyThreadState* __tstate = wxPyBeginAllowThreads();
32659 (arg1)->SetId((wxTreeItemId const &)*arg2);
32660 wxPyEndAllowThreads(__tstate);
32661 if (PyErr_Occurred()) SWIG_fail;
32662 }
32663 resultobj = SWIG_Py_Void();
32664 return resultobj;
32665 fail:
32666 return NULL;
32667 }
32668
32669
32670 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32671 PyObject *resultobj = 0;
32672 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32673 void *argp1 = 0 ;
32674 int res1 = 0 ;
32675 PyObject *swig_obj[1] ;
32676
32677 if (!args) SWIG_fail;
32678 swig_obj[0] = args;
32679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32680 if (!SWIG_IsOK(res1)) {
32681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32682 }
32683 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32684 {
32685 PyThreadState* __tstate = wxPyBeginAllowThreads();
32686 wxPyTreeItemData_Destroy(arg1);
32687 wxPyEndAllowThreads(__tstate);
32688 if (PyErr_Occurred()) SWIG_fail;
32689 }
32690 resultobj = SWIG_Py_Void();
32691 return resultobj;
32692 fail:
32693 return NULL;
32694 }
32695
32696
32697 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32698 PyObject *obj;
32699 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32700 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32701 return SWIG_Py_Void();
32702 }
32703
32704 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32705 return SWIG_Python_InitShadowInstance(args);
32706 }
32707
32708 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32709 PyObject *resultobj = 0;
32710 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32711 int arg2 = (int) 0 ;
32712 wxTreeEvent *result = 0 ;
32713 int val1 ;
32714 int ecode1 = 0 ;
32715 int val2 ;
32716 int ecode2 = 0 ;
32717 PyObject * obj0 = 0 ;
32718 PyObject * obj1 = 0 ;
32719 char * kwnames[] = {
32720 (char *) "commandType",(char *) "id", NULL
32721 };
32722
32723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32724 if (obj0) {
32725 ecode1 = SWIG_AsVal_int(obj0, &val1);
32726 if (!SWIG_IsOK(ecode1)) {
32727 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32728 }
32729 arg1 = static_cast< wxEventType >(val1);
32730 }
32731 if (obj1) {
32732 ecode2 = SWIG_AsVal_int(obj1, &val2);
32733 if (!SWIG_IsOK(ecode2)) {
32734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32735 }
32736 arg2 = static_cast< int >(val2);
32737 }
32738 {
32739 PyThreadState* __tstate = wxPyBeginAllowThreads();
32740 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32741 wxPyEndAllowThreads(__tstate);
32742 if (PyErr_Occurred()) SWIG_fail;
32743 }
32744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32745 return resultobj;
32746 fail:
32747 return NULL;
32748 }
32749
32750
32751 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32752 PyObject *resultobj = 0;
32753 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32754 wxTreeItemId result;
32755 void *argp1 = 0 ;
32756 int res1 = 0 ;
32757 PyObject *swig_obj[1] ;
32758
32759 if (!args) SWIG_fail;
32760 swig_obj[0] = args;
32761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32762 if (!SWIG_IsOK(res1)) {
32763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32764 }
32765 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32766 {
32767 PyThreadState* __tstate = wxPyBeginAllowThreads();
32768 result = ((wxTreeEvent const *)arg1)->GetItem();
32769 wxPyEndAllowThreads(__tstate);
32770 if (PyErr_Occurred()) SWIG_fail;
32771 }
32772 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32773 return resultobj;
32774 fail:
32775 return NULL;
32776 }
32777
32778
32779 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32780 PyObject *resultobj = 0;
32781 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32782 wxTreeItemId *arg2 = 0 ;
32783 void *argp1 = 0 ;
32784 int res1 = 0 ;
32785 void *argp2 = 0 ;
32786 int res2 = 0 ;
32787 PyObject * obj0 = 0 ;
32788 PyObject * obj1 = 0 ;
32789 char * kwnames[] = {
32790 (char *) "self",(char *) "item", NULL
32791 };
32792
32793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32795 if (!SWIG_IsOK(res1)) {
32796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32797 }
32798 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32799 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32800 if (!SWIG_IsOK(res2)) {
32801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32802 }
32803 if (!argp2) {
32804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32805 }
32806 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32807 {
32808 PyThreadState* __tstate = wxPyBeginAllowThreads();
32809 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32810 wxPyEndAllowThreads(__tstate);
32811 if (PyErr_Occurred()) SWIG_fail;
32812 }
32813 resultobj = SWIG_Py_Void();
32814 return resultobj;
32815 fail:
32816 return NULL;
32817 }
32818
32819
32820 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32821 PyObject *resultobj = 0;
32822 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32823 wxTreeItemId result;
32824 void *argp1 = 0 ;
32825 int res1 = 0 ;
32826 PyObject *swig_obj[1] ;
32827
32828 if (!args) SWIG_fail;
32829 swig_obj[0] = args;
32830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32831 if (!SWIG_IsOK(res1)) {
32832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32833 }
32834 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32835 {
32836 PyThreadState* __tstate = wxPyBeginAllowThreads();
32837 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32838 wxPyEndAllowThreads(__tstate);
32839 if (PyErr_Occurred()) SWIG_fail;
32840 }
32841 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32842 return resultobj;
32843 fail:
32844 return NULL;
32845 }
32846
32847
32848 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32849 PyObject *resultobj = 0;
32850 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32851 wxTreeItemId *arg2 = 0 ;
32852 void *argp1 = 0 ;
32853 int res1 = 0 ;
32854 void *argp2 = 0 ;
32855 int res2 = 0 ;
32856 PyObject * obj0 = 0 ;
32857 PyObject * obj1 = 0 ;
32858 char * kwnames[] = {
32859 (char *) "self",(char *) "item", NULL
32860 };
32861
32862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32864 if (!SWIG_IsOK(res1)) {
32865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32866 }
32867 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32869 if (!SWIG_IsOK(res2)) {
32870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32871 }
32872 if (!argp2) {
32873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32874 }
32875 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32876 {
32877 PyThreadState* __tstate = wxPyBeginAllowThreads();
32878 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32879 wxPyEndAllowThreads(__tstate);
32880 if (PyErr_Occurred()) SWIG_fail;
32881 }
32882 resultobj = SWIG_Py_Void();
32883 return resultobj;
32884 fail:
32885 return NULL;
32886 }
32887
32888
32889 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32890 PyObject *resultobj = 0;
32891 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32892 wxPoint result;
32893 void *argp1 = 0 ;
32894 int res1 = 0 ;
32895 PyObject *swig_obj[1] ;
32896
32897 if (!args) SWIG_fail;
32898 swig_obj[0] = args;
32899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32900 if (!SWIG_IsOK(res1)) {
32901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32902 }
32903 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32904 {
32905 PyThreadState* __tstate = wxPyBeginAllowThreads();
32906 result = ((wxTreeEvent const *)arg1)->GetPoint();
32907 wxPyEndAllowThreads(__tstate);
32908 if (PyErr_Occurred()) SWIG_fail;
32909 }
32910 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32911 return resultobj;
32912 fail:
32913 return NULL;
32914 }
32915
32916
32917 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32918 PyObject *resultobj = 0;
32919 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32920 wxPoint *arg2 = 0 ;
32921 void *argp1 = 0 ;
32922 int res1 = 0 ;
32923 wxPoint temp2 ;
32924 PyObject * obj0 = 0 ;
32925 PyObject * obj1 = 0 ;
32926 char * kwnames[] = {
32927 (char *) "self",(char *) "pt", NULL
32928 };
32929
32930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32932 if (!SWIG_IsOK(res1)) {
32933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32934 }
32935 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32936 {
32937 arg2 = &temp2;
32938 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32939 }
32940 {
32941 PyThreadState* __tstate = wxPyBeginAllowThreads();
32942 (arg1)->SetPoint((wxPoint const &)*arg2);
32943 wxPyEndAllowThreads(__tstate);
32944 if (PyErr_Occurred()) SWIG_fail;
32945 }
32946 resultobj = SWIG_Py_Void();
32947 return resultobj;
32948 fail:
32949 return NULL;
32950 }
32951
32952
32953 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32954 PyObject *resultobj = 0;
32955 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32956 wxKeyEvent *result = 0 ;
32957 void *argp1 = 0 ;
32958 int res1 = 0 ;
32959 PyObject *swig_obj[1] ;
32960
32961 if (!args) SWIG_fail;
32962 swig_obj[0] = args;
32963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32964 if (!SWIG_IsOK(res1)) {
32965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32966 }
32967 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32968 {
32969 PyThreadState* __tstate = wxPyBeginAllowThreads();
32970 {
32971 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32972 result = (wxKeyEvent *) &_result_ref;
32973 }
32974 wxPyEndAllowThreads(__tstate);
32975 if (PyErr_Occurred()) SWIG_fail;
32976 }
32977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32978 return resultobj;
32979 fail:
32980 return NULL;
32981 }
32982
32983
32984 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32985 PyObject *resultobj = 0;
32986 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32987 int result;
32988 void *argp1 = 0 ;
32989 int res1 = 0 ;
32990 PyObject *swig_obj[1] ;
32991
32992 if (!args) SWIG_fail;
32993 swig_obj[0] = args;
32994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32995 if (!SWIG_IsOK(res1)) {
32996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32997 }
32998 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32999 {
33000 PyThreadState* __tstate = wxPyBeginAllowThreads();
33001 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33002 wxPyEndAllowThreads(__tstate);
33003 if (PyErr_Occurred()) SWIG_fail;
33004 }
33005 resultobj = SWIG_From_int(static_cast< int >(result));
33006 return resultobj;
33007 fail:
33008 return NULL;
33009 }
33010
33011
33012 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33013 PyObject *resultobj = 0;
33014 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33015 wxKeyEvent *arg2 = 0 ;
33016 void *argp1 = 0 ;
33017 int res1 = 0 ;
33018 void *argp2 = 0 ;
33019 int res2 = 0 ;
33020 PyObject * obj0 = 0 ;
33021 PyObject * obj1 = 0 ;
33022 char * kwnames[] = {
33023 (char *) "self",(char *) "evt", NULL
33024 };
33025
33026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33028 if (!SWIG_IsOK(res1)) {
33029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33030 }
33031 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33032 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33033 if (!SWIG_IsOK(res2)) {
33034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33035 }
33036 if (!argp2) {
33037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33038 }
33039 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33040 {
33041 PyThreadState* __tstate = wxPyBeginAllowThreads();
33042 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33043 wxPyEndAllowThreads(__tstate);
33044 if (PyErr_Occurred()) SWIG_fail;
33045 }
33046 resultobj = SWIG_Py_Void();
33047 return resultobj;
33048 fail:
33049 return NULL;
33050 }
33051
33052
33053 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33054 PyObject *resultobj = 0;
33055 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33056 wxString *result = 0 ;
33057 void *argp1 = 0 ;
33058 int res1 = 0 ;
33059 PyObject *swig_obj[1] ;
33060
33061 if (!args) SWIG_fail;
33062 swig_obj[0] = args;
33063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33064 if (!SWIG_IsOK(res1)) {
33065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33066 }
33067 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33068 {
33069 PyThreadState* __tstate = wxPyBeginAllowThreads();
33070 {
33071 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33072 result = (wxString *) &_result_ref;
33073 }
33074 wxPyEndAllowThreads(__tstate);
33075 if (PyErr_Occurred()) SWIG_fail;
33076 }
33077 {
33078 #if wxUSE_UNICODE
33079 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33080 #else
33081 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33082 #endif
33083 }
33084 return resultobj;
33085 fail:
33086 return NULL;
33087 }
33088
33089
33090 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33091 PyObject *resultobj = 0;
33092 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33093 wxString *arg2 = 0 ;
33094 void *argp1 = 0 ;
33095 int res1 = 0 ;
33096 bool temp2 = false ;
33097 PyObject * obj0 = 0 ;
33098 PyObject * obj1 = 0 ;
33099 char * kwnames[] = {
33100 (char *) "self",(char *) "label", NULL
33101 };
33102
33103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33105 if (!SWIG_IsOK(res1)) {
33106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33107 }
33108 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33109 {
33110 arg2 = wxString_in_helper(obj1);
33111 if (arg2 == NULL) SWIG_fail;
33112 temp2 = true;
33113 }
33114 {
33115 PyThreadState* __tstate = wxPyBeginAllowThreads();
33116 (arg1)->SetLabel((wxString const &)*arg2);
33117 wxPyEndAllowThreads(__tstate);
33118 if (PyErr_Occurred()) SWIG_fail;
33119 }
33120 resultobj = SWIG_Py_Void();
33121 {
33122 if (temp2)
33123 delete arg2;
33124 }
33125 return resultobj;
33126 fail:
33127 {
33128 if (temp2)
33129 delete arg2;
33130 }
33131 return NULL;
33132 }
33133
33134
33135 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33136 PyObject *resultobj = 0;
33137 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33138 bool result;
33139 void *argp1 = 0 ;
33140 int res1 = 0 ;
33141 PyObject *swig_obj[1] ;
33142
33143 if (!args) SWIG_fail;
33144 swig_obj[0] = args;
33145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33146 if (!SWIG_IsOK(res1)) {
33147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33148 }
33149 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33150 {
33151 PyThreadState* __tstate = wxPyBeginAllowThreads();
33152 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33153 wxPyEndAllowThreads(__tstate);
33154 if (PyErr_Occurred()) SWIG_fail;
33155 }
33156 {
33157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33158 }
33159 return resultobj;
33160 fail:
33161 return NULL;
33162 }
33163
33164
33165 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33166 PyObject *resultobj = 0;
33167 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33168 bool arg2 ;
33169 void *argp1 = 0 ;
33170 int res1 = 0 ;
33171 bool val2 ;
33172 int ecode2 = 0 ;
33173 PyObject * obj0 = 0 ;
33174 PyObject * obj1 = 0 ;
33175 char * kwnames[] = {
33176 (char *) "self",(char *) "editCancelled", NULL
33177 };
33178
33179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33181 if (!SWIG_IsOK(res1)) {
33182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33183 }
33184 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33185 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33186 if (!SWIG_IsOK(ecode2)) {
33187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33188 }
33189 arg2 = static_cast< bool >(val2);
33190 {
33191 PyThreadState* __tstate = wxPyBeginAllowThreads();
33192 (arg1)->SetEditCanceled(arg2);
33193 wxPyEndAllowThreads(__tstate);
33194 if (PyErr_Occurred()) SWIG_fail;
33195 }
33196 resultobj = SWIG_Py_Void();
33197 return resultobj;
33198 fail:
33199 return NULL;
33200 }
33201
33202
33203 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33204 PyObject *resultobj = 0;
33205 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33206 wxString *arg2 = 0 ;
33207 void *argp1 = 0 ;
33208 int res1 = 0 ;
33209 bool temp2 = false ;
33210 PyObject * obj0 = 0 ;
33211 PyObject * obj1 = 0 ;
33212 char * kwnames[] = {
33213 (char *) "self",(char *) "toolTip", NULL
33214 };
33215
33216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33218 if (!SWIG_IsOK(res1)) {
33219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33220 }
33221 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33222 {
33223 arg2 = wxString_in_helper(obj1);
33224 if (arg2 == NULL) SWIG_fail;
33225 temp2 = true;
33226 }
33227 {
33228 PyThreadState* __tstate = wxPyBeginAllowThreads();
33229 (arg1)->SetToolTip((wxString const &)*arg2);
33230 wxPyEndAllowThreads(__tstate);
33231 if (PyErr_Occurred()) SWIG_fail;
33232 }
33233 resultobj = SWIG_Py_Void();
33234 {
33235 if (temp2)
33236 delete arg2;
33237 }
33238 return resultobj;
33239 fail:
33240 {
33241 if (temp2)
33242 delete arg2;
33243 }
33244 return NULL;
33245 }
33246
33247
33248 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33249 PyObject *resultobj = 0;
33250 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33251 wxString result;
33252 void *argp1 = 0 ;
33253 int res1 = 0 ;
33254 PyObject *swig_obj[1] ;
33255
33256 if (!args) SWIG_fail;
33257 swig_obj[0] = args;
33258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33259 if (!SWIG_IsOK(res1)) {
33260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33261 }
33262 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33263 {
33264 PyThreadState* __tstate = wxPyBeginAllowThreads();
33265 result = (arg1)->GetToolTip();
33266 wxPyEndAllowThreads(__tstate);
33267 if (PyErr_Occurred()) SWIG_fail;
33268 }
33269 {
33270 #if wxUSE_UNICODE
33271 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33272 #else
33273 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33274 #endif
33275 }
33276 return resultobj;
33277 fail:
33278 return NULL;
33279 }
33280
33281
33282 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33283 PyObject *obj;
33284 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33285 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33286 return SWIG_Py_Void();
33287 }
33288
33289 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33290 return SWIG_Python_InitShadowInstance(args);
33291 }
33292
33293 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33294 PyObject *resultobj = 0;
33295 wxWindow *arg1 = (wxWindow *) 0 ;
33296 int arg2 = (int) -1 ;
33297 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33298 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33299 wxSize const &arg4_defvalue = wxDefaultSize ;
33300 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33301 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33302 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33303 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33304 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33305 wxString *arg7 = (wxString *) &arg7_defvalue ;
33306 wxPyTreeCtrl *result = 0 ;
33307 void *argp1 = 0 ;
33308 int res1 = 0 ;
33309 int val2 ;
33310 int ecode2 = 0 ;
33311 wxPoint temp3 ;
33312 wxSize temp4 ;
33313 long val5 ;
33314 int ecode5 = 0 ;
33315 void *argp6 = 0 ;
33316 int res6 = 0 ;
33317 bool temp7 = false ;
33318 PyObject * obj0 = 0 ;
33319 PyObject * obj1 = 0 ;
33320 PyObject * obj2 = 0 ;
33321 PyObject * obj3 = 0 ;
33322 PyObject * obj4 = 0 ;
33323 PyObject * obj5 = 0 ;
33324 PyObject * obj6 = 0 ;
33325 char * kwnames[] = {
33326 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33327 };
33328
33329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33331 if (!SWIG_IsOK(res1)) {
33332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33333 }
33334 arg1 = reinterpret_cast< wxWindow * >(argp1);
33335 if (obj1) {
33336 ecode2 = SWIG_AsVal_int(obj1, &val2);
33337 if (!SWIG_IsOK(ecode2)) {
33338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33339 }
33340 arg2 = static_cast< int >(val2);
33341 }
33342 if (obj2) {
33343 {
33344 arg3 = &temp3;
33345 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33346 }
33347 }
33348 if (obj3) {
33349 {
33350 arg4 = &temp4;
33351 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33352 }
33353 }
33354 if (obj4) {
33355 ecode5 = SWIG_AsVal_long(obj4, &val5);
33356 if (!SWIG_IsOK(ecode5)) {
33357 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33358 }
33359 arg5 = static_cast< long >(val5);
33360 }
33361 if (obj5) {
33362 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33363 if (!SWIG_IsOK(res6)) {
33364 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33365 }
33366 if (!argp6) {
33367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33368 }
33369 arg6 = reinterpret_cast< wxValidator * >(argp6);
33370 }
33371 if (obj6) {
33372 {
33373 arg7 = wxString_in_helper(obj6);
33374 if (arg7 == NULL) SWIG_fail;
33375 temp7 = true;
33376 }
33377 }
33378 {
33379 if (!wxPyCheckForApp()) SWIG_fail;
33380 PyThreadState* __tstate = wxPyBeginAllowThreads();
33381 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33382 wxPyEndAllowThreads(__tstate);
33383 if (PyErr_Occurred()) SWIG_fail;
33384 }
33385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33386 {
33387 if (temp7)
33388 delete arg7;
33389 }
33390 return resultobj;
33391 fail:
33392 {
33393 if (temp7)
33394 delete arg7;
33395 }
33396 return NULL;
33397 }
33398
33399
33400 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33401 PyObject *resultobj = 0;
33402 wxPyTreeCtrl *result = 0 ;
33403
33404 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33405 {
33406 if (!wxPyCheckForApp()) SWIG_fail;
33407 PyThreadState* __tstate = wxPyBeginAllowThreads();
33408 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33409 wxPyEndAllowThreads(__tstate);
33410 if (PyErr_Occurred()) SWIG_fail;
33411 }
33412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33413 return resultobj;
33414 fail:
33415 return NULL;
33416 }
33417
33418
33419 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33420 PyObject *resultobj = 0;
33421 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33422 wxWindow *arg2 = (wxWindow *) 0 ;
33423 int arg3 = (int) -1 ;
33424 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33425 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33426 wxSize const &arg5_defvalue = wxDefaultSize ;
33427 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33428 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33429 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33430 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33431 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33432 wxString *arg8 = (wxString *) &arg8_defvalue ;
33433 bool result;
33434 void *argp1 = 0 ;
33435 int res1 = 0 ;
33436 void *argp2 = 0 ;
33437 int res2 = 0 ;
33438 int val3 ;
33439 int ecode3 = 0 ;
33440 wxPoint temp4 ;
33441 wxSize temp5 ;
33442 long val6 ;
33443 int ecode6 = 0 ;
33444 void *argp7 = 0 ;
33445 int res7 = 0 ;
33446 bool temp8 = false ;
33447 PyObject * obj0 = 0 ;
33448 PyObject * obj1 = 0 ;
33449 PyObject * obj2 = 0 ;
33450 PyObject * obj3 = 0 ;
33451 PyObject * obj4 = 0 ;
33452 PyObject * obj5 = 0 ;
33453 PyObject * obj6 = 0 ;
33454 PyObject * obj7 = 0 ;
33455 char * kwnames[] = {
33456 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33457 };
33458
33459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33461 if (!SWIG_IsOK(res1)) {
33462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33463 }
33464 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33465 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33466 if (!SWIG_IsOK(res2)) {
33467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33468 }
33469 arg2 = reinterpret_cast< wxWindow * >(argp2);
33470 if (obj2) {
33471 ecode3 = SWIG_AsVal_int(obj2, &val3);
33472 if (!SWIG_IsOK(ecode3)) {
33473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33474 }
33475 arg3 = static_cast< int >(val3);
33476 }
33477 if (obj3) {
33478 {
33479 arg4 = &temp4;
33480 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33481 }
33482 }
33483 if (obj4) {
33484 {
33485 arg5 = &temp5;
33486 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33487 }
33488 }
33489 if (obj5) {
33490 ecode6 = SWIG_AsVal_long(obj5, &val6);
33491 if (!SWIG_IsOK(ecode6)) {
33492 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33493 }
33494 arg6 = static_cast< long >(val6);
33495 }
33496 if (obj6) {
33497 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33498 if (!SWIG_IsOK(res7)) {
33499 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33500 }
33501 if (!argp7) {
33502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33503 }
33504 arg7 = reinterpret_cast< wxValidator * >(argp7);
33505 }
33506 if (obj7) {
33507 {
33508 arg8 = wxString_in_helper(obj7);
33509 if (arg8 == NULL) SWIG_fail;
33510 temp8 = true;
33511 }
33512 }
33513 {
33514 PyThreadState* __tstate = wxPyBeginAllowThreads();
33515 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33516 wxPyEndAllowThreads(__tstate);
33517 if (PyErr_Occurred()) SWIG_fail;
33518 }
33519 {
33520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33521 }
33522 {
33523 if (temp8)
33524 delete arg8;
33525 }
33526 return resultobj;
33527 fail:
33528 {
33529 if (temp8)
33530 delete arg8;
33531 }
33532 return NULL;
33533 }
33534
33535
33536 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33537 PyObject *resultobj = 0;
33538 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33539 PyObject *arg2 = (PyObject *) 0 ;
33540 PyObject *arg3 = (PyObject *) 0 ;
33541 void *argp1 = 0 ;
33542 int res1 = 0 ;
33543 PyObject * obj0 = 0 ;
33544 PyObject * obj1 = 0 ;
33545 PyObject * obj2 = 0 ;
33546 char * kwnames[] = {
33547 (char *) "self",(char *) "self",(char *) "_class", NULL
33548 };
33549
33550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33552 if (!SWIG_IsOK(res1)) {
33553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33554 }
33555 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33556 arg2 = obj1;
33557 arg3 = obj2;
33558 {
33559 PyThreadState* __tstate = wxPyBeginAllowThreads();
33560 (arg1)->_setCallbackInfo(arg2,arg3);
33561 wxPyEndAllowThreads(__tstate);
33562 if (PyErr_Occurred()) SWIG_fail;
33563 }
33564 resultobj = SWIG_Py_Void();
33565 return resultobj;
33566 fail:
33567 return NULL;
33568 }
33569
33570
33571 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33572 PyObject *resultobj = 0;
33573 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33574 unsigned int result;
33575 void *argp1 = 0 ;
33576 int res1 = 0 ;
33577 PyObject *swig_obj[1] ;
33578
33579 if (!args) SWIG_fail;
33580 swig_obj[0] = args;
33581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33582 if (!SWIG_IsOK(res1)) {
33583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33584 }
33585 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33586 {
33587 PyThreadState* __tstate = wxPyBeginAllowThreads();
33588 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33589 wxPyEndAllowThreads(__tstate);
33590 if (PyErr_Occurred()) SWIG_fail;
33591 }
33592 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33593 return resultobj;
33594 fail:
33595 return NULL;
33596 }
33597
33598
33599 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33600 PyObject *resultobj = 0;
33601 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33602 unsigned int result;
33603 void *argp1 = 0 ;
33604 int res1 = 0 ;
33605 PyObject *swig_obj[1] ;
33606
33607 if (!args) SWIG_fail;
33608 swig_obj[0] = args;
33609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33610 if (!SWIG_IsOK(res1)) {
33611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33612 }
33613 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33614 {
33615 PyThreadState* __tstate = wxPyBeginAllowThreads();
33616 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33617 wxPyEndAllowThreads(__tstate);
33618 if (PyErr_Occurred()) SWIG_fail;
33619 }
33620 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33621 return resultobj;
33622 fail:
33623 return NULL;
33624 }
33625
33626
33627 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33628 PyObject *resultobj = 0;
33629 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33630 unsigned int arg2 ;
33631 void *argp1 = 0 ;
33632 int res1 = 0 ;
33633 unsigned int val2 ;
33634 int ecode2 = 0 ;
33635 PyObject * obj0 = 0 ;
33636 PyObject * obj1 = 0 ;
33637 char * kwnames[] = {
33638 (char *) "self",(char *) "indent", NULL
33639 };
33640
33641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33643 if (!SWIG_IsOK(res1)) {
33644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33645 }
33646 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33647 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33648 if (!SWIG_IsOK(ecode2)) {
33649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33650 }
33651 arg2 = static_cast< unsigned int >(val2);
33652 {
33653 PyThreadState* __tstate = wxPyBeginAllowThreads();
33654 (arg1)->SetIndent(arg2);
33655 wxPyEndAllowThreads(__tstate);
33656 if (PyErr_Occurred()) SWIG_fail;
33657 }
33658 resultobj = SWIG_Py_Void();
33659 return resultobj;
33660 fail:
33661 return NULL;
33662 }
33663
33664
33665 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33666 PyObject *resultobj = 0;
33667 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33668 unsigned int result;
33669 void *argp1 = 0 ;
33670 int res1 = 0 ;
33671 PyObject *swig_obj[1] ;
33672
33673 if (!args) SWIG_fail;
33674 swig_obj[0] = args;
33675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33676 if (!SWIG_IsOK(res1)) {
33677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33678 }
33679 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33680 {
33681 PyThreadState* __tstate = wxPyBeginAllowThreads();
33682 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33683 wxPyEndAllowThreads(__tstate);
33684 if (PyErr_Occurred()) SWIG_fail;
33685 }
33686 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33687 return resultobj;
33688 fail:
33689 return NULL;
33690 }
33691
33692
33693 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33694 PyObject *resultobj = 0;
33695 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33696 unsigned int arg2 ;
33697 void *argp1 = 0 ;
33698 int res1 = 0 ;
33699 unsigned int val2 ;
33700 int ecode2 = 0 ;
33701 PyObject * obj0 = 0 ;
33702 PyObject * obj1 = 0 ;
33703 char * kwnames[] = {
33704 (char *) "self",(char *) "spacing", NULL
33705 };
33706
33707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33709 if (!SWIG_IsOK(res1)) {
33710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33711 }
33712 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33713 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33714 if (!SWIG_IsOK(ecode2)) {
33715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33716 }
33717 arg2 = static_cast< unsigned int >(val2);
33718 {
33719 PyThreadState* __tstate = wxPyBeginAllowThreads();
33720 (arg1)->SetSpacing(arg2);
33721 wxPyEndAllowThreads(__tstate);
33722 if (PyErr_Occurred()) SWIG_fail;
33723 }
33724 resultobj = SWIG_Py_Void();
33725 return resultobj;
33726 fail:
33727 return NULL;
33728 }
33729
33730
33731 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33732 PyObject *resultobj = 0;
33733 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33734 wxImageList *result = 0 ;
33735 void *argp1 = 0 ;
33736 int res1 = 0 ;
33737 PyObject *swig_obj[1] ;
33738
33739 if (!args) SWIG_fail;
33740 swig_obj[0] = args;
33741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33742 if (!SWIG_IsOK(res1)) {
33743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33744 }
33745 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33746 {
33747 PyThreadState* __tstate = wxPyBeginAllowThreads();
33748 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33749 wxPyEndAllowThreads(__tstate);
33750 if (PyErr_Occurred()) SWIG_fail;
33751 }
33752 {
33753 resultobj = wxPyMake_wxObject(result, (bool)0);
33754 }
33755 return resultobj;
33756 fail:
33757 return NULL;
33758 }
33759
33760
33761 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33762 PyObject *resultobj = 0;
33763 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33764 wxImageList *result = 0 ;
33765 void *argp1 = 0 ;
33766 int res1 = 0 ;
33767 PyObject *swig_obj[1] ;
33768
33769 if (!args) SWIG_fail;
33770 swig_obj[0] = args;
33771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33772 if (!SWIG_IsOK(res1)) {
33773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33774 }
33775 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33776 {
33777 PyThreadState* __tstate = wxPyBeginAllowThreads();
33778 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33779 wxPyEndAllowThreads(__tstate);
33780 if (PyErr_Occurred()) SWIG_fail;
33781 }
33782 {
33783 resultobj = wxPyMake_wxObject(result, (bool)0);
33784 }
33785 return resultobj;
33786 fail:
33787 return NULL;
33788 }
33789
33790
33791 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33792 PyObject *resultobj = 0;
33793 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33794 wxImageList *arg2 = (wxImageList *) 0 ;
33795 void *argp1 = 0 ;
33796 int res1 = 0 ;
33797 void *argp2 = 0 ;
33798 int res2 = 0 ;
33799 PyObject * obj0 = 0 ;
33800 PyObject * obj1 = 0 ;
33801 char * kwnames[] = {
33802 (char *) "self",(char *) "imageList", NULL
33803 };
33804
33805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33807 if (!SWIG_IsOK(res1)) {
33808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33809 }
33810 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33811 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33812 if (!SWIG_IsOK(res2)) {
33813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33814 }
33815 arg2 = reinterpret_cast< wxImageList * >(argp2);
33816 {
33817 PyThreadState* __tstate = wxPyBeginAllowThreads();
33818 (arg1)->SetImageList(arg2);
33819 wxPyEndAllowThreads(__tstate);
33820 if (PyErr_Occurred()) SWIG_fail;
33821 }
33822 resultobj = SWIG_Py_Void();
33823 return resultobj;
33824 fail:
33825 return NULL;
33826 }
33827
33828
33829 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33830 PyObject *resultobj = 0;
33831 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33832 wxImageList *arg2 = (wxImageList *) 0 ;
33833 void *argp1 = 0 ;
33834 int res1 = 0 ;
33835 void *argp2 = 0 ;
33836 int res2 = 0 ;
33837 PyObject * obj0 = 0 ;
33838 PyObject * obj1 = 0 ;
33839 char * kwnames[] = {
33840 (char *) "self",(char *) "imageList", NULL
33841 };
33842
33843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33845 if (!SWIG_IsOK(res1)) {
33846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33847 }
33848 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33849 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33850 if (!SWIG_IsOK(res2)) {
33851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33852 }
33853 arg2 = reinterpret_cast< wxImageList * >(argp2);
33854 {
33855 PyThreadState* __tstate = wxPyBeginAllowThreads();
33856 (arg1)->SetStateImageList(arg2);
33857 wxPyEndAllowThreads(__tstate);
33858 if (PyErr_Occurred()) SWIG_fail;
33859 }
33860 resultobj = SWIG_Py_Void();
33861 return resultobj;
33862 fail:
33863 return NULL;
33864 }
33865
33866
33867 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33868 PyObject *resultobj = 0;
33869 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33870 wxImageList *arg2 = (wxImageList *) 0 ;
33871 void *argp1 = 0 ;
33872 int res1 = 0 ;
33873 int res2 = 0 ;
33874 PyObject * obj0 = 0 ;
33875 PyObject * obj1 = 0 ;
33876 char * kwnames[] = {
33877 (char *) "self",(char *) "imageList", NULL
33878 };
33879
33880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33882 if (!SWIG_IsOK(res1)) {
33883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33884 }
33885 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33886 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33887 if (!SWIG_IsOK(res2)) {
33888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33889 }
33890 {
33891 PyThreadState* __tstate = wxPyBeginAllowThreads();
33892 (arg1)->AssignImageList(arg2);
33893 wxPyEndAllowThreads(__tstate);
33894 if (PyErr_Occurred()) SWIG_fail;
33895 }
33896 resultobj = SWIG_Py_Void();
33897 return resultobj;
33898 fail:
33899 return NULL;
33900 }
33901
33902
33903 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33904 PyObject *resultobj = 0;
33905 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33906 wxImageList *arg2 = (wxImageList *) 0 ;
33907 void *argp1 = 0 ;
33908 int res1 = 0 ;
33909 int res2 = 0 ;
33910 PyObject * obj0 = 0 ;
33911 PyObject * obj1 = 0 ;
33912 char * kwnames[] = {
33913 (char *) "self",(char *) "imageList", NULL
33914 };
33915
33916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33918 if (!SWIG_IsOK(res1)) {
33919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33920 }
33921 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33922 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33923 if (!SWIG_IsOK(res2)) {
33924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33925 }
33926 {
33927 PyThreadState* __tstate = wxPyBeginAllowThreads();
33928 (arg1)->AssignStateImageList(arg2);
33929 wxPyEndAllowThreads(__tstate);
33930 if (PyErr_Occurred()) SWIG_fail;
33931 }
33932 resultobj = SWIG_Py_Void();
33933 return resultobj;
33934 fail:
33935 return NULL;
33936 }
33937
33938
33939 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33940 PyObject *resultobj = 0;
33941 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33942 wxTreeItemId *arg2 = 0 ;
33943 wxString result;
33944 void *argp1 = 0 ;
33945 int res1 = 0 ;
33946 void *argp2 = 0 ;
33947 int res2 = 0 ;
33948 PyObject * obj0 = 0 ;
33949 PyObject * obj1 = 0 ;
33950 char * kwnames[] = {
33951 (char *) "self",(char *) "item", NULL
33952 };
33953
33954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33956 if (!SWIG_IsOK(res1)) {
33957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33958 }
33959 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33961 if (!SWIG_IsOK(res2)) {
33962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33963 }
33964 if (!argp2) {
33965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33966 }
33967 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33968 {
33969 PyThreadState* __tstate = wxPyBeginAllowThreads();
33970 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33971 wxPyEndAllowThreads(__tstate);
33972 if (PyErr_Occurred()) SWIG_fail;
33973 }
33974 {
33975 #if wxUSE_UNICODE
33976 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33977 #else
33978 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33979 #endif
33980 }
33981 return resultobj;
33982 fail:
33983 return NULL;
33984 }
33985
33986
33987 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33988 PyObject *resultobj = 0;
33989 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33990 wxTreeItemId *arg2 = 0 ;
33991 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33992 int result;
33993 void *argp1 = 0 ;
33994 int res1 = 0 ;
33995 void *argp2 = 0 ;
33996 int res2 = 0 ;
33997 int val3 ;
33998 int ecode3 = 0 ;
33999 PyObject * obj0 = 0 ;
34000 PyObject * obj1 = 0 ;
34001 PyObject * obj2 = 0 ;
34002 char * kwnames[] = {
34003 (char *) "self",(char *) "item",(char *) "which", NULL
34004 };
34005
34006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34008 if (!SWIG_IsOK(res1)) {
34009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34010 }
34011 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34013 if (!SWIG_IsOK(res2)) {
34014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34015 }
34016 if (!argp2) {
34017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34018 }
34019 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34020 if (obj2) {
34021 ecode3 = SWIG_AsVal_int(obj2, &val3);
34022 if (!SWIG_IsOK(ecode3)) {
34023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34024 }
34025 arg3 = static_cast< wxTreeItemIcon >(val3);
34026 }
34027 {
34028 PyThreadState* __tstate = wxPyBeginAllowThreads();
34029 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34030 wxPyEndAllowThreads(__tstate);
34031 if (PyErr_Occurred()) SWIG_fail;
34032 }
34033 resultobj = SWIG_From_int(static_cast< int >(result));
34034 return resultobj;
34035 fail:
34036 return NULL;
34037 }
34038
34039
34040 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34041 PyObject *resultobj = 0;
34042 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34043 wxTreeItemId *arg2 = 0 ;
34044 wxPyTreeItemData *result = 0 ;
34045 void *argp1 = 0 ;
34046 int res1 = 0 ;
34047 void *argp2 = 0 ;
34048 int res2 = 0 ;
34049 PyObject * obj0 = 0 ;
34050 PyObject * obj1 = 0 ;
34051 char * kwnames[] = {
34052 (char *) "self",(char *) "item", NULL
34053 };
34054
34055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34057 if (!SWIG_IsOK(res1)) {
34058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34059 }
34060 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34062 if (!SWIG_IsOK(res2)) {
34063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34064 }
34065 if (!argp2) {
34066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34067 }
34068 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34069 {
34070 PyThreadState* __tstate = wxPyBeginAllowThreads();
34071 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34072 wxPyEndAllowThreads(__tstate);
34073 if (PyErr_Occurred()) SWIG_fail;
34074 }
34075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34076 return resultobj;
34077 fail:
34078 return NULL;
34079 }
34080
34081
34082 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34083 PyObject *resultobj = 0;
34084 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34085 wxTreeItemId *arg2 = 0 ;
34086 PyObject *result = 0 ;
34087 void *argp1 = 0 ;
34088 int res1 = 0 ;
34089 void *argp2 = 0 ;
34090 int res2 = 0 ;
34091 PyObject * obj0 = 0 ;
34092 PyObject * obj1 = 0 ;
34093 char * kwnames[] = {
34094 (char *) "self",(char *) "item", NULL
34095 };
34096
34097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34099 if (!SWIG_IsOK(res1)) {
34100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34101 }
34102 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34103 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34104 if (!SWIG_IsOK(res2)) {
34105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34106 }
34107 if (!argp2) {
34108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34109 }
34110 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34111 {
34112 PyThreadState* __tstate = wxPyBeginAllowThreads();
34113 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34114 wxPyEndAllowThreads(__tstate);
34115 if (PyErr_Occurred()) SWIG_fail;
34116 }
34117 resultobj = result;
34118 return resultobj;
34119 fail:
34120 return NULL;
34121 }
34122
34123
34124 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34125 PyObject *resultobj = 0;
34126 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34127 wxTreeItemId *arg2 = 0 ;
34128 wxColour result;
34129 void *argp1 = 0 ;
34130 int res1 = 0 ;
34131 void *argp2 = 0 ;
34132 int res2 = 0 ;
34133 PyObject * obj0 = 0 ;
34134 PyObject * obj1 = 0 ;
34135 char * kwnames[] = {
34136 (char *) "self",(char *) "item", NULL
34137 };
34138
34139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34141 if (!SWIG_IsOK(res1)) {
34142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34143 }
34144 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34145 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34146 if (!SWIG_IsOK(res2)) {
34147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34148 }
34149 if (!argp2) {
34150 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34151 }
34152 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34153 {
34154 PyThreadState* __tstate = wxPyBeginAllowThreads();
34155 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34156 wxPyEndAllowThreads(__tstate);
34157 if (PyErr_Occurred()) SWIG_fail;
34158 }
34159 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34160 return resultobj;
34161 fail:
34162 return NULL;
34163 }
34164
34165
34166 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34167 PyObject *resultobj = 0;
34168 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34169 wxTreeItemId *arg2 = 0 ;
34170 wxColour result;
34171 void *argp1 = 0 ;
34172 int res1 = 0 ;
34173 void *argp2 = 0 ;
34174 int res2 = 0 ;
34175 PyObject * obj0 = 0 ;
34176 PyObject * obj1 = 0 ;
34177 char * kwnames[] = {
34178 (char *) "self",(char *) "item", NULL
34179 };
34180
34181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34183 if (!SWIG_IsOK(res1)) {
34184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34185 }
34186 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34187 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34188 if (!SWIG_IsOK(res2)) {
34189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34190 }
34191 if (!argp2) {
34192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34193 }
34194 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34195 {
34196 PyThreadState* __tstate = wxPyBeginAllowThreads();
34197 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34198 wxPyEndAllowThreads(__tstate);
34199 if (PyErr_Occurred()) SWIG_fail;
34200 }
34201 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34202 return resultobj;
34203 fail:
34204 return NULL;
34205 }
34206
34207
34208 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34209 PyObject *resultobj = 0;
34210 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34211 wxTreeItemId *arg2 = 0 ;
34212 wxFont result;
34213 void *argp1 = 0 ;
34214 int res1 = 0 ;
34215 void *argp2 = 0 ;
34216 int res2 = 0 ;
34217 PyObject * obj0 = 0 ;
34218 PyObject * obj1 = 0 ;
34219 char * kwnames[] = {
34220 (char *) "self",(char *) "item", NULL
34221 };
34222
34223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34225 if (!SWIG_IsOK(res1)) {
34226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34227 }
34228 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34229 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34230 if (!SWIG_IsOK(res2)) {
34231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34232 }
34233 if (!argp2) {
34234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34235 }
34236 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34237 {
34238 PyThreadState* __tstate = wxPyBeginAllowThreads();
34239 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34240 wxPyEndAllowThreads(__tstate);
34241 if (PyErr_Occurred()) SWIG_fail;
34242 }
34243 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34244 return resultobj;
34245 fail:
34246 return NULL;
34247 }
34248
34249
34250 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34251 PyObject *resultobj = 0;
34252 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34253 wxTreeItemId *arg2 = 0 ;
34254 wxString *arg3 = 0 ;
34255 void *argp1 = 0 ;
34256 int res1 = 0 ;
34257 void *argp2 = 0 ;
34258 int res2 = 0 ;
34259 bool temp3 = false ;
34260 PyObject * obj0 = 0 ;
34261 PyObject * obj1 = 0 ;
34262 PyObject * obj2 = 0 ;
34263 char * kwnames[] = {
34264 (char *) "self",(char *) "item",(char *) "text", NULL
34265 };
34266
34267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34269 if (!SWIG_IsOK(res1)) {
34270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34271 }
34272 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34274 if (!SWIG_IsOK(res2)) {
34275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34276 }
34277 if (!argp2) {
34278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34279 }
34280 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34281 {
34282 arg3 = wxString_in_helper(obj2);
34283 if (arg3 == NULL) SWIG_fail;
34284 temp3 = true;
34285 }
34286 {
34287 PyThreadState* __tstate = wxPyBeginAllowThreads();
34288 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34289 wxPyEndAllowThreads(__tstate);
34290 if (PyErr_Occurred()) SWIG_fail;
34291 }
34292 resultobj = SWIG_Py_Void();
34293 {
34294 if (temp3)
34295 delete arg3;
34296 }
34297 return resultobj;
34298 fail:
34299 {
34300 if (temp3)
34301 delete arg3;
34302 }
34303 return NULL;
34304 }
34305
34306
34307 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34308 PyObject *resultobj = 0;
34309 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34310 wxTreeItemId *arg2 = 0 ;
34311 int arg3 ;
34312 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34313 void *argp1 = 0 ;
34314 int res1 = 0 ;
34315 void *argp2 = 0 ;
34316 int res2 = 0 ;
34317 int val3 ;
34318 int ecode3 = 0 ;
34319 int val4 ;
34320 int ecode4 = 0 ;
34321 PyObject * obj0 = 0 ;
34322 PyObject * obj1 = 0 ;
34323 PyObject * obj2 = 0 ;
34324 PyObject * obj3 = 0 ;
34325 char * kwnames[] = {
34326 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34327 };
34328
34329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34331 if (!SWIG_IsOK(res1)) {
34332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34333 }
34334 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34335 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34336 if (!SWIG_IsOK(res2)) {
34337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34338 }
34339 if (!argp2) {
34340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34341 }
34342 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34343 ecode3 = SWIG_AsVal_int(obj2, &val3);
34344 if (!SWIG_IsOK(ecode3)) {
34345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34346 }
34347 arg3 = static_cast< int >(val3);
34348 if (obj3) {
34349 ecode4 = SWIG_AsVal_int(obj3, &val4);
34350 if (!SWIG_IsOK(ecode4)) {
34351 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34352 }
34353 arg4 = static_cast< wxTreeItemIcon >(val4);
34354 }
34355 {
34356 PyThreadState* __tstate = wxPyBeginAllowThreads();
34357 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34358 wxPyEndAllowThreads(__tstate);
34359 if (PyErr_Occurred()) SWIG_fail;
34360 }
34361 resultobj = SWIG_Py_Void();
34362 return resultobj;
34363 fail:
34364 return NULL;
34365 }
34366
34367
34368 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34369 PyObject *resultobj = 0;
34370 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34371 wxTreeItemId *arg2 = 0 ;
34372 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34373 void *argp1 = 0 ;
34374 int res1 = 0 ;
34375 void *argp2 = 0 ;
34376 int res2 = 0 ;
34377 int res3 = 0 ;
34378 PyObject * obj0 = 0 ;
34379 PyObject * obj1 = 0 ;
34380 PyObject * obj2 = 0 ;
34381 char * kwnames[] = {
34382 (char *) "self",(char *) "item",(char *) "data", NULL
34383 };
34384
34385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34387 if (!SWIG_IsOK(res1)) {
34388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34389 }
34390 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34392 if (!SWIG_IsOK(res2)) {
34393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34394 }
34395 if (!argp2) {
34396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34397 }
34398 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34399 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34400 if (!SWIG_IsOK(res3)) {
34401 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34402 }
34403 {
34404 PyThreadState* __tstate = wxPyBeginAllowThreads();
34405 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34406 wxPyEndAllowThreads(__tstate);
34407 if (PyErr_Occurred()) SWIG_fail;
34408 }
34409 resultobj = SWIG_Py_Void();
34410 return resultobj;
34411 fail:
34412 return NULL;
34413 }
34414
34415
34416 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34417 PyObject *resultobj = 0;
34418 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34419 wxTreeItemId *arg2 = 0 ;
34420 PyObject *arg3 = (PyObject *) 0 ;
34421 void *argp1 = 0 ;
34422 int res1 = 0 ;
34423 void *argp2 = 0 ;
34424 int res2 = 0 ;
34425 PyObject * obj0 = 0 ;
34426 PyObject * obj1 = 0 ;
34427 PyObject * obj2 = 0 ;
34428 char * kwnames[] = {
34429 (char *) "self",(char *) "item",(char *) "obj", NULL
34430 };
34431
34432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34434 if (!SWIG_IsOK(res1)) {
34435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34436 }
34437 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34438 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34439 if (!SWIG_IsOK(res2)) {
34440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34441 }
34442 if (!argp2) {
34443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34444 }
34445 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34446 arg3 = obj2;
34447 {
34448 PyThreadState* __tstate = wxPyBeginAllowThreads();
34449 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34450 wxPyEndAllowThreads(__tstate);
34451 if (PyErr_Occurred()) SWIG_fail;
34452 }
34453 resultobj = SWIG_Py_Void();
34454 return resultobj;
34455 fail:
34456 return NULL;
34457 }
34458
34459
34460 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34461 PyObject *resultobj = 0;
34462 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34463 wxTreeItemId *arg2 = 0 ;
34464 bool arg3 = (bool) true ;
34465 void *argp1 = 0 ;
34466 int res1 = 0 ;
34467 void *argp2 = 0 ;
34468 int res2 = 0 ;
34469 bool val3 ;
34470 int ecode3 = 0 ;
34471 PyObject * obj0 = 0 ;
34472 PyObject * obj1 = 0 ;
34473 PyObject * obj2 = 0 ;
34474 char * kwnames[] = {
34475 (char *) "self",(char *) "item",(char *) "has", NULL
34476 };
34477
34478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34480 if (!SWIG_IsOK(res1)) {
34481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34482 }
34483 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34484 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34485 if (!SWIG_IsOK(res2)) {
34486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34487 }
34488 if (!argp2) {
34489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34490 }
34491 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34492 if (obj2) {
34493 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34494 if (!SWIG_IsOK(ecode3)) {
34495 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34496 }
34497 arg3 = static_cast< bool >(val3);
34498 }
34499 {
34500 PyThreadState* __tstate = wxPyBeginAllowThreads();
34501 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34502 wxPyEndAllowThreads(__tstate);
34503 if (PyErr_Occurred()) SWIG_fail;
34504 }
34505 resultobj = SWIG_Py_Void();
34506 return resultobj;
34507 fail:
34508 return NULL;
34509 }
34510
34511
34512 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34513 PyObject *resultobj = 0;
34514 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34515 wxTreeItemId *arg2 = 0 ;
34516 bool arg3 = (bool) true ;
34517 void *argp1 = 0 ;
34518 int res1 = 0 ;
34519 void *argp2 = 0 ;
34520 int res2 = 0 ;
34521 bool val3 ;
34522 int ecode3 = 0 ;
34523 PyObject * obj0 = 0 ;
34524 PyObject * obj1 = 0 ;
34525 PyObject * obj2 = 0 ;
34526 char * kwnames[] = {
34527 (char *) "self",(char *) "item",(char *) "bold", NULL
34528 };
34529
34530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34532 if (!SWIG_IsOK(res1)) {
34533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34534 }
34535 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34536 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34537 if (!SWIG_IsOK(res2)) {
34538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34539 }
34540 if (!argp2) {
34541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34542 }
34543 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34544 if (obj2) {
34545 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34546 if (!SWIG_IsOK(ecode3)) {
34547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34548 }
34549 arg3 = static_cast< bool >(val3);
34550 }
34551 {
34552 PyThreadState* __tstate = wxPyBeginAllowThreads();
34553 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34554 wxPyEndAllowThreads(__tstate);
34555 if (PyErr_Occurred()) SWIG_fail;
34556 }
34557 resultobj = SWIG_Py_Void();
34558 return resultobj;
34559 fail:
34560 return NULL;
34561 }
34562
34563
34564 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34565 PyObject *resultobj = 0;
34566 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34567 wxTreeItemId *arg2 = 0 ;
34568 bool arg3 = (bool) true ;
34569 void *argp1 = 0 ;
34570 int res1 = 0 ;
34571 void *argp2 = 0 ;
34572 int res2 = 0 ;
34573 bool val3 ;
34574 int ecode3 = 0 ;
34575 PyObject * obj0 = 0 ;
34576 PyObject * obj1 = 0 ;
34577 PyObject * obj2 = 0 ;
34578 char * kwnames[] = {
34579 (char *) "self",(char *) "item",(char *) "highlight", NULL
34580 };
34581
34582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34584 if (!SWIG_IsOK(res1)) {
34585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34586 }
34587 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34588 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34589 if (!SWIG_IsOK(res2)) {
34590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34591 }
34592 if (!argp2) {
34593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34594 }
34595 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34596 if (obj2) {
34597 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34598 if (!SWIG_IsOK(ecode3)) {
34599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34600 }
34601 arg3 = static_cast< bool >(val3);
34602 }
34603 {
34604 PyThreadState* __tstate = wxPyBeginAllowThreads();
34605 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34606 wxPyEndAllowThreads(__tstate);
34607 if (PyErr_Occurred()) SWIG_fail;
34608 }
34609 resultobj = SWIG_Py_Void();
34610 return resultobj;
34611 fail:
34612 return NULL;
34613 }
34614
34615
34616 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34617 PyObject *resultobj = 0;
34618 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34619 wxTreeItemId *arg2 = 0 ;
34620 wxColour *arg3 = 0 ;
34621 void *argp1 = 0 ;
34622 int res1 = 0 ;
34623 void *argp2 = 0 ;
34624 int res2 = 0 ;
34625 wxColour temp3 ;
34626 PyObject * obj0 = 0 ;
34627 PyObject * obj1 = 0 ;
34628 PyObject * obj2 = 0 ;
34629 char * kwnames[] = {
34630 (char *) "self",(char *) "item",(char *) "col", NULL
34631 };
34632
34633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34635 if (!SWIG_IsOK(res1)) {
34636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34637 }
34638 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34640 if (!SWIG_IsOK(res2)) {
34641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34642 }
34643 if (!argp2) {
34644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34645 }
34646 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34647 {
34648 arg3 = &temp3;
34649 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34650 }
34651 {
34652 PyThreadState* __tstate = wxPyBeginAllowThreads();
34653 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34654 wxPyEndAllowThreads(__tstate);
34655 if (PyErr_Occurred()) SWIG_fail;
34656 }
34657 resultobj = SWIG_Py_Void();
34658 return resultobj;
34659 fail:
34660 return NULL;
34661 }
34662
34663
34664 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34665 PyObject *resultobj = 0;
34666 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34667 wxTreeItemId *arg2 = 0 ;
34668 wxColour *arg3 = 0 ;
34669 void *argp1 = 0 ;
34670 int res1 = 0 ;
34671 void *argp2 = 0 ;
34672 int res2 = 0 ;
34673 wxColour temp3 ;
34674 PyObject * obj0 = 0 ;
34675 PyObject * obj1 = 0 ;
34676 PyObject * obj2 = 0 ;
34677 char * kwnames[] = {
34678 (char *) "self",(char *) "item",(char *) "col", NULL
34679 };
34680
34681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34683 if (!SWIG_IsOK(res1)) {
34684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34685 }
34686 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34687 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34688 if (!SWIG_IsOK(res2)) {
34689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34690 }
34691 if (!argp2) {
34692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34693 }
34694 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34695 {
34696 arg3 = &temp3;
34697 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34698 }
34699 {
34700 PyThreadState* __tstate = wxPyBeginAllowThreads();
34701 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34702 wxPyEndAllowThreads(__tstate);
34703 if (PyErr_Occurred()) SWIG_fail;
34704 }
34705 resultobj = SWIG_Py_Void();
34706 return resultobj;
34707 fail:
34708 return NULL;
34709 }
34710
34711
34712 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34713 PyObject *resultobj = 0;
34714 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34715 wxTreeItemId *arg2 = 0 ;
34716 wxFont *arg3 = 0 ;
34717 void *argp1 = 0 ;
34718 int res1 = 0 ;
34719 void *argp2 = 0 ;
34720 int res2 = 0 ;
34721 void *argp3 = 0 ;
34722 int res3 = 0 ;
34723 PyObject * obj0 = 0 ;
34724 PyObject * obj1 = 0 ;
34725 PyObject * obj2 = 0 ;
34726 char * kwnames[] = {
34727 (char *) "self",(char *) "item",(char *) "font", NULL
34728 };
34729
34730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34732 if (!SWIG_IsOK(res1)) {
34733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34734 }
34735 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34736 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34737 if (!SWIG_IsOK(res2)) {
34738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34739 }
34740 if (!argp2) {
34741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34742 }
34743 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34744 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34745 if (!SWIG_IsOK(res3)) {
34746 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34747 }
34748 if (!argp3) {
34749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34750 }
34751 arg3 = reinterpret_cast< wxFont * >(argp3);
34752 {
34753 PyThreadState* __tstate = wxPyBeginAllowThreads();
34754 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34755 wxPyEndAllowThreads(__tstate);
34756 if (PyErr_Occurred()) SWIG_fail;
34757 }
34758 resultobj = SWIG_Py_Void();
34759 return resultobj;
34760 fail:
34761 return NULL;
34762 }
34763
34764
34765 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34766 PyObject *resultobj = 0;
34767 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34768 wxTreeItemId *arg2 = 0 ;
34769 bool result;
34770 void *argp1 = 0 ;
34771 int res1 = 0 ;
34772 void *argp2 = 0 ;
34773 int res2 = 0 ;
34774 PyObject * obj0 = 0 ;
34775 PyObject * obj1 = 0 ;
34776 char * kwnames[] = {
34777 (char *) "self",(char *) "item", NULL
34778 };
34779
34780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34782 if (!SWIG_IsOK(res1)) {
34783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34784 }
34785 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34787 if (!SWIG_IsOK(res2)) {
34788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34789 }
34790 if (!argp2) {
34791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34792 }
34793 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34794 {
34795 PyThreadState* __tstate = wxPyBeginAllowThreads();
34796 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34797 wxPyEndAllowThreads(__tstate);
34798 if (PyErr_Occurred()) SWIG_fail;
34799 }
34800 {
34801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34802 }
34803 return resultobj;
34804 fail:
34805 return NULL;
34806 }
34807
34808
34809 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34810 PyObject *resultobj = 0;
34811 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34812 wxTreeItemId *arg2 = 0 ;
34813 bool result;
34814 void *argp1 = 0 ;
34815 int res1 = 0 ;
34816 void *argp2 = 0 ;
34817 int res2 = 0 ;
34818 PyObject * obj0 = 0 ;
34819 PyObject * obj1 = 0 ;
34820 char * kwnames[] = {
34821 (char *) "self",(char *) "item", NULL
34822 };
34823
34824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34826 if (!SWIG_IsOK(res1)) {
34827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34828 }
34829 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34830 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34831 if (!SWIG_IsOK(res2)) {
34832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34833 }
34834 if (!argp2) {
34835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34836 }
34837 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34838 {
34839 PyThreadState* __tstate = wxPyBeginAllowThreads();
34840 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34841 wxPyEndAllowThreads(__tstate);
34842 if (PyErr_Occurred()) SWIG_fail;
34843 }
34844 {
34845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34846 }
34847 return resultobj;
34848 fail:
34849 return NULL;
34850 }
34851
34852
34853 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34854 PyObject *resultobj = 0;
34855 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34856 wxTreeItemId *arg2 = 0 ;
34857 bool result;
34858 void *argp1 = 0 ;
34859 int res1 = 0 ;
34860 void *argp2 = 0 ;
34861 int res2 = 0 ;
34862 PyObject * obj0 = 0 ;
34863 PyObject * obj1 = 0 ;
34864 char * kwnames[] = {
34865 (char *) "self",(char *) "item", NULL
34866 };
34867
34868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34870 if (!SWIG_IsOK(res1)) {
34871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34872 }
34873 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34875 if (!SWIG_IsOK(res2)) {
34876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34877 }
34878 if (!argp2) {
34879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34880 }
34881 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34882 {
34883 PyThreadState* __tstate = wxPyBeginAllowThreads();
34884 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34885 wxPyEndAllowThreads(__tstate);
34886 if (PyErr_Occurred()) SWIG_fail;
34887 }
34888 {
34889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34890 }
34891 return resultobj;
34892 fail:
34893 return NULL;
34894 }
34895
34896
34897 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34898 PyObject *resultobj = 0;
34899 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34900 wxTreeItemId *arg2 = 0 ;
34901 bool result;
34902 void *argp1 = 0 ;
34903 int res1 = 0 ;
34904 void *argp2 = 0 ;
34905 int res2 = 0 ;
34906 PyObject * obj0 = 0 ;
34907 PyObject * obj1 = 0 ;
34908 char * kwnames[] = {
34909 (char *) "self",(char *) "item", NULL
34910 };
34911
34912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34914 if (!SWIG_IsOK(res1)) {
34915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34916 }
34917 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34918 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34919 if (!SWIG_IsOK(res2)) {
34920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34921 }
34922 if (!argp2) {
34923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34924 }
34925 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34926 {
34927 PyThreadState* __tstate = wxPyBeginAllowThreads();
34928 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34929 wxPyEndAllowThreads(__tstate);
34930 if (PyErr_Occurred()) SWIG_fail;
34931 }
34932 {
34933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34934 }
34935 return resultobj;
34936 fail:
34937 return NULL;
34938 }
34939
34940
34941 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34942 PyObject *resultobj = 0;
34943 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34944 wxTreeItemId *arg2 = 0 ;
34945 bool result;
34946 void *argp1 = 0 ;
34947 int res1 = 0 ;
34948 void *argp2 = 0 ;
34949 int res2 = 0 ;
34950 PyObject * obj0 = 0 ;
34951 PyObject * obj1 = 0 ;
34952 char * kwnames[] = {
34953 (char *) "self",(char *) "item", NULL
34954 };
34955
34956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34958 if (!SWIG_IsOK(res1)) {
34959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34960 }
34961 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34962 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34963 if (!SWIG_IsOK(res2)) {
34964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34965 }
34966 if (!argp2) {
34967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34968 }
34969 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34970 {
34971 PyThreadState* __tstate = wxPyBeginAllowThreads();
34972 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34973 wxPyEndAllowThreads(__tstate);
34974 if (PyErr_Occurred()) SWIG_fail;
34975 }
34976 {
34977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34978 }
34979 return resultobj;
34980 fail:
34981 return NULL;
34982 }
34983
34984
34985 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34986 PyObject *resultobj = 0;
34987 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34988 wxTreeItemId *arg2 = 0 ;
34989 bool arg3 = (bool) true ;
34990 size_t result;
34991 void *argp1 = 0 ;
34992 int res1 = 0 ;
34993 void *argp2 = 0 ;
34994 int res2 = 0 ;
34995 bool val3 ;
34996 int ecode3 = 0 ;
34997 PyObject * obj0 = 0 ;
34998 PyObject * obj1 = 0 ;
34999 PyObject * obj2 = 0 ;
35000 char * kwnames[] = {
35001 (char *) "self",(char *) "item",(char *) "recursively", NULL
35002 };
35003
35004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35006 if (!SWIG_IsOK(res1)) {
35007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35008 }
35009 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35010 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35011 if (!SWIG_IsOK(res2)) {
35012 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35013 }
35014 if (!argp2) {
35015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35016 }
35017 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35018 if (obj2) {
35019 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35020 if (!SWIG_IsOK(ecode3)) {
35021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35022 }
35023 arg3 = static_cast< bool >(val3);
35024 }
35025 {
35026 PyThreadState* __tstate = wxPyBeginAllowThreads();
35027 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35028 wxPyEndAllowThreads(__tstate);
35029 if (PyErr_Occurred()) SWIG_fail;
35030 }
35031 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35032 return resultobj;
35033 fail:
35034 return NULL;
35035 }
35036
35037
35038 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35039 PyObject *resultobj = 0;
35040 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35041 wxTreeItemId result;
35042 void *argp1 = 0 ;
35043 int res1 = 0 ;
35044 PyObject *swig_obj[1] ;
35045
35046 if (!args) SWIG_fail;
35047 swig_obj[0] = args;
35048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35049 if (!SWIG_IsOK(res1)) {
35050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35051 }
35052 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35053 {
35054 PyThreadState* __tstate = wxPyBeginAllowThreads();
35055 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35056 wxPyEndAllowThreads(__tstate);
35057 if (PyErr_Occurred()) SWIG_fail;
35058 }
35059 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35060 return resultobj;
35061 fail:
35062 return NULL;
35063 }
35064
35065
35066 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35067 PyObject *resultobj = 0;
35068 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35069 wxTreeItemId result;
35070 void *argp1 = 0 ;
35071 int res1 = 0 ;
35072 PyObject *swig_obj[1] ;
35073
35074 if (!args) SWIG_fail;
35075 swig_obj[0] = args;
35076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35077 if (!SWIG_IsOK(res1)) {
35078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35079 }
35080 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35081 {
35082 PyThreadState* __tstate = wxPyBeginAllowThreads();
35083 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35084 wxPyEndAllowThreads(__tstate);
35085 if (PyErr_Occurred()) SWIG_fail;
35086 }
35087 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35088 return resultobj;
35089 fail:
35090 return NULL;
35091 }
35092
35093
35094 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35095 PyObject *resultobj = 0;
35096 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35097 PyObject *result = 0 ;
35098 void *argp1 = 0 ;
35099 int res1 = 0 ;
35100 PyObject *swig_obj[1] ;
35101
35102 if (!args) SWIG_fail;
35103 swig_obj[0] = args;
35104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35105 if (!SWIG_IsOK(res1)) {
35106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35107 }
35108 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35109 {
35110 PyThreadState* __tstate = wxPyBeginAllowThreads();
35111 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35112 wxPyEndAllowThreads(__tstate);
35113 if (PyErr_Occurred()) SWIG_fail;
35114 }
35115 resultobj = result;
35116 return resultobj;
35117 fail:
35118 return NULL;
35119 }
35120
35121
35122 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35123 PyObject *resultobj = 0;
35124 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35125 wxTreeItemId *arg2 = 0 ;
35126 wxTreeItemId result;
35127 void *argp1 = 0 ;
35128 int res1 = 0 ;
35129 void *argp2 = 0 ;
35130 int res2 = 0 ;
35131 PyObject * obj0 = 0 ;
35132 PyObject * obj1 = 0 ;
35133 char * kwnames[] = {
35134 (char *) "self",(char *) "item", NULL
35135 };
35136
35137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35139 if (!SWIG_IsOK(res1)) {
35140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35141 }
35142 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35143 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35144 if (!SWIG_IsOK(res2)) {
35145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35146 }
35147 if (!argp2) {
35148 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35149 }
35150 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35151 {
35152 PyThreadState* __tstate = wxPyBeginAllowThreads();
35153 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35154 wxPyEndAllowThreads(__tstate);
35155 if (PyErr_Occurred()) SWIG_fail;
35156 }
35157 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35158 return resultobj;
35159 fail:
35160 return NULL;
35161 }
35162
35163
35164 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35165 PyObject *resultobj = 0;
35166 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35167 wxTreeItemId *arg2 = 0 ;
35168 PyObject *result = 0 ;
35169 void *argp1 = 0 ;
35170 int res1 = 0 ;
35171 void *argp2 = 0 ;
35172 int res2 = 0 ;
35173 PyObject * obj0 = 0 ;
35174 PyObject * obj1 = 0 ;
35175 char * kwnames[] = {
35176 (char *) "self",(char *) "item", NULL
35177 };
35178
35179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35181 if (!SWIG_IsOK(res1)) {
35182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35183 }
35184 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35185 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35186 if (!SWIG_IsOK(res2)) {
35187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35188 }
35189 if (!argp2) {
35190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35191 }
35192 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35193 {
35194 PyThreadState* __tstate = wxPyBeginAllowThreads();
35195 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35196 wxPyEndAllowThreads(__tstate);
35197 if (PyErr_Occurred()) SWIG_fail;
35198 }
35199 resultobj = result;
35200 return resultobj;
35201 fail:
35202 return NULL;
35203 }
35204
35205
35206 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35207 PyObject *resultobj = 0;
35208 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35209 wxTreeItemId *arg2 = 0 ;
35210 void *arg3 = (void *) 0 ;
35211 PyObject *result = 0 ;
35212 void *argp1 = 0 ;
35213 int res1 = 0 ;
35214 void *argp2 = 0 ;
35215 int res2 = 0 ;
35216 int res3 ;
35217 PyObject * obj0 = 0 ;
35218 PyObject * obj1 = 0 ;
35219 PyObject * obj2 = 0 ;
35220 char * kwnames[] = {
35221 (char *) "self",(char *) "item",(char *) "cookie", NULL
35222 };
35223
35224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35226 if (!SWIG_IsOK(res1)) {
35227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35228 }
35229 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35230 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35231 if (!SWIG_IsOK(res2)) {
35232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35233 }
35234 if (!argp2) {
35235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35236 }
35237 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35238 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35239 if (!SWIG_IsOK(res3)) {
35240 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35241 }
35242 {
35243 PyThreadState* __tstate = wxPyBeginAllowThreads();
35244 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35245 wxPyEndAllowThreads(__tstate);
35246 if (PyErr_Occurred()) SWIG_fail;
35247 }
35248 resultobj = result;
35249 return resultobj;
35250 fail:
35251 return NULL;
35252 }
35253
35254
35255 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35256 PyObject *resultobj = 0;
35257 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35258 wxTreeItemId *arg2 = 0 ;
35259 wxTreeItemId result;
35260 void *argp1 = 0 ;
35261 int res1 = 0 ;
35262 void *argp2 = 0 ;
35263 int res2 = 0 ;
35264 PyObject * obj0 = 0 ;
35265 PyObject * obj1 = 0 ;
35266 char * kwnames[] = {
35267 (char *) "self",(char *) "item", NULL
35268 };
35269
35270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35272 if (!SWIG_IsOK(res1)) {
35273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35274 }
35275 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35277 if (!SWIG_IsOK(res2)) {
35278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35279 }
35280 if (!argp2) {
35281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35282 }
35283 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35284 {
35285 PyThreadState* __tstate = wxPyBeginAllowThreads();
35286 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35287 wxPyEndAllowThreads(__tstate);
35288 if (PyErr_Occurred()) SWIG_fail;
35289 }
35290 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35291 return resultobj;
35292 fail:
35293 return NULL;
35294 }
35295
35296
35297 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35298 PyObject *resultobj = 0;
35299 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35300 wxTreeItemId *arg2 = 0 ;
35301 wxTreeItemId result;
35302 void *argp1 = 0 ;
35303 int res1 = 0 ;
35304 void *argp2 = 0 ;
35305 int res2 = 0 ;
35306 PyObject * obj0 = 0 ;
35307 PyObject * obj1 = 0 ;
35308 char * kwnames[] = {
35309 (char *) "self",(char *) "item", NULL
35310 };
35311
35312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35314 if (!SWIG_IsOK(res1)) {
35315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35316 }
35317 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35319 if (!SWIG_IsOK(res2)) {
35320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35321 }
35322 if (!argp2) {
35323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35324 }
35325 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35326 {
35327 PyThreadState* __tstate = wxPyBeginAllowThreads();
35328 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35329 wxPyEndAllowThreads(__tstate);
35330 if (PyErr_Occurred()) SWIG_fail;
35331 }
35332 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35333 return resultobj;
35334 fail:
35335 return NULL;
35336 }
35337
35338
35339 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35340 PyObject *resultobj = 0;
35341 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35342 wxTreeItemId *arg2 = 0 ;
35343 wxTreeItemId result;
35344 void *argp1 = 0 ;
35345 int res1 = 0 ;
35346 void *argp2 = 0 ;
35347 int res2 = 0 ;
35348 PyObject * obj0 = 0 ;
35349 PyObject * obj1 = 0 ;
35350 char * kwnames[] = {
35351 (char *) "self",(char *) "item", NULL
35352 };
35353
35354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35356 if (!SWIG_IsOK(res1)) {
35357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35358 }
35359 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35361 if (!SWIG_IsOK(res2)) {
35362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35363 }
35364 if (!argp2) {
35365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35366 }
35367 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35368 {
35369 PyThreadState* __tstate = wxPyBeginAllowThreads();
35370 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35371 wxPyEndAllowThreads(__tstate);
35372 if (PyErr_Occurred()) SWIG_fail;
35373 }
35374 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35375 return resultobj;
35376 fail:
35377 return NULL;
35378 }
35379
35380
35381 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35382 PyObject *resultobj = 0;
35383 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35384 wxTreeItemId result;
35385 void *argp1 = 0 ;
35386 int res1 = 0 ;
35387 PyObject *swig_obj[1] ;
35388
35389 if (!args) SWIG_fail;
35390 swig_obj[0] = args;
35391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35392 if (!SWIG_IsOK(res1)) {
35393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35394 }
35395 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35396 {
35397 PyThreadState* __tstate = wxPyBeginAllowThreads();
35398 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35399 wxPyEndAllowThreads(__tstate);
35400 if (PyErr_Occurred()) SWIG_fail;
35401 }
35402 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35403 return resultobj;
35404 fail:
35405 return NULL;
35406 }
35407
35408
35409 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35410 PyObject *resultobj = 0;
35411 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35412 wxTreeItemId *arg2 = 0 ;
35413 wxTreeItemId result;
35414 void *argp1 = 0 ;
35415 int res1 = 0 ;
35416 void *argp2 = 0 ;
35417 int res2 = 0 ;
35418 PyObject * obj0 = 0 ;
35419 PyObject * obj1 = 0 ;
35420 char * kwnames[] = {
35421 (char *) "self",(char *) "item", NULL
35422 };
35423
35424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35426 if (!SWIG_IsOK(res1)) {
35427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35428 }
35429 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35430 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35431 if (!SWIG_IsOK(res2)) {
35432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35433 }
35434 if (!argp2) {
35435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35436 }
35437 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35438 {
35439 PyThreadState* __tstate = wxPyBeginAllowThreads();
35440 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35441 wxPyEndAllowThreads(__tstate);
35442 if (PyErr_Occurred()) SWIG_fail;
35443 }
35444 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35445 return resultobj;
35446 fail:
35447 return NULL;
35448 }
35449
35450
35451 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35452 PyObject *resultobj = 0;
35453 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35454 wxTreeItemId *arg2 = 0 ;
35455 wxTreeItemId result;
35456 void *argp1 = 0 ;
35457 int res1 = 0 ;
35458 void *argp2 = 0 ;
35459 int res2 = 0 ;
35460 PyObject * obj0 = 0 ;
35461 PyObject * obj1 = 0 ;
35462 char * kwnames[] = {
35463 (char *) "self",(char *) "item", NULL
35464 };
35465
35466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35468 if (!SWIG_IsOK(res1)) {
35469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35470 }
35471 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35473 if (!SWIG_IsOK(res2)) {
35474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35475 }
35476 if (!argp2) {
35477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35478 }
35479 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35480 {
35481 PyThreadState* __tstate = wxPyBeginAllowThreads();
35482 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35483 wxPyEndAllowThreads(__tstate);
35484 if (PyErr_Occurred()) SWIG_fail;
35485 }
35486 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35487 return resultobj;
35488 fail:
35489 return NULL;
35490 }
35491
35492
35493 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35494 PyObject *resultobj = 0;
35495 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35496 wxString *arg2 = 0 ;
35497 int arg3 = (int) -1 ;
35498 int arg4 = (int) -1 ;
35499 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35500 wxTreeItemId result;
35501 void *argp1 = 0 ;
35502 int res1 = 0 ;
35503 bool temp2 = false ;
35504 int val3 ;
35505 int ecode3 = 0 ;
35506 int val4 ;
35507 int ecode4 = 0 ;
35508 int res5 = 0 ;
35509 PyObject * obj0 = 0 ;
35510 PyObject * obj1 = 0 ;
35511 PyObject * obj2 = 0 ;
35512 PyObject * obj3 = 0 ;
35513 PyObject * obj4 = 0 ;
35514 char * kwnames[] = {
35515 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35516 };
35517
35518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35520 if (!SWIG_IsOK(res1)) {
35521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35522 }
35523 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35524 {
35525 arg2 = wxString_in_helper(obj1);
35526 if (arg2 == NULL) SWIG_fail;
35527 temp2 = true;
35528 }
35529 if (obj2) {
35530 ecode3 = SWIG_AsVal_int(obj2, &val3);
35531 if (!SWIG_IsOK(ecode3)) {
35532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35533 }
35534 arg3 = static_cast< int >(val3);
35535 }
35536 if (obj3) {
35537 ecode4 = SWIG_AsVal_int(obj3, &val4);
35538 if (!SWIG_IsOK(ecode4)) {
35539 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35540 }
35541 arg4 = static_cast< int >(val4);
35542 }
35543 if (obj4) {
35544 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35545 if (!SWIG_IsOK(res5)) {
35546 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35547 }
35548 }
35549 {
35550 PyThreadState* __tstate = wxPyBeginAllowThreads();
35551 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35552 wxPyEndAllowThreads(__tstate);
35553 if (PyErr_Occurred()) SWIG_fail;
35554 }
35555 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35556 {
35557 if (temp2)
35558 delete arg2;
35559 }
35560 return resultobj;
35561 fail:
35562 {
35563 if (temp2)
35564 delete arg2;
35565 }
35566 return NULL;
35567 }
35568
35569
35570 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35571 PyObject *resultobj = 0;
35572 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35573 wxTreeItemId *arg2 = 0 ;
35574 wxString *arg3 = 0 ;
35575 int arg4 = (int) -1 ;
35576 int arg5 = (int) -1 ;
35577 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35578 wxTreeItemId result;
35579 void *argp1 = 0 ;
35580 int res1 = 0 ;
35581 void *argp2 = 0 ;
35582 int res2 = 0 ;
35583 bool temp3 = false ;
35584 int val4 ;
35585 int ecode4 = 0 ;
35586 int val5 ;
35587 int ecode5 = 0 ;
35588 int res6 = 0 ;
35589 PyObject * obj0 = 0 ;
35590 PyObject * obj1 = 0 ;
35591 PyObject * obj2 = 0 ;
35592 PyObject * obj3 = 0 ;
35593 PyObject * obj4 = 0 ;
35594 PyObject * obj5 = 0 ;
35595 char * kwnames[] = {
35596 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35597 };
35598
35599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35601 if (!SWIG_IsOK(res1)) {
35602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35603 }
35604 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35606 if (!SWIG_IsOK(res2)) {
35607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35608 }
35609 if (!argp2) {
35610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35611 }
35612 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35613 {
35614 arg3 = wxString_in_helper(obj2);
35615 if (arg3 == NULL) SWIG_fail;
35616 temp3 = true;
35617 }
35618 if (obj3) {
35619 ecode4 = SWIG_AsVal_int(obj3, &val4);
35620 if (!SWIG_IsOK(ecode4)) {
35621 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35622 }
35623 arg4 = static_cast< int >(val4);
35624 }
35625 if (obj4) {
35626 ecode5 = SWIG_AsVal_int(obj4, &val5);
35627 if (!SWIG_IsOK(ecode5)) {
35628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35629 }
35630 arg5 = static_cast< int >(val5);
35631 }
35632 if (obj5) {
35633 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35634 if (!SWIG_IsOK(res6)) {
35635 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35636 }
35637 }
35638 {
35639 PyThreadState* __tstate = wxPyBeginAllowThreads();
35640 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35641 wxPyEndAllowThreads(__tstate);
35642 if (PyErr_Occurred()) SWIG_fail;
35643 }
35644 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35645 {
35646 if (temp3)
35647 delete arg3;
35648 }
35649 return resultobj;
35650 fail:
35651 {
35652 if (temp3)
35653 delete arg3;
35654 }
35655 return NULL;
35656 }
35657
35658
35659 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35660 PyObject *resultobj = 0;
35661 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35662 wxTreeItemId *arg2 = 0 ;
35663 wxTreeItemId *arg3 = 0 ;
35664 wxString *arg4 = 0 ;
35665 int arg5 = (int) -1 ;
35666 int arg6 = (int) -1 ;
35667 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35668 wxTreeItemId result;
35669 void *argp1 = 0 ;
35670 int res1 = 0 ;
35671 void *argp2 = 0 ;
35672 int res2 = 0 ;
35673 void *argp3 = 0 ;
35674 int res3 = 0 ;
35675 bool temp4 = false ;
35676 int val5 ;
35677 int ecode5 = 0 ;
35678 int val6 ;
35679 int ecode6 = 0 ;
35680 int res7 = 0 ;
35681 PyObject * obj0 = 0 ;
35682 PyObject * obj1 = 0 ;
35683 PyObject * obj2 = 0 ;
35684 PyObject * obj3 = 0 ;
35685 PyObject * obj4 = 0 ;
35686 PyObject * obj5 = 0 ;
35687 PyObject * obj6 = 0 ;
35688 char * kwnames[] = {
35689 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35690 };
35691
35692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35694 if (!SWIG_IsOK(res1)) {
35695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35696 }
35697 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35698 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35699 if (!SWIG_IsOK(res2)) {
35700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35701 }
35702 if (!argp2) {
35703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35704 }
35705 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35706 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35707 if (!SWIG_IsOK(res3)) {
35708 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35709 }
35710 if (!argp3) {
35711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35712 }
35713 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35714 {
35715 arg4 = wxString_in_helper(obj3);
35716 if (arg4 == NULL) SWIG_fail;
35717 temp4 = true;
35718 }
35719 if (obj4) {
35720 ecode5 = SWIG_AsVal_int(obj4, &val5);
35721 if (!SWIG_IsOK(ecode5)) {
35722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35723 }
35724 arg5 = static_cast< int >(val5);
35725 }
35726 if (obj5) {
35727 ecode6 = SWIG_AsVal_int(obj5, &val6);
35728 if (!SWIG_IsOK(ecode6)) {
35729 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35730 }
35731 arg6 = static_cast< int >(val6);
35732 }
35733 if (obj6) {
35734 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35735 if (!SWIG_IsOK(res7)) {
35736 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35737 }
35738 }
35739 {
35740 PyThreadState* __tstate = wxPyBeginAllowThreads();
35741 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35742 wxPyEndAllowThreads(__tstate);
35743 if (PyErr_Occurred()) SWIG_fail;
35744 }
35745 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35746 {
35747 if (temp4)
35748 delete arg4;
35749 }
35750 return resultobj;
35751 fail:
35752 {
35753 if (temp4)
35754 delete arg4;
35755 }
35756 return NULL;
35757 }
35758
35759
35760 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35761 PyObject *resultobj = 0;
35762 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35763 wxTreeItemId *arg2 = 0 ;
35764 size_t arg3 ;
35765 wxString *arg4 = 0 ;
35766 int arg5 = (int) -1 ;
35767 int arg6 = (int) -1 ;
35768 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35769 wxTreeItemId result;
35770 void *argp1 = 0 ;
35771 int res1 = 0 ;
35772 void *argp2 = 0 ;
35773 int res2 = 0 ;
35774 size_t val3 ;
35775 int ecode3 = 0 ;
35776 bool temp4 = false ;
35777 int val5 ;
35778 int ecode5 = 0 ;
35779 int val6 ;
35780 int ecode6 = 0 ;
35781 int res7 = 0 ;
35782 PyObject * obj0 = 0 ;
35783 PyObject * obj1 = 0 ;
35784 PyObject * obj2 = 0 ;
35785 PyObject * obj3 = 0 ;
35786 PyObject * obj4 = 0 ;
35787 PyObject * obj5 = 0 ;
35788 PyObject * obj6 = 0 ;
35789 char * kwnames[] = {
35790 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35791 };
35792
35793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35795 if (!SWIG_IsOK(res1)) {
35796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35797 }
35798 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35799 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35800 if (!SWIG_IsOK(res2)) {
35801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35802 }
35803 if (!argp2) {
35804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35805 }
35806 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35807 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35808 if (!SWIG_IsOK(ecode3)) {
35809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35810 }
35811 arg3 = static_cast< size_t >(val3);
35812 {
35813 arg4 = wxString_in_helper(obj3);
35814 if (arg4 == NULL) SWIG_fail;
35815 temp4 = true;
35816 }
35817 if (obj4) {
35818 ecode5 = SWIG_AsVal_int(obj4, &val5);
35819 if (!SWIG_IsOK(ecode5)) {
35820 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35821 }
35822 arg5 = static_cast< int >(val5);
35823 }
35824 if (obj5) {
35825 ecode6 = SWIG_AsVal_int(obj5, &val6);
35826 if (!SWIG_IsOK(ecode6)) {
35827 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35828 }
35829 arg6 = static_cast< int >(val6);
35830 }
35831 if (obj6) {
35832 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35833 if (!SWIG_IsOK(res7)) {
35834 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35835 }
35836 }
35837 {
35838 PyThreadState* __tstate = wxPyBeginAllowThreads();
35839 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35840 wxPyEndAllowThreads(__tstate);
35841 if (PyErr_Occurred()) SWIG_fail;
35842 }
35843 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35844 {
35845 if (temp4)
35846 delete arg4;
35847 }
35848 return resultobj;
35849 fail:
35850 {
35851 if (temp4)
35852 delete arg4;
35853 }
35854 return NULL;
35855 }
35856
35857
35858 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35859 PyObject *resultobj = 0;
35860 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35861 wxTreeItemId *arg2 = 0 ;
35862 wxString *arg3 = 0 ;
35863 int arg4 = (int) -1 ;
35864 int arg5 = (int) -1 ;
35865 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35866 wxTreeItemId result;
35867 void *argp1 = 0 ;
35868 int res1 = 0 ;
35869 void *argp2 = 0 ;
35870 int res2 = 0 ;
35871 bool temp3 = false ;
35872 int val4 ;
35873 int ecode4 = 0 ;
35874 int val5 ;
35875 int ecode5 = 0 ;
35876 int res6 = 0 ;
35877 PyObject * obj0 = 0 ;
35878 PyObject * obj1 = 0 ;
35879 PyObject * obj2 = 0 ;
35880 PyObject * obj3 = 0 ;
35881 PyObject * obj4 = 0 ;
35882 PyObject * obj5 = 0 ;
35883 char * kwnames[] = {
35884 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35885 };
35886
35887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35889 if (!SWIG_IsOK(res1)) {
35890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35891 }
35892 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35893 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35894 if (!SWIG_IsOK(res2)) {
35895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35896 }
35897 if (!argp2) {
35898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35899 }
35900 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35901 {
35902 arg3 = wxString_in_helper(obj2);
35903 if (arg3 == NULL) SWIG_fail;
35904 temp3 = true;
35905 }
35906 if (obj3) {
35907 ecode4 = SWIG_AsVal_int(obj3, &val4);
35908 if (!SWIG_IsOK(ecode4)) {
35909 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35910 }
35911 arg4 = static_cast< int >(val4);
35912 }
35913 if (obj4) {
35914 ecode5 = SWIG_AsVal_int(obj4, &val5);
35915 if (!SWIG_IsOK(ecode5)) {
35916 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35917 }
35918 arg5 = static_cast< int >(val5);
35919 }
35920 if (obj5) {
35921 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35922 if (!SWIG_IsOK(res6)) {
35923 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35924 }
35925 }
35926 {
35927 PyThreadState* __tstate = wxPyBeginAllowThreads();
35928 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35929 wxPyEndAllowThreads(__tstate);
35930 if (PyErr_Occurred()) SWIG_fail;
35931 }
35932 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35933 {
35934 if (temp3)
35935 delete arg3;
35936 }
35937 return resultobj;
35938 fail:
35939 {
35940 if (temp3)
35941 delete arg3;
35942 }
35943 return NULL;
35944 }
35945
35946
35947 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35948 PyObject *resultobj = 0;
35949 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35950 wxTreeItemId *arg2 = 0 ;
35951 void *argp1 = 0 ;
35952 int res1 = 0 ;
35953 void *argp2 = 0 ;
35954 int res2 = 0 ;
35955 PyObject * obj0 = 0 ;
35956 PyObject * obj1 = 0 ;
35957 char * kwnames[] = {
35958 (char *) "self",(char *) "item", NULL
35959 };
35960
35961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35963 if (!SWIG_IsOK(res1)) {
35964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35965 }
35966 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35967 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35968 if (!SWIG_IsOK(res2)) {
35969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35970 }
35971 if (!argp2) {
35972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35973 }
35974 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35975 {
35976 PyThreadState* __tstate = wxPyBeginAllowThreads();
35977 (arg1)->Delete((wxTreeItemId const &)*arg2);
35978 wxPyEndAllowThreads(__tstate);
35979 if (PyErr_Occurred()) SWIG_fail;
35980 }
35981 resultobj = SWIG_Py_Void();
35982 return resultobj;
35983 fail:
35984 return NULL;
35985 }
35986
35987
35988 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35989 PyObject *resultobj = 0;
35990 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35991 wxTreeItemId *arg2 = 0 ;
35992 void *argp1 = 0 ;
35993 int res1 = 0 ;
35994 void *argp2 = 0 ;
35995 int res2 = 0 ;
35996 PyObject * obj0 = 0 ;
35997 PyObject * obj1 = 0 ;
35998 char * kwnames[] = {
35999 (char *) "self",(char *) "item", NULL
36000 };
36001
36002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36004 if (!SWIG_IsOK(res1)) {
36005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36006 }
36007 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36008 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36009 if (!SWIG_IsOK(res2)) {
36010 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36011 }
36012 if (!argp2) {
36013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36014 }
36015 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36016 {
36017 PyThreadState* __tstate = wxPyBeginAllowThreads();
36018 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36019 wxPyEndAllowThreads(__tstate);
36020 if (PyErr_Occurred()) SWIG_fail;
36021 }
36022 resultobj = SWIG_Py_Void();
36023 return resultobj;
36024 fail:
36025 return NULL;
36026 }
36027
36028
36029 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36030 PyObject *resultobj = 0;
36031 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36032 void *argp1 = 0 ;
36033 int res1 = 0 ;
36034 PyObject *swig_obj[1] ;
36035
36036 if (!args) SWIG_fail;
36037 swig_obj[0] = args;
36038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36039 if (!SWIG_IsOK(res1)) {
36040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36041 }
36042 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36043 {
36044 PyThreadState* __tstate = wxPyBeginAllowThreads();
36045 (arg1)->DeleteAllItems();
36046 wxPyEndAllowThreads(__tstate);
36047 if (PyErr_Occurred()) SWIG_fail;
36048 }
36049 resultobj = SWIG_Py_Void();
36050 return resultobj;
36051 fail:
36052 return NULL;
36053 }
36054
36055
36056 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36057 PyObject *resultobj = 0;
36058 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36059 wxTreeItemId *arg2 = 0 ;
36060 void *argp1 = 0 ;
36061 int res1 = 0 ;
36062 void *argp2 = 0 ;
36063 int res2 = 0 ;
36064 PyObject * obj0 = 0 ;
36065 PyObject * obj1 = 0 ;
36066 char * kwnames[] = {
36067 (char *) "self",(char *) "item", NULL
36068 };
36069
36070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36072 if (!SWIG_IsOK(res1)) {
36073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36074 }
36075 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36077 if (!SWIG_IsOK(res2)) {
36078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36079 }
36080 if (!argp2) {
36081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36082 }
36083 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36084 {
36085 PyThreadState* __tstate = wxPyBeginAllowThreads();
36086 (arg1)->Expand((wxTreeItemId const &)*arg2);
36087 wxPyEndAllowThreads(__tstate);
36088 if (PyErr_Occurred()) SWIG_fail;
36089 }
36090 resultobj = SWIG_Py_Void();
36091 return resultobj;
36092 fail:
36093 return NULL;
36094 }
36095
36096
36097 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36098 PyObject *resultobj = 0;
36099 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36100 wxTreeItemId *arg2 = 0 ;
36101 void *argp1 = 0 ;
36102 int res1 = 0 ;
36103 void *argp2 = 0 ;
36104 int res2 = 0 ;
36105 PyObject * obj0 = 0 ;
36106 PyObject * obj1 = 0 ;
36107 char * kwnames[] = {
36108 (char *) "self",(char *) "item", NULL
36109 };
36110
36111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36113 if (!SWIG_IsOK(res1)) {
36114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36115 }
36116 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36118 if (!SWIG_IsOK(res2)) {
36119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36120 }
36121 if (!argp2) {
36122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36123 }
36124 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36125 {
36126 PyThreadState* __tstate = wxPyBeginAllowThreads();
36127 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36128 wxPyEndAllowThreads(__tstate);
36129 if (PyErr_Occurred()) SWIG_fail;
36130 }
36131 resultobj = SWIG_Py_Void();
36132 return resultobj;
36133 fail:
36134 return NULL;
36135 }
36136
36137
36138 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36139 PyObject *resultobj = 0;
36140 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36141 wxTreeItemId *arg2 = 0 ;
36142 void *argp1 = 0 ;
36143 int res1 = 0 ;
36144 void *argp2 = 0 ;
36145 int res2 = 0 ;
36146 PyObject * obj0 = 0 ;
36147 PyObject * obj1 = 0 ;
36148 char * kwnames[] = {
36149 (char *) "self",(char *) "item", NULL
36150 };
36151
36152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36154 if (!SWIG_IsOK(res1)) {
36155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36156 }
36157 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36159 if (!SWIG_IsOK(res2)) {
36160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36161 }
36162 if (!argp2) {
36163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36164 }
36165 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36166 {
36167 PyThreadState* __tstate = wxPyBeginAllowThreads();
36168 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36169 wxPyEndAllowThreads(__tstate);
36170 if (PyErr_Occurred()) SWIG_fail;
36171 }
36172 resultobj = SWIG_Py_Void();
36173 return resultobj;
36174 fail:
36175 return NULL;
36176 }
36177
36178
36179 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36180 PyObject *resultobj = 0;
36181 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36182 wxTreeItemId *arg2 = 0 ;
36183 void *argp1 = 0 ;
36184 int res1 = 0 ;
36185 void *argp2 = 0 ;
36186 int res2 = 0 ;
36187 PyObject * obj0 = 0 ;
36188 PyObject * obj1 = 0 ;
36189 char * kwnames[] = {
36190 (char *) "self",(char *) "item", NULL
36191 };
36192
36193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36195 if (!SWIG_IsOK(res1)) {
36196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36197 }
36198 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36199 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36200 if (!SWIG_IsOK(res2)) {
36201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36202 }
36203 if (!argp2) {
36204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36205 }
36206 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36207 {
36208 PyThreadState* __tstate = wxPyBeginAllowThreads();
36209 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36210 wxPyEndAllowThreads(__tstate);
36211 if (PyErr_Occurred()) SWIG_fail;
36212 }
36213 resultobj = SWIG_Py_Void();
36214 return resultobj;
36215 fail:
36216 return NULL;
36217 }
36218
36219
36220 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36221 PyObject *resultobj = 0;
36222 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36223 void *argp1 = 0 ;
36224 int res1 = 0 ;
36225 PyObject *swig_obj[1] ;
36226
36227 if (!args) SWIG_fail;
36228 swig_obj[0] = args;
36229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36230 if (!SWIG_IsOK(res1)) {
36231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36232 }
36233 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36234 {
36235 PyThreadState* __tstate = wxPyBeginAllowThreads();
36236 (arg1)->Unselect();
36237 wxPyEndAllowThreads(__tstate);
36238 if (PyErr_Occurred()) SWIG_fail;
36239 }
36240 resultobj = SWIG_Py_Void();
36241 return resultobj;
36242 fail:
36243 return NULL;
36244 }
36245
36246
36247 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36248 PyObject *resultobj = 0;
36249 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36250 wxTreeItemId *arg2 = 0 ;
36251 void *argp1 = 0 ;
36252 int res1 = 0 ;
36253 void *argp2 = 0 ;
36254 int res2 = 0 ;
36255 PyObject * obj0 = 0 ;
36256 PyObject * obj1 = 0 ;
36257 char * kwnames[] = {
36258 (char *) "self",(char *) "item", NULL
36259 };
36260
36261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36263 if (!SWIG_IsOK(res1)) {
36264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36265 }
36266 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36267 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36268 if (!SWIG_IsOK(res2)) {
36269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36270 }
36271 if (!argp2) {
36272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36273 }
36274 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36275 {
36276 PyThreadState* __tstate = wxPyBeginAllowThreads();
36277 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36278 wxPyEndAllowThreads(__tstate);
36279 if (PyErr_Occurred()) SWIG_fail;
36280 }
36281 resultobj = SWIG_Py_Void();
36282 return resultobj;
36283 fail:
36284 return NULL;
36285 }
36286
36287
36288 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36289 PyObject *resultobj = 0;
36290 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36291 void *argp1 = 0 ;
36292 int res1 = 0 ;
36293 PyObject *swig_obj[1] ;
36294
36295 if (!args) SWIG_fail;
36296 swig_obj[0] = args;
36297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36298 if (!SWIG_IsOK(res1)) {
36299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36300 }
36301 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36302 {
36303 PyThreadState* __tstate = wxPyBeginAllowThreads();
36304 (arg1)->UnselectAll();
36305 wxPyEndAllowThreads(__tstate);
36306 if (PyErr_Occurred()) SWIG_fail;
36307 }
36308 resultobj = SWIG_Py_Void();
36309 return resultobj;
36310 fail:
36311 return NULL;
36312 }
36313
36314
36315 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36316 PyObject *resultobj = 0;
36317 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36318 wxTreeItemId *arg2 = 0 ;
36319 bool arg3 = (bool) true ;
36320 void *argp1 = 0 ;
36321 int res1 = 0 ;
36322 void *argp2 = 0 ;
36323 int res2 = 0 ;
36324 bool val3 ;
36325 int ecode3 = 0 ;
36326 PyObject * obj0 = 0 ;
36327 PyObject * obj1 = 0 ;
36328 PyObject * obj2 = 0 ;
36329 char * kwnames[] = {
36330 (char *) "self",(char *) "item",(char *) "select", NULL
36331 };
36332
36333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36335 if (!SWIG_IsOK(res1)) {
36336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36337 }
36338 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36340 if (!SWIG_IsOK(res2)) {
36341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36342 }
36343 if (!argp2) {
36344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36345 }
36346 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36347 if (obj2) {
36348 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36349 if (!SWIG_IsOK(ecode3)) {
36350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36351 }
36352 arg3 = static_cast< bool >(val3);
36353 }
36354 {
36355 PyThreadState* __tstate = wxPyBeginAllowThreads();
36356 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36357 wxPyEndAllowThreads(__tstate);
36358 if (PyErr_Occurred()) SWIG_fail;
36359 }
36360 resultobj = SWIG_Py_Void();
36361 return resultobj;
36362 fail:
36363 return NULL;
36364 }
36365
36366
36367 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36368 PyObject *resultobj = 0;
36369 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36370 wxTreeItemId *arg2 = 0 ;
36371 void *argp1 = 0 ;
36372 int res1 = 0 ;
36373 void *argp2 = 0 ;
36374 int res2 = 0 ;
36375 PyObject * obj0 = 0 ;
36376 PyObject * obj1 = 0 ;
36377 char * kwnames[] = {
36378 (char *) "self",(char *) "item", NULL
36379 };
36380
36381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36383 if (!SWIG_IsOK(res1)) {
36384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36385 }
36386 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36387 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36388 if (!SWIG_IsOK(res2)) {
36389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36390 }
36391 if (!argp2) {
36392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36393 }
36394 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36395 {
36396 PyThreadState* __tstate = wxPyBeginAllowThreads();
36397 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36398 wxPyEndAllowThreads(__tstate);
36399 if (PyErr_Occurred()) SWIG_fail;
36400 }
36401 resultobj = SWIG_Py_Void();
36402 return resultobj;
36403 fail:
36404 return NULL;
36405 }
36406
36407
36408 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36409 PyObject *resultobj = 0;
36410 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36411 wxTreeItemId *arg2 = 0 ;
36412 void *argp1 = 0 ;
36413 int res1 = 0 ;
36414 void *argp2 = 0 ;
36415 int res2 = 0 ;
36416 PyObject * obj0 = 0 ;
36417 PyObject * obj1 = 0 ;
36418 char * kwnames[] = {
36419 (char *) "self",(char *) "item", NULL
36420 };
36421
36422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36424 if (!SWIG_IsOK(res1)) {
36425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36426 }
36427 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36428 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36429 if (!SWIG_IsOK(res2)) {
36430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36431 }
36432 if (!argp2) {
36433 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36434 }
36435 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36436 {
36437 PyThreadState* __tstate = wxPyBeginAllowThreads();
36438 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36439 wxPyEndAllowThreads(__tstate);
36440 if (PyErr_Occurred()) SWIG_fail;
36441 }
36442 resultobj = SWIG_Py_Void();
36443 return resultobj;
36444 fail:
36445 return NULL;
36446 }
36447
36448
36449 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36450 PyObject *resultobj = 0;
36451 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36452 wxTreeItemId *arg2 = 0 ;
36453 void *argp1 = 0 ;
36454 int res1 = 0 ;
36455 void *argp2 = 0 ;
36456 int res2 = 0 ;
36457 PyObject * obj0 = 0 ;
36458 PyObject * obj1 = 0 ;
36459 char * kwnames[] = {
36460 (char *) "self",(char *) "item", NULL
36461 };
36462
36463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36465 if (!SWIG_IsOK(res1)) {
36466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36467 }
36468 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36469 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36470 if (!SWIG_IsOK(res2)) {
36471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36472 }
36473 if (!argp2) {
36474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36475 }
36476 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36477 {
36478 PyThreadState* __tstate = wxPyBeginAllowThreads();
36479 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36480 wxPyEndAllowThreads(__tstate);
36481 if (PyErr_Occurred()) SWIG_fail;
36482 }
36483 resultobj = SWIG_Py_Void();
36484 return resultobj;
36485 fail:
36486 return NULL;
36487 }
36488
36489
36490 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36491 PyObject *resultobj = 0;
36492 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36493 wxTreeItemId *arg2 = 0 ;
36494 void *argp1 = 0 ;
36495 int res1 = 0 ;
36496 void *argp2 = 0 ;
36497 int res2 = 0 ;
36498 PyObject * obj0 = 0 ;
36499 PyObject * obj1 = 0 ;
36500 char * kwnames[] = {
36501 (char *) "self",(char *) "item", NULL
36502 };
36503
36504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36506 if (!SWIG_IsOK(res1)) {
36507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36508 }
36509 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36511 if (!SWIG_IsOK(res2)) {
36512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36513 }
36514 if (!argp2) {
36515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36516 }
36517 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36518 {
36519 PyThreadState* __tstate = wxPyBeginAllowThreads();
36520 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36521 wxPyEndAllowThreads(__tstate);
36522 if (PyErr_Occurred()) SWIG_fail;
36523 }
36524 resultobj = SWIG_Py_Void();
36525 return resultobj;
36526 fail:
36527 return NULL;
36528 }
36529
36530
36531 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36532 PyObject *resultobj = 0;
36533 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36534 wxTextCtrl *result = 0 ;
36535 void *argp1 = 0 ;
36536 int res1 = 0 ;
36537 PyObject *swig_obj[1] ;
36538
36539 if (!args) SWIG_fail;
36540 swig_obj[0] = args;
36541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36542 if (!SWIG_IsOK(res1)) {
36543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36544 }
36545 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36546 {
36547 PyThreadState* __tstate = wxPyBeginAllowThreads();
36548 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36549 wxPyEndAllowThreads(__tstate);
36550 if (PyErr_Occurred()) SWIG_fail;
36551 }
36552 {
36553 resultobj = wxPyMake_wxObject(result, 0);
36554 }
36555 return resultobj;
36556 fail:
36557 return NULL;
36558 }
36559
36560
36561 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36562 PyObject *resultobj = 0;
36563 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36564 wxTreeItemId *arg2 = 0 ;
36565 void *argp1 = 0 ;
36566 int res1 = 0 ;
36567 void *argp2 = 0 ;
36568 int res2 = 0 ;
36569 PyObject * obj0 = 0 ;
36570 PyObject * obj1 = 0 ;
36571 char * kwnames[] = {
36572 (char *) "self",(char *) "item", NULL
36573 };
36574
36575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36577 if (!SWIG_IsOK(res1)) {
36578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36579 }
36580 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36582 if (!SWIG_IsOK(res2)) {
36583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36584 }
36585 if (!argp2) {
36586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36587 }
36588 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36589 {
36590 PyThreadState* __tstate = wxPyBeginAllowThreads();
36591 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36592 wxPyEndAllowThreads(__tstate);
36593 if (PyErr_Occurred()) SWIG_fail;
36594 }
36595 resultobj = SWIG_Py_Void();
36596 return resultobj;
36597 fail:
36598 return NULL;
36599 }
36600
36601
36602 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36603 PyObject *resultobj = 0;
36604 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36605 wxPoint *arg2 = 0 ;
36606 int *arg3 = 0 ;
36607 wxTreeItemId result;
36608 void *argp1 = 0 ;
36609 int res1 = 0 ;
36610 wxPoint temp2 ;
36611 int temp3 ;
36612 int res3 = SWIG_TMPOBJ ;
36613 PyObject * obj0 = 0 ;
36614 PyObject * obj1 = 0 ;
36615 char * kwnames[] = {
36616 (char *) "self",(char *) "point", NULL
36617 };
36618
36619 arg3 = &temp3;
36620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36622 if (!SWIG_IsOK(res1)) {
36623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36624 }
36625 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36626 {
36627 arg2 = &temp2;
36628 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36629 }
36630 {
36631 PyThreadState* __tstate = wxPyBeginAllowThreads();
36632 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36633 wxPyEndAllowThreads(__tstate);
36634 if (PyErr_Occurred()) SWIG_fail;
36635 }
36636 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36637 if (SWIG_IsTmpObj(res3)) {
36638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36639 } else {
36640 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36641 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36642 }
36643 return resultobj;
36644 fail:
36645 return NULL;
36646 }
36647
36648
36649 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36650 PyObject *resultobj = 0;
36651 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36652 wxTreeItemId *arg2 = 0 ;
36653 bool arg3 = (bool) false ;
36654 PyObject *result = 0 ;
36655 void *argp1 = 0 ;
36656 int res1 = 0 ;
36657 void *argp2 = 0 ;
36658 int res2 = 0 ;
36659 bool val3 ;
36660 int ecode3 = 0 ;
36661 PyObject * obj0 = 0 ;
36662 PyObject * obj1 = 0 ;
36663 PyObject * obj2 = 0 ;
36664 char * kwnames[] = {
36665 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36666 };
36667
36668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36670 if (!SWIG_IsOK(res1)) {
36671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36672 }
36673 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36674 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36675 if (!SWIG_IsOK(res2)) {
36676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36677 }
36678 if (!argp2) {
36679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36680 }
36681 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36682 if (obj2) {
36683 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36684 if (!SWIG_IsOK(ecode3)) {
36685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36686 }
36687 arg3 = static_cast< bool >(val3);
36688 }
36689 {
36690 PyThreadState* __tstate = wxPyBeginAllowThreads();
36691 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36692 wxPyEndAllowThreads(__tstate);
36693 if (PyErr_Occurred()) SWIG_fail;
36694 }
36695 resultobj = result;
36696 return resultobj;
36697 fail:
36698 return NULL;
36699 }
36700
36701
36702 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36703 PyObject *resultobj = 0;
36704 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36705 SwigValueWrapper<wxVisualAttributes > result;
36706 int val1 ;
36707 int ecode1 = 0 ;
36708 PyObject * obj0 = 0 ;
36709 char * kwnames[] = {
36710 (char *) "variant", NULL
36711 };
36712
36713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36714 if (obj0) {
36715 ecode1 = SWIG_AsVal_int(obj0, &val1);
36716 if (!SWIG_IsOK(ecode1)) {
36717 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36718 }
36719 arg1 = static_cast< wxWindowVariant >(val1);
36720 }
36721 {
36722 if (!wxPyCheckForApp()) SWIG_fail;
36723 PyThreadState* __tstate = wxPyBeginAllowThreads();
36724 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36725 wxPyEndAllowThreads(__tstate);
36726 if (PyErr_Occurred()) SWIG_fail;
36727 }
36728 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36729 return resultobj;
36730 fail:
36731 return NULL;
36732 }
36733
36734
36735 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36736 PyObject *resultobj = 0;
36737 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36738 bool arg2 ;
36739 void *argp1 = 0 ;
36740 int res1 = 0 ;
36741 bool val2 ;
36742 int ecode2 = 0 ;
36743 PyObject * obj0 = 0 ;
36744 PyObject * obj1 = 0 ;
36745 char * kwnames[] = {
36746 (char *) "self",(char *) "q", NULL
36747 };
36748
36749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
36750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36751 if (!SWIG_IsOK(res1)) {
36752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36753 }
36754 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36755 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36756 if (!SWIG_IsOK(ecode2)) {
36757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
36758 }
36759 arg2 = static_cast< bool >(val2);
36760 {
36761 PyThreadState* __tstate = wxPyBeginAllowThreads();
36762 (arg1)->SetQuickBestSize(arg2);
36763 wxPyEndAllowThreads(__tstate);
36764 if (PyErr_Occurred()) SWIG_fail;
36765 }
36766 resultobj = SWIG_Py_Void();
36767 return resultobj;
36768 fail:
36769 return NULL;
36770 }
36771
36772
36773 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36774 PyObject *resultobj = 0;
36775 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36776 bool result;
36777 void *argp1 = 0 ;
36778 int res1 = 0 ;
36779 PyObject *swig_obj[1] ;
36780
36781 if (!args) SWIG_fail;
36782 swig_obj[0] = args;
36783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36784 if (!SWIG_IsOK(res1)) {
36785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36786 }
36787 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36788 {
36789 PyThreadState* __tstate = wxPyBeginAllowThreads();
36790 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
36791 wxPyEndAllowThreads(__tstate);
36792 if (PyErr_Occurred()) SWIG_fail;
36793 }
36794 {
36795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36796 }
36797 return resultobj;
36798 fail:
36799 return NULL;
36800 }
36801
36802
36803 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36804 PyObject *obj;
36805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36806 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36807 return SWIG_Py_Void();
36808 }
36809
36810 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36811 return SWIG_Python_InitShadowInstance(args);
36812 }
36813
36814 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36815 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36816 return 1;
36817 }
36818
36819
36820 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36821 PyObject *pyobj = 0;
36822
36823 {
36824 #if wxUSE_UNICODE
36825 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36826 #else
36827 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36828 #endif
36829 }
36830 return pyobj;
36831 }
36832
36833
36834 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36835 PyObject *resultobj = 0;
36836 wxWindow *arg1 = (wxWindow *) 0 ;
36837 int arg2 = (int) (int)-1 ;
36838 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36839 wxString *arg3 = (wxString *) &arg3_defvalue ;
36840 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36841 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36842 wxSize const &arg5_defvalue = wxDefaultSize ;
36843 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36844 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36845 wxString const &arg7_defvalue = wxPyEmptyString ;
36846 wxString *arg7 = (wxString *) &arg7_defvalue ;
36847 int arg8 = (int) 0 ;
36848 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36849 wxString *arg9 = (wxString *) &arg9_defvalue ;
36850 wxGenericDirCtrl *result = 0 ;
36851 void *argp1 = 0 ;
36852 int res1 = 0 ;
36853 int val2 ;
36854 int ecode2 = 0 ;
36855 bool temp3 = false ;
36856 wxPoint temp4 ;
36857 wxSize temp5 ;
36858 long val6 ;
36859 int ecode6 = 0 ;
36860 bool temp7 = false ;
36861 int val8 ;
36862 int ecode8 = 0 ;
36863 bool temp9 = false ;
36864 PyObject * obj0 = 0 ;
36865 PyObject * obj1 = 0 ;
36866 PyObject * obj2 = 0 ;
36867 PyObject * obj3 = 0 ;
36868 PyObject * obj4 = 0 ;
36869 PyObject * obj5 = 0 ;
36870 PyObject * obj6 = 0 ;
36871 PyObject * obj7 = 0 ;
36872 PyObject * obj8 = 0 ;
36873 char * kwnames[] = {
36874 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36875 };
36876
36877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36879 if (!SWIG_IsOK(res1)) {
36880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36881 }
36882 arg1 = reinterpret_cast< wxWindow * >(argp1);
36883 if (obj1) {
36884 ecode2 = SWIG_AsVal_int(obj1, &val2);
36885 if (!SWIG_IsOK(ecode2)) {
36886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36887 }
36888 arg2 = static_cast< int >(val2);
36889 }
36890 if (obj2) {
36891 {
36892 arg3 = wxString_in_helper(obj2);
36893 if (arg3 == NULL) SWIG_fail;
36894 temp3 = true;
36895 }
36896 }
36897 if (obj3) {
36898 {
36899 arg4 = &temp4;
36900 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36901 }
36902 }
36903 if (obj4) {
36904 {
36905 arg5 = &temp5;
36906 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36907 }
36908 }
36909 if (obj5) {
36910 ecode6 = SWIG_AsVal_long(obj5, &val6);
36911 if (!SWIG_IsOK(ecode6)) {
36912 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36913 }
36914 arg6 = static_cast< long >(val6);
36915 }
36916 if (obj6) {
36917 {
36918 arg7 = wxString_in_helper(obj6);
36919 if (arg7 == NULL) SWIG_fail;
36920 temp7 = true;
36921 }
36922 }
36923 if (obj7) {
36924 ecode8 = SWIG_AsVal_int(obj7, &val8);
36925 if (!SWIG_IsOK(ecode8)) {
36926 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
36927 }
36928 arg8 = static_cast< int >(val8);
36929 }
36930 if (obj8) {
36931 {
36932 arg9 = wxString_in_helper(obj8);
36933 if (arg9 == NULL) SWIG_fail;
36934 temp9 = true;
36935 }
36936 }
36937 {
36938 if (!wxPyCheckForApp()) SWIG_fail;
36939 PyThreadState* __tstate = wxPyBeginAllowThreads();
36940 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
36941 wxPyEndAllowThreads(__tstate);
36942 if (PyErr_Occurred()) SWIG_fail;
36943 }
36944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
36945 {
36946 if (temp3)
36947 delete arg3;
36948 }
36949 {
36950 if (temp7)
36951 delete arg7;
36952 }
36953 {
36954 if (temp9)
36955 delete arg9;
36956 }
36957 return resultobj;
36958 fail:
36959 {
36960 if (temp3)
36961 delete arg3;
36962 }
36963 {
36964 if (temp7)
36965 delete arg7;
36966 }
36967 {
36968 if (temp9)
36969 delete arg9;
36970 }
36971 return NULL;
36972 }
36973
36974
36975 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36976 PyObject *resultobj = 0;
36977 wxGenericDirCtrl *result = 0 ;
36978
36979 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
36980 {
36981 if (!wxPyCheckForApp()) SWIG_fail;
36982 PyThreadState* __tstate = wxPyBeginAllowThreads();
36983 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
36984 wxPyEndAllowThreads(__tstate);
36985 if (PyErr_Occurred()) SWIG_fail;
36986 }
36987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
36988 return resultobj;
36989 fail:
36990 return NULL;
36991 }
36992
36993
36994 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36995 PyObject *resultobj = 0;
36996 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36997 wxWindow *arg2 = (wxWindow *) 0 ;
36998 int arg3 = (int) (int)-1 ;
36999 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37000 wxString *arg4 = (wxString *) &arg4_defvalue ;
37001 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37002 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37003 wxSize const &arg6_defvalue = wxDefaultSize ;
37004 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37005 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37006 wxString const &arg8_defvalue = wxPyEmptyString ;
37007 wxString *arg8 = (wxString *) &arg8_defvalue ;
37008 int arg9 = (int) 0 ;
37009 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37010 wxString *arg10 = (wxString *) &arg10_defvalue ;
37011 bool result;
37012 void *argp1 = 0 ;
37013 int res1 = 0 ;
37014 void *argp2 = 0 ;
37015 int res2 = 0 ;
37016 int val3 ;
37017 int ecode3 = 0 ;
37018 bool temp4 = false ;
37019 wxPoint temp5 ;
37020 wxSize temp6 ;
37021 long val7 ;
37022 int ecode7 = 0 ;
37023 bool temp8 = false ;
37024 int val9 ;
37025 int ecode9 = 0 ;
37026 bool temp10 = false ;
37027 PyObject * obj0 = 0 ;
37028 PyObject * obj1 = 0 ;
37029 PyObject * obj2 = 0 ;
37030 PyObject * obj3 = 0 ;
37031 PyObject * obj4 = 0 ;
37032 PyObject * obj5 = 0 ;
37033 PyObject * obj6 = 0 ;
37034 PyObject * obj7 = 0 ;
37035 PyObject * obj8 = 0 ;
37036 PyObject * obj9 = 0 ;
37037 char * kwnames[] = {
37038 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37039 };
37040
37041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37043 if (!SWIG_IsOK(res1)) {
37044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37045 }
37046 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37047 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37048 if (!SWIG_IsOK(res2)) {
37049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37050 }
37051 arg2 = reinterpret_cast< wxWindow * >(argp2);
37052 if (obj2) {
37053 ecode3 = SWIG_AsVal_int(obj2, &val3);
37054 if (!SWIG_IsOK(ecode3)) {
37055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37056 }
37057 arg3 = static_cast< int >(val3);
37058 }
37059 if (obj3) {
37060 {
37061 arg4 = wxString_in_helper(obj3);
37062 if (arg4 == NULL) SWIG_fail;
37063 temp4 = true;
37064 }
37065 }
37066 if (obj4) {
37067 {
37068 arg5 = &temp5;
37069 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37070 }
37071 }
37072 if (obj5) {
37073 {
37074 arg6 = &temp6;
37075 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37076 }
37077 }
37078 if (obj6) {
37079 ecode7 = SWIG_AsVal_long(obj6, &val7);
37080 if (!SWIG_IsOK(ecode7)) {
37081 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37082 }
37083 arg7 = static_cast< long >(val7);
37084 }
37085 if (obj7) {
37086 {
37087 arg8 = wxString_in_helper(obj7);
37088 if (arg8 == NULL) SWIG_fail;
37089 temp8 = true;
37090 }
37091 }
37092 if (obj8) {
37093 ecode9 = SWIG_AsVal_int(obj8, &val9);
37094 if (!SWIG_IsOK(ecode9)) {
37095 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37096 }
37097 arg9 = static_cast< int >(val9);
37098 }
37099 if (obj9) {
37100 {
37101 arg10 = wxString_in_helper(obj9);
37102 if (arg10 == NULL) SWIG_fail;
37103 temp10 = true;
37104 }
37105 }
37106 {
37107 PyThreadState* __tstate = wxPyBeginAllowThreads();
37108 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37109 wxPyEndAllowThreads(__tstate);
37110 if (PyErr_Occurred()) SWIG_fail;
37111 }
37112 {
37113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37114 }
37115 {
37116 if (temp4)
37117 delete arg4;
37118 }
37119 {
37120 if (temp8)
37121 delete arg8;
37122 }
37123 {
37124 if (temp10)
37125 delete arg10;
37126 }
37127 return resultobj;
37128 fail:
37129 {
37130 if (temp4)
37131 delete arg4;
37132 }
37133 {
37134 if (temp8)
37135 delete arg8;
37136 }
37137 {
37138 if (temp10)
37139 delete arg10;
37140 }
37141 return NULL;
37142 }
37143
37144
37145 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37146 PyObject *resultobj = 0;
37147 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37148 wxString *arg2 = 0 ;
37149 bool result;
37150 void *argp1 = 0 ;
37151 int res1 = 0 ;
37152 bool temp2 = false ;
37153 PyObject * obj0 = 0 ;
37154 PyObject * obj1 = 0 ;
37155 char * kwnames[] = {
37156 (char *) "self",(char *) "path", NULL
37157 };
37158
37159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37161 if (!SWIG_IsOK(res1)) {
37162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37163 }
37164 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37165 {
37166 arg2 = wxString_in_helper(obj1);
37167 if (arg2 == NULL) SWIG_fail;
37168 temp2 = true;
37169 }
37170 {
37171 PyThreadState* __tstate = wxPyBeginAllowThreads();
37172 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37173 wxPyEndAllowThreads(__tstate);
37174 if (PyErr_Occurred()) SWIG_fail;
37175 }
37176 {
37177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37178 }
37179 {
37180 if (temp2)
37181 delete arg2;
37182 }
37183 return resultobj;
37184 fail:
37185 {
37186 if (temp2)
37187 delete arg2;
37188 }
37189 return NULL;
37190 }
37191
37192
37193 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37194 PyObject *resultobj = 0;
37195 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37196 wxString *arg2 = 0 ;
37197 bool result;
37198 void *argp1 = 0 ;
37199 int res1 = 0 ;
37200 bool temp2 = false ;
37201 PyObject * obj0 = 0 ;
37202 PyObject * obj1 = 0 ;
37203 char * kwnames[] = {
37204 (char *) "self",(char *) "path", NULL
37205 };
37206
37207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37209 if (!SWIG_IsOK(res1)) {
37210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37211 }
37212 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37213 {
37214 arg2 = wxString_in_helper(obj1);
37215 if (arg2 == NULL) SWIG_fail;
37216 temp2 = true;
37217 }
37218 {
37219 PyThreadState* __tstate = wxPyBeginAllowThreads();
37220 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37221 wxPyEndAllowThreads(__tstate);
37222 if (PyErr_Occurred()) SWIG_fail;
37223 }
37224 {
37225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37226 }
37227 {
37228 if (temp2)
37229 delete arg2;
37230 }
37231 return resultobj;
37232 fail:
37233 {
37234 if (temp2)
37235 delete arg2;
37236 }
37237 return NULL;
37238 }
37239
37240
37241 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37242 PyObject *resultobj = 0;
37243 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37244 wxString result;
37245 void *argp1 = 0 ;
37246 int res1 = 0 ;
37247 PyObject *swig_obj[1] ;
37248
37249 if (!args) SWIG_fail;
37250 swig_obj[0] = args;
37251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37252 if (!SWIG_IsOK(res1)) {
37253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37254 }
37255 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37256 {
37257 PyThreadState* __tstate = wxPyBeginAllowThreads();
37258 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37259 wxPyEndAllowThreads(__tstate);
37260 if (PyErr_Occurred()) SWIG_fail;
37261 }
37262 {
37263 #if wxUSE_UNICODE
37264 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37265 #else
37266 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37267 #endif
37268 }
37269 return resultobj;
37270 fail:
37271 return NULL;
37272 }
37273
37274
37275 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37276 PyObject *resultobj = 0;
37277 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37278 wxString *arg2 = 0 ;
37279 void *argp1 = 0 ;
37280 int res1 = 0 ;
37281 bool temp2 = false ;
37282 PyObject * obj0 = 0 ;
37283 PyObject * obj1 = 0 ;
37284 char * kwnames[] = {
37285 (char *) "self",(char *) "path", NULL
37286 };
37287
37288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37290 if (!SWIG_IsOK(res1)) {
37291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37292 }
37293 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37294 {
37295 arg2 = wxString_in_helper(obj1);
37296 if (arg2 == NULL) SWIG_fail;
37297 temp2 = true;
37298 }
37299 {
37300 PyThreadState* __tstate = wxPyBeginAllowThreads();
37301 (arg1)->SetDefaultPath((wxString const &)*arg2);
37302 wxPyEndAllowThreads(__tstate);
37303 if (PyErr_Occurred()) SWIG_fail;
37304 }
37305 resultobj = SWIG_Py_Void();
37306 {
37307 if (temp2)
37308 delete arg2;
37309 }
37310 return resultobj;
37311 fail:
37312 {
37313 if (temp2)
37314 delete arg2;
37315 }
37316 return NULL;
37317 }
37318
37319
37320 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37321 PyObject *resultobj = 0;
37322 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37323 wxString result;
37324 void *argp1 = 0 ;
37325 int res1 = 0 ;
37326 PyObject *swig_obj[1] ;
37327
37328 if (!args) SWIG_fail;
37329 swig_obj[0] = args;
37330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37331 if (!SWIG_IsOK(res1)) {
37332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37333 }
37334 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37335 {
37336 PyThreadState* __tstate = wxPyBeginAllowThreads();
37337 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37338 wxPyEndAllowThreads(__tstate);
37339 if (PyErr_Occurred()) SWIG_fail;
37340 }
37341 {
37342 #if wxUSE_UNICODE
37343 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37344 #else
37345 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37346 #endif
37347 }
37348 return resultobj;
37349 fail:
37350 return NULL;
37351 }
37352
37353
37354 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37355 PyObject *resultobj = 0;
37356 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37357 wxString result;
37358 void *argp1 = 0 ;
37359 int res1 = 0 ;
37360 PyObject *swig_obj[1] ;
37361
37362 if (!args) SWIG_fail;
37363 swig_obj[0] = args;
37364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37365 if (!SWIG_IsOK(res1)) {
37366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37367 }
37368 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37369 {
37370 PyThreadState* __tstate = wxPyBeginAllowThreads();
37371 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37372 wxPyEndAllowThreads(__tstate);
37373 if (PyErr_Occurred()) SWIG_fail;
37374 }
37375 {
37376 #if wxUSE_UNICODE
37377 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37378 #else
37379 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37380 #endif
37381 }
37382 return resultobj;
37383 fail:
37384 return NULL;
37385 }
37386
37387
37388 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37389 PyObject *resultobj = 0;
37390 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37391 wxString *arg2 = 0 ;
37392 void *argp1 = 0 ;
37393 int res1 = 0 ;
37394 bool temp2 = false ;
37395 PyObject * obj0 = 0 ;
37396 PyObject * obj1 = 0 ;
37397 char * kwnames[] = {
37398 (char *) "self",(char *) "path", NULL
37399 };
37400
37401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37403 if (!SWIG_IsOK(res1)) {
37404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37405 }
37406 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37407 {
37408 arg2 = wxString_in_helper(obj1);
37409 if (arg2 == NULL) SWIG_fail;
37410 temp2 = true;
37411 }
37412 {
37413 PyThreadState* __tstate = wxPyBeginAllowThreads();
37414 (arg1)->SetPath((wxString const &)*arg2);
37415 wxPyEndAllowThreads(__tstate);
37416 if (PyErr_Occurred()) SWIG_fail;
37417 }
37418 resultobj = SWIG_Py_Void();
37419 {
37420 if (temp2)
37421 delete arg2;
37422 }
37423 return resultobj;
37424 fail:
37425 {
37426 if (temp2)
37427 delete arg2;
37428 }
37429 return NULL;
37430 }
37431
37432
37433 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37434 PyObject *resultobj = 0;
37435 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37436 bool arg2 ;
37437 void *argp1 = 0 ;
37438 int res1 = 0 ;
37439 bool val2 ;
37440 int ecode2 = 0 ;
37441 PyObject * obj0 = 0 ;
37442 PyObject * obj1 = 0 ;
37443 char * kwnames[] = {
37444 (char *) "self",(char *) "show", NULL
37445 };
37446
37447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37449 if (!SWIG_IsOK(res1)) {
37450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37451 }
37452 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37453 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37454 if (!SWIG_IsOK(ecode2)) {
37455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37456 }
37457 arg2 = static_cast< bool >(val2);
37458 {
37459 PyThreadState* __tstate = wxPyBeginAllowThreads();
37460 (arg1)->ShowHidden(arg2);
37461 wxPyEndAllowThreads(__tstate);
37462 if (PyErr_Occurred()) SWIG_fail;
37463 }
37464 resultobj = SWIG_Py_Void();
37465 return resultobj;
37466 fail:
37467 return NULL;
37468 }
37469
37470
37471 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37472 PyObject *resultobj = 0;
37473 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37474 bool result;
37475 void *argp1 = 0 ;
37476 int res1 = 0 ;
37477 PyObject *swig_obj[1] ;
37478
37479 if (!args) SWIG_fail;
37480 swig_obj[0] = args;
37481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37482 if (!SWIG_IsOK(res1)) {
37483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37484 }
37485 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37486 {
37487 PyThreadState* __tstate = wxPyBeginAllowThreads();
37488 result = (bool)(arg1)->GetShowHidden();
37489 wxPyEndAllowThreads(__tstate);
37490 if (PyErr_Occurred()) SWIG_fail;
37491 }
37492 {
37493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37494 }
37495 return resultobj;
37496 fail:
37497 return NULL;
37498 }
37499
37500
37501 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37502 PyObject *resultobj = 0;
37503 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37504 wxString result;
37505 void *argp1 = 0 ;
37506 int res1 = 0 ;
37507 PyObject *swig_obj[1] ;
37508
37509 if (!args) SWIG_fail;
37510 swig_obj[0] = args;
37511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37512 if (!SWIG_IsOK(res1)) {
37513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37514 }
37515 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37516 {
37517 PyThreadState* __tstate = wxPyBeginAllowThreads();
37518 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37519 wxPyEndAllowThreads(__tstate);
37520 if (PyErr_Occurred()) SWIG_fail;
37521 }
37522 {
37523 #if wxUSE_UNICODE
37524 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37525 #else
37526 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37527 #endif
37528 }
37529 return resultobj;
37530 fail:
37531 return NULL;
37532 }
37533
37534
37535 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37536 PyObject *resultobj = 0;
37537 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37538 wxString *arg2 = 0 ;
37539 void *argp1 = 0 ;
37540 int res1 = 0 ;
37541 bool temp2 = false ;
37542 PyObject * obj0 = 0 ;
37543 PyObject * obj1 = 0 ;
37544 char * kwnames[] = {
37545 (char *) "self",(char *) "filter", NULL
37546 };
37547
37548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37550 if (!SWIG_IsOK(res1)) {
37551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37552 }
37553 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37554 {
37555 arg2 = wxString_in_helper(obj1);
37556 if (arg2 == NULL) SWIG_fail;
37557 temp2 = true;
37558 }
37559 {
37560 PyThreadState* __tstate = wxPyBeginAllowThreads();
37561 (arg1)->SetFilter((wxString const &)*arg2);
37562 wxPyEndAllowThreads(__tstate);
37563 if (PyErr_Occurred()) SWIG_fail;
37564 }
37565 resultobj = SWIG_Py_Void();
37566 {
37567 if (temp2)
37568 delete arg2;
37569 }
37570 return resultobj;
37571 fail:
37572 {
37573 if (temp2)
37574 delete arg2;
37575 }
37576 return NULL;
37577 }
37578
37579
37580 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37581 PyObject *resultobj = 0;
37582 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37583 int result;
37584 void *argp1 = 0 ;
37585 int res1 = 0 ;
37586 PyObject *swig_obj[1] ;
37587
37588 if (!args) SWIG_fail;
37589 swig_obj[0] = args;
37590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37591 if (!SWIG_IsOK(res1)) {
37592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37593 }
37594 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37595 {
37596 PyThreadState* __tstate = wxPyBeginAllowThreads();
37597 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37598 wxPyEndAllowThreads(__tstate);
37599 if (PyErr_Occurred()) SWIG_fail;
37600 }
37601 resultobj = SWIG_From_int(static_cast< int >(result));
37602 return resultobj;
37603 fail:
37604 return NULL;
37605 }
37606
37607
37608 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37609 PyObject *resultobj = 0;
37610 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37611 int arg2 ;
37612 void *argp1 = 0 ;
37613 int res1 = 0 ;
37614 int val2 ;
37615 int ecode2 = 0 ;
37616 PyObject * obj0 = 0 ;
37617 PyObject * obj1 = 0 ;
37618 char * kwnames[] = {
37619 (char *) "self",(char *) "n", NULL
37620 };
37621
37622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37624 if (!SWIG_IsOK(res1)) {
37625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37626 }
37627 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37628 ecode2 = SWIG_AsVal_int(obj1, &val2);
37629 if (!SWIG_IsOK(ecode2)) {
37630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37631 }
37632 arg2 = static_cast< int >(val2);
37633 {
37634 PyThreadState* __tstate = wxPyBeginAllowThreads();
37635 (arg1)->SetFilterIndex(arg2);
37636 wxPyEndAllowThreads(__tstate);
37637 if (PyErr_Occurred()) SWIG_fail;
37638 }
37639 resultobj = SWIG_Py_Void();
37640 return resultobj;
37641 fail:
37642 return NULL;
37643 }
37644
37645
37646 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37647 PyObject *resultobj = 0;
37648 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37649 wxTreeItemId result;
37650 void *argp1 = 0 ;
37651 int res1 = 0 ;
37652 PyObject *swig_obj[1] ;
37653
37654 if (!args) SWIG_fail;
37655 swig_obj[0] = args;
37656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37657 if (!SWIG_IsOK(res1)) {
37658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37659 }
37660 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37661 {
37662 PyThreadState* __tstate = wxPyBeginAllowThreads();
37663 result = (arg1)->GetRootId();
37664 wxPyEndAllowThreads(__tstate);
37665 if (PyErr_Occurred()) SWIG_fail;
37666 }
37667 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37668 return resultobj;
37669 fail:
37670 return NULL;
37671 }
37672
37673
37674 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37675 PyObject *resultobj = 0;
37676 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37677 wxPyTreeCtrl *result = 0 ;
37678 void *argp1 = 0 ;
37679 int res1 = 0 ;
37680 PyObject *swig_obj[1] ;
37681
37682 if (!args) SWIG_fail;
37683 swig_obj[0] = args;
37684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37685 if (!SWIG_IsOK(res1)) {
37686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37687 }
37688 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37689 {
37690 PyThreadState* __tstate = wxPyBeginAllowThreads();
37691 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37692 wxPyEndAllowThreads(__tstate);
37693 if (PyErr_Occurred()) SWIG_fail;
37694 }
37695 {
37696 resultobj = wxPyMake_wxObject(result, 0);
37697 }
37698 return resultobj;
37699 fail:
37700 return NULL;
37701 }
37702
37703
37704 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37705 PyObject *resultobj = 0;
37706 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37707 wxDirFilterListCtrl *result = 0 ;
37708 void *argp1 = 0 ;
37709 int res1 = 0 ;
37710 PyObject *swig_obj[1] ;
37711
37712 if (!args) SWIG_fail;
37713 swig_obj[0] = args;
37714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37715 if (!SWIG_IsOK(res1)) {
37716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37717 }
37718 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37719 {
37720 PyThreadState* __tstate = wxPyBeginAllowThreads();
37721 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37722 wxPyEndAllowThreads(__tstate);
37723 if (PyErr_Occurred()) SWIG_fail;
37724 }
37725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37726 return resultobj;
37727 fail:
37728 return NULL;
37729 }
37730
37731
37732 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37733 PyObject *resultobj = 0;
37734 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37735 wxTreeItemId arg2 ;
37736 wxString *arg3 = 0 ;
37737 bool *arg4 = 0 ;
37738 wxTreeItemId result;
37739 void *argp1 = 0 ;
37740 int res1 = 0 ;
37741 void *argp2 ;
37742 int res2 = 0 ;
37743 bool temp3 = false ;
37744 bool temp4 ;
37745 int res4 = SWIG_TMPOBJ ;
37746 PyObject * obj0 = 0 ;
37747 PyObject * obj1 = 0 ;
37748 PyObject * obj2 = 0 ;
37749 char * kwnames[] = {
37750 (char *) "self",(char *) "parentId",(char *) "path", NULL
37751 };
37752
37753 arg4 = &temp4;
37754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37756 if (!SWIG_IsOK(res1)) {
37757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37758 }
37759 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37760 {
37761 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37762 if (!SWIG_IsOK(res2)) {
37763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37764 }
37765 if (!argp2) {
37766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37767 } else {
37768 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37769 arg2 = *temp;
37770 if (SWIG_IsNewObj(res2)) delete temp;
37771 }
37772 }
37773 {
37774 arg3 = wxString_in_helper(obj2);
37775 if (arg3 == NULL) SWIG_fail;
37776 temp3 = true;
37777 }
37778 {
37779 PyThreadState* __tstate = wxPyBeginAllowThreads();
37780 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37781 wxPyEndAllowThreads(__tstate);
37782 if (PyErr_Occurred()) SWIG_fail;
37783 }
37784 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37785 if (SWIG_IsTmpObj(res4)) {
37786 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37787 } else {
37788 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37789 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37790 }
37791 {
37792 if (temp3)
37793 delete arg3;
37794 }
37795 return resultobj;
37796 fail:
37797 {
37798 if (temp3)
37799 delete arg3;
37800 }
37801 return NULL;
37802 }
37803
37804
37805 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37806 PyObject *resultobj = 0;
37807 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37808 void *argp1 = 0 ;
37809 int res1 = 0 ;
37810 PyObject *swig_obj[1] ;
37811
37812 if (!args) SWIG_fail;
37813 swig_obj[0] = args;
37814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37815 if (!SWIG_IsOK(res1)) {
37816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37817 }
37818 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37819 {
37820 PyThreadState* __tstate = wxPyBeginAllowThreads();
37821 (arg1)->DoResize();
37822 wxPyEndAllowThreads(__tstate);
37823 if (PyErr_Occurred()) SWIG_fail;
37824 }
37825 resultobj = SWIG_Py_Void();
37826 return resultobj;
37827 fail:
37828 return NULL;
37829 }
37830
37831
37832 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37833 PyObject *resultobj = 0;
37834 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37835 void *argp1 = 0 ;
37836 int res1 = 0 ;
37837 PyObject *swig_obj[1] ;
37838
37839 if (!args) SWIG_fail;
37840 swig_obj[0] = args;
37841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37842 if (!SWIG_IsOK(res1)) {
37843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37844 }
37845 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37846 {
37847 PyThreadState* __tstate = wxPyBeginAllowThreads();
37848 (arg1)->ReCreateTree();
37849 wxPyEndAllowThreads(__tstate);
37850 if (PyErr_Occurred()) SWIG_fail;
37851 }
37852 resultobj = SWIG_Py_Void();
37853 return resultobj;
37854 fail:
37855 return NULL;
37856 }
37857
37858
37859 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37860 PyObject *obj;
37861 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37862 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37863 return SWIG_Py_Void();
37864 }
37865
37866 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37867 return SWIG_Python_InitShadowInstance(args);
37868 }
37869
37870 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37871 PyObject *resultobj = 0;
37872 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37873 int arg2 = (int) (int)-1 ;
37874 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37875 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37876 wxSize const &arg4_defvalue = wxDefaultSize ;
37877 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37878 long arg5 = (long) 0 ;
37879 wxDirFilterListCtrl *result = 0 ;
37880 void *argp1 = 0 ;
37881 int res1 = 0 ;
37882 int val2 ;
37883 int ecode2 = 0 ;
37884 wxPoint temp3 ;
37885 wxSize temp4 ;
37886 long val5 ;
37887 int ecode5 = 0 ;
37888 PyObject * obj0 = 0 ;
37889 PyObject * obj1 = 0 ;
37890 PyObject * obj2 = 0 ;
37891 PyObject * obj3 = 0 ;
37892 PyObject * obj4 = 0 ;
37893 char * kwnames[] = {
37894 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37895 };
37896
37897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37899 if (!SWIG_IsOK(res1)) {
37900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37901 }
37902 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37903 if (obj1) {
37904 ecode2 = SWIG_AsVal_int(obj1, &val2);
37905 if (!SWIG_IsOK(ecode2)) {
37906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37907 }
37908 arg2 = static_cast< int >(val2);
37909 }
37910 if (obj2) {
37911 {
37912 arg3 = &temp3;
37913 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37914 }
37915 }
37916 if (obj3) {
37917 {
37918 arg4 = &temp4;
37919 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37920 }
37921 }
37922 if (obj4) {
37923 ecode5 = SWIG_AsVal_long(obj4, &val5);
37924 if (!SWIG_IsOK(ecode5)) {
37925 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37926 }
37927 arg5 = static_cast< long >(val5);
37928 }
37929 {
37930 if (!wxPyCheckForApp()) SWIG_fail;
37931 PyThreadState* __tstate = wxPyBeginAllowThreads();
37932 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37933 wxPyEndAllowThreads(__tstate);
37934 if (PyErr_Occurred()) SWIG_fail;
37935 }
37936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37937 return resultobj;
37938 fail:
37939 return NULL;
37940 }
37941
37942
37943 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37944 PyObject *resultobj = 0;
37945 wxDirFilterListCtrl *result = 0 ;
37946
37947 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37948 {
37949 if (!wxPyCheckForApp()) SWIG_fail;
37950 PyThreadState* __tstate = wxPyBeginAllowThreads();
37951 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37952 wxPyEndAllowThreads(__tstate);
37953 if (PyErr_Occurred()) SWIG_fail;
37954 }
37955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37956 return resultobj;
37957 fail:
37958 return NULL;
37959 }
37960
37961
37962 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37963 PyObject *resultobj = 0;
37964 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37965 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37966 int arg3 = (int) (int)-1 ;
37967 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37968 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37969 wxSize const &arg5_defvalue = wxDefaultSize ;
37970 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37971 long arg6 = (long) 0 ;
37972 bool result;
37973 void *argp1 = 0 ;
37974 int res1 = 0 ;
37975 void *argp2 = 0 ;
37976 int res2 = 0 ;
37977 int val3 ;
37978 int ecode3 = 0 ;
37979 wxPoint temp4 ;
37980 wxSize temp5 ;
37981 long val6 ;
37982 int ecode6 = 0 ;
37983 PyObject * obj0 = 0 ;
37984 PyObject * obj1 = 0 ;
37985 PyObject * obj2 = 0 ;
37986 PyObject * obj3 = 0 ;
37987 PyObject * obj4 = 0 ;
37988 PyObject * obj5 = 0 ;
37989 char * kwnames[] = {
37990 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37991 };
37992
37993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37995 if (!SWIG_IsOK(res1)) {
37996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37997 }
37998 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37999 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38000 if (!SWIG_IsOK(res2)) {
38001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38002 }
38003 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38004 if (obj2) {
38005 ecode3 = SWIG_AsVal_int(obj2, &val3);
38006 if (!SWIG_IsOK(ecode3)) {
38007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38008 }
38009 arg3 = static_cast< int >(val3);
38010 }
38011 if (obj3) {
38012 {
38013 arg4 = &temp4;
38014 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38015 }
38016 }
38017 if (obj4) {
38018 {
38019 arg5 = &temp5;
38020 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38021 }
38022 }
38023 if (obj5) {
38024 ecode6 = SWIG_AsVal_long(obj5, &val6);
38025 if (!SWIG_IsOK(ecode6)) {
38026 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38027 }
38028 arg6 = static_cast< long >(val6);
38029 }
38030 {
38031 PyThreadState* __tstate = wxPyBeginAllowThreads();
38032 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38033 wxPyEndAllowThreads(__tstate);
38034 if (PyErr_Occurred()) SWIG_fail;
38035 }
38036 {
38037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38038 }
38039 return resultobj;
38040 fail:
38041 return NULL;
38042 }
38043
38044
38045 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38046 PyObject *resultobj = 0;
38047 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38048 wxString *arg2 = 0 ;
38049 int arg3 ;
38050 void *argp1 = 0 ;
38051 int res1 = 0 ;
38052 bool temp2 = false ;
38053 int val3 ;
38054 int ecode3 = 0 ;
38055 PyObject * obj0 = 0 ;
38056 PyObject * obj1 = 0 ;
38057 PyObject * obj2 = 0 ;
38058 char * kwnames[] = {
38059 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38060 };
38061
38062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38064 if (!SWIG_IsOK(res1)) {
38065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38066 }
38067 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38068 {
38069 arg2 = wxString_in_helper(obj1);
38070 if (arg2 == NULL) SWIG_fail;
38071 temp2 = true;
38072 }
38073 ecode3 = SWIG_AsVal_int(obj2, &val3);
38074 if (!SWIG_IsOK(ecode3)) {
38075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38076 }
38077 arg3 = static_cast< int >(val3);
38078 {
38079 PyThreadState* __tstate = wxPyBeginAllowThreads();
38080 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38081 wxPyEndAllowThreads(__tstate);
38082 if (PyErr_Occurred()) SWIG_fail;
38083 }
38084 resultobj = SWIG_Py_Void();
38085 {
38086 if (temp2)
38087 delete arg2;
38088 }
38089 return resultobj;
38090 fail:
38091 {
38092 if (temp2)
38093 delete arg2;
38094 }
38095 return NULL;
38096 }
38097
38098
38099 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38100 PyObject *obj;
38101 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38102 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38103 return SWIG_Py_Void();
38104 }
38105
38106 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38107 return SWIG_Python_InitShadowInstance(args);
38108 }
38109
38110 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38111 PyObject *resultobj = 0;
38112 wxWindow *arg1 = (wxWindow *) 0 ;
38113 int arg2 = (int) (int)-1 ;
38114 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38115 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38116 wxSize const &arg4_defvalue = wxDefaultSize ;
38117 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38118 long arg5 = (long) 0 ;
38119 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38120 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38121 wxString const &arg7_defvalue = wxPyControlNameStr ;
38122 wxString *arg7 = (wxString *) &arg7_defvalue ;
38123 wxPyControl *result = 0 ;
38124 void *argp1 = 0 ;
38125 int res1 = 0 ;
38126 int val2 ;
38127 int ecode2 = 0 ;
38128 wxPoint temp3 ;
38129 wxSize temp4 ;
38130 long val5 ;
38131 int ecode5 = 0 ;
38132 void *argp6 = 0 ;
38133 int res6 = 0 ;
38134 bool temp7 = false ;
38135 PyObject * obj0 = 0 ;
38136 PyObject * obj1 = 0 ;
38137 PyObject * obj2 = 0 ;
38138 PyObject * obj3 = 0 ;
38139 PyObject * obj4 = 0 ;
38140 PyObject * obj5 = 0 ;
38141 PyObject * obj6 = 0 ;
38142 char * kwnames[] = {
38143 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38144 };
38145
38146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38148 if (!SWIG_IsOK(res1)) {
38149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38150 }
38151 arg1 = reinterpret_cast< wxWindow * >(argp1);
38152 if (obj1) {
38153 ecode2 = SWIG_AsVal_int(obj1, &val2);
38154 if (!SWIG_IsOK(ecode2)) {
38155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38156 }
38157 arg2 = static_cast< int >(val2);
38158 }
38159 if (obj2) {
38160 {
38161 arg3 = &temp3;
38162 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38163 }
38164 }
38165 if (obj3) {
38166 {
38167 arg4 = &temp4;
38168 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38169 }
38170 }
38171 if (obj4) {
38172 ecode5 = SWIG_AsVal_long(obj4, &val5);
38173 if (!SWIG_IsOK(ecode5)) {
38174 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38175 }
38176 arg5 = static_cast< long >(val5);
38177 }
38178 if (obj5) {
38179 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38180 if (!SWIG_IsOK(res6)) {
38181 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38182 }
38183 if (!argp6) {
38184 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38185 }
38186 arg6 = reinterpret_cast< wxValidator * >(argp6);
38187 }
38188 if (obj6) {
38189 {
38190 arg7 = wxString_in_helper(obj6);
38191 if (arg7 == NULL) SWIG_fail;
38192 temp7 = true;
38193 }
38194 }
38195 {
38196 if (!wxPyCheckForApp()) SWIG_fail;
38197 PyThreadState* __tstate = wxPyBeginAllowThreads();
38198 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38199 wxPyEndAllowThreads(__tstate);
38200 if (PyErr_Occurred()) SWIG_fail;
38201 }
38202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38203 {
38204 if (temp7)
38205 delete arg7;
38206 }
38207 return resultobj;
38208 fail:
38209 {
38210 if (temp7)
38211 delete arg7;
38212 }
38213 return NULL;
38214 }
38215
38216
38217 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38218 PyObject *resultobj = 0;
38219 wxPyControl *result = 0 ;
38220
38221 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38222 {
38223 if (!wxPyCheckForApp()) SWIG_fail;
38224 PyThreadState* __tstate = wxPyBeginAllowThreads();
38225 result = (wxPyControl *)new wxPyControl();
38226 wxPyEndAllowThreads(__tstate);
38227 if (PyErr_Occurred()) SWIG_fail;
38228 }
38229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38230 return resultobj;
38231 fail:
38232 return NULL;
38233 }
38234
38235
38236 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38237 PyObject *resultobj = 0;
38238 wxPyControl *arg1 = (wxPyControl *) 0 ;
38239 PyObject *arg2 = (PyObject *) 0 ;
38240 PyObject *arg3 = (PyObject *) 0 ;
38241 void *argp1 = 0 ;
38242 int res1 = 0 ;
38243 PyObject * obj0 = 0 ;
38244 PyObject * obj1 = 0 ;
38245 PyObject * obj2 = 0 ;
38246 char * kwnames[] = {
38247 (char *) "self",(char *) "self",(char *) "_class", NULL
38248 };
38249
38250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38252 if (!SWIG_IsOK(res1)) {
38253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38254 }
38255 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38256 arg2 = obj1;
38257 arg3 = obj2;
38258 {
38259 PyThreadState* __tstate = wxPyBeginAllowThreads();
38260 (arg1)->_setCallbackInfo(arg2,arg3);
38261 wxPyEndAllowThreads(__tstate);
38262 if (PyErr_Occurred()) SWIG_fail;
38263 }
38264 resultobj = SWIG_Py_Void();
38265 return resultobj;
38266 fail:
38267 return NULL;
38268 }
38269
38270
38271 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38272 PyObject *resultobj = 0;
38273 wxPyControl *arg1 = (wxPyControl *) 0 ;
38274 wxSize *arg2 = 0 ;
38275 void *argp1 = 0 ;
38276 int res1 = 0 ;
38277 wxSize temp2 ;
38278 PyObject * obj0 = 0 ;
38279 PyObject * obj1 = 0 ;
38280 char * kwnames[] = {
38281 (char *) "self",(char *) "size", NULL
38282 };
38283
38284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38286 if (!SWIG_IsOK(res1)) {
38287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38288 }
38289 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38290 {
38291 arg2 = &temp2;
38292 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38293 }
38294 {
38295 PyThreadState* __tstate = wxPyBeginAllowThreads();
38296 (arg1)->SetBestSize((wxSize const &)*arg2);
38297 wxPyEndAllowThreads(__tstate);
38298 if (PyErr_Occurred()) SWIG_fail;
38299 }
38300 resultobj = SWIG_Py_Void();
38301 return resultobj;
38302 fail:
38303 return NULL;
38304 }
38305
38306
38307 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38308 PyObject *resultobj = 0;
38309 wxPyControl *arg1 = (wxPyControl *) 0 ;
38310 wxDC *arg2 = (wxDC *) 0 ;
38311 bool result;
38312 void *argp1 = 0 ;
38313 int res1 = 0 ;
38314 void *argp2 = 0 ;
38315 int res2 = 0 ;
38316 PyObject * obj0 = 0 ;
38317 PyObject * obj1 = 0 ;
38318 char * kwnames[] = {
38319 (char *) "self",(char *) "dc", NULL
38320 };
38321
38322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38324 if (!SWIG_IsOK(res1)) {
38325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38326 }
38327 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38328 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38329 if (!SWIG_IsOK(res2)) {
38330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38331 }
38332 arg2 = reinterpret_cast< wxDC * >(argp2);
38333 {
38334 PyThreadState* __tstate = wxPyBeginAllowThreads();
38335 result = (bool)(arg1)->DoEraseBackground(arg2);
38336 wxPyEndAllowThreads(__tstate);
38337 if (PyErr_Occurred()) SWIG_fail;
38338 }
38339 {
38340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38341 }
38342 return resultobj;
38343 fail:
38344 return NULL;
38345 }
38346
38347
38348 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38349 PyObject *resultobj = 0;
38350 wxPyControl *arg1 = (wxPyControl *) 0 ;
38351 int arg2 ;
38352 int arg3 ;
38353 int arg4 ;
38354 int arg5 ;
38355 void *argp1 = 0 ;
38356 int res1 = 0 ;
38357 int val2 ;
38358 int ecode2 = 0 ;
38359 int val3 ;
38360 int ecode3 = 0 ;
38361 int val4 ;
38362 int ecode4 = 0 ;
38363 int val5 ;
38364 int ecode5 = 0 ;
38365 PyObject * obj0 = 0 ;
38366 PyObject * obj1 = 0 ;
38367 PyObject * obj2 = 0 ;
38368 PyObject * obj3 = 0 ;
38369 PyObject * obj4 = 0 ;
38370 char * kwnames[] = {
38371 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38372 };
38373
38374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38376 if (!SWIG_IsOK(res1)) {
38377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38378 }
38379 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38380 ecode2 = SWIG_AsVal_int(obj1, &val2);
38381 if (!SWIG_IsOK(ecode2)) {
38382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38383 }
38384 arg2 = static_cast< int >(val2);
38385 ecode3 = SWIG_AsVal_int(obj2, &val3);
38386 if (!SWIG_IsOK(ecode3)) {
38387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38388 }
38389 arg3 = static_cast< int >(val3);
38390 ecode4 = SWIG_AsVal_int(obj3, &val4);
38391 if (!SWIG_IsOK(ecode4)) {
38392 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38393 }
38394 arg4 = static_cast< int >(val4);
38395 ecode5 = SWIG_AsVal_int(obj4, &val5);
38396 if (!SWIG_IsOK(ecode5)) {
38397 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38398 }
38399 arg5 = static_cast< int >(val5);
38400 {
38401 PyThreadState* __tstate = wxPyBeginAllowThreads();
38402 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38403 wxPyEndAllowThreads(__tstate);
38404 if (PyErr_Occurred()) SWIG_fail;
38405 }
38406 resultobj = SWIG_Py_Void();
38407 return resultobj;
38408 fail:
38409 return NULL;
38410 }
38411
38412
38413 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38414 PyObject *resultobj = 0;
38415 wxPyControl *arg1 = (wxPyControl *) 0 ;
38416 int arg2 ;
38417 int arg3 ;
38418 int arg4 ;
38419 int arg5 ;
38420 int arg6 = (int) wxSIZE_AUTO ;
38421 void *argp1 = 0 ;
38422 int res1 = 0 ;
38423 int val2 ;
38424 int ecode2 = 0 ;
38425 int val3 ;
38426 int ecode3 = 0 ;
38427 int val4 ;
38428 int ecode4 = 0 ;
38429 int val5 ;
38430 int ecode5 = 0 ;
38431 int val6 ;
38432 int ecode6 = 0 ;
38433 PyObject * obj0 = 0 ;
38434 PyObject * obj1 = 0 ;
38435 PyObject * obj2 = 0 ;
38436 PyObject * obj3 = 0 ;
38437 PyObject * obj4 = 0 ;
38438 PyObject * obj5 = 0 ;
38439 char * kwnames[] = {
38440 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38441 };
38442
38443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_DoSetSize" "', 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_DoSetSize" "', 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_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38457 }
38458 arg3 = static_cast< int >(val3);
38459 ecode4 = SWIG_AsVal_int(obj3, &val4);
38460 if (!SWIG_IsOK(ecode4)) {
38461 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38462 }
38463 arg4 = static_cast< int >(val4);
38464 ecode5 = SWIG_AsVal_int(obj4, &val5);
38465 if (!SWIG_IsOK(ecode5)) {
38466 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38467 }
38468 arg5 = static_cast< int >(val5);
38469 if (obj5) {
38470 ecode6 = SWIG_AsVal_int(obj5, &val6);
38471 if (!SWIG_IsOK(ecode6)) {
38472 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38473 }
38474 arg6 = static_cast< int >(val6);
38475 }
38476 {
38477 PyThreadState* __tstate = wxPyBeginAllowThreads();
38478 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38479 wxPyEndAllowThreads(__tstate);
38480 if (PyErr_Occurred()) SWIG_fail;
38481 }
38482 resultobj = SWIG_Py_Void();
38483 return resultobj;
38484 fail:
38485 return NULL;
38486 }
38487
38488
38489 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38490 PyObject *resultobj = 0;
38491 wxPyControl *arg1 = (wxPyControl *) 0 ;
38492 int arg2 ;
38493 int arg3 ;
38494 void *argp1 = 0 ;
38495 int res1 = 0 ;
38496 int val2 ;
38497 int ecode2 = 0 ;
38498 int val3 ;
38499 int ecode3 = 0 ;
38500 PyObject * obj0 = 0 ;
38501 PyObject * obj1 = 0 ;
38502 PyObject * obj2 = 0 ;
38503 char * kwnames[] = {
38504 (char *) "self",(char *) "width",(char *) "height", NULL
38505 };
38506
38507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38509 if (!SWIG_IsOK(res1)) {
38510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38511 }
38512 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38513 ecode2 = SWIG_AsVal_int(obj1, &val2);
38514 if (!SWIG_IsOK(ecode2)) {
38515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38516 }
38517 arg2 = static_cast< int >(val2);
38518 ecode3 = SWIG_AsVal_int(obj2, &val3);
38519 if (!SWIG_IsOK(ecode3)) {
38520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38521 }
38522 arg3 = static_cast< int >(val3);
38523 {
38524 PyThreadState* __tstate = wxPyBeginAllowThreads();
38525 (arg1)->DoSetClientSize(arg2,arg3);
38526 wxPyEndAllowThreads(__tstate);
38527 if (PyErr_Occurred()) SWIG_fail;
38528 }
38529 resultobj = SWIG_Py_Void();
38530 return resultobj;
38531 fail:
38532 return NULL;
38533 }
38534
38535
38536 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38537 PyObject *resultobj = 0;
38538 wxPyControl *arg1 = (wxPyControl *) 0 ;
38539 int arg2 ;
38540 int arg3 ;
38541 void *argp1 = 0 ;
38542 int res1 = 0 ;
38543 int val2 ;
38544 int ecode2 = 0 ;
38545 int val3 ;
38546 int ecode3 = 0 ;
38547 PyObject * obj0 = 0 ;
38548 PyObject * obj1 = 0 ;
38549 PyObject * obj2 = 0 ;
38550 char * kwnames[] = {
38551 (char *) "self",(char *) "x",(char *) "y", NULL
38552 };
38553
38554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38556 if (!SWIG_IsOK(res1)) {
38557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38558 }
38559 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38560 ecode2 = SWIG_AsVal_int(obj1, &val2);
38561 if (!SWIG_IsOK(ecode2)) {
38562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38563 }
38564 arg2 = static_cast< int >(val2);
38565 ecode3 = SWIG_AsVal_int(obj2, &val3);
38566 if (!SWIG_IsOK(ecode3)) {
38567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38568 }
38569 arg3 = static_cast< int >(val3);
38570 {
38571 PyThreadState* __tstate = wxPyBeginAllowThreads();
38572 (arg1)->DoSetVirtualSize(arg2,arg3);
38573 wxPyEndAllowThreads(__tstate);
38574 if (PyErr_Occurred()) SWIG_fail;
38575 }
38576 resultobj = SWIG_Py_Void();
38577 return resultobj;
38578 fail:
38579 return NULL;
38580 }
38581
38582
38583 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38584 PyObject *resultobj = 0;
38585 wxPyControl *arg1 = (wxPyControl *) 0 ;
38586 int *arg2 = (int *) 0 ;
38587 int *arg3 = (int *) 0 ;
38588 void *argp1 = 0 ;
38589 int res1 = 0 ;
38590 int temp2 ;
38591 int res2 = SWIG_TMPOBJ ;
38592 int temp3 ;
38593 int res3 = SWIG_TMPOBJ ;
38594 PyObject *swig_obj[1] ;
38595
38596 arg2 = &temp2;
38597 arg3 = &temp3;
38598 if (!args) SWIG_fail;
38599 swig_obj[0] = args;
38600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38601 if (!SWIG_IsOK(res1)) {
38602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38603 }
38604 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38605 {
38606 PyThreadState* __tstate = wxPyBeginAllowThreads();
38607 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38608 wxPyEndAllowThreads(__tstate);
38609 if (PyErr_Occurred()) SWIG_fail;
38610 }
38611 resultobj = SWIG_Py_Void();
38612 if (SWIG_IsTmpObj(res2)) {
38613 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38614 } else {
38615 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38616 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38617 }
38618 if (SWIG_IsTmpObj(res3)) {
38619 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38620 } else {
38621 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38622 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38623 }
38624 return resultobj;
38625 fail:
38626 return NULL;
38627 }
38628
38629
38630 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38631 PyObject *resultobj = 0;
38632 wxPyControl *arg1 = (wxPyControl *) 0 ;
38633 int *arg2 = (int *) 0 ;
38634 int *arg3 = (int *) 0 ;
38635 void *argp1 = 0 ;
38636 int res1 = 0 ;
38637 int temp2 ;
38638 int res2 = SWIG_TMPOBJ ;
38639 int temp3 ;
38640 int res3 = SWIG_TMPOBJ ;
38641 PyObject *swig_obj[1] ;
38642
38643 arg2 = &temp2;
38644 arg3 = &temp3;
38645 if (!args) SWIG_fail;
38646 swig_obj[0] = args;
38647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38648 if (!SWIG_IsOK(res1)) {
38649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38650 }
38651 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38652 {
38653 PyThreadState* __tstate = wxPyBeginAllowThreads();
38654 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38655 wxPyEndAllowThreads(__tstate);
38656 if (PyErr_Occurred()) SWIG_fail;
38657 }
38658 resultobj = SWIG_Py_Void();
38659 if (SWIG_IsTmpObj(res2)) {
38660 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38661 } else {
38662 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38664 }
38665 if (SWIG_IsTmpObj(res3)) {
38666 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38667 } else {
38668 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38669 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38670 }
38671 return resultobj;
38672 fail:
38673 return NULL;
38674 }
38675
38676
38677 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38678 PyObject *resultobj = 0;
38679 wxPyControl *arg1 = (wxPyControl *) 0 ;
38680 int *arg2 = (int *) 0 ;
38681 int *arg3 = (int *) 0 ;
38682 void *argp1 = 0 ;
38683 int res1 = 0 ;
38684 int temp2 ;
38685 int res2 = SWIG_TMPOBJ ;
38686 int temp3 ;
38687 int res3 = SWIG_TMPOBJ ;
38688 PyObject *swig_obj[1] ;
38689
38690 arg2 = &temp2;
38691 arg3 = &temp3;
38692 if (!args) SWIG_fail;
38693 swig_obj[0] = args;
38694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38695 if (!SWIG_IsOK(res1)) {
38696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38697 }
38698 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38699 {
38700 PyThreadState* __tstate = wxPyBeginAllowThreads();
38701 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38702 wxPyEndAllowThreads(__tstate);
38703 if (PyErr_Occurred()) SWIG_fail;
38704 }
38705 resultobj = SWIG_Py_Void();
38706 if (SWIG_IsTmpObj(res2)) {
38707 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38708 } else {
38709 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38710 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38711 }
38712 if (SWIG_IsTmpObj(res3)) {
38713 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38714 } else {
38715 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38716 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38717 }
38718 return resultobj;
38719 fail:
38720 return NULL;
38721 }
38722
38723
38724 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38725 PyObject *resultobj = 0;
38726 wxPyControl *arg1 = (wxPyControl *) 0 ;
38727 wxSize result;
38728 void *argp1 = 0 ;
38729 int res1 = 0 ;
38730 PyObject *swig_obj[1] ;
38731
38732 if (!args) SWIG_fail;
38733 swig_obj[0] = args;
38734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38735 if (!SWIG_IsOK(res1)) {
38736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38737 }
38738 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38739 {
38740 PyThreadState* __tstate = wxPyBeginAllowThreads();
38741 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38742 wxPyEndAllowThreads(__tstate);
38743 if (PyErr_Occurred()) SWIG_fail;
38744 }
38745 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38746 return resultobj;
38747 fail:
38748 return NULL;
38749 }
38750
38751
38752 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38753 PyObject *resultobj = 0;
38754 wxPyControl *arg1 = (wxPyControl *) 0 ;
38755 wxSize result;
38756 void *argp1 = 0 ;
38757 int res1 = 0 ;
38758 PyObject *swig_obj[1] ;
38759
38760 if (!args) SWIG_fail;
38761 swig_obj[0] = args;
38762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38763 if (!SWIG_IsOK(res1)) {
38764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38765 }
38766 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38767 {
38768 PyThreadState* __tstate = wxPyBeginAllowThreads();
38769 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38770 wxPyEndAllowThreads(__tstate);
38771 if (PyErr_Occurred()) SWIG_fail;
38772 }
38773 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38774 return resultobj;
38775 fail:
38776 return NULL;
38777 }
38778
38779
38780 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38781 PyObject *resultobj = 0;
38782 wxPyControl *arg1 = (wxPyControl *) 0 ;
38783 SwigValueWrapper<wxVisualAttributes > result;
38784 void *argp1 = 0 ;
38785 int res1 = 0 ;
38786 PyObject *swig_obj[1] ;
38787
38788 if (!args) SWIG_fail;
38789 swig_obj[0] = args;
38790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38791 if (!SWIG_IsOK(res1)) {
38792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38793 }
38794 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38795 {
38796 PyThreadState* __tstate = wxPyBeginAllowThreads();
38797 result = (arg1)->GetDefaultAttributes();
38798 wxPyEndAllowThreads(__tstate);
38799 if (PyErr_Occurred()) SWIG_fail;
38800 }
38801 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38802 return resultobj;
38803 fail:
38804 return NULL;
38805 }
38806
38807
38808 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38809 PyObject *resultobj = 0;
38810 wxPyControl *arg1 = (wxPyControl *) 0 ;
38811 void *argp1 = 0 ;
38812 int res1 = 0 ;
38813 PyObject *swig_obj[1] ;
38814
38815 if (!args) SWIG_fail;
38816 swig_obj[0] = args;
38817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38818 if (!SWIG_IsOK(res1)) {
38819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38820 }
38821 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38822 {
38823 PyThreadState* __tstate = wxPyBeginAllowThreads();
38824 (arg1)->OnInternalIdle();
38825 wxPyEndAllowThreads(__tstate);
38826 if (PyErr_Occurred()) SWIG_fail;
38827 }
38828 resultobj = SWIG_Py_Void();
38829 return resultobj;
38830 fail:
38831 return NULL;
38832 }
38833
38834
38835 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38836 PyObject *obj;
38837 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38838 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38839 return SWIG_Py_Void();
38840 }
38841
38842 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38843 return SWIG_Python_InitShadowInstance(args);
38844 }
38845
38846 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38847 PyObject *resultobj = 0;
38848 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38849 int arg2 = (int) 0 ;
38850 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38851 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38852 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
38853 wxHelpEvent *result = 0 ;
38854 int val1 ;
38855 int ecode1 = 0 ;
38856 int val2 ;
38857 int ecode2 = 0 ;
38858 wxPoint temp3 ;
38859 int val4 ;
38860 int ecode4 = 0 ;
38861 PyObject * obj0 = 0 ;
38862 PyObject * obj1 = 0 ;
38863 PyObject * obj2 = 0 ;
38864 PyObject * obj3 = 0 ;
38865 char * kwnames[] = {
38866 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
38867 };
38868
38869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38870 if (obj0) {
38871 ecode1 = SWIG_AsVal_int(obj0, &val1);
38872 if (!SWIG_IsOK(ecode1)) {
38873 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38874 }
38875 arg1 = static_cast< wxEventType >(val1);
38876 }
38877 if (obj1) {
38878 ecode2 = SWIG_AsVal_int(obj1, &val2);
38879 if (!SWIG_IsOK(ecode2)) {
38880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38881 }
38882 arg2 = static_cast< int >(val2);
38883 }
38884 if (obj2) {
38885 {
38886 arg3 = &temp3;
38887 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38888 }
38889 }
38890 if (obj3) {
38891 ecode4 = SWIG_AsVal_int(obj3, &val4);
38892 if (!SWIG_IsOK(ecode4)) {
38893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
38894 }
38895 arg4 = static_cast< wxHelpEvent::Origin >(val4);
38896 }
38897 {
38898 PyThreadState* __tstate = wxPyBeginAllowThreads();
38899 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
38900 wxPyEndAllowThreads(__tstate);
38901 if (PyErr_Occurred()) SWIG_fail;
38902 }
38903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38904 return resultobj;
38905 fail:
38906 return NULL;
38907 }
38908
38909
38910 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38911 PyObject *resultobj = 0;
38912 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38913 wxPoint result;
38914 void *argp1 = 0 ;
38915 int res1 = 0 ;
38916 PyObject *swig_obj[1] ;
38917
38918 if (!args) SWIG_fail;
38919 swig_obj[0] = args;
38920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38921 if (!SWIG_IsOK(res1)) {
38922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38923 }
38924 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38925 {
38926 PyThreadState* __tstate = wxPyBeginAllowThreads();
38927 result = ((wxHelpEvent const *)arg1)->GetPosition();
38928 wxPyEndAllowThreads(__tstate);
38929 if (PyErr_Occurred()) SWIG_fail;
38930 }
38931 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38932 return resultobj;
38933 fail:
38934 return NULL;
38935 }
38936
38937
38938 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38939 PyObject *resultobj = 0;
38940 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38941 wxPoint *arg2 = 0 ;
38942 void *argp1 = 0 ;
38943 int res1 = 0 ;
38944 wxPoint temp2 ;
38945 PyObject * obj0 = 0 ;
38946 PyObject * obj1 = 0 ;
38947 char * kwnames[] = {
38948 (char *) "self",(char *) "pos", NULL
38949 };
38950
38951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38953 if (!SWIG_IsOK(res1)) {
38954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38955 }
38956 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38957 {
38958 arg2 = &temp2;
38959 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38960 }
38961 {
38962 PyThreadState* __tstate = wxPyBeginAllowThreads();
38963 (arg1)->SetPosition((wxPoint const &)*arg2);
38964 wxPyEndAllowThreads(__tstate);
38965 if (PyErr_Occurred()) SWIG_fail;
38966 }
38967 resultobj = SWIG_Py_Void();
38968 return resultobj;
38969 fail:
38970 return NULL;
38971 }
38972
38973
38974 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38975 PyObject *resultobj = 0;
38976 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38977 wxString *result = 0 ;
38978 void *argp1 = 0 ;
38979 int res1 = 0 ;
38980 PyObject *swig_obj[1] ;
38981
38982 if (!args) SWIG_fail;
38983 swig_obj[0] = args;
38984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38985 if (!SWIG_IsOK(res1)) {
38986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38987 }
38988 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38989 {
38990 PyThreadState* __tstate = wxPyBeginAllowThreads();
38991 {
38992 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
38993 result = (wxString *) &_result_ref;
38994 }
38995 wxPyEndAllowThreads(__tstate);
38996 if (PyErr_Occurred()) SWIG_fail;
38997 }
38998 {
38999 #if wxUSE_UNICODE
39000 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39001 #else
39002 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39003 #endif
39004 }
39005 return resultobj;
39006 fail:
39007 return NULL;
39008 }
39009
39010
39011 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39012 PyObject *resultobj = 0;
39013 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39014 wxString *arg2 = 0 ;
39015 void *argp1 = 0 ;
39016 int res1 = 0 ;
39017 bool temp2 = false ;
39018 PyObject * obj0 = 0 ;
39019 PyObject * obj1 = 0 ;
39020 char * kwnames[] = {
39021 (char *) "self",(char *) "link", NULL
39022 };
39023
39024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39026 if (!SWIG_IsOK(res1)) {
39027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39028 }
39029 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39030 {
39031 arg2 = wxString_in_helper(obj1);
39032 if (arg2 == NULL) SWIG_fail;
39033 temp2 = true;
39034 }
39035 {
39036 PyThreadState* __tstate = wxPyBeginAllowThreads();
39037 (arg1)->SetLink((wxString const &)*arg2);
39038 wxPyEndAllowThreads(__tstate);
39039 if (PyErr_Occurred()) SWIG_fail;
39040 }
39041 resultobj = SWIG_Py_Void();
39042 {
39043 if (temp2)
39044 delete arg2;
39045 }
39046 return resultobj;
39047 fail:
39048 {
39049 if (temp2)
39050 delete arg2;
39051 }
39052 return NULL;
39053 }
39054
39055
39056 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39057 PyObject *resultobj = 0;
39058 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39059 wxString *result = 0 ;
39060 void *argp1 = 0 ;
39061 int res1 = 0 ;
39062 PyObject *swig_obj[1] ;
39063
39064 if (!args) SWIG_fail;
39065 swig_obj[0] = args;
39066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39067 if (!SWIG_IsOK(res1)) {
39068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39069 }
39070 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39071 {
39072 PyThreadState* __tstate = wxPyBeginAllowThreads();
39073 {
39074 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39075 result = (wxString *) &_result_ref;
39076 }
39077 wxPyEndAllowThreads(__tstate);
39078 if (PyErr_Occurred()) SWIG_fail;
39079 }
39080 {
39081 #if wxUSE_UNICODE
39082 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39083 #else
39084 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39085 #endif
39086 }
39087 return resultobj;
39088 fail:
39089 return NULL;
39090 }
39091
39092
39093 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39094 PyObject *resultobj = 0;
39095 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39096 wxString *arg2 = 0 ;
39097 void *argp1 = 0 ;
39098 int res1 = 0 ;
39099 bool temp2 = false ;
39100 PyObject * obj0 = 0 ;
39101 PyObject * obj1 = 0 ;
39102 char * kwnames[] = {
39103 (char *) "self",(char *) "target", NULL
39104 };
39105
39106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39108 if (!SWIG_IsOK(res1)) {
39109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39110 }
39111 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39112 {
39113 arg2 = wxString_in_helper(obj1);
39114 if (arg2 == NULL) SWIG_fail;
39115 temp2 = true;
39116 }
39117 {
39118 PyThreadState* __tstate = wxPyBeginAllowThreads();
39119 (arg1)->SetTarget((wxString const &)*arg2);
39120 wxPyEndAllowThreads(__tstate);
39121 if (PyErr_Occurred()) SWIG_fail;
39122 }
39123 resultobj = SWIG_Py_Void();
39124 {
39125 if (temp2)
39126 delete arg2;
39127 }
39128 return resultobj;
39129 fail:
39130 {
39131 if (temp2)
39132 delete arg2;
39133 }
39134 return NULL;
39135 }
39136
39137
39138 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39139 PyObject *resultobj = 0;
39140 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39141 wxHelpEvent::Origin result;
39142 void *argp1 = 0 ;
39143 int res1 = 0 ;
39144 PyObject *swig_obj[1] ;
39145
39146 if (!args) SWIG_fail;
39147 swig_obj[0] = args;
39148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39149 if (!SWIG_IsOK(res1)) {
39150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39151 }
39152 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39153 {
39154 PyThreadState* __tstate = wxPyBeginAllowThreads();
39155 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39156 wxPyEndAllowThreads(__tstate);
39157 if (PyErr_Occurred()) SWIG_fail;
39158 }
39159 resultobj = SWIG_From_int(static_cast< int >(result));
39160 return resultobj;
39161 fail:
39162 return NULL;
39163 }
39164
39165
39166 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39167 PyObject *resultobj = 0;
39168 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39169 wxHelpEvent::Origin arg2 ;
39170 void *argp1 = 0 ;
39171 int res1 = 0 ;
39172 int val2 ;
39173 int ecode2 = 0 ;
39174 PyObject * obj0 = 0 ;
39175 PyObject * obj1 = 0 ;
39176 char * kwnames[] = {
39177 (char *) "self",(char *) "origin", NULL
39178 };
39179
39180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39182 if (!SWIG_IsOK(res1)) {
39183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39184 }
39185 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39186 ecode2 = SWIG_AsVal_int(obj1, &val2);
39187 if (!SWIG_IsOK(ecode2)) {
39188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39189 }
39190 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39191 {
39192 PyThreadState* __tstate = wxPyBeginAllowThreads();
39193 (arg1)->SetOrigin(arg2);
39194 wxPyEndAllowThreads(__tstate);
39195 if (PyErr_Occurred()) SWIG_fail;
39196 }
39197 resultobj = SWIG_Py_Void();
39198 return resultobj;
39199 fail:
39200 return NULL;
39201 }
39202
39203
39204 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39205 PyObject *obj;
39206 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39207 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39208 return SWIG_Py_Void();
39209 }
39210
39211 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39212 return SWIG_Python_InitShadowInstance(args);
39213 }
39214
39215 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39216 PyObject *resultobj = 0;
39217 wxWindow *arg1 = (wxWindow *) NULL ;
39218 bool arg2 = (bool) true ;
39219 wxContextHelp *result = 0 ;
39220 void *argp1 = 0 ;
39221 int res1 = 0 ;
39222 bool val2 ;
39223 int ecode2 = 0 ;
39224 PyObject * obj0 = 0 ;
39225 PyObject * obj1 = 0 ;
39226 char * kwnames[] = {
39227 (char *) "window",(char *) "doNow", NULL
39228 };
39229
39230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39231 if (obj0) {
39232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39233 if (!SWIG_IsOK(res1)) {
39234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39235 }
39236 arg1 = reinterpret_cast< wxWindow * >(argp1);
39237 }
39238 if (obj1) {
39239 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39240 if (!SWIG_IsOK(ecode2)) {
39241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39242 }
39243 arg2 = static_cast< bool >(val2);
39244 }
39245 {
39246 if (!wxPyCheckForApp()) SWIG_fail;
39247 PyThreadState* __tstate = wxPyBeginAllowThreads();
39248 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39249 wxPyEndAllowThreads(__tstate);
39250 if (PyErr_Occurred()) SWIG_fail;
39251 }
39252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39253 return resultobj;
39254 fail:
39255 return NULL;
39256 }
39257
39258
39259 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39260 PyObject *resultobj = 0;
39261 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39262 void *argp1 = 0 ;
39263 int res1 = 0 ;
39264 PyObject *swig_obj[1] ;
39265
39266 if (!args) SWIG_fail;
39267 swig_obj[0] = args;
39268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39269 if (!SWIG_IsOK(res1)) {
39270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39271 }
39272 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39273 {
39274 PyThreadState* __tstate = wxPyBeginAllowThreads();
39275 delete arg1;
39276
39277 wxPyEndAllowThreads(__tstate);
39278 if (PyErr_Occurred()) SWIG_fail;
39279 }
39280 resultobj = SWIG_Py_Void();
39281 return resultobj;
39282 fail:
39283 return NULL;
39284 }
39285
39286
39287 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39288 PyObject *resultobj = 0;
39289 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39290 wxWindow *arg2 = (wxWindow *) NULL ;
39291 bool result;
39292 void *argp1 = 0 ;
39293 int res1 = 0 ;
39294 void *argp2 = 0 ;
39295 int res2 = 0 ;
39296 PyObject * obj0 = 0 ;
39297 PyObject * obj1 = 0 ;
39298 char * kwnames[] = {
39299 (char *) "self",(char *) "window", NULL
39300 };
39301
39302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39304 if (!SWIG_IsOK(res1)) {
39305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39306 }
39307 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39308 if (obj1) {
39309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39310 if (!SWIG_IsOK(res2)) {
39311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39312 }
39313 arg2 = reinterpret_cast< wxWindow * >(argp2);
39314 }
39315 {
39316 PyThreadState* __tstate = wxPyBeginAllowThreads();
39317 result = (bool)(arg1)->BeginContextHelp(arg2);
39318 wxPyEndAllowThreads(__tstate);
39319 if (PyErr_Occurred()) SWIG_fail;
39320 }
39321 {
39322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39323 }
39324 return resultobj;
39325 fail:
39326 return NULL;
39327 }
39328
39329
39330 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39331 PyObject *resultobj = 0;
39332 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39333 bool result;
39334 void *argp1 = 0 ;
39335 int res1 = 0 ;
39336 PyObject *swig_obj[1] ;
39337
39338 if (!args) SWIG_fail;
39339 swig_obj[0] = args;
39340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39341 if (!SWIG_IsOK(res1)) {
39342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39343 }
39344 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39345 {
39346 PyThreadState* __tstate = wxPyBeginAllowThreads();
39347 result = (bool)(arg1)->EndContextHelp();
39348 wxPyEndAllowThreads(__tstate);
39349 if (PyErr_Occurred()) SWIG_fail;
39350 }
39351 {
39352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39353 }
39354 return resultobj;
39355 fail:
39356 return NULL;
39357 }
39358
39359
39360 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39361 PyObject *obj;
39362 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39363 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39364 return SWIG_Py_Void();
39365 }
39366
39367 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39368 return SWIG_Python_InitShadowInstance(args);
39369 }
39370
39371 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39372 PyObject *resultobj = 0;
39373 wxWindow *arg1 = (wxWindow *) 0 ;
39374 int arg2 = (int) wxID_CONTEXT_HELP ;
39375 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39376 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39377 wxSize const &arg4_defvalue = wxDefaultSize ;
39378 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39379 long arg5 = (long) wxBU_AUTODRAW ;
39380 wxContextHelpButton *result = 0 ;
39381 void *argp1 = 0 ;
39382 int res1 = 0 ;
39383 int val2 ;
39384 int ecode2 = 0 ;
39385 wxPoint temp3 ;
39386 wxSize temp4 ;
39387 long val5 ;
39388 int ecode5 = 0 ;
39389 PyObject * obj0 = 0 ;
39390 PyObject * obj1 = 0 ;
39391 PyObject * obj2 = 0 ;
39392 PyObject * obj3 = 0 ;
39393 PyObject * obj4 = 0 ;
39394 char * kwnames[] = {
39395 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39396 };
39397
39398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39400 if (!SWIG_IsOK(res1)) {
39401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39402 }
39403 arg1 = reinterpret_cast< wxWindow * >(argp1);
39404 if (obj1) {
39405 ecode2 = SWIG_AsVal_int(obj1, &val2);
39406 if (!SWIG_IsOK(ecode2)) {
39407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39408 }
39409 arg2 = static_cast< int >(val2);
39410 }
39411 if (obj2) {
39412 {
39413 arg3 = &temp3;
39414 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39415 }
39416 }
39417 if (obj3) {
39418 {
39419 arg4 = &temp4;
39420 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39421 }
39422 }
39423 if (obj4) {
39424 ecode5 = SWIG_AsVal_long(obj4, &val5);
39425 if (!SWIG_IsOK(ecode5)) {
39426 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39427 }
39428 arg5 = static_cast< long >(val5);
39429 }
39430 {
39431 if (!wxPyCheckForApp()) SWIG_fail;
39432 PyThreadState* __tstate = wxPyBeginAllowThreads();
39433 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39434 wxPyEndAllowThreads(__tstate);
39435 if (PyErr_Occurred()) SWIG_fail;
39436 }
39437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39438 return resultobj;
39439 fail:
39440 return NULL;
39441 }
39442
39443
39444 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39445 PyObject *obj;
39446 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39447 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39448 return SWIG_Py_Void();
39449 }
39450
39451 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39452 return SWIG_Python_InitShadowInstance(args);
39453 }
39454
39455 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39456 PyObject *resultobj = 0;
39457 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39458 void *argp1 = 0 ;
39459 int res1 = 0 ;
39460 PyObject *swig_obj[1] ;
39461
39462 if (!args) SWIG_fail;
39463 swig_obj[0] = args;
39464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39465 if (!SWIG_IsOK(res1)) {
39466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39467 }
39468 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39469 {
39470 PyThreadState* __tstate = wxPyBeginAllowThreads();
39471 delete arg1;
39472
39473 wxPyEndAllowThreads(__tstate);
39474 if (PyErr_Occurred()) SWIG_fail;
39475 }
39476 resultobj = SWIG_Py_Void();
39477 return resultobj;
39478 fail:
39479 return NULL;
39480 }
39481
39482
39483 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39484 PyObject *resultobj = 0;
39485 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39486 wxHelpProvider *result = 0 ;
39487 int res1 = 0 ;
39488 PyObject * obj0 = 0 ;
39489 char * kwnames[] = {
39490 (char *) "helpProvider", NULL
39491 };
39492
39493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39494 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39495 if (!SWIG_IsOK(res1)) {
39496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39497 }
39498 {
39499 PyThreadState* __tstate = wxPyBeginAllowThreads();
39500 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39501 wxPyEndAllowThreads(__tstate);
39502 if (PyErr_Occurred()) SWIG_fail;
39503 }
39504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39505 return resultobj;
39506 fail:
39507 return NULL;
39508 }
39509
39510
39511 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39512 PyObject *resultobj = 0;
39513 wxHelpProvider *result = 0 ;
39514
39515 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39516 {
39517 PyThreadState* __tstate = wxPyBeginAllowThreads();
39518 result = (wxHelpProvider *)wxHelpProvider::Get();
39519 wxPyEndAllowThreads(__tstate);
39520 if (PyErr_Occurred()) SWIG_fail;
39521 }
39522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39523 return resultobj;
39524 fail:
39525 return NULL;
39526 }
39527
39528
39529 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39530 PyObject *resultobj = 0;
39531 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39532 wxWindow *arg2 = (wxWindow *) 0 ;
39533 wxString result;
39534 void *argp1 = 0 ;
39535 int res1 = 0 ;
39536 void *argp2 = 0 ;
39537 int res2 = 0 ;
39538 PyObject * obj0 = 0 ;
39539 PyObject * obj1 = 0 ;
39540 char * kwnames[] = {
39541 (char *) "self",(char *) "window", NULL
39542 };
39543
39544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39546 if (!SWIG_IsOK(res1)) {
39547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39548 }
39549 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39550 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39551 if (!SWIG_IsOK(res2)) {
39552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39553 }
39554 arg2 = reinterpret_cast< wxWindow * >(argp2);
39555 {
39556 PyThreadState* __tstate = wxPyBeginAllowThreads();
39557 result = (arg1)->GetHelp((wxWindow const *)arg2);
39558 wxPyEndAllowThreads(__tstate);
39559 if (PyErr_Occurred()) SWIG_fail;
39560 }
39561 {
39562 #if wxUSE_UNICODE
39563 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39564 #else
39565 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39566 #endif
39567 }
39568 return resultobj;
39569 fail:
39570 return NULL;
39571 }
39572
39573
39574 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39575 PyObject *resultobj = 0;
39576 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39577 wxWindow *arg2 = (wxWindow *) 0 ;
39578 bool result;
39579 void *argp1 = 0 ;
39580 int res1 = 0 ;
39581 void *argp2 = 0 ;
39582 int res2 = 0 ;
39583 PyObject * obj0 = 0 ;
39584 PyObject * obj1 = 0 ;
39585 char * kwnames[] = {
39586 (char *) "self",(char *) "window", NULL
39587 };
39588
39589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39591 if (!SWIG_IsOK(res1)) {
39592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39593 }
39594 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39595 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39596 if (!SWIG_IsOK(res2)) {
39597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39598 }
39599 arg2 = reinterpret_cast< wxWindow * >(argp2);
39600 {
39601 PyThreadState* __tstate = wxPyBeginAllowThreads();
39602 result = (bool)(arg1)->ShowHelp(arg2);
39603 wxPyEndAllowThreads(__tstate);
39604 if (PyErr_Occurred()) SWIG_fail;
39605 }
39606 {
39607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39608 }
39609 return resultobj;
39610 fail:
39611 return NULL;
39612 }
39613
39614
39615 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39616 PyObject *resultobj = 0;
39617 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39618 wxWindow *arg2 = (wxWindow *) 0 ;
39619 wxString *arg3 = 0 ;
39620 void *argp1 = 0 ;
39621 int res1 = 0 ;
39622 void *argp2 = 0 ;
39623 int res2 = 0 ;
39624 bool temp3 = false ;
39625 PyObject * obj0 = 0 ;
39626 PyObject * obj1 = 0 ;
39627 PyObject * obj2 = 0 ;
39628 char * kwnames[] = {
39629 (char *) "self",(char *) "window",(char *) "text", NULL
39630 };
39631
39632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39634 if (!SWIG_IsOK(res1)) {
39635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39636 }
39637 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39638 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39639 if (!SWIG_IsOK(res2)) {
39640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39641 }
39642 arg2 = reinterpret_cast< wxWindow * >(argp2);
39643 {
39644 arg3 = wxString_in_helper(obj2);
39645 if (arg3 == NULL) SWIG_fail;
39646 temp3 = true;
39647 }
39648 {
39649 PyThreadState* __tstate = wxPyBeginAllowThreads();
39650 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39651 wxPyEndAllowThreads(__tstate);
39652 if (PyErr_Occurred()) SWIG_fail;
39653 }
39654 resultobj = SWIG_Py_Void();
39655 {
39656 if (temp3)
39657 delete arg3;
39658 }
39659 return resultobj;
39660 fail:
39661 {
39662 if (temp3)
39663 delete arg3;
39664 }
39665 return NULL;
39666 }
39667
39668
39669 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39670 PyObject *resultobj = 0;
39671 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39672 int arg2 ;
39673 wxString *arg3 = 0 ;
39674 void *argp1 = 0 ;
39675 int res1 = 0 ;
39676 int val2 ;
39677 int ecode2 = 0 ;
39678 bool temp3 = false ;
39679 PyObject * obj0 = 0 ;
39680 PyObject * obj1 = 0 ;
39681 PyObject * obj2 = 0 ;
39682 char * kwnames[] = {
39683 (char *) "self",(char *) "id",(char *) "text", NULL
39684 };
39685
39686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39688 if (!SWIG_IsOK(res1)) {
39689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39690 }
39691 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39692 ecode2 = SWIG_AsVal_int(obj1, &val2);
39693 if (!SWIG_IsOK(ecode2)) {
39694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39695 }
39696 arg2 = static_cast< int >(val2);
39697 {
39698 arg3 = wxString_in_helper(obj2);
39699 if (arg3 == NULL) SWIG_fail;
39700 temp3 = true;
39701 }
39702 {
39703 PyThreadState* __tstate = wxPyBeginAllowThreads();
39704 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39705 wxPyEndAllowThreads(__tstate);
39706 if (PyErr_Occurred()) SWIG_fail;
39707 }
39708 resultobj = SWIG_Py_Void();
39709 {
39710 if (temp3)
39711 delete arg3;
39712 }
39713 return resultobj;
39714 fail:
39715 {
39716 if (temp3)
39717 delete arg3;
39718 }
39719 return NULL;
39720 }
39721
39722
39723 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39724 PyObject *resultobj = 0;
39725 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39726 wxWindow *arg2 = (wxWindow *) 0 ;
39727 void *argp1 = 0 ;
39728 int res1 = 0 ;
39729 void *argp2 = 0 ;
39730 int res2 = 0 ;
39731 PyObject * obj0 = 0 ;
39732 PyObject * obj1 = 0 ;
39733 char * kwnames[] = {
39734 (char *) "self",(char *) "window", NULL
39735 };
39736
39737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39739 if (!SWIG_IsOK(res1)) {
39740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39741 }
39742 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39743 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39744 if (!SWIG_IsOK(res2)) {
39745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39746 }
39747 arg2 = reinterpret_cast< wxWindow * >(argp2);
39748 {
39749 PyThreadState* __tstate = wxPyBeginAllowThreads();
39750 (arg1)->RemoveHelp(arg2);
39751 wxPyEndAllowThreads(__tstate);
39752 if (PyErr_Occurred()) SWIG_fail;
39753 }
39754 resultobj = SWIG_Py_Void();
39755 return resultobj;
39756 fail:
39757 return NULL;
39758 }
39759
39760
39761 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39762 PyObject *resultobj = 0;
39763 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39764 void *argp1 = 0 ;
39765 int res1 = 0 ;
39766 PyObject *swig_obj[1] ;
39767
39768 if (!args) SWIG_fail;
39769 swig_obj[0] = args;
39770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39771 if (!SWIG_IsOK(res1)) {
39772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39773 }
39774 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39775 {
39776 PyThreadState* __tstate = wxPyBeginAllowThreads();
39777 wxHelpProvider_Destroy(arg1);
39778 wxPyEndAllowThreads(__tstate);
39779 if (PyErr_Occurred()) SWIG_fail;
39780 }
39781 resultobj = SWIG_Py_Void();
39782 return resultobj;
39783 fail:
39784 return NULL;
39785 }
39786
39787
39788 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39789 PyObject *obj;
39790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39791 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39792 return SWIG_Py_Void();
39793 }
39794
39795 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39796 PyObject *resultobj = 0;
39797 wxSimpleHelpProvider *result = 0 ;
39798
39799 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39800 {
39801 PyThreadState* __tstate = wxPyBeginAllowThreads();
39802 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39803 wxPyEndAllowThreads(__tstate);
39804 if (PyErr_Occurred()) SWIG_fail;
39805 }
39806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39807 return resultobj;
39808 fail:
39809 return NULL;
39810 }
39811
39812
39813 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39814 PyObject *obj;
39815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39816 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39817 return SWIG_Py_Void();
39818 }
39819
39820 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39821 return SWIG_Python_InitShadowInstance(args);
39822 }
39823
39824 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39825 PyObject *resultobj = 0;
39826 wxBitmap *arg1 = 0 ;
39827 wxCursor const &arg2_defvalue = wxNullCursor ;
39828 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39829 wxGenericDragImage *result = 0 ;
39830 void *argp1 = 0 ;
39831 int res1 = 0 ;
39832 void *argp2 = 0 ;
39833 int res2 = 0 ;
39834 PyObject * obj0 = 0 ;
39835 PyObject * obj1 = 0 ;
39836 char * kwnames[] = {
39837 (char *) "image",(char *) "cursor", NULL
39838 };
39839
39840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39841 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39842 if (!SWIG_IsOK(res1)) {
39843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39844 }
39845 if (!argp1) {
39846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39847 }
39848 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39849 if (obj1) {
39850 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39851 if (!SWIG_IsOK(res2)) {
39852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39853 }
39854 if (!argp2) {
39855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39856 }
39857 arg2 = reinterpret_cast< wxCursor * >(argp2);
39858 }
39859 {
39860 if (!wxPyCheckForApp()) SWIG_fail;
39861 PyThreadState* __tstate = wxPyBeginAllowThreads();
39862 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39863 wxPyEndAllowThreads(__tstate);
39864 if (PyErr_Occurred()) SWIG_fail;
39865 }
39866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39867 return resultobj;
39868 fail:
39869 return NULL;
39870 }
39871
39872
39873 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39874 PyObject *resultobj = 0;
39875 wxIcon *arg1 = 0 ;
39876 wxCursor const &arg2_defvalue = wxNullCursor ;
39877 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39878 wxGenericDragImage *result = 0 ;
39879 void *argp1 = 0 ;
39880 int res1 = 0 ;
39881 void *argp2 = 0 ;
39882 int res2 = 0 ;
39883 PyObject * obj0 = 0 ;
39884 PyObject * obj1 = 0 ;
39885 char * kwnames[] = {
39886 (char *) "image",(char *) "cursor", NULL
39887 };
39888
39889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39890 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39891 if (!SWIG_IsOK(res1)) {
39892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39893 }
39894 if (!argp1) {
39895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39896 }
39897 arg1 = reinterpret_cast< wxIcon * >(argp1);
39898 if (obj1) {
39899 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39900 if (!SWIG_IsOK(res2)) {
39901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39902 }
39903 if (!argp2) {
39904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39905 }
39906 arg2 = reinterpret_cast< wxCursor * >(argp2);
39907 }
39908 {
39909 if (!wxPyCheckForApp()) SWIG_fail;
39910 PyThreadState* __tstate = wxPyBeginAllowThreads();
39911 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39912 wxPyEndAllowThreads(__tstate);
39913 if (PyErr_Occurred()) SWIG_fail;
39914 }
39915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39916 return resultobj;
39917 fail:
39918 return NULL;
39919 }
39920
39921
39922 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39923 PyObject *resultobj = 0;
39924 wxString *arg1 = 0 ;
39925 wxCursor const &arg2_defvalue = wxNullCursor ;
39926 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39927 wxGenericDragImage *result = 0 ;
39928 bool temp1 = false ;
39929 void *argp2 = 0 ;
39930 int res2 = 0 ;
39931 PyObject * obj0 = 0 ;
39932 PyObject * obj1 = 0 ;
39933 char * kwnames[] = {
39934 (char *) "str",(char *) "cursor", NULL
39935 };
39936
39937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39938 {
39939 arg1 = wxString_in_helper(obj0);
39940 if (arg1 == NULL) SWIG_fail;
39941 temp1 = true;
39942 }
39943 if (obj1) {
39944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39945 if (!SWIG_IsOK(res2)) {
39946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39947 }
39948 if (!argp2) {
39949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39950 }
39951 arg2 = reinterpret_cast< wxCursor * >(argp2);
39952 }
39953 {
39954 if (!wxPyCheckForApp()) SWIG_fail;
39955 PyThreadState* __tstate = wxPyBeginAllowThreads();
39956 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39957 wxPyEndAllowThreads(__tstate);
39958 if (PyErr_Occurred()) SWIG_fail;
39959 }
39960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39961 {
39962 if (temp1)
39963 delete arg1;
39964 }
39965 return resultobj;
39966 fail:
39967 {
39968 if (temp1)
39969 delete arg1;
39970 }
39971 return NULL;
39972 }
39973
39974
39975 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39976 PyObject *resultobj = 0;
39977 wxPyTreeCtrl *arg1 = 0 ;
39978 wxTreeItemId *arg2 = 0 ;
39979 wxGenericDragImage *result = 0 ;
39980 void *argp1 = 0 ;
39981 int res1 = 0 ;
39982 void *argp2 = 0 ;
39983 int res2 = 0 ;
39984 PyObject * obj0 = 0 ;
39985 PyObject * obj1 = 0 ;
39986 char * kwnames[] = {
39987 (char *) "treeCtrl",(char *) "id", NULL
39988 };
39989
39990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39991 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39992 if (!SWIG_IsOK(res1)) {
39993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39994 }
39995 if (!argp1) {
39996 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39997 }
39998 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40000 if (!SWIG_IsOK(res2)) {
40001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40002 }
40003 if (!argp2) {
40004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40005 }
40006 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40007 {
40008 if (!wxPyCheckForApp()) SWIG_fail;
40009 PyThreadState* __tstate = wxPyBeginAllowThreads();
40010 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40011 wxPyEndAllowThreads(__tstate);
40012 if (PyErr_Occurred()) SWIG_fail;
40013 }
40014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40015 return resultobj;
40016 fail:
40017 return NULL;
40018 }
40019
40020
40021 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40022 PyObject *resultobj = 0;
40023 wxPyListCtrl *arg1 = 0 ;
40024 long arg2 ;
40025 wxGenericDragImage *result = 0 ;
40026 void *argp1 = 0 ;
40027 int res1 = 0 ;
40028 long val2 ;
40029 int ecode2 = 0 ;
40030 PyObject * obj0 = 0 ;
40031 PyObject * obj1 = 0 ;
40032 char * kwnames[] = {
40033 (char *) "listCtrl",(char *) "id", NULL
40034 };
40035
40036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40037 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40038 if (!SWIG_IsOK(res1)) {
40039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40040 }
40041 if (!argp1) {
40042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40043 }
40044 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40045 ecode2 = SWIG_AsVal_long(obj1, &val2);
40046 if (!SWIG_IsOK(ecode2)) {
40047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40048 }
40049 arg2 = static_cast< long >(val2);
40050 {
40051 if (!wxPyCheckForApp()) SWIG_fail;
40052 PyThreadState* __tstate = wxPyBeginAllowThreads();
40053 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40054 wxPyEndAllowThreads(__tstate);
40055 if (PyErr_Occurred()) SWIG_fail;
40056 }
40057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40058 return resultobj;
40059 fail:
40060 return NULL;
40061 }
40062
40063
40064 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40065 PyObject *resultobj = 0;
40066 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40067 void *argp1 = 0 ;
40068 int res1 = 0 ;
40069 PyObject *swig_obj[1] ;
40070
40071 if (!args) SWIG_fail;
40072 swig_obj[0] = args;
40073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40074 if (!SWIG_IsOK(res1)) {
40075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40076 }
40077 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40078 {
40079 PyThreadState* __tstate = wxPyBeginAllowThreads();
40080 delete arg1;
40081
40082 wxPyEndAllowThreads(__tstate);
40083 if (PyErr_Occurred()) SWIG_fail;
40084 }
40085 resultobj = SWIG_Py_Void();
40086 return resultobj;
40087 fail:
40088 return NULL;
40089 }
40090
40091
40092 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40093 PyObject *resultobj = 0;
40094 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40095 wxBitmap *arg2 = (wxBitmap *) 0 ;
40096 void *argp1 = 0 ;
40097 int res1 = 0 ;
40098 void *argp2 = 0 ;
40099 int res2 = 0 ;
40100 PyObject * obj0 = 0 ;
40101 PyObject * obj1 = 0 ;
40102 char * kwnames[] = {
40103 (char *) "self",(char *) "bitmap", NULL
40104 };
40105
40106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40108 if (!SWIG_IsOK(res1)) {
40109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40110 }
40111 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40112 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40113 if (!SWIG_IsOK(res2)) {
40114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40115 }
40116 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40117 {
40118 PyThreadState* __tstate = wxPyBeginAllowThreads();
40119 (arg1)->SetBackingBitmap(arg2);
40120 wxPyEndAllowThreads(__tstate);
40121 if (PyErr_Occurred()) SWIG_fail;
40122 }
40123 resultobj = SWIG_Py_Void();
40124 return resultobj;
40125 fail:
40126 return NULL;
40127 }
40128
40129
40130 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40131 PyObject *resultobj = 0;
40132 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40133 wxPoint *arg2 = 0 ;
40134 wxWindow *arg3 = (wxWindow *) 0 ;
40135 bool arg4 = (bool) false ;
40136 wxRect *arg5 = (wxRect *) NULL ;
40137 bool result;
40138 void *argp1 = 0 ;
40139 int res1 = 0 ;
40140 wxPoint temp2 ;
40141 void *argp3 = 0 ;
40142 int res3 = 0 ;
40143 bool val4 ;
40144 int ecode4 = 0 ;
40145 void *argp5 = 0 ;
40146 int res5 = 0 ;
40147 PyObject * obj0 = 0 ;
40148 PyObject * obj1 = 0 ;
40149 PyObject * obj2 = 0 ;
40150 PyObject * obj3 = 0 ;
40151 PyObject * obj4 = 0 ;
40152 char * kwnames[] = {
40153 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40154 };
40155
40156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40158 if (!SWIG_IsOK(res1)) {
40159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40160 }
40161 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40162 {
40163 arg2 = &temp2;
40164 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40165 }
40166 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40167 if (!SWIG_IsOK(res3)) {
40168 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40169 }
40170 arg3 = reinterpret_cast< wxWindow * >(argp3);
40171 if (obj3) {
40172 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40173 if (!SWIG_IsOK(ecode4)) {
40174 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40175 }
40176 arg4 = static_cast< bool >(val4);
40177 }
40178 if (obj4) {
40179 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40180 if (!SWIG_IsOK(res5)) {
40181 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40182 }
40183 arg5 = reinterpret_cast< wxRect * >(argp5);
40184 }
40185 {
40186 PyThreadState* __tstate = wxPyBeginAllowThreads();
40187 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40188 wxPyEndAllowThreads(__tstate);
40189 if (PyErr_Occurred()) SWIG_fail;
40190 }
40191 {
40192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40193 }
40194 return resultobj;
40195 fail:
40196 return NULL;
40197 }
40198
40199
40200 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40201 PyObject *resultobj = 0;
40202 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40203 wxPoint *arg2 = 0 ;
40204 wxWindow *arg3 = (wxWindow *) 0 ;
40205 wxWindow *arg4 = (wxWindow *) 0 ;
40206 bool result;
40207 void *argp1 = 0 ;
40208 int res1 = 0 ;
40209 wxPoint temp2 ;
40210 void *argp3 = 0 ;
40211 int res3 = 0 ;
40212 void *argp4 = 0 ;
40213 int res4 = 0 ;
40214 PyObject * obj0 = 0 ;
40215 PyObject * obj1 = 0 ;
40216 PyObject * obj2 = 0 ;
40217 PyObject * obj3 = 0 ;
40218 char * kwnames[] = {
40219 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40220 };
40221
40222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40224 if (!SWIG_IsOK(res1)) {
40225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40226 }
40227 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40228 {
40229 arg2 = &temp2;
40230 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40231 }
40232 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40233 if (!SWIG_IsOK(res3)) {
40234 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40235 }
40236 arg3 = reinterpret_cast< wxWindow * >(argp3);
40237 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40238 if (!SWIG_IsOK(res4)) {
40239 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40240 }
40241 arg4 = reinterpret_cast< wxWindow * >(argp4);
40242 {
40243 PyThreadState* __tstate = wxPyBeginAllowThreads();
40244 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40245 wxPyEndAllowThreads(__tstate);
40246 if (PyErr_Occurred()) SWIG_fail;
40247 }
40248 {
40249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40250 }
40251 return resultobj;
40252 fail:
40253 return NULL;
40254 }
40255
40256
40257 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40258 PyObject *resultobj = 0;
40259 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40260 bool result;
40261 void *argp1 = 0 ;
40262 int res1 = 0 ;
40263 PyObject *swig_obj[1] ;
40264
40265 if (!args) SWIG_fail;
40266 swig_obj[0] = args;
40267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40268 if (!SWIG_IsOK(res1)) {
40269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40270 }
40271 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40272 {
40273 PyThreadState* __tstate = wxPyBeginAllowThreads();
40274 result = (bool)(arg1)->EndDrag();
40275 wxPyEndAllowThreads(__tstate);
40276 if (PyErr_Occurred()) SWIG_fail;
40277 }
40278 {
40279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40280 }
40281 return resultobj;
40282 fail:
40283 return NULL;
40284 }
40285
40286
40287 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40288 PyObject *resultobj = 0;
40289 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40290 wxPoint *arg2 = 0 ;
40291 bool result;
40292 void *argp1 = 0 ;
40293 int res1 = 0 ;
40294 wxPoint temp2 ;
40295 PyObject * obj0 = 0 ;
40296 PyObject * obj1 = 0 ;
40297 char * kwnames[] = {
40298 (char *) "self",(char *) "pt", NULL
40299 };
40300
40301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40303 if (!SWIG_IsOK(res1)) {
40304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40305 }
40306 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40307 {
40308 arg2 = &temp2;
40309 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40310 }
40311 {
40312 PyThreadState* __tstate = wxPyBeginAllowThreads();
40313 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40314 wxPyEndAllowThreads(__tstate);
40315 if (PyErr_Occurred()) SWIG_fail;
40316 }
40317 {
40318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40319 }
40320 return resultobj;
40321 fail:
40322 return NULL;
40323 }
40324
40325
40326 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40327 PyObject *resultobj = 0;
40328 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40329 bool result;
40330 void *argp1 = 0 ;
40331 int res1 = 0 ;
40332 PyObject *swig_obj[1] ;
40333
40334 if (!args) SWIG_fail;
40335 swig_obj[0] = args;
40336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40337 if (!SWIG_IsOK(res1)) {
40338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40339 }
40340 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40341 {
40342 PyThreadState* __tstate = wxPyBeginAllowThreads();
40343 result = (bool)(arg1)->Show();
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_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40357 PyObject *resultobj = 0;
40358 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40359 bool result;
40360 void *argp1 = 0 ;
40361 int res1 = 0 ;
40362 PyObject *swig_obj[1] ;
40363
40364 if (!args) SWIG_fail;
40365 swig_obj[0] = args;
40366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40367 if (!SWIG_IsOK(res1)) {
40368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40369 }
40370 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40371 {
40372 PyThreadState* __tstate = wxPyBeginAllowThreads();
40373 result = (bool)(arg1)->Hide();
40374 wxPyEndAllowThreads(__tstate);
40375 if (PyErr_Occurred()) SWIG_fail;
40376 }
40377 {
40378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40379 }
40380 return resultobj;
40381 fail:
40382 return NULL;
40383 }
40384
40385
40386 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40387 PyObject *resultobj = 0;
40388 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40389 wxPoint *arg2 = 0 ;
40390 wxRect result;
40391 void *argp1 = 0 ;
40392 int res1 = 0 ;
40393 wxPoint temp2 ;
40394 PyObject * obj0 = 0 ;
40395 PyObject * obj1 = 0 ;
40396 char * kwnames[] = {
40397 (char *) "self",(char *) "pos", NULL
40398 };
40399
40400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40402 if (!SWIG_IsOK(res1)) {
40403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40404 }
40405 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40406 {
40407 arg2 = &temp2;
40408 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40409 }
40410 {
40411 PyThreadState* __tstate = wxPyBeginAllowThreads();
40412 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40413 wxPyEndAllowThreads(__tstate);
40414 if (PyErr_Occurred()) SWIG_fail;
40415 }
40416 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40417 return resultobj;
40418 fail:
40419 return NULL;
40420 }
40421
40422
40423 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40424 PyObject *resultobj = 0;
40425 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40426 wxDC *arg2 = 0 ;
40427 wxPoint *arg3 = 0 ;
40428 bool result;
40429 void *argp1 = 0 ;
40430 int res1 = 0 ;
40431 void *argp2 = 0 ;
40432 int res2 = 0 ;
40433 wxPoint temp3 ;
40434 PyObject * obj0 = 0 ;
40435 PyObject * obj1 = 0 ;
40436 PyObject * obj2 = 0 ;
40437 char * kwnames[] = {
40438 (char *) "self",(char *) "dc",(char *) "pos", NULL
40439 };
40440
40441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40443 if (!SWIG_IsOK(res1)) {
40444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40445 }
40446 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40447 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40448 if (!SWIG_IsOK(res2)) {
40449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40450 }
40451 if (!argp2) {
40452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40453 }
40454 arg2 = reinterpret_cast< wxDC * >(argp2);
40455 {
40456 arg3 = &temp3;
40457 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40458 }
40459 {
40460 PyThreadState* __tstate = wxPyBeginAllowThreads();
40461 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40462 wxPyEndAllowThreads(__tstate);
40463 if (PyErr_Occurred()) SWIG_fail;
40464 }
40465 {
40466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40467 }
40468 return resultobj;
40469 fail:
40470 return NULL;
40471 }
40472
40473
40474 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40475 PyObject *resultobj = 0;
40476 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40477 wxDC *arg2 = 0 ;
40478 wxMemoryDC *arg3 = 0 ;
40479 wxRect *arg4 = 0 ;
40480 wxRect *arg5 = 0 ;
40481 bool result;
40482 void *argp1 = 0 ;
40483 int res1 = 0 ;
40484 void *argp2 = 0 ;
40485 int res2 = 0 ;
40486 void *argp3 = 0 ;
40487 int res3 = 0 ;
40488 wxRect temp4 ;
40489 wxRect temp5 ;
40490 PyObject * obj0 = 0 ;
40491 PyObject * obj1 = 0 ;
40492 PyObject * obj2 = 0 ;
40493 PyObject * obj3 = 0 ;
40494 PyObject * obj4 = 0 ;
40495 char * kwnames[] = {
40496 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40497 };
40498
40499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40501 if (!SWIG_IsOK(res1)) {
40502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40503 }
40504 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40505 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40506 if (!SWIG_IsOK(res2)) {
40507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40508 }
40509 if (!argp2) {
40510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40511 }
40512 arg2 = reinterpret_cast< wxDC * >(argp2);
40513 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40514 if (!SWIG_IsOK(res3)) {
40515 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40516 }
40517 if (!argp3) {
40518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40519 }
40520 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40521 {
40522 arg4 = &temp4;
40523 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40524 }
40525 {
40526 arg5 = &temp5;
40527 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40528 }
40529 {
40530 PyThreadState* __tstate = wxPyBeginAllowThreads();
40531 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40532 wxPyEndAllowThreads(__tstate);
40533 if (PyErr_Occurred()) SWIG_fail;
40534 }
40535 {
40536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40537 }
40538 return resultobj;
40539 fail:
40540 return NULL;
40541 }
40542
40543
40544 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40545 PyObject *resultobj = 0;
40546 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40547 wxPoint *arg2 = 0 ;
40548 wxPoint *arg3 = 0 ;
40549 bool arg4 ;
40550 bool arg5 ;
40551 bool result;
40552 void *argp1 = 0 ;
40553 int res1 = 0 ;
40554 wxPoint temp2 ;
40555 wxPoint temp3 ;
40556 bool val4 ;
40557 int ecode4 = 0 ;
40558 bool val5 ;
40559 int ecode5 = 0 ;
40560 PyObject * obj0 = 0 ;
40561 PyObject * obj1 = 0 ;
40562 PyObject * obj2 = 0 ;
40563 PyObject * obj3 = 0 ;
40564 PyObject * obj4 = 0 ;
40565 char * kwnames[] = {
40566 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40567 };
40568
40569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40571 if (!SWIG_IsOK(res1)) {
40572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40573 }
40574 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40575 {
40576 arg2 = &temp2;
40577 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40578 }
40579 {
40580 arg3 = &temp3;
40581 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40582 }
40583 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40584 if (!SWIG_IsOK(ecode4)) {
40585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40586 }
40587 arg4 = static_cast< bool >(val4);
40588 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40589 if (!SWIG_IsOK(ecode5)) {
40590 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40591 }
40592 arg5 = static_cast< bool >(val5);
40593 {
40594 PyThreadState* __tstate = wxPyBeginAllowThreads();
40595 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40596 wxPyEndAllowThreads(__tstate);
40597 if (PyErr_Occurred()) SWIG_fail;
40598 }
40599 {
40600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40601 }
40602 return resultobj;
40603 fail:
40604 return NULL;
40605 }
40606
40607
40608 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40609 PyObject *obj;
40610 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40611 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40612 return SWIG_Py_Void();
40613 }
40614
40615 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40616 return SWIG_Python_InitShadowInstance(args);
40617 }
40618
40619 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40620 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40621 return 1;
40622 }
40623
40624
40625 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40626 PyObject *pyobj = 0;
40627
40628 {
40629 #if wxUSE_UNICODE
40630 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40631 #else
40632 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40633 #endif
40634 }
40635 return pyobj;
40636 }
40637
40638
40639 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40640 PyObject *resultobj = 0;
40641 wxWindow *arg1 = (wxWindow *) 0 ;
40642 int arg2 = (int) -1 ;
40643 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40644 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40645 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40646 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40647 wxSize const &arg5_defvalue = wxDefaultSize ;
40648 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40649 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40650 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40651 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40652 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40653 wxString *arg8 = (wxString *) &arg8_defvalue ;
40654 wxDatePickerCtrl *result = 0 ;
40655 void *argp1 = 0 ;
40656 int res1 = 0 ;
40657 int val2 ;
40658 int ecode2 = 0 ;
40659 void *argp3 = 0 ;
40660 int res3 = 0 ;
40661 wxPoint temp4 ;
40662 wxSize temp5 ;
40663 long val6 ;
40664 int ecode6 = 0 ;
40665 void *argp7 = 0 ;
40666 int res7 = 0 ;
40667 bool temp8 = false ;
40668 PyObject * obj0 = 0 ;
40669 PyObject * obj1 = 0 ;
40670 PyObject * obj2 = 0 ;
40671 PyObject * obj3 = 0 ;
40672 PyObject * obj4 = 0 ;
40673 PyObject * obj5 = 0 ;
40674 PyObject * obj6 = 0 ;
40675 PyObject * obj7 = 0 ;
40676 char * kwnames[] = {
40677 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40678 };
40679
40680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40682 if (!SWIG_IsOK(res1)) {
40683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40684 }
40685 arg1 = reinterpret_cast< wxWindow * >(argp1);
40686 if (obj1) {
40687 ecode2 = SWIG_AsVal_int(obj1, &val2);
40688 if (!SWIG_IsOK(ecode2)) {
40689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40690 }
40691 arg2 = static_cast< int >(val2);
40692 }
40693 if (obj2) {
40694 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40695 if (!SWIG_IsOK(res3)) {
40696 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40697 }
40698 if (!argp3) {
40699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40700 }
40701 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40702 }
40703 if (obj3) {
40704 {
40705 arg4 = &temp4;
40706 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
40707 }
40708 }
40709 if (obj4) {
40710 {
40711 arg5 = &temp5;
40712 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
40713 }
40714 }
40715 if (obj5) {
40716 ecode6 = SWIG_AsVal_long(obj5, &val6);
40717 if (!SWIG_IsOK(ecode6)) {
40718 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40719 }
40720 arg6 = static_cast< long >(val6);
40721 }
40722 if (obj6) {
40723 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40724 if (!SWIG_IsOK(res7)) {
40725 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40726 }
40727 if (!argp7) {
40728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40729 }
40730 arg7 = reinterpret_cast< wxValidator * >(argp7);
40731 }
40732 if (obj7) {
40733 {
40734 arg8 = wxString_in_helper(obj7);
40735 if (arg8 == NULL) SWIG_fail;
40736 temp8 = true;
40737 }
40738 }
40739 {
40740 if (!wxPyCheckForApp()) SWIG_fail;
40741 PyThreadState* __tstate = wxPyBeginAllowThreads();
40742 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40743 wxPyEndAllowThreads(__tstate);
40744 if (PyErr_Occurred()) SWIG_fail;
40745 }
40746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40747 {
40748 if (temp8)
40749 delete arg8;
40750 }
40751 return resultobj;
40752 fail:
40753 {
40754 if (temp8)
40755 delete arg8;
40756 }
40757 return NULL;
40758 }
40759
40760
40761 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40762 PyObject *resultobj = 0;
40763 wxDatePickerCtrl *result = 0 ;
40764
40765 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40766 {
40767 if (!wxPyCheckForApp()) SWIG_fail;
40768 PyThreadState* __tstate = wxPyBeginAllowThreads();
40769 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40770 wxPyEndAllowThreads(__tstate);
40771 if (PyErr_Occurred()) SWIG_fail;
40772 }
40773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40774 return resultobj;
40775 fail:
40776 return NULL;
40777 }
40778
40779
40780 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40781 PyObject *resultobj = 0;
40782 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40783 wxWindow *arg2 = (wxWindow *) 0 ;
40784 int arg3 = (int) -1 ;
40785 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40786 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40787 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40788 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40789 wxSize const &arg6_defvalue = wxDefaultSize ;
40790 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40791 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40792 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40793 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40794 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40795 wxString *arg9 = (wxString *) &arg9_defvalue ;
40796 bool result;
40797 void *argp1 = 0 ;
40798 int res1 = 0 ;
40799 void *argp2 = 0 ;
40800 int res2 = 0 ;
40801 int val3 ;
40802 int ecode3 = 0 ;
40803 void *argp4 = 0 ;
40804 int res4 = 0 ;
40805 wxPoint temp5 ;
40806 wxSize temp6 ;
40807 long val7 ;
40808 int ecode7 = 0 ;
40809 void *argp8 = 0 ;
40810 int res8 = 0 ;
40811 bool temp9 = false ;
40812 PyObject * obj0 = 0 ;
40813 PyObject * obj1 = 0 ;
40814 PyObject * obj2 = 0 ;
40815 PyObject * obj3 = 0 ;
40816 PyObject * obj4 = 0 ;
40817 PyObject * obj5 = 0 ;
40818 PyObject * obj6 = 0 ;
40819 PyObject * obj7 = 0 ;
40820 PyObject * obj8 = 0 ;
40821 char * kwnames[] = {
40822 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40823 };
40824
40825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40827 if (!SWIG_IsOK(res1)) {
40828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40829 }
40830 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40831 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40832 if (!SWIG_IsOK(res2)) {
40833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40834 }
40835 arg2 = reinterpret_cast< wxWindow * >(argp2);
40836 if (obj2) {
40837 ecode3 = SWIG_AsVal_int(obj2, &val3);
40838 if (!SWIG_IsOK(ecode3)) {
40839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40840 }
40841 arg3 = static_cast< int >(val3);
40842 }
40843 if (obj3) {
40844 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40845 if (!SWIG_IsOK(res4)) {
40846 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40847 }
40848 if (!argp4) {
40849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40850 }
40851 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40852 }
40853 if (obj4) {
40854 {
40855 arg5 = &temp5;
40856 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
40857 }
40858 }
40859 if (obj5) {
40860 {
40861 arg6 = &temp6;
40862 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
40863 }
40864 }
40865 if (obj6) {
40866 ecode7 = SWIG_AsVal_long(obj6, &val7);
40867 if (!SWIG_IsOK(ecode7)) {
40868 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40869 }
40870 arg7 = static_cast< long >(val7);
40871 }
40872 if (obj7) {
40873 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40874 if (!SWIG_IsOK(res8)) {
40875 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40876 }
40877 if (!argp8) {
40878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40879 }
40880 arg8 = reinterpret_cast< wxValidator * >(argp8);
40881 }
40882 if (obj8) {
40883 {
40884 arg9 = wxString_in_helper(obj8);
40885 if (arg9 == NULL) SWIG_fail;
40886 temp9 = true;
40887 }
40888 }
40889 {
40890 PyThreadState* __tstate = wxPyBeginAllowThreads();
40891 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40892 wxPyEndAllowThreads(__tstate);
40893 if (PyErr_Occurred()) SWIG_fail;
40894 }
40895 {
40896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40897 }
40898 {
40899 if (temp9)
40900 delete arg9;
40901 }
40902 return resultobj;
40903 fail:
40904 {
40905 if (temp9)
40906 delete arg9;
40907 }
40908 return NULL;
40909 }
40910
40911
40912 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40913 PyObject *resultobj = 0;
40914 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40915 wxDateTime *arg2 = 0 ;
40916 void *argp1 = 0 ;
40917 int res1 = 0 ;
40918 void *argp2 = 0 ;
40919 int res2 = 0 ;
40920 PyObject * obj0 = 0 ;
40921 PyObject * obj1 = 0 ;
40922 char * kwnames[] = {
40923 (char *) "self",(char *) "dt", NULL
40924 };
40925
40926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40928 if (!SWIG_IsOK(res1)) {
40929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40930 }
40931 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40932 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40933 if (!SWIG_IsOK(res2)) {
40934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40935 }
40936 if (!argp2) {
40937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40938 }
40939 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40940 {
40941 PyThreadState* __tstate = wxPyBeginAllowThreads();
40942 (arg1)->SetValue((wxDateTime const &)*arg2);
40943 wxPyEndAllowThreads(__tstate);
40944 if (PyErr_Occurred()) SWIG_fail;
40945 }
40946 resultobj = SWIG_Py_Void();
40947 return resultobj;
40948 fail:
40949 return NULL;
40950 }
40951
40952
40953 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40954 PyObject *resultobj = 0;
40955 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40956 wxDateTime result;
40957 void *argp1 = 0 ;
40958 int res1 = 0 ;
40959 PyObject *swig_obj[1] ;
40960
40961 if (!args) SWIG_fail;
40962 swig_obj[0] = args;
40963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40964 if (!SWIG_IsOK(res1)) {
40965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40966 }
40967 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40968 {
40969 PyThreadState* __tstate = wxPyBeginAllowThreads();
40970 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40971 wxPyEndAllowThreads(__tstate);
40972 if (PyErr_Occurred()) SWIG_fail;
40973 }
40974 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40975 return resultobj;
40976 fail:
40977 return NULL;
40978 }
40979
40980
40981 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40982 PyObject *resultobj = 0;
40983 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40984 wxDateTime *arg2 = 0 ;
40985 wxDateTime *arg3 = 0 ;
40986 void *argp1 = 0 ;
40987 int res1 = 0 ;
40988 void *argp2 = 0 ;
40989 int res2 = 0 ;
40990 void *argp3 = 0 ;
40991 int res3 = 0 ;
40992 PyObject * obj0 = 0 ;
40993 PyObject * obj1 = 0 ;
40994 PyObject * obj2 = 0 ;
40995 char * kwnames[] = {
40996 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40997 };
40998
40999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41001 if (!SWIG_IsOK(res1)) {
41002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41003 }
41004 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41006 if (!SWIG_IsOK(res2)) {
41007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41008 }
41009 if (!argp2) {
41010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41011 }
41012 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41013 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41014 if (!SWIG_IsOK(res3)) {
41015 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41016 }
41017 if (!argp3) {
41018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41019 }
41020 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41021 {
41022 PyThreadState* __tstate = wxPyBeginAllowThreads();
41023 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41024 wxPyEndAllowThreads(__tstate);
41025 if (PyErr_Occurred()) SWIG_fail;
41026 }
41027 resultobj = SWIG_Py_Void();
41028 return resultobj;
41029 fail:
41030 return NULL;
41031 }
41032
41033
41034 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41035 PyObject *resultobj = 0;
41036 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41037 wxDateTime result;
41038 void *argp1 = 0 ;
41039 int res1 = 0 ;
41040 PyObject *swig_obj[1] ;
41041
41042 if (!args) SWIG_fail;
41043 swig_obj[0] = args;
41044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41045 if (!SWIG_IsOK(res1)) {
41046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41047 }
41048 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41049 {
41050 PyThreadState* __tstate = wxPyBeginAllowThreads();
41051 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41052 wxPyEndAllowThreads(__tstate);
41053 if (PyErr_Occurred()) SWIG_fail;
41054 }
41055 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41056 return resultobj;
41057 fail:
41058 return NULL;
41059 }
41060
41061
41062 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41063 PyObject *resultobj = 0;
41064 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41065 wxDateTime result;
41066 void *argp1 = 0 ;
41067 int res1 = 0 ;
41068 PyObject *swig_obj[1] ;
41069
41070 if (!args) SWIG_fail;
41071 swig_obj[0] = args;
41072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41073 if (!SWIG_IsOK(res1)) {
41074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41075 }
41076 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41077 {
41078 PyThreadState* __tstate = wxPyBeginAllowThreads();
41079 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41080 wxPyEndAllowThreads(__tstate);
41081 if (PyErr_Occurred()) SWIG_fail;
41082 }
41083 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41084 return resultobj;
41085 fail:
41086 return NULL;
41087 }
41088
41089
41090 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41091 PyObject *obj;
41092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41093 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41094 return SWIG_Py_Void();
41095 }
41096
41097 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41098 return SWIG_Python_InitShadowInstance(args);
41099 }
41100
41101 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41102 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41103 return 1;
41104 }
41105
41106
41107 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41108 PyObject *pyobj = 0;
41109
41110 {
41111 #if wxUSE_UNICODE
41112 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41113 #else
41114 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41115 #endif
41116 }
41117 return pyobj;
41118 }
41119
41120
41121 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41122 PyObject *resultobj = 0;
41123 wxWindow *arg1 = (wxWindow *) 0 ;
41124 int arg2 ;
41125 wxString *arg3 = 0 ;
41126 wxString *arg4 = 0 ;
41127 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41128 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41129 wxSize const &arg6_defvalue = wxDefaultSize ;
41130 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41131 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41132 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41133 wxString *arg8 = (wxString *) &arg8_defvalue ;
41134 wxHyperlinkCtrl *result = 0 ;
41135 void *argp1 = 0 ;
41136 int res1 = 0 ;
41137 int val2 ;
41138 int ecode2 = 0 ;
41139 bool temp3 = false ;
41140 bool temp4 = false ;
41141 wxPoint temp5 ;
41142 wxSize temp6 ;
41143 long val7 ;
41144 int ecode7 = 0 ;
41145 bool temp8 = false ;
41146 PyObject * obj0 = 0 ;
41147 PyObject * obj1 = 0 ;
41148 PyObject * obj2 = 0 ;
41149 PyObject * obj3 = 0 ;
41150 PyObject * obj4 = 0 ;
41151 PyObject * obj5 = 0 ;
41152 PyObject * obj6 = 0 ;
41153 PyObject * obj7 = 0 ;
41154 char * kwnames[] = {
41155 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41156 };
41157
41158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41160 if (!SWIG_IsOK(res1)) {
41161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41162 }
41163 arg1 = reinterpret_cast< wxWindow * >(argp1);
41164 ecode2 = SWIG_AsVal_int(obj1, &val2);
41165 if (!SWIG_IsOK(ecode2)) {
41166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41167 }
41168 arg2 = static_cast< int >(val2);
41169 {
41170 arg3 = wxString_in_helper(obj2);
41171 if (arg3 == NULL) SWIG_fail;
41172 temp3 = true;
41173 }
41174 {
41175 arg4 = wxString_in_helper(obj3);
41176 if (arg4 == NULL) SWIG_fail;
41177 temp4 = true;
41178 }
41179 if (obj4) {
41180 {
41181 arg5 = &temp5;
41182 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41183 }
41184 }
41185 if (obj5) {
41186 {
41187 arg6 = &temp6;
41188 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41189 }
41190 }
41191 if (obj6) {
41192 ecode7 = SWIG_AsVal_long(obj6, &val7);
41193 if (!SWIG_IsOK(ecode7)) {
41194 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41195 }
41196 arg7 = static_cast< long >(val7);
41197 }
41198 if (obj7) {
41199 {
41200 arg8 = wxString_in_helper(obj7);
41201 if (arg8 == NULL) SWIG_fail;
41202 temp8 = true;
41203 }
41204 }
41205 {
41206 if (!wxPyCheckForApp()) SWIG_fail;
41207 PyThreadState* __tstate = wxPyBeginAllowThreads();
41208 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41209 wxPyEndAllowThreads(__tstate);
41210 if (PyErr_Occurred()) SWIG_fail;
41211 }
41212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41213 {
41214 if (temp3)
41215 delete arg3;
41216 }
41217 {
41218 if (temp4)
41219 delete arg4;
41220 }
41221 {
41222 if (temp8)
41223 delete arg8;
41224 }
41225 return resultobj;
41226 fail:
41227 {
41228 if (temp3)
41229 delete arg3;
41230 }
41231 {
41232 if (temp4)
41233 delete arg4;
41234 }
41235 {
41236 if (temp8)
41237 delete arg8;
41238 }
41239 return NULL;
41240 }
41241
41242
41243 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41244 PyObject *resultobj = 0;
41245 wxHyperlinkCtrl *result = 0 ;
41246
41247 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41248 {
41249 if (!wxPyCheckForApp()) SWIG_fail;
41250 PyThreadState* __tstate = wxPyBeginAllowThreads();
41251 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41252 wxPyEndAllowThreads(__tstate);
41253 if (PyErr_Occurred()) SWIG_fail;
41254 }
41255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41256 return resultobj;
41257 fail:
41258 return NULL;
41259 }
41260
41261
41262 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41263 PyObject *resultobj = 0;
41264 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41265 wxWindow *arg2 = (wxWindow *) 0 ;
41266 int arg3 ;
41267 wxString *arg4 = 0 ;
41268 wxString *arg5 = 0 ;
41269 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41270 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41271 wxSize const &arg7_defvalue = wxDefaultSize ;
41272 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41273 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41274 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41275 wxString *arg9 = (wxString *) &arg9_defvalue ;
41276 bool result;
41277 void *argp1 = 0 ;
41278 int res1 = 0 ;
41279 void *argp2 = 0 ;
41280 int res2 = 0 ;
41281 int val3 ;
41282 int ecode3 = 0 ;
41283 bool temp4 = false ;
41284 bool temp5 = false ;
41285 wxPoint temp6 ;
41286 wxSize temp7 ;
41287 long val8 ;
41288 int ecode8 = 0 ;
41289 bool temp9 = false ;
41290 PyObject * obj0 = 0 ;
41291 PyObject * obj1 = 0 ;
41292 PyObject * obj2 = 0 ;
41293 PyObject * obj3 = 0 ;
41294 PyObject * obj4 = 0 ;
41295 PyObject * obj5 = 0 ;
41296 PyObject * obj6 = 0 ;
41297 PyObject * obj7 = 0 ;
41298 PyObject * obj8 = 0 ;
41299 char * kwnames[] = {
41300 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41301 };
41302
41303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41305 if (!SWIG_IsOK(res1)) {
41306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41307 }
41308 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41310 if (!SWIG_IsOK(res2)) {
41311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41312 }
41313 arg2 = reinterpret_cast< wxWindow * >(argp2);
41314 ecode3 = SWIG_AsVal_int(obj2, &val3);
41315 if (!SWIG_IsOK(ecode3)) {
41316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41317 }
41318 arg3 = static_cast< int >(val3);
41319 {
41320 arg4 = wxString_in_helper(obj3);
41321 if (arg4 == NULL) SWIG_fail;
41322 temp4 = true;
41323 }
41324 {
41325 arg5 = wxString_in_helper(obj4);
41326 if (arg5 == NULL) SWIG_fail;
41327 temp5 = true;
41328 }
41329 if (obj5) {
41330 {
41331 arg6 = &temp6;
41332 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41333 }
41334 }
41335 if (obj6) {
41336 {
41337 arg7 = &temp7;
41338 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41339 }
41340 }
41341 if (obj7) {
41342 ecode8 = SWIG_AsVal_long(obj7, &val8);
41343 if (!SWIG_IsOK(ecode8)) {
41344 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41345 }
41346 arg8 = static_cast< long >(val8);
41347 }
41348 if (obj8) {
41349 {
41350 arg9 = wxString_in_helper(obj8);
41351 if (arg9 == NULL) SWIG_fail;
41352 temp9 = true;
41353 }
41354 }
41355 {
41356 PyThreadState* __tstate = wxPyBeginAllowThreads();
41357 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41358 wxPyEndAllowThreads(__tstate);
41359 if (PyErr_Occurred()) SWIG_fail;
41360 }
41361 {
41362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41363 }
41364 {
41365 if (temp4)
41366 delete arg4;
41367 }
41368 {
41369 if (temp5)
41370 delete arg5;
41371 }
41372 {
41373 if (temp9)
41374 delete arg9;
41375 }
41376 return resultobj;
41377 fail:
41378 {
41379 if (temp4)
41380 delete arg4;
41381 }
41382 {
41383 if (temp5)
41384 delete arg5;
41385 }
41386 {
41387 if (temp9)
41388 delete arg9;
41389 }
41390 return NULL;
41391 }
41392
41393
41394 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41395 PyObject *resultobj = 0;
41396 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41397 wxColour result;
41398 void *argp1 = 0 ;
41399 int res1 = 0 ;
41400 PyObject *swig_obj[1] ;
41401
41402 if (!args) SWIG_fail;
41403 swig_obj[0] = args;
41404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41405 if (!SWIG_IsOK(res1)) {
41406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41407 }
41408 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41409 {
41410 PyThreadState* __tstate = wxPyBeginAllowThreads();
41411 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41412 wxPyEndAllowThreads(__tstate);
41413 if (PyErr_Occurred()) SWIG_fail;
41414 }
41415 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41416 return resultobj;
41417 fail:
41418 return NULL;
41419 }
41420
41421
41422 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41423 PyObject *resultobj = 0;
41424 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41425 wxColour *arg2 = 0 ;
41426 void *argp1 = 0 ;
41427 int res1 = 0 ;
41428 wxColour temp2 ;
41429 PyObject * obj0 = 0 ;
41430 PyObject * obj1 = 0 ;
41431 char * kwnames[] = {
41432 (char *) "self",(char *) "colour", NULL
41433 };
41434
41435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41437 if (!SWIG_IsOK(res1)) {
41438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41439 }
41440 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41441 {
41442 arg2 = &temp2;
41443 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41444 }
41445 {
41446 PyThreadState* __tstate = wxPyBeginAllowThreads();
41447 (arg1)->SetHoverColour((wxColour const &)*arg2);
41448 wxPyEndAllowThreads(__tstate);
41449 if (PyErr_Occurred()) SWIG_fail;
41450 }
41451 resultobj = SWIG_Py_Void();
41452 return resultobj;
41453 fail:
41454 return NULL;
41455 }
41456
41457
41458 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41459 PyObject *resultobj = 0;
41460 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41461 wxColour result;
41462 void *argp1 = 0 ;
41463 int res1 = 0 ;
41464 PyObject *swig_obj[1] ;
41465
41466 if (!args) SWIG_fail;
41467 swig_obj[0] = args;
41468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41469 if (!SWIG_IsOK(res1)) {
41470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41471 }
41472 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41473 {
41474 PyThreadState* __tstate = wxPyBeginAllowThreads();
41475 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41476 wxPyEndAllowThreads(__tstate);
41477 if (PyErr_Occurred()) SWIG_fail;
41478 }
41479 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41480 return resultobj;
41481 fail:
41482 return NULL;
41483 }
41484
41485
41486 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41487 PyObject *resultobj = 0;
41488 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41489 wxColour *arg2 = 0 ;
41490 void *argp1 = 0 ;
41491 int res1 = 0 ;
41492 wxColour temp2 ;
41493 PyObject * obj0 = 0 ;
41494 PyObject * obj1 = 0 ;
41495 char * kwnames[] = {
41496 (char *) "self",(char *) "colour", NULL
41497 };
41498
41499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41501 if (!SWIG_IsOK(res1)) {
41502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41503 }
41504 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41505 {
41506 arg2 = &temp2;
41507 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41508 }
41509 {
41510 PyThreadState* __tstate = wxPyBeginAllowThreads();
41511 (arg1)->SetNormalColour((wxColour const &)*arg2);
41512 wxPyEndAllowThreads(__tstate);
41513 if (PyErr_Occurred()) SWIG_fail;
41514 }
41515 resultobj = SWIG_Py_Void();
41516 return resultobj;
41517 fail:
41518 return NULL;
41519 }
41520
41521
41522 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41523 PyObject *resultobj = 0;
41524 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41525 wxColour result;
41526 void *argp1 = 0 ;
41527 int res1 = 0 ;
41528 PyObject *swig_obj[1] ;
41529
41530 if (!args) SWIG_fail;
41531 swig_obj[0] = args;
41532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41533 if (!SWIG_IsOK(res1)) {
41534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41535 }
41536 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41537 {
41538 PyThreadState* __tstate = wxPyBeginAllowThreads();
41539 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41540 wxPyEndAllowThreads(__tstate);
41541 if (PyErr_Occurred()) SWIG_fail;
41542 }
41543 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41544 return resultobj;
41545 fail:
41546 return NULL;
41547 }
41548
41549
41550 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41551 PyObject *resultobj = 0;
41552 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41553 wxColour *arg2 = 0 ;
41554 void *argp1 = 0 ;
41555 int res1 = 0 ;
41556 wxColour temp2 ;
41557 PyObject * obj0 = 0 ;
41558 PyObject * obj1 = 0 ;
41559 char * kwnames[] = {
41560 (char *) "self",(char *) "colour", NULL
41561 };
41562
41563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41565 if (!SWIG_IsOK(res1)) {
41566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41567 }
41568 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41569 {
41570 arg2 = &temp2;
41571 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41572 }
41573 {
41574 PyThreadState* __tstate = wxPyBeginAllowThreads();
41575 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41576 wxPyEndAllowThreads(__tstate);
41577 if (PyErr_Occurred()) SWIG_fail;
41578 }
41579 resultobj = SWIG_Py_Void();
41580 return resultobj;
41581 fail:
41582 return NULL;
41583 }
41584
41585
41586 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41587 PyObject *resultobj = 0;
41588 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41589 wxString result;
41590 void *argp1 = 0 ;
41591 int res1 = 0 ;
41592 PyObject *swig_obj[1] ;
41593
41594 if (!args) SWIG_fail;
41595 swig_obj[0] = args;
41596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41597 if (!SWIG_IsOK(res1)) {
41598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41599 }
41600 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41601 {
41602 PyThreadState* __tstate = wxPyBeginAllowThreads();
41603 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41604 wxPyEndAllowThreads(__tstate);
41605 if (PyErr_Occurred()) SWIG_fail;
41606 }
41607 {
41608 #if wxUSE_UNICODE
41609 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41610 #else
41611 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41612 #endif
41613 }
41614 return resultobj;
41615 fail:
41616 return NULL;
41617 }
41618
41619
41620 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41621 PyObject *resultobj = 0;
41622 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41623 wxString *arg2 = 0 ;
41624 void *argp1 = 0 ;
41625 int res1 = 0 ;
41626 bool temp2 = false ;
41627 PyObject * obj0 = 0 ;
41628 PyObject * obj1 = 0 ;
41629 char * kwnames[] = {
41630 (char *) "self",(char *) "url", NULL
41631 };
41632
41633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41635 if (!SWIG_IsOK(res1)) {
41636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41637 }
41638 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41639 {
41640 arg2 = wxString_in_helper(obj1);
41641 if (arg2 == NULL) SWIG_fail;
41642 temp2 = true;
41643 }
41644 {
41645 PyThreadState* __tstate = wxPyBeginAllowThreads();
41646 (arg1)->SetURL((wxString const &)*arg2);
41647 wxPyEndAllowThreads(__tstate);
41648 if (PyErr_Occurred()) SWIG_fail;
41649 }
41650 resultobj = SWIG_Py_Void();
41651 {
41652 if (temp2)
41653 delete arg2;
41654 }
41655 return resultobj;
41656 fail:
41657 {
41658 if (temp2)
41659 delete arg2;
41660 }
41661 return NULL;
41662 }
41663
41664
41665 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41666 PyObject *resultobj = 0;
41667 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41668 bool arg2 = (bool) true ;
41669 void *argp1 = 0 ;
41670 int res1 = 0 ;
41671 bool val2 ;
41672 int ecode2 = 0 ;
41673 PyObject * obj0 = 0 ;
41674 PyObject * obj1 = 0 ;
41675 char * kwnames[] = {
41676 (char *) "self",(char *) "visited", NULL
41677 };
41678
41679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
41680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41681 if (!SWIG_IsOK(res1)) {
41682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41683 }
41684 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41685 if (obj1) {
41686 ecode2 = SWIG_AsVal_bool(obj1, &val2);
41687 if (!SWIG_IsOK(ecode2)) {
41688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
41689 }
41690 arg2 = static_cast< bool >(val2);
41691 }
41692 {
41693 PyThreadState* __tstate = wxPyBeginAllowThreads();
41694 (arg1)->SetVisited(arg2);
41695 wxPyEndAllowThreads(__tstate);
41696 if (PyErr_Occurred()) SWIG_fail;
41697 }
41698 resultobj = SWIG_Py_Void();
41699 return resultobj;
41700 fail:
41701 return NULL;
41702 }
41703
41704
41705 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41706 PyObject *resultobj = 0;
41707 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41708 bool result;
41709 void *argp1 = 0 ;
41710 int res1 = 0 ;
41711 PyObject *swig_obj[1] ;
41712
41713 if (!args) SWIG_fail;
41714 swig_obj[0] = args;
41715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41716 if (!SWIG_IsOK(res1)) {
41717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41718 }
41719 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41720 {
41721 PyThreadState* __tstate = wxPyBeginAllowThreads();
41722 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
41723 wxPyEndAllowThreads(__tstate);
41724 if (PyErr_Occurred()) SWIG_fail;
41725 }
41726 {
41727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41728 }
41729 return resultobj;
41730 fail:
41731 return NULL;
41732 }
41733
41734
41735 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41736 PyObject *obj;
41737 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41738 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
41739 return SWIG_Py_Void();
41740 }
41741
41742 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41743 return SWIG_Python_InitShadowInstance(args);
41744 }
41745
41746 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41747 PyObject *resultobj = 0;
41748 wxObject *arg1 = (wxObject *) 0 ;
41749 int arg2 ;
41750 wxString *arg3 = 0 ;
41751 wxHyperlinkEvent *result = 0 ;
41752 void *argp1 = 0 ;
41753 int res1 = 0 ;
41754 int val2 ;
41755 int ecode2 = 0 ;
41756 bool temp3 = false ;
41757 PyObject * obj0 = 0 ;
41758 PyObject * obj1 = 0 ;
41759 PyObject * obj2 = 0 ;
41760 char * kwnames[] = {
41761 (char *) "generator",(char *) "id",(char *) "url", NULL
41762 };
41763
41764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
41766 if (!SWIG_IsOK(res1)) {
41767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
41768 }
41769 arg1 = reinterpret_cast< wxObject * >(argp1);
41770 ecode2 = SWIG_AsVal_int(obj1, &val2);
41771 if (!SWIG_IsOK(ecode2)) {
41772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
41773 }
41774 arg2 = static_cast< int >(val2);
41775 {
41776 arg3 = wxString_in_helper(obj2);
41777 if (arg3 == NULL) SWIG_fail;
41778 temp3 = true;
41779 }
41780 {
41781 PyThreadState* __tstate = wxPyBeginAllowThreads();
41782 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
41783 wxPyEndAllowThreads(__tstate);
41784 if (PyErr_Occurred()) SWIG_fail;
41785 }
41786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
41787 {
41788 if (temp3)
41789 delete arg3;
41790 }
41791 return resultobj;
41792 fail:
41793 {
41794 if (temp3)
41795 delete arg3;
41796 }
41797 return NULL;
41798 }
41799
41800
41801 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41802 PyObject *resultobj = 0;
41803 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
41804 wxString result;
41805 void *argp1 = 0 ;
41806 int res1 = 0 ;
41807 PyObject *swig_obj[1] ;
41808
41809 if (!args) SWIG_fail;
41810 swig_obj[0] = args;
41811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
41812 if (!SWIG_IsOK(res1)) {
41813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
41814 }
41815 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
41816 {
41817 PyThreadState* __tstate = wxPyBeginAllowThreads();
41818 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
41819 wxPyEndAllowThreads(__tstate);
41820 if (PyErr_Occurred()) SWIG_fail;
41821 }
41822 {
41823 #if wxUSE_UNICODE
41824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41825 #else
41826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41827 #endif
41828 }
41829 return resultobj;
41830 fail:
41831 return NULL;
41832 }
41833
41834
41835 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41836 PyObject *resultobj = 0;
41837 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
41838 wxString *arg2 = 0 ;
41839 void *argp1 = 0 ;
41840 int res1 = 0 ;
41841 bool temp2 = false ;
41842 PyObject * obj0 = 0 ;
41843 PyObject * obj1 = 0 ;
41844 char * kwnames[] = {
41845 (char *) "self",(char *) "url", NULL
41846 };
41847
41848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
41850 if (!SWIG_IsOK(res1)) {
41851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
41852 }
41853 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
41854 {
41855 arg2 = wxString_in_helper(obj1);
41856 if (arg2 == NULL) SWIG_fail;
41857 temp2 = true;
41858 }
41859 {
41860 PyThreadState* __tstate = wxPyBeginAllowThreads();
41861 (arg1)->SetURL((wxString const &)*arg2);
41862 wxPyEndAllowThreads(__tstate);
41863 if (PyErr_Occurred()) SWIG_fail;
41864 }
41865 resultobj = SWIG_Py_Void();
41866 {
41867 if (temp2)
41868 delete arg2;
41869 }
41870 return resultobj;
41871 fail:
41872 {
41873 if (temp2)
41874 delete arg2;
41875 }
41876 return NULL;
41877 }
41878
41879
41880 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41881 PyObject *obj;
41882 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41883 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
41884 return SWIG_Py_Void();
41885 }
41886
41887 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41888 return SWIG_Python_InitShadowInstance(args);
41889 }
41890
41891 static PyMethodDef SwigMethods[] = {
41892 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
41893 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
41894 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41895 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
41896 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
41897 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41898 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
41899 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
41900 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
41901 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
41902 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41903 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
41904 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
41905 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
41906 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
41907 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
41908 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
41909 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
41910 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41911 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41912 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
41913 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41914 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
41915 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
41916 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
41917 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
41918 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
41919 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
41920 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41921 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
41922 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
41923 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41924 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
41925 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
41926 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
41927 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
41928 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41929 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
41930 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
41931 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
41932 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
41933 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41934 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
41935 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41936 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
41937 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
41938 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
41939 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
41940 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41941 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
41942 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41943 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
41944 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
41945 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
41946 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41947 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
41948 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
41949 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
41950 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
41951 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
41952 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
41953 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41954 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41955 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
41956 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
41957 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
41958 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
41959 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
41960 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
41961 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
41962 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
41963 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
41964 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
41965 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
41966 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
41967 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41968 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
41969 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
41970 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
41971 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
41972 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41973 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41974 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
41975 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41976 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
41977 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
41978 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41979 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
41980 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
41981 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
41982 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41983 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
41984 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
41985 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
41986 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
41987 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41988 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41989 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
41990 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
41991 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
41992 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
41993 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41994 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
41995 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
41996 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41997 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
41998 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
41999 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
42000 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
42001 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42002 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
42003 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42004 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
42005 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
42006 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42007 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
42008 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42009 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
42010 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42011 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
42012 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42013 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
42014 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
42015 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
42016 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
42017 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42018 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
42019 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
42020 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
42021 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42022 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42023 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
42024 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
42025 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
42026 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42027 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
42028 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
42029 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
42030 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42031 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42032 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
42033 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42034 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42035 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42036 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42037 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42038 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
42039 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
42040 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
42041 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
42042 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42043 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
42044 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
42045 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
42046 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
42047 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
42048 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
42049 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
42050 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
42051 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
42052 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42053 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42054 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
42055 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
42056 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
42057 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
42058 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
42059 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
42060 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
42061 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
42062 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
42063 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
42064 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
42065 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
42066 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
42067 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
42068 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
42069 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
42070 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
42071 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
42072 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
42073 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
42074 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
42075 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
42076 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
42077 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
42078 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
42079 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
42080 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
42081 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42082 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
42083 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42084 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
42085 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42086 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42087 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
42088 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
42089 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
42090 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
42091 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
42092 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
42093 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
42094 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
42095 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
42096 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
42097 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
42098 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
42099 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
42100 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
42101 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
42102 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
42103 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
42104 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
42105 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
42106 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
42107 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42108 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42109 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42110 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
42111 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42112 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
42113 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42114 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42115 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
42116 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
42117 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
42118 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
42119 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
42120 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
42121 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
42122 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
42123 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
42124 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
42125 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
42126 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
42127 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
42128 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
42129 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
42130 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42131 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
42132 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
42133 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
42134 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
42135 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42136 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
42137 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
42138 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42139 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
42140 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
42141 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
42142 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
42143 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
42144 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
42145 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
42146 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42147 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
42148 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
42149 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
42150 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
42151 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
42152 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42153 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42154 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
42155 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
42156 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
42157 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
42158 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42159 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
42160 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
42161 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
42162 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42163 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
42164 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
42165 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42166 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
42167 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42168 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
42169 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
42170 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42171 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
42172 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42173 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
42174 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42175 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
42176 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42177 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
42178 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
42179 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42180 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42181 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
42182 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
42183 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42184 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
42185 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42186 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
42187 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
42188 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
42189 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
42190 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42191 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42192 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
42193 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
42194 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42195 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
42196 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
42197 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
42198 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
42199 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
42200 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
42201 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
42202 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
42203 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
42204 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
42205 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
42206 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42207 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42208 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42209 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
42210 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
42211 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
42212 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
42213 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42214 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
42215 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42216 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42217 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
42218 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
42219 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
42220 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
42221 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42222 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
42223 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42224 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42225 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
42226 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
42227 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
42228 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
42229 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
42230 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
42231 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
42232 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
42233 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
42234 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
42235 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
42236 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
42237 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
42238 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
42239 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
42240 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
42241 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
42242 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42243 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42244 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
42245 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
42246 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
42247 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
42248 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42249 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42250 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
42251 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42252 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
42253 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
42254 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
42255 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
42256 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
42257 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
42258 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
42259 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
42260 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42261 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42262 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
42263 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
42264 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
42265 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
42266 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
42267 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
42268 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
42269 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
42270 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
42271 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
42272 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
42273 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
42274 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
42275 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
42276 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
42277 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
42278 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
42279 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
42280 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42281 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42282 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42283 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42284 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
42285 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42286 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
42287 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42288 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
42289 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42290 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
42291 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
42292 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
42293 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
42294 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42295 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
42296 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
42297 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
42298 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
42299 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42300 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
42301 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
42302 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42303 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
42304 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
42305 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
42306 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
42307 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42308 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
42309 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
42310 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
42311 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42312 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
42313 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
42314 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
42315 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
42316 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42317 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
42318 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
42319 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
42320 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42321 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
42322 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
42323 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
42324 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
42325 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42326 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
42327 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
42328 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
42329 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
42330 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
42331 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
42332 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
42333 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
42334 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
42335 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42336 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
42337 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
42338 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
42339 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
42340 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42341 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
42342 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
42343 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
42344 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
42345 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42346 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
42347 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
42348 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
42349 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
42350 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
42351 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
42352 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
42353 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
42354 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
42355 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
42356 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
42357 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
42358 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
42359 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
42360 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
42361 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
42362 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
42363 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
42364 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
42365 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
42366 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
42367 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
42368 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42369 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42370 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42371 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42372 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42373 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
42374 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
42375 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
42376 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42377 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
42378 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
42379 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
42380 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
42381 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
42382 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
42383 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
42384 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
42385 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
42386 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
42387 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
42388 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
42389 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
42390 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
42391 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
42392 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
42393 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
42394 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
42395 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42396 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42397 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
42398 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
42399 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
42400 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42401 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42402 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42403 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42404 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
42405 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
42406 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
42407 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
42408 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
42409 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
42410 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
42411 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
42412 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
42413 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
42414 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
42415 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
42416 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
42417 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
42418 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
42419 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42420 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
42421 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
42422 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
42423 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
42424 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
42425 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
42426 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42427 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42428 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
42429 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
42430 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
42431 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
42432 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42433 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42434 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
42435 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
42436 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
42437 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
42438 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
42439 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
42440 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
42441 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
42442 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
42443 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
42444 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
42445 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
42446 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
42447 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
42448 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
42449 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
42450 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
42451 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42452 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
42453 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
42454 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
42455 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
42456 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
42457 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42458 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
42459 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42460 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42461 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
42462 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
42463 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
42464 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
42465 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
42466 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
42467 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
42468 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
42469 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
42470 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
42471 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
42472 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
42473 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
42474 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
42475 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
42476 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
42477 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
42478 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
42479 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
42480 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
42481 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
42482 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
42483 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
42484 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
42485 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
42486 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
42487 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
42488 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
42489 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
42490 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
42491 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
42492 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
42493 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
42494 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
42495 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
42496 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
42497 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
42498 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42499 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
42500 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
42501 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
42502 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
42503 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
42504 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
42505 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
42506 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
42507 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
42508 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
42509 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
42510 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
42511 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
42512 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
42513 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
42514 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
42515 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
42516 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
42517 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
42518 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
42519 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
42520 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
42521 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
42522 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
42523 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
42524 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
42525 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
42526 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42527 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
42528 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42529 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42530 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42531 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42532 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42533 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42534 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
42535 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
42536 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
42537 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42538 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42539 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42540 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
42541 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
42542 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42543 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42544 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42545 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42546 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42547 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42548 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42549 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
42550 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42551 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
42552 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
42553 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
42554 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
42555 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
42556 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
42557 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42558 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
42559 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42560 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
42561 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42562 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42563 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42564 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
42565 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
42566 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
42567 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
42568 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
42569 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
42570 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
42571 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42572 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
42573 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
42574 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42575 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42576 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
42577 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42578 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
42579 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42580 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
42581 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
42582 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42583 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
42584 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42585 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
42586 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42587 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
42588 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
42589 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42590 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42591 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42592 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42593 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42594 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42595 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
42596 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
42597 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42598 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
42599 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
42600 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
42601 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
42602 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42603 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
42604 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
42605 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
42606 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42607 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
42608 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42609 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42610 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42611 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
42612 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
42613 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
42614 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
42615 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
42616 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
42617 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
42618 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
42619 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
42620 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
42621 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
42622 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42623 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
42624 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
42625 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
42626 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
42627 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
42628 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
42629 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
42630 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
42631 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42632 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
42633 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42634 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
42635 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
42636 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
42637 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
42638 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
42639 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
42640 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42641 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
42642 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42643 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
42644 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
42645 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42646 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
42647 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
42648 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
42649 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42650 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
42651 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42652 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42653 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
42654 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
42655 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
42656 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
42657 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
42658 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
42659 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
42660 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42661 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42662 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42663 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42664 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42665 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42666 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42667 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
42668 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42669 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42670 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42671 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42672 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42673 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42674 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
42675 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42676 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
42677 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
42678 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42679 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42680 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42681 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42682 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42683 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
42684 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42685 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
42686 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
42687 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
42688 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
42689 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
42690 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
42691 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
42692 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
42693 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
42694 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
42695 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
42696 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
42697 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42698 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42699 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
42700 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
42701 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
42702 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
42703 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
42704 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
42705 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42706 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
42707 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
42708 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
42709 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
42710 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
42711 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
42712 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
42713 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
42714 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
42715 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42716 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42717 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
42718 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42719 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
42720 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42721 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42722 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
42723 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42724 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
42725 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
42726 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
42727 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
42728 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42729 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
42730 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42731 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
42732 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
42733 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
42734 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
42735 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
42736 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
42737 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
42738 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
42739 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
42740 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
42741 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
42742 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
42743 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
42744 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
42745 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
42746 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
42747 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
42748 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
42749 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
42750 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
42751 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
42752 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42753 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
42754 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42755 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
42756 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
42757 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
42758 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
42759 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
42760 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42761 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
42762 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
42763 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
42764 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
42765 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
42766 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
42767 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
42768 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
42769 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
42770 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
42771 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
42772 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
42773 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
42774 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
42775 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
42776 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42777 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
42778 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42779 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
42780 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
42781 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
42782 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
42783 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
42784 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
42785 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
42786 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
42787 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42788 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
42789 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42790 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
42791 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
42792 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
42793 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
42794 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
42795 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
42796 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
42797 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
42798 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
42799 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42800 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42801 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42802 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
42803 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42804 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
42805 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
42806 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
42807 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
42808 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
42809 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
42810 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
42811 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
42812 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
42813 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
42814 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
42815 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42816 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
42817 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
42818 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
42819 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
42820 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
42821 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
42822 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
42823 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
42824 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
42825 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
42826 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
42827 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
42828 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42829 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
42830 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42831 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42832 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
42833 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42834 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
42835 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
42836 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
42837 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
42838 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42839 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
42840 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42841 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
42842 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
42843 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
42844 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
42845 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
42846 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
42847 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
42848 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
42849 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
42850 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
42851 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
42852 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
42853 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42854 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
42855 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
42856 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
42857 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
42858 { NULL, NULL, 0, NULL }
42859 };
42860
42861
42862 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
42863
42864 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
42865 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
42866 }
42867 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
42868 return (void *)((wxEvent *) ((wxMenuEvent *) x));
42869 }
42870 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
42871 return (void *)((wxEvent *) ((wxCloseEvent *) x));
42872 }
42873 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
42874 return (void *)((wxEvent *) ((wxMouseEvent *) x));
42875 }
42876 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
42877 return (void *)((wxEvent *) ((wxEraseEvent *) x));
42878 }
42879 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
42880 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42881 }
42882 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
42883 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42884 }
42885 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
42886 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
42887 }
42888 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
42889 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
42890 }
42891 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
42892 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
42893 }
42894 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
42895 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
42896 }
42897 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
42898 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
42899 }
42900 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
42901 return (void *)((wxEvent *) ((wxPyEvent *) x));
42902 }
42903 static void *_p_wxListEventTo_p_wxEvent(void *x) {
42904 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42905 }
42906 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
42907 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42908 }
42909 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
42910 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42911 }
42912 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
42913 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42914 }
42915 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
42916 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42917 }
42918 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
42919 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42920 }
42921 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
42922 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
42923 }
42924 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
42925 return (void *)((wxEvent *) ((wxIdleEvent *) x));
42926 }
42927 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
42928 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
42929 }
42930 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
42931 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
42932 }
42933 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
42934 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
42935 }
42936 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
42937 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
42938 }
42939 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
42940 return (void *)((wxEvent *) ((wxActivateEvent *) x));
42941 }
42942 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
42943 return (void *)((wxEvent *) ((wxSizeEvent *) x));
42944 }
42945 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
42946 return (void *)((wxEvent *) ((wxMoveEvent *) x));
42947 }
42948 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
42949 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
42950 }
42951 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
42952 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
42953 }
42954 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
42955 return (void *)((wxEvent *) ((wxPaintEvent *) x));
42956 }
42957 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
42958 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
42959 }
42960 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
42961 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
42962 }
42963 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
42964 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
42965 }
42966 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
42967 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
42968 }
42969 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
42970 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42971 }
42972 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
42973 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
42974 }
42975 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
42976 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
42977 }
42978 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
42979 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
42980 }
42981 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
42982 return (void *)((wxEvent *) ((wxFocusEvent *) x));
42983 }
42984 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
42985 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
42986 }
42987 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
42988 return (void *)((wxEvent *) ((wxShowEvent *) x));
42989 }
42990 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
42991 return (void *)((wxEvent *) ((wxCommandEvent *) x));
42992 }
42993 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
42994 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
42995 }
42996 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
42997 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42998 }
42999 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
43000 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
43001 }
43002 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
43003 return (void *)((wxEvent *) ((wxKeyEvent *) x));
43004 }
43005 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
43006 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
43007 }
43008 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
43009 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
43010 }
43011 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
43012 return (void *)((wxItemContainer *) ((wxComboBox *) x));
43013 }
43014 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
43015 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43016 }
43017 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
43018 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
43019 }
43020 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
43021 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
43022 }
43023 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
43024 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
43025 }
43026 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
43027 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43028 }
43029 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
43030 return (void *)((wxPyListCtrl *) ((wxListView *) x));
43031 }
43032 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
43033 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
43034 }
43035 static void *_p_wxToolBarTo_p_wxControl(void *x) {
43036 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
43037 }
43038 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
43039 return (void *)((wxControl *) ((wxToggleButton *) x));
43040 }
43041 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
43042 return (void *)((wxControl *) ((wxRadioButton *) x));
43043 }
43044 static void *_p_wxToolbookTo_p_wxControl(void *x) {
43045 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
43046 }
43047 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
43048 return (void *)((wxControl *) ((wxToolBarBase *) x));
43049 }
43050 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
43051 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43052 }
43053 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
43054 return (void *)((wxControl *) ((wxPyListCtrl *) x));
43055 }
43056 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
43057 return (void *)((wxControl *) ((wxComboBox *) x));
43058 }
43059 static void *_p_wxPyControlTo_p_wxControl(void *x) {
43060 return (void *)((wxControl *) ((wxPyControl *) x));
43061 }
43062 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
43063 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
43064 }
43065 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
43066 return (void *)((wxControl *) ((wxScrollBar *) x));
43067 }
43068 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
43069 return (void *)((wxControl *) ((wxControlWithItems *) x));
43070 }
43071 static void *_p_wxGaugeTo_p_wxControl(void *x) {
43072 return (void *)((wxControl *) ((wxGauge *) x));
43073 }
43074 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
43075 return (void *)((wxControl *) ((wxStaticLine *) x));
43076 }
43077 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
43078 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
43079 }
43080 static void *_p_wxListbookTo_p_wxControl(void *x) {
43081 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
43082 }
43083 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
43084 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
43085 }
43086 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
43087 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
43088 }
43089 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
43090 return (void *)((wxControl *) ((wxCheckBox *) x));
43091 }
43092 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
43093 return (void *)((wxControl *) ((wxRadioBox *) x));
43094 }
43095 static void *_p_wxChoiceTo_p_wxControl(void *x) {
43096 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
43097 }
43098 static void *_p_wxListBoxTo_p_wxControl(void *x) {
43099 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
43100 }
43101 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
43102 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43103 }
43104 static void *_p_wxListViewTo_p_wxControl(void *x) {
43105 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
43106 }
43107 static void *_p_wxNotebookTo_p_wxControl(void *x) {
43108 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
43109 }
43110 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
43111 return (void *)((wxControl *) ((wxStaticBitmap *) x));
43112 }
43113 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
43114 return (void *)((wxControl *) ((wxSpinCtrl *) x));
43115 }
43116 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
43117 return (void *)((wxControl *) ((wxStaticText *) x));
43118 }
43119 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
43120 return (void *)((wxControl *) ((wxStaticBox *) x));
43121 }
43122 static void *_p_wxSliderTo_p_wxControl(void *x) {
43123 return (void *)((wxControl *) ((wxSlider *) x));
43124 }
43125 static void *_p_wxTreebookTo_p_wxControl(void *x) {
43126 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
43127 }
43128 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
43129 return (void *)((wxControl *) ((wxSpinButton *) x));
43130 }
43131 static void *_p_wxButtonTo_p_wxControl(void *x) {
43132 return (void *)((wxControl *) ((wxButton *) x));
43133 }
43134 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
43135 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
43136 }
43137 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
43138 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43139 }
43140 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
43141 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
43142 }
43143 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
43144 return (void *)((wxControl *) ((wxTextCtrl *) x));
43145 }
43146 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
43147 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
43148 }
43149 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
43150 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
43151 }
43152 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
43153 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43154 }
43155 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
43156 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
43157 }
43158 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
43159 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
43160 }
43161 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
43162 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
43163 }
43164 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
43165 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43166 }
43167 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
43168 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43169 }
43170 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
43171 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43172 }
43173 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
43174 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43175 }
43176 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
43177 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43178 }
43179 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
43180 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
43181 }
43182 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
43183 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
43184 }
43185 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
43186 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
43187 }
43188 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
43189 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
43190 }
43191 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
43192 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
43193 }
43194 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
43195 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
43196 }
43197 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
43198 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
43199 }
43200 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
43201 return (void *)((wxEvtHandler *) ((wxValidator *) x));
43202 }
43203 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
43204 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
43205 }
43206 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
43207 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43208 }
43209 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
43210 return (void *)((wxEvtHandler *) ((wxMenu *) x));
43211 }
43212 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
43213 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
43214 }
43215 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
43216 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
43217 }
43218 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
43219 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43220 }
43221 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
43222 return (void *)((wxEvtHandler *) ((wxWindow *) x));
43223 }
43224 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
43225 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
43226 }
43227 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
43228 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
43229 }
43230 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
43231 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
43232 }
43233 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
43234 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
43235 }
43236 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
43237 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43238 }
43239 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
43240 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
43241 }
43242 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
43243 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
43244 }
43245 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
43246 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
43247 }
43248 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
43249 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
43250 }
43251 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
43252 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
43253 }
43254 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
43255 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
43256 }
43257 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
43258 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
43259 }
43260 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
43261 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43262 }
43263 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
43264 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43265 }
43266 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
43267 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
43268 }
43269 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
43270 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
43271 }
43272 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
43273 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
43274 }
43275 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
43276 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
43277 }
43278 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
43279 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43280 }
43281 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
43282 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43283 }
43284 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
43285 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43286 }
43287 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
43288 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43289 }
43290 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
43291 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
43292 }
43293 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
43294 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43295 }
43296 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
43297 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
43298 }
43299 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
43300 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
43301 }
43302 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
43303 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
43304 }
43305 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
43306 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
43307 }
43308 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
43309 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43310 }
43311 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
43312 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
43313 }
43314 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
43315 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
43316 }
43317 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
43318 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
43319 }
43320 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
43321 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43322 }
43323 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
43324 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
43325 }
43326 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
43327 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
43328 }
43329 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
43330 return (void *)((wxListBox *) ((wxCheckListBox *) x));
43331 }
43332 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
43333 return (void *)((wxButton *) ((wxBitmapButton *) x));
43334 }
43335 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
43336 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
43337 }
43338 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
43339 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
43340 }
43341 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
43342 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
43343 }
43344 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
43345 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
43346 }
43347 static void *_p_wxToolbookTo_p_wxObject(void *x) {
43348 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43349 }
43350 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
43351 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
43352 }
43353 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
43354 return (void *)((wxObject *) ((wxSizerItem *) x));
43355 }
43356 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
43357 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
43358 }
43359 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
43360 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
43361 }
43362 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
43363 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
43364 }
43365 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
43366 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
43367 }
43368 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
43369 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
43370 }
43371 static void *_p_wxSizerTo_p_wxObject(void *x) {
43372 return (void *)((wxObject *) ((wxSizer *) x));
43373 }
43374 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
43375 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
43376 }
43377 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
43378 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
43379 }
43380 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
43381 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
43382 }
43383 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
43384 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
43385 }
43386 static void *_p_wxEventTo_p_wxObject(void *x) {
43387 return (void *)((wxObject *) ((wxEvent *) x));
43388 }
43389 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
43390 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
43391 }
43392 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
43393 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
43394 }
43395 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
43396 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
43397 }
43398 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
43399 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
43400 }
43401 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
43402 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
43403 }
43404 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
43405 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43406 }
43407 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
43408 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
43409 }
43410 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
43411 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
43412 }
43413 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
43414 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
43415 }
43416 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
43417 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
43418 }
43419 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
43420 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
43421 }
43422 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
43423 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
43424 }
43425 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
43426 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
43427 }
43428 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
43429 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
43430 }
43431 static void *_p_wxControlTo_p_wxObject(void *x) {
43432 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
43433 }
43434 static void *_p_wxPyControlTo_p_wxObject(void *x) {
43435 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
43436 }
43437 static void *_p_wxGaugeTo_p_wxObject(void *x) {
43438 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
43439 }
43440 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
43441 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
43442 }
43443 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
43444 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
43445 }
43446 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
43447 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
43448 }
43449 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
43450 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
43451 }
43452 static void *_p_wxChoiceTo_p_wxObject(void *x) {
43453 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43454 }
43455 static void *_p_wxFSFileTo_p_wxObject(void *x) {
43456 return (void *)((wxObject *) ((wxFSFile *) x));
43457 }
43458 static void *_p_wxPySizerTo_p_wxObject(void *x) {
43459 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
43460 }
43461 static void *_p_wxTreebookTo_p_wxObject(void *x) {
43462 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43463 }
43464 static void *_p_wxListViewTo_p_wxObject(void *x) {
43465 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43466 }
43467 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
43468 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
43469 }
43470 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
43471 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
43472 }
43473 static void *_p_wxNotebookTo_p_wxObject(void *x) {
43474 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43475 }
43476 static void *_p_wxPyEventTo_p_wxObject(void *x) {
43477 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
43478 }
43479 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
43480 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
43481 }
43482 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
43483 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43484 }
43485 static void *_p_wxListbookTo_p_wxObject(void *x) {
43486 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43487 }
43488 static void *_p_wxShowEventTo_p_wxObject(void *x) {
43489 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
43490 }
43491 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
43492 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
43493 }
43494 static void *_p_wxSliderTo_p_wxObject(void *x) {
43495 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
43496 }
43497 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
43498 return (void *)((wxObject *) ((wxMenuItem *) x));
43499 }
43500 static void *_p_wxDateEventTo_p_wxObject(void *x) {
43501 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
43502 }
43503 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
43504 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
43505 }
43506 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
43507 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
43508 }
43509 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
43510 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
43511 }
43512 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
43513 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
43514 }
43515 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
43516 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
43517 }
43518 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
43519 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
43520 }
43521 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
43522 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
43523 }
43524 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
43525 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
43526 }
43527 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
43528 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
43529 }
43530 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
43531 return (void *)((wxObject *) ((wxContextHelp *) x));
43532 }
43533 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
43534 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
43535 }
43536 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
43537 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
43538 }
43539 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
43540 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
43541 }
43542 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
43543 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
43544 }
43545 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
43546 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
43547 }
43548 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
43549 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
43550 }
43551 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
43552 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
43553 }
43554 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
43555 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
43556 }
43557 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
43558 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
43559 }
43560 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
43561 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
43562 }
43563 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
43564 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
43565 }
43566 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
43567 return (void *)((wxObject *) ((wxImageHandler *) x));
43568 }
43569 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
43570 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
43571 }
43572 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
43573 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
43574 }
43575 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
43576 return (void *)((wxObject *) ((wxEvtHandler *) x));
43577 }
43578 static void *_p_wxListEventTo_p_wxObject(void *x) {
43579 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
43580 }
43581 static void *_p_wxListBoxTo_p_wxObject(void *x) {
43582 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43583 }
43584 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
43585 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43586 }
43587 static void *_p_wxButtonTo_p_wxObject(void *x) {
43588 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
43589 }
43590 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
43591 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
43592 }
43593 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
43594 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
43595 }
43596 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
43597 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43598 }
43599 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
43600 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
43601 }
43602 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
43603 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
43604 }
43605 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
43606 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
43607 }
43608 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
43609 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
43610 }
43611 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
43612 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
43613 }
43614 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
43615 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
43616 }
43617 static void *_p_wxListItemTo_p_wxObject(void *x) {
43618 return (void *)((wxObject *) ((wxListItem *) x));
43619 }
43620 static void *_p_wxImageTo_p_wxObject(void *x) {
43621 return (void *)((wxObject *) ((wxImage *) x));
43622 }
43623 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
43624 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
43625 }
43626 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
43627 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
43628 }
43629 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
43630 return (void *)((wxObject *) ((wxGenericDragImage *) x));
43631 }
43632 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
43633 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
43634 }
43635 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
43636 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43637 }
43638 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
43639 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43640 }
43641 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
43642 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43643 }
43644 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
43645 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43646 }
43647 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
43648 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43649 }
43650 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
43651 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
43652 }
43653 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
43654 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
43655 }
43656 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
43657 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
43658 }
43659 static void *_p_wxWindowTo_p_wxObject(void *x) {
43660 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
43661 }
43662 static void *_p_wxMenuTo_p_wxObject(void *x) {
43663 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
43664 }
43665 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
43666 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
43667 }
43668 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
43669 return (void *)((wxObject *) ((wxFileSystem *) x));
43670 }
43671 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
43672 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
43673 }
43674 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
43675 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
43676 }
43677 static void *_p_wxPyAppTo_p_wxObject(void *x) {
43678 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
43679 }
43680 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
43681 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
43682 }
43683 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
43684 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
43685 }
43686 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
43687 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
43688 }
43689 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
43690 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43691 }
43692 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
43693 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
43694 }
43695 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
43696 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
43697 }
43698 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
43699 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
43700 }
43701 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
43702 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
43703 }
43704 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
43705 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
43706 }
43707 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
43708 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
43709 }
43710 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
43711 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
43712 }
43713 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
43714 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
43715 }
43716 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
43717 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
43718 }
43719 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
43720 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
43721 }
43722 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
43723 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
43724 }
43725 static void *_p_wxToolBarTo_p_wxObject(void *x) {
43726 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43727 }
43728 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
43729 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
43730 }
43731 static void *_p_wxValidatorTo_p_wxObject(void *x) {
43732 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
43733 }
43734 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
43735 return (void *)((wxWindow *) ((wxMenuBar *) x));
43736 }
43737 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
43738 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
43739 }
43740 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
43741 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43742 }
43743 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
43744 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
43745 }
43746 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
43747 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
43748 }
43749 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
43750 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43751 }
43752 static void *_p_wxControlTo_p_wxWindow(void *x) {
43753 return (void *)((wxWindow *) ((wxControl *) x));
43754 }
43755 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
43756 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
43757 }
43758 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
43759 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
43760 }
43761 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
43762 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
43763 }
43764 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
43765 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43766 }
43767 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
43768 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
43769 }
43770 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
43771 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
43772 }
43773 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
43774 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
43775 }
43776 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
43777 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
43778 }
43779 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
43780 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
43781 }
43782 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
43783 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
43784 }
43785 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
43786 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43787 }
43788 static void *_p_wxListbookTo_p_wxWindow(void *x) {
43789 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43790 }
43791 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
43792 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
43793 }
43794 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
43795 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
43796 }
43797 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
43798 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
43799 }
43800 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
43801 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
43802 }
43803 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
43804 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43805 }
43806 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
43807 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43808 }
43809 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
43810 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43811 }
43812 static void *_p_wxListViewTo_p_wxWindow(void *x) {
43813 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43814 }
43815 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
43816 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43817 }
43818 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
43819 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
43820 }
43821 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
43822 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
43823 }
43824 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
43825 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
43826 }
43827 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
43828 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
43829 }
43830 static void *_p_wxSliderTo_p_wxWindow(void *x) {
43831 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
43832 }
43833 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
43834 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43835 }
43836 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
43837 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
43838 }
43839 static void *_p_wxButtonTo_p_wxWindow(void *x) {
43840 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
43841 }
43842 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
43843 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
43844 }
43845 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
43846 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43847 }
43848 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
43849 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
43850 }
43851 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
43852 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
43853 }
43854 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43855 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43856 }
43857 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43858 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43859 }
43860 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43861 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43862 }
43863 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43864 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43865 }
43866 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43867 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43868 }
43869 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
43870 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
43871 }
43872 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
43873 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
43874 }
43875 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
43876 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
43877 }
43878 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
43879 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
43880 }
43881 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
43882 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
43883 }
43884 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
43885 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
43886 }
43887 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
43888 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
43889 }
43890 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
43891 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
43892 }
43893 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
43894 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43895 }
43896 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
43897 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43898 }
43899 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
43900 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43901 }
43902 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
43903 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43904 }
43905 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
43906 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43907 }
43908 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
43909 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
43910 }
43911 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
43912 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
43913 }
43914 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
43915 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
43916 }
43917 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
43918 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43919 }
43920 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
43921 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
43922 }
43923 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
43924 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
43925 }
43926 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
43927 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
43928 }
43929 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
43930 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
43931 }
43932 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
43933 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
43934 }
43935 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
43936 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
43937 }
43938 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
43939 return (void *)((wxControlWithItems *) ((wxChoice *) x));
43940 }
43941 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
43942 return (void *)((wxControlWithItems *) ((wxListBox *) x));
43943 }
43944 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
43945 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
43946 }
43947 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
43948 return (void *)((wxValidator *) ((wxPyValidator *) x));
43949 }
43950 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
43951 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
43952 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};
43953 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
43954 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
43955 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
43956 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
43957 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
43958 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
43959 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
43960 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
43961 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
43962 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
43963 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
43964 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
43965 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
43966 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
43967 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
43968 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
43969 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
43970 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
43971 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
43972 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
43973 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
43974 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
43975 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
43976 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
43977 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
43978 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
43979 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
43980 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
43981 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
43982 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
43983 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
43984 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
43985 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
43986 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
43987 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
43988 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
43989 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
43990 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
43991 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
43992 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
43993 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
43994 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
43995 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
43996 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
43997 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
43998 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
43999 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
44000 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
44001 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
44002 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
44003 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
44004 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
44005 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
44006 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
44007 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
44008 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
44009 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
44010 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
44011 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
44012 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
44013 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
44014 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
44015 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
44016 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
44017 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
44018 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
44019 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
44020 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
44021 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
44022 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
44023 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
44024 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
44025 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
44026 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
44027 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
44028 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
44029 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
44030 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
44031 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
44032 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
44033 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
44034 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
44035 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
44036 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
44037 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
44038 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
44039 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
44040 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
44041 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
44042 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
44043 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
44044 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
44045 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
44046 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
44047 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
44048 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
44049 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
44050 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
44051 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
44052 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
44053 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
44054 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
44055 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
44056 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
44057 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
44058 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
44059 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
44060 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
44061 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
44062 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
44063 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
44064 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
44065 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
44066 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
44067 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
44068 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
44069 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
44070 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
44071 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
44072 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
44073 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
44074 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
44075 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
44076 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
44077 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
44078 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
44079 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
44080 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
44081 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
44082 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
44083 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
44084 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
44085 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
44086 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
44087 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
44088 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
44089 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
44090 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
44091 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
44092 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
44093 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
44094 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
44095 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
44096 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
44097 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
44098 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
44099 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
44100 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
44101 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
44102 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
44103 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
44104 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
44105 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
44106 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
44107 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
44108 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
44109 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
44110 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
44111 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
44112 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
44113 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
44114 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
44115 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
44116
44117 static swig_type_info *swig_type_initial[] = {
44118 &_swigt__p_bool,
44119 &_swigt__p_char,
44120 &_swigt__p_form_ops_t,
44121 &_swigt__p_int,
44122 &_swigt__p_long,
44123 &_swigt__p_unsigned_char,
44124 &_swigt__p_unsigned_int,
44125 &_swigt__p_unsigned_long,
44126 &_swigt__p_void,
44127 &_swigt__p_wxANIHandler,
44128 &_swigt__p_wxAcceleratorTable,
44129 &_swigt__p_wxActivateEvent,
44130 &_swigt__p_wxArrayInt,
44131 &_swigt__p_wxArrayString,
44132 &_swigt__p_wxBMPHandler,
44133 &_swigt__p_wxBitmap,
44134 &_swigt__p_wxBitmapButton,
44135 &_swigt__p_wxBookCtrlBase,
44136 &_swigt__p_wxBookCtrlBaseEvent,
44137 &_swigt__p_wxBoxSizer,
44138 &_swigt__p_wxButton,
44139 &_swigt__p_wxCURHandler,
44140 &_swigt__p_wxCheckBox,
44141 &_swigt__p_wxCheckListBox,
44142 &_swigt__p_wxChildFocusEvent,
44143 &_swigt__p_wxChoice,
44144 &_swigt__p_wxChoicebook,
44145 &_swigt__p_wxChoicebookEvent,
44146 &_swigt__p_wxClipboardTextEvent,
44147 &_swigt__p_wxCloseEvent,
44148 &_swigt__p_wxColour,
44149 &_swigt__p_wxComboBox,
44150 &_swigt__p_wxCommandEvent,
44151 &_swigt__p_wxContextHelp,
44152 &_swigt__p_wxContextHelpButton,
44153 &_swigt__p_wxContextMenuEvent,
44154 &_swigt__p_wxControl,
44155 &_swigt__p_wxControlWithItems,
44156 &_swigt__p_wxCursor,
44157 &_swigt__p_wxDC,
44158 &_swigt__p_wxDateEvent,
44159 &_swigt__p_wxDatePickerCtrl,
44160 &_swigt__p_wxDateTime,
44161 &_swigt__p_wxDirFilterListCtrl,
44162 &_swigt__p_wxDisplayChangedEvent,
44163 &_swigt__p_wxDropFilesEvent,
44164 &_swigt__p_wxDuplexMode,
44165 &_swigt__p_wxEraseEvent,
44166 &_swigt__p_wxEvent,
44167 &_swigt__p_wxEvtHandler,
44168 &_swigt__p_wxFSFile,
44169 &_swigt__p_wxFileSystem,
44170 &_swigt__p_wxFlexGridSizer,
44171 &_swigt__p_wxFocusEvent,
44172 &_swigt__p_wxFont,
44173 &_swigt__p_wxGBSizerItem,
44174 &_swigt__p_wxGIFHandler,
44175 &_swigt__p_wxGauge,
44176 &_swigt__p_wxGenericDirCtrl,
44177 &_swigt__p_wxGenericDragImage,
44178 &_swigt__p_wxGridBagSizer,
44179 &_swigt__p_wxGridSizer,
44180 &_swigt__p_wxHelpEvent,
44181 &_swigt__p_wxHelpProvider,
44182 &_swigt__p_wxHyperlinkCtrl,
44183 &_swigt__p_wxHyperlinkEvent,
44184 &_swigt__p_wxICOHandler,
44185 &_swigt__p_wxIcon,
44186 &_swigt__p_wxIconizeEvent,
44187 &_swigt__p_wxIdleEvent,
44188 &_swigt__p_wxImage,
44189 &_swigt__p_wxImageHandler,
44190 &_swigt__p_wxImageList,
44191 &_swigt__p_wxIndividualLayoutConstraint,
44192 &_swigt__p_wxInitDialogEvent,
44193 &_swigt__p_wxItemContainer,
44194 &_swigt__p_wxJPEGHandler,
44195 &_swigt__p_wxKeyEvent,
44196 &_swigt__p_wxLayoutConstraints,
44197 &_swigt__p_wxListBox,
44198 &_swigt__p_wxListEvent,
44199 &_swigt__p_wxListItem,
44200 &_swigt__p_wxListItemAttr,
44201 &_swigt__p_wxListView,
44202 &_swigt__p_wxListbook,
44203 &_swigt__p_wxListbookEvent,
44204 &_swigt__p_wxMaximizeEvent,
44205 &_swigt__p_wxMemoryDC,
44206 &_swigt__p_wxMenu,
44207 &_swigt__p_wxMenuBar,
44208 &_swigt__p_wxMenuEvent,
44209 &_swigt__p_wxMenuItem,
44210 &_swigt__p_wxMouseCaptureChangedEvent,
44211 &_swigt__p_wxMouseEvent,
44212 &_swigt__p_wxMoveEvent,
44213 &_swigt__p_wxNavigationKeyEvent,
44214 &_swigt__p_wxNcPaintEvent,
44215 &_swigt__p_wxNotebook,
44216 &_swigt__p_wxNotebookEvent,
44217 &_swigt__p_wxNotifyEvent,
44218 &_swigt__p_wxObject,
44219 &_swigt__p_wxPCXHandler,
44220 &_swigt__p_wxPNGHandler,
44221 &_swigt__p_wxPNMHandler,
44222 &_swigt__p_wxPaintEvent,
44223 &_swigt__p_wxPaletteChangedEvent,
44224 &_swigt__p_wxPaperSize,
44225 &_swigt__p_wxPoint,
44226 &_swigt__p_wxPyApp,
44227 &_swigt__p_wxPyCommandEvent,
44228 &_swigt__p_wxPyControl,
44229 &_swigt__p_wxPyEvent,
44230 &_swigt__p_wxPyImageHandler,
44231 &_swigt__p_wxPyListCtrl,
44232 &_swigt__p_wxPySizer,
44233 &_swigt__p_wxPyTreeCtrl,
44234 &_swigt__p_wxPyTreeItemData,
44235 &_swigt__p_wxPyValidator,
44236 &_swigt__p_wxQueryNewPaletteEvent,
44237 &_swigt__p_wxRadioBox,
44238 &_swigt__p_wxRadioButton,
44239 &_swigt__p_wxRect,
44240 &_swigt__p_wxScrollBar,
44241 &_swigt__p_wxScrollEvent,
44242 &_swigt__p_wxScrollWinEvent,
44243 &_swigt__p_wxSetCursorEvent,
44244 &_swigt__p_wxShowEvent,
44245 &_swigt__p_wxSimpleHelpProvider,
44246 &_swigt__p_wxSize,
44247 &_swigt__p_wxSizeEvent,
44248 &_swigt__p_wxSizer,
44249 &_swigt__p_wxSizerItem,
44250 &_swigt__p_wxSlider,
44251 &_swigt__p_wxSpinButton,
44252 &_swigt__p_wxSpinCtrl,
44253 &_swigt__p_wxSpinEvent,
44254 &_swigt__p_wxStaticBitmap,
44255 &_swigt__p_wxStaticBox,
44256 &_swigt__p_wxStaticBoxSizer,
44257 &_swigt__p_wxStaticLine,
44258 &_swigt__p_wxStaticText,
44259 &_swigt__p_wxStdDialogButtonSizer,
44260 &_swigt__p_wxString,
44261 &_swigt__p_wxSysColourChangedEvent,
44262 &_swigt__p_wxTIFFHandler,
44263 &_swigt__p_wxTextAttr,
44264 &_swigt__p_wxTextCtrl,
44265 &_swigt__p_wxTextUrlEvent,
44266 &_swigt__p_wxToggleButton,
44267 &_swigt__p_wxToolBar,
44268 &_swigt__p_wxToolBarBase,
44269 &_swigt__p_wxToolBarToolBase,
44270 &_swigt__p_wxToolbook,
44271 &_swigt__p_wxToolbookEvent,
44272 &_swigt__p_wxTreeCtrl,
44273 &_swigt__p_wxTreeEvent,
44274 &_swigt__p_wxTreeItemId,
44275 &_swigt__p_wxTreebook,
44276 &_swigt__p_wxTreebookEvent,
44277 &_swigt__p_wxUpdateUIEvent,
44278 &_swigt__p_wxValidator,
44279 &_swigt__p_wxVisualAttributes,
44280 &_swigt__p_wxWindow,
44281 &_swigt__p_wxWindowCreateEvent,
44282 &_swigt__p_wxWindowDestroyEvent,
44283 &_swigt__p_wxXPMHandler,
44284 };
44285
44286 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
44287 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
44288 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
44289 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
44290 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
44291 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
44292 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
44293 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
44294 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
44295 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
44296 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
44297 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
44298 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}};
44299 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}};
44300 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}};
44301 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}};
44302 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
44303 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
44304 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}};
44305 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
44306 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44307 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
44308 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
44309 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
44310 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
44311 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
44312 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
44313 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
44314 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
44315 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
44316 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
44317 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
44318 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_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}};
44319 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
44320 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
44321 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_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
44322 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}};
44323 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
44324 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
44325 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
44326 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
44327 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
44328 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
44329 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
44330 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
44331 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
44332 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
44333 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
44334 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
44335 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
44336 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
44337 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44338 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44339 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
44340 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44341 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
44342 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
44343 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
44344 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44345 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44346 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44347 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44348 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
44349 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
44350 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
44351 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
44352 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
44353 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_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
44354 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
44355 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
44356 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
44357 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
44358 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_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
44359 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
44360 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
44361 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
44362 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
44363 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
44364 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}};
44365 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
44366 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
44367 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
44368 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
44369 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}};
44370 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
44371 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}};
44372 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
44373 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
44374 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
44375 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
44376 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
44377 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
44378 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
44379 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
44380 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
44381 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44382 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}};
44383 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
44384 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
44385 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
44386 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
44387 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
44388 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
44389 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
44390 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
44391 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
44392 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
44393 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
44394 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
44395 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
44396 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
44397 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
44398 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
44399 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
44400 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
44401 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
44402 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
44403 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
44404 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
44405 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
44406 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
44407 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
44408 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
44409 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
44410 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
44411 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
44412 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
44413 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_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_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_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_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
44414 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
44415 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
44416 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
44417 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}};
44418 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
44419 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
44420 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
44421 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
44422 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
44423 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
44424 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
44425 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
44426 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
44427 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
44428 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
44429 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
44430 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
44431 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
44432 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
44433 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
44434 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
44435 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
44436 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
44437 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
44438 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
44439 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
44440 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}};
44441 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
44442 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
44443 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
44444 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
44445 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
44446 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
44447 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
44448 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44449 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}};
44450 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
44451 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_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
44452
44453 static swig_cast_info *swig_cast_initial[] = {
44454 _swigc__p_bool,
44455 _swigc__p_char,
44456 _swigc__p_form_ops_t,
44457 _swigc__p_int,
44458 _swigc__p_long,
44459 _swigc__p_unsigned_char,
44460 _swigc__p_unsigned_int,
44461 _swigc__p_unsigned_long,
44462 _swigc__p_void,
44463 _swigc__p_wxANIHandler,
44464 _swigc__p_wxAcceleratorTable,
44465 _swigc__p_wxActivateEvent,
44466 _swigc__p_wxArrayInt,
44467 _swigc__p_wxArrayString,
44468 _swigc__p_wxBMPHandler,
44469 _swigc__p_wxBitmap,
44470 _swigc__p_wxBitmapButton,
44471 _swigc__p_wxBookCtrlBase,
44472 _swigc__p_wxBookCtrlBaseEvent,
44473 _swigc__p_wxBoxSizer,
44474 _swigc__p_wxButton,
44475 _swigc__p_wxCURHandler,
44476 _swigc__p_wxCheckBox,
44477 _swigc__p_wxCheckListBox,
44478 _swigc__p_wxChildFocusEvent,
44479 _swigc__p_wxChoice,
44480 _swigc__p_wxChoicebook,
44481 _swigc__p_wxChoicebookEvent,
44482 _swigc__p_wxClipboardTextEvent,
44483 _swigc__p_wxCloseEvent,
44484 _swigc__p_wxColour,
44485 _swigc__p_wxComboBox,
44486 _swigc__p_wxCommandEvent,
44487 _swigc__p_wxContextHelp,
44488 _swigc__p_wxContextHelpButton,
44489 _swigc__p_wxContextMenuEvent,
44490 _swigc__p_wxControl,
44491 _swigc__p_wxControlWithItems,
44492 _swigc__p_wxCursor,
44493 _swigc__p_wxDC,
44494 _swigc__p_wxDateEvent,
44495 _swigc__p_wxDatePickerCtrl,
44496 _swigc__p_wxDateTime,
44497 _swigc__p_wxDirFilterListCtrl,
44498 _swigc__p_wxDisplayChangedEvent,
44499 _swigc__p_wxDropFilesEvent,
44500 _swigc__p_wxDuplexMode,
44501 _swigc__p_wxEraseEvent,
44502 _swigc__p_wxEvent,
44503 _swigc__p_wxEvtHandler,
44504 _swigc__p_wxFSFile,
44505 _swigc__p_wxFileSystem,
44506 _swigc__p_wxFlexGridSizer,
44507 _swigc__p_wxFocusEvent,
44508 _swigc__p_wxFont,
44509 _swigc__p_wxGBSizerItem,
44510 _swigc__p_wxGIFHandler,
44511 _swigc__p_wxGauge,
44512 _swigc__p_wxGenericDirCtrl,
44513 _swigc__p_wxGenericDragImage,
44514 _swigc__p_wxGridBagSizer,
44515 _swigc__p_wxGridSizer,
44516 _swigc__p_wxHelpEvent,
44517 _swigc__p_wxHelpProvider,
44518 _swigc__p_wxHyperlinkCtrl,
44519 _swigc__p_wxHyperlinkEvent,
44520 _swigc__p_wxICOHandler,
44521 _swigc__p_wxIcon,
44522 _swigc__p_wxIconizeEvent,
44523 _swigc__p_wxIdleEvent,
44524 _swigc__p_wxImage,
44525 _swigc__p_wxImageHandler,
44526 _swigc__p_wxImageList,
44527 _swigc__p_wxIndividualLayoutConstraint,
44528 _swigc__p_wxInitDialogEvent,
44529 _swigc__p_wxItemContainer,
44530 _swigc__p_wxJPEGHandler,
44531 _swigc__p_wxKeyEvent,
44532 _swigc__p_wxLayoutConstraints,
44533 _swigc__p_wxListBox,
44534 _swigc__p_wxListEvent,
44535 _swigc__p_wxListItem,
44536 _swigc__p_wxListItemAttr,
44537 _swigc__p_wxListView,
44538 _swigc__p_wxListbook,
44539 _swigc__p_wxListbookEvent,
44540 _swigc__p_wxMaximizeEvent,
44541 _swigc__p_wxMemoryDC,
44542 _swigc__p_wxMenu,
44543 _swigc__p_wxMenuBar,
44544 _swigc__p_wxMenuEvent,
44545 _swigc__p_wxMenuItem,
44546 _swigc__p_wxMouseCaptureChangedEvent,
44547 _swigc__p_wxMouseEvent,
44548 _swigc__p_wxMoveEvent,
44549 _swigc__p_wxNavigationKeyEvent,
44550 _swigc__p_wxNcPaintEvent,
44551 _swigc__p_wxNotebook,
44552 _swigc__p_wxNotebookEvent,
44553 _swigc__p_wxNotifyEvent,
44554 _swigc__p_wxObject,
44555 _swigc__p_wxPCXHandler,
44556 _swigc__p_wxPNGHandler,
44557 _swigc__p_wxPNMHandler,
44558 _swigc__p_wxPaintEvent,
44559 _swigc__p_wxPaletteChangedEvent,
44560 _swigc__p_wxPaperSize,
44561 _swigc__p_wxPoint,
44562 _swigc__p_wxPyApp,
44563 _swigc__p_wxPyCommandEvent,
44564 _swigc__p_wxPyControl,
44565 _swigc__p_wxPyEvent,
44566 _swigc__p_wxPyImageHandler,
44567 _swigc__p_wxPyListCtrl,
44568 _swigc__p_wxPySizer,
44569 _swigc__p_wxPyTreeCtrl,
44570 _swigc__p_wxPyTreeItemData,
44571 _swigc__p_wxPyValidator,
44572 _swigc__p_wxQueryNewPaletteEvent,
44573 _swigc__p_wxRadioBox,
44574 _swigc__p_wxRadioButton,
44575 _swigc__p_wxRect,
44576 _swigc__p_wxScrollBar,
44577 _swigc__p_wxScrollEvent,
44578 _swigc__p_wxScrollWinEvent,
44579 _swigc__p_wxSetCursorEvent,
44580 _swigc__p_wxShowEvent,
44581 _swigc__p_wxSimpleHelpProvider,
44582 _swigc__p_wxSize,
44583 _swigc__p_wxSizeEvent,
44584 _swigc__p_wxSizer,
44585 _swigc__p_wxSizerItem,
44586 _swigc__p_wxSlider,
44587 _swigc__p_wxSpinButton,
44588 _swigc__p_wxSpinCtrl,
44589 _swigc__p_wxSpinEvent,
44590 _swigc__p_wxStaticBitmap,
44591 _swigc__p_wxStaticBox,
44592 _swigc__p_wxStaticBoxSizer,
44593 _swigc__p_wxStaticLine,
44594 _swigc__p_wxStaticText,
44595 _swigc__p_wxStdDialogButtonSizer,
44596 _swigc__p_wxString,
44597 _swigc__p_wxSysColourChangedEvent,
44598 _swigc__p_wxTIFFHandler,
44599 _swigc__p_wxTextAttr,
44600 _swigc__p_wxTextCtrl,
44601 _swigc__p_wxTextUrlEvent,
44602 _swigc__p_wxToggleButton,
44603 _swigc__p_wxToolBar,
44604 _swigc__p_wxToolBarBase,
44605 _swigc__p_wxToolBarToolBase,
44606 _swigc__p_wxToolbook,
44607 _swigc__p_wxToolbookEvent,
44608 _swigc__p_wxTreeCtrl,
44609 _swigc__p_wxTreeEvent,
44610 _swigc__p_wxTreeItemId,
44611 _swigc__p_wxTreebook,
44612 _swigc__p_wxTreebookEvent,
44613 _swigc__p_wxUpdateUIEvent,
44614 _swigc__p_wxValidator,
44615 _swigc__p_wxVisualAttributes,
44616 _swigc__p_wxWindow,
44617 _swigc__p_wxWindowCreateEvent,
44618 _swigc__p_wxWindowDestroyEvent,
44619 _swigc__p_wxXPMHandler,
44620 };
44621
44622
44623 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
44624
44625 static swig_const_info swig_const_table[] = {
44626 {0, 0, 0, 0.0, 0, 0}};
44627
44628 #ifdef __cplusplus
44629 }
44630 #endif
44631 /* -----------------------------------------------------------------------------
44632 * Type initialization:
44633 * This problem is tough by the requirement that no dynamic
44634 * memory is used. Also, since swig_type_info structures store pointers to
44635 * swig_cast_info structures and swig_cast_info structures store pointers back
44636 * to swig_type_info structures, we need some lookup code at initialization.
44637 * The idea is that swig generates all the structures that are needed.
44638 * The runtime then collects these partially filled structures.
44639 * The SWIG_InitializeModule function takes these initial arrays out of
44640 * swig_module, and does all the lookup, filling in the swig_module.types
44641 * array with the correct data and linking the correct swig_cast_info
44642 * structures together.
44643 *
44644 * The generated swig_type_info structures are assigned staticly to an initial
44645 * array. We just loop though that array, and handle each type individually.
44646 * First we lookup if this type has been already loaded, and if so, use the
44647 * loaded structure instead of the generated one. Then we have to fill in the
44648 * cast linked list. The cast data is initially stored in something like a
44649 * two-dimensional array. Each row corresponds to a type (there are the same
44650 * number of rows as there are in the swig_type_initial array). Each entry in
44651 * a column is one of the swig_cast_info structures for that type.
44652 * The cast_initial array is actually an array of arrays, because each row has
44653 * a variable number of columns. So to actually build the cast linked list,
44654 * we find the array of casts associated with the type, and loop through it
44655 * adding the casts to the list. The one last trick we need to do is making
44656 * sure the type pointer in the swig_cast_info struct is correct.
44657 *
44658 * First off, we lookup the cast->type name to see if it is already loaded.
44659 * There are three cases to handle:
44660 * 1) If the cast->type has already been loaded AND the type we are adding
44661 * casting info to has not been loaded (it is in this module), THEN we
44662 * replace the cast->type pointer with the type pointer that has already
44663 * been loaded.
44664 * 2) If BOTH types (the one we are adding casting info to, and the
44665 * cast->type) are loaded, THEN the cast info has already been loaded by
44666 * the previous module so we just ignore it.
44667 * 3) Finally, if cast->type has not already been loaded, then we add that
44668 * swig_cast_info to the linked list (because the cast->type) pointer will
44669 * be correct.
44670 * ----------------------------------------------------------------------------- */
44671
44672 #ifdef __cplusplus
44673 extern "C" {
44674 #if 0
44675 } /* c-mode */
44676 #endif
44677 #endif
44678
44679 #if 0
44680 #define SWIGRUNTIME_DEBUG
44681 #endif
44682
44683 SWIGRUNTIME void
44684 SWIG_InitializeModule(void *clientdata) {
44685 size_t i;
44686 swig_module_info *module_head;
44687 static int init_run = 0;
44688
44689 clientdata = clientdata;
44690
44691 if (init_run) return;
44692 init_run = 1;
44693
44694 /* Initialize the swig_module */
44695 swig_module.type_initial = swig_type_initial;
44696 swig_module.cast_initial = swig_cast_initial;
44697
44698 /* Try and load any already created modules */
44699 module_head = SWIG_GetModule(clientdata);
44700 if (module_head) {
44701 swig_module.next = module_head->next;
44702 module_head->next = &swig_module;
44703 } else {
44704 /* This is the first module loaded */
44705 swig_module.next = &swig_module;
44706 SWIG_SetModule(clientdata, &swig_module);
44707 }
44708
44709 /* Now work on filling in swig_module.types */
44710 #ifdef SWIGRUNTIME_DEBUG
44711 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
44712 #endif
44713 for (i = 0; i < swig_module.size; ++i) {
44714 swig_type_info *type = 0;
44715 swig_type_info *ret;
44716 swig_cast_info *cast;
44717
44718 #ifdef SWIGRUNTIME_DEBUG
44719 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
44720 #endif
44721
44722 /* if there is another module already loaded */
44723 if (swig_module.next != &swig_module) {
44724 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
44725 }
44726 if (type) {
44727 /* Overwrite clientdata field */
44728 #ifdef SWIGRUNTIME_DEBUG
44729 printf("SWIG_InitializeModule: found type %s\n", type->name);
44730 #endif
44731 if (swig_module.type_initial[i]->clientdata) {
44732 type->clientdata = swig_module.type_initial[i]->clientdata;
44733 #ifdef SWIGRUNTIME_DEBUG
44734 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
44735 #endif
44736 }
44737 } else {
44738 type = swig_module.type_initial[i];
44739 }
44740
44741 /* Insert casting types */
44742 cast = swig_module.cast_initial[i];
44743 while (cast->type) {
44744 /* Don't need to add information already in the list */
44745 ret = 0;
44746 #ifdef SWIGRUNTIME_DEBUG
44747 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
44748 #endif
44749 if (swig_module.next != &swig_module) {
44750 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
44751 #ifdef SWIGRUNTIME_DEBUG
44752 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
44753 #endif
44754 }
44755 if (ret) {
44756 if (type == swig_module.type_initial[i]) {
44757 #ifdef SWIGRUNTIME_DEBUG
44758 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
44759 #endif
44760 cast->type = ret;
44761 ret = 0;
44762 } else {
44763 /* Check for casting already in the list */
44764 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
44765 #ifdef SWIGRUNTIME_DEBUG
44766 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
44767 #endif
44768 if (!ocast) ret = 0;
44769 }
44770 }
44771
44772 if (!ret) {
44773 #ifdef SWIGRUNTIME_DEBUG
44774 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
44775 #endif
44776 if (type->cast) {
44777 type->cast->prev = cast;
44778 cast->next = type->cast;
44779 }
44780 type->cast = cast;
44781 }
44782 cast++;
44783 }
44784 /* Set entry in modules->types array equal to the type */
44785 swig_module.types[i] = type;
44786 }
44787 swig_module.types[i] = 0;
44788
44789 #ifdef SWIGRUNTIME_DEBUG
44790 printf("**** SWIG_InitializeModule: Cast List ******\n");
44791 for (i = 0; i < swig_module.size; ++i) {
44792 int j = 0;
44793 swig_cast_info *cast = swig_module.cast_initial[i];
44794 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
44795 while (cast->type) {
44796 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
44797 cast++;
44798 ++j;
44799 }
44800 printf("---- Total casts: %d\n",j);
44801 }
44802 printf("**** SWIG_InitializeModule: Cast List ******\n");
44803 #endif
44804 }
44805
44806 /* This function will propagate the clientdata field of type to
44807 * any new swig_type_info structures that have been added into the list
44808 * of equivalent types. It is like calling
44809 * SWIG_TypeClientData(type, clientdata) a second time.
44810 */
44811 SWIGRUNTIME void
44812 SWIG_PropagateClientData(void) {
44813 size_t i;
44814 swig_cast_info *equiv;
44815 static int init_run = 0;
44816
44817 if (init_run) return;
44818 init_run = 1;
44819
44820 for (i = 0; i < swig_module.size; i++) {
44821 if (swig_module.types[i]->clientdata) {
44822 equiv = swig_module.types[i]->cast;
44823 while (equiv) {
44824 if (!equiv->converter) {
44825 if (equiv->type && !equiv->type->clientdata)
44826 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
44827 }
44828 equiv = equiv->next;
44829 }
44830 }
44831 }
44832 }
44833
44834 #ifdef __cplusplus
44835 #if 0
44836 {
44837 /* c-mode */
44838 #endif
44839 }
44840 #endif
44841
44842
44843
44844 #ifdef __cplusplus
44845 extern "C" {
44846 #endif
44847
44848 /* Python-specific SWIG API */
44849 #define SWIG_newvarlink() SWIG_Python_newvarlink()
44850 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
44851 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
44852
44853 /* -----------------------------------------------------------------------------
44854 * global variable support code.
44855 * ----------------------------------------------------------------------------- */
44856
44857 typedef struct swig_globalvar {
44858 char *name; /* Name of global variable */
44859 PyObject *(*get_attr)(void); /* Return the current value */
44860 int (*set_attr)(PyObject *); /* Set the value */
44861 struct swig_globalvar *next;
44862 } swig_globalvar;
44863
44864 typedef struct swig_varlinkobject {
44865 PyObject_HEAD
44866 swig_globalvar *vars;
44867 } swig_varlinkobject;
44868
44869 SWIGINTERN PyObject *
44870 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
44871 return PyString_FromString("<Swig global variables>");
44872 }
44873
44874 SWIGINTERN PyObject *
44875 swig_varlink_str(swig_varlinkobject *v) {
44876 PyObject *str = PyString_FromString("(");
44877 swig_globalvar *var;
44878 for (var = v->vars; var; var=var->next) {
44879 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
44880 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
44881 }
44882 PyString_ConcatAndDel(&str,PyString_FromString(")"));
44883 return str;
44884 }
44885
44886 SWIGINTERN int
44887 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
44888 PyObject *str = swig_varlink_str(v);
44889 fprintf(fp,"Swig global variables ");
44890 fprintf(fp,"%s\n", PyString_AsString(str));
44891 Py_DECREF(str);
44892 return 0;
44893 }
44894
44895 SWIGINTERN void
44896 swig_varlink_dealloc(swig_varlinkobject *v) {
44897 swig_globalvar *var = v->vars;
44898 while (var) {
44899 swig_globalvar *n = var->next;
44900 free(var->name);
44901 free(var);
44902 var = n;
44903 }
44904 }
44905
44906 SWIGINTERN PyObject *
44907 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
44908 PyObject *res = NULL;
44909 swig_globalvar *var = v->vars;
44910 while (var) {
44911 if (strcmp(var->name,n) == 0) {
44912 res = (*var->get_attr)();
44913 break;
44914 }
44915 var = var->next;
44916 }
44917 if (res == NULL && !PyErr_Occurred()) {
44918 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
44919 }
44920 return res;
44921 }
44922
44923 SWIGINTERN int
44924 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
44925 int res = 1;
44926 swig_globalvar *var = v->vars;
44927 while (var) {
44928 if (strcmp(var->name,n) == 0) {
44929 res = (*var->set_attr)(p);
44930 break;
44931 }
44932 var = var->next;
44933 }
44934 if (res == 1 && !PyErr_Occurred()) {
44935 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
44936 }
44937 return res;
44938 }
44939
44940 SWIGINTERN PyTypeObject*
44941 swig_varlink_type(void) {
44942 static char varlink__doc__[] = "Swig var link object";
44943 static PyTypeObject varlink_type;
44944 static int type_init = 0;
44945 if (!type_init) {
44946 const PyTypeObject tmp
44947 = {
44948 PyObject_HEAD_INIT(NULL)
44949 0, /* Number of items in variable part (ob_size) */
44950 (char *)"swigvarlink", /* Type name (tp_name) */
44951 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
44952 0, /* Itemsize (tp_itemsize) */
44953 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
44954 (printfunc) swig_varlink_print, /* Print (tp_print) */
44955 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
44956 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
44957 0, /* tp_compare */
44958 (reprfunc) swig_varlink_repr, /* tp_repr */
44959 0, /* tp_as_number */
44960 0, /* tp_as_sequence */
44961 0, /* tp_as_mapping */
44962 0, /* tp_hash */
44963 0, /* tp_call */
44964 (reprfunc)swig_varlink_str, /* tp_str */
44965 0, /* tp_getattro */
44966 0, /* tp_setattro */
44967 0, /* tp_as_buffer */
44968 0, /* tp_flags */
44969 varlink__doc__, /* tp_doc */
44970 0, /* tp_traverse */
44971 0, /* tp_clear */
44972 0, /* tp_richcompare */
44973 0, /* tp_weaklistoffset */
44974 #if PY_VERSION_HEX >= 0x02020000
44975 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
44976 #endif
44977 #if PY_VERSION_HEX >= 0x02030000
44978 0, /* tp_del */
44979 #endif
44980 #ifdef COUNT_ALLOCS
44981 0,0,0,0 /* tp_alloc -> tp_next */
44982 #endif
44983 };
44984 varlink_type = tmp;
44985 varlink_type.ob_type = &PyType_Type;
44986 type_init = 1;
44987 }
44988 return &varlink_type;
44989 }
44990
44991 /* Create a variable linking object for use later */
44992 SWIGINTERN PyObject *
44993 SWIG_Python_newvarlink(void) {
44994 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
44995 if (result) {
44996 result->vars = 0;
44997 }
44998 return ((PyObject*) result);
44999 }
45000
45001 SWIGINTERN void
45002 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
45003 swig_varlinkobject *v = (swig_varlinkobject *) p;
45004 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
45005 if (gv) {
45006 size_t size = strlen(name)+1;
45007 gv->name = (char *)malloc(size);
45008 if (gv->name) {
45009 strncpy(gv->name,name,size);
45010 gv->get_attr = get_attr;
45011 gv->set_attr = set_attr;
45012 gv->next = v->vars;
45013 }
45014 }
45015 v->vars = gv;
45016 }
45017
45018 SWIGINTERN PyObject *
45019 SWIG_globals() {
45020 static PyObject *_SWIG_globals = 0;
45021 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
45022 return _SWIG_globals;
45023 }
45024
45025 /* -----------------------------------------------------------------------------
45026 * constants/methods manipulation
45027 * ----------------------------------------------------------------------------- */
45028
45029 /* Install Constants */
45030 SWIGINTERN void
45031 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
45032 PyObject *obj = 0;
45033 size_t i;
45034 for (i = 0; constants[i].type; ++i) {
45035 switch(constants[i].type) {
45036 case SWIG_PY_POINTER:
45037 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
45038 break;
45039 case SWIG_PY_BINARY:
45040 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
45041 break;
45042 default:
45043 obj = 0;
45044 break;
45045 }
45046 if (obj) {
45047 PyDict_SetItemString(d, constants[i].name, obj);
45048 Py_DECREF(obj);
45049 }
45050 }
45051 }
45052
45053 /* -----------------------------------------------------------------------------*/
45054 /* Fix SwigMethods to carry the callback ptrs when needed */
45055 /* -----------------------------------------------------------------------------*/
45056
45057 SWIGINTERN void
45058 SWIG_Python_FixMethods(PyMethodDef *methods,
45059 swig_const_info *const_table,
45060 swig_type_info **types,
45061 swig_type_info **types_initial) {
45062 size_t i;
45063 for (i = 0; methods[i].ml_name; ++i) {
45064 char *c = methods[i].ml_doc;
45065 if (c && (c = strstr(c, "swig_ptr: "))) {
45066 int j;
45067 swig_const_info *ci = 0;
45068 char *name = c + 10;
45069 for (j = 0; const_table[j].type; ++j) {
45070 if (strncmp(const_table[j].name, name,
45071 strlen(const_table[j].name)) == 0) {
45072 ci = &(const_table[j]);
45073 break;
45074 }
45075 }
45076 if (ci) {
45077 size_t shift = (ci->ptype) - types;
45078 swig_type_info *ty = types_initial[shift];
45079 size_t ldoc = (c - methods[i].ml_doc);
45080 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
45081 char *ndoc = (char*)malloc(ldoc + lptr + 10);
45082 if (ndoc) {
45083 char *buff = ndoc;
45084 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
45085 if (ptr) {
45086 strncpy(buff, methods[i].ml_doc, ldoc);
45087 buff += ldoc;
45088 strncpy(buff, "swig_ptr: ", 10);
45089 buff += 10;
45090 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
45091 methods[i].ml_doc = ndoc;
45092 }
45093 }
45094 }
45095 }
45096 }
45097 }
45098
45099 #ifdef __cplusplus
45100 }
45101 #endif
45102
45103 /* -----------------------------------------------------------------------------*
45104 * Partial Init method
45105 * -----------------------------------------------------------------------------*/
45106
45107 #ifdef __cplusplus
45108 extern "C"
45109 #endif
45110 SWIGEXPORT void SWIG_init(void) {
45111 PyObject *m, *d;
45112
45113 /* Fix SwigMethods to carry the callback ptrs when needed */
45114 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
45115
45116 m = Py_InitModule((char *) SWIG_name, SwigMethods);
45117 d = PyModule_GetDict(m);
45118
45119 SWIG_InitializeModule(0);
45120 SWIG_InstallConstants(d,swig_const_table);
45121
45122
45123 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
45124 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
45125 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
45126 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
45127 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
45128 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
45129 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
45130 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
45131 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
45132 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
45133 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
45134 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
45135 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
45136 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
45137 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
45138 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
45139 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
45140 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
45141 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
45142 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
45143 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
45144 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
45145 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
45146 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
45147 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
45148 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
45149 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
45150 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
45151 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
45152 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
45153 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
45154 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
45155 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
45156 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
45157 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
45158 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
45159 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
45160 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
45161 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
45162 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
45163 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
45164 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
45165 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
45166 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
45167 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
45168 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
45169 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
45170 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
45171 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
45172 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
45173 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
45174 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
45175 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
45176 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
45177 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
45178 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
45179 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
45180 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
45181 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
45182 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
45183 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
45184 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
45185 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
45186 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
45187 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
45188 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
45189 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
45190 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
45191 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
45192 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
45193 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
45194 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
45195 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
45196 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
45197 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
45198 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
45199 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
45200 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
45201 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
45202 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
45203 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
45204 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
45205 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
45206 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
45207 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
45208 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
45209 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
45210 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
45211 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
45212 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
45213 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
45214 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
45215 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
45216 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
45217 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
45218 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
45219 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
45220 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
45221 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
45222 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
45223 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
45224 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
45225 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
45226 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
45227 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
45228 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
45229 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
45230 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
45231 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
45232 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
45233 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
45234 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
45235 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
45236 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
45237 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
45238 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
45239 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
45240 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
45241 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
45242 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
45243 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
45244 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
45245 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
45246 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
45247 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
45248 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
45249 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
45250 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
45251 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
45252 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
45253 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
45254 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
45255 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
45256 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
45257 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
45258 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
45259 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
45260 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
45261 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
45262 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
45263 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
45264 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
45265 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
45266 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
45267 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
45268 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
45269 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
45270 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
45271 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
45272 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
45273 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
45274 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
45275 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
45276 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
45277 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
45278 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
45279 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
45280 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
45281 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
45282 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
45283 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
45284 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
45285 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
45286 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
45287 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
45288 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
45289 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
45290 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
45291 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
45292 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
45293 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
45294 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
45295 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
45296 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
45297 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
45298 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
45299 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
45300 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
45301 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
45302 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
45303 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
45304 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
45305 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
45306 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
45307 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
45308 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
45309 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
45310 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
45311 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
45312 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
45313 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
45314 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
45315 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
45316 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
45317 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
45318 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
45319 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
45320 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
45321 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
45322 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
45323 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
45324 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
45325 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
45326 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
45327 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
45328 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
45329 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
45330 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
45331 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
45332 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
45333 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
45334 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
45335 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
45336 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
45337 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
45338 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
45339 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
45340 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
45341 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
45342 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
45343 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
45344 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
45345 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
45346 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
45347 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
45348 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
45349 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
45350 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
45351 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
45352 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
45353 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
45354 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
45355 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
45356 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
45357 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
45358 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
45359 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
45360 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
45361 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
45362 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
45363 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
45364 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
45365 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
45366 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
45367 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
45368 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
45369 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
45370 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
45371 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
45372
45373 // Map renamed classes back to their common name for OOR
45374 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
45375
45376 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
45377 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
45378 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
45379 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
45380 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
45381 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
45382 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
45383 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
45384 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
45385 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
45386 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
45387 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
45388 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
45389 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
45390 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
45391 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
45392 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
45393 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
45394 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
45395 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
45396 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
45397 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
45398 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
45399 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
45400 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
45401 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
45402 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
45403 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
45404 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
45405 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
45406 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
45407 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
45408 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
45409 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
45410 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
45411 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
45412 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
45413 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
45414 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
45415 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
45416 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
45417 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
45418 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
45419 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
45420 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
45421 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
45422 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
45423 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
45424 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
45425 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
45426 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
45427 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
45428 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
45429 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
45430 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
45431
45432 // Map renamed classes back to their common name for OOR
45433 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
45434 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
45435
45436 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
45437 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
45438 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
45439 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
45440 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
45441 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
45442 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
45443 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
45444 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
45445 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
45446 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
45447 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
45448 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
45449
45450 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
45451
45452 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
45453 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
45454 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
45455 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
45456 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
45457 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
45458 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
45459 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
45460 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
45461 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
45462 }
45463